X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=Classes%2FNJMappingsController.h;h=b9d3e678aad1a1552fabddea9f943f5ac3cf9d05;hp=85ba54ff873e1b14b13eed9d0ff2fdf2bd86b7b1;hb=6a8c6539cc3f7a4b32a9f226da6ae06074e4f0cb;hpb=30f40c368cf11684956e992cb13a8f70b5c5e0ce diff --git a/Classes/NJMappingsController.h b/Classes/NJMappingsController.h index 85ba54f..b9d3e67 100644 --- a/Classes/NJMappingsController.h +++ b/Classes/NJMappingsController.h @@ -7,20 +7,13 @@ // @class NJMapping; -@class NJOutputController; -#import "NJMappingsViewController.h" - -@interface NJMappingsController : NSObject +@interface NJMappingsController : NSObject @property (nonatomic, readonly) NJMapping *currentMapping; -@property (nonatomic, readonly) NSUInteger count; - -@property (nonatomic, strong) IBOutlet NJMappingsViewController *mvc; +@property (nonatomic, readonly) NSArray *mappings; -- (NJMapping *)objectForKeyedSubscript:(NSString *)name; -- (NJMapping *)objectAtIndexedSubscript:(NSUInteger)idx; +- (NJMapping *)mappingForKey:(NSString *)name; - (NSInteger)indexOfMapping:(NJMapping *)mapping; - (void)addMapping:(NJMapping *)mapping; @@ -28,14 +21,11 @@ - (void)removeMappingAtIndex:(NSInteger)idx; - (void)mergeMapping:(NJMapping *)mapping intoMapping:(NJMapping *)existing; - (void)moveMoveMappingFromIndex:(NSInteger)fromIdx toIndex:(NSInteger)toIdx; - -- (void)mappingsChanged; - -- (void)promptForMapping:(NJMapping *)mapping atIndex:(NSInteger)idx; - // FIXME: Doesn't belong here. +- (void)renameMapping:(NJMapping *)mapping to:(NSString *)name; - (void)activateMapping:(NJMapping *)mapping; - (void)activateMappingForProcess:(NSRunningApplication *)app; + - (void)save; - (void)load;