Simplify config removal since it's always the active config removed.
[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 <NSTableViewDataSource, NSTableViewDelegate, NSOpenSavePanelDelegate> {
13 IBOutlet NSButton *removeButton;
14 IBOutlet NSTableView *tableView;
15 IBOutlet TargetController *targetController;
16 IBOutlet NSButton *exportButton;
17 }
18
19 @property (readonly) Config *currentConfig;
20 @property (readonly) NSArray *configs;
21
22 - (Config *)objectForKeyedSubscript:(NSString *)name;
23
24
25 - (IBAction)addPressed:(id)sender;
26 - (IBAction)removePressed:(id)sender;
27 - (IBAction)importPressed:(id)sender;
28 - (IBAction)exportPressed:(id)sender;
29 - (void)activateConfig:(Config *)config;
30 - (void)activateConfigForProcess:(NSString *)processName;
31
32 - (void)save;
33 - (void)load;
34
35 @end