|
|
1.1 root 1: /*
2: Hatari - PrefsController.h
3:
1.1.1.8 root 4: This file is distributed under the GNU General Public License, version 2
5: or at your option any later version. Read the file gpl.txt for details.
1.1 root 6: */
7:
8: #import <Cocoa/Cocoa.h>
9:
1.1.1.9 ! root 10:
1.1 root 11: @interface PrefsController : NSObject
12: {
1.1.1.9 ! root 13: // Preferences window
! 14: IBOutlet NSWindow *window ;
! 15: IBOutlet NSView *partage ; // add
! 16: IBOutlet NSView *hartage ; // add
! 17:
! 18: // Disks
! 19: IBOutlet NSTextField *floppyImageA; // T
! 20: IBOutlet NSTextField *floppyImageB; // T
! 21: IBOutlet NSButton *autoInsertB;
! 22: IBOutlet NSButton *fastFDC;
! 23: IBOutlet NSMatrix *floppyWriteProtection;
! 24: IBOutlet NSTextField *defaultImagesLocation; // T
! 25: IBOutlet NSTextField *hdImage; // T
! 26: IBOutlet NSTextField *ideMasterHdImage; // T
! 27: IBOutlet NSTextField *ideSlaveHdImage; // T
! 28: IBOutlet NSTextField *gemdosImage; // T
! 29: IBOutlet NSButton *bootFromHD ;
1.1.1.7 root 30: IBOutlet NSMatrix *HDWriteProtection;
1.1.1.9 ! root 31:
! 32: // ROM
! 33: IBOutlet NSTextField *tosImage; // T
! 34: IBOutlet NSTextField *cartridgeImage; // T
1.1.1.5 root 35:
1.1.1.9 ! root 36: // Atari screen
! 37: IBOutlet NSMatrix *monitor;
! 38: IBOutlet NSButton *useBorders;
1.1.1.5 root 39: IBOutlet NSButton *falconTTRatio;
1.1.1.9 ! root 40: IBOutlet NSButton *zoomSTLowRes;
! 41: IBOutlet NSButton *force8bpp;
! 42: IBOutlet NSButton *useVDIResolution;
! 43: IBOutlet NSMatrix *resolution;
! 44: IBOutlet NSMatrix *colorDepth;
! 45:
! 46: // Display
! 47: IBOutlet NSButton *showStatusBar;
1.1.1.5 root 48: IBOutlet NSButton *fullScreen;
49: IBOutlet NSButton *ledDisks;
1.1.1.9 ! root 50: IBOutlet NSPopUpButton *frameSkip;
! 51: IBOutlet NSTextField *maxZoomedWidth; // N
! 52: IBOutlet NSTextField *maxZoomedHeight; // N
! 53: IBOutlet NSButton *keepDesktopResolution;
! 54: // Hidestatus, Capture only, Avi codec, Avi FPS
! 55:
! 56: // Sound
! 57: IBOutlet NSButton *enableSound;
! 58: IBOutlet NSMatrix *playbackQuality;
! 59: IBOutlet NSMatrix *YMVoicesMixing;
! 60:
! 61: // System
! 62: IBOutlet NSMatrix *cpuType;
! 63: IBOutlet NSMatrix *cpuClock;
! 64: IBOutlet NSMatrix *machineType;
! 65: IBOutlet NSMatrix *ramSize;
! 66: IBOutlet NSButton *compatibleCpu;
! 67: IBOutlet NSButton *blitter;
! 68: IBOutlet NSButton *realTime;
! 69: IBOutlet NSButton *patchTimerD;
! 70: IBOutlet NSButton *FastBootPatch;
! 71: // load/save state
! 72: IBOutlet NSPopUpButton *enableDSP;
! 73:
! 74: // Joysticks
! 75: IBOutlet NSPopUpButton *currentJoystick;
! 76: IBOutlet NSMatrix *joystickMode;
! 77: IBOutlet NSPopUpButton *realJoystick;
! 78: IBOutlet NSPopUpButton *joystickUp;
! 79: IBOutlet NSPopUpButton *joystickRight;
! 80: IBOutlet NSPopUpButton *joystickDown;
! 81: IBOutlet NSPopUpButton *joystickLeft;
! 82: IBOutlet NSPopUpButton *joystickFire;
! 83: IBOutlet NSButton *enableAutoFire;
! 84:
! 85: // Keyboard
! 86: IBOutlet NSMatrix *keyboardMapping;
! 87: IBOutlet NSTextField *keyboardMappingFile; // T
! 88: // Disable Key Repeat
! 89:
! 90: // Peripheral
! 91: IBOutlet NSButton *enablePrinter;
! 92: IBOutlet NSTextField *printToFile; // T
! 93: IBOutlet NSButton *enableRS232;
! 94: IBOutlet NSTextField *writeRS232ToFile; // T
! 95: IBOutlet NSTextField *readRS232FromFile; // T
! 96: IBOutlet NSButton *enableMidi;
! 97: IBOutlet NSTextField *writeMidiToFile; // T
! 98:
! 99: // Other
! 100:
! 101: IBOutlet NSButton *captureOnChange;
! 102: IBOutlet NSButton *interleaved;
! 103: IBOutlet NSSlider *nSpec512Treshold;
1.1.1.5 root 104: IBOutlet NSStepper *widthStepper;
105: IBOutlet NSStepper *heightStepper;
1.1.1.9 ! root 106: IBOutlet NSTextField *configFile; // T ??
1.1.1.3 root 107:
1.1.1.9 ! root 108: BOOL bInitialized;
! 109: int cRealJoysticks;
! 110: int nCurrentJoystick;
1.1.1.3 root 111:
1.1.1.9 ! root 112: BOOL applyChanges ; // moved from
! 113: NSOpenPanel *opnPanel ;
! 114: NSSavePanel *savPanel ;
! 115:
! 116: NSMutableString *cartridge ;
! 117: NSMutableString *imgeDir ;
! 118: NSMutableString *floppyA ;
! 119: NSMutableString *floppyB ;
! 120: NSMutableString *gemdos ;
! 121: NSMutableString *hrdDisk ;
! 122: NSMutableString *masterIDE ;
! 123: NSMutableString *slaveIDE ;
! 124: NSMutableString *keyboard ;
! 125: NSMutableString *midiOut ;
! 126: NSMutableString *printit ;
! 127: NSMutableString *rs232In ;
! 128: NSMutableString *rs232Out ;
! 129: NSMutableString *TOS ;
! 130: NSMutableString *configNm ;
1.1 root 131: }
132: - (IBAction)changeViewedJoystick:(id)sender;
133: - (IBAction)chooseCartridgeImage:(id)sender;
134: - (IBAction)chooseDefaultImagesLocation:(id)sender;
135: - (IBAction)chooseFloppyImageA:(id)sender;
136: - (IBAction)chooseFloppyImageB:(id)sender;
137: - (IBAction)chooseGemdosImage:(id)sender;
138: - (IBAction)chooseHdImage:(id)sender;
1.1.1.5 root 139: - (IBAction)chooseIdeMasterHdImage:(id)sender;
140: - (IBAction)chooseIdeSlaveHdImage:(id)sender;
1.1 root 141: - (IBAction)chooseKeyboardMappingFile:(id)sender;
142: - (IBAction)chooseMidiOutputFile:(id)sender;
143: - (IBAction)choosePrintToFile:(id)sender;
144: - (IBAction)chooseRS232InputFile:(id)sender;
145: - (IBAction)chooseRS232OutputFile:(id)sender;
146: - (IBAction)chooseTosImage:(id)sender;
147: - (IBAction)commitAndClose:(id)sender;
148: - (IBAction)ejectFloppyA:(id)sender;
149: - (IBAction)ejectFloppyB:(id)sender;
150: - (IBAction)ejectGemdosImage:(id)sender;
151: - (IBAction)ejectHdImage:(id)sender;
1.1.1.5 root 152: - (IBAction)ejectIdeMasterHdImage:(id)sender;
153: - (IBAction)ejectIdeSlaveHdImage:(id)sender;
1.1 root 154: - (IBAction)loadPrefs:(id)sender;
1.1.1.3 root 155: - (IBAction)saveConfigAs:(id)sender;
156: - (IBAction)loadConfigFrom:(id)sender;
1.1.1.9 ! root 157: - (IBAction)aller:(id)sender ; // add
! 158: - (IBAction)halle:(id)sender ; // add
! 159: - (IBAction)finished:(id)sender; // add
! 160:
1.1 root 161: - (void)setAllControls;
162: - (void)saveAllControls;
1.1.1.9 ! root 163: - (void)insertFloppyImageIntoDrive:(int)drive forTextField:(NSTextField*)floppyTextField realPath:(NSMutableString *)realPath ;
! 164: - (BOOL)choosePathForControl:(NSTextField*)textField chooseDirectories:(BOOL)chooseDirectories defaultInitialDir:(NSString*)defaultInitialDir
! 165: mutString:(NSMutableString *)mutString what:(NSArray *)what ;
1.1 root 166: - (void)initKeysDropDown:(NSPopUpButton*)dropDown;
167: - (void)setJoystickControls;
168: - (void)saveJoystickControls;
169: - (IBAction)updateEnabledStates:(id)sender;
1.1.1.5 root 170: - (IBAction)setWidth:(id)sender;
171: - (IBAction)setHeight:(id)sender;
172:
1.1.1.9 ! root 173: +(PrefsController*)prefs ;
1.1 root 174:
175: @end
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.