1 #ifndef GTK_LDAPTREEITEM_H
2 #define GTK_LDAPTREEITEM_H
6 #include <Gtk_LdapTree.h>
9 #include "icons/root_node.h"
10 #include "icons/branch_node.h"
11 #include "icons/leaf_node.h"
12 #include "icons/alias_node.h"
13 #include "icons/rfc822mailgroup_node.h"
14 #include "icons/general_node.h"
15 #include "icons/monitor.h"
24 class Gtk_LdapTreeItem : public Gtk_TreeItem {
29 char *aliasedObjectName;
31 LDAPMessage *result_identifier;
33 Gtk_Notebook *notebook;
46 Gtk_LdapTreeItem(char *c, My_Window *w, LDAP *ld);
47 Gtk_LdapTreeItem(GtkTreeItem *t);
50 gchar* getAttribute(char *c);
51 Gtk_LdapTree* getSubtree(LDAP *ld, int i);
54 void createPopupMenu();
57 // void select_impl();
61 // gint button_press_event_impl(GdkEventButton *p0);
62 void item_drag_data_received (GdkDragContext *context,
63 gint x, gint y, GtkSelectionData *data,
64 guint info, guint32 time);
65 gboolean target_drag_drop ( GdkDragContext *context,
66 gint x, gint y, guint time);
68 void source_drag_data_get(GdkDragContext *context,
69 GtkSelectionData *selection_data,
70 guint info, guint32 time);
71 void source_drag_data_delete(GdkDragContext *context);
72 void target_drag_leave(GdkDragContext *context, guint time);
75 static GtkTargetEntry target_table[] = {
76 { "STRING", 0, Gtk_LdapTreeItem::TARGET_STRING },
77 { "text/plain", 0, Gtk_LdapTreeItem::TARGET_STRING },
78 { "text/uri-list", 0, Gtk_LdapTreeItem::TARGET_URL },
79 { "application/x-rootwin-drop", 0, Gtk_LdapTreeItem::TARGET_ROOTWIN }
82 static guint n_targets = sizeof(target_table) / sizeof(target_table[0]);