~noskcaj/ubuntu/trusty/ekiga/ftbfs

« back to all changes in this revision

Viewing changes to lib/gui/gmpreferences.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2006-01-28 18:49:20 UTC
  • Revision ID: james.westby@ubuntu.com-20060128184920-v525ihmiv7id40xs
Tags: upstream-1.99.0
ImportĀ upstreamĀ versionĀ 1.99.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
/* GnomeMeeting -- A Video-Conferencing application
 
3
 * Copyright (C) 2000-2006 Damien Sandras
 
4
 *
 
5
 * This program is free software; you can redistribute it and/or modify
 
6
 * it under the terms of the GNU General Public License as published by
 
7
 * the Free Software Foundation; either version 2 of the License, or
 
8
 * (at your option) any later version.
 
9
 *
 
10
 * This program is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 * GNU General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU General Public License
 
16
 * along with this program; if not, write to the Free Software
 
17
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
18
 *
 
19
 *
 
20
 * GnomeMeting is licensed under the GPL license and as a special exception,
 
21
 * you have permission to link or otherwise combine this program with the
 
22
 * programs OpenH323 and Pwlib, and distribute the combination, without
 
23
 * applying the requirements of the GNU GPL to the OpenH323 program, as long
 
24
 * as you do follow the requirements of the GNU GPL for all the rest of the
 
25
 * software thus combined.
 
26
 */
 
27
 
 
28
 
 
29
/*
 
30
 *                         gnome_prefs_window.c  -  description 
 
31
 *                         ------------------------------------
 
32
 *   begin                : Mon Oct 15 2003, but based on older code
 
33
 *   copyright            : (C) 2000-2006 by Damien Sandras
 
34
 *   description          : Helpers to create GNOME compliant prefs windows.
 
35
 *
 
36
 */
 
37
 
 
38
#include <gtk/gtk.h>
 
39
 
 
40
G_BEGIN_DECLS
 
41
 
 
42
 
 
43
/* Common notice 
 
44
 *
 
45
 * The created widgets are associated to a config key. They have the value
 
46
 * of the config key as initial value and they get updated when the config
 
47
 * value changes.
 
48
 *
 
49
 * You have to create a prefs window with gnome_prefs_window_new. You
 
50
 * can create categories of options with gnome_prefs_window_section_new
 
51
 * and subcategories with gnome_prefs_window_subsection_new. You can fill in
 
52
 * those subcategories by blocks of options using gnome_prefs_subsection_new
 
53
 * and then add entries, toggles and such to those blocks using
 
54
 * the functions below.
 
55
 */
 
56
 
 
57
 
 
58
/* DESCRIPTION  :  /
 
59
 * BEHAVIOR     :  Creates a GtkEntry associated with a config key and returns
 
60
 *                 the result.
 
61
 *                 The first parameter is the section in which 
 
62
 *                 the GtkEntry should be attached. The other parameters are
 
63
 *                 the text label, the config key, the tooltip, the row where
 
64
 *                 to attach it in the section, and if the label and GtkEntry
 
65
 *                 should be packed together or aligned with others in the
 
66
 *                 section they belong to.
 
67
 * PRE          :  /
 
68
 */
 
69
GtkWidget *gnome_prefs_entry_new (GtkWidget *,
 
70
                                  gchar *,
 
71
                                  gchar *,
 
72
                                  gchar *,
 
73
                                  int,
 
74
                                  gboolean);
 
75
 
 
76
 
 
77
/* DESCRIPTION  :  /
 
78
 * BEHAVIOR     :  Creates a GtkToggleButton associated with a config key and
 
79
 *                 returns the result.
 
80
 *                 The first parameter is the section in which the 
 
81
 *                 GtkToggleButton should be attached. The other parameters are
 
82
 *                 the text label, the config key, the tooltip, the row where
 
83
 *                 to attach it in the section.
 
84
 * PRE          :  /
 
85
 */
 
