ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/MacOSX/PrefsEditor.h
Revision: 1.3
Committed: 2003-04-02T02:18:05Z (21 years, 7 months ago) by nigel
Content type: text/plain
Branch: MAIN
Changes since 1.2: +5 -6 lines
Log Message:
Extra methods and outlets for changing preferences file,
slight tidyup

File Contents

# User Rev Content
1 nigel 1.1 /*
2     * PrefsEditor.h - GUI stuff for Basilisk II preferences
3     * (which is a text file in the user's home directory)
4     *
5 nigel 1.3 * $Id: PrefsEditor.h,v 1.2 2002/12/18 11:56:12 nigel Exp $
6 nigel 1.1 *
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 nigel 1.3 IBOutlet NSTextField *prefsFile,
88     *printer;
89 nigel 1.1 IBOutlet NSButton *quadra900;
90     IBOutlet NSTextField *ROMfile;
91     IBOutlet NSButton *screen;
92     IBOutlet NSTableView *SCSIdisks;
93     IBOutlet NSTextField *width;
94     IBOutlet NSButton *window;
95    
96     NSString *devs,
97     *home;
98    
99     TableDS *volsDS, // Object managing tha data in the Volumes,
100     *SCSIds; // and SCSI devices, tables
101    
102     NSImage *locked,
103     *blank;
104     NSImageCell *lockCell;
105    
106     BOOL edited; // Set if the user changes anything, reset on save
107     }
108    
109     - (BOOL) hasEdited;
110     - (NSWindow *) window;
111    
112     - (IBAction) AddSCSI: (id)sender;
113     - (IBAction) AddVolume: (id)sender;
114     - (IBAction) BrowseExtFS: (id)sender;
115 nigel 1.3 - (IBAction) BrowsePrefs: (id)sender;
116 nigel 1.1 - (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 nigel 1.3 - (IBAction) LoadPrefs: (id)sender;
136 nigel 1.1 - (IBAction) RemoveSCSI: (id)sender;
137     - (IBAction) RemoveVolume: (id)sender;
138 nigel 1.2 - (NSString *) RemoveVolumeEntry;
139 nigel 1.1 - (IBAction) ResetPrefs: (id)sender;
140     - (IBAction) ShowPrefs: (id)sender;
141     - (IBAction) SavePrefs: (id)sender;
142    
143     @end