Commit e4dd8a10 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

moved the call to libtoolize before automake.

2003-02-26  Sven Neumann  <sven@gimp.org>

	* autogen.sh: moved the call to libtoolize before automake.

	* libgimpwidgets/gimpcolorscale.c: added some inline docs.

	* libgimpwidgets/gimpwidgets.[ch]: changed gimp_spin_button_new(),
	gimp_scale_entry_new() and gimp_color_scale_entry_new() to take
	doubles instead of floats for the adjustment values.

2003-02-26  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/tmpl/gimpcolorscales.sgml
	* libgimpwidgets/tmpl/gimpcolorselect.sgml
	* libgimpwidgets/tmpl/gimpcolorselector.sgml: improved.
parent 3ba48402
2003-02-26 Sven Neumann <sven@gimp.org>
* autogen.sh: moved the call to libtoolize before automake.
* libgimpwidgets/gimpcolorscale.c: added some inline docs.
* libgimpwidgets/gimpwidgets.[ch]: changed gimp_spin_button_new(),
gimp_scale_entry_new() and gimp_color_scale_entry_new() to take
doubles instead of floats for the adjustment values.
2003-02-25 Sven Neumann <sven@gimp.org>
* app/display/gimpdisplayshell-callbacks.[ch]
......@@ -166,13 +166,14 @@ if ! $ACLOCAL $ACLOCAL_FLAGS; then
exit 1
fi
libtoolize --copy --force
# optionally feature autoheader
(autoheader --version) < /dev/null > /dev/null 2>&1 && autoheader
$AUTOMAKE --add-missing
autoconf
libtoolize --copy --force
glib-gettextize --copy --force
intltoolize --copy --force --automake
......
2003-02-26 Sven Neumann <sven@gimp.org>
* libgimpwidgets/tmpl/gimpcolorscales.sgml
* libgimpwidgets/tmpl/gimpcolorselect.sgml
* libgimpwidgets/tmpl/gimpcolorselector.sgml: improved.
2003-02-22 Sven Neumann <sven@gimp.org>
* libgimp/libgimp-docs.sgml: added some introductory words.
......
......@@ -2,11 +2,13 @@
GimpColorScales
<!-- ##### SECTION Short_Description ##### -->
A #GimpColorSelector implementation.
<!-- ##### SECTION Long_Description ##### -->
<para>
The #GimpColorScales widget is an implementation of a #GimpColorSelector.
It shows a group of #GimpColorScale widgets that allow to adjust the
HSV and RGB color channels.
</para>
<!-- ##### SECTION See_Also ##### -->
......
......@@ -2,11 +2,15 @@
GimpColorSelect
<!-- ##### SECTION Short_Description ##### -->
A #GimpColorSelector implementation.
<!-- ##### SECTION Long_Description ##### -->
<para>
The #GimpColorSelect widget is an implementation of a #GimpColorSelector.
It shows a square area that allows to interactively change two color channels
and a smaller area to change the third channel. You can select which channel
should be the third by calling gimp_color_select_set_channel(). The widget
will then change the other two channels accordingly.
</para>
<!-- ##### SECTION See_Also ##### -->
......
......@@ -2,13 +2,13 @@
GimpColorSelector
<!-- ##### SECTION Short_Description ##### -->
Functions and definitiions for creating a pluggable GIMP
color selector module.
Functions and definitiions for creating a pluggable GIMP color
selector module.
<!-- ##### SECTION Long_Description ##### -->
<para>
Functions and definitiions for creating a pluggable GIMP
color selector module.
Functions and definitiions for creating a pluggable GIMP color
selector module.
</para>
<!-- ##### SECTION See_Also ##### -->
......@@ -30,14 +30,14 @@ color selector module.
<!-- ##### MACRO GIMP_COLOR_SELECTOR_SIZE ##### -->
<para>
The suggested size for a color area in a #GimpColorSelector implementation.
</para>
<!-- ##### MACRO GIMP_COLOR_SELECTOR_BAR_SIZE ##### -->
<para>
The suggested width for a color bar in a #GimpColorSelector implementation.
</para>
......@@ -47,13 +47,13 @@ color selector module.
</para>
@GIMP_COLOR_SELECTOR_HUE:
@GIMP_COLOR_SELECTOR_SATURATION:
@GIMP_COLOR_SELECTOR_VALUE:
@GIMP_COLOR_SELECTOR_RED:
@GIMP_COLOR_SELECTOR_GREEN:
@GIMP_COLOR_SELECTOR_BLUE:
@GIMP_COLOR_SELECTOR_ALPHA:
@GIMP_COLOR_SELECTOR_HUE: the hue channel
@GIMP_COLOR_SELECTOR_SATURATION: the saturation channel
@GIMP_COLOR_SELECTOR_VALUE: the value channel
@GIMP_COLOR_SELECTOR_RED: the red channel
@GIMP_COLOR_SELECTOR_GREEN: the green channel
@GIMP_COLOR_SELECTOR_BLUE: the blue channel
@GIMP_COLOR_SELECTOR_ALPHA: the alpha channel
<!-- ##### FUNCTION gimp_color_selector_new ##### -->
<para>
......@@ -65,8 +65,6 @@ color selector module.
@hsv:
@channel:
@Returns:
<!-- # Unused Parameters # -->
@show_alpha:
<!-- ##### FUNCTION gimp_color_selector_set_toggles_visible ##### -->
......@@ -121,9 +119,6 @@ color selector module.
</para>
@selector:
<!-- # Unused Parameters # -->
@rgb:
@hsv:
<!-- ##### FUNCTION gimp_color_selector_channel_changed ##### -->
......
......@@ -371,6 +371,15 @@ gimp_color_scale_expose (GtkWidget *widget,
return FALSE;
}
/**
* gimp_color_scale_new:
* @orientation: the scale's orientation (horizontal or vertical)
* @channel: the scale's color channel
*
* Creates a new #GimpColorScale widget.
*
* Return value: a new #GimpColorScale widget
**/
GtkWidget *
gimp_color_scale_new (GtkOrientation orientation,
GimpColorSelectorChannel channel)
......@@ -389,6 +398,13 @@ gimp_color_scale_new (GtkOrientation orientation,
return GTK_WIDGET (scale);
}
/**
* gimp_color_scale_set_channel:
* @scale: a #GimpColorScale widget
* @channel: the new color channel
*
* Changes the color channel displayed by the @scale.
**/
void
gimp_color_scale_set_channel (GimpColorScale *scale,
GimpColorSelectorChannel channel)
......@@ -404,6 +420,14 @@ gimp_color_scale_set_channel (GimpColorScale *scale,
}
}
/**
* gimp_color_scale_set_color:
* @scale: a #GimpColorScale widget
* @rgb: the new color as #GimpRGB
* @hsv: the new color as #GimpHSV
*
* Changes the color value of the @scale.
**/
void
gimp_color_scale_set_color (GimpColorScale *scale,
const GimpRGB *rgb,
......
......@@ -638,13 +638,13 @@ gimp_radio_group_set_active (GtkRadioButton *radio_button,
**/
GtkWidget *
gimp_spin_button_new (GtkObject **adjustment, /* return value */
gfloat value,
gfloat lower,
gfloat upper,
gfloat step_increment,
gfloat page_increment,
gfloat page_size,
gfloat climb_rate,
gdouble value,
gdouble lower,
gdouble upper,
gdouble step_increment,
gdouble page_increment,
gdouble page_size,
gdouble climb_rate,
guint digits)
{
GtkWidget *spinbutton;
......@@ -682,15 +682,15 @@ gimp_scale_entry_new_internal (gboolean color_scale,
const gchar *text,
gint scale_width,
gint spinbutton_width,
gfloat value,
gfloat lower,
gfloat upper,
gfloat step_increment,
gfloat page_increment,
gdouble value,
gdouble lower,
gdouble upper,
gdouble step_increment,
gdouble page_increment,
guint digits,
gboolean constrain,
gfloat unconstrained_lower,
gfloat unconstrained_upper,
gdouble unconstrained_lower,
gdouble unconstrained_upper,
const gchar *tooltip,
const gchar *help_data)
{
......@@ -835,15 +835,15 @@ gimp_scale_entry_new (GtkTable *table,
const gchar *text,
gint scale_width,
gint spinbutton_width,
gfloat value,
gfloat lower,
gfloat upper,
gfloat step_increment,
gfloat page_increment,
gdouble value,
gdouble lower,
gdouble upper,
gdouble step_increment,
gdouble page_increment,
guint digits,
gboolean constrain,
gfloat unconstrained_lower,
gfloat unconstrained_upper,
gdouble unconstrained_lower,
gdouble unconstrained_upper,
const gchar *tooltip,
const gchar *help_data)
{
......@@ -877,8 +877,8 @@ gimp_scale_entry_new (GtkTable *table,
* @tooltip: A tooltip message for the scale and the spinbutton.
* @help_data: The widgets' help_data (see gimp_help_set_help_data()).
*
* This function creates a #GtkLabel, a #GtkHScale and a #GtkSpinButton and
* attaches them to a 3-column #GtkTable.
* This function creates a #GtkLabel, a #GimpColorScale and a
* #GtkSpinButton and attaches them to a 3-column #GtkTable.
*
* Note that if you pass a @tooltip or @help_data to this function you'll
* have to initialize GIMP's help system with gimp_help_init() before using it.
......@@ -892,11 +892,11 @@ gimp_color_scale_entry_new (GtkTable *table,
const gchar *text,
gint scale_width,
gint spinbutton_width,
gfloat value,
gfloat lower,
gfloat upper,
gfloat step_increment,
gfloat page_increment,
gdouble value,
gdouble lower,
gdouble upper,
gdouble step_increment,
gdouble page_increment,
guint digits,
const gchar *tooltip,
const gchar *help_data)
......@@ -1396,8 +1396,8 @@ gimp_menu_item_update (GtkWidget *widget,
* @data: A pointer to a #gint variable which will store the
* @adjustment's value.
*
* Note that the #GtkAdjustment's value (which is a #gfloat) will be rounded
* with RINT().
* Note that the #GtkAdjustment's value (which is a #gdouble) will be
* rounded with RINT().
**/
void
gimp_int_adjustment_update (GtkAdjustment *adjustment,
......@@ -1415,7 +1415,7 @@ gimp_int_adjustment_update (GtkAdjustment *adjustment,
* @data: A pointer to a #guint variable which will store the
* @adjustment's value.
*
* Note that the #GtkAdjustment's value (which is a #gfloat) will be rounded
* Note that the #GtkAdjustment's value (which is a #gdouble) will be rounded
* with (#guint) (value + 0.5).
**/
void
......@@ -1431,7 +1431,7 @@ gimp_uint_adjustment_update (GtkAdjustment *adjustment,
/**
* gimp_float_adjustment_update:
* @adjustment: A #GtkAdjustment.
* @data: A pointer to a #gfloat varaiable which willl store the
* @data: A pointer to a #gfloat varaiable which will store the
* @adjustment's value.
**/
void
......
......@@ -131,13 +131,13 @@ void gimp_radio_group_set_active (GtkRadioButton *radio_button,
GtkWidget * gimp_spin_button_new (/* return value: */
GtkObject **adjustment,
gfloat value,
gfloat lower,
gfloat upper,
gfloat step_increment,
gfloat page_increment,
gfloat page_size,
gfloat climb_rate,
gdouble value,
gdouble lower,
gdouble upper,
gdouble step_increment,
gdouble page_increment,
gdouble page_size,
gdouble climb_rate,
guint digits);
#define GIMP_SCALE_ENTRY_LABEL(adj) \
......@@ -161,15 +161,15 @@ GtkObject * gimp_scale_entry_new (GtkTable *table,
const gchar *text,
gint scale_width,
gint spinbutton_width,
gfloat value,
gfloat lower,
gfloat upper,
gfloat step_increment,
gfloat page_increment,
gdouble value,
gdouble lower,
gdouble upper,
gdouble step_increment,
gdouble page_increment,
guint digits,
gboolean constrain,
gfloat unconstrained_lower,
gfloat unconstrained_upper,
gdouble unconstrained_lower,
gdouble unconstrained_upper,
const gchar *tooltip,
const gchar *help_data);
......@@ -179,11 +179,11 @@ GtkObject * gimp_color_scale_entry_new (GtkTable *table,
const gchar *text,
gint scale_width,
gint spinbutton_width,
gfloat value,
gfloat lower,
gfloat upper,
gfloat step_increment,
gfloat page_increment,
gdouble value,
gdouble lower,
gdouble upper,
gdouble step_increment,
gdouble page_increment,
guint digits,
const gchar *tooltip,
const gchar *help_data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment