edje: Rename part external class
authorJean-Philippe Andre <jp.andre@samsung.com>
Wed, 13 Sep 2017 04:58:38 +0000 (13:58 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Wed, 13 Sep 2017 04:58:38 +0000 (13:58 +0900)
This was missed in the previous commit as this special part class didn't
include the internal keyword.

Ref T5315
Ref T5306

src/Makefile_Edje.am
src/lib/edje/Edje_Eo.h
src/lib/edje/edje_part_external.c
src/lib/edje/edje_util.c
src/lib/edje/efl_canvas_layout_external.eo [deleted file]
src/lib/edje/efl_canvas_layout_part_external.eo [new file with mode: 0644]

index 0148da56fc4cfbb0d25761093cb95fd606ab8b79..5b874135b4d7999c5c48183738ab16d93b4c5f0d 100644 (file)
@@ -8,9 +8,9 @@ edje_eolian_files = \
        lib/edje/edje_object.eo \
        lib/edje/efl_canvas_layout_part.eo \
        lib/edje/efl_canvas_layout_part_box.eo \
-       lib/edje/efl_canvas_layout_part_table.eo \
+       lib/edje/efl_canvas_layout_part_external.eo \
        lib/edje/efl_canvas_layout_part_swallow.eo \
-       lib/edje/efl_canvas_layout_external.eo \
+       lib/edje/efl_canvas_layout_part_table.eo \
        lib/edje/efl_canvas_layout_part_text.eo \
        lib/edje/edje_edit.eo
 
index 23e9efc451b66a5564571ec49d502e1400cfe67b..877f3bea07312928549728e54165ddcbf39ca2db 100644 (file)
@@ -11,4 +11,4 @@
 #include "efl_canvas_layout_part_table.eo.h"
 #include "efl_canvas_layout_part_swallow.eo.h"
 #include "efl_canvas_layout_part_text.eo.h"
-#include "efl_canvas_layout_external.eo.h"
+#include "efl_canvas_layout_part_external.eo.h"
index 1ffc4165b522a9ca014bdc53b39957105b24d4ec..c2f95547fba4533fca72ba4854efd6ad6f566e1c 100644 (file)
@@ -1,7 +1,7 @@
 #include "edje_private.h"
 #include "edje_part_helper.h"
 
-#define MY_CLASS EFL_CANVAS_LAYOUT_EXTERNAL_CLASS
+#define MY_CLASS EFL_CANVAS_LAYOUT_PART_EXTERNAL_CLASS
 
 static void _external_compose(Eo *obj, Edje *ed, const char *part);
 
@@ -16,10 +16,10 @@ _external_compose(Eo *obj, Edje *ed, const char *part)
 }
 
 EOLIAN static Efl_Gfx *
-_efl_canvas_layout_external_efl_container_content_get(Eo *obj, void *_pd EINA_UNUSED)
+_efl_canvas_layout_part_external_efl_container_content_get(Eo *obj, void *_pd EINA_UNUSED)
 {
    PROXY_DATA_GET(obj, pd);
    RETURN_VAL(_edje_object_part_external_object_get(pd->ed, pd->part));
 }
 
-#include "efl_canvas_layout_external.eo.c"
+#include "efl_canvas_layout_part_external.eo.c"
index d14ce87977e34db06eadc65d03547673367b7400..6eb431ee59f16ae3ba30939933abe433e6cf9479 100644 (file)
@@ -2841,7 +2841,7 @@ _edje_box_layout_builtin_find(const char *name)
 }
 
 static Eina_Rbtree_Direction
