Make TIZEN 2.0
[apps/home/call.git] / ui / call_edc / vcui-view-single-call.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 group {
18     name: "incall";
19     parts {
20
21                 part { name: "background";
22                         type: RECT;
23                         description {
24                                 state: "default" 0.0;
25                                 color: COLOR_DEFAULT;
26                         }
27                 }
28
29                 part { name: "swl_cid_background";
30                         type: SWALLOW;
31                         description {
32                                 state: "default" 0.0;
33                                 visible: 1;
34                                 rel1 { relative: INCALL_BACKGROUND_CID_L INCALL_BACKGROUND_CID_T; to: "background";}
35                                 rel2 { relative: INCALL_BACKGROUND_CID_R INCALL_BACKGROUND_CID_B; to: "background";}
36                         }
37                         description {
38                                 state: "hide" 0.0;
39                                 inherit: "default" 0.0;
40                                 visible: 0;
41                         }
42                 }
43
44                 part { name: "call_bg_img";
45                         type: SWALLOW;
46                         mouse_events: 0;
47                         description {
48                                 state: "default" 0.0;
49                                 rel1 { relative: 0 0; to: "background";}
50                                 rel2 { relative: 1 1; to: "background";}
51                         }
52                 }
53                            
54                 part { name: "swl_cid";
55                         type: SWALLOW;
56                         description {
57                                 state: "default" 0.0;
58                                 rel1 { relative: INCALL_CID_L INCALL_CID_T; }
59                                 rel2 { relative: INCALL_CID_R INCALL_CID_B; }
60                         }
61                 }
62
63                 part { name: "swl_cid_dim";
64                         type: RECT;
65                         scale: 1;                       
66                         description {
67                                 state: "default" 0.0;
68                                 visible: 0;
69                                 color: COLOR_BG_FOR_HELD_CALL_DIM;
70                         }
71                         description {
72                                 state: "wvga" 0.0;
73                                 inherit: "default" 0.0;
74                                 visible: 1;
75                                 rel1 { relative: 0.0 0.0; offset: 6 0; to: "swl_cid";}
76                                 rel2 { relative: 1.0 1.0; offset: -6 0; to: "swl_cid";}
77                         }
78                         description {
79                                 state: "hd" 0.0;
80                                 inherit: "default" 0.0;
81                                 visible: 1;
82                                 rel1 { relative: 0.0 0.0; to: "swl_cid";}
83                                 rel2 { relative: 1.0 1.0; to: "swl_cid";}
84                         }
85                 }
86
87                 part { name: "swl_share_background";
88                         type: RECT;
89                         description {
90                                 state: "default" 0.0;
91                                 visible: 0;
92                                 color: 50 42 37 255;
93                                 rel1 { relative: INCALL_BACKGROUND_SHARE_L INCALL_BACKGROUND_SHARE_T; to: "background";}
94                                 rel2 { relative: INCALL_BACKGROUND_SHARE_R INCALL_BACKGROUND_SHARE_B; to: "background";}
95                         }
96                         description {
97                                 state: "show" 0.0;
98                                 inherit: "default" 0.0;
99                                 visible: 1;
100                         }
101                 }
102
103                 part { name: "caller_info";
104                         type: SWALLOW;
105                         scale: 1;
106                         description {
107                                 state: "default" 0.0;
108                                 visible: 1;
109                                 rel1 { relative: CALLER_INFO_L CALLER_INFO_T; to: "background";}
110                                 rel2 { relative: CALLER_INFO_R CALLER_INFO_B; to: "background";}
111                         }
112                         description {
113                                 state: "show" 0.0;
114                                 inherit: "default" 0.0;
115                                 visible: 1;
116                         }
117                         description {
118                                 state: "hide" 0.0;
119                                 inherit: "default" 0.0;
120                                 visible: 0;
121                         }
122                 }
123
124                 part { name: "btn_hold_swap";
125                         type: SWALLOW;
126                         scale: 1;
127                         description {
128                                 state: "default" 0.0;
129                                 visible: 0;
130                                 fixed: 1 1;
131                                 rel1 { relative: INCALL_HOLD_L INCALL_HOLD_B; to: "background";}
132                                 rel2 { relative: INCALL_HOLD_R INCALL_HOLD_B; to: "background";}
133                         }
134                         description {
135                                 state: "show" 0.0;
136                                 inherit: "default" 0.0;
137                                 visible: 1;
138                                 rel1 { relative: INCALL_HOLD_L INCALL_HOLD_T; to: "background";}
139                                 rel2 { relative: INCALL_HOLD_R INCALL_HOLD_B; to: "background";}
140                         }
141                         description {
142                                 state: "hide" 0.0;
143                                 inherit: "default" 0.0;
144                                 visible: 0;
145                         }
146                 }
147
148                 part { name: "txt_hold_swap";
149                         type: TEXT;
150                         effect: SHADOW;
151                         scale: 1;
152                         description {
153                                 state: "default" 0.0;
154                                 visible: 0;
155                                 rel1 { relative: INCALL_HOLD_TXT_L INCALL_HOLD_TXT_B; to: "background";}
156                                 rel2 { relative: INCALL_HOLD_TXT_R INCALL_HOLD_TXT_B; to: "background";}
157                                 text { font, FONT_SLP_Roman; size, 26; align, 0.0 0.5; text_class, TEXT_CLASS_SLP_ROMAN; }
158                                 color: 204 204 204 255;
159                                 color2: 0 0 0 255;
160                         }
161                         description {
162                                 state: "show" 0.0;
163                                 inherit: "default" 0.0;
164                                 visible: 1;
165                                 rel1 { relative: INCALL_HOLD_TXT_L INCALL_HOLD_TXT_T; to: "background";}
166                                 rel2 { relative: INCALL_HOLD_TXT_R INCALL_HOLD_TXT_B; to: "background";}
167                         }
168                         description {
169                                 state: "hide" 0.0;
170                                 inherit: "default" 0.0;
171                                 visible: 0;
172                         }
173                 }
174
175                 part { name: "btn_bg";
176                         type: SWALLOW;
177                         scale: 1;
178                         description {
179                                 state: "default" 0.0;
180                                 visible: 0;
181                                 rel1 { relative: SIX_BTN_LAYOUT_L SIX_BTN_LAYOUT_B; to: "background";}
182                                 rel2 { relative: SIX_BTN_LAYOUT_R SIX_BTN_LAYOUT_B; to: "background";}
183                         }
184                         description {
185                                 state: "show" 0.0;
186                                 inherit: "default" 0.0;
187                                 visible: 1;
188                                 rel1 { relative: SIX_BTN_LAYOUT_L SIX_BTN_LAYOUT_T; to: "background";}
189                                 rel2 { relative: SIX_BTN_LAYOUT_R SIX_BTN_LAYOUT_B; to: "background";}
190                         }
191                 }
192
193                 part { name: "btn_region";
194                         type: SWALLOW;
195                         scale: 1;
196                         description {
197                                 state: "default" 0.0;
198                                 visible: 0;
199                                 rel1 { relative: 0 0; to: "btn_bg"; }
200                                 rel2 { relative: 1 1; to: "btn_bg"; }
201                         }
202                         description {
203                                 state: "show" 0.0;
204                                 inherit: "default" 0.0;
205                                 visible: 1;
206                         }
207                 }
208
209                 part { name: "keypad_region";
210                         type: SWALLOW;
211                         scale: 1;
212                         description {
213                                 state: "default" 0.0;
214                                 visible: 0;
215                                 rel1 { relative: KEYPAD_AREA_L KEYPAD_AREA_T; to: "background";}
216                                 rel2 { relative: KEYPAD_AREA_R KEYPAD_AREA_B; to: "background";}
217                         }
218                         description {
219                                 state: "show" 0.0;
220                                 inherit: "default" 0.0;
221                                 visible: 1;
222                         }
223                         description {
224                                 state: "hide" 0.0;
225                                 inherit: "default" 0.0;
226                                 visible: 0;
227                         }
228                 }
229
230      }//parts
231                         
232         programs {
233                 program { name: "show_effect_allbtn";
234                         signal: "SHOW_EFFECT";
235                         source: "ALLBTN";
236                         action: STATE_SET "show" 0.0;
237                         transition: DECELERATE 0.5; //LINEAR 1.0;
238                         target: "btn_hold_swap";
239                         target: "txt_hold_swap";
240                         target: "btn_bg";
241                         target: "btn_region";
242                 }
243                 program { name: "show_no_effect_allbtn";
244                         signal: "SHOW_NO_EFFECT";
245                         source: "ALLBTN";
246                         action: STATE_SET "show" 0.0;
247                         target: "btn_hold_swap";
248                         target: "txt_hold_swap";
249                         target: "btn_bg";
250                         target: "btn_region";
251                 }
252
253                 program { name: "hide_dim_cid";
254                         signal: "HIDE_DIM";
255                         source: "CID";
256                         action: STATE_SET "default" 0.0;
257                         target: "swl_cid_dim";
258                 }
259                 program { name: "show_dim_cid_wvga";
260                         signal: "SHOW_DIM_WVGA";
261                         source: "CID_WVGA";
262                         action: STATE_SET "wvga" 0.0;
263                         target: "swl_cid_dim";
264                 }
265                 program { name: "show_dim_cid_hd";
266                         signal: "SHOW_DIM_HD";
267                         source: "CID_HD";
268                         action: STATE_SET "hd" 0.0;
269                         target: "swl_cid_dim";
270                 }
271                 program { name: "show_share_bg";
272                         signal: "SHOW_SHARE_BG";
273                         source: "Share_BG";
274                         action: STATE_SET "show" 0.0;
275                         target: "swl_share_background";
276                 }
277                 program { name: "hide_share_bg";
278                         signal: "HIDE_SHARE_BG";
279                         source: "Share_BG";
280                         action: STATE_SET "default" 0.0;
281                         target: "swl_share_background";
282                 }
283
284                 program { name: "show_cid_bg";
285                         signal: "SHOW_CID_BG";
286                         source: "CID_BG";
287                         action: STATE_SET "default" 0.0;
288                         target: "swl_cid_background";
289                 }
290                 program { name: "hide_cid_bg";
291                         signal: "HIDE_CID_BG";
292                         source: "CID_BG";
293                         action: STATE_SET "hide" 0.0;
294                         target: "swl_cid_background";
295                 }
296
297                 program { name: "show_keypadbtn";
298                         signal: "SHOW";
299                         source: "KEYPAD_BTN";
300                         action: STATE_SET "show" 0.0;
301                         target: "keypad_region";
302                 }
303                 program { name: "hide_keypadbtn";
304                         signal: "HIDE";
305                         source: "KEYPAD_BTN";
306                         action: STATE_SET "hide" 0.0;
307                         target: "keypad_region";
308                 }
309
310                 program { name: "show_after_keypad";
311                         signal: "SHOW";
312                         source: "CALL_AREA";
313                         action: STATE_SET "show" 0.0;
314                         target: "caller_info";
315                         target: "btn_hold_swap";
316                         target: "txt_hold_swap";
317                 }
318                 program { name: "hide_caller_info";
319                         signal: "HIDE";
320                         source: "CALL_AREA";
321                         action: STATE_SET "hide" 0.0;
322                         target: "caller_info";
323                         target: "btn_hold_swap";
324                         target: "txt_hold_swap";
325                 }
326         }
327 }