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