ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/MacOSX/PrefsEditor.h
Revision: 1.6
Committed: 2005-01-30T21:42:13Z (19 years, 10 months ago) by gbeauche
Content type: text/plain
Branch: MAIN
CVS Tags: nigel-build-19, nigel-build-17
Changes since 1.5: +2 -2 lines
Log Message:
Happy New Year!

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 gbeauche 1.6 * $Id: PrefsEditor.h,v 1.5 2004/01/12 15:29:24 cebix Exp $
6 nigel 1.1 *
7 gbeauche 1.6 * Basilisk II (C) 1997-2005 Christian Bauer
8 nigel 1.1 *
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 nigel 1.4 IBOutlet NSPopUpButton *keyboard;
85 nigel 1.1 IBOutlet NSTextField *MB,
86     *modem;
87     IBOutlet NSButton *openGL;
88 nigel 1.3 IBOutlet NSTextField *prefsFile,
89     *printer;
90 nigel 1.1 IBOutlet NSButton *quadra900;
91     IBOutlet NSTextField *ROMfile;
92     IBOutlet NSButton *screen;
93     IBOutlet NSTableView *SCSIdisks;
94     IBOutlet NSTextField *width;
95     IBOutlet NSButton *window;
96    
97     NSString *devs,
98     *home;
99    
100     TableDS *volsDS, // Object managing tha data in the Volumes,
101     *SCSIds; // and SCSI devices, tables
102    
103     NSImage *locked,
104     *blank;
105     NSImageCell *lockCell;
106    
107     BOOL edited; // Set if the user changes anything, reset on save
108     }
109    
110     - (BOOL) hasEdited;
111     - (NSWindow *) window;
112    
113     - (IBAction) AddSCSI: (id)sender;
114     - (IBAction) AddVolume: (id)sender;
115     - (IBAction) BrowseExtFS: (id)sender;
116 nigel 1.3 - (IBAction) BrowsePrefs: (id)sender;
117 nigel 1.1 - (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 nigel 1.4 - (IBAction) ChangeKeyboard: (NSPopUpButton *)sender;
124 nigel 1.1 - (IBAction) ChangeModel: (NSMatrix *)sender;
125     - (IBAction) ChangeScreen: (id)sender;
126     - (IBAction) CreateVolume: (id)sender;
127     - (IBAction) DeleteVolume: (id)sender;
128     - (IBAction) EditBytes: (NSTextField *)sender;
129     - (IBAction) EditDelay: (NSTextField *)sender;
130     - (IBAction) EditEtherNetDevice:(NSTextField *)sender;
131     - (IBAction) EditExtFS: (NSTextField *)sender;
132     - (IBAction) EditFrequency: (NSTextField *)sender;
133     - (IBAction) EditMB: (NSTextField *)sender;
134     - (IBAction) EditModemDevice: (NSTextField *)sender;
135     - (IBAction) EditPrinterDevice: (NSTextField *)sender;
136     - (IBAction) EditROMpath: (NSTextField *)sender;
137 nigel 1.3 - (IBAction) LoadPrefs: (id)sender;
138 nigel 1.1 - (IBAction) RemoveSCSI: (id)sender;
139     - (IBAction) RemoveVolume: (id)sender;
140 nigel 1.2 - (NSString *) RemoveVolumeEntry;
141 nigel 1.1 - (IBAction) ResetPrefs: (id)sender;
142     - (IBAction) ShowPrefs: (id)sender;
143     - (IBAction) SavePrefs: (id)sender;
144    
145     @end