ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/MacOSX/PrefsEditor.h
Revision: 1.2
Committed: 2002-12-18T11:56:12Z (21 years, 6 months ago) by nigel
Content type: text/plain
Branch: MAIN
CVS Tags: nigel-build-12, nigel-build-13
Changes since 1.1: +3 -2 lines
Log Message:
[[blah alloc] init] -> [blah new],
error checking when deleting volume files

File Contents

# Content
1 /*
2 * PrefsEditor.h - GUI stuff for Basilisk II preferences
3 * (which is a text file in the user's home directory)
4 *
5 * $Id: PrefsEditor.h,v 1.1 2002/03/16 04:00:27 nigel Exp $
6 *
7 * Basilisk II (C) 1997-2001 Christian Bauer
8 *
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.
13 *
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.
18 *
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
22 */
23
24 #import <Cocoa/Cocoa.h>
25
26 @interface TableDS : NSObject
27 {
28 int numItems;
29 NSMutableArray *col1,
30 *col2;
31 }
32
33 - (void) addInt: (int)target
34 withPath: (NSString *)path;
35
36 - (void) addObject: (NSObject *)obj
37 withPath: (NSString *)path;
38
39 - (void) deleteAll;
40
41 - (BOOL) deleteRow: (int)row;
42
43 - (int) intAtRow: (int)row;
44
45 - (int) numberOfRowsInTableView: (NSTableView *)tView;
46
47 - (NSString *) pathAtRow: (int)row;
48
49 - (id) tableView: (NSTableView *)tView
50 objectValueForTableColumn: (NSTableColumn *)tColumn
51 row: (int)rowIndex;
52 @end
53
54 #include "Emulator.h"
55
56 @interface PrefsEditor : NSObject
57 {
58 IBOutlet NSSlider *emuFreq;
59 IBOutlet NSView *newVolumeView;
60 IBOutlet NSTextField *newVolumeSize;
61 IBOutlet NSWindow *panel;
62 IBOutlet Emulator *theEmulator;
63
64
65 IBOutlet NSButton *bootFromAny,
66 *bootFromCD;
67 IBOutlet NSTextField *bytes;
68 IBOutlet NSButton *classic,
69 *CPU68000,
70 *CPU68020,
71 *CPU68030,
72 *CPU68040;
73 IBOutlet NSTextField *delay,
74 *depth;
75 IBOutlet NSButton *disableCD,
76 *disableSound;
77 IBOutlet NSTableView *diskImages;
78 IBOutlet NSTextField *etherNet,
79 *extFS;
80 IBOutlet NSButton *FPU;
81 IBOutlet NSTextField *frequency,
82 *height;
83 IBOutlet NSButton *IIci;
84 IBOutlet NSTextField *MB,
85 *modem;
86 IBOutlet NSButton *openGL;
87 IBOutlet NSTextField *printer;
88 IBOutlet NSButton *quadra900;
89 IBOutlet NSTextField *ROMfile;
90 IBOutlet NSButton *screen;
91 IBOutlet NSTableView *SCSIdisks;
92 IBOutlet NSTextField *width;
93 IBOutlet NSButton *window;
94
95 NSString *devs,
96 *home;
97
98 TableDS *volsDS, // Object managing tha data in the Volumes,
99 *SCSIds; // and SCSI devices, tables
100
101 NSImage *locked,
102 *blank;
103 NSImageCell *lockCell;
104
105 BOOL edited; // Set if the user changes anything, reset on save
106 }
107
108 - (BOOL) hasEdited;
109 - (NSWindow *) window;
110
111 - (IBAction) AddSCSI: (id)sender;
112 - (IBAction) AddVolume: (id)sender;
113 //- (IBAction) BrowseEtherNet:(id)sender;
114 - (IBAction) BrowseExtFS: (id)sender;
115 //- (IBAction) BrowseModem: (id)sender;
116 //- (IBAction) BrowsePrinter: (id)sender;
117 - (IBAction) BrowseROM: (id)sender;
118 - (IBAction) ChangeBootFrom: (NSMatrix *)sender;
119 - (IBAction) ChangeCPU: (NSMatrix *)sender;
120 - (IBAction) ChangeDisableCD: (NSButton *)sender;
121 - (IBAction) ChangeDisableSound:(NSButton *)sender;
122 - (IBAction) ChangeFPU: (NSButton *)sender;
123 - (IBAction) ChangeModel: (NSMatrix *)sender;
124 - (IBAction) ChangeScreen: (id)sender;
125 - (IBAction) CreateVolume: (id)sender;
126 - (IBAction) DeleteVolume: (id)sender;
127 - (IBAction) EditBytes: (NSTextField *)sender;
128 - (IBAction) EditDelay: (NSTextField *)sender;
129 - (IBAction) EditEtherNetDevice:(NSTextField *)sender;
130 - (IBAction) EditExtFS: (NSTextField *)sender;
131 - (IBAction) EditFrequency: (NSTextField *)sender;
132 - (IBAction) EditMB: (NSTextField *)sender;
133 - (IBAction) EditModemDevice: (NSTextField *)sender;
134 - (IBAction) EditPrinterDevice: (NSTextField *)sender;
135 - (IBAction) EditROMpath: (NSTextField *)sender;
136 - (IBAction) RemoveSCSI: (id)sender;
137 - (IBAction) RemoveVolume: (id)sender;
138 //- (const char *) RemoveVolumeEntry;
139 - (NSString *) RemoveVolumeEntry;
140 - (IBAction) ResetPrefs: (id)sender;
141 - (IBAction) ShowPrefs: (id)sender;
142 - (IBAction) SavePrefs: (id)sender;
143
144 @end