ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/SheepShaver/src/MacOSX/Launcher/VMSettingsController.h
Revision: 1.5
Committed: 2009-08-18T03:42:11Z (15 years, 2 months ago) by asvitkine
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -0 lines
Log Message:
Launcher: Use default settings from NIB for new VM.

File Contents

# Content
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 BOOL cancelWasClicked;
26
27 IBOutlet NSView *diskSaveSize;
28 IBOutlet NSTextField *diskSaveSizeField;
29 NSMutableArray *diskArray;
30
31 // Setup
32 IBOutlet NSTableView *disks;
33 IBOutlet NSComboBox *bootFrom;
34 IBOutlet NSButton *disableCdrom;
35 IBOutlet NSTextField *ramSize;
36 IBOutlet NSStepper *ramSizeStepper;
37 IBOutlet NSTextField *romFile;
38 IBOutlet NSTextField *unixRoot;
39 // Audio/Video
40 IBOutlet NSPopUpButton *videoType;
41 IBOutlet NSPopUpButton *refreshRate;
42 IBOutlet NSComboBox *width;
43 IBOutlet NSComboBox *height;
44 IBOutlet NSButton *qdAccel;
45 IBOutlet NSButton *disableSound;
46 IBOutlet NSTextField *outDevice;
47 IBOutlet NSTextField *mixDevice;
48 // Keyboard/Mouse
49 IBOutlet NSButton *useRawKeyCodes;
50 IBOutlet NSTextField *rawKeyCodes;
51 IBOutlet NSButton *browseRawKeyCodesButton;
52 IBOutlet NSPopUpButton *mouseWheel;
53 IBOutlet NSTextField *scrollLines;
54 IBOutlet NSStepper *scrollLinesStepper;
55 // CPU/Misc
56 IBOutlet NSButton *ignoreIllegalMemoryAccesses;
57 IBOutlet NSButton *ignoreIllegalInstructions;
58 IBOutlet NSButton *dontUseCPUWhenIdle;
59 IBOutlet NSButton *enableJIT;
60 IBOutlet NSButton *enable68kDREmulator;
61 IBOutlet NSTextField *modemPort;
62 IBOutlet NSTextField *printerPort;
63 IBOutlet NSTextField *ethernetInterface;
64 }
65
66 + (id) sharedInstance;
67 - (id) init;
68 - (void) setupGUI;
69 - (void) editSettingsFor: (NSString *) vmdir sender: (id) sender;
70 - (void) editSettingsForNewVM: (NSString *) vmdir sender: (id) sender;
71 - (IBAction) addDisk: (id) sender;
72 - (IBAction) removeDisk: (id) sender;
73 - (IBAction) createDisk: (id) sender;
74 - (IBAction) useRawKeyCodesClicked: (id) sender;
75 - (IBAction) browseForROMFileClicked: (id) sender;
76 - (IBAction) browseForUnixRootClicked: (id) sender;
77 - (IBAction) browseForKeyCodesFileClicked: (id) sender;
78 - (void) cancelEdit: (id) sender;
79 - (void) saveChanges: (id) sender;
80 - (BOOL) cancelWasClicked;
81 - (void) dealloc;
82
83 @end