/* Copyright 2010, 2012 Lawrence Sebald12This file is part of Yabause.34Yabause is free software; you can redistribute it and/or modify5it under the terms of the GNU General Public License as published by6the Free Software Foundation; either version 2 of the License, or7(at your option) any later version.89Yabause is distributed in the hope that it will be useful,10but WITHOUT ANY WARRANTY; without even the implied warranty of11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the12GNU General Public License for more details.1314You should have received a copy of the GNU General Public License15along with Yabause; if not, write to the Free Software16Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA17*/1819#ifndef YabauseController_h20#define YabauseController_h2122#import <Cocoa/Cocoa.h>2324@class YabauseGLView;25@class YabausePrefsController;2627@interface YabauseController : NSObject {28IBOutlet YabauseGLView *view;29IBOutlet NSPanel *prefsPane;30IBOutlet YabausePrefsController *prefs;31IBOutlet NSMenuItem *frameskip;32IBOutlet NSWindow *logWindow;33IBOutlet NSTextView *logView;34BOOL _running;35BOOL _paused;36NSLock *_runLock;37NSThread *_emuThd;38char *_bramFile;39char *_isoFile;40BOOL _doneExecuting;41}4243- (void)awakeFromNib;44- (void)dealloc;4546/* NSWindow delegate methods */47- (BOOL)windowShouldClose:(id)sender;4849/* NSApplication delegate methods */50- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)app;5152- (IBAction)showPreferences:(id)sender;53- (IBAction)runBIOS:(id)sender;54- (IBAction)runCD:(id)sender;55- (IBAction)runISO:(id)sender;56- (IBAction)toggleFullscreen:(id)sender;57- (IBAction)toggle:(id)sender;58- (IBAction)toggleFrameskip:(id)sender;59- (IBAction)pause:(id)sender;60- (IBAction)reset:(id)sender;6162- (YabauseGLView *)view;6364@end6566extern YabauseController *controller;6768#endif /* !YabauseController_h */697071