summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-08-23 13:39:10 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-08-23 15:24:37 +0900
commitcec45f616a1bc8c00f9f59fc7073ac9a6a21112b (patch)
tree49d76900437fd9d9a04b67d47c07152d078b0c9e
parentdb4950ba2f2489335583324fa3c646d1dc4393bc (diff)
js: Fix some js examples usage of orient API
This was not tested. How to test js?
-rw-r--r--src/examples/elementary/box_js_example_02.js8
-rw-r--r--src/examples/elementary/button_example_01.js6
-rw-r--r--src/examples/elementary/radio_example_01.js2
-rw-r--r--src/examples/elementary/slider_example.js4
-rw-r--r--src/examples/elementary/twitter_example_01.js4
5 files changed, 12 insertions, 12 deletions
diff --git a/src/examples/elementary/box_js_example_02.js b/src/examples/elementary/box_js_example_02.js
index d18ef82ff2..a0d276dc27 100644
--- a/src/examples/elementary/box_js_example_02.js
+++ b/src/examples/elementary/box_js_example_02.js
@@ -27,8 +27,8 @@ win.setContent(bigbox);
27 27
28bx = new efl.Efl.Ui.Box(win); 28bx = new efl.Efl.Ui.Box(win);
29bx.setHintWeight(1.0, 1.0); 29bx.setHintWeight(1.0, 1.0);
30bx_orient = bx.cast("Efl.Orientation"); 30bx_orient = bx.cast("Efl.Ui.Direction");
31bx_orient.setOrientation(efl.Efl.Orient.VERTICAL); 31bx_orient.setOrientation(efl.Efl.Ui.Dir.VERTICAL);
32bigbox.packEnd(bx); 32bigbox.packEnd(bx);
33bx.setVisible(true); 33bx.setVisible(true);
34 34
@@ -47,8 +47,8 @@ bt.on('clicked', _clear_cb);
47bx = new efl.Efl.Ui.Box(win) 47bx = new efl.Efl.Ui.Box(win)
48bx.setHintWeight(1.0, 1.0); 48bx.setHintWeight(1.0, 1.0);
49bx.setHintAlign(-1.0, -1.0); 49bx.setHintAlign(-1.0, -1.0);
50bx_orient = bx.cast("Efl.Orientation"); 50bx_orient = bx.cast("Efl.Ui.Direction");
51bx_orient.setOrientation(efl.Efl.Orient.HORIZONTAL); 51bx_orient.setDirection(efl.Efl.Ui.Dir.HORIZONTAL);
52bigbox.packEnd(bx); 52bigbox.packEnd(bx);
53bx.setVisible(true); 53bx.setVisible(true);
54 54
diff --git a/src/examples/elementary/button_example_01.js b/src/examples/elementary/button_example_01.js
index b14e427fe7..65c839c478 100644
--- a/src/examples/elementary/button_example_01.js
+++ b/src/examples/elementary/button_example_01.js
@@ -89,7 +89,7 @@ win.setContent(box);
89box.setVisible(true); 89box.setVisible(true);
90 90
91box_initial = new efl.Efl.Ui.Box(win); 91box_initial = new efl.Efl.Ui.Box(win);
92box_initial.cast("Efl.Orientation").setOrientation(efl.Efl.Orient.HORIZONTAL); 92box_initial.cast("Efl.Ui.Direction").setDirection(efl.Efl.Ui.Dir.HORIZONTAL);
93box_initial.setHintWeight(1.0, 0.0); 93box_initial.setHintWeight(1.0, 0.0);
94box.packEnd(box_initial); 94box.packEnd(box_initial);
95box_initial.setVisible(true); 95box_initial.setVisible(true);
@@ -114,7 +114,7 @@ btn3.setVisible(true);
114btn3.on('clicked', _btn_options_cb); 114btn3.on('clicked', _btn_options_cb);
115 115
116box_gap = new efl.Efl.Ui.Box(win); 116box_gap = new efl.Efl.Ui.Box(win);
117box_gap.cast("Efl.Orientation").setOrientation(efl.Efl.Orient.HORIZONTAL); 117box_gap.cast("Efl.Ui.Direction").setDirection(efl.Efl.Ui.Dir.HORIZONTAL);
118box_gap.setHintWeight(1.0, 0.0); 118box_gap.setHintWeight(1.0, 0.0);
119box.packEnd(box_gap); 119box.packEnd(box_gap);
120box_gap.setVisible(true); 120box_gap.setVisible(true);
@@ -151,7 +151,7 @@ icon_up.setIcon("arrow_up");
151setIcon(up, icon_up); 151setIcon(up, icon_up);
152 152
153box_inferior = new efl.Efl.Ui.Box(win); 153box_inferior = new efl.Efl.Ui.Box(win);
154box_inferior.cast("Efl.Orientation").setOrientation(efl.Efl.Orient.HORIZONTAL); 154box_inferior.cast("Efl.Ui.Direction").setDirection(efl.Efl.Ui.Dir.HORIZONTAL);
155box_inferior.setHintWeight(1.0, 1.0); 155box_inferior.setHintWeight(1.0, 1.0);
156box_inferior.setHintAlign(-1.0, -1.0); 156box_inferior.setHintAlign(-1.0, -1.0);
157box.packEnd(box_inferior); 157box.packEnd(box_inferior);
diff --git a/src/examples/elementary/radio_example_01.js b/src/examples/elementary/radio_example_01.js
index ebc68217b8..35a235dc30 100644
--- a/src/examples/elementary/radio_example_01.js
+++ b/src/examples/elementary/radio_example_01.js
@@ -10,7 +10,7 @@ win.setText("Radio");
10win.setAutohide(true); 10win.setAutohide(true);
11 11
12bx = new efl.Efl.Ui.Box(win); 12bx = new efl.Efl.Ui.Box(win);
13bx.cast("Efl.Orientation").setOrientation(efl.Efl.Orient.HORIZONTAL); 13bx.cast("Efl.Ui.Direction").setDirection(efl.Efl.Ui.Dir.HORIZONTAL);
14bx.setHintWeight(1.0, 1.0); 14bx.setHintWeight(1.0, 1.0);
15win.setContent(bx); 15win.setContent(bx);
16bx.setVisible(true); 16bx.setVisible(true);
diff --git a/src/examples/elementary/slider_example.js b/src/examples/elementary/slider_example.js
index d64e4dde87..244d51185f 100644
--- a/src/examples/elementary/slider_example.js
+++ b/src/examples/elementary/slider_example.js
@@ -6,7 +6,7 @@ win.setText("Slider Example");
6win.setAutohide(true); 6win.setAutohide(true);
7 7
8bx = new efl.Efl.Ui.Box(win); 8bx = new efl.Efl.Ui.Box(win);
9bx.cast("Efl.Orientation").setOrientation(efl.Efl.Orient.HORIZONTAL); 9bx.cast("Efl.Ui.Direction").setDirection(efl.Efl.Ui.Dir.HORIZONTAL);
10bx.setHintWeight(1.0, 1.0); 10bx.setHintWeight(1.0, 1.0);
11win.setContent(bx); 11win.setContent(bx);
12bx.setVisible(true); 12bx.setVisible(true);
@@ -66,7 +66,7 @@ sl.setVisible(true);
66 66
67/* vertical with indicator format func */ 67/* vertical with indicator format func */
68sl = new efl.Elm.Slider(win); 68sl = new efl.Elm.Slider(win);
69sl.cast("Efl.Orientation").setOrientation(efl.Efl.Orient.VERTICAL); 69sl.cast("Efl.Ui.Direction").setDirection(efl.Efl.Ui.Dir.VERTICAL);
70//indicator_format = function() 70//indicator_format = function()
71// { 71// {
72// indicator = new char[32]; 72// indicator = new char[32];
diff --git a/src/examples/elementary/twitter_example_01.js b/src/examples/elementary/twitter_example_01.js
index db4945c29d..ad62dc0a6f 100644
--- a/src/examples/elementary/twitter_example_01.js
+++ b/src/examples/elementary/twitter_example_01.js
@@ -34,8 +34,8 @@ tweet_box.setHintAlign(-1.0, -1.0);
34tweet_box.setPackPadding(0.0, 30.0, true); 34tweet_box.setPackPadding(0.0, 30.0, true);
35box.packEnd(tweet_box); 35box.packEnd(tweet_box);
36 36
37tweet_box_orient = tweet_box.cast("Efl.Orientation"); 37tweet_box_orient = tweet_box.cast("Efl.Ui.Direction");
38tweet_box_orient.setOrientation(efl.Efl.Orient.VERTICAL); 38tweet_box_orient.setOrientation(efl.Efl.Ui.Dir.VERTICAL);
39 39
40icon_array = new Array(); 40icon_array = new Array();
41 41