1 |
asvitkine |
1.1 |
/* |
2 |
|
|
* VMSettingsController.h - Preferences editing in Cocoa on Mac OS X |
3 |
|
|
* |
4 |
|
|
* Copyright (C) 2006-2009 Alexei Svitkine |
5 |
|
|
* |
6 |
|
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
|
* it under the terms of the GNU General Public License as published by |
8 |
|
|
* the Free Software Foundation; either version 2 of the License, or |
9 |
|
|
* (at your option) any later version. |
10 |
|
|
* |
11 |
|
|
* This program is distributed in the hope that it will be useful, |
12 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 |
|
|
* GNU General Public License for more details. |
15 |
|
|
* |
16 |
|
|
* You should have received a copy of the GNU General Public License |
17 |
|
|
* along with this program; if not, write to the Free Software |
18 |
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 |
|
|
*/ |
20 |
|
|
|
21 |
|
|
#import <Cocoa/Cocoa.h> |
22 |
|
|
|
23 |
|
|
@interface VMSettingsController : NSWindowController |
24 |
|
|
{ |
25 |
|
|
IBOutlet NSView *diskSaveSize; |
26 |
|
|
IBOutlet NSTextField *diskSaveSizeField; |
27 |
|
|
NSMutableArray *diskArray; |
28 |
|
|
|
29 |
|
|
// Setup |
30 |
|
|
IBOutlet NSTableView *disks; |
31 |
|
|
IBOutlet NSComboBox *bootFrom; |
32 |
|
|
IBOutlet NSButton *disableCdrom; |
33 |
|
|
IBOutlet NSTextField *ramSize; |
34 |
|
|
IBOutlet NSStepper *ramSizeStepper; |
35 |
|
|
IBOutlet NSTextField *romFile; |
36 |
|
|
IBOutlet NSTextField *unixRoot; |
37 |
|
|
// Audio/Video |
38 |
|
|
IBOutlet NSPopUpButton *videoType; |
39 |
|
|
IBOutlet NSPopUpButton *refreshRate; |
40 |
|
|
IBOutlet NSComboBox *width; |
41 |
|
|
IBOutlet NSComboBox *height; |
42 |
|
|
IBOutlet NSButton *qdAccel; |
43 |
|
|
IBOutlet NSButton *disableSound; |
44 |
|
|
IBOutlet NSTextField *outDevice; |
45 |
|
|
IBOutlet NSTextField *mixDevice; |
46 |
|
|
// Keyboard/Mouse |
47 |
|
|
IBOutlet NSButton *useRawKeyCodes; |
48 |
|
|
IBOutlet NSTextField *rawKeyCodes; |
49 |
|
|
IBOutlet NSPopUpButton *mouseWheel; |
50 |
|
|
IBOutlet NSTextField *scrollLines; |
51 |
|
|
IBOutlet NSStepper *scrollLinesStepper; |
52 |
|
|
// CPU/Misc |
53 |
|
|
IBOutlet NSButton *ignoreIllegalMemoryAccesses; |
54 |
|
|
IBOutlet NSButton *ignoreIllegalInstructions; |
55 |
|
|
IBOutlet NSButton *dontUseCPUWhenIdle; |
56 |
|
|
IBOutlet NSButton *enableJIT; |
57 |
|
|
IBOutlet NSButton *enable68kDREmulator; |
58 |
|
|
IBOutlet NSTextField *modemPort; |
59 |
|
|
IBOutlet NSTextField *printerPort; |
60 |
|
|
IBOutlet NSTextField *ethernetInterface; |
61 |
|
|
} |
62 |
|
|
|
63 |
|
|
+ (id) sharedInstance; |
64 |
|
|
- (id) init; |
65 |
|
|
- (void) editSettingsFor: (NSString *) vmdir sender: (id) sender; |
66 |
|
|
- (IBAction) addDisk: (id) sender; |
67 |
|
|
- (IBAction) removeDisk: (id) sender; |
68 |
|
|
- (IBAction) createDisk: (id) sender; |
69 |
|
|
- (IBAction) useRawKeyCodesClicked: (id) sender; |
70 |
|
|
- (IBAction) browseForROMFileClicked: (id) sender; |
71 |
|
|
- (IBAction) browseForUnixRootClicked: (id) sender; |
72 |
|
|
- (void) cancelEdit: (id) sender; |
73 |
|
|
- (void) saveChanges: (id) sender; |
74 |
|
|
- (void) dealloc; |
75 |
|
|
|
76 |
|
|
@end |