Actually make it impossible to remove the default configuration. Various other small...
[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
11 @class Config;
12 @class TargetController;
13
14 @interface ConfigsController : NSObject {
15 IBOutlet NSButton *removeButton;
16 IBOutlet NSTableView *tableView;
17 IBOutlet TargetController *targetController;
18 }
19
20 - (IBAction)addPressed:(id)sender;
21 - (IBAction)removePressed:(id)sender;
22 - (void)activateConfig:(Config *)config forApplication:(ProcessSerialNumber *)psn;
23
24 - (NSDictionary *)dumpAll;
25 - (void)loadAllFrom:(NSDictionary*) dict;
26
27 @property (readonly) Config *currentConfig;
28 @property (readonly) Config *currentNeutralConfig;
29 @property (readonly) NSArray *configs;
30
31 - (void)save;
32 - (void)load;
33
34 - (void)applicationSwitchedTo:(NSString *)name withPsn:(ProcessSerialNumber)psn;
35
36 @end