Commit 7b057807 authored by Ell's avatar Ell

operations: annotate angle properties with "direction" ui-meta

Annotate all directional angle properties with a "direction" UI-
meta, specifying whether the angle is measured clockwise ("cw") or
counter-clockwise ("ccw").  This allows directionality-dependent
UI, such as GIMP's dial widget, to use the correct direction.
parent 2e0f4234
......@@ -51,6 +51,7 @@ property_boolean (tiled, _("Tiled"), FALSE)
property_double (azimuth, _("Azimuth"), 135.0)
value_range (0.0, 360.0)
ui_meta ("unit", "degree")
ui_meta ("direction", "ccw")
property_double (elevation, _("Elevation"), 45.0)
value_range (0.5, 90.0)
......
......@@ -35,6 +35,7 @@ property_double (azimuth, _("Azimuth"), 30.0)
description (_("Light angle (degrees)"))
value_range (0, 360)
ui_meta ("unit", "degree")
ui_meta ("direction", "ccw")
property_double (elevation, _("Elevation"), 45.0)
description (_("Elevation angle (degrees)"))
......
......@@ -81,6 +81,7 @@ property_double (light_dir, _("Light direction"), 135.0)
description (("Direction of light-source (in degrees)"))
value_range (0.0, 360.0)
ui_meta ("unit", "degree")
ui_meta ("direction", "ccw")
property_boolean (antialiasing, _("Antialiasing"), TRUE)
description (_("Enables smoother tile output"))
......
......@@ -38,6 +38,7 @@ property_double (depth, _("Circle depth in percent"), 100.0)
property_double (angle, _("Offset angle"), 0.0)
value_range (0.0, 360.0)
ui_meta ("unit", "degree")
ui_meta ("direction", "ccw")
property_boolean (bw, _("Map backwards"), FALSE)
description (_("Start from the right instead of the left"))
......
......@@ -45,6 +45,7 @@ property_double (phi, _("Phase shift"), 0.0)
property_double (angle, _("Angle"), 0.0)
value_range (-180, 180)
ui_meta ("unit", "degree")
ui_meta ("direction", "ccw")
property_enum (sampler_type, _("Resampling method"),
GeglSamplerType, gegl_sampler_type, GEGL_SAMPLER_CUBIC)
......
......@@ -65,6 +65,7 @@ property_double (rotation, _("Rotation"), 0.0)
description (_("Spiral rotation"))
value_range (0.0, 360.0)
ui_meta ("unit", "degree")
ui_meta ("direction", "ccw")
enum_start (gegl_spiral_direction)
enum_value (GEGL_SPIRAL_DIRECTION_CLOCKWISE, "cw", N_("Clockwise"))
......
......@@ -37,6 +37,7 @@ property_double (whirl, _("Whirl"), 90.0)
description (_("Whirl angle (degrees)"))
ui_range (-720, 720)
ui_meta ("unit", "degree")
ui_meta ("direction", "ccw")
property_double (pinch, _("Pinch"), 0.0)
description (_("Pinch amount"))
......
......@@ -25,16 +25,19 @@ property_double (pan, _("Pan"), 0.0)
description (_("Horizontal camera panning"))
value_range (-360.0, 360.0)
ui_meta ("unit", "degree")
ui_meta ("direction", "cw")
property_double (tilt, _("Tilt"), 90.0)
description (_("Vertical camera panning"))
value_range (-180.0, 180.0)
ui_range (-180.0, 180.0)
ui_meta ("unit", "degree")
ui_meta ("direction", "cw")
property_double (spin, _("Spin"), 0.0)
description (_("Spin angle around camera axis"))
value_range (-360.0, 360.0)
ui_meta ("direction", "cw")
property_double (zoom, _("Zoom"), 100.0)
description (("Zoom level"))
......
......@@ -31,11 +31,13 @@ property_double (m_angle, _("Mirror rotation"), 0.0)
description (_("Rotation applied to the mirrors"))
value_range (0.0, 180.0)
ui_meta ("unit", "degree")
ui_meta ("direction", "cw")
property_double (r_angle, _("Result rotation"), 0.0)
description (_("Rotation applied to the result"))
value_range (0.0, 360.0)
ui_meta ("unit", "degree")
ui_meta ("direction", "cw")
property_int (n_segs, _("Mirrors"), 6)
description (_("Number of mirrors to use"))
......
......@@ -34,6 +34,7 @@ property_double (angle, _("Angle"), 0.0)
description (_("Angle of blur in degrees"))
value_range (-180, 180)
ui_meta ("unit", "degree")
ui_meta ("direction", "cw")
#else
......
......@@ -63,6 +63,7 @@ property_double (angleboost, _("Angle Boost"), 0.0)
property_double (twist, _("Black and green angle"), 75.0)
value_range (-180.0, 180.0)
ui_meta ("unit", "degree")
ui_meta ("direction", "ccw")
description (_("angle offset for patterns"))
ui_meta ("label", "[color-model {white-on-black,"
" black-on-white} : bw-label,"
......@@ -75,6 +76,7 @@ property_double (twist, _("Black and green angle"), 75.0)
property_double (twist2, _("Red and cyan angle"), 15.0)
value_range (-180.0, 180.0)
ui_meta ("unit", "degree")
ui_meta ("direction", "ccw")
ui_meta ("visible", "color-model {rgb, cmyk}")
ui_meta ("label", "[color-model {rgb} : rgb-label,"
" color-model {cmyk} : cmyk-label]")
......@@ -84,6 +86,7 @@ property_double (twist2, _("Red and cyan angle"), 15.0)
property_double (twist3, _("Blue and magenta angle"), 45.0)
value_range (-180.0, 180.0)
ui_meta ("unit", "degree")
ui_meta ("direction", "ccw")
ui_meta ("visible", "color-model {rgb, cmyk}")
ui_meta ("label", "[color-model {rgb} : rgb-label,"
" color-model {cmyk} : cmyk-label]")
......@@ -93,6 +96,7 @@ property_double (twist3, _("Blue and magenta angle"), 45.0)
property_double (twist4, _("Yellow angle"), 0.0)
value_range (-180.0, 180.0)
ui_meta ("unit", "degree")
ui_meta ("direction", "ccw")
ui_meta ("visible", "color-model {cmyk}")
#else
......
......@@ -25,16 +25,19 @@ property_double (pan, _("Pan"), 0.0)
description (_("Horizontal camera panning"))
value_range (-360.0, 360.0)
ui_meta ("unit", "degree")
ui_meta ("direction", "cw")
property_double (tilt, _("Tilt"), 0.0)
description (_("Vertical camera panning"))
value_range (-180.0, 180.0)
ui_range (-180.0, 180.0)
ui_meta ("unit", "degree")
ui_meta ("direction", "cw")
property_double (spin, _("Spin"), 0.0)
description (_("Spin angle around camera axis"))
value_range (-360.0, 360.0)
ui_meta ("direction", "cw")
property_double (zoom, _("Zoom"), 100.0)
description (("Zoom level"))
......
......@@ -71,6 +71,7 @@ property_double (y, _("Center Y"), 0.5)
property_double (rotation, _("Rotation"), 0.0)
value_range (0.0, 360.0)
ui_meta ("unit", "degree") /* XXX: change to radians */
ui_meta ("direction", "cw")
#else
......
......@@ -27,6 +27,7 @@ property_double (degrees, _("Degrees"), 0.0)
value_range (-720.0, 720.0)
ui_range (-180.0, 180.0)
ui_meta ("unit", "degree")
ui_meta ("direction", "ccw")
#else
......
......@@ -67,6 +67,7 @@ property_double (angle, _("Angle"), 90.0)
description(_("Axis separation angle"))
value_range (0.0, 360.0)
ui_meta ("unit", "degree")
ui_meta ("direction", "ccw")
property_double (offset, _("Offset"), 0.0)
description(_("Value offset"))
......@@ -96,6 +97,7 @@ property_double (rotation, _("Rotation"), 0.0)
description(_("Pattern rotation angle"))
value_range (0.0, 360.0)
ui_meta ("unit", "degree")
ui_meta ("direction", "ccw")
property_int (supersampling, _("Supersampling"), 1)
description(_("Number of samples along each axis per pixel"))
......
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