--- hatari/src/gui-osx/SDLMain.h 2019/04/09 08:54:08 1.1.1.6 +++ hatari/src/gui-osx/SDLMain.h 2019/04/09 08:56:36 1.1.1.8 @@ -1,13 +1,8 @@ -// -// HatariAppDelegate.h -// Hatari -// -// Créé le 12/06/13 par Miguel Saro. -// Tout droits réservés, - Cocoa Pod -, 2013. -// -/* SDLMain.m - main entry point for our Cocoa-ized SDL app +/* + SDLMain.m - main entry point for our Cocoa-ized SDL app Initial Version: Darrell Walisser Non-NIB-Code & other changes: Max Horn + Modifications for Hatari by Miguel Saro and Jerome Vernet Feel free to customize this file to suit your needs */ @@ -15,15 +10,21 @@ #ifndef _SDLMain_h_ #define _SDLMain_h_ #import +#import "SDL.h" -@interface HatariAppDelegate : NSObject // +@interface HatariAppDelegate : NSObject // SDLApplication// NSObject // { IBOutlet NSMenuItem *beginCaptureAnim; IBOutlet NSMenuItem *endCaptureAnim; IBOutlet NSMenuItem *beginCaptureSound; IBOutlet NSMenuItem *endCaptureSound; + IBOutlet NSMenuItem *pauseMenuItem; + + BOOL emulationPaused; + } +- (IBAction)PauseMenu:(id)sender; - (IBAction)openConfig:(id)sender; - (IBAction)saveConfig:(id)sender; @@ -48,6 +49,7 @@ - (IBAction)restoreMemorySnap:(id)sender; - (IBAction)doFullScreen:(id)sender; - (IBAction)debugUI:(id)sender; +- (IBAction)quit:(id)sender; - (BOOL)validateMenuItem:(NSMenuItem*)item; - (void)setupWorkingDirectory:(BOOL)shouldChdir ; @@ -56,6 +58,7 @@ - (BOOL)validateMenuItem:(NSMenuItem*)item ; - (NSString*)displayFileSelection:(const char*)pathInParams preferredFileName:(NSString*)preferredFileName allowedExtensions:(NSArray*)allowedExtensions ; + @end #endif /* _SDLMain_h_ */