Make TIZEN 2.0
[apps/home/call.git] / ui / call_edc / vcui-view-incoming-lock.edc
1 /*
2  * Copyright 2012  Samsung Electronics Co., Ltd
3  *
4  * Licensed under the Flora License, Version 1.0 (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://www.tizenopensource.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 COLOR_OPACITY_100 255 255 255 255
18 #define COLOR_OPACITY_75 255 255 255 191
19 #define COLOR_OPACITY_60 255 255 255 153
20 #define COLOR_OPACITY_50 255 255 255 128
21 #define COLOR_OPACITY_25 255 255 255 64
22 #define COLOR_OPACITY_20 255 255 255 51
23 #define COLOR_OPACITY_0 255 255 255 0
24 #define SHIFT_VALUE (20/720)
25
26 group {
27         name: "lock_reject_with_msg";
28
29         parts {
30                 part { 
31                         name: "reject_msg_bg"; 
32                         type: IMAGE; 
33                         mouse_events:1; 
34                         scale: 1;
35                         description { 
36                                 state: "default" 0.0; 
37                                 rel1 { relative: MTLOCK_REJECT_MSG_BG_L MTLOCK_REJECT_MSG_BG_T; } 
38                                 rel2 { relative: MTLOCK_REJECT_MSG_BG_R MTLOCK_REJECT_MSG_BG_B; } 
39                                 image { normal: IMG_SRC_DIR/"vc_lock_reject_message_bg.png"; }
40                                 align: 0.0 0.5;
41                                 color: 255 255 255 255;                                                         
42                                 visible: 1;
43                         }
44                 }
45
46                 part {
47                         name: "reject_msg_arw";
48                         type: IMAGE;
49                         mouse_events:1;
50                         scale: 1;
51                         description {
52                                 state: "default" 0.0;
53                                 rel1 { relative: MTLOCK_REJECT_MSG_ARW_L MTLOCK_REJECT_MSG_ARW_T; }
54                                 rel2 { relative: MTLOCK_REJECT_MSG_ARW_R MTLOCK_REJECT_MSG_ARW_B; }
55                                 align: 0.5 0.5;
56                                 color: 255 255 255 255;
57                                 visible: 0;
58                         }
59                         description {
60                                 state: "list_close" 0.0;
61                                 inherit: "default" 0.0;
62                                 image { normal: IMG_SRC_DIR/"vc_lock_reject_message_arrow_open.png"; }
63                                 visible: 1;
64                         }
65                         description {
66                                 state: "list_open" 0.0;
67                                 inherit: "default" 0.0;
68                                 image { normal: IMG_SRC_DIR/"vc_lock_reject_message_arrow_close.png"; }
69                                 visible: 1;
70                         }
71                 }
72
73                 part {
74                         name: "reject_msg_text_area";
75                         type: RECT;
76                         mouse_events: 0;
77                         scale: 1;
78                         description {
79                                 state: "default" 0.0;
80                                 rel1 { relative: MTLOCK_REJECT_MSG_TEXT_L MTLOCK_REJECT_MSG_TEXT_T; }
81                                 rel2 { relative: MTLOCK_REJECT_MSG_TEXT_R MTLOCK_REJECT_MSG_TEXT_B; }
82                                 visible: 0;
83                         }
84                 }
85
86                 part {
87                         name: "reject_msg_icon";
88                         type: IMAGE;
89                         mouse_events:0;
90                         scale: 1;
91                         description {
92                                 state: "default" 0.0;
93                                 rel1 { relative: 0 0; to: "reject_msg_text_area";}
94                                 rel2 { relative: 0 1; to: "txt_padding";}
95                                 align: 1 0.5;
96                                 min: MTLOCK_REJECT_MSG_ICON_WIDTH MTLOCK_REJECT_MSG_ICON_HEIGHT;
97                                 max: MTLOCK_REJECT_MSG_ICON_WIDTH MTLOCK_REJECT_MSG_ICON_HEIGHT;
98                                 color: 255 255 255 255;
99                                 image { normal: IMG_SRC_DIR/"vc_reject_msg_icon.png"; }
100                                 visible: 1;
101                         }
102                 }
103
104                 part { name: "txt_padding";
105                         type: RECT;
106                         scale: 1;
107                         description {
108                                 state: "default" 0.0;
109                                 fixed: 1 0;
110                                 min: MTLOCK_REJECT_MSG_PAD 0;
111                                 align: 1 0;
112                                 visible: 0;
113                                 rel1 { relative: 0 0; to: "reject_msg_text";}
114                                 rel2 { relative: 0 1; to: "reject_msg_text";}
115                         }
116                 }
117
118
119                 part {
120                         name: "reject_msg_text";
121                         type: TEXT;
122                         mouse_events: 0;
123                         scale: 1;
124                         description {
125                                 state: "default" 0.0;
126                                 rel1 { relative: (0.5+((MTLOCK_REJECT_MSG_ICON_WIDTH+MTLOCK_REJECT_MSG_PAD)/(MTLOCK_REJECT_MSG_TEXT_WIDTH*2)))  0; to: "reject_msg_text_area";}
127                                 rel2 { relative: (0.5+((MTLOCK_REJECT_MSG_ICON_WIDTH+MTLOCK_REJECT_MSG_PAD)/(MTLOCK_REJECT_MSG_TEXT_WIDTH*2))) 1; to: "reject_msg_text_area";}
128                                 fixed: 0 1;
129                                 max: (MTLOCK_REJECT_MSG_TEXT_WIDTH-MTLOCK_REJECT_MSG_ICON_WIDTH-MTLOCK_REJECT_MSG_PAD) MTLOCK_REJECT_MSG_TEXT_HEIGHT;
130                                 text { font, FONT_SLP_Roman; size, 32; align, 0.5 0.5; min: 1 0; text_class, TEXT_CLASS_SLP_ROMAN; }
131                                 color: 255 255 255 255;
132                                 color2: 0 0 0 191;
133                                 visible: 1;
134                         }
135                 }
136
137                 part {
138                         name: "swl_msglist_bg";
139                         type: RECT;
140                         description {
141                                 state: "default" 0.0;
142                                 visible: 0;
143                                 color: 0 0 0 255;
144                                 rel1 { relative: MTLOCK_REJECT_MSG_LIST_L MTLOCK_REJECT_MSG_LIST_T; }
145                         }
146                         description {
147                                 state: "one-line" 0.0;
148                                 inherit: "default" 0.0;
149                                 visible: 1;
150                                 rel2 { relative: MTLOCK_REJECT_MSG_LIST_R MTLOCK_REJECT_MSG_ONE_LINE_LIST_B; }
151                         }
152                         description {
153                                 state: "two-line" 0.0;
154                                 inherit: "default" 0.0;
155                                 visible: 1;
156                                 rel2 { relative: MTLOCK_REJECT_MSG_LIST_R MTLOCK_REJECT_MSG_TWO_LINE_LIST_B; }
157                         }
158                         description {
159                                 state: "three-line" 0.0;
160                                 inherit: "default" 0.0;
161                                 visible: 1;
162                                 rel2 { relative: MTLOCK_REJECT_MSG_LIST_R MTLOCK_REJECT_MSG_THREE_LINE_LIST_B; }
163                         }
164                         description {
165                                 state: "four-line" 0.0;
166                                 inherit: "default" 0.0;
167                                 visible: 1;
168                                 rel2 { relative: MTLOCK_REJECT_MSG_LIST_R MTLOCK_REJECT_MSG_FOUR_LINE_LIST_B; }
169                         }
170                         description {
171                                 state: "five-line" 0.0;
172                                 inherit: "default" 0.0;
173                                 visible: 1;
174                                 rel2 { relative: MTLOCK_REJECT_MSG_LIST_R MTLOCK_REJECT_MSG_FIVE_LINE_LIST_B; }
175                         }
176                         description {
177                                 state: "six-line" 0.0;
178                                 inherit: "default" 0.0;
179                                 visible: 1;
180                                 rel2 { relative: MTLOCK_REJECT_MSG_LIST_R MTLOCK_REJECT_MSG_SIX_LINE_LIST_B; }
181                         }
182                 }
183                 
184                 part {
185                         name: "swl_msglist";
186                         type: SWALLOW;
187                         description {
188                                 state: "default" 0.0;
189                                 visible: 1;
190                                 rel1 { relative: 0.0 0.0; to: "swl_msglist_bg"; }
191                                 rel2 { relative: 1.0 1.0; to: "swl_msglist_bg"; }
192                         }
193                 }
194
195                 part {
196                         name: "swl_msgtoolbar";
197                         type: SWALLOW;
198                         description {
199                                 state: "default" 0.0;
200                                 visible: 1;
201                                 rel1 { relative: 0.0 1.0; to: "swl_msglist_bg"; }
202                                 rel2 { relative: 1.0 1.0; to: "swl_msglist_bg"; offset: 0 MTLOCK_REJECT_MSG_TOOLBAR_HEIGHT; }
203                         }
204                 }
205         }
206
207         programs {
208
209                 program {
210                         name: "up_arrow";
211                         signal: "show-up-arrow";
212                         source: "reject_msg";
213                         action: STATE_SET "list_close" 0.0;
214                         target: "reject_msg_arw";
215                         transition: LINEAR 0.0;
216                 }
217                 program {
218                         name: "down_arrow";
219                         signal: "show-down-arrow";
220                         source: "reject_msg";
221                         action: STATE_SET "list_open" 0.0;
222                         target: "reject_msg_arw";
223                         transition: LINEAR 0.0;
224                 }
225
226                 program {
227                         name: "one-line-list";
228                         signal: "show-one-line";
229                         source: "reject-list";
230                         action: STATE_SET "one-line" 0.0;
231                         target: "swl_msglist_bg";
232                 }
233                 program {
234                         name: "two-line-list";
235                         signal: "show-two-line";
236                         source: "reject-list";
237                         action: STATE_SET "two-line" 0.0;
238                         target: "swl_msglist_bg";
239                 }
240                 program {
241                         name: "three-line-list";
242                         signal: "show-three-line";
243                         source: "reject-list";
244                         action: STATE_SET "three-line" 0.0;
245                         target: "swl_msglist_bg";
246                 }
247                 program {
248                         name: "four-line-list";
249                         signal: "show-four-line";
250                         source: "reject-list";
251                         action: STATE_SET "four-line" 0.0;
252                         target: "swl_msglist_bg";
253                 }
254                 program {
255                         name: "five-line-list";
256                         signal: "show-five-line";
257                         source: "reject-list";
258                         action: STATE_SET "five-line" 0.0;
259                         target: "swl_msglist_bg";
260                 }
261                 program {
262                         name: "six-line-list";
263                         signal: "show-six-line";
264                         source: "reject-list";
265                         action: STATE_SET "six-line" 0.0;
266                         target: "swl_msglist_bg";
267                 }
268         }
269 }
270
271 group {
272         name: "mtlock";
273     parts {
274              part { name: "background";
275                         type: RECT;
276                         mouse_events: 1;
277                         pointer_mode: NOGRAB;
278                         description {
279                                 state: "default" 0.0;
280                                 color: COLOR_DEFAULT;
281                         }
282                 }
283                          
284                 part { name: "swl_cid_background";
285                         type: SWALLOW;
286                         mouse_events: 0;
287                         description {
288                                 state: "default" 0.0;
289                                 rel1 { relative: DIALLING_BACKGROUND_CID_L DIALLING_BACKGROUND_CID_T; to: "background";}
290                                 rel2 { relative: DIALLING_BACKGROUND_CID_R DIALLING_BACKGROUND_CID_B; to: "background";}
291                         }
292                 }
293
294                 part { name: "call_bg_img";
295                         type: SWALLOW;
296                         mouse_events: 0;
297                         description {
298                                 state: "default" 0.0;
299                                 rel1 { relative: 0 0; to: "background";}
300                                 rel2 { relative: 1 1; to: "background";}
301                         }
302                 }
303
304                 part { name: "swl_cid";
305                         type: SWALLOW;
306                         mouse_events: 0;
307                         description {
308                                 state: "default" 0.0;
309                                 rel1 { relative: DIALLING_CID_L DIALLING_CID_T; }
310                                 rel2 { relative: DIALLING_CID_R DIALLING_CID_B; }
311                         }
312                 }
313                 
314                 part { name: "caller_info";
315                         type: SWALLOW;
316                         scale: 1;
317                         mouse_events: 0;
318                         description {
319                                 state: "default" 0.0;
320                                 visible: 1;
321                                 rel1 { relative: CALLER_INFO_L CALLER_INFO_T; to: "background";}
322                                 rel2 { relative: CALLER_INFO_R CALLER_INFO_B; to: "background";}
323                         }
324                 }
325
326                 part { name: "btn_accept";
327                         type: SWALLOW;
328                         scale: 1;
329                         description {
330                                 state: "default" 0.0;
331                                 rel1 { relative: DIALLING_MT_BTN1_L DIALLING_MT_BTN1_T; to: "background";}
332                                 rel2 { relative: DIALLING_MT_BTN1_R DIALLING_MT_BTN1_B; to: "background";}
333                         }
334                 }               
335                 part { name: "btn_reject";
336                         type: SWALLOW;
337                         scale: 1;
338                         description {
339                                 state: "default" 0.0;
340                                 rel1 { relative: DIALLING_MT_BTN2_L DIALLING_MT_BTN2_T; to: "background";}
341                                 rel2 { relative: DIALLING_MT_BTN2_R DIALLING_MT_BTN2_B; to: "background";}
342                         }
343                 }
344
345         }//parts
346
347         programs {
348                 program { 
349                         name: "init";
350                         signal: "INIT";
351                         source: "PROG";
352                         action: STATE_SET "default" 0.0;
353                         target: "background";
354                         target: "swl_cid";
355                         target: "swl_cid_background";
356                 }
357         }
358 }