Tizen release 1.0
[pkgs/p/phone-lock.git] / data / phone-lock-view-input-simple.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 #define PHONE_LOCK_LABEL_PROGRAMS(part_name, singa_name) \
21                         program { \
22                                 name: "mouse_down_"part_name; \
23                                 signal: "mouse,down,1"; \
24                                 source:  part_name; \
25                                 action:   STATE_SET "press" 0.0; \
26                                 target: part_name; \
27                         } \
28                         program { \
29                                 name: "send_event_"part_name; \
30                                 action: SIGNAL_EMIT singa_name ""; \
31                         } \
32                         program { \
33                                 name: "mouse_up_"part_name; \
34                                 signal: "mouse,up,1"; \
35                                 source:  part_name; \
36                                 action: STATE_SET "default" 0.0; \
37                                 target: part_name; \
38                                 after:  "send_event_"part_name; \
39                         }
40
41 #define PHONE_LOCK_INPUT_PROGRAMS(part_name) \
42                         program { \
43                                 name: part_name"_set_default"; \
44                                 signal: part_name"_set_default"; \
45                                 source:  part_name; \
46                                 action:   STATE_SET "default" 0.0; \
47                                 target: part_name; \
48                         } \
49                         program { \
50                                 name: part_name"_set_input"; \
51                                 signal: part_name"_set_input"; \
52                                 source:  part_name; \
53                                 action:   STATE_SET "input" 0.0; \
54                                 target: part_name; \
55                         }
56
57 group{
58         name: "phlock.view.input.simple";
59         images{
60                 image: "B07_button_ok_normal_left.png" COMP;
61         }
62
63         parts{
64                 part{
65                         name: "background";
66                         type: RECT;
67                         mouse_events: 1;
68                         description{
69                                 state: "default" 0.0;
70                                 color: 0 0 0 0;
71                         }
72                 }
73                 part{
74                                 name: "sp1_bg";
75                                 type: RECT;
76                                 scale: 1;
77                                 mouse_events: 1;
78                                 description{
79                                         state: "default" 0.0;
80                                         visible: 1;
81                                         rel1 { relative: 65/MAIN_W  0;  to: "background";}
82                                         rel2 { relative: 199/MAIN_W 1;  to: "background";}
83                                         color: 0 0 0 125; /* The entry in simple lock screen is not exact square */
84                                 }
85                                 description{
86                                         state: "input" 0.0;
87                                         inherit: "default" 0.0;
88                                         color: 0 0 0 180;
89                                 }
90                         }
91                         part{
92                                 name: "sp2_bg";
93                                 type: RECT;
94                                 mouse_events: 1;
95                                 description{
96                                         state: "default" 0.0;
97                                         rel1 { relative: 217/MAIN_W 0;  to: "background";}
98                                         rel2 { relative: 351/MAIN_W 1;  to: "background";}
99                                         color: 0 0 0 125;/* The entry in simple lock screen is not exact square */
100                                 }
101                                 description{
102                                         state: "input" 0.0;
103                                         inherit: "default" 0.0;
104                                         color: 0 0 0 180;
105                                 }
106                         }
107                         part{
108                                 name: "sp3_bg";
109                                 type: RECT;
110                                 mouse_events: 1;
111                                 description{
112                                         state: "default" 0.0;
113                                         rel1 { relative: 369/MAIN_W 0;  to: "background";}
114                                         rel2 { relative: 503/MAIN_W 1;  to: "background";}
115                                         color: 0 0 0 125;/* The entry in simple lock screen is not exact square */
116                                 }
117                                 description{
118                                         state: "input" 0.0;
119                                         inherit: "default" 0.0;
120                                         color: 0 0 0 180;
121                                 }
122                         }
123                         part{
124                                 name: "sp4_bg";
125                                 type: RECT;
126                                 mouse_events: 1;
127                                 description{
128                                         state: "default" 0.0;
129                                         rel1 { relative: 521/MAIN_W 0;  to: "background";}
130                                         rel2 { relative: 655/MAIN_W 1;  to: "background";}
131                                         color: 0 0 0 125;/* The entry in simple lock screen is not exact square */
132                                 }
133                                 description{
134                                         state: "input" 0.0;
135                                         inherit: "default" 0.0;
136                                         color: 0 0 0 180;
137                                 }
138                         }
139                         part{
140                                 name: "sp1_entry";
141                                 type: SWALLOW;
142                                 scale: 1;
143                                 mouse_events: 1;
144                                 description{
145                                         state: "default" 0.0;
146                                         align: 1.0 0.5;
147                                         fixed: 1 1;
148                                         min: 44 0;
149                                         rel1 { relative: 65/MAIN_W 0.3; to: "background";}
150                                         rel2 { relative: 199/MAIN_W 1;          to: "background";}
151                                 }
152
153                         }
154                         part{
155                                 name: "sp2_entry";
156                                 type: SWALLOW;
157                                 mouse_events: 1;
158                                 description{
159                                         state: "default" 0.0;
160                                         align: 1.0 0.5;
161                                         fixed: 1 1;
162                                         min: 44 0;
163                                         rel1 { relative: 217/MAIN_W 0.3;        to: "background";}
164                                         rel2 { relative: 351/MAIN_W  1; to: "background";}
165                                 }
166                         }
167                         part{
168                                 name: "sp3_entry";
169                                 type: SWALLOW;
170                                 mouse_events: 1;
171                                 description{
172                                         state: "default" 0.0;
173                                         align: 1.0 0.5;
174                                         fixed: 1 1;
175                                         min: 44 0;
176                                         rel1 { relative: 369/MAIN_W 0.3;        to: "background";}
177                                         rel2 { relative: 503/MAIN_W  1; to: "background";}
178
179                                 }
180                         }
181                         part{
182                                 name: "sp4_entry";
183                                 type: SWALLOW;
184                                 mouse_events: 1;
185                                 description{
186                                         state: "default" 0.0;
187                                         align: 1.0 0.5;
188                                         fixed: 1 1;
189                                         min: 44 0;
190                                         rel1 { relative: 521/MAIN_W 0.3;        to: "background";}
191                                         rel2 { relative: 655/MAIN_W  1;     to: "background";}
192                                 }
193                         }
194         }
195         programs
196         {
197                 PHONE_LOCK_LABEL_PROGRAMS("sp1_bg", "sp1_entry_clicked")
198                 PHONE_LOCK_LABEL_PROGRAMS("sp2_bg", "sp2_entry_clicked")
199                 PHONE_LOCK_LABEL_PROGRAMS("sp3_bg", "sp3_entry_clicked")
200                 PHONE_LOCK_LABEL_PROGRAMS("sp4_bg", "sp4_entry_clicked")
201                 PHONE_LOCK_INPUT_PROGRAMS("sp1_bg")
202                 PHONE_LOCK_INPUT_PROGRAMS("sp2_bg")
203                 PHONE_LOCK_INPUT_PROGRAMS("sp3_bg")
204                 PHONE_LOCK_INPUT_PROGRAMS("sp4_bg")
205         }
206 }
207
208