2 // NJDeviceViewController.h
5 // Created by Joe Wreschnig on 3/16/13.
10 @
class NJInputPathElement
;
12 @protocol NJDeviceViewControllerDelegate
;
14 @interface NJDeviceViewController
: NSObject
<NSOutlineViewDataSource
,
15 NSOutlineViewDelegate
>
17 @
property (nonatomic
, strong
) IBOutlet NSOutlineView
*inputsTree
;
18 @
property (nonatomic
, strong
) IBOutlet NSView
*noDevicesNotice
;
19 @
property (nonatomic
, strong
) IBOutlet NSView
*hidStoppedNotice
;
21 @
property (nonatomic
, weak
) IBOutlet id
<NJDeviceViewControllerDelegate
> delegate
;
23 - (void)addedDevice
:(NJDevice
*)device atIndex
:(NSUInteger
)idx
;
24 - (void)removedDevice
:(NJDevice
*)device atIndex
:(NSUInteger
)idx
;
25 // But using these will animate nicely.
30 - (void)expandAndSelectItem
:(NJInputPathElement
*)item
;
32 - (NJInputPathElement
*)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
;