Move logic into messages rather than directly in the callback functions.
[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 @property (readonly) Config *currentConfig;
19 @property (readonly) NSArray *configs;
20
21 - (IBAction)addPressed:(id)sender;
22 - (IBAction)removePressed:(id)sender;
23 - (void)activateConfig:(Config *)config;
24 - (void)activateConfigForProcess:(NSString *)processName;
25
26 - (void)save;
27 - (void)load;
28
29 @end