Clean up manual (previously 'neutral') vs. automatic (i.e. process-driven) configurat...
[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;
23 - (void)activateConfigForProcess:(NSString *)processName;
24
25 - (NSDictionary *)dumpAll;
26 - (void)loadAllFrom:(NSDictionary*) dict;
27
28 @property (readonly) Config *currentConfig;
29 @property (readonly) NSArray *configs;
30
31 - (void)save;
32 - (void)load;
33
34 @end