Implement lockscreen tts.
[apps/home/lockscreen.git] / data / groups / lock-main.edc
1 /*
2  * Copyright 2012  Samsung Electronics Co., Ltd
3  *
4  * Licensed under the Flora License, Version 1.1 (the License);
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *  http://floralicense.org/license/
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an AS IS BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #define WIDTH 720
18 #define HEIGHT 1280
19
20 #define PROG_PART_SHOW_HIDE(part_name)\
21                 program{\
22                         name: "show,"part_name;\
23                         signal: "show,"part_name;\
24                         source: part_name;\
25                         action: STATE_SET "default" 0.0;\
26                         target: part_name;\
27                 }\
28                 program{\
29                         name: "hide,"part_name;\
30                         signal: "hide,"part_name;\
31                         source: part_name;\
32                         action: STATE_SET "hidden" 0.0;\
33                         target: part_name;\
34                 }\
35
36         group{
37                 name: "lock-main";
38                 parts{
39                         part{
40                                 name: "clipper";
41                                 type: RECT;
42                                 description{
43                                         state : "default" 0.0;
44                                 }
45                                 description{
46                                         state : "transit" 0.0;
47                                         color: 0 0 0 0;
48                                 }
49                         }
50                         part{
51                                 name: "bg";
52                                 type: RECT;
53                                 clip_to: "clipper";
54                                 description{
55                                         state : "default" 0.0;
56                                         color: 0 0 0 255;
57                                 }
58                                 description{
59                                         state : "transit" 0.0;
60                                         color: 0 0 0 0;
61                                 }
62                         }
63                         part{
64                                 name: "sw.bg";
65                                 type: SWALLOW;
66                                 scale: 1;
67                                 mouse_events: 1;
68                                 clip_to: "clipper";
69                                 description{
70                                         state: "default" 0.0;
71                                         rel1{
72                                                 to: "bg";
73                                         }
74                                         rel2{
75                                                 to: "bg";
76                                         }
77                                 }
78                         }
79                         part{
80                                 name: "tts.bg";
81                                 type: RECT;
82                                 repeat_events: 1;
83                                 description{
84                                         state: "default" 0.0;
85                                         fixed: 1 1;
86                                         rel1.to: "bg";
87                                         rel2.to: "bg";
88                                         color : 0 0 0 0;
89                                 }
90                         }
91                         part{
92                                 name: "text.area";
93                                 type: TEXT;
94                                 scale: 1;
95                                 mouse_events: 0;
96                                 clip_to: "clipper";
97                                 description{
98                                         state: "default" 0.0;
99                                         visible: 1;
100                                         color: 255 255 255 255;
101                                         rel1{
102                                                 relative: 36/WIDTH (62+64)/HEIGHT;
103                                                 to: "bg";
104                                         }
105                                         rel2{
106                                                 relative: (WIDTH-36)/WIDTH (62+64+140)/HEIGHT;
107                                                 to: "bg";
108                                         }
109                                         text{
110                                                 font: "Tizen:style=Medium";
111                                                 text_class: "tizen";
112                                                 size: 100;
113                                                 align: 0.0 0.5;
114                                                 text: "Life Magazine";
115                                         }
116                                 }
117                                 description{
118                                         state: "hidden" 0.0;
119                                         inherit: "default" 0.0;
120                                         visible: 0;
121                                 }
122                         }
123                         part{
124                                 name: "tts.title";
125                                 type: RECT;
126                                 repeat_events: 1;
127                                 description{
128                                         state: "default" 0.0;
129                                         fixed: 1 1;
130                                         rel1.to: "text.area";
131                                         rel2.to: "text.area";
132                                         color : 0 0 0 0;
133                                 }
134                         }
135                         part{
136                                 name: "sw.noti";
137                                 type: SWALLOW;
138                                 scale: 1;
139                                 mouse_events: 0;
140                                 clip_to: "clipper";
141                                 description{
142                                         state: "default" 0.0;
143                                         fixed: 1 1;
144                                         min: 0 144;
145                                         visible: 1;
146                                         rel1{relative: 36/WIDTH 1.0; to_x: "bg"; to_y: "text.area"; offset: 0 110; }
147                                         rel2{relative: (WIDTH-36)/WIDTH 1.0; to_x: "bg"; to_y: "text.area";}
148                                 }
149                                 description{
150                                         state: "hidden" 0.0;
151                                         inherit: "default" 0.0;
152                                         visible: 0;
153                                 }
154                         }
155                         part{
156                                 name: "sim.state";
157                                 type: TEXT;
158                                 scale: 1;
159                                 mouse_events: 0;
160                                 clip_to: "clipper";
161                                 description{
162                                         state: "default" 0.0;
163                                         visible: 1;
164                                         color: 255 255 255 255;
165                                         rel1{
166                                                 relative: 36/WIDTH (60+10)/HEIGHT;//for it covers indicator, so move done 20 pixels
167                                                 to: "bg";
168                                         }
169                                         rel2{
170                                                 relative: 1.0 (92+10)/HEIGHT;
171                                                 to: "bg";
172                                         }
173                                         text{
174                                                 font: "Tizen:style=Bold";
175                                                 text_class: "tizen";
176                                                 size: 26;
177                                                 align: 0.0 0.5;
178                                         }
179                                 }
180                                 description{
181                                         state: "hidden" 0.0;
182                                         inherit: "default" 0.0;
183                                         visible: 0;
184                                 }
185                         }
186                         part{
187                                 name: "tts.sim.state";
188                                 type: RECT;
189                                 repeat_events: 1;
190                                 description{
191                                         state: "default" 0.0;
192                                         fixed: 1 1;
193                                         rel1.to: "sim.state";
194                                         rel2.to: "sim.state";
195                                         color : 0 0 0 0;
196                                 }
197                         }
198                         part{
199                                 name: "rect.info";
200                                 type: SWALLOW;
201                                 scale: 1;
202                                 mouse_events: 0;
203                                 clip_to: "clipper";
204                                 description{
205                                         state: "default" 0.0;
206                                         visible: 1;
207                                         color: 0 0 0 0;
208                                         rel1{
209                                                 relative: 0.0 898/HEIGHT;
210                                                 to: "bg";
211                                         }
212                                         rel2{
213                                                 relative: 1.0 1.0;
214                                                 to: "bg";
215                                         }
216                                 }
217                                 description{
218                                         state: "up" 1.0;
219                                         visible: 1;
220                                         color: 0 0 0 0;
221                                         rel1{
222                                                 relative: 0.0 (898-110)/HEIGHT;
223                                                 to: "bg";
224                                         }
225                                         rel2{
226                                                 relative: 1.0 (1280-110)/HEIGHT;
227                                                 to: "bg";
228                                         }
229                                 }
230                                 description{
231                                         state: "hidden" 0.0;
232                                         inherit: "default" 0.0;
233                                         visible: 0;
234                                 }
235                         }
236                         part{
237                                 name: "tts.info";
238                                 type: RECT;
239                                 repeat_events: 1;
240                                 description{
241                                         state: "default" 0.0;
242                                         fixed: 1 1;
243                                         rel1.to: "rect.info";
244                                         rel2.to: "rect.info";
245                                         color : 0 0 0 0;
246                                 }
247                         }
248                         part{
249                                 name: "dim.bg";
250                                 type: SWALLOW;
251                                 scale: 1;
252                                 mouse_events: 1;
253                                 description{
254                                         state: "default" 0.0;
255                                         color: 0 0 0 0;
256                                         rel1{
257                                                 to: "bg";
258                                         }
259                                         rel2{
260                                                 to: "bg";
261                                         }
262                                 }
263                         }
264                         part{
265                                 name: "sw.phone-lock";
266                                 type: SWALLOW;
267                                 scale: 1;
268                                 mouse_events: 1;
269                                 description{
270                                         state: "default" 0.0;
271                                         color: 0 0 0 0;
272                                         rel1{
273                                                 to: "bg";
274                                         }
275                                         rel2{
276                                                 to: "bg";
277                                         }
278                                 }
279                         }
280                 }
281                 programs{
282                         program{
283                                 name: "transit,clipper";
284                                 signal: "transit,clipper";
285                                 source: "clipper";
286                                 action: STATE_SET "transit" 0.0;
287                                 target: "bg";
288                                 target: "clipper";
289                                 transition: LINEAR 0.5;
290                                 after: "exit,app";
291                         }
292                         program{
293                                 name: "exit,app";
294                                 signal: "exit,app";
295                                 source: "clipper";
296                                 action: SIGNAL_EMIT "exit,app" "event";
297                         }
298                         program{
299                                 name: "flick,up";
300                                 signal: "flick,up";
301                                 source: "rect.info";
302                                 action: STATE_SET "up" 1.0;
303                                 target: "rect.info";
304                         }
305                         program{
306                                 name: "flick,down";
307                                 signal: "flick,down";
308                                 source: "rect.info";
309                                 action: STATE_SET "default" 0.0;
310                                 target: "rect.info";
311                         }
312                         PROG_PART_SHOW_HIDE("text.area")
313                         PROG_PART_SHOW_HIDE("sw.noti")
314                         PROG_PART_SHOW_HIDE("sim.state")
315                         PROG_PART_SHOW_HIDE("rect.info")
316                 }
317         }