-
Notifications
You must be signed in to change notification settings - Fork 55
/
ConfigsController.h
49 lines (38 loc) · 1.32 KB
/
ConfigsController.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//
// ConfigsController.h
// Enjoy
//
// Created by Sam McCall on 4/05/09.
// Copyright 2009 University of Otago. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@class Config;
@class TargetController;
@interface ConfigsController : NSObject {
NSMutableArray* configs;
IBOutlet NSButton* removeButton;
IBOutlet NSTableView* tableView;
IBOutlet TargetController* targetController;
IBOutlet ApplicationController *appController;
Config* currentConfig;
Config* neutralConfig; /* last config to be manually selected */
ProcessSerialNumber attachedApplication;
}
-(IBAction) addPressed: (id)sender;
-(IBAction) removePressed: (id)sender;
-(void) activateConfig: (Config*)config forApplication: (ProcessSerialNumber*) psn;
-(Config*) mappingWithName: (NSString*)name;
-(void) loadAllFromDir: (NSURL*)dir;
@property(readonly) Config* currentConfig;
@property(readonly) Config* currentNeutralConfig;
@property(readonly) NSArray* configs;
@property(readonly) ProcessSerialNumber* targetApplication;
-(void) save;
-(void) load;
-(void) applicationSwitchedTo: (NSString*) name withPsn: (ProcessSerialNumber) psn;
-(NSURL*) getMappingsDirectory;
-(void) makeMappingsDirectory;
-(NSURL*) getMappingFilenameFor: (Config*) config;
// Legacy loading code from Enjoy2 v1.1
-(void) ver11LoadConfigsFrom: (NSDictionary*) dict;
@end