MainViewController.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. //
  2. // MainViewController.h
  3. // kneet2
  4. //
  5. // Created by Jason Lee on 10/2/15.
  6. // Copyright © 2015 ntels. All rights reserved.
  7. //
  8. #import "JDViewController.h"
  9. @class ThingsViewController;
  10. @class CustomLabelButton;
  11. @class CustomImageView;
  12. @interface MainViewController : JDViewController
  13. #pragma mark - Properties
  14. @property (weak, nonatomic) IBOutlet UIView *tabBar;
  15. @property (weak, nonatomic) IBOutlet UIScrollView *scrollView;
  16. @property (weak, nonatomic) IBOutlet CustomButton *btnThings;
  17. @property (weak, nonatomic) IBOutlet CustomButton *btnRules;
  18. @property (weak, nonatomic) IBOutlet CustomButton *btnMembers;
  19. @property (weak, nonatomic) IBOutlet CustomButton *btnExtend;
  20. #pragma mark - Extend view
  21. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *constraintExpandViewTop;
  22. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *constraintExpandViewHeight;
  23. @property (weak, nonatomic) IBOutlet CustomButton *btnHomegrpImage;
  24. ////left Box
  25. //@property (weak, nonatomic) IBOutlet CustomLabel *lblNoticeCount;
  26. //@property (weak, nonatomic) IBOutlet CustomLabel *lblPushCount;
  27. //@property (weak, nonatomic) IBOutlet CustomImageView *imgvHomehubOff;
  28. ////extend view
  29. //@property (weak, nonatomic) IBOutlet CustomButton *btnHomeHub;
  30. //
  31. //@property (weak, nonatomic) IBOutlet CustomLabelButton *btnModeHome;
  32. //@property (weak, nonatomic) IBOutlet CustomLabelButton *btnModeAway;
  33. //@property (weak, nonatomic) IBOutlet CustomLabelButton *btnModeMorning;
  34. //@property (weak, nonatomic) IBOutlet CustomLabelButton *btnModeNight;
  35. //
  36. //@property (strong, nonatomic) IBOutletCollection(CustomLabelButton) NSArray *btnModes;
  37. @property (strong, nonatomic) ThingsViewController *tvc;
  38. #pragma mark - Instance Methods
  39. - (void)updateHomeHubStatusToChildViewController;
  40. - (void)updateCurrentViewController;
  41. - (void)checkTempPassword;
  42. - (void)loadThingsViewController;
  43. - (void)loadRulesViewController;
  44. - (void)loadMembersViewController;
  45. - (void)loadManagementViewController;
  46. - (void)updateRulesListRecently;
  47. - (IBAction)btnThingsTouched:(id)sender;
  48. - (IBAction)btnRuleTouched:(id)sender;
  49. - (IBAction)btnMemberTouched:(id)sender;
  50. - (IBAction)btnExtendTouched:(id)sender;
  51. //- (IBAction)btnCollapseTouched:(id)sender;
  52. ////Extend view
  53. //- (IBAction)btnProfileTouched:(id)sender;
  54. //- (IBAction)btnNoticeTouched:(id)sender;
  55. //- (IBAction)btnMessageBoxTouched:(id)sender;
  56. //- (IBAction)btnHomeHubTouched:(id)sender;
  57. //- (IBAction)btnSettingsTouched:(id)sender;
  58. ////mode
  59. //- (IBAction)btnModeHomeTouched:(id)sender;
  60. //- (IBAction)btnModeAwayTouched:(id)sender;
  61. //- (IBAction)btnModeMorningTouched:(id)sender;
  62. //- (IBAction)btnModeNightTouched:(id)sender;
  63. //
  64. //- (IBAction)btnDashboardRefresh:(id)sender;
  65. @end