RulesDetailViewController.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. //
  2. // RulesDetailViewController.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. #import "RulesRegisterViewController.h"
  10. @class RuleModel;
  11. @interface RulesDetailViewController : JDViewController
  12. #pragma mark - Properties
  13. @property (strong, nonatomic) RuleModel *rule;
  14. @property (weak, nonatomic) IBOutlet UITableView *tableView;
  15. @property (weak, nonatomic) IBOutlet CustomButton *btnEdit;
  16. @property (weak, nonatomic) IBOutlet CustomButton *btnDelete;
  17. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *constraintActionTabHeight;
  18. #pragma mark - Instance Methods
  19. - (IBAction)btnEditTouched:(id)sender;
  20. - (IBAction)btnDeleteTouched:(id)sender;
  21. + (void)cloneSubItemsForItemSubType:(NSArray<ItemModel> *)items conditions:(NSArray<ItemModel> *)conditions;
  22. //+ (void)fillCell:(RulesDetailTableViewCell *)cell withRuleItem:(ItemModel *)item;
  23. //+ (CGFloat)heightForSubItems:(ItemModel *)item;
  24. @end
  25. @class CustomLabel;
  26. @class CustomImageView;
  27. @class CustomTextView;
  28. @interface RulesDetailTitleViewCell : UITableViewCell
  29. @property (weak, nonatomic) IBOutlet CustomLabel *lblRuleTitle;
  30. @property (weak, nonatomic) IBOutlet CustomLabel *lblRuleOwner;
  31. @end
  32. @interface RulesDetailTableViewCell : RulesCreateTableViewCell
  33. //@property (weak, nonatomic) IBOutlet CustomImageView *imgvItem;
  34. //@property (weak, nonatomic) IBOutlet CustomLabel *lblItemName;
  35. //@property (weak, nonatomic) IBOutlet CustomLabel *lblSubItems;
  36. //
  37. //@property (weak, nonatomic) IBOutlet CustomImageView *imgvBg;
  38. //@property (weak, nonatomic) IBOutlet NSLayoutConstraint *constraintImgvBgHeight;
  39. //
  40. //@property (weak, nonatomic) IBOutlet UIView *lineview;
  41. @end
  42. @class CustomButton;
  43. @interface RulesDetailActivationViewCell : UITableViewCell
  44. @property (weak, nonatomic) IBOutlet CustomLabel *lblRunTitle;
  45. @property (weak, nonatomic) IBOutlet CustomButton *btnRun;
  46. @end
  47. @interface RulesDetailDisableViewCell : UITableViewCell
  48. @property (weak, nonatomic) IBOutlet CustomLabel *lblDesc;
  49. @end