86
GtkWidget *gnome_prefs_toggle_new (GtkWidget *,
 
87
                                   gchar *,
 
88
                                   gchar *, 
 
89
                                   gchar *,
 
90
                                   int);
 
91
 
 
92
 
 
93
/* DESCRIPTION  :  /
 
94
 * BEHAVIOR     :  Creates a GtkHScale associated with a config key and
 
95
 *                 returns the result.
 
96
 *                 The first parameter is the section in which 
 
97
 *                 the GtkHScale should be attached. The other parameters
 
98
 *                 are the text labels, the config key, the tooltip, the
 
99
 *                 minimal and maximal values, the incrementation step,
 
100
 *                 the row where to attach it in the section.
 
101
 * PRE          :  /
 
102
 */
 
103
GtkWidget *gnome_prefs_scale_new (GtkWidget *,       
 
104
                                  gchar *,
 
105
                                  gchar *,
 
106
                                  gchar *,       
 
107
                                  gchar *,
 
108
                                  double,
 
109
                                  double,
 
110
                                  double,
 
111
                                  int);
 
112
 
 
113
 
 
114
/* DESCRIPTION  :  /
 
115
 * BEHAVIOR     :  Creates a GtkSpinButton associated with a config key and
 
116
 *                 returns the result.
 
117
 *                 The first parameter is the section in which 
 
118
 *                 the GtkSpinButton should be attached. The other parameters
 
119
 *                 are the text label, the config key, the tooltip, the
 
120
 *                 minimal and maximal values, the incrementation step,
 
121
 *                 the row where to attach it in the section, 
 
122
 *                 the rest of the label, if any, and if the label and widget
 
123
 *                 should be packed together or aligned with others in the
 
124
 *                 section they belong to. 
 
125
 * PRE          :  The gboolean must be TRUE if the rest of the label is given.
 
126
 */
 
127
GtkWidget *gnome_prefs_spin_new (GtkWidget *,
 
128
                                 gchar *,
 
129
                                 gchar *,
 
130
                                 gchar *,
 
131
                                 double,
 
132
                                 double,
 
133
                                 double,
 
134
                                 int,
 
135
                                 gchar *,
 
136
                                 gboolean);
 
137
 
 
138
 
 
139
/* DESCRIPTION  :  /
 
140
 * BEHAVIOR     :  Creates a range with 2 GtkSpinButtons associated with two
 
141
 *                 config keys.
 
142
 *                 The first parameter is the section in which 
 
143
 *                 the GtkSpinButton should be attached. The other parameters
 
144
 *                 are the first part of the label, a pointer that will be
 
145
 *                 updated to point to the first GtkSpinButton, the second
 
146
 *                 part of the text label, a pointer that will be updated
 
147
 *                 to point to the second GtkSpinButton, the third part
 
148
 *                 of the text label, the 2 config keys, the 2 tooltips, the
 
149
 *                 2 minimal, the 2 maximal values, the incrementation step,
 
150
 *                 the row where to attach it in the section.
 
151
 * PRE          :  /
 
152
 */
 
153
void gnome_prefs_range_new (GtkWidget *,
 
154
                            gchar *,
 
155
                            GtkWidget **,
 
156
                            gchar *,
 
157
                            GtkWidget **,
 
158
                            gchar *,
 
159
                            gchar *,
 
160
                            gchar *,
 
161
                            gchar *,
 
162
                            gchar *,
 
163
                            double,
 
164
                            double,
 
165
                            double,
 
166
                            double,
 
167
                            double,
 
168
                            int);
 
169
 
 
170
 
 
171
/* DESCRIPTION  :  /
 
172
 * BEHAVIOR     :  Creates a GtkOptionMenu associated with an integer config
 
173
 *                 key and returns the result.
 
174
 *                 The first parameter is the section in which 
 
175
 *                 the GtkEntry should be attached. The other parameters are
 
176
 *                 the text label, the possible values for the menu, the config
 
177
 *                 key, the tooltip, the row where to attach it in the section.
 
178
 * PRE          :  /
 
179
 */
 
