Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alexbevi
GitHub Repository: alexbevi/BizHawk
Path: blob/master/yabause/src/cocoa/YabausePrefsController.h
2 views
1
/* Copyright 2010-2011 Lawrence Sebald
2
3
This file is part of Yabause.
4
5
Yabause is free software; you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation; either version 2 of the License, or
8
(at your option) any later version.
9
10
Yabause is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
14
15
You should have received a copy of the GNU General Public License
16
along with Yabause; if not, write to the Free Software
17
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
*/
19
20
#ifndef YabausePrefsController_h
21
#define YabausePrefsController_h
22
23
#import <Cocoa/Cocoa.h>
24
25
@interface YabausePrefsController : NSObject {
26
IBOutlet NSTextField *biosPath;
27
IBOutlet NSTextField *bramPath;
28
IBOutlet NSButton *cartBrowse;
29
IBOutlet NSTextField *cartPath;
30
IBOutlet NSPopUpButton *cartType;
31
IBOutlet NSButton *emulateBios;
32
IBOutlet NSTextField *mpegPath;
33
IBOutlet NSPopUpButton *region;
34
IBOutlet NSPopUpButton *soundCore;
35
IBOutlet NSPopUpButton *videoCore;
36
IBOutlet NSPanel *prefsPane;
37
IBOutlet NSPanel *buttonAssignment;
38
IBOutlet NSTextField *buttonBox;
39
40
int _cartType;
41
int _region;
42
int _soundCore;
43
int _videoCore;
44
45
NSUserDefaults *_prefs;
46
}
47
48
- (void)awakeFromNib;
49
- (void)dealloc;
50
51
/* NSTextField delegate methods */
52
- (void)controlTextDidEndEditing:(NSNotification *)notification;
53
54
- (IBAction)cartSelected:(id)sender;
55
- (IBAction)regionSelected:(id)sender;
56
- (IBAction)soundCoreSelected:(id)sender;
57
- (IBAction)videoCoreSelected:(id)sender;
58
- (IBAction)biosBrowse:(id)sender;
59
- (IBAction)mpegBrowse:(id)sender;
60
- (IBAction)bramBrowse:(id)sender;
61
- (IBAction)cartBrowse:(id)sender;
62
- (IBAction)biosToggle:(id)sender;
63
- (IBAction)buttonSelect:(id)sender;
64
65
- (IBAction)buttonSetOk:(id)sender;
66
- (IBAction)buttonSetCancel:(id)sender;
67
68
- (int)cartType;
69
- (int)region;
70
- (int)soundCore;
71
- (int)videoCore;
72
- (NSString *)biosPath;
73
- (BOOL)emulateBios;
74
- (NSString *)mpegPath;
75
- (NSString *)bramPath;
76
- (NSString *)cartPath;
77
78
@end
79
80
#endif /* !YabausePrefsController_h */
81
82