From: Mykola Solyanko Date: Tue, 8 Sep 2015 12:25:39 +0000 (+0300) Subject: Online-doc were updated for Edje Objects: Using Edje Text Classes X-Git-Tag: tizen_3.0/TD_SYNC/20161201~559^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8d7106d25d015ed019e36a07515247eb61a10a3a;p=sdk%2Fonline-doc.git Online-doc were updated for Edje Objects: Using Edje Text Classes Change-Id: I051b94d49c218e9ca1a79b8bc658362a3fbd5f4e Signed-off-by: Mykola Solyanko --- diff --git a/org.tizen.ui.practices/html/native/efl/edje_text_n.htm b/org.tizen.ui.practices/html/native/efl/edje_text_n.htm index f37599a..35a8d82 100644 --- a/org.tizen.ui.practices/html/native/efl/edje_text_n.htm +++ b/org.tizen.ui.practices/html/native/efl/edje_text_n.htm @@ -391,45 +391,84 @@ group

The Global button changes the text class globally, causing all Edje object parts to be changed in case they contain the custom_text_class text class.

-group 
-{ 
-   name: "class_list_application";
-   parts 
+group
+{
+   name: "object_text_class_application";
+   parts
    {
-      part 
-      { 
-         name: "text_view";
-         type: TEXT;
-         description 
-         { 
+      part
+      {
+         name: "bg";
+         type: RECT;
+         description
+         {
+            state: "default " 0.0;
+         }
+      }
+      part
+      {
+         name: "edje.swallow.group1";
+         type: SWALLOW;
+         description
+         {
             state: "default" 0.0;
-            visible: 1;
-            color: 0 0 0 255;
-            align: 0.5 0.0;
-            text 
-            {
-               text: "text part number 3";
-               font: "Sans";
-               min: 1 1;
-               max: 1 1;
-               size: 20;
-            }
+            rel1.relative: 0.02 0.1;
+            rel2.relative: 0.3 0.2;
          }
       }
-      part 
-      { 
-         name: "edje.swallow.list";
+      part
+      {
+         name: "edje.swallow.group2";
          type: SWALLOW;
-         description 
-         { 
+         description
+         {
             state: "default" 0.0;
-            align: 0.5 0.0;
+            rel1.relative: 0.5 0.1;
+            rel2.relative: 0.77 0.2;
+         }
+      }
+      part
+      {
+         name: "edje.swallow.spinner";
+         type: SWALLOW;
+         description
+         {
+            state: "default" 0.0;
+            rel1.relative: 0.2 0.2;
+            rel2.relative: 0.9 0.35;
+         }
+      }
+      part
+      {
+         name: "edje.swallow.buttons";
+         type: SWALLOW;
+         description
+         {
+            state: "default" 0.0;
+            rel1.relative: 0.0 0.9;
+            rel2.relative: 1.0 1.0;
+         }
+      }
+      part
+      {
+         name: "text_spin";
+         type: TEXT;
+         scale: 1;
+         description
+         {
+            state: "default" 0.0;
+            visible: 1;
             color: 0 0 0 255;
-            rel1 
+            rel1.relative: 0.0 0.2;
+            rel2.relative: 0.2 0.35;
+            text
             {
-               relative: 0.0 1.0;
-               to_y: "text_view";
+               text: "Font Size";
+               font: "Sans";
+               align: 0.0 0.5;
+               size: 13;
             }
+         }
       }
    }
 }
@@ -564,7 +603,7 @@ _create_text_class_gui(void *data, Evas_Object *obj, void *event_info)
    button = elm_button_add(ad->gui2_layout);
    evas_object_size_hint_align_set(button, EVAS_HINT_FILL, EVAS_HINT_FILL);
    evas_object_size_hint_weight_set(button, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-   elm_object_text_set(button, Set1);
+   elm_object_text_set(button, "Set1");
    evas_object_show(button);
    evas_object_smart_callback_add(button, "clicked", _edje_object_text_class_set_1, ad);
    elm_box_pack_end(box, button);
@@ -572,7 +611,7 @@ _create_text_class_gui(void *data, Evas_Object *obj, void *event_info)
    button = elm_button_add(ad->gui2_layout);
    evas_object_size_hint_align_set(button, EVAS_HINT_FILL, EVAS_HINT_FILL);
    evas_object_size_hint_weight_set(button, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-   elm_object_text_set(button, Set2);
+   elm_object_text_set(button, "Set2");
    evas_object_show(button); 
    evas_object_smart_callback_add(button, "clicked", _edje_object_text_class_set_2, ad);
    elm_box_pack_end(box, button);
@@ -631,15 +670,15 @@ _create_text_class_gui(void *data, Evas_Object *obj, void *event_info)
    button = elm_button_add(ad->gui2_layout);
    evas_object_size_hint_align_set(button, EVAS_HINT_FILL, EVAS_HINT_FILL);
    evas_object_size_hint_weight_set(button, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-   elm_object_text_set(button, Get1);
-   evas_object_show(button); 
+   elm_object_text_set(button, "Get1");
+   evas_object_show(button);
    evas_object_smart_callback_add(button, "clicked", _edje_object_text_class_get_1, ad);
    elm_box_pack_end(box, button);
 
    button = elm_button_add(ad->gui2_layout);
    evas_object_size_hint_align_set(button, EVAS_HINT_FILL, EVAS_HINT_FILL);
    evas_object_size_hint_weight_set(button, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-   elm_object_text_set(button, Get2);
+   elm_object_text_set(button, "Get2");
    evas_object_show(button); 
    evas_object_smart_callback_add(button, "clicked", _edje_object_text_class_get_2, ad);
    elm_box_pack_end(box, button);