|
|
| version 1.16, 2003/10/24 19:19:58 | version 1.18, 2003/10/25 09:08:24 |
|---|---|
| Line 3 | Line 3 |
| #include "strres.h" | #include "strres.h" |
| #include "np2.h" | #include "np2.h" |
| #include "dosio.h" | #include "dosio.h" |
| #include "commng.h" | |
| #include "scrnmng.h" | #include "scrnmng.h" |
| #include "soundmng.h" | #include "soundmng.h" |
| #include "sysmng.h" | #include "sysmng.h" |
| Line 169 static void HandleMenuChoice(long wParam | Line 170 static void HandleMenuChoice(long wParam |
| newhdddisk(); | newhdddisk(); |
| break; | break; |
| #endif | #endif |
| case IDM_FONT: | |
| dialog_font(); | |
| break; | |
| case IDM_EXIT: | case IDM_EXIT: |
| np2running = FALSE; | np2running = FALSE; |
| break; | break; |
| Line 716 int main(int argc, char *argv[]) { | Line 722 int main(int argc, char *argv[]) { |
| return(0); | return(0); |
| } | } |
| commng_initialize(); | |
| sysmng_initialize(); | sysmng_initialize(); |
| mackbd_initialize(); | mackbd_initialize(); |
| pccore_init(); | pccore_init(); |
| Line 975 static pascal OSStatus np2windowevent(Ev | Line 982 static pascal OSStatus np2windowevent(Ev |
| break; | break; |
| case kEventRawKeyDown: | case kEventRawKeyDown: |
| if (modif & cmdKey) { | if (modif & cmdKey) { |
| char para; | EventRecord eve; |
| GetEventParameter (event, kEventParamKeyMacCharCodes, typeChar, NULL, sizeof(char), NULL, ¶); | ConvertEventRefToEventRecord( event,&eve ); |
| HandleMenuChoice(MenuKey(para)); | HandleMenuChoice(MenuEvent(&eve)); |
| } | } |
| else { | else { |
| mackbd_f12down(key); | mackbd_f12down(key); |
| Line 1031 static void setUpCarbonEvent(void) { | Line 1038 static void setUpCarbonEvent(void) { |
| InstallStandardEventHandler(GetWindowEventTarget(hWndMain)); | InstallStandardEventHandler(GetWindowEventTarget(hWndMain)); |
| InstallApplicationEventHandler(NewEventHandlerUPP(np2appevent), | InstallApplicationEventHandler(NewEventHandlerUPP(np2appevent), |
| sizeof(appEventList)/sizeof(EventTypeSpec), | GetEventTypeCount(appEventList), |
| appEventList, 0, NULL); | appEventList, 0, NULL); |
| InstallWindowEventHandler(hWndMain, NewEventHandlerUPP(np2windowevent), | InstallWindowEventHandler(hWndMain, NewEventHandlerUPP(np2windowevent), |
| sizeof(windEventList)/sizeof(EventTypeSpec), | GetEventTypeCount(windEventList), |
| windEventList, 0, NULL); | windEventList, 0, NULL); |
| } | } |