Tizen 2.1 base
[platform/core/uifw/efl-theme-tizen.git] / themes / widgets / multibuttonentry.edc
1 /*
2  * efl-theme-tizen
3  * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
4  *
5  * Licensed under the Apache License, Version 2.0 (the License);
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *     http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an AS IS BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17
18
19
20 group {
21    name: "elm/multibuttonentry/base/default";
22
23    data.item: "horizontal_pad" MULTIBUTTONENTRY_BOX_HORIZONTAL_PAD_INC;
24    data.item: "vertical_pad" MULTIBUTTONENTRY_BOX_VERTICAL_PAD_INC;
25
26    parts {
27       part {
28          name: "top.left.pad";
29          type: RECT;
30          mouse_events: 0;
31          scale: 1;
32          description {
33             state: "default" 0.0;
34             min : MULTIBUTTONENTRY_WIDTH_PAD_INC MULTIBUTTONENTRY_HEIGHT_PAD_INC;
35             fixed: 1 1;
36             rel2.relative: 0.0 0.0;
37             align: 0.0 0.0;
38             color: 0 0 0 0;
39          }
40       }
41       part {
42          name: "bottom.right.pad";
43          type: RECT;
44          mouse_events: 0;
45          scale: 1;
46          description {
47             state: "default" 0.0;
48             min : MULTIBUTTONENTRY_WIDTH_PAD_INC MULTIBUTTONENTRY_HEIGHT_PAD_INC;
49             fixed: 1 1;
50             rel1.relative: 1.0 1.0;
51             align: 1.0 1.0;
52             color: 0 0 0 0;
53          }
54       }
55       part {
56          name: "elm.swallow.box";
57          type: SWALLOW;
58          description {
59             state: "default" 0.0;
60             rel1 {
61                relative: 1.0 1.0;
62                to: "top.left.pad";
63             }
64             rel2 {
65                relative: 0.0 0.0;
66                to: "bottom.right.pad";
67             }
68          }
69       }
70       part { name: "block_events";
71          type: RECT;
72          description {
73             state: "default" 0.0;
74             color: 0 0 0 0;
75          }
76          description {
77             state: "invisible" 0.0;
78             visible: 0;
79          }
80       }
81       part { name: "events";
82          type: RECT;
83          repeat_events: 1;
84          ignore_flags: ON_HOLD;
85          description {
86             state: "default" 0.0;
87             color: 0 0 0 0;
88          }
89       }
90    }
91    programs {
92       program {
93          name: "clicked";
94          signal: "mouse,clicked,1";
95          source: "events";
96          action: SIGNAL_EMIT "elm,action,clicked" "";
97       }
98       program {
99          name: "event_allow";
100          signal: "elm,state,event,allow";
101          source: "elm";
102          action: STATE_SET "invisible" 0.0;
103          target: "block_events";
104       }
105       program {
106          name: "event_block";
107          signal: "elm,state,event,block";
108          source: "elm";
109          action: STATE_SET "default" 0.0;
110          target: "block_events";
111       }
112    }
113 }
114
115 group {
116    name: "elm/multibuttonentry/label/default";
117
118    styles {
119       style {
120          name: "multibuttonentry_label_style";
121          base: "font=SLP:style=Regular font_size="MULTIBUTTONENTRY_LABEL_TEXT_SIZE_INC" color="MULTIBUTTONENTRY_LABEL_TEXT_COLOR_INC" wrap=char text_class=slp";
122          tag:  "br" "\n";
123          tag:  "ps" "ps";
124          tag:  "hilight" "+ font=SLP:style=Bold";
125          tag:  "b" "+ font=SLP:style=Bold";
126          tag:  "tab" "\t";
127       }
128    }
129
130    parts {
131       part {
132          name: "right.pad";
133          type: RECT;
134          mouse_events: 0;
135          scale: 1;
136          description {
137             state: "default" 0.0;
138             min: MULTIBUTTONENTRY_LABEL_PAD_INC 0;
139             fixed: 1 0;
140             rel1.relative: 1.0 0.0;
141             align: 1.0 0.5;
142             color: 0 0 0 0;
143          }
144       }
145       part {
146          name: "elm.text";
147          type: TEXTBLOCK;
148          mouse_events: 0;
149          multiline: 0;
150          scale: 1;
151          description {
152             state: "default" 0.0;
153             min: 0 MULTIBUTTONENTRY_LABEL_HEIGHT_INC;
154             text {
155                style: "multibuttonentry_label_style";
156                min: 1 0;
157             }
158             rel2 {
159                relative: 0.0 1.0;
160                to: "right.pad";
161             }
162          }
163       }
164    }
165 }
166
167 group {
168    name: "elm/multibuttonentry/guide/default";
169
170    styles {
171       style {
172          name: "multibuttonentry_guide_style";
173          base: "font=SLP:style=Regular font_size="MULTIBUTTONENTRY_GUIDE_TEXT_SIZE_INC" color="MULTIBUTTONENTRY_GUIDE_TEXT_COLOR_INC" wrap=char text_class=slp";
174          tag:  "br" "\n";
175          tag:  "ps" "ps";
176          tag:  "hilight" "+ font=SLP:style=Bold";
177          tag:  "b" "+ font=SLP:style=Bold";
178          tag:  "tab" "\t";
179       }
180    }
181
182    parts {
183       part {
184          name: "elm.text";
185          type: TEXTBLOCK;
186          mouse_events: 0;
187          multiline: 0;
188          scale: 1;
189          description {
190             state: "default" 0.0;
191             min: 0 MULTIBUTTONENTRY_GUIDE_HEIGHT_INC;
192             text {
193                style: "multibuttonentry_guide_style";
194                min: 1 0;
195             }
196          }
197       }
198    }
199 }
200
201 group {
202    name: "elm/multibuttonentry/button/default";
203
204    images {
205       image: "00_contacts_button.png" COMP;
206       image: "00_contacts_button_press.png" COMP;
207    }
208
209    data.item: "max_size" MULTIBUTTONENTRY_BUTTON_MAX_INC;
210
211    parts {
212       part {
213          name: "bg";
214          type: IMAGE;
215          mouse_events: 0;
216          scale: 1;
217          description {
218             state: "default" 0.0;
219             min: 0 MULTIBUTTONENTRY_BUTTON_HEIGHT_INC;
220             image {
221                normal: "00_contacts_button.png";
222                border: MULTIBUTTONENTRY_BUTTON_NINEPATCH_INC;
223                border_scale: 1;
224             }
225          }
226          description {
227             state: "focused" 0.0;
228             inherit: "default" 0.0;
229             image.normal: "00_contacts_button_press.png";
230          }
231       }
232       part {
233          name: "left.pad";
234          type: RECT;
235          mouse_events: 0;
236          scale: 1;
237          description {
238             state: "default" 0.0;
239             min: MULTIBUTTONENTRY_BUTTON_PAD_INC 0;
240             fixed: 1 0;
241             rel2.relative: 0.0 1.0;
242             align: 0.0 0.5;
243             color: 0 0 0 0;
244          }
245       }
246       part {
247          name: "right.pad";
248          type: RECT;
249          mouse_events: 0;
250          scale: 1;
251          description {
252             state: "default" 0.0;
253             min: MULTIBUTTONENTRY_BUTTON_PAD_INC 0;
254             fixed: 1 0;
255             rel1.relative: 1.0 0.0;
256             align: 1.0 0.5;
257             color: 0 0 0 0;
258          }
259       }
260       part {
261          name: "elm.text";
262          type: TEXT;
263          mouse_events: 0;
264          scale: 1;
265          description {
266             state: "default" 0.0;
267             color: MULTIBUTTONENTRY_BUTTON_TEXT_COLOR_INC;
268             text {
269                font: "SLP:style=Regular";
270                size: MULTIBUTTONENTRY_BUTTON_TEXT_SIZE_INC;
271                min: 1 0;
272                text_class: "slp";
273             }
274             rel1 {
275                relative: 1.0 0.0;
276                to: "left.pad";
277             }
278             rel2 {
279                relative: 0.0 1.0;
280                to: "right.pad";
281             }
282          }
283          description {
284             state: "ellipsis" 0.0;
285             inherit: "default" 0.0;
286             min: MULTIBUTTONENTRY_BUTTON_TEXT_MAX_INC 0;
287             text.min: 0 0;
288          }
289       }
290       part { name: "events";
291          type: RECT;
292          ignore_flags: ON_HOLD;
293          description {
294             state: "default" 0.0;
295             color: 0 0 0 0;
296          }
297       }
298    }
299    programs {
300       program {
301          name: "text_ellipsis";
302          signal: "elm,state,text,ellipsis";
303          source: "elm";
304          action: STATE_SET "ellipsis" 0.0;
305          target: "elm.text";
306       }
307       program {
308          name: "focused";
309          signal: "elm,state,bg,focus";
310          source: "elm";
311          action: STATE_SET "focused" 0.0;
312          target: "bg";
313          after: "selected";
314       }
315       program {
316          name: "unfocused";
317          signal: "elm,state,bg,unfocus";
318          source: "elm";
319          action: STATE_SET "default" 0.0;
320          target: "bg";
321       }
322       program {
323          name: "clicked";
324          signal: "mouse,clicked,1";
325          source: "events";
326          action: SIGNAL_EMIT "elm,action,clicked" "";
327       }
328       program {
329          name: "selected";
330          action: SIGNAL_EMIT "elm,action,selected" "";
331       }
332    }
333 }
334
335 group {
336    name: "elm/multibuttonentry/number/default";
337
338    parts {
339       part {
340          name: "left.pad";
341          type: RECT;
342          mouse_events: 0;
343          scale: 1;
344          description {
345             state: "default" 0.0;
346             min: MULTIBUTTONENTRY_LABEL_PAD_INC 0;
347             fixed: 1 0;
348             rel2.relative: 0.0 1.0;
349             align: 0.0 0.5;
350             color: 0 0 0 0;
351          }
352       }
353       part {
354          name: "elm.text";
355          type: TEXT;
356          mouse_events: 0;
357          scale: 1;
358          description {
359             state: "default" 0.0;
360             min: 0 MULTIBUTTONENTRY_LABEL_HEIGHT_INC;
361             color: MULTIBUTTONENTRY_NUMBER_TEXT_COLOR_INC;
362             text {
363                font: "SLP:style=Regular";
364                size: MULTIBUTTONENTRY_LABEL_TEXT_SIZE_INC;
365                min: 1 0;
366                text_class: "slp";
367             }
368             rel1 {
369                relative: 1.0 0.0;
370                to: "left.pad";
371             }
372          }
373       }
374    }
375 }