X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=ConfigsController.h;h=369d7f7cbba8e9e6e9ed1c381ceb7c7f26e64eff;hp=32e0c6132a2a32b0b39c92a3fc0df079874cb78d;hb=d442b81606d83ebf913f43d7c3fc5c885c0bbe30;hpb=19eadf9e688d8c087b47f83f8634593fddd641ac diff --git a/ConfigsController.h b/ConfigsController.h index 32e0c61..369d7f7 100644 --- a/ConfigsController.h +++ b/ConfigsController.h @@ -6,28 +6,29 @@ // Copyright 2009 University of Otago. All rights reserved. // -#import - @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;