| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- //
- // CommandClassControlNodeView.h
- // kneet2
- //
- // Created by Jason Lee on 11/5/15.
- // Copyright © 2015 ntels. All rights reserved.
- //
- #import "JDObject.h"
- @class ItemSubModel;
- @class CustomButton;
- @class CustomLabel;
- @protocol CommandClassControlNodeViewDelegate <NSObject>
- @optional
- - (void)didControlNodeAction:(id)sender;
- @end
- @interface CommandClassControlNodeView : UIView {
-
- @protected
- __weak ItemSubModel *_subItem;
- NSString *_cmdClsValue;
- }
- @property (weak, nonatomic) id <CommandClassControlNodeViewDelegate> delegate;
- @property (weak, nonatomic) ItemSubModel *subItem;
- @property (weak, nonatomic) CmdClsValueModel *selectedCmdClsValue;
- + (CommandClassControlNodeView *)viewForCommandClass:(CmdClsType)cmdClsType;
- @end
- @interface CommandClassControlNodeSensorBinaryView : CommandClassControlNodeView
- @property (weak, nonatomic) IBOutlet CustomLabel *lblSensor;
- @end
- @interface CommandClassControlNodeSensorMultiLevelView : CommandClassControlNodeView
- @end
- @interface CommandClassControlNodeValveView : CommandClassControlNodeView
- @property (weak, nonatomic) IBOutlet CustomButton *btnOpen;
- @property (weak, nonatomic) IBOutlet CustomButton *btnClose;
- @property (weak, nonatomic) IBOutlet NSLayoutConstraint *constraintBtnOpenWidth;
- @property (weak, nonatomic) IBOutlet NSLayoutConstraint *constraintBtnCloseWidth;
- @property (weak, nonatomic) IBOutlet NSLayoutConstraint *constraintBtnSpace;
- @property (weak, nonatomic) IBOutlet NSLayoutConstraint *constraintBtnSameWidth;
- - (IBAction)btnOpenTouched:(id)sender;
- - (IBAction)btnCloseTouched:(id)sender;
- @end
- @interface CommandClassControlNodeSwitchBinaryView : CommandClassControlNodeView
- @property (weak, nonatomic) IBOutlet CustomButton *btnOn;
- @property (weak, nonatomic) IBOutlet CustomButton *btnOff;
- @property (weak, nonatomic) IBOutlet NSLayoutConstraint *constraintBtnOnWidth;
- - (IBAction)btnOnTouched:(id)sender;
- - (IBAction)btnOffTouched:(id)sender;
- @end
- @interface CommandClassControlNodeSwitchMultiLevelView : CommandClassControlNodeView
- @property (weak, nonatomic) IBOutlet CustomButton *btnMultiLevel;
- - (IBAction)btnMutilLevelTouched:(id)sender;
- @end
|