#ifndef LIST_H
#define LIST_H
#include "toolkit.h"
#include "../ui/tree.h"
#include "../common/context.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct UiListView {
Widget widget;
UiVar *list;
ui_getvaluefunc getvalue;
} UiListView;
typedef struct UiListViewEventData {
UiEventData event;
UiVar *var;
} UiListViewEventData;
void* ui_strmodel_getvalue(
void *elm,
int column);
XmStringTable ui_create_stringlist(UiList *list, ui_getvaluefunc getvalue,
int *count);
void ui_listview_update(UiEvent *event, UiListView *view);
void ui_list_selection_callback (Widget widget, UiListViewEventData *event, XtPointer data);
UIWIDGET ui_combobox_var(UiObject *obj, UiVar *var, ui_getvaluefunc getvalue, ui_callback f,
void *udata);
#ifdef __cplusplus
}
#endif
#endif