RulesConditionViewController.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. //
  2. // RulesConditionViewController.h
  3. // kneet2
  4. //
  5. // Created by Jason Lee on 11/25/15.
  6. // Copyright © 2015 ntels. All rights reserved.
  7. //
  8. #import "JDViewController.h"
  9. @class ItemModel;
  10. @class CustomImageView;
  11. @class CustomLabel;
  12. @class CustomButton;
  13. @class CustomTableView;
  14. @interface RulesConditionViewController : JDViewController
  15. #pragma mark - Properties
  16. @property (weak, nonatomic) NSMutableArray<ItemModel> *conditions;
  17. @property (weak, nonatomic) NSMutableArray<ItemModel> *refDevices;
  18. @property (assign, nonatomic) BOOL isShowingMode;
  19. @property (weak, nonatomic) IBOutlet CustomTableView *tableView;
  20. @property (assign, nonatomic) CGFloat tableHeight;
  21. - (void)btnAddModeTouched:(id)sender;
  22. - (void)btnAddDurationTouched:(id)sender;
  23. - (void)btnAddDeviceTouched:(id)sender;
  24. @end
  25. @interface RulesConditionHeaderTableViewCell : KNTableViewCell2
  26. @property (weak, nonatomic) IBOutlet CustomLabel *lblTitle;
  27. @property (weak, nonatomic) IBOutlet CustomButton *btnAdd;
  28. @end
  29. @interface RulesConditionDeviceTableViewCell : KNTableViewCell2
  30. @property (weak, nonatomic) IBOutlet CustomImageView *imgvIcon;
  31. @property (weak, nonatomic) IBOutlet CustomLabel *lblItem;
  32. @property (weak, nonatomic) IBOutlet CustomLabel *lblSubItem;
  33. @property (weak, nonatomic) IBOutlet CustomLabel *lblCondition;
  34. @property (weak, nonatomic) IBOutlet CustomButton *btnDelete;
  35. @property (weak, nonatomic) IBOutlet UIView *bottomLine;
  36. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *constraintConditionLabelRight;
  37. @end
  38. @interface RulesConditionTableViewCell : KNTableViewCell2
  39. @property (weak, nonatomic) IBOutlet CustomImageView *imgvIcon;
  40. @property (weak, nonatomic) IBOutlet CustomLabel *lblItem;
  41. @property (weak, nonatomic) IBOutlet CustomButton *btnDelete;
  42. @property (weak, nonatomic) IBOutlet UIView *bottomLine;
  43. @end
  44. @interface RulesConditionFooterTableViewCell : KNTableViewCell2
  45. @end