yangsu@google.com | 5987045 | 2011-08-02 13:20:22 +0000 | [diff] [blame] | 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; |
| 11 | @property (nonatomic, retain) UITableViewCell* fCell; |
| 12 | |
| 13 | @end |
| 14 | |
| 15 | @interface SkOptionListItem : SkOptionItem{ |
| 16 | SkOptionListController* fOptions; |
| 17 | } |
| 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; |
caryclark@google.com | 867cbd8 | 2012-09-20 15:45:41 +0000 | [diff] [blame^] | 32 | - (void)updateMenu:(SkOSMenu*)menu; |
| 33 | - (void)loadMenu:(SkOSMenu*)menu; |
yangsu@google.com | 5987045 | 2011-08-02 13:20:22 +0000 | [diff] [blame] | 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; |
yangsu@google.com | f3493f0 | 2011-08-08 15:12:05 +0000 | [diff] [blame] | 39 | - (UITableViewCell*)createTextField:(NSString*)title default:(NSString*)value; |
yangsu@google.com | 5987045 | 2011-08-02 13:20:22 +0000 | [diff] [blame] | 40 | - (UITableViewCell*)createList:(NSString*)title default:(NSString*)value; |
| 41 | |
| 42 | @end |