Better constructor for Config.
[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 @class Config;
10 @class TargetController;
11
12 @interface ConfigsController : NSObject {
13 IBOutlet NSButton *removeButton;
14 IBOutlet NSTableView *tableView;
15 IBOutlet TargetController *targetController;
16 }
17
18 - (IBAction)addPressed:(id)sender;
19 - (IBAction)removePressed:(id)sender;
20 - (void)activateConfig:(Config *)config;
21 - (void)activateConfigForProcess:(NSString *)processName;
22
23 - (NSDictionary *)dumpAll;
24 - (void)loadAllFrom:(NSDictionary*) dict;
25
26 @property (readonly) Config *currentConfig;
27 @property (readonly) NSArray *configs;
28
29 - (void)save;
30 - (void)load;
31
32 @end