180
GtkWidget *gnome_prefs_int_option_menu_new (GtkWidget *,
 
181
                                            gchar *,
 
182
                                            gchar **, 
 
183
                                            gchar *,
 
184
                                            gchar *,
 
185
                                            int);
 
186
 
 
187
 
 
188
/* DESCRIPTION  :  /
 
189
 * BEHAVIOR     :  Creates a GtkOptionMenu associated with a string config
 
190
 *                 key and returns the result.
 
191
 *                 The first parameter is the section in which 
 
192
 *                 the GtkEntry should be attached. The other parameters are
 
193
 *                 the text label, the possible values for the menu, the config
 
194
 *                 key, the tooltip, the row where to attach it in the section.
 
195
 * PRE          :  The array ends with NULL. 
 
196
 */
 
197
GtkWidget *gnome_prefs_string_option_menu_new (GtkWidget *,
 
198
                                               gchar *,
 
199
                                               gchar **,
 
200
                                               gchar *,
 
201
                                               gchar *,
 
202
                                               int);
 
203
 
 
204
 
 
205
/* DESCRIPTION  :  /
 
206
 * BEHAVIOR     :  Updates the content of a GtkOptionMenu associated with
 
207
 *                 a string config key. The first parameter is the menu,
 
208
 *                 the second is the array of possible values, and the
 
209
 *                 last one is the config key. 
 
210
 * PRE          :  The array ends with NULL.
 
211
 */
 
212
void gnome_prefs_string_option_menu_update (GtkWidget *,
 
213
                                            gchar **,
 
214
                                            gchar *);
 
215
 
 
216
 
 
217
/* DESCRIPTION  :  /
 
218
 * BEHAVIOR     :  Creates a subsection inside a section of a prefs window.
 
219
 *                 The parameters are the prefs window, the section of the
 
220
 *                 prefs window in which the newly created subsection must
 
221
 *                 be added, the title of the frame, the number of rows
 
222
 *                 and of columns. Widgets can be attached to the returned
 
223
 *                 subsection.
 
224
 * PRE          :  /
 
225
 */
 
226
GtkWidget *gnome_prefs_subsection_new (GtkWidget *,
 
227
                                       GtkWidget *,
 
228
                                       gchar *,
 
229
                                       int,
 
230
                                       int);
 
231
 
 
232
/* DESCRIPTION  :  /
 
233
 * BEHAVIOR     :  Creates a new prefs window. The parameter is a filename
 
234
 *                 corresponding to the logo displayed by default. Returns
 
235
 *                 the created window which still has to be connected to the
 
236
 *                 signals.
 
237
 * PRE          :  /
 
238
 */
 
239
GtkWidget *gnome_prefs_window_new (gchar *);
 
240
 
 
241
 
 
242
/* DESCRIPTION  :  /
 
243
 * BEHAVIOR     :  Creates a new section in the given prefs window.
 
244
 *                 The parameter are the prefs window and the prefs
 
245
 *                 window section name.
 
246
 * PRE          :  /
 
247
 */
 
248
void gnome_prefs_window_section_new (GtkWidget *,
 
249
                                     gchar *);
 
250
 
 
251
 
 
252
/* DESCRIPTION  :  /
 
253
 * BEHAVIOR     :  Creates a new subsection in the given prefs window and
 
254
 *                 returns it. The parameter are the prefs window and the
 
255
 *                 prefs window subsection name. General subsections can
 
256
 *                 be created in the returned gnome prefs window subsection
 
257
 *                 and widgets can be attached to them.
 
258
 * PRE          :  /
 
259
 */
 
260
GtkWidget *gnome_prefs_window_subsection_new (GtkWidget *,
 
261
                                              gchar *);
 
262
 
 
263
G_END_DECLS