2
GQ -- a GTK-based LDAP client
3
Copyright (C) 1998-2003 Bert Vermeulen
4
Copyright (C) 2002-2003 Peter Stamfest
6
This program is released under the Gnu General Public License with
7
the additional exemption that compiling, linking, and/or using
10
This program is free software; you can redistribute it and/or modify
11
it under the terms of the GNU General Public License as published by
12
the Free Software Foundation; either version 2 of the License, or
13
(at your option) any later version.
15
This program is distributed in the hope that it will be useful,
16
but WITHOUT ANY WARRANTY; without even the implied warranty of
17
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
GNU General Public License for more details.
20
You should have received a copy of the GNU General Public License
21
along with this program; if not, write to the Free Software
22
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25
#ifndef GQ_INPUT_H_INCLUDED
26
#define GQ_INPUT_H_INCLUDED
33
GtkWidget *parent_window;
34
GtkWidget *target_vbox;
36
GtkWidget *hide_attr_button;
38
GtkWidget *add_as_new_button;
40
GQTreeWidget *ctreeroot;
41
GQTreeWidgetNode *ctree_refresh;
42
GtkWidget *selected_ctree_refresh;
46
struct formfill *focusform;
61
struct inputform *new_inputform();
62
void free_inputform(struct inputform *iform);
64
#define inputform_free free_inputform
66
void save_input_snapshot(int error_context,
67
struct inputform *iform, const char *state_name);
68
void restore_input_snapshot(int error_context,
69
struct inputform *iform, const char *state_name);
71
/* Maybe we will align attribute labels differently in the future.. */
72
#define LABEL_JUSTIFICATION 0.0
73
#define CONTAINER_BORDER_WIDTH 6
75
void create_form_window(struct inputform *form);
76
void create_form_content(struct inputform *form);
77
void build_or_update_inputform(int error_context,
78
struct inputform *form, gboolean build);
79
void build_inputform(int error_context,
80
struct inputform *iform);
81
void edit_entry(GqServer *server, const char *dn);
82
void new_from_entry(int error_context, GqServer *server,
84
void update_formlist(struct inputform *iform);
85
void clear_table(struct inputform *iform);
86
void mod_entry_from_formlist(struct inputform *iform);
87
int change_rdn(struct inputform *iform, int context);
88
LDAPMod **formdiff_to_ldapmod(GList *oldlist, GList *newlist);
89
char **glist_to_mod_values(GList *values);
90
struct berval **glist_to_mod_bvalues(GList *values);
91
int find_value(GList *list, GByteArray *value);
92
void destroy_editwindow(struct inputform *iform);
93
void add_row(GtkWidget *button, struct inputform *form);
94
GtkWidget *gq_new_arrowbutton(struct inputform *iform);
95
GtkWidget *find_focusbox(GList *formlist);
96
void set_hide_empty_attributes(int hidden, struct inputform *form);
98
GdkWindow *get_any_gdk_window(GtkWidget *w);