2 // NJOutputController.h
5 // Created by Sam McCall on 5/05/09.
6 // Copyright 2009 University of Otago. All rights reserved.
9 #import "NJKeyInputField.h"
15 @protocol NJOutputViewControllerDelegate
;
17 @interface NJOutputViewController
: NSObject
<NJKeyInputFieldDelegate
>
19 @
property (nonatomic
, strong
) IBOutlet NJKeyInputField
*keyInput
;
20 @
property (nonatomic
, strong
) IBOutlet NSMatrix
*radioButtons
;
21 @
property (nonatomic
, strong
) IBOutlet NSSegmentedControl
*mouseDirSelect
;
22 @
property (nonatomic
, strong
) IBOutlet NSSlider
*mouseSpeedSlider
;
23 @
property (nonatomic
, strong
) IBOutlet NSSegmentedControl
*mouseBtnSelect
;
24 @
property (nonatomic
, strong
) IBOutlet NSSegmentedControl
*scrollDirSelect
;
25 @
property (nonatomic
, strong
) IBOutlet NSSlider
*scrollSpeedSlider
;
26 @
property (nonatomic
, strong
) IBOutlet NSTextField
*title
;
27 @
property (nonatomic
, strong
) IBOutlet NSPopUpButton
*mappingPopup
;
28 @
property (nonatomic
, strong
) IBOutlet NSButton
*smoothCheck
;
29 @
property (nonatomic
, strong
) IBOutlet NSButton
*unknownMapping
;
31 @
property (nonatomic
, weak
) IBOutlet id
<NJOutputViewControllerDelegate
> delegate
;
33 - (void)loadOutput
:(NJOutput
*)output forInput
:(NJInput
*)input
;
36 - (IBAction
)radioChanged
:(id
)sender
;
37 - (IBAction
)mdirChanged
:(id
)sender
;
38 - (IBAction
)mbtnChanged
:(id
)sender
;
39 - (IBAction
)sdirChanged
:(id
)sender
;
40 - (IBAction
)mouseSpeedChanged
:(id
)sender
;
41 - (IBAction
)scrollSpeedChanged
:(id
)sender
;
42 - (IBAction
)scrollTypeChanged
:(id
)sender
;
46 @protocol NJOutputViewControllerDelegate
48 - (NJMapping
*)outputViewController
:(NJOutputViewController
*)ovc
49 mappingForIndex
:(NSUInteger
)index
;
50 - (void)outputViewController
:(NJOutputViewController
*)ovc
51 setOutput
:(NJOutput
*)output
52 forInput
:(NJInput
*)input
;