| version 1.59, 2004/04/18 16:42:28 | version 1.62, 2004/05/23 04:07:56 | 
| Line 39 | Line 39 | 
 | #include        "toolwin.h" | #include        "toolwin.h" | 
 | #include        "aboutdlg.h" | #include        "aboutdlg.h" | 
 | #include        "keystat.h" | #include        "keystat.h" | 
| #include        "kdispwin.h" | #include        "subwind.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 63 | 
 | 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 185  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, CFSTR("Neko Project 21x Help")); | 
 |  | SetMenuItemTextWithCFString(GetMenuRef(IDM_APPLE), IDM_ABOUT, CFSTR("About Neko Project 21x...")); | 
 |  | SetMenuItemTextWithCFString(GetMenuRef(IDM_OTHER), IDM_I286SAVE, CFSTR("i386 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 647  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; |