X-Git-Url: https://git.yukkurigames.com/?a=blobdiff_plain;f=Classes%2FNJMappingsController.h;h=9dd1e157da0005c66fa5ac7498438e7fe49ba0d2;hb=6a7c78afa7b8a34901f59a79afe41d18855734bc;hp=bca6c1f944be154dab4bd92d21ec8dd562895471;hpb=7e5568674713bedf9318e83b9fb13abbd122382c;p=enjoyable.git diff --git a/Classes/NJMappingsController.h b/Classes/NJMappingsController.h index bca6c1f..9dd1e15 100644 --- a/Classes/NJMappingsController.h +++ b/Classes/NJMappingsController.h @@ -7,40 +7,27 @@ // @class NJMapping; -@class NJOutputController; - -@interface NJMappingsController : NSObject -{ - IBOutlet NSButton *removeButton; - IBOutlet NSTableView *tableView; - IBOutlet NJOutputController *outputController; - IBOutlet NSButton *popoverActivate; - IBOutlet NSPopover *popover; - IBOutlet NSButton *moveUp; - IBOutlet NSButton *moveDown; -} + +@interface NJMappingsController : NSObject @property (nonatomic, readonly) NJMapping *currentMapping; -@property (nonatomic, readonly) NSArray *mappings; +@property (nonatomic, readonly) NSUInteger count; - (NJMapping *)objectForKeyedSubscript:(NSString *)name; - (NJMapping *)objectAtIndexedSubscript:(NSUInteger)idx; -- (void)addMappingWithContentsOfURL:(NSURL *)url; +- (NSInteger)indexOfMapping:(NJMapping *)mapping; + +- (void)addMapping:(NJMapping *)mapping; +- (void)insertMapping:(NJMapping *)mapping atIndex:(NSInteger)idx; +- (void)removeMappingAtIndex:(NSInteger)idx; +- (void)mergeMapping:(NJMapping *)mapping intoMapping:(NJMapping *)existing; +- (void)moveMoveMappingFromIndex:(NSInteger)fromIdx toIndex:(NSInteger)toIdx; +- (void)renameMapping:(NJMapping *)mapping to:(NSString *)name; + - (void)activateMapping:(NJMapping *)mapping; - (void)activateMappingForProcess:(NSRunningApplication *)app; + - (void)save; - (void)load; -- (IBAction)mappingPressed:(id)sender; -- (IBAction)addPressed:(id)sender; -- (IBAction)removePressed:(id)sender; -- (IBAction)moveUpPressed:(id)sender; -- (IBAction)moveDownPressed:(id)sender; -- (IBAction)importPressed:(id)sender; -- (IBAction)exportPressed:(id)sender; - @end