blob: 13d6c1b8a478af591069f15eba3544d7da15cef6 [file] [log] [blame]
yangsu@google.com59870452011-08-02 13:20:22 +00001#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.com867cbd82012-09-20 15:45:41 +000032- (void)updateMenu:(SkOSMenu*)menu;
33- (void)loadMenu:(SkOSMenu*)menu;
yangsu@google.com59870452011-08-02 13:20:22 +000034
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.comf3493f02011-08-08 15:12:05 +000039- (UITableViewCell*)createTextField:(NSString*)title default:(NSString*)value;
yangsu@google.com59870452011-08-02 13:20:22 +000040- (UITableViewCell*)createList:(NSString*)title default:(NSString*)value;
41
42@end