30 #import "toolkit.h" |
30 #import "toolkit.h" |
31 |
31 |
32 |
32 |
33 @protocol UiToolItem |
33 @protocol UiToolItem |
34 - (NSToolbarItem *) createItem:(NSToolbar*)toolbar |
34 - (NSToolbarItem *) createItem:(NSToolbar*)toolbar |
35 identifier:(NSString*)identifier; |
35 identifier:(NSString*)identifier |
|
36 object:(UiObject*)obj; |
|
37 |
|
38 - (void) addGroup:(int)group; |
|
39 |
|
40 - (UcxList*) groups; |
|
41 |
36 @end |
42 @end |
37 |
43 |
38 |
44 |
39 /* |
45 /* |
40 * UiToolbarStockItem |
46 * UiToolbarStockItem |
41 * |
47 * |
42 * creates a toolbar item from stock description |
48 * creates a toolbar item from stock description |
43 */ |
49 */ |
44 @interface UiToolbarStockItem : NSObject <UiToolItem> { |
50 @interface UiToolbarStockItem : NSObject <UiToolItem> { |
45 char *name; |
51 char *name; |
46 char *stockid; |
52 char *stockid; |
47 ui_callback callback; |
53 ui_callback callback; |
48 void *userdata; |
54 void *userdata; |
|
55 UcxList *groups; |
49 } |
56 } |
50 |
57 |
51 - (UiToolbarStockItem*) initWithIdentifier:(char*)identifier |
58 - (UiToolbarStockItem*) initWithIdentifier:(char*)identifier |
52 stockID:(char*)sid |
59 stockID:(char*)sid |
53 callback:(ui_callback)f |
60 callback:(ui_callback)f |
54 userdata:(void*)data; |
61 userdata:(void*)data; |
|
62 |
55 |
63 |
56 @end |
64 @end |
57 |
65 |
58 |
66 |
59 /* |
67 /* |