2005-02-05 04:51:19 +08:00
|
|
|
/* LIBGIMP - The GIMP Library
|
|
|
|
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
2002-11-21 03:45:03 +08:00
|
|
|
*
|
2002-11-23 05:08:04 +08:00
|
|
|
* gimppropwidgets.h
|
|
|
|
* Copyright (C) 2002 Michael Natterer <mitch@gimp.org>
|
|
|
|
*
|
2005-02-05 04:51:19 +08:00
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
2002-11-21 03:45:03 +08:00
|
|
|
*
|
2005-02-05 04:51:19 +08:00
|
|
|
* This library is distributed in the hope that it will be useful,
|
2002-11-21 03:45:03 +08:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2005-02-05 04:51:19 +08:00
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
2002-11-21 03:45:03 +08:00
|
|
|
*
|
2005-02-05 04:51:19 +08:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the
|
|
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
2002-11-21 03:45:03 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GIMP_PROP_WIDGETS_H__
|
|
|
|
#define __GIMP_PROP_WIDGETS_H__
|
|
|
|
|
2007-08-12 05:52:48 +08:00
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2002-11-21 03:45:03 +08:00
|
|
|
|
2002-11-23 05:08:04 +08:00
|
|
|
/* GParamBoolean */
|
|
|
|
|
2005-02-05 19:51:48 +08:00
|
|
|
GtkWidget * gimp_prop_check_button_new (GObject *config,
|
|
|
|
const gchar *property_name,
|
|
|
|
const gchar *label);
|
|
|
|
GtkWidget * gimp_prop_boolean_combo_box_new (GObject *config,
|
|
|
|
const gchar *property_name,
|
|
|
|
const gchar *true_text,
|
|
|
|
const gchar *false_text);
|
|
|
|
GtkWidget * gimp_prop_boolean_radio_frame_new (GObject *config,
|
|
|
|
const gchar *property_name,
|
|
|
|
const gchar *title,
|
|
|
|
const gchar *true_text,
|
|
|
|
const gchar *false_text);
|
|
|
|
|
|
|
|
GtkWidget * gimp_prop_expander_new (GObject *config,
|
|
|
|
const gchar *property_name,
|
|
|
|
const gchar *label);
|
2005-01-23 04:32:34 +08:00
|
|
|
|
2002-11-23 05:08:04 +08:00
|
|
|
|
2004-12-08 20:46:21 +08:00
|
|
|
/* GParamInt */
|
|
|
|
|
2005-02-05 19:51:48 +08:00
|
|
|
GtkWidget * gimp_prop_int_combo_box_new (GObject *config,
|
|
|
|
const gchar *property_name,
|
|
|
|
GimpIntStore *store);
|
2004-12-08 20:46:21 +08:00
|
|
|
|
|
|
|
|
2002-11-23 05:08:04 +08:00
|
|
|
/* GParamEnum */
|
|
|
|
|
2005-02-05 19:51:48 +08:00
|
|
|
GtkWidget * gimp_prop_enum_combo_box_new (GObject *config,
|
|
|
|
const gchar *property_name,
|
|
|
|
gint minimum,
|
|
|
|
gint maximum);
|
|
|
|
|
|
|
|
GtkWidget * gimp_prop_enum_check_button_new (GObject *config,
|
|
|
|
const gchar *property_name,
|
|
|
|
const gchar *label,
|
|
|
|
gint false_value,
|
|
|
|
gint true_value);
|
|
|
|
|
|
|
|
GtkWidget * gimp_prop_enum_radio_frame_new (GObject *config,
|
|
|
|
const gchar *property_name,
|
|
|
|
const gchar *title,
|
|
|
|
gint minimum,
|
|
|
|
gint maximum);
|
|
|
|
GtkWidget * gimp_prop_enum_radio_box_new (GObject *config,
|
|
|
|
const gchar *property_name,
|
|
|
|
gint minimum,
|
|
|
|
gint maximum);
|
|
|
|
GtkWidget * gimp_prop_enum_stock_box_new (GObject *config,
|
|
|
|
const gchar *property_name,
|
|
|
|
const gchar *stock_prefix,
|
|
|
|
gint minimum,
|
|
|
|
gint maximum);
|
2003-02-05 21:03:44 +08:00
|
|
|
|
2005-06-25 06:46:42 +08:00
|
|
|
GtkWidget * gimp_prop_enum_label_new (GObject *config,
|
|
|
|
const gchar *property_name);
|
|
|
|
|
2002-11-23 05:08:04 +08:00
|
|
|
|
|
|
|
/* GParamInt, GParamUInt, GParamLong, GParamULong, GParamDouble */
|
|
|
|
|
2005-02-05 19:51:48 +08:00
|
|
|
GtkWidget * gimp_prop_spin_button_new (GObject *config,
|
|
|
|
const gchar *property_name,
|
|
|
|
gdouble step_increment,
|
|
|
|
gdouble page_increment,
|
|
|
|
gint digits);
|
|
|
|
|
2005-08-06 21:03:59 +08:00
|
|
|
GtkWidget * gimp_prop_hscale_new (GObject *config,
|
|
|
|
const gchar *property_name,
|
|
|
|
gdouble step_increment,
|
|
|
|
gdouble page_increment,
|
|
|
|
gint digits);
|
|
|
|
|
2005-02-05 19:51:48 +08:00
|
|
|
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,
|
2006-04-22 10:58:02 +08:00
|
|
|
gboolean limit_scale,
|
|
|
|
gdouble lower_limit,
|
|
|
|
gdouble upper_limit);
|
2003-02-08 01:12:21 +08:00
|
|
|
|
2003-02-20 04:06:38 +08:00
|
|
|
/* special form of gimp_prop_scale_entry_new() for GParamDouble */
|
|
|
|
|
2005-02-05 19:51:48 +08:00
|
|
|
GtkObject * gimp_prop_opacity_entry_new (GObject *config,
|
|
|
|
const gchar *property_name,
|
|
|
|
GtkTable *table,
|
|
|
|
gint column,
|
|
|
|
gint row,
|
|
|
|
const gchar *label);
|
2003-02-20 04:06:38 +08:00
|
|
|
|
2002-11-23 05:08:04 +08:00
|
|
|
|
|
|
|
/* GimpParamMemsize */
|
|
|
|
|
2005-02-05 19:51:48 +08:00
|
|
|
GtkWidget * gimp_prop_memsize_entry_new (GObject *config,
|
|
|
|
const gchar *property_name);
|
2002-11-23 05:08:04 +08:00
|
|
|
|
|
|
|
|
|
|
|
/* GParamString */
|
|
|
|
|
2005-02-05 19:51:48 +08:00
|
|
|
GtkWidget * gimp_prop_label_new (GObject *config,
|
|
|
|
const gchar *property_name);
|
|
|
|
GtkWidget * gimp_prop_entry_new (GObject *config,
|
|
|
|
const gchar *property_name,
|
|
|
|
gint max_len);
|
|
|
|
GtkTextBuffer * gimp_prop_text_buffer_new (GObject *config,
|
|
|
|
const gchar *property_name,
|
|
|
|
gint max_len);
|
2007-02-12 23:29:45 +08:00
|
|
|
GtkWidget * gimp_prop_string_combo_box_new (GObject *config,
|
|
|
|
const gchar *property_name,
|
2007-03-08 18:06:31 +08:00
|
|
|
GtkTreeModel *model,
|
2007-02-12 23:29:45 +08:00
|
|
|
gint id_column,
|
|
|
|
gint label_column);
|
2002-11-23 05:08:04 +08:00
|
|
|
|
|
|
|
|
|
|
|
/* GimpParamPath */
|
|
|
|
|
2005-03-25 08:37:16 +08:00
|
|
|
GtkWidget * gimp_prop_file_chooser_button_new (GObject *config,
|
|
|
|
const gchar *property_name,
|
|
|
|
const gchar *title,
|
|
|
|
GtkFileChooserAction action);
|
2006-12-18 15:28:41 +08:00
|
|
|
GtkWidget * gimp_prop_file_chooser_button_new_with_dialog (GObject *config,
|
|
|
|
const gchar *property_name,
|
|
|
|
|
|
|
|
GtkWidget *dialog);
|
2006-06-09 15:12:33 +08:00
|
|
|
GtkWidget * gimp_prop_path_editor_new (GObject *config,
|
|
|
|
const gchar *path_property_name,
|
|
|
|
const gchar *writable_property_name,
|
|
|
|
const gchar *filesel_title);
|
2005-03-25 08:37:16 +08:00
|
|
|
|
2002-11-23 05:08:04 +08:00
|
|
|
|
2003-10-24 00:58:16 +08:00
|
|
|
/* GParamInt, GParamUInt, GParamDouble unit: GimpParamUnit */
|
2003-10-02 03:55:13 +08:00
|
|
|
|
2005-02-05 19:51:48 +08:00
|
|
|
GtkWidget * gimp_prop_size_entry_new (GObject *config,
|
|
|
|
const gchar *property_name,
|
2007-10-15 02:51:58 +08:00
|
|
|
gboolean property_is_pixel,
|
2005-02-05 19:51:48 +08:00
|
|
|
const gchar *unit_property_name,
|
|
|
|
const gchar *unit_format,
|
2003-10-02 03:55:13 +08:00
|
|
|
GimpSizeEntryUpdatePolicy update_policy,
|
2005-02-05 19:51:48 +08:00
|
|
|
gdouble resolution);
|
2003-10-02 03:55:13 +08:00
|
|
|
|
|
|
|
|
2002-11-23 05:08:04 +08:00
|
|
|
/* x,y: GParamInt, GParamDouble unit: GimpParamUnit */
|
|
|
|
|
2005-02-05 19:51:48 +08:00
|
|
|
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,
|
2002-11-21 03:45:03 +08:00
|
|
|
GimpSizeEntryUpdatePolicy update_policy,
|
2005-02-05 19:51:48 +08:00
|
|
|
gdouble xresolution,
|
|
|
|
gdouble yresolution,
|
|
|
|
gboolean has_chainbutton);
|
|
|
|
gboolean gimp_prop_coordinates_connect (GObject *config,
|
|
|
|
const gchar *x_property_name,
|
|
|
|
const gchar *y_property_name,
|
|
|
|
const gchar *unit_property_name,
|
|
|
|
GtkWidget *sizeentry,
|
|
|
|
GtkWidget *chainbutton,
|
|
|
|
gdouble xresolution,
|
|
|
|
gdouble yresolution);
|
2002-11-21 03:45:03 +08:00
|
|
|
|
|
|
|
|
2002-11-24 06:22:21 +08:00
|
|
|
/* GimpParamColor */
|
|
|
|
|
2005-02-05 19:51:48 +08:00
|
|
|
GtkWidget * gimp_prop_color_area_new (GObject *config,
|
|
|
|
const gchar *property_name,
|
|
|
|
gint width,
|
|
|
|
gint height,
|
2003-07-07 21:37:19 +08:00
|
|
|
GimpColorAreaType type);
|
2002-11-24 06:22:21 +08:00
|
|
|
|
2003-02-04 07:54:19 +08:00
|
|
|
/* GimpParamUnit */
|
|
|
|
|
2005-02-05 19:51:48 +08:00
|
|
|
GtkWidget * gimp_prop_unit_menu_new (GObject *config,
|
|
|
|
const gchar *property_name,
|
|
|
|
const gchar *unit_format);
|
2003-02-04 07:54:19 +08:00
|
|
|
|
|
|
|
|
2003-07-07 21:37:19 +08:00
|
|
|
/* GParamString (stock_id) */
|
|
|
|
|
2005-02-05 19:51:48 +08:00
|
|
|
GtkWidget * gimp_prop_stock_image_new (GObject *config,
|
|
|
|
const gchar *property_name,
|
|
|
|
GtkIconSize icon_size);
|
2003-07-07 21:37:19 +08:00
|
|
|
|
|
|
|
|
2007-08-12 05:52:48 +08:00
|
|
|
G_END_DECLS
|
|
|
|
|
2002-11-21 03:45:03 +08:00
|
|
|
#endif /* __GIMP_PROP_WIDGETS_H__ */
|