1
/* LIBGIMP - The GIMP Library
2
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
5
* Copyright (C) 2002 Michael Natterer <mitch@gimp.org>
7
* This library is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU Lesser General Public
9
* License as published by the Free Software Foundation; either
10
* version 2 of the License, or (at your option) any later version.
12
* This library 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 GNU
15
* Lesser General Public License for more details.
17
* You should have received a copy of the GNU Lesser General Public
18
* License along with this library; if not, write to the
19
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20
* Boston, MA 02111-1307, USA.
23
#ifndef __GIMP_PROP_WIDGETS_H__
24
#define __GIMP_PROP_WIDGETS_H__
29
GtkWidget * gimp_prop_check_button_new (GObject *config,
30
const gchar *property_name,
32
GtkWidget * gimp_prop_boolean_combo_box_new (GObject *config,
33
const gchar *property_name,
34
const gchar *true_text,
35
const gchar *false_text);
36
GtkWidget * gimp_prop_boolean_radio_frame_new (GObject *config,
37
const gchar *property_name,
39
const gchar *true_text,
40
const gchar *false_text);
42
GtkWidget * gimp_prop_expander_new (GObject *config,
43
const gchar *property_name,
49
GtkWidget * gimp_prop_int_combo_box_new (GObject *config,
50
const gchar *property_name,
56
GtkWidget * gimp_prop_enum_combo_box_new (GObject *config,
57
const gchar *property_name,
61
GtkWidget * gimp_prop_enum_check_button_new (GObject *config,
62
const gchar *property_name,
67
GtkWidget * gimp_prop_enum_radio_frame_new (GObject *config,
68
const gchar *property_name,
72
GtkWidget * gimp_prop_enum_radio_box_new (GObject *config,
73
const gchar *property_name,
76
GtkWidget * gimp_prop_enum_stock_box_new (GObject *config,
77
const gchar *property_name,
78
const gchar *stock_prefix,
82
GtkWidget * gimp_prop_enum_label_new (GObject *config,
83
const gchar *property_name);
86
/* GParamInt, GParamUInt, GParamLong, GParamULong, GParamDouble */
88
GtkWidget * gimp_prop_spin_button_new (GObject *config,
89
const gchar *property_name,
90
gdouble step_increment,
91
gdouble page_increment,
94
GtkWidget * gimp_prop_hscale_new (GObject *config,
95
const gchar *property_name,
96
gdouble step_increment,
97
gdouble page_increment,
100
GtkObject * gimp_prop_scale_entry_new (GObject *config,
101
const gchar *property_name,
106
gdouble step_increment,
107
gdouble page_increment,
109
gboolean limit_scale,
111
gdouble upper_limit);
113
/* special form of gimp_prop_scale_entry_new() for GParamDouble */
115
GtkObject * gimp_prop_opacity_entry_new (GObject *config,
116
const gchar *property_name,
123
/* GimpParamMemsize */
125
GtkWidget * gimp_prop_memsize_entry_new (GObject *config,
126
const gchar *property_name);
131
GtkWidget * gimp_prop_label_new (GObject *config,
132
const gchar *property_name);
133
GtkWidget * gimp_prop_entry_new (GObject *config,
134
const gchar *property_name,
136
GtkTextBuffer * gimp_prop_text_buffer_new (GObject *config,
137
const gchar *property_name,
139
GtkWidget * gimp_prop_string_combo_box_new (GObject *config,
140
const gchar *property_name,
148
GtkWidget * gimp_prop_file_chooser_button_new (GObject *config,
149
const gchar *property_name,
151
GtkFileChooserAction action);
152
GtkWidget * gimp_prop_file_chooser_button_new_with_dialog (GObject *config,
153
const gchar *property_name,
156
GtkWidget * gimp_prop_path_editor_new (GObject *config,
157
const gchar *path_property_name,
158
const gchar *writable_property_name,
159
const gchar *filesel_title);
162
/* GParamInt, GParamUInt, GParamDouble unit: GimpParamUnit */
164
GtkWidget * gimp_prop_size_entry_new (GObject *config,
165
const gchar *property_name,
166
const gchar *unit_property_name,
167
const gchar *unit_format,
168
GimpSizeEntryUpdatePolicy update_policy,
172
/* x,y: GParamInt, GParamDouble unit: GimpParamUnit */
174
GtkWidget * gimp_prop_coordinates_new (GObject *config,
175
const gchar *x_property_name,
176
const gchar *y_property_name,
177
const gchar *unit_property_name,
178
const gchar *unit_format,
179
GimpSizeEntryUpdatePolicy update_policy,
182
gboolean has_chainbutton);
183
gboolean gimp_prop_coordinates_connect (GObject *config,
184
const gchar *x_property_name,
185
const gchar *y_property_name,
186
const gchar *unit_property_name,
187
GtkWidget *sizeentry,
188
GtkWidget *chainbutton,
190
gdouble yresolution);
195
GtkWidget * gimp_prop_color_area_new (GObject *config,
196
const gchar *property_name,
199
GimpColorAreaType type);
203
GtkWidget * gimp_prop_unit_menu_new (GObject *config,
204
const gchar *property_name,
205
const gchar *unit_format);
208
/* GParamString (stock_id) */
210
GtkWidget * gimp_prop_stock_image_new (GObject *config,
211
const gchar *property_name,
212
GtkIconSize icon_size);
215
#endif /* __GIMP_PROP_WIDGETS_H__ */