Split NJMappingController view handling off into NJMappingViewController. This is...
[enjoyable.git] / Classes / 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 NJOutputController;
11
12 #import "NJMappingsViewController.h"
13
14 @interface NJMappingsController : NSObject <NSFastEnumeration,
15 NJMappingsViewControllerDelegate>
16
17 @property (nonatomic, readonly) NJMapping *currentMapping;
18 @property (nonatomic, strong) IBOutlet NJMappingsViewController *mvc;
19
20 - (NJMapping *)objectForKeyedSubscript:(NSString *)name;
21 - (NJMapping *)objectAtIndexedSubscript:(NSUInteger)idx;
22 - (void)activateMapping:(NJMapping *)mapping;
23 - (void)activateMappingForProcess:(NSRunningApplication *)app;
24 - (void)addOrMergeMapping:(NJMapping *)mapping;
25 - (void)save;
26 - (void)load;
27
28 @end