ui/motif/tree.h

changeset 43
157a21a914ac
parent 39
4e66271541e8
child 44
a1571777eff2
--- a/ui/motif/tree.h	Fri May 16 16:19:46 2014 +0200
+++ b/ui/motif/tree.h	Fri May 16 17:39:45 2014 +0200
@@ -35,9 +35,29 @@
 extern "C" {
 #endif
 
-void ui_add_icon_gadget(Widget container, UiModelInfo *modelinfo, void *data);
+typedef struct UiTreeEventData {
+    UiObject    *obj;
+    ui_callback activate;
+    ui_callback selection;
+    void        *userdata;
+} UiTreeEventData;    
+
+void ui_add_icon_gadget(
+        Widget container,
+        UiModelInfo *modelinfo,
+        void *data,
+        int index);
 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);
+
 
 #ifdef	__cplusplus
 }

mercurial