X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=ConfigsController.h;h=369d7f7cbba8e9e6e9ed1c381ceb7c7f26e64eff;hp=7a83830fddcb3f165f9715936f7cfdd667ed0080;hb=d442b81606d83ebf913f43d7c3fc5c885c0bbe30;hpb=3a40cba25b9bb38887fe4809277d4c0f73462d12 diff --git a/ConfigsController.h b/ConfigsController.h index 7a83830..369d7f7 100644 --- a/ConfigsController.h +++ b/ConfigsController.h @@ -6,33 +6,30 @@ // Copyright 2009 University of Otago. All rights reserved. // -#import @class Config; @class TargetController; -@interface ConfigsController : NSObject { - NSMutableArray* configs; - IBOutlet NSButton* removeButton; - IBOutlet NSTableView* tableView; - IBOutlet TargetController* targetController; - Config* currentConfig; - Config* neutralConfig; /* last config to be manually selected */ +@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; +@property (readonly) Config *currentConfig; +@property (readonly) NSArray *configs; --(NSDictionary*) dumpAll; --(void) loadAllFrom: (NSDictionary*) dict; +- (Config *)objectForKeyedSubscript:(NSString *)name; -@property(strong, readonly) Config* currentConfig; -@property(strong, readonly) Config* currentNeutralConfig; -@property(readonly) NSArray* configs; --(void) save; --(void) load; +- (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) applicationSwitchedTo: (NSString*) name withPsn: (ProcessSerialNumber) psn; +- (void)save; +- (void)load; @end