|
|
1.1.1.7 root 1: /*
2: SDLMain.m - main entry point for our Cocoa-ized SDL app
1.1 root 3: Initial Version: Darrell Walisser <[email protected]>
4: Non-NIB-Code & other changes: Max Horn <[email protected]>
1.1.1.7 root 5: Modifications for Hatari by Miguel Saro and Jerome Vernet
1.1 root 6:
7: Feel free to customize this file to suit your needs
8: */
9:
1.1.1.2 root 10: #ifndef _SDLMain_h_
11: #define _SDLMain_h_
1.1 root 12: #import <Cocoa/Cocoa.h>
1.1.1.8 ! root 13: #import "SDL.h"
1.1 root 14:
1.1.1.6 root 15:
1.1.1.8 ! root 16: @interface HatariAppDelegate : NSObject // SDLApplication// NSObject // <NSApplicationDelegate>
1.1 root 17: {
18: IBOutlet NSMenuItem *beginCaptureAnim;
19: IBOutlet NSMenuItem *endCaptureAnim;
20: IBOutlet NSMenuItem *beginCaptureSound;
21: IBOutlet NSMenuItem *endCaptureSound;
1.1.1.8 ! root 22: IBOutlet NSMenuItem *pauseMenuItem;
! 23:
! 24: BOOL emulationPaused;
! 25:
1.1 root 26: }
1.1.1.8 ! root 27: - (IBAction)PauseMenu:(id)sender;
1.1.1.6 root 28:
1.1.1.2 root 29: - (IBAction)openConfig:(id)sender;
30: - (IBAction)saveConfig:(id)sender;
1.1 root 31: - (IBAction)prefsMenu:(id)sender;
1.1.1.4 root 32:
1.1.1.6 root 33: //- (IBAction)openPreferences:(id)sender;
1.1.1.4 root 34:
1.1 root 35: - (IBAction)warmReset:(id)sender;
36: - (IBAction)coldReset:(id)sender;
37: - (IBAction)insertDiskA:(id)sender;
38: - (IBAction)insertDiskB:(id)sender;
1.1.1.5 root 39: - (IBAction)help:(id)sender;
40: - (IBAction)compat:(id)sender;
1.1 root 41: - (IBAction)captureScreen:(id)sender;
42: - (IBAction)captureAnimation:(id)sender;
43: - (IBAction)endCaptureAnimation:(id)sender;
1.1.1.6 root 44: //- (IBAction)captureAnimation_AVI:(id)sender;;
1.1.1.2 root 45: //- (IBAction)endCaptureAnimation_AVI:(id)sender;
1.1 root 46: - (IBAction)captureSound:(id)sender;
47: - (IBAction)endCaptureSound:(id)sender;
48: - (IBAction)saveMemorySnap:(id)sender;
49: - (IBAction)restoreMemorySnap:(id)sender;
50: - (IBAction)doFullScreen:(id)sender;
1.1.1.2 root 51: - (IBAction)debugUI:(id)sender;
1.1.1.8 ! root 52: - (IBAction)quit:(id)sender;
1.1.1.6 root 53:
1.1 root 54: - (BOOL)validateMenuItem:(NSMenuItem*)item;
1.1.1.6 root 55: - (void)setupWorkingDirectory:(BOOL)shouldChdir ;
56: - (BOOL)application:(NSApplication *)theApplication openFile:(NSString *)filename ;
57: - (void)insertDisk:(int)disque ;
58: - (BOOL)validateMenuItem:(NSMenuItem*)item ;
59: - (NSString*)displayFileSelection:(const char*)pathInParams preferredFileName:(NSString*)preferredFileName allowedExtensions:(NSArray*)allowedExtensions ;
1.1 root 60:
1.1.1.8 ! root 61:
1.1 root 62: @end
1.1.1.2 root 63:
64: #endif /* _SDLMain_h_ */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.