summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmailcom>2013-05-12 16:13:44 +0900
committerDaniel Juyung Seo <seojuyung2@gmailcom>2013-05-12 16:13:44 +0900
commit6303453b5d2ea42670d231eeca86be05cb609e6e (patch)
treed369df5afbd68cb2bfbd5bdabd32e01079dff5a2
parent7ce52e5feae0442b3000b3aed7a2681129b24e15 (diff)
added edc to template.
-rw-r--r--sample/template/01-win/Makefile8
-rw-r--r--sample/template/01-win/layout.edc147
-rw-r--r--sample/template/02-layout/Makefile8
-rw-r--r--sample/template/02-layout/layout.edc151
-rw-r--r--sample/template/03-top-contents/Makefile8
-rw-r--r--sample/template/03-top-contents/layout.edc150
-rw-r--r--sample/template/04-middle-contents/Makefile8
-rw-r--r--sample/template/04-middle-contents/layout.edc149
-rw-r--r--sample/template/05-arrow-btn/Makefile8
-rw-r--r--sample/template/05-arrow-btn/layout.edc147
-rw-r--r--sample/template/06-toolbar/Makefile8
-rw-r--r--sample/template/06-toolbar/layout.edc146
12 files changed, 932 insertions, 6 deletions
diff --git a/sample/template/01-win/Makefile b/sample/template/01-win/Makefile
index deca0e5..be1c6b1 100644
--- a/sample/template/01-win/Makefile
+++ b/sample/template/01-win/Makefile
@@ -1,4 +1,10 @@
1all: sample 1all: sample layout.edj
2 2
3sample: main.c 3sample: main.c
4 gcc main.c -o sample `pkg-config --cflags --libs elementary` -g -Wall 4 gcc main.c -o sample `pkg-config --cflags --libs elementary` -g -Wall
5
6layout.edj: layout.edc
7 edje_cc layout.edc -id /home/seoz/efl/git/devs/seoz/efl-class/sample/data/images
8
9install:
10 cp layout.edj /usr/local/share/sample/edj/
diff --git a/sample/template/01-win/layout.edc b/sample/template/01-win/layout.edc
new file mode 100644
index 0000000..62575c6
--- /dev/null
+++ b/sample/template/01-win/layout.edc
@@ -0,0 +1,147 @@
1collections {
2 images {
3 image: "bg.jpg" COMP;
4 image: "icon_left_arrow.png" COMP;
5 image: "icon_right_arrow.png" COMP;
6 image: "icon_01.png" COMP;
7 image: "icon_02.png" COMP;
8 image: "icon_03.png" COMP;
9 image: "icon_04.png" COMP;
10 image: "icon_05.png" COMP;
11 }
12 group { name:"main";
13 parts {
14 part { name: "bg";
15 type: IMAGE;
16 description { state: "default" 0.0;
17 image.normal: "bg.jpg";
18 }
19 }
20 part { name: "elm.swallow.top";
21 type: RECT;
22 description { state: "default" 0.0;
23 rel1.relative: 0.35 0.0;
24 rel2.relative: 0.65 0.15;
25 color: 255 0 0 255;
26 }
27 }
28 part { name: "elm.text.news";
29 type: TEXT;
30 scale: 1;
31 description { state: "default" 0.0;
32 rel1.relative: 0.05 0.1;
33 rel2.relative: 0.15 0.2;
34 align: 0 0;
35 color: 200 200 200 255;
36 text { font: "Sans:style=Bold";
37 size: 12;
38 min: 0 0;
39 max: 1 0;
40 align: 0.5 0.5;
41 ellipsis: 0.0;
42 text: "News";
43 }
44 }
45 }
46 part { name: "elm.swallow.middle";
47 type: SWALLOW;
48 description { state: "default" 0.0;
49 rel1.relative: 0.06 0.17;
50 rel2.relative: 0.94 0.85;
51 }
52 }
53 part { name: "elm.swallow.bottom";
54 type: SWALLOW;
55 description { state: "default" 0.0;
56 rel1.relative: 0.1 0.87;
57 rel2.relative: 0.9 1.0;
58 }
59 }
60 part { name: "elm.swallow.left_arrow";
61 type: SWALLOW;
62 scale: 1;
63 description { state: "default" 0.0;
64 rel1.relative: 0.0 0.5;
65 rel2.relative: 0.0 0.5;
66 min: 40 50;
67 fixed: 1 1;
68 align: 0.0 0.5;
69 }
70 }
71 part { name: "elm.swallow.right_arrow";
72 type: SWALLOW;
73 scale: 1;
74 description { state: "default" 0.0;
75 rel1.relative: 1.0 0.5;
76 rel2.relative: 1.0 0.5;
77 min: 40 50;
78 fixed: 1 1;
79 align: 1.0 0.5;
80 }
81 }
82 }
83 }
84 group { name:"left_arrow";
85 parts {
86 part { name: "base";
87 description {
88 image.normal: "icon_left_arrow.png";
89 }
90 }
91 }
92 }
93 group { name:"right_arrow";
94 parts {
95 part { name: "base";
96 description {
97 image.normal: "icon_right_arrow.png";
98 }
99 }
100 }
101 }
102 group { name:"icon0";
103 parts {
104 part { name: "base";
105 description {
106 image.normal: "icon_01.png";
107 }
108 }
109 }
110 }
111 group { name:"icon1";
112 parts {
113 part { name: "base";
114 description {
115 image.normal: "icon_02.png";
116 }
117 }
118 }
119 }
120 group { name:"icon2";
121 parts {
122 part { name: "base";
123 description {
124 image.normal: "icon_03.png";
125 }
126 }
127 }
128 }
129 group { name:"icon3";
130 parts {
131 part { name: "base";
132 description {
133 image.normal: "icon_04.png";
134 }
135 }
136 }
137 }
138 group { name:"icon4";
139 parts {
140 part { name: "base";
141 description {
142 image.normal: "icon_05.png";
143 }
144 }
145 }
146 }
147}
diff --git a/sample/template/02-layout/Makefile b/sample/template/02-layout/Makefile
index deca0e5..be1c6b1 100644
--- a/sample/template/02-layout/Makefile
+++ b/sample/template/02-layout/Makefile
@@ -1,4 +1,10 @@
1all: sample 1all: sample layout.edj
2 2
3sample: main.c 3sample: main.c
4 gcc main.c -o sample `pkg-config --cflags --libs elementary` -g -Wall 4 gcc main.c -o sample `pkg-config --cflags --libs elementary` -g -Wall
5
6layout.edj: layout.edc
7 edje_cc layout.edc -id /home/seoz/efl/git/devs/seoz/efl-class/sample/data/images
8
9install:
10 cp layout.edj /usr/local/share/sample/edj/
diff --git a/sample/template/02-layout/layout.edc b/sample/template/02-layout/layout.edc
new file mode 100644
index 0000000..e0c93fc
--- /dev/null
+++ b/sample/template/02-layout/layout.edc
@@ -0,0 +1,151 @@
1collections {
2 images {
3 image: "bg.jpg" COMP;
4 image: "icon_left_arrow.png" COMP;
5 image: "icon_right_arrow.png" COMP;
6 image: "icon_01.png" COMP;
7 image: "icon_02.png" COMP;
8 image: "icon_03.png" COMP;
9 image: "icon_04.png" COMP;
10 image: "icon_05.png" COMP;
11 }
12 group { name:"main";
13 parts {
14 part { name: "bg";
15 type: IMAGE;
16 description { state: "default" 0.0;
17 image.normal: "bg.jpg";
18 }
19 }
20 part { name: "elm.swallow.top";
21 type: RECT;
22 description { state: "default" 0.0;
23 rel1.relative: 0.35 0.0;
24 rel2.relative: 0.65 0.15;
25 color: 255 0 0 255;
26 }
27 }
28 part { name: "elm.text.news";
29 type: TEXT;
30 scale: 1;
31 description { state: "default" 0.0;
32 rel1.relative: 0.05 0.1;
33 rel2.relative: 0.15 0.2;
34 align: 0 0;
35 color: 200 200 200 255;
36 text { font: "Sans:style=Bold";
37 size: 12;
38 min: 0 0;
39 max: 1 0;
40 align: 0.5 0.5;
41 ellipsis: 0.0;
42 text: "News";
43 }
44 }
45 }
46 part { name: "elm.swallow.middle";
47 type: RECT;
48 description { state: "default" 0.0;
49 rel1.relative: 0.06 0.17;
50 rel2.relative: 0.94 0.85;
51 color: 0 255 0 255;
52 }
53 }
54 part { name: "elm.swallow.bottom";
55 type: RECT;
56 description { state: "default" 0.0;
57 rel1.relative: 0.1 0.87;
58 rel2.relative: 0.9 1.0;
59 color: 255 0 255 255;
60 }
61 }
62 part { name: "elm.swallow.left_arrow";
63 type: RECT;
64 scale: 1;
65 description { state: "default" 0.0;
66 rel1.relative: 0.0 0.5;
67 rel2.relative: 0.0 0.5;
68 min: 40 50;
69 fixed: 1 1;
70 align: 0.0 0.5;
71 color: 0 255 255 255;
72 }
73 }
74 part { name: "elm.swallow.right_arrow";
75 type: RECT;
76 scale: 1;
77 description { state: "default" 0.0;
78 rel1.relative: 1.0 0.5;
79 rel2.relative: 1.0 0.5;
80 min: 40 50;
81 fixed: 1 1;
82 align: 1.0 0.5;
83 color: 0 255 255 255;
84 }
85 }
86 }
87 }
88 group { name:"left_arrow";
89 parts {
90 part { name: "base";
91 description {
92 image.normal: "icon_left_arrow.png";
93 }
94 }
95 }
96 }
97 group { name:"right_arrow";
98 parts {
99 part { name: "base";
100 description {
101 image.normal: "icon_right_arrow.png";
102 }
103 }
104 }
105 }
106 group { name:"icon0";
107 parts {
108 part { name: "base";
109 description {
110 image.normal: "icon_01.png";
111 }
112 }
113 }
114 }
115 group { name:"icon1";
116 parts {
117 part { name: "base";
118 description {
119 image.normal: "icon_02.png";
120 }
121 }
122 }
123 }
124 group { name:"icon2";
125 parts {
126 part { name: "base";
127 description {
128 image.normal: "icon_03.png";
129 }
130 }
131 }
132 }
133 group { name:"icon3";
134 parts {
135 part { name: "base";
136 description {
137 image.normal: "icon_04.png";
138 }
139 }
140 }
141 }
142 group { name:"icon4";
143 parts {
144 part { name: "base";
145 description {
146 image.normal: "icon_05.png";
147 }
148 }
149 }
150 }
151}
diff --git a/sample/template/03-top-contents/Makefile b/sample/template/03-top-contents/Makefile
index deca0e5..be1c6b1 100644
--- a/sample/template/03-top-contents/Makefile
+++ b/sample/template/03-top-contents/Makefile
@@ -1,4 +1,10 @@
1all: sample 1all: sample layout.edj
2 2
3sample: main.c 3sample: main.c
4 gcc main.c -o sample `pkg-config --cflags --libs elementary` -g -Wall 4 gcc main.c -o sample `pkg-config --cflags --libs elementary` -g -Wall
5
6layout.edj: layout.edc
7 edje_cc layout.edc -id /home/seoz/efl/git/devs/seoz/efl-class/sample/data/images
8
9install:
10 cp layout.edj /usr/local/share/sample/edj/
diff --git a/sample/template/03-top-contents/layout.edc b/sample/template/03-top-contents/layout.edc
new file mode 100644
index 0000000..5bca854
--- /dev/null
+++ b/sample/template/03-top-contents/layout.edc
@@ -0,0 +1,150 @@
1collections {
2 images {
3 image: "bg.jpg" COMP;
4 image: "icon_left_arrow.png" COMP;
5 image: "icon_right_arrow.png" COMP;
6 image: "icon_01.png" COMP;
7 image: "icon_02.png" COMP;
8 image: "icon_03.png" COMP;
9 image: "icon_04.png" COMP;
10 image: "icon_05.png" COMP;
11 }
12 group { name:"main";
13 parts {
14 part { name: "bg";
15 type: IMAGE;
16 description { state: "default" 0.0;
17 image.normal: "bg.jpg";
18 }
19 }
20 part { name: "elm.swallow.top";
21 type: SWALLOW;
22 description { state: "default" 0.0;
23 rel1.relative: 0.35 0.0;
24 rel2.relative: 0.65 0.15;
25 }
26 }
27 part { name: "elm.text.news";
28 type: TEXT;
29 scale: 1;
30 description { state: "default" 0.0;
31 rel1.relative: 0.05 0.1;
32 rel2.relative: 0.15 0.2;
33 align: 0 0;
34 color: 200 200 200 255;
35 text { font: "Sans:style=Bold";
36 size: 12;
37 min: 0 0;
38 max: 1 0;
39 align: 0.5 0.5;
40 ellipsis: 0.0;
41 text: "News";
42 }
43 }
44 }
45 part { name: "elm.swallow.middle";
46 type: RECT;
47 description { state: "default" 0.0;
48 rel1.relative: 0.06 0.17;
49 rel2.relative: 0.94 0.85;
50 color: 0 255 0 255;
51 }
52 }
53 part { name: "elm.swallow.bottom";
54 type: RECT;
55 description { state: "default" 0.0;
56 rel1.relative: 0.1 0.87;
57 rel2.relative: 0.9 1.0;
58 color: 255 0 255 255;
59 }
60 }
61 part { name: "elm.swallow.left_arrow";
62 type: RECT;
63 scale: 1;
64 description { state: "default" 0.0;
65 rel1.relative: 0.0 0.5;
66 rel2.relative: 0.0 0.5;
67 min: 40 50;
68 fixed: 1 1;
69 align: 0.0 0.5;
70 color: 0 255 255 255;
71 }
72 }
73 part { name: "elm.swallow.right_arrow";
74 type: RECT;
75 scale: 1;
76 description { state: "default" 0.0;
77 rel1.relative: 1.0 0.5;
78 rel2.relative: 1.0 0.5;
79 min: 40 50;
80 fixed: 1 1;
81 align: 1.0 0.5;
82 color: 0 255 255 255;
83 }
84 }
85 }
86 }
87 group { name:"left_arrow";
88 parts {
89 part { name: "base";
90 description {
91 image.normal: "icon_left_arrow.png";
92 }
93 }
94 }
95 }
96 group { name:"right_arrow";
97 parts {
98 part { name: "base";
99 description {
100 image.normal: "icon_right_arrow.png";
101 }
102 }
103 }
104 }
105 group { name:"icon0";
106 parts {
107 part { name: "base";
108 description {
109 image.normal: "icon_01.png";
110 }
111 }
112 }
113 }
114 group { name:"icon1";
115 parts {
116 part { name: "base";
117 description {
118 image.normal: "icon_02.png";
119 }
120 }
121 }
122 }
123 group { name:"icon2";
124 parts {
125 part { name: "base";
126 description {
127 image.normal: "icon_03.png";
128 }
129 }
130 }
131 }
132 group { name:"icon3";
133 parts {
134 part { name: "base";
135 description {
136 image.normal: "icon_04.png";
137 }
138 }
139 }
140 }
141 group { name:"icon4";
142 parts {
143 part { name: "base";
144 description {
145 image.normal: "icon_05.png";
146 }
147 }
148 }
149 }
150}
diff --git a/sample/template/04-middle-contents/Makefile b/sample/template/04-middle-contents/Makefile
index deca0e5..be1c6b1 100644
--- a/sample/template/04-middle-contents/Makefile
+++ b/sample/template/04-middle-contents/Makefile
@@ -1,4 +1,10 @@
1all: sample 1all: sample layout.edj
2 2
3sample: main.c 3sample: main.c
4 gcc main.c -o sample `pkg-config --cflags --libs elementary` -g -Wall 4 gcc main.c -o sample `pkg-config --cflags --libs elementary` -g -Wall
5
6layout.edj: layout.edc
7 edje_cc layout.edc -id /home/seoz/efl/git/devs/seoz/efl-class/sample/data/images
8
9install:
10 cp layout.edj /usr/local/share/sample/edj/
diff --git a/sample/template/04-middle-contents/layout.edc b/sample/template/04-middle-contents/layout.edc
new file mode 100644
index 0000000..40a9588
--- /dev/null
+++ b/sample/template/04-middle-contents/layout.edc
@@ -0,0 +1,149 @@
1collections {
2 images {
3 image: "bg.jpg" COMP;
4 image: "icon_left_arrow.png" COMP;
5 image: "icon_right_arrow.png" COMP;
6 image: "icon_01.png" COMP;
7 image: "icon_02.png" COMP;
8 image: "icon_03.png" COMP;
9 image: "icon_04.png" COMP;
10 image: "icon_05.png" COMP;
11 }
12 group { name:"main";
13 parts {
14 part { name: "bg";
15 type: IMAGE;
16 description { state: "default" 0.0;
17 image.normal: "bg.jpg";
18 }
19 }
20 part { name: "elm.swallow.top";
21 type: SWALLOW;
22 description { state: "default" 0.0;
23 rel1.relative: 0.35 0.0;
24 rel2.relative: 0.65 0.15;
25 }
26 }
27 part { name: "elm.text.news";
28 type: TEXT;
29 scale: 1;
30 description { state: "default" 0.0;
31 rel1.relative: 0.05 0.1;
32 rel2.relative: 0.15 0.2;
33 align: 0 0;
34 color: 200 200 200 255;
35 text { font: "Sans:style=Bold";
36 size: 12;
37 min: 0 0;
38 max: 1 0;
39 align: 0.5 0.5;
40 ellipsis: 0.0;
41 text: "News";
42 }
43 }
44 }
45 part { name: "elm.swallow.middle";
46 type: SWALLOW;
47 description { state: "default" 0.0;
48 rel1.relative: 0.06 0.17;
49 rel2.relative: 0.94 0.85;
50 }
51 }
52 part { name: "elm.swallow.bottom";
53 type: RECT;
54 description { state: "default" 0.0;
55 rel1.relative: 0.1 0.87;
56 rel2.relative: 0.9 1.0;
57 color: 255 0 255 255;
58 }
59 }
60 part { name: "elm.swallow.left_arrow";
61 type: RECT;
62 scale: 1;
63 description { state: "default" 0.0;
64 rel1.relative: 0.0 0.5;
65 rel2.relative: 0.0 0.5;
66 min: 40 50;
67 fixed: 1 1;
68 align: 0.0 0.5;
69 color: 0 255 255 255;
70 }
71 }
72 part { name: "elm.swallow.right_arrow";
73 type: RECT;
74 scale: 1;
75 description { state: "default" 0.0;
76 rel1.relative: 1.0 0.5;
77 rel2.relative: 1.0 0.5;
78 min: 40 50;
79 fixed: 1 1;
80 align: 1.0 0.5;
81 color: 0 255 255 255;
82 }
83 }
84 }
85 }
86 group { name:"left_arrow";
87 parts {
88 part { name: "base";
89 description {
90 image.normal: "icon_left_arrow.png";
91 }
92 }
93 }
94 }
95 group { name:"right_arrow";
96 parts {
97 part { name: "base";
98 description {
99 image.normal: "icon_right_arrow.png";
100 }
101 }
102 }
103 }
104 group { name:"icon0";
105 parts {
106 part { name: "base";
107 description {
108 image.normal: "icon_01.png";
109 }
110 }
111 }
112 }
113 group { name:"icon1";
114 parts {
115 part { name: "base";
116 description {
117 image.normal: "icon_02.png";
118 }
119 }
120 }
121 }
122 group { name:"icon2";
123 parts {
124 part { name: "base";
125 description {
126 image.normal: "icon_03.png";
127 }
128 }
129 }
130 }
131 group { name:"icon3";
132 parts {
133 part { name: "base";
134 description {
135 image.normal: "icon_04.png";
136 }
137 }
138 }
139 }
140 group { name:"icon4";
141 parts {
142 part { name: "base";
143 description {
144 image.normal: "icon_05.png";
145 }
146 }
147 }
148 }
149}
diff --git a/sample/template/05-arrow-btn/Makefile b/sample/template/05-arrow-btn/Makefile
index deca0e5..be1c6b1 100644
--- a/sample/template/05-arrow-btn/Makefile
+++ b/sample/template/05-arrow-btn/Makefile
@@ -1,4 +1,10 @@
1all: sample 1all: sample layout.edj
2 2
3sample: main.c 3sample: main.c
4 gcc main.c -o sample `pkg-config --cflags --libs elementary` -g -Wall 4 gcc main.c -o sample `pkg-config --cflags --libs elementary` -g -Wall
5
6layout.edj: layout.edc
7 edje_cc layout.edc -id /home/seoz/efl/git/devs/seoz/efl-class/sample/data/images
8
9install:
10 cp layout.edj /usr/local/share/sample/edj/
diff --git a/sample/template/05-arrow-btn/layout.edc b/sample/template/05-arrow-btn/layout.edc
new file mode 100644
index 0000000..ec6c32e
--- /dev/null
+++ b/sample/template/05-arrow-btn/layout.edc
@@ -0,0 +1,147 @@
1collections {
2 images {
3 image: "bg.jpg" COMP;
4 image: "icon_left_arrow.png" COMP;
5 image: "icon_right_arrow.png" COMP;
6 image: "icon_01.png" COMP;
7 image: "icon_02.png" COMP;
8 image: "icon_03.png" COMP;
9 image: "icon_04.png" COMP;
10 image: "icon_05.png" COMP;
11 }
12 group { name:"main";
13 parts {
14 part { name: "bg";
15 type: IMAGE;
16 description { state: "default" 0.0;
17 image.normal: "bg.jpg";
18 }
19 }
20 part { name: "elm.swallow.top";
21 type: SWALLOW;
22 description { state: "default" 0.0;
23 rel1.relative: 0.35 0.0;
24 rel2.relative: 0.65 0.15;
25 }
26 }
27 part { name: "elm.text.news";
28 type: TEXT;
29 scale: 1;
30 description { state: "default" 0.0;
31 rel1.relative: 0.05 0.1;
32 rel2.relative: 0.15 0.2;
33 align: 0 0;
34 color: 200 200 200 255;
35 text { font: "Sans:style=Bold";
36 size: 12;
37 min: 0 0;
38 max: 1 0;
39 align: 0.5 0.5;
40 ellipsis: 0.0;
41 text: "News";
42 }
43 }
44 }
45 part { name: "elm.swallow.middle";
46 type: SWALLOW;
47 description { state: "default" 0.0;
48 rel1.relative: 0.06 0.17;
49 rel2.relative: 0.94 0.85;
50 }
51 }
52 part { name: "elm.swallow.bottom";
53 type: RECT;
54 description { state: "default" 0.0;
55 rel1.relative: 0.1 0.87;
56 rel2.relative: 0.9 1.0;
57 color: 255 0 255 255;
58 }
59 }
60 part { name: "elm.swallow.left_arrow";
61 type: SWALLOW;
62 scale: 1;
63 description { state: "default" 0.0;
64 rel1.relative: 0.0 0.5;
65 rel2.relative: 0.0 0.5;
66 min: 40 50;
67 fixed: 1 1;
68 align: 0.0 0.5;
69 }
70 }
71 part { name: "elm.swallow.right_arrow";
72 type: SWALLOW;
73 scale: 1;
74 description { state: "default" 0.0;
75 rel1.relative: 1.0 0.5;
76 rel2.relative: 1.0 0.5;
77 min: 40 50;
78 fixed: 1 1;
79 align: 1.0 0.5;
80 }
81 }
82 }
83 }
84 group { name:"left_arrow";
85 parts {
86 part { name: "base";
87 description {
88 image.normal: "icon_left_arrow.png";
89 }
90 }
91 }
92 }
93 group { name:"right_arrow";
94 parts {
95 part { name: "base";
96 description {
97 image.normal: "icon_right_arrow.png";
98 }
99 }
100 }
101 }
102 group { name:"icon0";
103 parts {
104 part { name: "base";
105 description {
106 image.normal: "icon_01.png";
107 }
108 }
109 }
110 }
111 group { name:"icon1";
112 parts {
113 part { name: "base";
114 description {
115 image.normal: "icon_02.png";
116 }
117 }
118 }
119 }
120 group { name:"icon2";
121 parts {
122 part { name: "base";
123 description {
124 image.normal: "icon_03.png";
125 }
126 }
127 }
128 }
129 group { name:"icon3";
130 parts {
131 part { name: "base";
132 description {
133 image.normal: "icon_04.png";
134 }
135 }
136 }
137 }
138 group { name:"icon4";
139 parts {
140 part { name: "base";
141 description {
142 image.normal: "icon_05.png";
143 }
144 }
145 }
146 }
147}
diff --git a/sample/template/06-toolbar/Makefile b/sample/template/06-toolbar/Makefile
index deca0e5..be1c6b1 100644
--- a/sample/template/06-toolbar/Makefile
+++ b/sample/template/06-toolbar/Makefile
@@ -1,4 +1,10 @@
1all: sample 1all: sample layout.edj
2 2
3sample: main.c 3sample: main.c
4 gcc main.c -o sample `pkg-config --cflags --libs elementary` -g -Wall 4 gcc main.c -o sample `pkg-config --cflags --libs elementary` -g -Wall
5
6layout.edj: layout.edc
7 edje_cc layout.edc -id /home/seoz/efl/git/devs/seoz/efl-class/sample/data/images
8
9install:
10 cp layout.edj /usr/local/share/sample/edj/
diff --git a/sample/template/06-toolbar/layout.edc b/sample/template/06-toolbar/layout.edc
new file mode 100644
index 0000000..a110c2a
--- /dev/null
+++ b/sample/template/06-toolbar/layout.edc
@@ -0,0 +1,146 @@
1collections {
2 images {
3 image: "bg.jpg" COMP;
4 image: "icon_left_arrow.png" COMP;
5 image: "icon_right_arrow.png" COMP;
6 image: "icon_01.png" COMP;
7 image: "icon_02.png" COMP;
8 image: "icon_03.png" COMP;
9 image: "icon_04.png" COMP;
10 image: "icon_05.png" COMP;
11 }
12 group { name:"main";
13 parts {
14 part { name: "bg";
15 type: IMAGE;
16 description { state: "default" 0.0;
17 image.normal: "bg.jpg";
18 }
19 }
20 part { name: "elm.swallow.top";
21 type: SWALLOW;
22 description { state: "default" 0.0;
23 rel1.relative: 0.35 0.0;
24 rel2.relative: 0.65 0.15;
25 }
26 }
27 part { name: "elm.text.news";
28 type: TEXT;
29 scale: 1;
30 description { state: "default" 0.0;
31 rel1.relative: 0.05 0.1;
32 rel2.relative: 0.15 0.2;
33 align: 0 0;
34 color: 200 200 200 255;
35 text { font: "Sans:style=Bold";
36 size: 12;
37 min: 0 0;
38 max: 1 0;
39 align: 0.5 0.5;
40 ellipsis: 0.0;
41 text: "News";
42 }
43 }
44 }
45 part { name: "elm.swallow.middle";
46 type: SWALLOW;
47 description { state: "default" 0.0;
48 rel1.relative: 0.06 0.17;
49 rel2.relative: 0.94 0.85;
50 }
51 }
52 part { name: "elm.swallow.bottom";
53 type: SWALLOW;
54 description { state: "default" 0.0;
55 rel1.relative: 0.1 0.87;
56 rel2.relative: 0.9 1.0;
57 }
58 }
59 part { name: "elm.swallow.left_arrow";
60 type: SWALLOW;
61 scale: 1;
62 description { state: "default" 0.0;
63 rel1.relative: 0.0 0.5;
64 rel2.relative: 0.0 0.5;
65 min: 40 50;
66 fixed: 1 1;
67 align: 0.0 0.5;
68 }
69 }
70 part { name: "elm.swallow.right_arrow";
71 type: SWALLOW;
72 scale: 1;
73 description { state: "default" 0.0;
74 rel1.relative: 1.0 0.5;
75 rel2.relative: 1.0 0.5;
76 min: 40 50;
77 fixed: 1 1;
78 align: 1.0 0.5;
79 }
80 }
81 }
82 }
83 group { name:"left_arrow";
84 parts {
85 part { name: "base";
86 description {
87 image.normal: "icon_left_arrow.png";
88 }
89 }
90 }
91 }
92 group { name:"right_arrow";
93 parts {
94 part { name: "base";
95 description {
96 image.normal: "icon_right_arrow.png";
97 }
98 }
99 }
100 }
101 group { name:"icon0";
102 parts {
103 part { name: "base";
104 description {
105 image.normal: "icon_01.png";
106 }
107 }
108 }
109 }
110 group { name:"icon1";
111 parts {
112 part { name: "base";
113 description {
114 image.normal: "icon_02.png";
115 }
116 }
117 }
118 }
119 group { name:"icon2";
120 parts {
121 part { name: "base";
122 description {
123 image.normal: "icon_03.png";
124 }
125 }
126 }
127 }
128 group { name:"icon3";
129 parts {
130 part { name: "base";
131 description {
132 image.normal: "icon_04.png";
133 }
134 }
135 }
136 }
137 group { name:"icon4";
138 parts {
139 part { name: "base";
140 description {
141 image.normal: "icon_05.png";
142 }
143 }
144 }
145 }
146}