Updated demo following Slider move to the public API 48/70948/6
authorSeoyeon Kim <seoyeon2.kim@samsung.com>
Mon, 23 May 2016 10:28:02 +0000 (19:28 +0900)
committerTom Robinson <tom.robinson@samsung.com>
Thu, 16 Jun 2016 11:32:38 +0000 (12:32 +0100)
Change-Id: I33bbf86c1ae35d8b55f4b5c3d8d83d27503c2ecc
Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
examples/image-view/image-view-example.cpp
resources/scripts/slider-test-style.json
resources/scripts/slider.json

index af3f16cb464897c9d88cd6e97662d0227c773c53..89bd8d6386963ac7cad614922666b5def1ba127c 100644 (file)
@@ -18,7 +18,6 @@
 #include "shared/view.h"
 #include <dali/dali.h>
 #include <dali-toolkit/dali-toolkit.h>
-#include <dali-toolkit/devel-api/controls/slider/slider.h>
 
 using namespace Dali;
 
index 84bc1c5b00f3b40cc9592090fbb1c524494f85ad..c906566f7a183fa75506a437d4b7f9a5bc8bf396 100644 (file)
@@ -32,8 +32,7 @@
       "showPopup": true,
       "showValue": true,
       "valuePrecision": 2,
-      "value": 0.0,
-      "popupTextColor": [0.0, 1.0, 1.0, 1.0]
+      "value": 0.0
     }
   }
 }
index 28ef9d55b45397d3a54d534275ac587b8a567c58..d02bcaef1dfef924e57d26efc30231d36a98333c 100644 (file)
     "showValue": true,
     "valuePrecision": 0,
     "value": 50.0,
-    "popupTextColor": [1, 0, 0, 1],
-    "hitRegion": [0, 48],
-    "backingRegion": [0, 10],
-    "handleRegion": [48, 48]
+    "trackVisual": {
+      "size": [0, 10]
+    },
+    "handleVisual": {
+      "size": [48, 48]
+    }
   }, {
     "type": "Slider",
     "parentOrigin": "TOP_CENTER",
     "showValue": true,
     "valuePrescision": 0,
     "value": 100.0,
-    "hitRegion": [0, 48],
-    "backingRegion": [0, 30],
-    "handleRegion": [48, 48],
-    "backingImageName": "{DEMO_IMAGE_DIR}button-up-14.9.png",
-    "handleImageName": "{DEMO_IMAGE_DIR}blocks-ball.png",
-    "progressImageName": "{DEMO_IMAGE_DIR}button-down.9.png"
+    "trackVisual": {
+      "url": "{DEMO_IMAGE_DIR}button-up-14.9.png",
+      "size": [0, 30]
+    },
+    "handleVisual": {
+      "url": "{DEMO_IMAGE_DIR}blocks-ball.png",
+      "size": [48, 48]
+    },
+    "progressVisual": {
+      "url": "{DEMO_IMAGE_DIR}button-down.9.png"
+    }
   }, {
     "type": "Slider",
     "parentOrigin": "TOP_CENTER",
     "showValue": true,
     "valuePrecision": 0,
     "value": 50.0,
-    "hitRegion": [0, 48],
-    "backingRegion": [0, 10],
-    "handleRegion": [48, 48],
-    "enabled": false
+    "trackVisual": {
+      "size": [0, 10]
+    },
+    "handleVisual": {
+      "size": [48, 48]
+    }
   }, {
     "type": "Slider",
     "parentOrigin": "TOP_CENTER",
     "showValue": true,
     "valuePrecision": 0,
     "value": 50.0,
-    "hitRegion": [0, 48],
-    "backingRegion": [0, 10],
-    "handleRegion": [48, 48],
-    "enabled": false,
-    "disableColor": [1, 0, 0, 1]
+    "trackVisual": {
+      "size": [0, 10]
+    },
+    "handleVisual": {
+      "size": [48, 48]
+    },
+    "disabledColor": [1, 0, 0, 1]
   }]
 }