libgimpwidgets: arrange color models in tabs in GimpColorScales.

This allows to have a smaller and cleaner color dock instead of just
listing all possible channels (which may only grow up as we may add more
color spaces).
The API gimp_color_scales_(set|get)_show_hsv() are removed in favor of
more generic gimp_color_selector_(set|get)_model(). I assume this is
ok since they have only been available in the dev version (commit
6258d525ae, a month ago).
This commit is contained in:
Jehan 2018-01-21 00:35:32 +01:00
parent 8120694759
commit 37e9be3a4f
7 changed files with 283 additions and 133 deletions

View file

@ -121,6 +121,25 @@ typedef enum
GIMP_COLOR_SELECTOR_LCH_HUE /*< desc="_H", help="LCH Hue" >*/
} GimpColorSelectorChannel;
/**
* GimpColorSelectorModel:
* @GIMP_COLOR_SELECTOR_RGB: RGB color model
* @GIMP_COLOR_SELECTOR_LCH: CIELCh color model
* @GIMP_COLOR_SELECTOR_HSV: HSV color model
*
* An enum to specify the types of color spaces edited in
* #GimpColorSelector widgets.
**/
#define GIMP_TYPE_COLOR_SELECTOR_MODEL (gimp_color_selector_model_get_type ())
GType gimp_color_selector_model_get_type (void) G_GNUC_CONST;
typedef enum
{
GIMP_COLOR_SELECTOR_RGB, /*< desc="RGB", help="RGB color model" >*/
GIMP_COLOR_SELECTOR_LCH, /*< desc="LCH", help="CIELCh color model" >*/
GIMP_COLOR_SELECTOR_HSV /*< desc="HSV", help="HSV color model" >*/
} GimpColorSelectorModel;
/**
* GimpPageSelectorTarget: