raster pushed a commit to branch efl-1.20.

http://git.enlightenment.org/core/efl.git/commit/?id=594aefe832d7030e8f3c28f3fca713766833d9ae

commit 594aefe832d7030e8f3c28f3fca713766833d9ae
Author: Andrii Kroitor <[email protected]>
Date:   Mon Oct 30 13:12:11 2017 +0200

    edje_cc: move box and table properties documentation
    
    Documentation comments for properties should be near parser
    implementation.
    
    @fix
---
 src/bin/edje/edje_cc_handlers.c | 176 +++++++++++++++++++++-------------------
 1 file changed, 94 insertions(+), 82 deletions(-)

diff --git a/src/bin/edje/edje_cc_handlers.c b/src/bin/edje/edje_cc_handlers.c
index e457326fc3..55e2d5662c 100644
--- a/src/bin/edje/edje_cc_handlers.c
+++ b/src/bin/edje/edje_cc_handlers.c
@@ -11599,37 +11599,6 @@ 
st_collections_group_parts_part_description_text_ellipsis(void)
 
         Defaults: "horizontal"
     @endproperty
-
-    @property
-        align
-    @parameters
-        [horizontal] [vertical]
-    @effect
-        Change the position of the point of balance inside the container [-1.0 
- 1.0].
-
-        Defaults: 0.5 0.5
-    @endproperty
-
-    @property
-        padding
-    @parameters
-        [horizontal] [vertical]
-    @effect
-        Sets the space between cells in pixels.
-
-        Defaults: 0 0
-    @endproperty
-
-    @property
-        min
-    @parameters
-        [horizontal] [vertical]
-    @effect
-        When any of the parameters is enabled (1) it forces the minimum size of
-        the box to be equal to the minimum size of the items.
-
-        Defaults: 0 0
-    @endproperty
 */
 static void st_collections_group_parts_part_description_box_layout(void)
 {
@@ -11651,6 +11620,18 @@ static void 
st_collections_group_parts_part_description_box_layout(void)
      ed->box.alt_layout = parse_str(1);
 }
 
+/**
+    @page edcref
+    @property
+        align
+    @parameters
+        [horizontal] [vertical]
+    @effect
+        Change the position of the point of balance inside the box [-1.0 - 
1.0].
+
+        Defaults: 0.5 0.5
+    @endproperty
+*/
 static void st_collections_group_parts_part_description_box_align(void)
 {
    Edje_Part_Description_Box *ed;
@@ -11670,6 +11651,18 @@ static void 
st_collections_group_parts_part_description_box_align(void)
    ed->box.align.y = FROM_DOUBLE(parse_float_range(1, -1.0, 1.0));
 }
 
+/**
+    @page edcref
+    @property
+        padding
+    @parameters
+        [horizontal] [vertical]
+    @effect
+        Sets the space between box items in pixels.
+
+        Defaults: 0 0
+    @endproperty
+*/
 static void st_collections_group_parts_part_description_box_padding(void)
 {
    Edje_Part_Description_Box *ed;
@@ -11689,6 +11682,19 @@ static void 
st_collections_group_parts_part_description_box_padding(void)
    ed->box.padding.y = parse_int_range(1, 0, 0x7fffffff);
 }
 
+/**
+    @page edcref
+    @property
+        min
+    @parameters
+        [horizontal] [vertical]
+    @effect
+        When any of the parameters is enabled (1) it forces the minimum size of
+        the box to be equal to the minimum size of the items.
+
+        Defaults: 0 0
+    @endproperty
+*/
 static void
 st_collections_group_parts_part_description_box_min(void)
 {
@@ -11749,37 +11755,6 @@ 
st_collections_group_parts_part_description_box_min(void)
 
         Defaults: NONE
     @endproperty
-
-    @property
-        align
-    @parameters
-        [horizontal] [vertical]
-    @effect
-        Change the position of the point of balance inside the container [-1.0 
- 1.0].
-
-        Defaults: 0.5 0.5
-    @endproperty
-
-    @property
-        padding
-    @parameters
-        [horizontal] [vertical]
-    @effect
-        Sets the space between cells in pixels.
-
-        Defaults: 0 0
-    @endproperty
-
-    @property
-        min
-    @parameters
-        [horizontal] [vertical]
-    @effect
-        When any of the parameters is enabled (1) it forces the minimum size of
-        the table to be equal to the minimum size of the items.
-
-        Defaults: 0 0
-    @endproperty
 */
 static void st_collections_group_parts_part_description_table_homogeneous(void)
 {
@@ -11803,6 +11778,18 @@ static void 
st_collections_group_parts_part_description_table_homogeneous(void)
                                     NULL);
 }
 
+/**
+    @page edcref
+    @property
+        align
+    @parameters
+        [horizontal] [vertical]
+    @effect
+        Change the position of the point of balance inside the table [-1.0 - 
1.0].
+
+        Defaults: 0.5 0.5
+    @endproperty
+*/
 static void st_collections_group_parts_part_description_table_align(void)
 {
    Edje_Part_Description_Table *ed;
@@ -11822,6 +11809,18 @@ static void 
st_collections_group_parts_part_description_table_align(void)
    ed->table.align.y = FROM_DOUBLE(parse_float_range(1, -1.0, 1.0));
 }
 
+/**
+    @page edcref
+    @property
+        padding
+    @parameters
+        [horizontal] [vertical]
+    @effect
+        Sets the space between table cells in pixels.
+
+        Defaults: 0 0
+    @endproperty
+*/
 static void st_collections_group_parts_part_description_table_padding(void)
 {
    Edje_Part_Description_Table *ed;
@@ -11842,6 +11841,39 @@ static void 
st_collections_group_parts_part_description_table_padding(void)
 }
 
 /**
+    @page edcref
+    @property
+        min
+    @parameters
+        [horizontal] [vertical]
+    @effect
+        When any of the parameters is enabled (1) it forces the minimum size of
+        the table to be equal to the minimum size of the items.
+
+        Defaults: 0 0
+    @endproperty
+*/
+static void
+st_collections_group_parts_part_description_table_min(void)
+{
+   Edje_Part_Description_Table *ed;
+
+   check_arg_count(2);
+
+   if (current_part->type != EDJE_PART_TYPE_TABLE)
+     {
+        ERR("parse error %s:%i. table attributes in non-TABLE part.",
+            file_in, line - 1);
+        exit(-1);
+     }
+
+   ed = (Edje_Part_Description_Table*) current_desc;
+
+   ed->table.min.h = parse_bool(0);
+   ed->table.min.v = parse_bool(1);
+}
+
+/**
    @edcsubsection{collections_group_parts_description_proxy,
                   Group.Parts.Part.Description.Proxy}
  */
@@ -13206,26 +13238,6 @@ 
st_collections_group_parts_part_description_mesh_frame(void)
      }
 }
 
-static void
-st_collections_group_parts_part_description_table_min(void)
-{
-   Edje_Part_Description_Table *ed;
-
-   check_arg_count(2);
-
-   if (current_part->type != EDJE_PART_TYPE_TABLE)
-     {
-        ERR("parse error %s:%i. table attributes in non-TABLE part.",
-            file_in, line - 1);
-        exit(-1);
-     }
-
-   ed = (Edje_Part_Description_Table*) current_desc;
-
-   ed->table.min.h = parse_bool(0);
-   ed->table.min.v = parse_bool(1);
-}
-
 /** @edcsubsection{collections_group_parts_description_physics,
  *                 Group.Parts.Part.Description.Physics} */
 

-- 


Reply via email to