// // RulesAddViewController.h // kneet2 // // Created by Jason Lee on 11/20/15. // Copyright © 2015 ntels. All rights reserved. // #import "JDViewController.h" @class CustomCheckBox; @class CustomLabel; @class CustomImageView; @class CustomButton; @class CustomTextView; @class CustomTextField; @class RuleDetailModel; @interface RulesAddViewController : JDViewController #pragma mark - Properties @property (strong, nonatomic) RuleDetailModel *refRuleDetail; @property (weak, nonatomic) IBOutlet CustomLabel *lblTitle; @property (weak, nonatomic) IBOutlet CustomTableView *tableView; #pragma mark - Instance Methods - (IBAction)btnConfirmTouched:(id)sender; - (IBAction)btnCancelTouched:(id)sender; + (BOOL)hasDeleteNode:(ItemModel *)deviceItem; + (void)modifyAction:(ItemSubModel *)subItem refDevices:(NSMutableArray *)refDevices tableView:(CustomTableView *)tableView; @end @interface RulesAddTitleTableViewCell : KNTableViewCell2 @property (weak, nonatomic) IBOutlet CustomTextField *txtRuleTitle; @property (weak, nonatomic) IBOutlet CustomButton *btnConfirm; // 확인 버튼 @property (weak, nonatomic) IBOutlet CustomButton *btnDelete; @property (weak, nonatomic) IBOutlet CustomButton *btnAdd; @end @interface RulesAddHeaderTableViewCell : KNTableViewCell2 @property (weak, nonatomic) IBOutlet UIImageView *imgBg; @property (weak, nonatomic) IBOutlet CustomLabel *lblTitle; @property (weak, nonatomic) IBOutlet CustomButton *btnAdd; @end @interface RulesAddTableViewCell : KNTableViewCell2 @property (weak, nonatomic) IBOutlet CustomImageView *imgvIcon; @property (weak, nonatomic) IBOutlet CustomLabel *lblItem; @property (weak, nonatomic) IBOutlet CustomLabel *lblSubItem; @property (weak, nonatomic) IBOutlet CustomLabel *lblCondition; @property (weak, nonatomic) IBOutlet CustomButton *btnDelete; @end @interface RulesAddTextTableViewCell : KNTableViewCell2 @property (weak, nonatomic) IBOutlet UIImageView *imgTxtBg; @property (weak, nonatomic) IBOutlet CustomTextView *txtView; @property (weak, nonatomic) IBOutlet CustomButton *btnAdd; @property (weak, nonatomic) IBOutlet CustomButton *btnDelete; @property (weak, nonatomic) IBOutlet CustomButton *btnConfirm; - (void)registTvStatusChangeBlock:(void (^)(NSInteger tag, CGFloat height)) statusChangeBlock ; @end @interface RulesAddPushTableViewCell : KNTableViewCell2 @property (weak, nonatomic) IBOutlet CustomTextView *txvMessage; @property (weak, nonatomic) IBOutlet CustomButton *btnDelete; @property (weak, nonatomic) IBOutlet CustomButton *btnConfirm; // 확인 버튼 @end @interface RulesAddConditionHeaderTableViewCell : KNTableViewCell2 @property (weak, nonatomic) IBOutlet CustomCheckBox *chkConditions; @property (weak, nonatomic) IBOutlet CustomButton *btnConditions; @end @interface RulesAddConditionTableViewCell : KNTableViewCell2 @property (weak, nonatomic) IBOutlet UIView *container; @property (weak, nonatomic) IBOutlet NSLayoutConstraint *constraintContainerHeight; @end @interface RulesAddFooterTableViewCell : KNTableViewCell2 @end