2 // NJDeviceViewController.h
5 // Created by Joe Wreschnig on 3/16/13.
11 @
class NJInputPathElement
;
13 @protocol NJDeviceViewControllerDelegate
;
15 @interface NJDeviceViewController
: NSObject
<NSOutlineViewDataSource
,
16 NSOutlineViewDelegate
>
18 @
property (nonatomic
, strong
) IBOutlet NSOutlineView
*inputsTree
;
19 @
property (nonatomic
, strong
) IBOutlet NSView
*noDevicesNotice
;
20 @
property (nonatomic
, strong
) IBOutlet NSView
*hidStoppedNotice
;
22 @
property (nonatomic
, weak
) IBOutlet id
<NJDeviceViewControllerDelegate
> delegate
;
24 - (void)addedDevice
:(NJDevice
*)device atIndex
:(NSUInteger
)idx
;
25 - (void)removedDeviceAtIndex
:(NSUInteger
)idx
;
30 - (void)expandAndSelectItem
:(NJInputPathElement
*)item
;
32 - (NJInput
*)selectedHandler
;
36 @protocol NJDeviceViewControllerDelegate
<NSObject
>
38 - (NSInteger
)numberOfDevicesInDeviceList
:(NJDeviceViewController
*)dvc
;
39 - (NJDevice
*)deviceViewController
:(NJDeviceViewController
*)dvc
40 deviceForIndex
:(NSUInteger
)idx
;
41 - (NJInputPathElement
*)deviceViewController
:(NJDeviceViewController
*)dvc
42 elementForUID
:(NSString
*)uid
;
45 - (void)deviceViewController
:(NJDeviceViewController
*)dvc
46 didSelectDevice
:(NJInputPathElement
*)device
;
47 - (void)deviceViewController
:(NJDeviceViewController
*)dvc
48 didSelectBranch
:(NJInputPathElement
*)handler
;
49 - (void)deviceViewController
:(NJDeviceViewController
*)dvc
50 didSelectHandler
:(NJInputPathElement
*)handler
;
51 - (void)deviceViewControllerDidSelectNothing
:(NJDeviceViewController
*)dvc
;