19
19
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22
#ifndef __GIMP_PROP_WIDGETS_H__
23
#define __GIMP_PROP_WIDGETS_H__
22
#ifndef __GIMP_APP_PROP_WIDGETS_H__
23
#define __GIMP_APP_PROP_WIDGETS_H__
26
26
/* GParamBoolean */
28
GtkWidget * gimp_prop_check_button_new (GObject *config,
29
const gchar *property_name,
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,
38
const gchar *true_text,
39
const gchar *false_text);
44
GtkWidget * gimp_prop_int_combo_box_new (GObject *config,
45
const gchar *property_name,
46
GimpIntStore *int_store);
28
GtkWidget * gimp_prop_expanding_frame_new (GObject *config,
29
const gchar *property_name,
30
const gchar *button_label,
51
GtkWidget * gimp_prop_enum_combo_box_new (GObject *config,
52
const gchar *property_name,
56
GtkWidget * gimp_prop_paint_mode_menu_new (GObject *config,
57
const gchar *property_name,
58
gboolean with_behind_mode);
60
GtkWidget * gimp_prop_enum_check_button_new (GObject *config,
61
const gchar *property_name,
66
GtkWidget * gimp_prop_enum_radio_frame_new (GObject *config,
67
const gchar *property_name,
71
GtkWidget * gimp_prop_enum_radio_box_new (GObject *config,
72
const gchar *property_name,
75
GtkWidget * gimp_prop_enum_stock_box_new (GObject *config,
76
const gchar *property_name,
77
const gchar *stock_prefix,
82
/* GParamInt, GParamUInt, GParamLong, GParamULong, GParamDouble */
84
GtkWidget * gimp_prop_spin_button_new (GObject *config,
85
const gchar *property_name,
86
gdouble step_increment,
87
gdouble page_increment,
90
GtkObject * gimp_prop_scale_entry_new (GObject *config,
91
const gchar *property_name,
96
gdouble step_increment,
97
gdouble page_increment,
99
gboolean restrict_scale,
100
gdouble restricted_lower,
101
gdouble restricted_upper);
103
/* special form of gimp_prop_scale_entry_new() for GParamDouble */
105
GtkObject * gimp_prop_opacity_entry_new (GObject *config,
106
const gchar *property_name,
113
/* GimpParamMemsize */
115
GtkWidget * gimp_prop_memsize_entry_new (GObject *config,
116
const gchar *property_name);
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,
126
GtkTextBuffer * gimp_prop_text_buffer_new (GObject *config,
127
const gchar *property_name,
133
GtkWidget * gimp_prop_file_entry_new (GObject *config,
134
const gchar *property_name,
135
const gchar *filesel_title,
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);
144
/* GParamInt, GParamUInt, GParamDouble unit: GimpParamUnit */
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,
154
/* x,y: GParamInt, GParamDouble unit: GimpParamUnit */
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,
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,
172
gdouble yresolution);
37
GtkWidget * gimp_prop_paint_mode_menu_new (GObject *config,
38
const gchar *property_name,
39
gboolean with_behind_mode,
40
gboolean with_replace_modes);
175
43
/* GimpParamColor */
177
GtkWidget * gimp_prop_color_area_new (GObject *config,
178
const gchar *property_name,
181
GimpColorAreaType type);
182
GtkWidget * gimp_prop_color_button_new (GObject *config,
183
const gchar *property_name,
187
GimpColorAreaType type);
192
GtkWidget * gimp_prop_unit_menu_new (GObject *config,
193
const gchar *property_name,
194
const gchar *unit_format);
45
GtkWidget * gimp_prop_color_button_new (GObject *config,
46
const gchar *property_name,
50
GimpColorAreaType type);
196
53
/* GParamObject (GimpViewable) */
198
GtkWidget * gimp_prop_preview_new (GObject *config,
199
const gchar *property_name,
203
/* GParamString (stock_id) */
205
GtkWidget * gimp_prop_stock_image_new (GObject *config,
206
const gchar *property_name,
207
GtkIconSize icon_size);
210
#endif /* __GIMP_PROP_WIDGETS_H__ */
55
GtkWidget * gimp_prop_view_new (GObject *config,
56
const gchar *property_name,
61
/* GParamDouble, GParamDouble, GParamBoolean */
63
GtkWidget * gimp_prop_aspect_ratio_new (GObject *config,
64
const gchar *numerator_property,
65
const gchar *denominator_property,
66
const gchar *fixed_aspect_property);
69
#endif /* __GIMP_APP_PROP_WIDGETS_H__ */