cda477fee0b63e6b3e12b8cfd85242af334a4492
[enjoyable.git] / NJMappingsController.h
1 //
2 // NJMappingsController.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 NJMapping;
10 @class TargetController;
11
12 @interface NJMappingsController : NSObject <NSTableViewDataSource,
13 NSTableViewDelegate,
14 NSOpenSavePanelDelegate> {
15 IBOutlet NSButton *removeButton;
16 IBOutlet NSTableView *tableView;
17 IBOutlet TargetController *targetController;
18 }
19
20 @property (nonatomic, readonly) NJMapping *currentMapping;
21 @property (nonatomic, readonly) NSArray *mappings;
22
23 - (NJMapping *)objectForKeyedSubscript:(NSString *)name;
24
25
26 - (IBAction)addPressed:(id)sender;
27 - (IBAction)removePressed:(id)sender;
28 - (IBAction)importPressed:(id)sender;
29 - (IBAction)exportPressed:(id)sender;
30 - (void)activateMapping:(NJMapping *)mapping;
31 - (void)activateMappingForProcess:(NSString *)processName;
32
33 - (void)save;
34 - (void)load;
35
36 @end