-
Notifications
You must be signed in to change notification settings - Fork 55
/
TargetController.h
46 lines (40 loc) · 1.15 KB
/
TargetController.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
//
// TargetController.h
// Enjoy
//
// Created by Sam McCall on 5/05/09.
// Copyright 2009 University of Otago. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@class KeyInputTextView;
@class ConfigsController;
@class JoystickController;
@class Target;
@class TargetMouseMove;
@interface TargetController : NSObject {
IBOutlet KeyInputTextView* keyInput;
IBOutlet NSButtonCell *radioNoAction, *radioKey, *radioConfig;
IBOutlet NSMatrix* radioButtons;
IBOutlet NSSegmentedControl* mouseDirSelect;
IBOutlet NSSegmentedControl* mouseBtnSelect;
IBOutlet NSSegmentedControl* scrollDirSelect;
IBOutlet NSTextField* title;
IBOutlet NSPopUpButton* configPopup;
IBOutlet ConfigsController* configsController;
IBOutlet JoystickController* joystickController;
id currentJsaction;
}
-(void) keyChanged;
-(void) load;
-(void) commit;
-(void) reset;
-(Target*) state;
-(void) refreshConfigsPreservingSelection: (BOOL) preserve;
-(IBAction)configChosen:(id)sender;
-(IBAction)radioChanged:(id)sender;
-(IBAction)mdirChanged:(id)sender;
-(IBAction)mbtnChanged:(id)sender;
-(IBAction)sdirChanged:(id)sender;
-(void) focusKey;
@property(readwrite) BOOL enabled;
@end