2911a0157b0d24fd7b1902243491340b125c4a75
[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
18 group {
19         name: "lock_accept";
20
21         parts {
22                 part { 
23                         name: "accept_bg"; 
24                         type: IMAGE; 
25                         mouse_events:1; 
26                         scale: 1;
27                         description { 
28                                 state: "default" 0.0; 
29                                 rel1 { relative: INCOMING_LOCK_ACCEPT_BG_L INCOMING_LOCK_ACCEPT_BG_T; } 
30                                 rel2 { relative: INCOMING_LOCK_ACCEPT_BG_R INCOMING_LOCK_ACCEPT_BG_B; } 
31                                 image {
32                                         normal: IMG_SRC_DIR/"vc_lock_left_bg.png";
33                                 }
34                                 align: 0.0 0.5;
35                                 color: 255 255 255 255;
36                                 visible: 1;
37                         } 
38                         description { 
39                                 state: "alpha" 0.0; 
40                                 inherit: "default" 0.0;
41                                 color: 255 255 255 76; // 30%
42                                 visible: 1;
43                         }                               
44                 }
45                 
46                 part { 
47                         name: "accept_icon"; 
48                         type: IMAGE; 
49                         mouse_events:1; 
50                         scale: 1;
51                         description { 
52                                 state: "default" 0.0; 
53                                 rel1 { relative: INCOMING_LOCK_ACCEPT_ICON_L INCOMING_LOCK_ACCEPT_ICON_T; to: "accept_bg"; } 
54                                 rel2 { relative: INCOMING_LOCK_ACCEPT_ICON_R INCOMING_LOCK_ACCEPT_ICON_B; to: "accept_bg"; } 
55                                 image {
56                                         normal: IMG_SRC_DIR/"vc_lock_accept_icon.png";
57                                 }
58                                 align: 0.5 0.5;
59                                 color: 255 255 255 255;
60                                 visible: 1;
61                         } 
62                         description { 
63                                 state: "alpha" 0.0; 
64                                 inherit: "default" 0.0;
65                                 color: 255 255 255 76; // 30%
66                                 visible: 1;
67                         }                                       
68                 }
69
70                 part {
71                         name: "accept_text";
72                         type: TEXT;
73                         mouse_events:0; 
74                         scale: 1;
75                         description { 
76                                 state: "default" 0.0; 
77                                 rel1 { relative: INCOMING_LOCK_ACCEPT_TEXT_L INCOMING_LOCK_ACCEPT_TEXT_T; to: "accept_bg"; } 
78                                 rel2 { relative: INCOMING_LOCK_ACCEPT_TEXT_R INCOMING_LOCK_ACCEPT_TEXT_B; to: "accept_bg"; }  
79                                 text { font, FONT_SLP_Roman; size, 58; align, 0.5 0.5; }
80                                 color: 255 255 255 255;
81                                 visible: 1;
82                         } 
83                         description { 
84                                 state: "alpha" 0.0; 
85                                 inherit: "default" 0.0;
86                                 color: 255 255 255 76; // 30%
87                                 visible: 1;
88                         }                                       
89                 }
90         }
91
92         programs {
93                 program {
94                         name: "lock_accept,default";
95                         signal: "lock_accept,default";
96                         source: "prog";
97                         action: STATE_SET "default" 0.0;
98                         target: "accept_bg";
99                         target: "accept_icon";
100                         target: "accept_text";
101                         transition: LINEAR 0.3;
102                 }                       
103                 program {
104                         name: "lock_accept,alpha";
105                         signal: "lock_accept,alpha";
106                         source: "prog";
107                         action: STATE_SET "alpha" 0.0;
108                         target: "accept_bg";
109                         target: "accept_icon";
110                         target: "accept_text";
111                         transition: LINEAR 0.3;
112                 }
113         }
114 }
115
116 group {
117         name: "lock_reject";
118
119         parts {
120                 part { 
121                         name: "reject_bg"; 
122                         type: IMAGE; 
123                         mouse_events:1; 
124                         scale: 1;
125                         description { 
126                                 state: "default" 0.0; 
127                                 rel1 { relative: INCOMING_LOCK_REJECT_BG_L INCOMING_LOCK_REJECT_BG_T; } 
128                                 rel2 { relative: INCOMING_LOCK_REJECT_BG_R INCOMING_LOCK_REJECT_BG_B; } 
129                                 image {
130                                         normal: IMG_SRC_DIR/"vc_lock_right_bg.png";
131                                 }
132                                 align: 0.0 0.5;
133                                 color: 255 255 255 255;
134                                 visible: 1;
135                         } 
136                         description { 
137                                 state: "alpha" 0.0; 
138                                 inherit: "default" 0.0;
139                                 color: 255 255 255 76; // 30%
140                                 visible: 1;
141                         }                                       
142                 }
143                 
144                 part { 
145                         name: "reject_icon"; 
146                         type: IMAGE; 
147                         mouse_events:1; 
148                         scale: 1;
149                         description { 
150                                 state: "default" 0.0; 
151                                 rel1 { relative: INCOMING_LOCK_REJECT_ICON_L INCOMING_LOCK_REJECT_ICON_T; to: "reject_bg"; } 
152                                 rel2 { relative: INCOMING_LOCK_REJECT_ICON_R INCOMING_LOCK_REJECT_ICON_B; to: "reject_bg"; } 
153                                 image {
154                                         normal: IMG_SRC_DIR/"vc_lock_reject_icon.png";
155                                 }
156                                 align: 0.5 0.5;
157                                 color: 255 255 255 255;
158                                 visible: 1;
159                         } 
160                         description { 
161                                 state: "alpha" 0.0; 
162                                 inherit: "default" 0.0;
163                                 color: 255 255 255 76; // 30%
164                                 visible: 1;
165                         }                                       
166                 }
167
168                 part {
169                         name: "reject_text";
170                         type: TEXT;
171                         mouse_events:0; 
172                         scale: 1;
173                         description { 
174                                 state: "default" 0.0; 
175                                 rel1 { relative: INCOMING_LOCK_REJECT_TEXT_L INCOMING_LOCK_REJECT_TEXT_T; to: "reject_bg"; } 
176                                 rel2 { relative: INCOMING_LOCK_REJECT_TEXT_R INCOMING_LOCK_REJECT_TEXT_B; to: "reject_bg"; }  
177                                 text { font, FONT_SLP_Roman; size, 58; align, 0.5 0.5; }
178                                 color: 255 255 255 255;
179                                 visible: 1;
180                         } 
181                         description { 
182                                 state: "alpha" 0.0; 
183                                 inherit: "default" 0.0;
184                                 color: 255 255 255 76; // 30%
185                                 visible: 1;
186                         }                                       
187                 }
188         }
189
190         programs {
191                 program {
192                         name: "lock_reject,default";
193                         signal: "lock_reject,default";
194                         source: "prog";
195                         action: STATE_SET "default" 0.0;
196                         target: "reject_bg";
197                         target: "reject_icon";
198                         target: "reject_text";
199                         transition: LINEAR 0.3;
200                 }                       
201                 program {
202                         name: "lock_reject,alpha";
203                         signal: "lock_reject,alpha";
204                         source: "prog";
205                         action: STATE_SET "alpha" 0.0;
206                         target: "reject_bg";
207                         target: "reject_icon";
208                         target: "reject_text";
209                         transition: LINEAR 0.3;
210                 }
211         }
212 }
213
214 group {
215         name: "mtlock";
216     parts {
217              part { name: "background";
218                          type: RECT;
219                          description {
220                                 state: "default" 0.0;
221                                 color: COLOR_DEFAULT;
222                         }
223                 }
224                          
225                 part { name: "swl_cid_background";
226                         type: SWALLOW;
227                         description {
228                                 state: "default" 0.0;
229                                 rel1 { relative: DIALLING_BACKGROUND_CID_L DIALLING_BACKGROUND_CID_T; to: "background";}
230                                 rel2 { relative: DIALLING_BACKGROUND_CID_R DIALLING_BACKGROUND_CID_B; to: "background";}
231                         }
232                 }
233
234                 part { name: "bg_alpha";
235                         type: RECT;
236                         description {
237                                 state: "default" 0.0;
238                                 color: COLOR_BG_ALPHA;
239                         }
240                 }
241
242                 part { name: "swl_calling_name_bg";
243                         type: SWALLOW;
244                         description {
245                                 state: "default" 0.0;
246                                 rel1 { relative: MT_CALLING_BG_L MT_CALLING_BG_T; to: "background";}
247                                 rel2 { relative: MT_CALLING_BG_R MT_CALLING_BG_B; to: "background";}
248                         }
249                 }
250
251                 part { name: "swl_cid";
252                         type: SWALLOW;
253                         description {
254                                 state: "default" 0.0;
255                                 rel1 { relative: DIALLING_CID_L DIALLING_CID_T; }
256                                 rel2 { relative: DIALLING_CID_R DIALLING_CID_B; }
257                         }
258                 }
259                 
260                 part { name: "txt_call_name"; // call name or number
261                         type: TEXT;
262                         effect: SHADOW;
263                         scale: 1;
264                         description {
265                                 state: "default" 0.0;
266                                 rel1 { relative: DIALLING_NAME_L DIALLING_NAME_T;to: "background";}
267                                 rel2 { relative: DIALLING_NAME_R DIALLING_NAME_B;to: "background";  }                           
268                                 text { font, FONT_SLP_Roman; size, 76; align, 0.5 0.5; }
269                                 color: 255 255 255 255;
270                                 color2: 0 0 0 255;
271                         }
272                 }
273
274                 part { name: "txt_contact_phone_type"; // contact phone type -> call number
275                         type: TEXT;
276                         effect: SHADOW;
277                         scale: 1;
278                         description {
279                                 state: "default" 0.0;
280                                 rel1 { relative: DIALLING_NUMBER_L DIALLING_NUMBER_T; to: "background"; }
281                                 rel2 { relative: DIALLING_NUMBER_R DIALLING_NUMBER_B;to: "background";  }                               
282                                 text { font, FONT_SLP_Roman; size, 48; align, 0.5 0.5; }
283                                 color: 255 255 255 255;
284                                 color2: 0 0 0 255;
285                         }
286                 }          
287
288                 /*
289             part { name: "txt_mt_status"; // Voice call
290                                 type: TEXT;
291                                 effect: SHADOW;
292                                 scale: 1;
293                                 description {
294                                         state: "default" 0.0;
295                                         rel1 { relative: DIALLING_MT_STATUS_L DIALLING_MT_STATUS_T;to: "background";}
296                                         rel2 { relative: DIALLING_MT_STATUS_R DIALLING_MT_STATUS_B;to: "background";  }                         
297                                         text { font, FONT_SLP_Roman; size, 48; align, 0.5 0.5; }
298                                         color: 255 255 255 255;
299                                         color2: 0 0 0 255;
300                                 }
301                         }
302                 */ 
303         }//parts
304
305         programs {
306                 program { 
307                         name: "init";
308                         signal: "INIT";
309                         source: "PROG";
310                         action: STATE_SET "default" 0.0;
311                         target: "background";
312                         target: "swl_cid";
313                         target: "swl_cid_background";
314                 }       
315         }
316 }