2008-02-15 01:02:47 +08:00
|
|
|
/* LIBGIMP - The GIMP Library
|
|
|
|
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
|
|
|
*
|
|
|
|
* gimpscaleentry.h
|
|
|
|
* Copyright (C) 2000 Michael Natterer <mitch@gimp.org>,
|
2008-02-15 01:49:53 +08:00
|
|
|
* 2008 Bill Skaggs <weskaggs@primate.ucdavis.edu>
|
2008-02-15 01:02:47 +08:00
|
|
|
*
|
2009-01-18 06:28:01 +08:00
|
|
|
* This library is free software: you can redistribute it and/or
|
2008-02-15 01:02:47 +08:00
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
2009-01-18 06:28:01 +08:00
|
|
|
* version 3 of the License, or (at your option) any later version.
|
2008-02-15 01:02:47 +08:00
|
|
|
*
|
|
|
|
* This library 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
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2009-01-18 06:28:01 +08:00
|
|
|
* License along with this library. If not, see
|
|
|
|
* <http://www.gnu.org/licenses/>.
|
2008-02-15 01:02:47 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GIMP_SCALE_ENTRY_H__
|
|
|
|
#define __GIMP_SCALE_ENTRY_H__
|
|
|
|
|
2008-02-15 01:49:53 +08:00
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
|
2008-02-15 01:02:47 +08:00
|
|
|
#define GIMP_SCALE_ENTRY_LABEL(adj) \
|
|
|
|
(g_object_get_data (G_OBJECT (adj), "label"))
|
|
|
|
|
|
|
|
#define GIMP_SCALE_ENTRY_SCALE(adj) \
|
|
|
|
(g_object_get_data (G_OBJECT (adj), "scale"))
|
|
|
|
#define GIMP_SCALE_ENTRY_SCALE_ADJ(adj) \
|
|
|
|
gtk_range_get_adjustment \
|
|
|
|
(GTK_RANGE (g_object_get_data (G_OBJECT (adj), "scale")))
|
|
|
|
|
|
|
|
#define GIMP_SCALE_ENTRY_SPINBUTTON(adj) \
|
|
|
|
(g_object_get_data (G_OBJECT (adj), "spinbutton"))
|
|
|
|
#define GIMP_SCALE_ENTRY_SPINBUTTON_ADJ(adj) \
|
|
|
|
gtk_spin_button_get_adjustment \
|
|
|
|
(GTK_SPIN_BUTTON (g_object_get_data (G_OBJECT (adj), "spinbutton")))
|
|
|
|
|
|
|
|
|
2008-02-15 01:49:53 +08:00
|
|
|
GtkObject * gimp_scale_entry_new (GtkTable *table,
|
|
|
|
gint column,
|
|
|
|
gint row,
|
|
|
|
const gchar *text,
|
|
|
|
gint scale_width,
|
|
|
|
gint spinbutton_width,
|
|
|
|
gdouble value,
|
|
|
|
gdouble lower,
|
|
|
|
gdouble upper,
|
|
|
|
gdouble step_increment,
|
|
|
|
gdouble page_increment,
|
|
|
|
guint digits,
|
|
|
|
gboolean constrain,
|
|
|
|
gdouble unconstrained_lower,
|
|
|
|
gdouble unconstrained_upper,
|
|
|
|
const gchar *tooltip,
|
|
|
|
const gchar *help_id);
|
2008-02-15 01:02:47 +08:00
|
|
|
|
2008-02-15 01:49:53 +08:00
|
|
|
GtkObject * gimp_color_scale_entry_new (GtkTable *table,
|
|
|
|
gint column,
|
|
|
|
gint row,
|
|
|
|
const gchar *text,
|
|
|
|
gint scale_width,
|
|
|
|
gint spinbutton_width,
|
|
|
|
gdouble value,
|
|
|
|
gdouble lower,
|
|
|
|
gdouble upper,
|
|
|
|
gdouble step_increment,
|
|
|
|
gdouble page_increment,
|
|
|
|
guint digits,
|
|
|
|
const gchar *tooltip,
|
|
|
|
const gchar *help_id);
|
2008-02-15 01:02:47 +08:00
|
|
|
|
2008-02-15 01:49:53 +08:00
|
|
|
void gimp_scale_entry_set_sensitive (GtkObject *adjustment,
|
|
|
|
gboolean sensitive);
|
2008-02-15 01:02:47 +08:00
|
|
|
|
2008-02-15 01:49:53 +08:00
|
|
|
void gimp_scale_entry_set_logarithmic (GtkObject *adjustment,
|
|
|
|
gboolean logarithmic);
|
|
|
|
gboolean gimp_scale_entry_get_logarithmic (GtkObject *adjustment);
|
2008-02-15 01:02:47 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GIMP_SCALE_ENTRY_H__ */
|