1 // 2 // Copyright(C) 2005-2014 Simon Howard 3 // 4 // This program is free software; you can redistribute it and/or 5 // modify it under the terms of the GNU General Public License 6 // as published by the Free Software Foundation; either version 2 7 // of the License, or (at your option) any later version. 8 // 9 // This program is distributed in the hope that it will be useful, 10 // but WITHOUT ANY WARRANTY; without even the implied warranty of 11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 // GNU General Public License for more details. 13 // 14 15 #ifndef LAUNCHER_APPCONTROLLER_H 16 #define LAUNCHER_APPCONTROLLER_H 17 18 #include <AppKit/AppKit.h> 19 20 #include "LauncherManager.h" 21 22 @interface AppController : NSObject 23 { 24 LauncherManager *launcherManager; 25 BOOL filesAdded; 26 } 27 28 + (void)initialize; 29 30 - (id)init; 31 - (void)dealloc; 32 33 - (void)awakeFromNib; 34 35 - (void)applicationDidFinishLaunching:(NSNotification *)aNotif; 36 - (BOOL)applicationShouldTerminate:(id)sender; 37 - (void)applicationWillTerminate:(NSNotification *)aNotif; 38 - (BOOL)application:(NSApplication *)application openFile:(NSString *)fileName; 39 40 - (void)showPrefPanel:(id)sender; 41 42 @end 43 44 #endif 45 46