~ubuntu-branches/ubuntu/trusty/gq/trusty

« back to all changes in this revision

Viewing changes to src/input.h

  • Committer: Bazaar Package Importer
  • Author(s): Barry deFreese
  • Date: 2009-10-25 23:34:56 UTC
  • mfrom: (1.1.4 upstream) (3.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20091025233456-i794n3yg2cff930j
Tags: 1.3.4-1
* QA upload.
  + Set maintainer to Debian QA Group <packages@qa.debian.org>.
* New upstream release. (Closes: #534705).
  + Does not segfault on amd64. (Closes: #444312).
  + Remove all existing patches and change patch system to quilt.
  + Replace dpatch build-dep with quilt.
* 01_desktop_file.diff - Remove encoding and bogus categories 
  from desktop file.
* Copy in config.{sub,guess} on configure, rm them on clean.
  + Add build-dep on autotools-dev.
* Make clean not ignore errors.
* Add copyright holders and version path to GPL (GPL-2).
* Update watch file to use SF redirector. (Closes: #449749).
* Bump debhelper build-dep and compat to 5.
* Bump Standards Version to 3.8.3.
  + Menu policy transition.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
    GQ -- a GTK-based LDAP client
3
 
    Copyright (C) 1998-2003 Bert Vermeulen
4
 
    Copyright (C) 2002-2003 Peter Stamfest
5
 
 
6
 
    This program is released under the Gnu General Public License with
7
 
    the additional exemption that compiling, linking, and/or using
8
 
    OpenSSL is allowed.
9
 
 
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.
14
 
 
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.
19
 
 
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
23
 
*/
24
 
 
25
 
#ifndef GQ_INPUT_H_INCLUDED
26
 
#define GQ_INPUT_H_INCLUDED
27
 
 
28
 
#include <glib.h>
29
 
#include <gtk/gtk.h>
30
 
#include "common.h"
31
 
 
32
 
struct inputform {
33
 
     GtkWidget *parent_window;
34
 
     GtkWidget *target_vbox;
35
 
     GtkWidget *scwin;
36
 
     GtkWidget *hide_attr_button;
37
 
     GtkWidget *table;
38
 
     GtkWidget *add_as_new_button;
39
 
     GtkWidget *dn_widget;
40
 
     GQTreeWidget *ctreeroot;
41
 
     GQTreeWidgetNode *ctree_refresh;
42
 
     GtkWidget *selected_ctree_refresh;
43
 
     void *activate;
44
 
     GList *formlist;
45
 
     GList *oldlist;
46
 
     struct formfill *focusform;
47
 
     int edit;
48
 
     int close_window;
49
 
     int hide_status;
50
 
     GqServer *server;
51
 
     char *dn;
52
 
     char *olddn;
53
 
};
54
 
 
55
 
struct jumptable {
56
 
     char *jumpstring;
57
 
     void *jumpfunc;
58
 
};
59
 
 
60
 
 
61
 
struct inputform *new_inputform();
62
 
void free_inputform(struct inputform *iform);
63
 
/* old name */
64
 
#define inputform_free free_inputform
65
 
 
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);
70
 
 
71
 
/* Maybe we will align attribute labels differently in the future.. */
72
 
#define LABEL_JUSTIFICATION     0.0
73
 
#define CONTAINER_BORDER_WIDTH  6
74
 
 
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,
83
 
                    const char *dn);
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);
97
 
 
98
 
GdkWindow *get_any_gdk_window(GtkWidget *w);
99
 
 
100
 
#endif