a7daf0dc185819d49119855b57955ab8b0380118
[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
18 group {
19     name: "incall";
20     parts {
21
22                 part { name: "background";
23                         type: RECT;
24                         description {
25                                 state: "default" 0.0;
26                                 color: COLOR_DEFAULT;
27                         }
28                 }
29
30                 part { name: "swl_cid_background";
31                         type: SWALLOW;
32                         description {
33                                 state: "default" 0.0;
34                                 visible: 1; 
35                                 rel1 { relative: INCALL_BACKGROUND_CID_L INCALL_BACKGROUND_CID_T; to: "background";}
36                                 rel2 { relative: INCALL_BACKGROUND_CID_R INCALL_BACKGROUND_CID_B; to: "background";}
37                         }
38                         description { 
39                                 state: "hide" 0.0;
40                                 inherit: "default" 0.0;
41                                 visible: 0;
42                         } 
43                 }
44
45                 part { name: "bg_alpha";
46                         type: RECT;
47                         description {
48                                 state: "default" 0.0;
49                                 color: COLOR_BG_ALPHA;
50                         }
51                 }
52                            
53                 part { name: "swl_cid";
54                         type: SWALLOW;
55                         description {
56                                 state: "default" 0.0;
57                                 rel1 { relative: INCALL_CID_L INCALL_CID_T; }
58                                 rel2 { relative: INCALL_CID_R INCALL_CID_B; }
59                         }
60                 }
61
62                 part { name: "swl_cid_dim"; // for held call dim
63                         type: RECT;
64                         scale: 1;                       
65                         description {
66                                 state: "default" 0.0;
67                                 visible: 0;
68                                 color: COLOR_BG_FOR_HELD_CALL_DIM;
69                         }
70                         description {
71                                 state: "wvga" 0.0;
72                                 inherit: "default" 0.0;
73                                 visible: 1;
74                                 rel1 { relative: 0.0 0.0; offset: 6 0; to: "swl_cid";}
75                                 rel2 { relative: 1.0 1.0; offset: -6 0; to: "swl_cid";}
76                         }
77                         description {
78                                 state: "hd" 0.0;
79                                 inherit: "default" 0.0;
80                                 visible: 1;
81                                 rel1 { relative: 0.0 0.0; to: "swl_cid";}
82                                 rel2 { relative: 1.0 1.0; to: "swl_cid";}
83                         }
84                 }
85                 
86                 part { name: "txt_call_name"; // call name or number
87                         type: TEXT;
88                         effect: SHADOW;
89                         scale: 1;
90                         description {
91                                 state: "default" 0.0;
92                                 rel1 { relative: INCALL_NAME_L INCALL_NAME_T; }
93                                 rel2 { relative: INCALL_NAME_R INCALL_NAME_B;  }                                
94                                 text { font, FONT_SLP_Roman; size, 76; align, 0.5 0.5; }
95                                 color: 255 255 255 255;
96                                 color2: 0 0 0 255;
97                         }
98                 }
99
100                 part { name: "txt_contact_phone_type"; // contact phone type -> call number
101                         type: TEXT;
102                         effect: SHADOW;
103                         scale: 1;
104                         description {
105                                 state: "default" 0.0;
106                                 rel1 { relative: INCALL_NUMBER_L INCALL_NUMBER_T; }
107                                 rel2 { relative: INCALL_NUMBER_R INCALL_NUMBER_B;  }                            
108                                 text { font, FONT_SLP_Roman; size, 48; align, 0.5 0.5; }
109                                 color: 255 255 255 255;
110                                 color2: 0 0 0 255;
111                         }
112                 }
113
114                 part { name: "txt_timer";
115                         type: TEXT;
116                         effect: SHADOW;
117                         scale: 1;
118                         description {
119                                 state: "default" 0.0;
120                                 rel1 { relative: INCALL_TIMER_L INCALL_TIMER_T; }
121                                 rel2 { relative: INCALL_TIMER_R INCALL_TIMER_B; }                               
122                                 text { font, FONT_SLP_Roman; size, 48; align, 1.0 0.5; }
123                                 color: 255 255 255 255;
124                                 color2: 0 0 0 255;
125                         }
126                         description {
127                                 state: "end" 0.0;
128                                 inherit: "default" 0.0;
129                                 visible: 0;
130                         }
131                 }
132
133                 part { name: "btn_bigend";
134                         type: SWALLOW;
135                         scale: 1;
136                         description {
137                                 state: "default" 0.0;
138                                 visible: 0;
139                                 fixed: 1 1;
140                                 rel1 { relative: SIX_BTN_BIG_END_L 1.0; to: "background";}
141                                 rel2 { relative: SIX_BTN_BIG_END_R 1.0; to: "background";}
142                         }
143                         description {
144                                 state: "show" 0.0;
145                                 inherit: "default" 0.0;
146                                 visible: 1;
147                                 rel1 { relative: SIX_BTN_BIG_END_L SIX_BTN_BIG_END_T; to: "background";}
148                                 rel2 { relative: SIX_BTN_BIG_END_R SIX_BTN_BIG_END_B; to: "background";}
149                         }
150                 }
151
152                 part { name: "btn_speaker";
153                         type: SWALLOW;
154                         scale: 1;
155                         description {
156                                 state: "default" 0.0;
157                                 visible: 0;
158                                 fixed: 1 1;
159                                 rel1 { relative: SIX_BTN_1_L 1.0; to: "background";}
160                                 rel2 { relative: SIX_BTN_1_R 1.0; to: "background";}
161                         }                       
162                         description {
163                                 state: "show" 0.0;
164                                 inherit: "default" 0.0;
165                                 visible: 1;
166                                 rel1 { relative: SIX_BTN_1_L SIX_BTN_2_T; to: "background";}
167                                 rel2 { relative: SIX_BTN_1_R SIX_BTN_2_B; to: "background";}
168                         }
169                 }
170      }//parts
171                         
172         programs {
173                 program { name: "show_effect_allbtn";
174                         signal: "SHOW_EFFECT";
175                         source: "ALLBTN";
176                         action: STATE_SET "show" 0.0;
177                         transition: DECELERATE 0.5; //LINEAR 1.0;
178                         target: "btn_bigend";
179                         target: "btn_speaker";
180                 }
181
182                 program { name: "show_no_effect_allbtn";
183                         signal: "SHOW_NO_EFFECT";
184                         source: "ALLBTN";
185                         action: STATE_SET "show" 0.0;
186                         target: "btn_bigend";
187                         target: "btn_speaker";
188                 }               
189                 
190                 program { name: "hide_dim_cid";
191                         signal: "HIDE_DIM";
192                         source: "CID";
193                         action: STATE_SET "default" 0.0;
194                         target: "swl_cid_dim";
195                 }
196                 program { name: "show_dim_cid_wvga";
197                         signal: "SHOW_DIM_WVGA";
198                         source: "CID_WVGA";
199                         action: STATE_SET "wvga" 0.0;
200                         target: "swl_cid_dim";
201                 }
202                 program { name: "show_dim_cid_hd";
203                         signal: "SHOW_DIM_HD";
204                         source: "CID_HD";
205                         action: STATE_SET "hd" 0.0;
206                         target: "swl_cid_dim";
207                 }
208                 program { name: "show_cid_bg";
209                         signal: "SHOW_CID_BG";
210                         source: "CID_BG";
211                         action: STATE_SET "default" 0.0;
212                         target: "swl_cid_background";
213                 }
214                 program { name: "hide_cid_bg";
215                         signal: "HIDE_CID_BG";
216                         source: "CID_BG";
217                         action: STATE_SET "hide" 0.0;
218                         target: "swl_cid_background";
219                 }
220         }
221 }