Tizen release 1.0
[pkgs/p/phone-lock.git] / data / phone-lock-view-input.edc
1 /*
2  * Copyright (c) 2000 - 2012 Samsung Electronics Co., Ltd All Rights Reserved 
3  *
4  * This file is part of <phone-lock>
5  * Written by <Seungtaek Chung> <seungtaek.chung@samsung.com>, <Mi-Ju Lee> <miju52.lee@samsung.com>, <Xi Zhichan> <zhichan.xi@samsung.com>
6  *
7  * PROPRIETARY/CONFIDENTIAL
8  *
9  * This software is the confidential and proprietary information of SAMSUNG ELECTRONICS ("Confidential Information").
10  * You shall not disclose such Confidential Information and shall use it only in accordance
11  * with the terms of the license agreement you entered into with SAMSUNG ELECTRONICS.
12  * SAMSUNG make no representations or warranties about the suitability of the software,
13  * either express or implied, including but not limited to the implied warranties of merchantability,
14  * fitness for a particular purpose, or non-infringement.
15  * SAMSUNG shall not be liable for any damages suffered by licensee as a result of using,
16  * modifying or distributing this software or its derivatives.
17  *
18  */
19
20 group{
21         name: "phlock.view.input.complex";
22
23         images{
24                 image: "B07_button_ok_normal_left.png" COMP;
25                 image: "B07_button_ok_normal_center.png" COMP;
26                 image: "B07_button_ok_normal_right.png" COMP;
27                 image: "B07_button_ok_press_left.png" COMP;
28                 image: "B07_button_ok_press_center.png" COMP;
29                 image: "B07_button_ok_press_right.png" COMP;
30         }
31
32         parts{
33                 part{
34                         name: "background";
35                         type: RECT;
36                         mouse_events: 0;
37                         description{
38                                 state: "default" 0.0;
39                                 color: 0 0 0 0;
40                         }
41                 }
42
43                 part{
44                         name: "button.r.padding";
45                         type: RECT;
46                         mouse_events: 0;
47                         scale: 1;
48                         description{
49                                 state: "default" 0.0;
50                                 align: 1.0 0.0;
51                                 min: 17 0;
52                                 fixed: 1 1;
53                                 rel1{
54                                         relative: 1.0 0.0;
55                                         to: "background";
56                                 }
57                                 rel2{
58                                         relative: 1.0 1.0;
59                                         to: "background";
60                                 }
61                                 color: 0 0 0 0;
62                         }
63                 }
64
65                 part{
66                         name: "button";
67                         type: RECT;
68                         mouse_events: 1;
69                         description{
70                                 state: "default" 0.0;
71                                 min: 72 0;
72                                 fixed: 1 1;
73                                 rel1{
74                                         relative: 0.0 0.0;
75                                         to: "text.l.padding";
76                                 }
77                                 rel2{
78                                         relative: 1.0 1.0;
79                                         to: "text.r.padding";
80                                 }
81                                 color: 0 0 0 0;
82                         }
83                 }
84
85                 part{
86                         name: "button.l.padding";
87                         type: RECT;
88                         mouse_events: 0;
89                         scale: 1;
90                         description{
91                                 state: "default" 0.0;
92                                 align: 1.0 0.0;
93                                 min: 10 0;
94                                 fixed: 1 1;
95                                 rel1{
96                                         relative: 0.0 0.0;
97                                         to: "button";
98                                 }
99                                 rel2{
100                                         relative: 0.0 1.0;
101                                         to: "button";
102                                 }
103                                 color: 0 0 0 0;
104                         }
105                 }
106
107                 part{
108                         name: "image.button.left";
109                         type: IMAGE;
110                         scale: 1;
111                         mouse_events: 0;
112                         description{
113                                 state: "default" 0.0;
114                                 visible: 1;
115                                 min: 3 0;
116                                 fixed: 1 1;
117                                 rel1{
118                                         relative: 0.0 0.0;
119                                         to: "text.l.padding";
120                                 }
121                                 rel2{
122                                         relative: 0.0 1.0;
123                                         to: "text.l.padding";
124                                 }
125                                 image.normal: "B07_button_ok_normal_left.png";
126                         }
127                         description{
128                                 state: "press" 0.0;
129                                 inherit: "default" 0.0;
130                                 image.normal: "B07_button_ok_press_left.png";
131                         }
132                 }
133                 part{
134                         name: "image.button.right";
135                         type: IMAGE;
136                         scale: 1;
137                         mouse_events: 0;
138                         description{
139                                 state: "default" 0.0;
140                                 visible: 1;
141                                 min: 3 0;
142                                 align: 1.0 0.0;
143                                 fixed: 1 1;
144                                 rel1{
145                                         relative: 1.0 0.0;
146                                         to: "text.r.padding";
147                                 }
148                                 rel2{
149                                         relative: 1.0 1.0;
150                                         to: "text.r.padding";
151                                 }
152                                 image.normal: "B07_button_ok_normal_right.png";
153                         }
154                         description{
155                                 state: "press" 0.0;
156                                 inherit: "default" 0.0;
157                                 image.normal: "B07_button_ok_press_right.png";
158                         }
159                 }
160                 part{
161                         name: "image.button.center";
162                         type: IMAGE;
163                         scale: 1;
164                         mouse_events: 0;
165                         description{
166                                 state: "default" 0.0;
167                                 visible: 1;
168                                 rel1{
169                                         relative: 1.0 0.0;
170                                         to: "image.button.left";
171                                 }
172                                 rel2{
173                                         relative: 0.0 1.0;
174                                         to: "image.button.right";
175                                 }
176                                 image.normal: "B07_button_ok_normal_center.png";
177                         }
178                         description{
179                                 state: "press" 0.0;
180                                 inherit: "default" 0.0;
181                                 image.normal: "B07_button_ok_press_center.png";
182                         }
183                 }
184
185                 part{
186                         name: "text.l.padding";
187                         type: RECT;
188                         mouse_events: 0;
189                         scale: 1;
190                         description{
191                                 state: "default" 0.0;
192                                 align: 1.0 0.0;
193                                 min: 25 0;
194                                 fixed: 1 1;
195                                 rel1{
196                                         relative: 0.0 0.0;
197                                         to_x: "swallow.button";
198                                         to_y: "background";
199                                 }
200                                 rel2{
201                                         relative: 0.0 1.0;
202                                         to_x: "swallow.button";
203                                         to_y: "background";
204                                 }
205                                 color: 0 0 0 0;
206                         }
207                 }
208
209                 part{
210                         name: "text.r.padding";
211                         type: RECT;
212                         mouse_events: 0;
213                         scale: 1;
214                         description{
215                                 state: "default" 0.0;
216                                 align: 1.0 0.0;
217                                 min: 36 0;
218                                 fixed: 1 1;
219                                 rel1{
220                                         relative: 0.0 0.0;
221                                         to: "button.r.padding";
222                                 }
223                                 rel2{
224                                         relative: 0.0 1.0;
225                                         to: "button.r.padding";
226                                 }
227                                 color: 0 0 0 0;
228                         }
229                 }
230
231                 part{
232                         name: "swallow.button";
233                         type: SWALLOW;
234                         scale: 1;
235                         mouse_events: 0;
236                         description{
237                                 state: "default" 0.0;
238                                 align: 1.0 0.5;
239                                 fixed: 1 1;
240                                 min: 76 0; /* If language is not English, the sring of "OK" button in complex lock screen is cut */
241                                 rel1{
242                                         relative: 0.0 0.5;
243                                         to: "text.r.padding";
244                                 }
245                                 rel2{
246                                         relative: 0.0 0.5;
247                                         to: "text.r.padding";
248                                 }
249                         }
250                 }
251
252                 part{
253                         name: "inputarea";
254                         type: RECT;
255                         mouse_events: 1;
256                         description{
257                                 state: "default" 0.0;
258                                 color: 0 0 0 128;
259                                 fixed: 1 0;
260                                 min: 10 72;
261                                 rel1{
262                                         relative: (13/480) 0.0;
263                                         to: "background";
264                                 }
265                                 rel2{
266                                         relative: 0.0 1.0;
267                                         to: "button.l.padding";
268                                 }
269                         }
270                 }
271
272                 part{
273                         name: "password.l.padding";
274                         type: RECT;
275                         scale: 1;
276                         mouse_events: 1;
277                         description{
278                                 state: "default" 0.0;
279                                 align: 0.0 0.0;
280                                 fixed: 1 1;
281                                 min: 30 0;
282                                 rel1{
283                                         to: "inputarea";
284                                 }
285                                 rel2{
286                                         relative: 0.0 1.0;
287                                         to: "inputarea";
288                                 }
289                                 color: 0 0 0 0;
290                         }
291                 }
292
293                 part{
294                         name: "swallow.text";
295                         type: SWALLOW;
296                         scale: 1;
297                         mouse_events: 1;
298                         description{
299                                 state: "default" 0.0;
300                                 align: 0.0 0.5;
301                                 fixed: 0 1;
302                                 rel1{
303                                         relative: 1.0 0.0;
304                                         to: "password.l.padding";
305                                 }
306                                 rel2{
307                                         to: "inputarea";
308                                 }
309                         }
310                 }
311         }
312
313         programs{
314                 program{
315                         name: "press.button";
316                         signal: "press";
317                         source: "button";
318                         action: STATE_SET "press" 0.0;
319                         target: "image.button.left";
320                         target: "image.button.center";
321                         target: "image.button.right";
322                 }
323                 program{
324                         name: "release.button";
325                         signal: "release";
326                         source: "button";
327                         action: STATE_SET "default" 0.0;
328                         target: "image.button.left";
329                         target: "image.button.center";
330                         target: "image.button.right";
331                 }
332         }
333 }
334