Updating the builder examples to use TextLabel 06/37706/2
authorPaul Wisbey <p.wisbey@samsung.com>
Thu, 2 Apr 2015 15:55:22 +0000 (16:55 +0100)
committerPaul Wisbey <p.wisbey@samsung.com>
Tue, 7 Apr 2015 08:26:57 +0000 (09:26 +0100)
Change-Id: I922f38428990ae202109a65bd711629817574d30

examples/builder/examples.cpp
resources/scripts/animated-colors.json
resources/scripts/animation.json
resources/scripts/background-color.json
resources/scripts/button.json
resources/scripts/formatted-text.json [deleted file]
resources/scripts/hello-world.json
resources/scripts/music-library.json
resources/scripts/navigation.json
resources/scripts/super-blur-view.json

index cd3940b..e00c114 100644 (file)
@@ -59,7 +59,7 @@ std::string JSON_BROKEN("                                      \
   'stage':                                                     \
   [                                                            \
     {                                                          \
-      'type':'TextView',                                       \
+      'type':'TextLabel',                                      \
       'size': [50,50,1],                                       \
       'parent-origin': 'CENTER',                               \
       'text':'COULD NOT LOAD JSON FILE'                        \
index 2b930e8..a7e268c 100644 (file)
       ]
     },
     {
-      "type": "TextView",
+      "type": "TextLabel",
       "name": "text",
       "parent-origin": "CENTER",
       "anchor-point": "CENTER",
-      "text": "<font size='20'><b>START</b></font>",
-      "markup-enabled": true,
+      "text": "START",
+      "point-size": 20,
       "signals": [
         {
           "name": "tapped",
index 7a5f8aa..0383037 100644 (file)
@@ -85,7 +85,7 @@
   // a tree of actors
   "stage": [{
     "name": "greeting",
-    "type": "TextView",
+    "type": "TextLabel",
     "text": "Touch me",
     "styles": ["basic-text"],
     "position": [0, -120, 0],
@@ -98,7 +98,7 @@
     }]
   }, {
     "name":"greeting2",
-    "type": "TextView",
+    "type": "TextLabel",
     "parent-origin": "CENTER",
     "anchor-point": "CENTER",
     "size": [200, 200, 1],
       "animation": "path-animation"
     }]
   }, {
-    "type": "TextView", // styles can be additive
+    "type": "TextLabel", // styles can be additive
     "parent-origin": "CENTER",
     "anchor-point": "CENTER",
     "size": [200, 200, 1],
index dcf8103..4d6051b 100644 (file)
@@ -16,9 +16,9 @@
  */
 {
   "stage": [
-    // A TextView with a red background
+    // A TextLabel with a red background
     {
-      "type": "TextView",
+      "type": "TextLabel",
       "text": "Hello World",
       "parent-origin": "TOP_CENTER",
       "anchor-point": "TOP_CENTER",
index 392f97d..00c94e0 100644 (file)
@@ -39,7 +39,7 @@
         }
       },
       "label-actor": {
-        "type": "TextView",
+        "type": "TextLabel",
         "text": "Normal"
       }
     },
@@ -52,7 +52,7 @@
       "position": [0, 0, 0],
       "size": [0, 200, 0],
       "label-actor": {
-        "type": "TextView",
+        "type": "TextLabel",
         "text": "Disabled"
       },
       "disabled": true,
@@ -85,7 +85,7 @@
       "position": [0, 0, 0],
       "size": [0, 200, 0],
       "label-actor": {
-        "type": "TextView",
+        "type": "TextLabel",
         "text": "Toggle"
       },
       "togglable": true,
         "actor": "toggle-button",
         "property": "label-actor",
         "value": {
-          "type": "TextView",
+          "type": "TextLabel",
           "text": "Using a 9-patch image"
         }
       }]
