X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=NJMappingsController.h;h=2f7ede079784d573b5acf4cabe0463b6d1c92728;hp=cda477fee0b63e6b3e12b8cfd85242af334a4492;hb=a2cc76128896f61d5f5cc4039c0dcbb1b6cdff23;hpb=e2a4d830dd9817f6a515a3b1b6aa152d3bb98c2b diff --git a/NJMappingsController.h b/NJMappingsController.h index cda477f..2f7ede0 100644 --- a/NJMappingsController.h +++ b/NJMappingsController.h @@ -7,30 +7,39 @@ // @class NJMapping; -@class TargetController; +@class NJOutputController; @interface NJMappingsController : NSObject { + NSOpenSavePanelDelegate, + NSPopoverDelegate, + NSFastEnumeration> +{ IBOutlet NSButton *removeButton; IBOutlet NSTableView *tableView; - IBOutlet TargetController *targetController; + IBOutlet NJOutputController *outputController; + IBOutlet NSButton *popoverActivate; + IBOutlet NSPopover *popover; + IBOutlet NSButton *moveUp; + IBOutlet NSButton *moveDown; } @property (nonatomic, readonly) NJMapping *currentMapping; @property (nonatomic, readonly) NSArray *mappings; - (NJMapping *)objectForKeyedSubscript:(NSString *)name; +- (NJMapping *)objectAtIndexedSubscript:(NSUInteger)idx; +- (void)activateMapping:(NJMapping *)mapping; +- (void)activateMappingForProcess:(NSString *)processName; +- (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; -- (void)activateMapping:(NJMapping *)mapping; -- (void)activateMappingForProcess:(NSString *)processName; - -- (void)save; -- (void)load; @end