gfx/skia/trunk/src/views/mac/SkOptionsTableView.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gfx/skia/trunk/src/views/mac/SkOptionsTableView.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,40 @@
     1.4 +
     1.5 +/*
     1.6 + * Copyright 2011 Google Inc.
     1.7 + *
     1.8 + * Use of this source code is governed by a BSD-style license that can be
     1.9 + * found in the LICENSE file.
    1.10 + */
    1.11 +
    1.12 +#import <Cocoa/Cocoa.h>
    1.13 +#import "SkNSView.h"
    1.14 +#import "SkOSMenu.h"
    1.15 +#import "SkEvent.h"
    1.16 +@interface SkOptionItem : NSObject {
    1.17 +    NSCell* fCell;
    1.18 +    const SkOSMenu::Item* fItem;
    1.19 +}
    1.20 +@property (nonatomic, assign) const SkOSMenu::Item* fItem;
    1.21 +@property (nonatomic, retain) NSCell* fCell;
    1.22 +@end
    1.23 +
    1.24 +@interface SkOptionsTableView : NSTableView <SkNSViewOptionsDelegate, NSTableViewDelegate, NSTableViewDataSource> {
    1.25 +    NSMutableArray* fItems;
    1.26 +    const SkTDArray<SkOSMenu*>* fMenus;
    1.27 +    BOOL fShowKeys;
    1.28 +}
    1.29 +@property (nonatomic, retain) NSMutableArray* fItems;
    1.30 +
    1.31 +- (void)registerMenus:(const SkTDArray<SkOSMenu*>*)menus;
    1.32 +- (void)updateMenu:(const SkOSMenu*)menu;
    1.33 +- (void)loadMenu:(const SkOSMenu*)menu;
    1.34 +- (IBAction)toggleKeyEquivalents:(id)sender;
    1.35 +
    1.36 +- (NSCell*)createAction;
    1.37 +- (NSCell*)createList:(NSArray*)items current:(int)index;
    1.38 +- (NSCell*)createSlider:(float)value min:(float)min max:(float)max;
    1.39 +- (NSCell*)createSwitch:(BOOL)state;
    1.40 +- (NSCell*)createTextField:(NSString*)placeHolder;
    1.41 +- (NSCell*)createTriState:(NSCellStateValue)state;
    1.42 +
    1.43 +@end

mercurial