diff --git a/resources/scripts/formatted-text.json b/resources/scripts/formatted-text.json
deleted file mode 100644 (file)
index 82dac7c..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-{
-  // a tree of actors
-  "stage": [{
-    "type": "Actor",
-    "size": [400, 400, 1],
-    "parent-origin": "CENTER",
-    "actors": [{
-      "type": "TextView",
-      "size": [400, 400, 1],
-      "text": "<font size='8>Text with<br>\n<b>'markup-enabled':true</b></font>",
-      "markup-enabled": true,
-      "multiline-policy": "SplitByNewLineChar",
-      "horizontal-alignment": "HorizontalCenter",
-      "vertical-alignment": "VerticalBottom",
-      "width-exceed-policy": "Fade",
-      "line-justification": "Center",
-      "fade-boundary": [50, 50, 0, 0],
-      "line-height-offset": 25.0,
-      "parent-origin": "TOP_CENTER"
-    }, {
-      "type": "TextView",
-      "size": [400, 400, 1],
-      "text": "<font size='16'>Text with\n<b>'markup-enabled':false</b></font>",
-      "markup-enabled": false,
-      "multiline-policy": "SplitByWord",
-      "horizontal-alignment": "HorizontalLeft",
-      "vertical-alignment": "VerticalTop",
-      "width-exceed-policy": "ShrinkToFit",
-      "height-exceed-policy": "Original",
-      "line-justification": "Right",
-      "line-height-offset": 5.0,
-      "parent-origin": "BOTTOM_CENTER"
-    }]
-  }]
-}
index abbeb5e..f92b710 100644 (file)
@@ -17,7 +17,7 @@
 {
   // a tree of actors
   "stage": [{
-    "type": "TextView",
+    "type": "TextLabel",
     "text": "Hello World",
     "parent-origin": "CENTER"
   }]
index f0a8e4f..163412b 100644 (file)
       "type": "Control",
       "actors": [
         {
-          "type": "TextView",
+          "type": "TextLabel",
           "actors": [],
           "name": "Time",
           "position": [
             1
           ],
           "sizeAspectRatio": false,
-          "markup-enabled": true,
-          "text": "<font size=10px color=#ffffff><b>12:30</b></font>"
+          "text": "12:30",
+          "point-size": 10
         }
       ],
       "name": "Indicators",
index f54a71b..d09feac 100644 (file)
@@ -31,7 +31,7 @@
       "title": "title",
       "sub-title": "sub title",
       "actors": [{
-        "type": "TextView", // styles can be additive
+        "type": "TextLabel", // styles can be additive
         "parent-origin": [0.5, 0.5, 0],
         "anchor-point": [0.5, 0.5, 0],
         "size": [200, 200, 1],
       "type": "Page",
       "name": "page2",
       "actors": [{
-        "type": "TextView", // styles can be additive
+        "type": "TextLabel", // styles can be additive
         "parent-origin": [0.5, 0.5, 0.5],
         "anchor-point": [0.5, 0.5, 0.5],
         "size": [200, 200, 1],
         "text": "Hello World!"
       }, {
-        "type": "TextView", // styles can be additive
+        "type": "TextLabel", // styles can be additive
         "parent-origin": [0.0, 0.0, 0.5],
         "anchor-point": [0.0, 0.0, 0.5],
         "size": [200, 200, 1],
@@ -64,7 +64,7 @@
           "action": "pop"
         }]
       }, {
-        "type": "TextView", // styles can be additive
+        "type": "TextLabel", // styles can be additive
         "parent-origin": [1.0, 1.0, 0.5],
         "anchor-point": [1.0, 1.0, 0.5],
         "size": [200, 200, 1],
index dd31564..59ca48a 100644 (file)
@@ -67,7 +67,7 @@
       "position": [0, 0, 0],
       "size": [0, 100, 0],
       "label-actor": {
-        "type": "TextView",
+        "type": "TextLabel",
         "text": "Blur"
       },
       "normal-state-actor": {