gimppropwidgets.h 10.1 KB
Newer Older
1 2 3
/* The GIMP -- an image manipulation program
 * Copyright (C) 1995-1997 Spencer Kimball and Peter Mattis
 *
4 5 6
 * gimppropwidgets.h
 * Copyright (C) 2002 Michael Natterer <mitch@gimp.org>
 *
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 */

#ifndef __GIMP_PROP_WIDGETS_H__
#define __GIMP_PROP_WIDGETS_H__


26 27
/*  GParamBoolean  */

28 29 30
GtkWidget     * gimp_prop_check_button_new        (GObject     *config,
                                                   const gchar *property_name,
                                                   const gchar *label);
31 32 33 34
GtkWidget     * gimp_prop_boolean_option_menu_new (GObject     *config,
                                                   const gchar *property_name,
                                                   const gchar *true_text,
                                                   const gchar *false_text);
35 36 37 38 39
GtkWidget     * gimp_prop_boolean_radio_frame_new (GObject     *config,
                                                   const gchar *property_name,
                                                   const gchar *title,
                                                   const gchar *true_text,
                                                   const gchar *false_text);
40 41 42 43


/*  GParamEnum  */

44 45 46 47
GtkWidget     * gimp_prop_enum_option_menu_new    (GObject     *config,
                                                   const gchar *property_name,
                                                   gint         minimum,
                                                   gint         maximum);
48 49 50
GtkWidget     * gimp_prop_paint_mode_menu_new     (GObject     *config,
                                                   const gchar *property_name,
                                                   gboolean     with_behind_mode);
51

52 53 54 55 56 57
GtkWidget     * gimp_prop_enum_check_button_new   (GObject     *config,
                                                   const gchar *property_name,
                                                   const gchar *label,
                                                   gint         false_value,
                                                   gint         true_value);

58 59 60 61 62
GtkWidget     * gimp_prop_enum_radio_frame_new    (GObject     *config,
                                                   const gchar *property_name,
                                                   const gchar *title,
                                                   gint         minimum,
                                                   gint         maximum);
63 64 65 66 67 68
GtkWidget     * gimp_prop_enum_stock_box_new      (GObject     *config,
                                                   const gchar *property_name,
                                                   const gchar *stock_prefix,
                                                   gint         minimum,
                                                   gint         maximum);

69 70 71

/*  GParamInt, GParamUInt, GParamLong, GParamULong, GParamDouble  */

72 73 74 75 76
GtkWidget     * gimp_prop_spin_button_new         (GObject     *config,
                                                   const gchar *property_name,
                                                   gdouble      step_increment,
                                                   gdouble      page_increment,
                                                   gint         digits);
77

78 79 80 81 82 83 84 85 86 87 88 89 90
GtkObject     * gimp_prop_scale_entry_new         (GObject     *config,
                                                   const gchar *property_name,
                                                   GtkTable    *table,
                                                   gint         column,
                                                   gint         row,
                                                   const gchar *label,
                                                   gdouble      step_increment,
                                                   gdouble      page_increment,
                                                   gint         digits,
                                                   gboolean     restrict_scale,
                                                   gdouble      restricted_lower,
                                                   gdouble      restricted_upper);

91 92 93 94 95 96 97 98 99
/*  special form of gimp_prop_scale_entry_new() for GParamDouble  */

GtkObject     * gimp_prop_opacity_entry_new       (GObject     *config,
                                                   const gchar *property_name,
                                                   GtkTable    *table,
                                                   gint         column,
                                                   gint         row,
                                                   const gchar *label);

100 101 102

/*  GimpParamMemsize  */

103 104
GtkWidget     * gimp_prop_memsize_entry_new       (GObject     *config,
                                                   const gchar *property_name);
105 106 107 108 109 110 111


/*  GParamString  */

GtkWidget     * gimp_prop_entry_new               (GObject     *config,
                                                   const gchar *property_name,
                                                   gint         max_len);
112 113 114
GtkTextBuffer * gimp_prop_text_buffer_new         (GObject     *config,
                                                   const gchar *property_name,
                                                   gint         max_len);
115 116 117 118


/*  GimpParamPath  */

119 120 121 122 123 124 125 126
GtkWidget     * gimp_prop_file_entry_new          (GObject     *config,
                                                   const gchar *property_name,
                                                   const gchar *filesel_title,
                                                   gboolean     dir_only,
                                                   gboolean     check_valid);
GtkWidget     * gimp_prop_path_editor_new         (GObject     *config,
                                                   const gchar *property_name,
                                                   const gchar *filesel_title);
127 128


129
/*  GParamInt, GParamUInt, GParamDouble   unit: GimpParamUnit  */
130 131 132 133 134 135 136 137 138

GtkWidget     * gimp_prop_size_entry_new          (GObject     *config,
                                                   const gchar *property_name,
                                                   const gchar *unit_property_name,
                                                   const gchar *unit_format,
                                                   GimpSizeEntryUpdatePolicy  update_policy,
                                                   gdouble      resolution);


139 140
/*  x,y: GParamInt, GParamDouble   unit: GimpParamUnit  */

141 142 143 144 145 146 147 148 149
GtkWidget     * gimp_prop_coordinates_new         (GObject     *config,
                                                   const gchar *x_property_name,
                                                   const gchar *y_property_name,
                                                   const gchar *unit_property_name,
                                                   const gchar *unit_format,
                                                   GimpSizeEntryUpdatePolicy  update_policy,
                                                   gdouble      xresolution,
                                                   gdouble      yresolution,
                                                   gboolean     has_chainbutton);
150
gboolean        gimp_prop_coordinates_connect     (GObject     *config,
151 152 153 154 155 156 157
                                                   const gchar *x_property_name,
                                                   const gchar *y_property_name,
                                                   const gchar *unit_property_name,
                                                   GtkWidget   *sizeentry,
                                                   GtkWidget   *chainbutton,
                                                   gdouble      xresolution,
                                                   gdouble      yresolution);
158 159


160 161
/*  GimpParamColor  */

162 163 164 165 166
GtkWidget     * gimp_prop_color_area_new          (GObject     *config,
                                                   const gchar *property_name,
                                                   gint         width,
                                                   gint         height,
                                                   GimpColorAreaType  type);
167 168 169 170 171 172 173 174
GtkWidget     * gimp_prop_color_button_new        (GObject     *config,
                                                   const gchar *property_name,
                                                   const gchar *title,
                                                   gint         width,
                                                   gint         height,
                                                   GimpColorAreaType  type);


175 176 177 178 179 180
/*  GimpParamUnit  */

GtkWidget     * gimp_prop_unit_menu_new           (GObject     *config,
                                                   const gchar *property_name,
                                                   const gchar *unit_format);

181 182 183 184 185 186
/*  GParamObject (GimpViewable)  */

GtkWidget     * gimp_prop_preview_new             (GObject     *config,
                                                   const gchar *property_name,
                                                   gint         size);

187

188 189 190 191 192 193 194
/*  GParamString (stock_id)  */

GtkWidget     * gimp_prop_stock_image_new         (GObject     *config,
                                                   const gchar *property_name,
                                                   GtkIconSize  icon_size);


195
#endif /* __GIMP_PROP_WIDGETS_H__ */