~ubuntu-branches/ubuntu/maverick/gimp/maverick-updates

« back to all changes in this revision

Viewing changes to app/widgets/gimppropwidgets.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2005-12-09 19:44:52 UTC
  • Revision ID: james.westby@ubuntu.com-20051209194452-yggpemjlofpjqyf4
Tags: upstream-2.2.9
ImportĀ upstreamĀ versionĀ 2.2.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* The GIMP -- an image manipulation program
 
2
 * Copyright (C) 1995-1997 Spencer Kimball and Peter Mattis
 
3
 *
 
4
 * gimppropwidgets.h
 
5
 * Copyright (C) 2002 Michael Natterer <mitch@gimp.org>
 
6
 *
 
7
 * This program is free software; you can redistribute it and/or modify
 
8
 * it under the terms of the GNU General Public License as published by
 
9
 * the Free Software Foundation; either version 2 of the License, or
 
10
 * (at your option) any later version.
 
11
 *
 
12
 * This program is distributed in the hope that it will be useful,
 
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
 * GNU General Public License for more details.
 
16
 *
 
17
 * You should have received a copy of the GNU General Public License
 
18
 * along with this program; if not, write to the Free Software
 
19
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
20
 */
 
21
 
 
22
#ifndef __GIMP_PROP_WIDGETS_H__
 
23
#define __GIMP_PROP_WIDGETS_H__
 
24
 
 
25
 
 
26
/*  GParamBoolean  */
 
27
 
 
28
GtkWidget     * gimp_prop_check_button_new        (GObject     *config,
 
29
                                                   const gchar *property_name,
 
30
                                                   const gchar *label);
 
31
GtkWidget     * gimp_prop_boolean_combo_box_new   (GObject     *config,
 
32
                                                   const gchar *property_name,
 
33
                                                   const gchar *true_text,
 
34
                                                   const gchar *false_text);
 
35
GtkWidget     * gimp_prop_boolean_radio_frame_new (GObject     *config,
 
36
                                                   const gchar *property_name,
 
37
                                                   const gchar *title,
 
38
                                                   const gchar *true_text,
 
39
                                                   const gchar *false_text);
 
40
 
 
41
 
 
42
/*  GParamInt  */
 
43
 
 
44
GtkWidget     * gimp_prop_int_combo_box_new       (GObject     *config,
 
45
                                                   const gchar *property_name,
 
46
                                                   GimpIntStore *int_store);
 
47
 
 
48
 
 
49
/*  GParamEnum  */
 
50
 
 
51
GtkWidget     * gimp_prop_enum_combo_box_new      (GObject     *config,
 
52
                                                   const gchar *property_name,
 
53
                                                   gint         minimum,
 
54
                                                   gint         maximum);
 
55
 
 
56
GtkWidget     * gimp_prop_paint_mode_menu_new     (GObject     *config,
 
57
                                                   const gchar *property_name,
 
58
                                                   gboolean     with_behind_mode);
 
59
 
 
60
GtkWidget     * gimp_prop_enum_check_button_new   (GObject     *config,
 
61
                                                   const gchar *property_name,
 
62
                                                   const gchar *label,
 
63
                                                   gint         false_value,
 
64
                                                   gint         true_value);
 
65
 
 
66
GtkWidget     * gimp_prop_enum_radio_frame_new    (GObject     *config,
 
67
                                                   const gchar *property_name,
 
68
                                                   const gchar *title,
 
69
                                                   gint         minimum,
 
70
                                                   gint         maximum);
 
71
GtkWidget     * gimp_prop_enum_radio_box_new      (GObject     *config,
 
72
                                                   const gchar *property_name,
 
73
                                                   gint         minimum,
 
74
                                                   gint         maximum);
 
75
GtkWidget     * gimp_prop_enum_stock_box_new      (GObject     *config,
 
76
                                                   const gchar *property_name,
 
77
                                                   const gchar *stock_prefix,
 
78
                                                   gint         minimum,
 
79
                                                   gint         maximum);
 
80
 
 
81
 
 
82
/*  GParamInt, GParamUInt, GParamLong, GParamULong, GParamDouble  */
 
83
 
 
84
GtkWidget     * gimp_prop_spin_button_new         (GObject     *config,
 
85
                                                   const gchar *property_name,
 
86
                                                   gdouble      step_increment,
 
87
                                                   gdouble      page_increment,
 
88
                                                   gint         digits);
 
89
 
 
90
GtkObject     * gimp_prop_scale_entry_new         (GObject     *config,
 
91
                                                   const gchar *property_name,
 
92
                                                   GtkTable    *table,
 
93
                                                   gint         column,
 
94
                                                   gint         row,
 
95
                                                   const gchar *label,
 
96
                                                   gdouble      step_increment,
 
97
                                                   gdouble      page_increment,
 
98
                                                   gint         digits,
 
99
                                                   gboolean     restrict_scale,
 
100
                                                   gdouble      restricted_lower,
 
101
                                                   gdouble      restricted_upper);
 
