X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=ConfigsController.h;h=a408d3bfaa8d5eb18031ade6675b8db5c6197cce;hp=7e79f15e88dc4fbc931a41556fb8d856fd27be25;hb=44fe6f649589488b367eee7ffff240cecf8669ad;hpb=5a79f9f05829ca1aecc70aeadb8c980ec4f3556d diff --git a/ConfigsController.h b/ConfigsController.h index 7e79f15..a408d3b 100644 --- a/ConfigsController.h +++ b/ConfigsController.h @@ -6,34 +6,27 @@ // 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 */ - ProcessSerialNumber attachedApplication; + IBOutlet NSButton *removeButton; + IBOutlet NSTableView *tableView; + IBOutlet TargetController *targetController; } --(IBAction) addPressed: (id)sender; --(IBAction) removePressed: (id)sender; --(void) activateConfig: (Config*)config forApplication: (ProcessSerialNumber*) psn; +- (IBAction)addPressed:(id)sender; +- (IBAction)removePressed:(id)sender; +- (void)activateConfig:(Config *)config; +- (void)activateConfigForProcess:(NSString *)processName; --(NSDictionary*) dumpAll; --(void) loadAllFrom: (NSDictionary*) dict; +- (NSDictionary *)dumpAll; +- (void)loadAllFrom:(NSDictionary*) dict; -@property(strong, readonly) Config* currentConfig; -@property(strong, readonly) Config* currentNeutralConfig; -@property(readonly) NSArray* configs; -@property(readonly) ProcessSerialNumber* targetApplication; --(void) save; --(void) load; +@property (readonly) Config *currentConfig; +@property (readonly) NSArray *configs; --(void) applicationSwitchedTo: (NSString*) name withPsn: (ProcessSerialNumber) psn; +- (void)save; +- (void)load; @end