ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/SheepShaver/src/MacOSX/Launcher/VMSettingsController.h
Revision: 1.3
Committed: 2009-08-06T18:12:24Z (15 years, 3 months ago) by asvitkine
Content type: text/plain
Branch: MAIN
Changes since 1.2: +2 -0 lines
Log Message:
more improvements to Launcher

File Contents

# User Rev Content
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 asvitkine 1.2 BOOL cancelWasClicked;
26    
27 asvitkine 1.1 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 asvitkine 1.3 IBOutlet NSButton *browseRawKeyCodesButton;
52 asvitkine 1.1 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) editSettingsFor: (NSString *) vmdir sender: (id) sender;
69     - (IBAction) addDisk: (id) sender;
70     - (IBAction) removeDisk: (id) sender;
71     - (IBAction) createDisk: (id) sender;
72     - (IBAction) useRawKeyCodesClicked: (id) sender;
73     - (IBAction) browseForROMFileClicked: (id) sender;
74     - (IBAction) browseForUnixRootClicked: (id) sender;
75 asvitkine 1.3 - (IBAction) browseForKeyCodesFileClicked: (id) sender;
76 asvitkine 1.1 - (void) cancelEdit: (id) sender;
77     - (void) saveChanges: (id) sender;
78 asvitkine 1.2 - (BOOL) cancelWasClicked;
79 asvitkine 1.1 - (void) dealloc;
80    
81     @end