#import #import "customcontrols/ControlButton.h" @interface ControlHandleView : UIView @property(nonatomic, weak) ControlButton* target; @end @interface CustomControlsViewController : UIViewController @property(nonatomic) UIGestureRecognizer* currentGesture; @property(nonatomic) NSMutableDictionary* cc_dictionary; @property(nonatomic) UIView* ctrlView; @property(nonatomic) ControlHandleView* resizeView; - (void)initKeyCodeMap; @end @interface CustomControlsViewController(UndoManager) - (void)doAddButton:(ControlButton *)button atIndex:(NSNumber *)index; - (void)doRemoveButton:(ControlButton *)button; - (void)doMoveOrResizeButton:(ControlButton *)button from:(CGRect)from to:(CGRect)to; - (void)doUpdateButton:(ControlButton *)button from:(NSMutableDictionary *)from to:(NSMutableDictionary *)to; @end @interface CCMenuViewController : UIViewController @property(nonatomic) ControlButton* targetButton; @end