RulesViewController.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 CustomLabel *lblTitle;
  13. @property (weak, nonatomic) IBOutlet UIView *addHubContainerView;
  14. @property (weak, nonatomic) IBOutlet CustomTableView *tableView;
  15. @property (weak, nonatomic) IBOutlet CustomButton *btnAddHub;
  16. @property (weak, nonatomic) IBOutlet UIView *editModeView;
  17. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *constraintEditModeRight;
  18. #pragma mark - Instance Methods
  19. - (void)prepareViewDidLoad;
  20. - (void)updateHomeHubStatusToRules;
  21. - (void)updateRule:(RuleModel *)scene;
  22. - (IBAction)btnAddHubTouched:(id)sender;
  23. - (IBAction)btnOptionTouched:(id)sender;
  24. - (IBAction)btnCloseOnEditModeTouched:(id)sender;
  25. @end
  26. @class CustomImageView;
  27. @class CustomLabel;
  28. @class CustomButton;
  29. @interface RulesTableViewCell : KNTableViewCell
  30. @property (weak, nonatomic) IBOutlet CustomImageView *imgvTrigger;
  31. @property (weak, nonatomic) IBOutlet CustomLabel *lblRuleName;
  32. @property (weak, nonatomic) IBOutlet CustomButton *btnRulePlay;
  33. @end