1 #import <UIKit/UIKit.h> 2 #import "SkOptionListController.h" 3 #import "SkOSMenu.h" 4 #import "SkEvent.h" 5 #import "SkUIView.h" 6 @interface SkOptionItem : NSObject { 7 UITableViewCell* fCell; 8 const SkOSMenu::Item* fItem; 9 } 10 @property (nonatomic, assign) const SkOSMenu::Item* fItem; property(nonatomic,retain)11@property (nonatomic, retain) UITableViewCell* fCell; 12 13 @end 14 15 @interface SkOptionListItem : SkOptionItem{ 16 SkOptionListController* fOptions; 17 } property(nonatomic,retain)18@property (nonatomic, retain) SkOptionListController* fOptions; 19 20 @end 21 22 @interface SkOptionsTableViewController : UITableViewController <UINavigationControllerDelegate, SkUIViewOptionsDelegate> { 23 NSMutableArray* fItems; 24 const SkTDArray<SkOSMenu*>* fMenus; 25 SkOptionListItem* fCurrentList; 26 } 27 28 @property (nonatomic, retain) NSMutableArray* fItems; 29 @property (nonatomic, retain) SkOptionListItem* fCurrentList; 30 31 - (void)registerMenus:(const SkTDArray<SkOSMenu*>*)menus; 32 - (void)updateMenu:(SkOSMenu*)menu; 33 - (void)loadMenu:(SkOSMenu*)menu; 34 35 - (UITableViewCell*)createAction:(NSString*)title; 36 - (UITableViewCell*)createSlider:(NSString*)title min:(float)min max:(float)max default:(float)value; 37 - (UITableViewCell*)createSwitch:(NSString*)title default:(BOOL)state; 38 - (UITableViewCell*)createTriState:(NSString*)title default:(int)index; 39 - (UITableViewCell*)createTextField:(NSString*)title default:(NSString*)value; 40 - (UITableViewCell*)createList:(NSString*)title default:(NSString*)value; 41 42 @end 43