[gegl] operations: reorder mosaic's chant parameters



commit 2236063faf0a69c7243d1c4d4ed965ad96be32dc
Author: Téo Mazars <teo mazars ensimag fr>
Date:   Sun Sep 22 11:13:48 2013 +0200

    operations: reorder mosaic's chant parameters
    
    ... in an order that makes more sense

 operations/common/mosaic.c |   52 ++++++++++++++++++++++++++-----------------
 1 files changed, 31 insertions(+), 21 deletions(-)
---
diff --git a/operations/common/mosaic.c b/operations/common/mosaic.c
index 2dbf8bf..69fbd9a 100644
--- a/operations/common/mosaic.c
+++ b/operations/common/mosaic.c
@@ -28,26 +28,6 @@
 
 #ifdef GEGL_CHANT_PROPERTIES
 
-gegl_chant_double_ui (tile_size, _("Tile size"), 1.0, 1000.0, 15.0,
-                      5.0, 400, 1.0, _("Average diameter of each tile (in pixels)"))
-gegl_chant_double_ui (tile_height, _("Tile height"), 1.0, 1000.0, 4.0,
-                      1.0, 20.0, 1.0, _("Apparent height of each tile (in pixels)"))
-gegl_chant_double_ui (tile_spacing, _("Tile spacing"), 0.1, 1000.0, 1.0,
-                      0.5, 30.0, 1.0,  _("Inter-tile spacing (in pixels)"))
-gegl_chant_double    (tile_neatness, _("Tile neatness"), 0.0, 1.0, 0.65,
-                      _("Deviation from perfectly formed tiles"))
-gegl_chant_boolean   (tile_allow_split, _("Allow splitting tiles"), TRUE,
-                      _("Allows splitting tiles at hard edges"))
-gegl_chant_double    (light_dir,  _("Light direction"),
-                      0.0, 360.0, 135, _("Direction of light-source (in degrees)"))
-gegl_chant_double    (color_variation, _("Color variation"),
-                      0.0, 1.0, 0.2, _("Magnitude of random color variations"))
-gegl_chant_seed      (seed, _("Random seed"), _("Random seed"))
-gegl_chant_boolean   (antialiasing, _("Antialiasing"), TRUE,
-                      _("Enables smoother tile output"))
-gegl_chant_boolean   (color_averaging, _("Color averaging"), TRUE,
-                      _("Tile color based on average of subsumed pixels"))
-
 gegl_chant_register_enum (gegl_mosaic_tile)
   enum_value (GEGL_MOSAIC_TILE_SQUARES,   "SQUARES")
   enum_value (GEGL_MOSAIC_TILE_HEXAGONS,  "HEXAGONS")
@@ -59,12 +39,42 @@ gegl_chant_enum      (tile_type, _("Tile geometry"), GeglMosaicTile,
                       gegl_mosaic_tile, GEGL_MOSAIC_TILE_HEXAGONS,
                       _("What shape to use for tiles"))
 
+gegl_chant_double_ui (tile_size, _("Tile size"), 1.0, 1000.0, 15.0,
+                      5.0, 400, 1.0, _("Average diameter of each tile (in pixels)"))
+
+gegl_chant_double_ui (tile_height, _("Tile height"), 1.0, 1000.0, 4.0,
+                      1.0, 20.0, 1.0, _("Apparent height of each tile (in pixels)"))
+
+gegl_chant_double    (tile_neatness, _("Tile neatness"), 0.0, 1.0, 0.65,
+                      _("Deviation from perfectly formed tiles"))
+
+gegl_chant_double    (color_variation, _("Tile color variation"),
+                      0.0, 1.0, 0.2, _("Magnitude of random color variations"))
+
+gegl_chant_boolean   (color_averaging, _("Color averaging"), TRUE,
+                      _("Tile color based on average of subsumed pixels"))
+
 gegl_chant_boolean   (tile_surface, _("Rough tile surface"), FALSE,
                        _("Surface characteristics"))
 
-gegl_chant_color     (bg_color, _("Joins color"), "black", _("Joins color"))
+gegl_chant_boolean   (tile_allow_split, _("Allow splitting tiles"), TRUE,
+                      _("Allows splitting tiles at hard edges"))
+
+gegl_chant_double_ui (tile_spacing, _("Tile spacing"), 0.1, 1000.0, 1.0,
+                      0.5, 30.0, 1.0,  _("Inter-tile spacing (in pixels)"))
+
+gegl_chant_color     (bg_color, _("Joints color"), "black", _("Joints color"))
+
 gegl_chant_color     (fg_color, _("Light color"), "white", _("Light color"))
 
+gegl_chant_double    (light_dir,  _("Light direction"),
+                      0.0, 360.0, 135, _("Direction of light-source (in degrees)"))
+
+gegl_chant_seed      (seed, _("Random seed"), _("Random seed"))
+
+gegl_chant_boolean   (antialiasing, _("Antialiasing"), TRUE,
+                      _("Enables smoother tile output"))
+
 #else
 
 #define GEGL_CHANT_TYPE_AREA_FILTER


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]