1 /*
2 	Controller.h
3 
4 	Application controller class
5 
6 	Copyright (C) 2001 Dusk to Dawn Computing, Inc.
7 
8 	Author: Jeff Teunissen <deek@d2dc.net>
9 	Date:	5 Nov 2001
10 
11 	This program is free software; you can redistribute it and/or
12 	modify it under the terms of the GNU General Public License as
13 	published by the Free Software Foundation; either version 2 of
14 	the License, or (at your option) any later version.
15 
16 	This program is distributed in the hope that it will be useful,
17 	but WITHOUT ANY WARRANTY; without even the implied warranty of
18 	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19 
20 	See the GNU General Public License for more details.
21 
22 	You should have received a copy of the GNU General Public
23 	License along with this program; if not, write to:
24 
25 		Free Software Foundation, Inc.
26 		59 Temple Place - Suite 330
27 		Boston, MA  02111-1307, USA
28 */
29 
30 #ifdef HAVE_CONFIG_H
31 # include "Config.h"
32 #endif
33 
34 #import <Foundation/NSObject.h>
35 #import <Foundation/NSNotification.h>
36 #import <Foundation/NSString.h>
37 #import <AppKit/NSApplication.h>
38 #import <AppKit/NSNibDeclarations.h>
39 
40 #import <PrefsModule/PrefsModule.h>
41 
42 #import "BundleController.h"
43 #import "PrefsController.h"
44 
45 @interface Controller: NSObject <PrefsApplication>
46 {
47 	IBOutlet BundleController		*bundleController;
48 	IBOutlet PrefsController		*prefsController;
49 }
50 
51 // App delegate methods
52 - (BOOL) application: (NSApplication *) app openFile: (NSString *) filename;
53 - (BOOL) applicationShouldTerminate: (NSApplication *) app;
54 - (BOOL) applicationShouldTerminateAfterLastWindowClosed: (NSApplication *) app;
55 
56 // Notifications
57 - (void) applicationDidFinishLaunching: (NSNotification *) not;
58 - (void) applicationWillFinishLaunching: (NSNotification *) not;
59 - (void) applicationWillTerminate: (NSNotification *) not;
60 
61 // Action methods
62 - (IBAction) open: (id) sender;
63 
64 @end
65