f3493f0e1f
http://codereview.appspot.com/4843041/ http://codereview.appspot.com/4826061/ http://codereview.appspot.com/4832044/ http://codereview.appspot.com/4798055/ git-svn-id: http://skia.googlecode.com/svn/trunk@2058 2bbb7eff-a529-9590-31e7-b0007b416f81
33 lines
1.0 KiB
Objective-C
33 lines
1.0 KiB
Objective-C
#import <Cocoa/Cocoa.h>
|
|
#import "SkNSView.h"
|
|
#import "SkOSMenu.h"
|
|
#import "SkEvent.h"
|
|
@interface SkOptionItem : NSObject {
|
|
NSCell* fCell;
|
|
const SkOSMenu::Item* fItem;
|
|
}
|
|
@property (nonatomic, assign) const SkOSMenu::Item* fItem;
|
|
@property (nonatomic, retain) NSCell* fCell;
|
|
@end
|
|
|
|
@interface SkOptionsTableView : NSTableView <SkNSViewOptionsDelegate, NSTableViewDelegate, NSTableViewDataSource> {
|
|
NSMutableArray* fItems;
|
|
const SkTDArray<SkOSMenu*>* fMenus;
|
|
BOOL fShowKeys;
|
|
}
|
|
@property (nonatomic, retain) NSMutableArray* fItems;
|
|
|
|
- (void)registerMenus:(const SkTDArray<SkOSMenu*>*)menus;
|
|
- (void)updateMenu:(const SkOSMenu*)menu;
|
|
- (void)loadMenu:(const SkOSMenu*)menu;
|
|
- (IBAction)toggleKeyEquivalents:(id)sender;
|
|
|
|
- (NSCell*)createAction;
|
|
- (NSCell*)createList:(NSArray*)items current:(int)index;
|
|
- (NSCell*)createSlider:(float)value min:(float)min max:(float)max;
|
|
- (NSCell*)createSwitch:(BOOL)state;
|
|
- (NSCell*)createTextField:(NSString*)placeHolder;
|
|
- (NSCell*)createTriState:(NSCellStateValue)state;
|
|
|
|
@end
|