Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alexbevi
GitHub Repository: alexbevi/BizHawk
Path: blob/master/yabause/src/cocoa/YabauseController.h
2 views
1
/* Copyright 2010, 2012 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 YabauseController_h
21
#define YabauseController_h
22
23
#import <Cocoa/Cocoa.h>
24
25
@class YabauseGLView;
26
@class YabausePrefsController;
27
28
@interface YabauseController : NSObject {
29
IBOutlet YabauseGLView *view;
30
IBOutlet NSPanel *prefsPane;
31
IBOutlet YabausePrefsController *prefs;
32
IBOutlet NSMenuItem *frameskip;
33
IBOutlet NSWindow *logWindow;
34
IBOutlet NSTextView *logView;
35
BOOL _running;
36
BOOL _paused;
37
NSLock *_runLock;
38
NSThread *_emuThd;
39
char *_bramFile;
40
char *_isoFile;
41
BOOL _doneExecuting;
42
}
43
44
- (void)awakeFromNib;
45
- (void)dealloc;
46
47
/* NSWindow delegate methods */
48
- (BOOL)windowShouldClose:(id)sender;
49
50
/* NSApplication delegate methods */
51
- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)app;
52
53
- (IBAction)showPreferences:(id)sender;
54
- (IBAction)runBIOS:(id)sender;
55
- (IBAction)runCD:(id)sender;
56
- (IBAction)runISO:(id)sender;
57
- (IBAction)toggleFullscreen:(id)sender;
58
- (IBAction)toggle:(id)sender;
59
- (IBAction)toggleFrameskip:(id)sender;
60
- (IBAction)pause:(id)sender;
61
- (IBAction)reset:(id)sender;
62
63
- (YabauseGLView *)view;
64
65
@end
66
67
extern YabauseController *controller;
68
69
#endif /* !YabauseController_h */
70
71