Big rename part 2: 'config' etc. to 'mapping.
[enjoyable.git] / NJMappingsController.h
diff --git a/NJMappingsController.h b/NJMappingsController.h
new file mode 100644 (file)
index 0000000..cda477f
--- /dev/null
@@ -0,0 +1,36 @@
+//
+//  NJMappingsController.h
+//  Enjoy
+//
+//  Created by Sam McCall on 4/05/09.
+//  Copyright 2009 University of Otago. All rights reserved.
+//
+
+@class NJMapping;
+@class TargetController;
+
+@interface NJMappingsController : NSObject <NSTableViewDataSource,
+                                            NSTableViewDelegate,
+                                            NSOpenSavePanelDelegate> {
+    IBOutlet NSButton *removeButton;
+    IBOutlet NSTableView *tableView;
+    IBOutlet TargetController *targetController;
+}
+
+@property (nonatomic, readonly) NJMapping *currentMapping;
+@property (nonatomic, readonly) NSArray *mappings;
+
+- (NJMapping *)objectForKeyedSubscript:(NSString *)name;
+
+
+- (IBAction)addPressed:(id)sender;
+- (IBAction)removePressed:(id)sender;
+- (IBAction)importPressed:(id)sender;
+- (IBAction)exportPressed:(id)sender;
+- (void)activateMapping:(NJMapping *)mapping;
+- (void)activateMappingForProcess:(NSString *)processName;
+
+- (void)save;
+- (void)load;
+
+@end