#ifndef TREE_H
#define TREE_H
#include "../ui/tree.h"
#include "../common/context.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct UiTreeEventData {
UiObject *obj;
ui_callback activate;
ui_callback selection;
void *userdata;
UiListSelection *last_selection;
} UiTreeEventData;
typedef struct UiTableView {
Widget widget;
UiVar *var;
UiModel *model;
} UiTableView;
void ui_table_update(UiEvent *event, UiTableView *view);
int ui_add_icon_gadget(Widget container, UiModel *model,
void *data);
char* ui_type_to_string(UiModelType type,
void *data, Boolean *free);
void ui_table_action_callback(
Widget widget,
UiTreeEventData *event,
XmContainerSelectCallbackStruct *sel);
void ui_table_select_callback(
Widget widget,
UiTreeEventData *event,
XmContainerSelectCallbackStruct *sel);
UiListSelection* ui_list_selection(XmContainerSelectCallbackStruct *xs);
Boolean ui_compare_list_selection(UiListSelection *s1, UiListSelection *s2);
#ifdef __cplusplus
}
#endif
#endif