summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@samsung.com>2015-10-01 18:07:37 +0300
committerDaniel Zaoui <daniel.zaoui@yahoo.com>2015-10-05 09:10:15 +0300
commitbe4248265d30df1955234a2a7ed0d626ef2db1b9 (patch)
tree203a291a49668bc20c08828f29208236af963e69 /data
parentf98ba477e46d58ca31cf55a9809fbe48c1858df6 (diff)
Dummy objects are now Edje
Diffstat (limited to 'data')
-rw-r--r--data/layouts/CMakeLists.txt14
-rw-r--r--data/layouts/dummy.edc74
-rw-r--r--data/layouts/dummy.json13
-rw-r--r--data/layouts/dummy.pngbin0 -> 15229 bytes
4 files changed, 98 insertions, 3 deletions
diff --git a/data/layouts/CMakeLists.txt b/data/layouts/CMakeLists.txt
index 61fc84a..41526a4 100644
--- a/data/layouts/CMakeLists.txt
+++ b/data/layouts/CMakeLists.txt
@@ -1,5 +1,15 @@
1cmake_minimum_required(VERSION 2.8.1) 1cmake_minimum_required(VERSION 2.8.1)
2 2
3add_custom_command (
4 OUTPUT dummy.edj
5 COMMAND edje_cc -id ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/dummy.edc ${CMAKE_CURRENT_BINARY_DIR}/dummy.edj
6 DEPENDS dummy.edc
7)
8add_custom_target (
9 dummy_edj
10 DEPENDS dummy.edj dummy.edc
11)
12
3LIST(APPEND CONFIG_FILES 13LIST(APPEND CONFIG_FILES
4 dummy.json 14 dummy.json
5 factory.json 15 factory.json
@@ -9,4 +19,6 @@ foreach (f ${CONFIG_FILES})
9 configure_file(${f} ${CMAKE_CURRENT_BINARY_DIR}/${f} COPYONLY) 19 configure_file(${f} ${CMAKE_CURRENT_BINARY_DIR}/${f} COPYONLY)
10endforeach(f) 20endforeach(f)
11 21
12install (FILES ${CONFIG_FILES} DESTINATION share/${PROJECT_NAME_LOWER}/layouts) 22install (
23 FILES ${CONFIG_FILES} ${CMAKE_CURRENT_BINARY_DIR}/dummy.edj
24 DESTINATION share/${PROJECT_NAME_LOWER}/layouts)
diff --git a/data/layouts/dummy.edc b/data/layouts/dummy.edc
new file mode 100644
index 0000000..2342942
--- /dev/null
+++ b/data/layouts/dummy.edc
@@ -0,0 +1,74 @@
1collections {
2 group { name: "dummy";
3 images {
4 image: "dummy.png" COMP;
5 }
6 parts {
7 part { name: "base";
8 type: RECT;
9 repeat_events: 1;
10 description { state: "default" 0.0;
11 color: 255 255 255 10;
12 }
13 }
14 part { name: "img";
15 type: IMAGE;
16 repeat_events: 1;
17 description { state: "default" 0.0;
18 image.normal: "dummy.png";
19 align: 0.5 0.5;
20 aspect: 1 1;
21 aspect_preference: BOTH;
22 }
23 }
24 part { name: "frame_l";
25 type: RECT;
26 repeat_events: 1;
27 description { state: "default" 0.0;
28 align: 0 0.5;
29 rel1.relative: 0 0;
30 rel2.relative: 0 1;
31 color: 51 153 255 127;
32 min: 1 0;
33 fixed: 1 0;
34 }
35 }
36 part { name: "frame_r";
37 type: RECT;
38 repeat_events: 1;
39 description { state: "default" 0.0;
40 align: 1 0.5;
41 rel1.relative: 1 0;
42 rel2.relative: 1 1;
43 color: 51 153 255 127;
44 min: 1 0;
45 fixed: 1 0;
46 }
47 }
48 part { name: "frame_t";
49 type: RECT;
50 repeat_events: 1;
51 description { state: "default" 0.0;
52 align: 0.5 0;
53 rel1.relative: 0 0;
54 rel2.relative: 1 0;
55 color: 51 153 255 127;
56 min: 0 1;
57 fixed: 0 1;
58 }
59 }
60 part { name: "frame_b";
61 type: RECT;
62 repeat_events: 1;
63 description { state: "default" 0.0;
64 align: 0.5 1;
65 rel1.relative: 0 1;
66 rel2.relative: 1 1;
67 color: 51 153 255 127;
68 min: 0 1;
69 fixed: 0 1;
70 }
71 }
72 }
73 }
74}
diff --git a/data/layouts/dummy.json b/data/layouts/dummy.json
index 714da5c..7c320b5 100644
--- a/data/layouts/dummy.json
+++ b/data/layouts/dummy.json
@@ -1,16 +1,25 @@
1{ 1{
2 "Resources":
3 {
4 "Edjes":
5 {
6 "Dummy_Edje":["dummy.edj", ""]
7 }
8 },
2 "Widgets": 9 "Widgets":
3 { 10 {
4 "__dummy": 11 "__dummy":
5 { 12 {
6 "Desc": 13 "Desc":
7 { 14 {
8 "class":"Elm.Button", 15 "class":"Elm.Layout",
9 "public":true 16 "public":true
10 }, 17 },
11 "Properties": 18 "Properties":
12 { 19 {
13 "Elm.Widget.part_text":[null, "Dummy"], 20 "Evas.Object.size_hint_weight":[1, 1],
21 "Evas.Object.size_hint_align":[-1, -1],
22 "Efl.File.file":["Dummy_Edje", "dummy"],
14 "Efl.Gfx.Base.visible":[true] 23 "Efl.Gfx.Base.visible":[true]
15 } 24 }
16 } 25 }
diff --git a/data/layouts/dummy.png b/data/layouts/dummy.png
new file mode 100644
index 0000000..1f0d68d
--- /dev/null
+++ b/data/layouts/dummy.png
Binary files differ