1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29 #ifndef LIST_H
30 #define LIST_H
31
32 #include "toolkit.h"
33 #include "../ui/tree.h"
34 #include "../common/context.h"
35
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39
40 typedef struct UiListView {
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
59 #ifdef __cplusplus
60 }
61 #endif
62
63 #endif
64
65