2 // NJMappingsController.h
5 // Created by Sam McCall on 4/05/09.
6 // Copyright 2009 University of Otago. All rights reserved.
10 @
class NJOutputController
;
12 #import "NJMappingsViewController.h"
14 @interface NJMappingsController
: NSObject
<NSFastEnumeration
,
15 NJMappingsViewControllerDelegate
>
17 @
property (nonatomic
, readonly
) NJMapping
*currentMapping
;
18 @
property (nonatomic
, readonly
) NSUInteger count
;
20 @
property (nonatomic
, strong
) IBOutlet NJMappingsViewController
*mvc
;
22 - (NJMapping
*)objectForKeyedSubscript
:(NSString
*)name
;
23 - (NJMapping
*)objectAtIndexedSubscript
:(NSUInteger
)idx
;
24 - (NSInteger
)indexOfMapping
:(NJMapping
*)mapping
;
26 - (void)addMapping
:(NJMapping
*)mapping
;
27 - (void)insertMapping
:(NJMapping
*)mapping atIndex
:(NSInteger
)idx
;
28 - (void)removeMappingAtIndex
:(NSInteger
)idx
;
29 - (void)mergeMapping
:(NJMapping
*)mapping intoMapping
:(NJMapping
*)existing
;
30 - (void)moveMoveMappingFromIndex
:(NSInteger
)fromIdx toIndex
:(NSInteger
)toIdx
;
32 - (void)mappingsChanged
;
34 - (void)promptForMapping
:(NJMapping
*)mapping atIndex
:(NSInteger
)idx
;
35 // FIXME: Doesn't belong here.
37 - (void)activateMapping
:(NJMapping
*)mapping
;
38 - (void)activateMappingForProcess
:(NSRunningApplication
*)app
;