Remove hardcoded menu item offsets. Remove unused property.
[enjoyable.git] / ConfigsController.h
1 //
2 // ConfigsController.h
3 // Enjoy
4 //
5 // Created by Sam McCall on 4/05/09.
6 // Copyright 2009 University of Otago. All rights reserved.
7 //
8
9 #import <Cocoa/Cocoa.h>
10 @class Config;
11 @class TargetController;
12
13 @interface ConfigsController : NSObject {
14 NSMutableArray* configs;
15 IBOutlet NSButton* removeButton;
16 IBOutlet NSTableView* tableView;
17 IBOutlet TargetController* targetController;
18 Config* currentConfig;
19 Config* neutralConfig; /* last config to be manually selected */
20 }
21
22 -(IBAction) addPressed: (id)sender;
23 -(IBAction) removePressed: (id)sender;
24 -(void) activateConfig: (Config*)config forApplication: (ProcessSerialNumber*) psn;
25
26 -(NSDictionary*) dumpAll;
27 -(void) loadAllFrom: (NSDictionary*) dict;
28
29 @property(strong, readonly) Config* currentConfig;
30 @property(strong, readonly) Config* currentNeutralConfig;
31 @property(readonly) NSArray* configs;
32
33 -(void) save;
34 -(void) load;
35
36 -(void) applicationSwitchedTo: (NSString*) name withPsn: (ProcessSerialNumber) psn;
37
38 @end