X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=ConfigsController.h;h=369d7f7cbba8e9e6e9ed1c381ceb7c7f26e64eff;hp=a408d3bfaa8d5eb18031ade6675b8db5c6197cce;hb=794561a4606fa9e31e3b2b077891f5b1e6084698;hpb=c6fb77859e508aaef686b7a5a6a12abe29178708 diff --git a/ConfigsController.h b/ConfigsController.h index a408d3b..369d7f7 100644 --- a/ConfigsController.h +++ b/ConfigsController.h @@ -9,23 +9,26 @@ @class Config; @class TargetController; -@interface ConfigsController : NSObject { - IBOutlet NSButton *removeButton; - IBOutlet NSTableView *tableView; - IBOutlet TargetController *targetController; +@interface ConfigsController : NSObject { + IBOutlet NSButton *removeButton; + IBOutlet NSTableView *tableView; + IBOutlet TargetController *targetController; + IBOutlet NSButton *exportButton; } +@property (readonly) Config *currentConfig; +@property (readonly) NSArray *configs; + +- (Config *)objectForKeyedSubscript:(NSString *)name; + + - (IBAction)addPressed:(id)sender; - (IBAction)removePressed:(id)sender; +- (IBAction)importPressed:(id)sender; +- (IBAction)exportPressed:(id)sender; - (void)activateConfig:(Config *)config; - (void)activateConfigForProcess:(NSString *)processName; -- (NSDictionary *)dumpAll; -- (void)loadAllFrom:(NSDictionary*) dict; - -@property (readonly) Config *currentConfig; -@property (readonly) NSArray *configs; - - (void)save; - (void)load;