tizen 2.3.1 release
[apps/home/settings.git] / resource / setting-eff.edc
1 /*
2 *
3 * Copyright 2012  Samsung Electronics Co., Ltd
4 *
5 * Licensed under the Flora License, Version 1.0 (the License);
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 *    http://www.tizenopensource.org/license
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an AS IS BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 */
18
19 images {
20         image: "org.tizen.setting.png" COMP;
21         image: "org.tizen.setting.png" COMP;
22         image: "org.tizen.setting.png" COMP;
23         image: "org.tizen.setting.png" COMP;
24     image: "org.tizen.setting.png" COMP;
25 }
26
27 collections {
28 //for repeat
29 #define PART_SHOW_REPEAT_ICON(title, offset_value, ref) \
30 part { name: title; \
31         type: IMAGE; \
32         repeat_events: 1; \
33         scale: 1; \
34         description { \
35                 state: "default" 0.0; \
36                 aspect_preference: BOTH; \
37                 rel1 { relative: 1.0 0.0; offset: offset_value 0; to: ref;} \
38                 rel2 { relative: 1.0 1.0; offset: (offset_value+100) 0; to: ref;} \
39                 image { normal: "org.tizen.setting.png" ;} \
40         } \
41         description { \
42                 state: "on" 0.0; \
43                 inherit: "default" 0.0; \
44                 image { normal: "org.tizen.setting.png" ;} \
45         } \
46         description { \
47                 state: "landscape" 0.0; \
48                 inherit: "default" 0.0; \
49                 rel1 { relative: 1.0 0.0; offset: offset_value 0; to: ref;} \
50                 rel2 { relative: 1.0 1.0; offset: (offset_value+180) 0; to: ref;} \
51                 image { normal: "org.tizen.setting.png" ;} \
52         } \
53         description { \
54                 state: "landscape_on" 0.0; \
55                 inherit: "landscape" 0.0; \
56                 image { normal: "org.tizen.setting.png" ;} \
57         } \
58 } \
59 part { name: title".onoff.bg"; \
60         type: IMAGE; \
61         scale: 1; \
62         description { \
63                 state: "default" 0.0; \
64                 max: 20 20; \
65                 fixed: 1 1; \
66                 rel1 { relative: 0.0 0.0; offset: 0 76; to: title; } \
67                 rel2 { relative: 1.0 0.0; offset: 0 96; to: title; } \
68                 image { normal : "org.tizen.setting.png"; } \
69                 align : 0.5 0.5; \
70         } \
71 } \
72 part { name: title".onoff.icon"; \
73         type: IMAGE; \
74         scale: 1; \
75         description { \
76                 state: "default" 0.0; \
77                 max: 20 20; \
78                 fixed: 1 1; \
79                 rel1.to: title".onoff.bg"; \
80                 rel2.to: title".onoff.bg"; \
81                 image { normal: "org.tizen.setting.png"; } \
82                 align: 0.5 0.5; \
83         } \
84         description { \
85                 state: "on" 0.0; \
86                 inherit: "default" 0.0; \
87                 image{ normal: "org.tizen.setting.png"; } \
88         } \
89         description { \
90                 state: "landscape" 0.0; \
91                 inherit: "default" 0.0; \
92                 image { normal: "org.tizen.setting.png"; } \
93         } \
94         description { \
95                 state: "landscape_on" 0.0; \
96                 inherit: "landscape" 0.0; \
97                 image{ normal: "org.tizen.setting.png"; } \
98         } \
99 }
100
101 #define PART_SHOW_REPEAT_TEXT(title, reference) \
102 part {\
103   name: title; \
104   type: TEXT; \
105   scale: 1; \
106   repeat_events: 1; \
107   description { \
108      state: "default" 0.0; \
109      fixed: 1 0;\
110      rel1 { relative: 0.0 0.0; offset: 0 20; to: reference; } \
111      rel2 { relative: 1.0 0.0; offset: 0 70; to: reference; } \
112      color: 8 8 8 255; \
113      text { \
114              font: "Tizen:style=Bold"; \
115              text_class: "tizen"; \
116              size: 45; \
117              align: 0.5 0.5; \
118      } \
119   } \
120   description { \
121      state: "on" 0.0; \
122      inherit: "default" 0.0; \
123      color: 135 226 45 255; \
124   } \
125   description { \
126      state: "landscape" 0.0; \
127          inherit: "default" 0.0; \
128   } \
129   description { \
130      state: "landscape_on" 0.0; \
131      inherit: "landscape" 0.0; \
132      color: 135 226 45 255; \
133   } \
134   description { \
135      state: "sun" 0.0; \
136      inherit: "default" 0.0; \
137      color: 85 19 19 255; \
138   } \
139 }
140 #define PROGRAM_SHOW_CTRL(title) \
141         program \
142         { \
143             name:   title"/on"; \
144             signal:  "on,"title; \
145             source:  "*"; \
146             action:  STATE_SET "on" 0.0; \
147             target:  title; \
148             target:  "text."title; \
149             target:  title".onoff.icon"; \
150         } \
151         program \
152         { \
153             name:    title"/off"; \
154             signal:  "off,"title; \
155             source:  "*"; \
156             action:  STATE_SET "default" 0.0; \
157             target:  title; \
158             target:  "text."title; \
159             target:  title".onoff.icon"; \
160         } \
161         program \
162         { \
163             name:    title"/sun"; \
164             signal:  "sun,"title; \
165             source:  "*"; \
166             action:  STATE_SET "sun" 0.0; \
167             target:  "text."title; \
168         } \
169         program \
170         { \
171             name:    title"/landscape_off"; \
172             signal:  "landscape_off,"title; \
173             source:  "*"; \
174             action:  STATE_SET "landscape" 0.0; \
175             target:  title; \
176             target:  "text."title; \
177             target:  title".onoff.icon"; \
178         } \
179         program \
180         { \
181             name:    title"/landscape_on"; \
182             signal:  "landscape_on,"title; \
183             source:  "*"; \
184             action:  STATE_SET "landscape_on" 0.0; \
185             target:  title; \
186             target:  "text."title; \
187             target:  title".onoff.icon"; \
188         } \
189         program \
190         { \
191             name:    title"/clicked"; \
192             signal:  "mouse,clicked,1"; \
193             source:  "*"; \
194             action:  SIGNAL_EMIT "mouse,clicked" title; \
195
196                 }
197        group { name: "repeat_set";
198                 parts {
199                         GENLIST_PART_BASE( 115 )
200                         //GENLIST_PART_PADDING_TOP( 115 )
201                         part { name: "elm.padding.left";
202                       type: RECT;
203                       scale: 1;
204                       description {
205                          state: "default" 0.0;
206                          min: 0 115;
207                          max: 0 115;
208                          fixed: 1 1;
209                          visible: 0;
210                          rel2.relative: 0.0 1.0;
211                          //align: 0.0 0.0;
212                       }
213                    }
214                                    PART_SHOW_REPEAT_ICON("1", 4, "elm.padding.left")
215                    PART_SHOW_REPEAT_TEXT("text.1", "1")
216                    PART_SHOW_REPEAT_ICON("2", 2, "1")
217                    PART_SHOW_REPEAT_TEXT("text.2", "2")
218                    PART_SHOW_REPEAT_ICON("3", 2, "2")
219                    PART_SHOW_REPEAT_TEXT("text.3", "3")
220                    PART_SHOW_REPEAT_ICON("4", 2, "3")
221                    PART_SHOW_REPEAT_TEXT("text.4", "4")
222                    PART_SHOW_REPEAT_ICON("5", 2, "4")
223                    PART_SHOW_REPEAT_TEXT("text.5", "5")
224                                 }
225                 programs {
226                         PROGRAM_SHOW_CTRL(1);
227                         PROGRAM_SHOW_CTRL(2);
228                         PROGRAM_SHOW_CTRL(3);
229                         PROGRAM_SHOW_CTRL(4);
230                         PROGRAM_SHOW_CTRL(5);
231                 }
232                 }//for repeat
233 }//collections