RulesViewController.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. //
  2. // RulesViewController.h
  3. // kneet
  4. //
  5. // Created by Jason Lee on 3/18/15.
  6. // Copyright (c) 2015 ntels. All rights reserved.
  7. //
  8. #import "JDViewController.h"
  9. @class RuleModel;
  10. @interface RulesViewController : JDViewController
  11. #pragma mark - Properties
  12. @property (weak, nonatomic) IBOutlet UIImageView *imgvHubAlert;
  13. @property (weak, nonatomic) IBOutlet CustomLabel *lblTitle;
  14. @property (weak, nonatomic) IBOutlet CustomTableView *tableView;
  15. @property (weak, nonatomic) IBOutlet CustomButton *btnOption;
  16. @property (weak, nonatomic) IBOutlet UIView *editModeView;
  17. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *constraintEditModeRight;
  18. //add hub
  19. @property (weak, nonatomic) IBOutlet UIView *addHubContainerView;
  20. @property (weak, nonatomic) IBOutlet UIImageView *imgvConnectHub;
  21. @property (weak, nonatomic) IBOutlet CustomLabel *lblConnectHub;
  22. @property (weak, nonatomic) IBOutlet CustomLabel *lblSimpleMemberInfo;
  23. @property (weak, nonatomic) IBOutlet CustomLabel *lblLeaveAccount;
  24. #pragma mark - Instance Methods
  25. - (void)prepareViewDidLoad;
  26. //- (void)requestRuleListRecently;
  27. - (void)updateHomeHubStatusToRules;
  28. - (void)updateRule:(RuleModel *)scene;
  29. - (IBAction)btnAddHubTouched:(id)sender;
  30. - (IBAction)btnOptionTouched:(id)sender;
  31. - (IBAction)btnCloseOnEditModeTouched:(id)sender;
  32. @end
  33. @class CustomImageView;
  34. @class CustomLabel;
  35. @class CustomButton;
  36. @interface RulesTableViewCell : KNTableViewCell
  37. @property (weak, nonatomic) IBOutlet CustomImageView *imgvStatus;
  38. @property (weak, nonatomic) IBOutlet CustomImageView *imgvTrigger;
  39. @property (weak, nonatomic) IBOutlet CustomLabel *lblRuleName;
  40. @property (weak, nonatomic) IBOutlet CustomButton *btnRulePlay;
  41. @property (weak, nonatomic) IBOutlet CustomButton *btnDelete;
  42. @end
  43. @class CustomLabelButton;
  44. @interface RulesCreateTableViewCell : KNTableViewCell
  45. @property (weak, nonatomic) IBOutlet CustomLabelButton *btnAdd;
  46. @end