]> git.sur5r.net Git - openldap/blob - contrib/gtk-tool/Gtk_LdapTreeItem.h
Misc. fixes and additions to gtk-tool - works and looks nicer now.
[openldap] / contrib / gtk-tool / Gtk_LdapTreeItem.h
1 #ifndef GTK_LDAPTREEITEM_H
2 #define GTK_LDAPTREEITEM_H
3 #include "gtk.h"
4 #include <My_Window.h>
5 #include <lber.h>
6 #include <ldap.h>
7 /*#include "XPMLabelBox.h"*/
8
9 #define ROOT_NODE 1
10 #define BRANCH_NODE 2
11 #define LEAF_NODE 3
12
13 class My_Window;
14
15 class Gtk_LdapTreeItem : public Gtk_TreeItem {
16 public:
17         char *dn;
18         char *rdn;
19         LDAP *ld;
20         LDAPMessage *result_identifier;
21         My_Window *par;
22         Gtk_Notebook *notebook;
23         Gtk_HBox *xpm_label;
24         Gtk_LdapTreeItem();
25         Gtk_LdapTreeItem(char *c, My_Window *w);
26         Gtk_LdapTreeItem(GtkTreeItem *t);
27         void setType(int t);
28         int getDetails();
29         void select_impl();
30         void collapse_impl();
31         void expand_impl();
32 };
33 #endif