|
|
| version 1.60, 2004/04/20 16:54:07 | version 1.64, 2004/08/16 07:51:15 |
|---|---|
| Line 40 | Line 40 |
| #include "aboutdlg.h" | #include "aboutdlg.h" |
| #include "keystat.h" | #include "keystat.h" |
| #include "subwind.h" | #include "subwind.h" |
| #include "macclnd.h" | |
| #define NP2OPENING | #define NP2OPENING |
| // #define OPENING_WAIT 1500 | // #define OPENING_WAIT 1500 |
| #if !defined(SUPPORT_PC9821) | |
| NP2OSCFG np2oscfg = {"Neko Project IIx", //titles | NP2OSCFG np2oscfg = {"Neko Project IIx", //titles |
| #else | |
| NP2OSCFG np2oscfg = {"Neko Project 21x", //titles | |
| #endif | |
| -1, //winx | -1, //winx |
| -1, //winy | -1, //winy |
| 0, //NOWAIT | 0, //NOWAIT |
| Line 59 | Line 64 |
| 0, //confirm | 0, //confirm |
| 0, //resume | 0, //resume |
| 1, //toolwin | 1, //toolwin |
| #if defined(SUPPORT_KEYDISP) | |
| 0, //keydisp | |
| #endif | |
| #if defined(SUPPORT_SOFTKBD) | |
| 0, //softkey | |
| #endif | |
| 0, //jastsnd | 0, //jastsnd |
| 0, //I286SAVE | 0, //I286SAVE |
| #ifdef SUPPORT_KEYDISP | |
| 1, //keydisp | |
| #endif | |
| }; | }; |
| WindowPtr hWndMain; | WindowPtr hWndMain; |
| Line 177 static void MenuBarInit(void) { | Line 186 static void MenuBarInit(void) { |
| DisableMenuItem(GetMenuRef(IDM_OTHER), IDM_KEYDISP); | DisableMenuItem(GetMenuRef(IDM_OTHER), IDM_KEYDISP); |
| #endif | #endif |
| #ifndef SUPPORT_SOFTKBD | #ifndef SUPPORT_SOFTKBD |
| SetMenuItemTextWithCFString(GetMenuRef(IDM_OTHER), IDM_SOFTKBD, CFSTR("please wait for 0.80")); | |
| DisableMenuItem(GetMenuRef(IDM_OTHER), IDM_SOFTKBD); | DisableMenuItem(GetMenuRef(IDM_OTHER), IDM_SOFTKBD); |
| #endif | #endif |
| if (np2oscfg.I286SAVE) { | if (np2oscfg.I286SAVE) { |
| AppendMenuItemTextWithCFString(GetMenuRef(IDM_OTHER), CFCopyLocalizedString(CFSTR("i286 save"),"i286"), kMenuItemAttrIconDisabled, NULL,NULL); | AppendMenuItemTextWithCFString(GetMenuRef(IDM_OTHER), CFCopyLocalizedString(CFSTR("i286 save"),"i286"), kMenuItemAttrIconDisabled, NULL,NULL); |
| } | } |
| #if defined(SUPPORT_PC9821) | |
| AppendMenuItemTextWithCFString(GetMenuRef(IDM_MEMORY), CFSTR("11.6MB"), kMenuItemAttrIconDisabled, NULL, NULL); | |
| AppendMenuItemTextWithCFString(GetMenuRef(IDM_MEMORY), CFSTR("13.6MB"), kMenuItemAttrIconDisabled, NULL, NULL); | |
| SetMenuItemTextWithCFString(GetMenuRef(IDM_HELP), IDM_NP2HELP, CFCopyLocalizedString(CFSTR("Help"), "Help")); | |
| SetMenuItemTextWithCFString(GetMenuRef(IDM_APPLE), IDM_ABOUT, CFCopyLocalizedString(CFSTR("About"), "About")); | |
| SetMenuItemTextWithCFString(GetMenuRef(IDM_OTHER), IDM_I286SAVE, CFCopyLocalizedString(CFSTR("i386 save"), "save")); | |
| #endif | |
| if (!(np2cfg.fddequip & 1)) { | if (!(np2cfg.fddequip & 1)) { |
| DisableAllMenuItems(GetMenuRef(IDM_FDD1)); | DisableAllMenuItems(GetMenuRef(IDM_FDD1)); |
| Line 630 void HandleMenuChoice(long wParam) { | Line 648 void HandleMenuChoice(long wParam) { |
| update |= SYS_UPDATECFG; | update |= SYS_UPDATECFG; |
| break; | break; |
| case IDM_MEM116: | |
| menu_setextmem(11); | |
| update |= SYS_UPDATECFG; | |
| break; | |
| case IDM_MEM136: | |
| menu_setextmem(13); | |
| update |= SYS_UPDATECFG; | |
| break; | |
| case IDM_BMPSAVE: | case IDM_BMPSAVE: |
| dialog_writebmp(); | dialog_writebmp(); |
| break; | break; |
| Line 637 void HandleMenuChoice(long wParam) { | Line 665 void HandleMenuChoice(long wParam) { |
| case IDM_S98LOGGING: | case IDM_S98LOGGING: |
| dialog_s98(); | dialog_s98(); |
| break; | break; |
| case IDM_CALENDAR: | |
| initClnd(); | |
| break; | |
| case IDM_DISPCLOCK: | case IDM_DISPCLOCK: |
| menu_setdispclk(np2oscfg.DISPCLK ^ 1); | menu_setdispclk(np2oscfg.DISPCLK ^ 1); |