X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=ConfigsController.h;h=369d7f7cbba8e9e6e9ed1c381ceb7c7f26e64eff;hp=5d2b4d108a0cfebe6c5d5433c0fe60b7cb3f08dc;hb=d442b81606d83ebf913f43d7c3fc5c885c0bbe30;hpb=3dfe18e6224331f1161ddcc057f755d41ff55266 diff --git a/ConfigsController.h b/ConfigsController.h index 5d2b4d1..369d7f7 100644 --- a/ConfigsController.h +++ b/ConfigsController.h @@ -6,31 +6,30 @@ // 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; } -- (IBAction)addPressed:(id)sender; -- (IBAction)removePressed:(id)sender; -- (void)activateConfig:(Config *)config forApplication:(ProcessSerialNumber *)psn; - -- (NSDictionary *)dumpAll; -- (void)loadAllFrom:(NSDictionary*) dict; - @property (readonly) Config *currentConfig; -@property (readonly) Config *currentNeutralConfig; @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; + - (void)save; - (void)load; -- (void)applicationSwitchedTo:(NSString *)name withPsn:(ProcessSerialNumber)psn; - @end