2
* PrefsEditor.h - GUI stuff for Basilisk II preferences
3
* (which is a text file in the user's home directory)
5
* $Id: PrefsEditor.h,v 1.3 2003/04/02 02:18:05 nigel Exp $
7
* Basilisk II (C) 1997-2001 Christian Bauer
9
* This program is free software; you can redistribute it and/or modify
10
* it under the terms of the GNU General Public License as published by
11
* the Free Software Foundation; either version 2 of the License, or
12
* (at your option) any later version.
14
* This program is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU General Public License for more details.
19
* You should have received a copy of the GNU General Public License
20
* along with this program; if not, write to the Free Software
21
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24
#import <Cocoa/Cocoa.h>
26
@interface TableDS : NSObject
33
- (void) addInt: (int)target
34
withPath: (NSString *)path;
36
- (void) addObject: (NSObject *)obj
37
withPath: (NSString *)path;
41
- (BOOL) deleteRow: (int)row;
43
- (int) intAtRow: (int)row;
45
- (int) numberOfRowsInTableView: (NSTableView *)tView;
47
- (NSString *) pathAtRow: (int)row;
49
- (id) tableView: (NSTableView *)tView
50
objectValueForTableColumn: (NSTableColumn *)tColumn
56
@interface PrefsEditor : NSObject
58
IBOutlet NSSlider *emuFreq;
59
IBOutlet NSView *newVolumeView;
60
IBOutlet NSTextField *newVolumeSize;
61
IBOutlet NSWindow *panel;
62
IBOutlet Emulator *theEmulator;
65
IBOutlet NSButton *bootFromAny,
67
IBOutlet NSTextField *bytes;
68
IBOutlet NSButton *classic,
73
IBOutlet NSTextField *delay,
75
IBOutlet NSButton *disableCD,
77
IBOutlet NSTableView *diskImages;
78
IBOutlet NSTextField *etherNet,
80
IBOutlet NSButton *FPU;
81
IBOutlet NSTextField *frequency,
83
IBOutlet NSButton *IIci;
84
IBOutlet NSTextField *MB,
86
IBOutlet NSButton *openGL;
87
IBOutlet NSTextField *prefsFile,
89
IBOutlet NSButton *quadra900;
90
IBOutlet NSTextField *ROMfile;
91
IBOutlet NSButton *screen;
92
IBOutlet NSTableView *SCSIdisks;
93
IBOutlet NSTextField *width;
94
IBOutlet NSButton *window;
99
TableDS *volsDS, // Object managing tha data in the Volumes,
100
*SCSIds; // and SCSI devices, tables
104
NSImageCell *lockCell;
106
BOOL edited; // Set if the user changes anything, reset on save
110
- (NSWindow *) window;
112
- (IBAction) AddSCSI: (id)sender;
113
- (IBAction) AddVolume: (id)sender;
114
- (IBAction) BrowseExtFS: (id)sender;
115
- (IBAction) BrowsePrefs: (id)sender;
116
- (IBAction) BrowseROM: (id)sender;
117
- (IBAction) ChangeBootFrom: (NSMatrix *)sender;
118
- (IBAction) ChangeCPU: (NSMatrix *)sender;
119
- (IBAction) ChangeDisableCD: (NSButton *)sender;
120
- (IBAction) ChangeDisableSound:(NSButton *)sender;
121
- (IBAction) ChangeFPU: (NSButton *)sender;
122
- (IBAction) ChangeModel: (NSMatrix *)sender;
123
- (IBAction) ChangeScreen: (id)sender;
124
- (IBAction) CreateVolume: (id)sender;
125
- (IBAction) DeleteVolume: (id)sender;
126
- (IBAction) EditBytes: (NSTextField *)sender;
127
- (IBAction) EditDelay: (NSTextField *)sender;
128
- (IBAction) EditEtherNetDevice:(NSTextField *)sender;
129
- (IBAction) EditExtFS: (NSTextField *)sender;
130
- (IBAction) EditFrequency: (NSTextField *)sender;
131
- (IBAction) EditMB: (NSTextField *)sender;
132
- (IBAction) EditModemDevice: (NSTextField *)sender;
133
- (IBAction) EditPrinterDevice: (NSTextField *)sender;
134
- (IBAction) EditROMpath: (NSTextField *)sender;
135
- (IBAction) LoadPrefs: (id)sender;
136
- (IBAction) RemoveSCSI: (id)sender;
137
- (IBAction) RemoveVolume: (id)sender;
138
- (NSString *) RemoveVolumeEntry;
139
- (IBAction) ResetPrefs: (id)sender;
140
- (IBAction) ShowPrefs: (id)sender;
141
- (IBAction) SavePrefs: (id)sender;
b'\\ No newline at end of file'