-_edje_box_layout_external_node_cmp(const Eina_Rbtree *left, const Eina_Rbtree *right, EINA_UNUSED void *data)
+_edje_box_layout_part_external_node_cmp(const Eina_Rbtree *left, const Eina_Rbtree *right, EINA_UNUSED void *data)
 {
    Edje_Box_Layout *l = (Edje_Box_Layout *)left;
    Edje_Box_Layout *r = (Edje_Box_Layout *)right;
@@ -2853,17 +2853,17 @@ _edje_box_layout_external_node_cmp(const Eina_Rbtree *left, const Eina_Rbtree *r
 }
 
 static int
-_edje_box_layout_external_find_cmp(const Eina_Rbtree *node, const void *key, EINA_UNUSED int length, EINA_UNUSED void *data)
+_edje_box_layout_part_external_find_cmp(const Eina_Rbtree *node, const void *key, EINA_UNUSED int length, EINA_UNUSED void *data)
 {
    Edje_Box_Layout *l = (Edje_Box_Layout *)node;
    return strcmp(key, l->name);
 }
 
 static Edje_Box_Layout *
-_edje_box_layout_external_find(const char *name)
+_edje_box_layout_part_external_find(const char *name)
 {
    return (Edje_Box_Layout *)eina_rbtree_inline_lookup
-            (_edje_box_layout_registry, name, 0, _edje_box_layout_external_find_cmp,
+            (_edje_box_layout_registry, name, 0, _edje_box_layout_part_external_find_cmp,
             NULL);
 }
 
@@ -2882,7 +2882,7 @@ _edje_box_layout_find(const char *name, Evas_Object_Box_Layout *cb, void **data,
         return EINA_TRUE;
      }
 
-   l = _edje_box_layout_external_find(name);
+   l = _edje_box_layout_part_external_find(name);
    if (!l) return EINA_FALSE;
 
    *cb = l->func;
@@ -2896,7 +2896,7 @@ _edje_box_layout_find(const char *name, Evas_Object_Box_Layout *cb, void **data,
 }
 
 static void
-_edje_box_layout_external_free(Eina_Rbtree *node, EINA_UNUSED void *data)
+_edje_box_layout_part_external_free(Eina_Rbtree *node, EINA_UNUSED void *data)
 {
    Edje_Box_Layout *l = (Edje_Box_Layout *)node;
 
@@ -2906,7 +2906,7 @@ _edje_box_layout_external_free(Eina_Rbtree *node, EINA_UNUSED void *data)
 }
 
 static Edje_Box_Layout *
-_edje_box_layout_external_new(const char *name, Evas_Object_Box_Layout func, void *(*layout_data_get)(void *), void (*layout_data_free)(void *), void (*free_data)(void *), void *data)
+_edje_box_layout_part_external_new(const char *name, Evas_Object_Box_Layout func, void *(*layout_data_get)(void *), void (*layout_data_free)(void *), void (*free_data)(void *), void *data)
 {
    Edje_Box_Layout *l;
    size_t name_len;
@@ -2942,7 +2942,7 @@ edje_box_layout_register(const char *name, Evas_Object_Box_Layout func, void *(*
         return;
      }
 
-   l = _edje_box_layout_external_find(name);
+   l = _edje_box_layout_part_external_find(name);
    if (!l)
      {
         if (!func)
@@ -2951,14 +2951,14 @@ edje_box_layout_register(const char *name, Evas_Object_Box_Layout func, void *(*
              return;
           }
 
-        l = _edje_box_layout_external_new
+        l = _edje_box_layout_part_external_new
             (name, func, layout_data_get, layout_data_free, free_data, data);
         if (!l)
           return;
 
         _edje_box_layout_registry = eina_rbtree_inline_insert
             (_edje_box_layout_registry, (Eina_Rbtree *)l,
-            _edje_box_layout_external_node_cmp, NULL);
+            _edje_box_layout_part_external_node_cmp, NULL);
      }
    else
      {
@@ -2978,8 +2978,8 @@ edje_box_layout_register(const char *name, Evas_Object_Box_Layout func, void *(*
 
              _edje_box_layout_registry = eina_rbtree_inline_remove
                  (_edje_box_layout_registry, (Eina_Rbtree *)l,
-                 _edje_box_layout_external_node_cmp, NULL);
-             _edje_box_layout_external_free((Eina_Rbtree *)l, NULL);
+                 _edje_box_layout_part_external_node_cmp, NULL);
+             _edje_box_layout_part_external_free((Eina_Rbtree *)l, NULL);
           }
      }
 }
@@ -3926,7 +3926,7 @@ _edje_box_shutdown(void)
      return;
 
    eina_rbtree_delete
-     (_edje_box_layout_registry, _edje_box_layout_external_free, NULL);
+     (_edje_box_layout_registry, _edje_box_layout_part_external_free, NULL);
    _edje_box_layout_registry = NULL;
 }
 
diff --git a/src/lib/edje/efl_canvas_layout_external.eo b/src/lib/edje/efl_canvas_layout_external.eo
deleted file mode 100644 (file)
index bf723a5..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-import edje_types;
-
-class Efl.Canvas.Layout.External (Efl.Canvas.Layout.Part, Efl.Container,
-                                  Efl.Canvas.Object)
-{
-   [[Class representing an external part in Edje layouts.
-
-     An object of this type is an Efl.Part object, which means its lifecycle
-     is limited to one and only one function call.
-
-     An external part contains one object, which can be retrieved with
-     @Efl.Container.content.get(). Do not delete this object. Just like for
-     other parts, Edje is in charge of the visibility, geometry, clip, etc...
-
-     Common usage is then, in pseudo-C:
-       Eo *widget = efl_content_get(efl_part(layout, "extpartname"));
-       efl_text_set(widget, "hello");
-
-     Note that as a shortcut the widget's functions can be called directly on
-     this part object. In pseudo-C++:
-       dynamic_cast<efl::Text>(layout.part("title")).text_set("hello");
-     Or in pseudo-C:
-       efl_text_set(efl_part(layout, "title"), "hello");
-     Or in pseudo-script:
-       layout["title"].text = "hello";
-
-     @since 1.20
-   ]]
-   data: null;
-   implements {
-      Efl.Container.content { get; }
-   }
-}
diff --git a/src/lib/edje/efl_canvas_layout_part_external.eo b/src/lib/edje/efl_canvas_layout_part_external.eo
new file mode 100644 (file)
index 0000000..8d5a483
--- /dev/null
@@ -0,0 +1,33 @@
+import edje_types;
+
+class Efl.Canvas.Layout.Part_External (Efl.Canvas.Layout.Part, Efl.Container,
+                                       Efl.Canvas.Object)
+{
+   [[Class representing an external part in Edje layouts.
+
+     An object of this type is an Efl.Part object, which means its lifecycle
+     is limited to one and only one function call.
+
+     An external part contains one object, which can be retrieved with
+     @Efl.Container.content.get(). Do not delete this object. Just like for
+     other parts, Edje is in charge of the visibility, geometry, clip, etc...
+
+     Common usage is then, in pseudo-C:
+       Eo *widget = efl_content_get(efl_part(layout, "extpartname"));
+       efl_text_set(widget, "hello");
+
+     Note that as a shortcut the widget's functions can be called directly on
+     this part object. In pseudo-C++:
+       dynamic_cast<efl::Text>(layout.part("title")).text_set("hello");
+     Or in pseudo-C:
+       efl_text_set(efl_part(layout, "title"), "hello");
+     Or in pseudo-script:
+       layout["title"].text = "hello";
+
+     @since 1.20
+   ]]
+   data: null;
+   implements {
+      Efl.Container.content { get; }
+   }
+}