ui/gtk/toolbar.h

branch
newapi
changeset 178
7c3ff86ee9d4
parent 176
bc63cb601f6d
child 275
132c7bcc6997
equal deleted inserted replaced
177:e79a60b3a7cb 178:7c3ff86ee9d4
28 28
29 #ifndef TOOLBAR_H 29 #ifndef TOOLBAR_H
30 #define TOOLBAR_H 30 #define TOOLBAR_H
31 31
32 #include "../ui/toolbar.h" 32 #include "../ui/toolbar.h"
33 #include <ucx/map.h> 33 #include <cx/map.h>
34 #include <ucx/list.h> 34 #include <cx/list.h>
35 35
36 #include "model.h" 36 #include "model.h"
37 #include "tree.h" 37 #include "tree.h"
38 38
39 #ifdef __cplusplus 39 #ifdef __cplusplus
59 const char *label; 59 const char *label;
60 const char *image; 60 const char *image;
61 ui_callback callback; 61 ui_callback callback;
62 void *userdata; 62 void *userdata;
63 const char *varname; 63 const char *varname;
64 UcxList *groups; 64 CxList *groups;
65 int isimportant; 65 int isimportant;
66 }; 66 };
67 67
68 struct UiStToolItem { 68 struct UiStToolItem {
69 UiToolItemI item; 69 UiToolItemI item;
70 const char *stockid; 70 const char *stockid;
71 ui_callback callback; 71 ui_callback callback;
72 void *userdata; 72 void *userdata;
73 const char *varname; 73 const char *varname;
74 UcxList *groups; 74 CxList *groups;
75 int isimportant; 75 int isimportant;
76 }; 76 };
77 77
78 struct UiToggleToolItem { 78 struct UiToggleToolItem {
79 UiToolItemI item; 79 UiToolItemI item;
80 const char *label; 80 const char *label;
81 const char *image; 81 const char *image;
82 const char *stockid; 82 const char *stockid;
83 UiInteger *value; 83 UiInteger *value;
84 const char *var; 84 const char *var;
85 UcxList *groups; 85 CxList *groups;
86 int isimportant; 86 int isimportant;
87 }; 87 };
88 88
89 struct UiToolbarComboBox { 89 struct UiToolbarComboBox {
90 UiToolItemI item; 90 UiToolItemI item;
95 }; 95 };
96 96
97 struct UiToolbarComboBoxNV { 97 struct UiToolbarComboBoxNV {
98 UiToolItemI item; 98 UiToolItemI item;
99 char *listname; 99 char *listname;
100 ui_getvaluefunc getvalue; 100 ui_getvaluefunc getvalue;
101 ui_callback callback; 101 ui_callback callback;
102 void *userdata; 102 void *userdata;
103 }; 103 };
104 104
105 void ui_toolbar_init(); 105 void ui_toolbar_init();

mercurial