102
 
 
103
/*  special form of gimp_prop_scale_entry_new() for GParamDouble  */
 
104
 
 
105
GtkObject     * gimp_prop_opacity_entry_new       (GObject     *config,
 
106
                                                   const gchar *property_name,
 
107
                                                   GtkTable    *table,
 
108
                                                   gint         column,
 
109
                                                   gint         row,
 
110
                                                   const gchar *label);
 
111
 
 
112
 
 
113
/*  GimpParamMemsize  */
 
114
 
 
115
GtkWidget     * gimp_prop_memsize_entry_new       (GObject     *config,
 
116
                                                   const gchar *property_name);
 
117
 
 
118
 
 
119
/*  GParamString  */
 
120
 
 
121
GtkWidget     * gimp_prop_label_new               (GObject     *config,
 
122
                                                   const gchar *property_name);
 
123
GtkWidget     * gimp_prop_entry_new               (GObject     *config,
 
124
                                                   const gchar *property_name,
 
125
                                                   gint         max_len);
 
126
GtkTextBuffer * gimp_prop_text_buffer_new         (GObject     *config,
 
127
                                                   const gchar *property_name,
 
128
                                                   gint         max_len);
 
129
 
 
130
 
 
131
/*  GimpParamPath  */
 
132
 
 
133
GtkWidget     * gimp_prop_file_entry_new          (GObject     *config,
 
134
                                                   const gchar *property_name,
 
135
                                                   const gchar *filesel_title,
 
136
                                                   gboolean     dir_only,
 
137
                                                   gboolean     check_valid);
 
138
GtkWidget     * gimp_prop_path_editor_new         (GObject     *config,
 
139
                                                   const gchar *path_property_name,
 
140
                                                   const gchar *writable_property_name,
 
141
                                                   const gchar *filesel_title);
 
142
 
 
143
 
 
144
/*  GParamInt, GParamUInt, GParamDouble   unit: GimpParamUnit  */
 
145
 
 
146
GtkWidget     * gimp_prop_size_entry_new          (GObject     *config,
 
147
                                                   const gchar *property_name,
 
148
                                                   const gchar *unit_property_name,
 
149
                                                   const gchar *unit_format,
 
150
                                                   GimpSizeEntryUpdatePolicy  update_policy,
 
151
                                                   gdouble      resolution);
 
152
 
 
153
 
 
154
/*  x,y: GParamInt, GParamDouble   unit: GimpParamUnit  */
 
155
 
 
156
GtkWidget     * gimp_prop_coordinates_new         (GObject     *config,
 
157
                                                   const gchar *x_property_name,
 
158
                                                   const gchar *y_property_name,
 
159
                                                   const gchar *unit_property_name,
 
160
                                                   const gchar *unit_format,
 
161
                                                   GimpSizeEntryUpdatePolicy  update_policy,
 
162
                                                   gdouble      xresolution,
 
163
                                                   gdouble      yresolution,
 
164
                                                   gboolean     has_chainbutton);
 
165
gboolean        gimp_prop_coordinates_connect     (GObject     *config,
 
166
                                                   const gchar *x_property_name,
 
167
                                                   const gchar *y_property_name,
 
168
                                                   const gchar *unit_property_name,
 
169
                                                   GtkWidget   *sizeentry,
 
170
                                                   GtkWidget   *chainbutton,
 
171
                                                   gdouble      xresolution,
 
172
                                                   gdouble      yresolution);
 
173
 
 
174
 
 
175
/*  GimpParamColor  */
 
176
 
 
177
GtkWidget     * gimp_prop_color_area_new          (GObject     *config,
 
178
                                                   const gchar *property_name,
 
179
                                                   gint         width,
 
180
                                                   gint         height,
 
181
                                                   GimpColorAreaType  type);
 
182
GtkWidget     * gimp_prop_color_button_new        (GObject     *config,
 
183
                                                   const gchar *property_name,
 
184
                                                   const gchar *title,
 
185
                                                   gint         width,
 
186
                                                   gint         height,
 
187
                                                   GimpColorAreaType  type);
 
188
 
 
189
 
 
190
/*  GimpParamUnit  */
 
191
 
 
192
GtkWidget     * gimp_prop_unit_menu_new           (GObject     *config,
 
193
                                                   const gchar *property_name,
 
194
                                                   const gchar *unit_format);
 
195
 
 
196
/*  GParamObject (GimpViewable)  */
 
197
 
 
198
GtkWidget     * gimp_prop_preview_new             (GObject     *config,
 
199
                                                   const gchar *property_name,
 
200
                                                   gint         size);
 
201
 
 
202
 
 
203
/*  GParamString (stock_id)  */
 
204
 
 
205
GtkWidget     * gimp_prop_stock_image_new         (GObject     *config,
 
206
                                                   const gchar *property_name,
 
207
                                                   GtkIconSize  icon_size);
 
208
 
 
209
 
 
210
#endif /* __GIMP_PROP_WIDGETS_H__ */