summaryrefslogtreecommitdiff
path: root/unsorted
diff options
context:
space:
mode:
authorSangHyeon Lee <sh10233.lee@samsung.com>2018-04-30 18:54:32 +0900
committerSangHyeon Lee <sh10233.lee@samsung.com>2018-04-30 19:25:06 +0900
commita8ea04fc2fde86f816cb2e083efe366a220694e8 (patch)
tree532cbe142ef342c9a5346118e187bac002e915f6 /unsorted
parentf774b7b0baab39dae5a1a6eb59ed703d70e9a63d (diff)
efl.ui.view_list : update example text/content name on legacy to efl
update examples and edc as our new naming rule changes.
Diffstat (limited to 'unsorted')
-rw-r--r--unsorted/elementary/efl_ui_view_list_example.edc62
-rw-r--r--unsorted/elementary/efl_ui_view_list_example_1.c2
-rw-r--r--unsorted/elementary/efl_ui_view_list_example_2.c4
-rw-r--r--unsorted/elementary/efl_ui_view_list_example_3.c12
4 files changed, 40 insertions, 40 deletions
diff --git a/unsorted/elementary/efl_ui_view_list_example.edc b/unsorted/elementary/efl_ui_view_list_example.edc
index 3b46863b..75bafe1b 100644
--- a/unsorted/elementary/efl_ui_view_list_example.edc
+++ b/unsorted/elementary/efl_ui_view_list_example.edc
@@ -9,8 +9,8 @@
9collections { 9collections {
10 10
11group { 11group {
12 name: "elm/list/item/custom"; 12 name: "efl/list_item:custom";
13 alias: "elm/list/item/default"; 13 alias: "efl/list_item";
14 data.item: "selectraise" "on"; 14 data.item: "selectraise" "on";
15 data.item: "focusraise" "on"; 15 data.item: "focusraise" "on";
16 parts { 16 parts {
@@ -34,12 +34,12 @@ group {
34 } 34 }
35 } 35 }
36 program { 36 program {
37 signal: "elm,state,odd"; source: "elm"; 37 signal: "efl,state,odd"; source: "efl";
38 action: STATE_SET "odd" 1.0; 38 action: STATE_SET "odd" 1.0;
39 target: "base"; 39 target: "base";
40 } 40 }
41 program { 41 program {
42 signal: "elm,state,even"; source: "elm"; 42 signal: "efl,state,even"; source: "efl";
43 action: STATE_SET "default" 0.0; 43 action: STATE_SET "default" 0.0;
44 target: "base"; 44 target: "base";
45 } 45 }
@@ -74,41 +74,41 @@ group {
74 } 74 }
75 } 75 }
76 program { 76 program {
77 signal: "elm,state,selected"; source: "elm"; 77 signal: "efl,state,selected"; source: "efl";
78 action: STATE_SET "selected" 0.0; 78 action: STATE_SET "selected" 0.0;
79 target: "sel_shadow"; 79 target: "sel_shadow";
80 target: "sel_base"; 80 target: "sel_base";
81 target: "sel_bevel"; 81 target: "sel_bevel";
82 } 82 }
83 program { 83 program {
84 signal: "elm,state,unselected"; source: "elm"; 84 signal: "efl,state,unselected"; source: "efl";
85 action: STATE_SET "default" 0.0; 85 action: STATE_SET "default" 0.0;
86 target: "sel_shadow"; 86 target: "sel_shadow";
87 target: "sel_base"; 87 target: "sel_base";
88 target: "sel_bevel"; 88 target: "sel_bevel";
89 } 89 }
90 program { 90 program {
91 signal: "elm,state,disabled"; source: "elm"; 91 signal: "efl,state,disabled"; source: "efl";
92 action: STATE_SET "disabled" 0.0; 92 action: STATE_SET "disabled" 0.0;
93 target: "event"; 93 target: "event";
94 } 94 }
95 program { 95 program {
96 signal: "elm,state,enabled"; source: "elm"; 96 signal: "efl,state,enabled"; source: "efl";
97 action: STATE_SET "default" 0.0; 97 action: STATE_SET "default" 0.0;
98 target: "event"; 98 target: "event";
99 } 99 }
100 100
101 //##// 101 //##//
102 part { name: "elm.text"; type: TEXT; mouse_events: 0; 102 part { name: "efl.text"; type: TEXT; mouse_events: 0;
103 effect: SHADOW BOTTOM; 103 effect: SHADOW BOTTOM;
104 scale: 1; 104 scale: 1;
105 description { state: "default" 0.0; 105 description { state: "default" 0.0;
106 rel1.offset: 2 3; 106 rel1.offset: 2 3;
107 rel1.relative: 1.0 0.0; 107 rel1.relative: 1.0 0.0;
108 rel1.to_x: "elm.swallow.icon"; 108 rel1.to_x: "efl.icon";
109 rel2.offset: -3 -3; 109 rel2.offset: -3 -3;
110 rel2.relative: 0.0 1.0; 110 rel2.relative: 0.0 1.0;
111 rel2.to_x: "elm.swallow.end"; 111 rel2.to_x: "efl.end";
112 color: FN_COL_DEFAULT; 112 color: FN_COL_DEFAULT;
113 color_class: "list_item"; 113 color_class: "list_item";
114 text { font: FN; size: 10; 114 text { font: FN; size: 10;
@@ -131,12 +131,12 @@ group {
131 effect: SHADOW BOTTOM; 131 effect: SHADOW BOTTOM;
132 scale: 1; 132 scale: 1;
133 description { state: "default" 0.0; 133 description { state: "default" 0.0;
134 rel1.to: "elm.text"; 134 rel1.to: "efl.text";
135 rel2.to: "elm.text"; 135 rel2.to: "efl.text";
136 color: FN_COL_DISABLE; 136 color: FN_COL_DISABLE;
137 color_class: "list_item_disabled"; 137 color_class: "list_item_disabled";
138 text { font: FN; size: 10; 138 text { font: FN; size: 10;
139 text_source: "elm.text"; 139 text_source: "efl.text";
140 align: 0.0 0.5; 140 align: 0.0 0.5;
141 text_class: "list_item"; 141 text_class: "list_item";
142 } 142 }
@@ -156,13 +156,13 @@ group {
156 scale: 1; 156 scale: 1;
157 description { state: "default" 0.0; 157 description { state: "default" 0.0;
158 rel1.offset: -2 -3; 158 rel1.offset: -2 -3;
159 rel1.to: "elm.text"; 159 rel1.to: "efl.text";
160 rel2.offset: 1 1; 160 rel2.offset: 1 1;
161 rel2.to: "elm.text"; 161 rel2.to: "efl.text";
162 color: FN_COL_HIGHLIGHT; 162 color: FN_COL_HIGHLIGHT;
163 color_class: "list_item_selected"; 163 color_class: "list_item_selected";
164 text { font: FN; size: 10; 164 text { font: FN; size: 10;
165 text_source: "elm.text"; 165 text_source: "efl.text";
166 align: 0.0 0.5; 166 align: 0.0 0.5;
167 text_class: "list_item"; 167 text_class: "list_item";
168 } 168 }
@@ -178,35 +178,35 @@ group {
178 } 178 }
179 } 179 }
180 program { 180 program {
181 signal: "elm,state,selected"; source: "elm"; 181 signal: "efl,state,selected"; source: "efl";
182 action: STATE_SET "selected" 0.0; 182 action: STATE_SET "selected" 0.0;
183 target: "elm.text"; 183 target: "efl.text";
184 target: "label2"; 184 target: "label2";
185 target: "label3"; 185 target: "label3";
186 } 186 }
187 program { 187 program {
188 signal: "elm,state,unselected"; source: "elm"; 188 signal: "efl,state,unselected"; source: "efl";
189 action: STATE_SET "default" 0.0; 189 action: STATE_SET "default" 0.0;
190 target: "elm.text"; 190 target: "efl.text";
191 target: "label2"; 191 target: "label2";
192 target: "label3"; 192 target: "label3";
193 } 193 }
194 program { 194 program {
195 signal: "elm,state,disabled"; source: "elm"; 195 signal: "efl,state,disabled"; source: "efl";
196 action: STATE_SET "disabled" 0.0; 196 action: STATE_SET "disabled" 0.0;
197 target: "elm.text"; 197 target: "efl.text";
198 target: "label2"; 198 target: "label2";
199 target: "label3"; 199 target: "label3";
200 } 200 }
201 program { 201 program {
202 signal: "elm,state,enabled"; source: "elm"; 202 signal: "efl,state,enabled"; source: "efl";
203 action: STATE_SET "default" 0.0; 203 action: STATE_SET "default" 0.0;
204 target: "elm.text"; 204 target: "efl.text";
205 target: "label2"; 205 target: "label2";
206 target: "label3"; 206 target: "label3";
207 } 207 }
208 //##// 208 //##//
209 part { name: "elm.swallow.icon"; type: SWALLOW; 209 part { name: "efl.icon"; type: SWALLOW;
210 description { state: "default" 0.0; 210 description { state: "default" 0.0;
211 fixed: 1 0; 211 fixed: 1 0;
212 align: 0.0 0.5; 212 align: 0.0 0.5;
@@ -216,7 +216,7 @@ group {
216 rel2.offset: 2 -3; 216 rel2.offset: 2 -3;
217 } 217 }
218 } 218 }
219 part { name: "elm.swallow.end"; type: SWALLOW; 219 part { name: "efl.end"; type: SWALLOW;
220 description { state: "default" 0.0; 220 description { state: "default" 0.0;
221 fixed: 1 0; 221 fixed: 1 0;
222 align: 1.0 0.5; 222 align: 1.0 0.5;
@@ -254,22 +254,22 @@ group {
254 } 254 }
255 } 255 }
256 program { 256 program {
257 signal: "elm,state,selected"; source: "elm"; 257 signal: "efl,state,selected"; source: "efl";
258 action: STATE_SET "selected" 0.0; 258 action: STATE_SET "selected" 0.0;
259 target: "sel_shine"; 259 target: "sel_shine";
260 } 260 }
261 program { 261 program {
262 signal: "elm,state,unselected"; source: "elm"; 262 signal: "efl,state,unselected"; source: "efl";
263 action: STATE_SET "default" 0.0; 263 action: STATE_SET "default" 0.0;
264 target: "sel_shine"; 264 target: "sel_shine";
265 } 265 }
266 program { 266 program {
267 signal: "elm,state,disabled"; source: "elm"; 267 signal: "efl,state,disabled"; source: "efl";
268 action: STATE_SET "disabled" 0.0; 268 action: STATE_SET "disabled" 0.0;
269 target: "event_block"; 269 target: "event_block";
270 } 270 }
271 program { 271 program {
272 signal: "elm,state,enabled"; source: "elm"; 272 signal: "efl,state,enabled"; source: "efl";
273 action: STATE_SET "default" 0.0; 273 action: STATE_SET "default" 0.0;
274 target: "event_block"; 274 target: "event_block";
275 } 275 }
diff --git a/unsorted/elementary/efl_ui_view_list_example_1.c b/unsorted/elementary/efl_ui_view_list_example_1.c
index 621f81ee..5e86875f 100644
--- a/unsorted/elementary/efl_ui_view_list_example_1.c
+++ b/unsorted/elementary/efl_ui_view_list_example_1.c
@@ -84,7 +84,7 @@ elm_main(int argc, char **argv)
84 84
85 factory = efl_add(EFL_UI_LAYOUT_FACTORY_CLASS, win); 85 factory = efl_add(EFL_UI_LAYOUT_FACTORY_CLASS, win);
86 efl_ui_model_connect(factory, "signal/elm,state,%v", "odd_style"); 86 efl_ui_model_connect(factory, "signal/elm,state,%v", "odd_style");
87 efl_ui_model_connect(factory, "elm.text", "name"); 87 efl_ui_model_connect(factory, "efl.text", "name");
88 efl_ui_layout_factory_theme_config(factory, "list_item", NULL, "default"); 88 efl_ui_layout_factory_theme_config(factory, "list_item", NULL, "default");
89 89
90 li = efl_add(EFL_UI_VIEW_LIST_CLASS, win); 90 li = efl_add(EFL_UI_VIEW_LIST_CLASS, win);
diff --git a/unsorted/elementary/efl_ui_view_list_example_2.c b/unsorted/elementary/efl_ui_view_list_example_2.c
index fac0e5d8..7b5ef4c4 100644
--- a/unsorted/elementary/efl_ui_view_list_example_2.c
+++ b/unsorted/elementary/efl_ui_view_list_example_2.c
@@ -24,7 +24,7 @@ _realized_cb(void *data, const Efl_Event *event)
24 evas_object_size_hint_weight_set(ie->layout, EVAS_HINT_EXPAND, 0); 24 evas_object_size_hint_weight_set(ie->layout, EVAS_HINT_EXPAND, 0);
25 evas_object_size_hint_align_set(ie->layout, EVAS_HINT_FILL, EVAS_HINT_FILL); 25 evas_object_size_hint_align_set(ie->layout, EVAS_HINT_FILL, EVAS_HINT_FILL);
26 26
27 efl_ui_factory_model_connect(ie->layout, "elm.swallow.icon", imf); 27 efl_ui_factory_model_connect(ie->layout, "efl.icon", imf);
28} 28}
29 29
30EAPI_MAIN int 30EAPI_MAIN int
@@ -45,7 +45,7 @@ elm_main(int argc, char **argv)
45 45
46 model = efl_add(EIO_MODEL_CLASS, efl_main_loop_get(), eio_model_path_set(efl_added, dirname)); 46 model = efl_add(EIO_MODEL_CLASS, efl_main_loop_get(), eio_model_path_set(efl_added, dirname));
47 factory = efl_add(EFL_UI_LAYOUT_FACTORY_CLASS, win); 47 factory = efl_add(EFL_UI_LAYOUT_FACTORY_CLASS, win);
48 efl_ui_model_connect(factory, "elm.text", "filename"); 48 efl_ui_model_connect(factory, "efl.text", "filename");
49 efl_ui_layout_factory_theme_config(factory, "list_item", NULL, "default"); 49 efl_ui_layout_factory_theme_config(factory, "list_item", NULL, "default");
50 50
51 li = efl_add(EFL_UI_VIEW_LIST_CLASS, win); 51 li = efl_add(EFL_UI_VIEW_LIST_CLASS, win);
diff --git a/unsorted/elementary/efl_ui_view_list_example_3.c b/unsorted/elementary/efl_ui_view_list_example_3.c
index c2e8281e..9e7507fc 100644
--- a/unsorted/elementary/efl_ui_view_list_example_3.c
+++ b/unsorted/elementary/efl_ui_view_list_example_3.c
@@ -150,8 +150,8 @@ _realized_1_cb(void *data EINA_UNUSED, const Efl_Event *event)
150 150
151 evas_object_size_hint_weight_set(ie->layout, EVAS_HINT_EXPAND, 0); 151 evas_object_size_hint_weight_set(ie->layout, EVAS_HINT_EXPAND, 0);
152 evas_object_size_hint_align_set(ie->layout, EVAS_HINT_FILL, EVAS_HINT_FILL); 152 evas_object_size_hint_align_set(ie->layout, EVAS_HINT_FILL, EVAS_HINT_FILL);
153 efl_ui_model_connect(ie->layout, "elm.text", "name"); 153 efl_ui_model_connect(ie->layout, "efl.text", "name");
154 efl_ui_model_connect(ie->layout, "signal/elm,state,%v", "odd_style"); 154 efl_ui_model_connect(ie->layout, "signal/efl,state,%v", "odd_style");
155} 155}
156 156
157static void 157static void
@@ -163,7 +163,7 @@ _realized_2_cb(void *data EINA_UNUSED, const Efl_Event *event)
163 elm_object_focus_allow_set(ie->layout, EINA_TRUE); 163 elm_object_focus_allow_set(ie->layout, EINA_TRUE);
164 evas_object_size_hint_weight_set(ie->layout, EVAS_HINT_EXPAND, 0); 164 evas_object_size_hint_weight_set(ie->layout, EVAS_HINT_EXPAND, 0);
165 evas_object_size_hint_align_set(ie->layout, EVAS_HINT_FILL, EVAS_HINT_FILL); 165 evas_object_size_hint_align_set(ie->layout, EVAS_HINT_FILL, EVAS_HINT_FILL);
166 efl_ui_model_connect(ie->layout, "elm.text", "occupation"); 166 efl_ui_model_connect(ie->layout, "efl.text", "occupation");
167} 167}
168 168
169static Efl_Model* 169static Efl_Model*
@@ -222,7 +222,7 @@ elm_main(int argc, char **argv)
222 222
223 priv->model = _make_model(); 223 priv->model = _make_model();
224 factory = efl_add(EFL_UI_LAYOUT_FACTORY_CLASS, win); 224 factory = efl_add(EFL_UI_LAYOUT_FACTORY_CLASS, win);
225 efl_ui_model_connect(factory, "elm.text", "filename"); 225 efl_ui_model_connect(factory, "efl.text", "filename");
226 efl_ui_layout_factory_theme_config(factory, "list_item", NULL, "default"); 226 efl_ui_layout_factory_theme_config(factory, "list_item", NULL, "default");
227 227
228 priv->list1 = efl_add(EFL_UI_VIEW_LIST_CLASS, win, efl_ui_view_model_set(efl_added, priv->model)); 228 priv->list1 = efl_add(EFL_UI_VIEW_LIST_CLASS, win, efl_ui_view_model_set(efl_added, priv->model));
@@ -233,8 +233,8 @@ elm_main(int argc, char **argv)
233 efl_ui_view_list_layout_factory_set(priv->list1, factory); 233 efl_ui_view_list_layout_factory_set(priv->list1, factory);
234 234
235 factory = efl_add(EFL_UI_LAYOUT_FACTORY_CLASS, win); 235 factory = efl_add(EFL_UI_LAYOUT_FACTORY_CLASS, win);
236 efl_ui_model_connect(factory, "elm.text", "filename"); 236 efl_ui_model_connect(factory, "efl.text", "filename");
237 efl_ui_model_connect(factory, "signal/elm,state,%v", "selected"); 237 efl_ui_model_connect(factory, "signal/efl,state,%v", "selected");
238 efl_ui_layout_factory_theme_config(factory, "list_item", NULL, "default"); 238 efl_ui_layout_factory_theme_config(factory, "list_item", NULL, "default");
239 priv->list2 = efl_add(EFL_UI_VIEW_LIST_CLASS, win, efl_ui_view_model_set(efl_added, priv->model)); 239 priv->list2 = efl_add(EFL_UI_VIEW_LIST_CLASS, win, efl_ui_view_model_set(efl_added, priv->model));
240 efl_event_callback_add(priv->list2, EFL_UI_VIEW_LIST_EVENT_ITEM_REALIZED, _realized_2_cb, priv->list2); 240 efl_event_callback_add(priv->list2, EFL_UI_VIEW_LIST_EVENT_ITEM_REALIZED, _realized_2_cb, priv->list2);