tizen 2.3 release
[apps/home/b2-clocksetting.git] / data / groups / two_finger_control.edc
1 /*
2  * Copyright (c) 2010 Samsung Electronics, Inc.
3  * All rights reserved.
4  *
5  * This software is a confidential and proprietary information
6  * of Samsung Electronics, Inc. ("Confidential Information").  You
7  * shall not disclose such Confidential Information and shall use
8  * it only in accordance with the terms of the license agreement
9  * you entered into with Samsung Electronics.
10  */
11 group { name: "setting/layout/button_controller2/default";
12    images {
13       image: "tw_number_controller_button_bg.png" COMP;
14       image: "tw_number_controller_contents_bg.png" COMP;
15    }
16    styles{
17       style { name: "controller_style";
18          base: "font=Tizen:style=Regular font_size="20" align=center color=#FF9100 text_class=tizen";
19          tag:  "br" "\n";
20          tag:  "hilight" "+ font_weight=Bold";
21          tag:  "b" "+ font_weight=Bold";
22          tag:  "tab" "\t";
23       }
24    }
25    parts {
26       part { name: "bg";
27          scale: 1;
28          description { state: "default" 0.0;
29             min: 284 86;
30             max: 284 86;
31             fixed: 1 1;
32             image {
33                normal: "tw_number_controller_button_bg.png";
34                border: 7 7 7 7;
35                border_scale: 1;
36             }
37          }
38       }
39       part { name: "top_left_padding";
40          type: SPACER;
41          scale: 1;
42          description { state: "default" 0.0;
43             min: 6 6;
44             max: 6 6;
45             fixed: 1 1;
46             align: 0.0 0.0;
47             rel2.relative: 0.0 0.0;
48          }
49       }
50       part { name: "bottom_right_padding";
51          type: SPACER;
52          scale: 1;
53          description { state: "default" 0.0;
54             min: 6 6;
55             max: 6 6;
56             fixed: 1 1;
57             align: 1.0 1.0;
58             rel1.relative: 1.0 1.0;
59          }
60       }
61       part { name: "center_padding";
62          type: SPACER;
63          scale: 1;
64          description { state: "default" 0.0;
65             min: 4 84;
66             max: 4 84;
67             fixed: 1 1;
68          }
69       }
70       part { name: "elm.icon.left";
71          type: SWALLOW;
72          scale: 1;
73          description { state: "default" 0.0;
74             min: 134 74;
75             max: 134 74;
76             fixed: 1 1;
77             align: 1.0 0.5;
78             rel1 {
79                to: "top_left_padding";
80                relative: 1.0 1.0;
81             }
82             rel2 {
83                to_x: "center_padding";
84                to_y: "bottom_right_padding";
85                relative: 0.0 0.0;
86             }
87          }
88       }
89       part { name: "elm.icon.right";
90          type: SWALLOW;
91          scale: 1;
92          description { state: "default" 0.0;
93             min: 134 74;
94             max: 134 74;
95             fixed: 1 1;
96             align: 0.0 0.5;
97             rel1 {
98                to_x: "center_padding";
99                to_y: "top_left_padding";
100                relative: 1.0 1.0;
101             }
102             rel2 {
103                to: "bottom_right_padding";
104                relative: 0.0 0.0;
105             }
106          }
107       }
108       part { name: "bg_center";
109          scale: 1;
110          description { state: "default" 0.0;
111             image.normal: "tw_number_controller_contents_bg.png";
112             image.border: 6 6 6 6;
113             image.border_scale: 1;
114             min: 94 52; // FIXME: 94 is too short for text??
115             max: 94 52;
116             fixed: 1 1;
117          }
118       }
119       part { name: "elm.icon";
120          type: SWALLOW;
121          scale: 1;
122          description { state: "default" 0.0;
123                 visible: 1;
124             min: 40 40;
125             max: 40 40;
126             fixed: 1 1;
127          }
128          description { state: "1digit" 0.0;
129             inherit: "default" 0.0;
130             fixed: 1 1;
131             align: 0.5 0.5;
132             visible: 0;
133             rel1 {
134                to_y: "bg_center";
135                offset: -25 -20;
136                relative: 0.5 0.5;
137             }
138             rel2 {
139                to_y: "bg_center";
140                offset: 15 20;
141                relative: 0.5 0.5;
142             }
143          }
144          description { state: "2digit" 0.0;
145             inherit: "1digit" 0.0;
146             rel1.offset: 2 0;
147             rel2.offset: 2 0;
148          }
149       }
150       part { name: "elm.text";
151          type: TEXTBLOCK;
152          description { state: "default" 0.0;
153                 visible: 0;
154             fixed: 1 1;
155             align: 0.0 0.5;
156             rel1 {
157                to: "bg_center";
158                offset: 35 0;
159             }
160             rel2 {
161                to: "bg_center";
162                offset: 35 -1;
163                relative: 0.0 1.0;
164             }
165             text {
166                style: "controller_style";
167                min: 1 1;
168                align: 0.5 0.5;
169             }
170          }
171          description { state: "1digit" 0.0;
172             inherit: "default" 0.0;
173             visible: 1;
174          }
175          description { state: "2digit" 0.0;
176             inherit: "1digit" 0.0;
177             rel1 {
178                to: "bg_center";
179                offset: 23 0;
180             }
181          }
182       }
183    }
184    programs {
185       program {
186          signal: "elm,state,1digit";
187          source: "*";
188          action: STATE_SET "1digit" 0.0;
189          target: "elm.icon";
190          target: "elm.text";
191       }
192       program {
193          signal: "elm,state,2digit";
194          source: "*";
195          action: STATE_SET "2digit" 0.0;
196          target: "elm.icon";
197          target: "elm.text";
198       }
199       program {
200          signal: "elm,state,nodigit";
201          source: "*";
202          action: STATE_SET "default" 0.0;
203          target: "elm.icon";
204          target: "elm.text";
205       }
206    }
207 }