Make TIZEN 2.0
[apps/home/call.git] / ui / call_edc / vcui-view-dialing.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: "mo-view";
19         parts{
20                 part { name: "background";
21                         type: RECT;
22                         description {
23                                 state: "default" 0.0;
24                                 color: COLOR_DEFAULT;
25                         }
26                 }
27
28                 part { name: "swl_cid_background";
29                         type: SWALLOW;
30                         description {
31                                 state: "default" 0.0;
32                                 rel1 { relative: DIALLING_BACKGROUND_CID_L DIALLING_BACKGROUND_CID_T; to: "background";}
33                                 rel2 { relative: DIALLING_BACKGROUND_CID_R DIALLING_BACKGROUND_CID_B; to: "background";}
34                         }
35                 }
36
37                 part { name: "call_bg_img";
38                         type: SWALLOW;
39                         mouse_events: 0;
40                         description {
41                                 state: "default" 0.0;
42                                 rel1 { relative: 0 0; to: "background";}
43                                 rel2 { relative: 1 1; to: "background";}
44                         }
45                 }
46                            
47                 part { name: "swl_cid";
48                         type: SWALLOW;
49                         description {
50                                 state: "default" 0.0;
51                                 rel1 { relative: DIALLING_CID_L DIALLING_CID_T; }
52                                 rel2 { relative: DIALLING_CID_R DIALLING_CID_B; }
53                         }
54                 }
55
56                 part { name: "caller_info";
57                         type: SWALLOW;
58                         scale: 1;
59                         description {
60                                 state: "default" 0.0;
61                                 visible: 1;
62                                 rel1 { relative: CALLER_INFO_L CALLER_INFO_T; to: "background";}
63                                 rel2 { relative: CALLER_INFO_R CALLER_INFO_B; to: "background";}
64                         }
65                         description {
66                                 state: "show" 0.0;
67                                 inherit: "default" 0.0;
68                                 visible: 1;
69                         }
70                         description {
71                                 state: "hide" 0.0;
72                                 inherit: "default" 0.0;
73                                 visible: 0;
74                         }
75                 }
76
77                 part { name: "swl-cid-noid";
78                         type: SWALLOW;
79                         description {
80                                 state: "default" 0.0;
81                                 visible:0;
82                                 rel1 { relative: DIALLING_CID_NOIMAGE_L DIALLING_CID_NOIMAGE_T; }
83                                 rel2 { relative: DIALLING_CID_NOIMAGE_R DIALLING_CID_NOIMAGE_B; }
84                         }
85                         description {
86                                 state: "show" 0.0;
87                                 inherit: "default" 0.0;
88                                 visible: 1;
89                         }
90                 }
91
92                 part { name: "keypad_region";
93                         type: SWALLOW;
94                         scale: 1;
95                         description {
96                                 state: "default" 0.0;
97                                 visible: 0;
98                                 rel1 { relative: KEYPAD_AREA_L KEYPAD_AREA_T; to: "background";}
99                                 rel2 { relative: KEYPAD_AREA_R KEYPAD_AREA_B; to: "background";}
100                         }
101                         description {
102                                 state: "show" 0.0;
103                                 inherit: "default" 0.0;
104                                 visible: 1;
105                         }
106                         description {
107                                 state: "hide" 0.0;
108                                 inherit: "default" 0.0;
109                                 visible: 0;
110                         }
111                 }
112
113                 part { name: "btn_bg";
114                         type: SWALLOW;
115                         scale: 1;
116                         description {
117                                 state: "default" 0.0;
118                                 rel1 { relative: SIX_BTN_LAYOUT_L SIX_BTN_LAYOUT_T; to: "background";}
119                                 rel2 { relative: SIX_BTN_LAYOUT_R SIX_BTN_LAYOUT_B; to: "background";}
120                         }
121                 }
122
123                 part { name: "btn_region";
124                         type: SWALLOW;
125                         scale: 1;
126                         description {
127                                 state: "default" 0.0;
128                                 rel1 { relative: 0 0; to: "btn_bg"; }
129                                 rel2 { relative: 1 1; to: "btn_bg"; }
130                         }
131                 }
132         }
133
134     programs{
135                 program { name: "init";
136                         signal: "INIT";
137                         source: "PROG";
138                         action: STATE_SET "default" 0.0;
139                         target: "background";
140                         target: "swl_cid";
141                         target: "swl_cid_background";
142                 }
143
144                 program { name: "noid_image";
145                         signal: "show-noid-image";
146                         source: "show-noid";
147                         action: STATE_SET "show" 0.0;
148                         target: "swl-cid-noid";
149                 }
150
151                 program { name: "show_keypadbtn";
152                         signal: "SHOW";
153                         source: "KEYPAD_BTN";
154                         action: STATE_SET "show" 0.0;
155                         target: "keypad_region";
156                 }
157                 program { name: "hide_keypadbtn";
158                         signal: "HIDE";
159                         source: "KEYPAD_BTN";
160                         action: STATE_SET "hide" 0.0;
161                         target: "keypad_region";
162                 }
163
164                 program { name: "show_after_keypad";
165                         signal: "SHOW";
166                         source: "CALL_AREA";
167                         action: STATE_SET "show" 0.0;
168                         target: "caller_info";
169                 }
170                 program { name: "hide_caller_info";
171                         signal: "HIDE";
172                         source: "CALL_AREA";
173                         action: STATE_SET "hide" 0.0;
174                         target: "caller_info";
175                 }
176         }
177 }