35 |
35 |
36 #ifdef __cplusplus |
36 #ifdef __cplusplus |
37 extern "C" { |
37 extern "C" { |
38 #endif |
38 #endif |
39 |
39 |
40 typedef struct UiListView { |
40 |
41 Widget widget; |
|
42 UiVar *list; |
|
43 ui_getvaluefunc getvalue; |
|
44 } UiListView; |
|
45 |
|
46 typedef struct UiListViewEventData { |
|
47 UiEventData event; |
|
48 UiVar *var; |
|
49 } UiListViewEventData; |
|
50 |
|
51 void* ui_strmodel_getvalue(void *elm, int column); |
|
52 |
|
53 XmStringTable ui_create_stringlist(UiList *list, ui_getvaluefunc getvalue, int *count); |
|
54 void ui_listview_update(UiEvent *event, UiListView *view); |
|
55 void ui_list_selection_callback (Widget widget, UiListViewEventData *event, XtPointer data); |
|
56 |
|
57 UIWIDGET ui_combobox_var(UiObject *obj, UiVar *var, ui_getvaluefunc getvalue, ui_callback f, void *udata); |
|
58 |
41 |
59 #ifdef __cplusplus |
42 #ifdef __cplusplus |
60 } |
43 } |
61 #endif |
44 #endif |
62 |
45 |