merge with master
[profile/ivi/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    data.item: "closed_button_type" "label"; /* image, label, default: label */
26
27    parts {
28       part {
29          name: "top.left.pad";
30          type: RECT;
31          mouse_events: 0;
32          scale: 1;
33          description {
34             state: "default" 0.0;
35             min : MULTIBUTTONENTRY_WIDTH_PAD_INC MULTIBUTTONENTRY_HEIGHT_PAD_INC;
36             fixed: 1 1;
37             rel2.relative: 0.0 0.0;
38             align: 0.0 0.0;
39             color: 0 0 0 0;
40          }
41       }
42       part {
43          name: "bottom.right.pad";
44          type: RECT;
45          mouse_events: 0;
46          scale: 1;
47          description {
48             state: "default" 0.0;
49             min : MULTIBUTTONENTRY_WIDTH_PAD_INC MULTIBUTTONENTRY_HEIGHT_PAD_INC;
50             fixed: 1 1;
51             rel1.relative: 1.0 1.0;
52             align: 1.0 1.0;
53             color: 0 0 0 0;
54          }
55       }
56       part {
57          name: "box.swallow";
58          type: SWALLOW;
59          description {
60             state: "default" 0.0;
61             rel1 {
62                relative: 1.0 1.0;
63                to: "top.left.pad";
64             }
65             rel2 {
66                relative: 0.0 0.0;
67                to: "bottom.right.pad";
68             }
69          }
70       }
71       part { name: "block_events";
72          type: RECT;
73          description {
74             state: "default" 0.0;
75             color: 0 0 0 0;
76          }
77          description {
78             state: "invisible" 0.0;
79             visible: 0;
80          }
81       }
82       part { name: "events";
83          type: RECT;
84          repeat_events: 1;
85          ignore_flags: ON_HOLD;
86          description {
87             state: "default" 0.0;
88             color: 0 0 0 0;
89          }
90       }
91    }
92    programs {
93       program {
94          name: "clicked";
95          signal: "mouse,clicked,1";
96          source: "events";
97          action: SIGNAL_EMIT "elm,action,clicked" "";
98       }
99       program {
100          name: "event_allow";
101          signal: "elm,state,event,allow";
102          source: "";
103          action: STATE_SET "invisible" 0.0;
104          target: "block_events";
105       }
106       program {
107          name: "event_block";
108          signal: "elm,state,event,block";
109          source: "";
110          action: STATE_SET "default" 0.0;
111          target: "block_events";
112       }
113    }
114 }
115
116 group {
117    name: "elm/multibuttonentry/guidetext/default";
118
119    styles {
120       style {
121          name: "multibuttonentry_guide_style";
122          base: "font=SLP:style=Regular font_size="MULTIBUTTONENTRY_GUIDE_TEXT_SIZE_INC" color="MULTIBUTTONENTRY_GUIDE_TEXT_COLOR_INC" wrap=char text_class=slp";
123          tag:  "br" "\n";
124          tag:  "ps" "ps";
125          tag:  "hilight" "+ font=SLP:style=Bold";
126          tag:  "b" "+ font=SLP:style=Bold";
127          tag:  "tab" "\t";
128       }
129    }
130
131    parts {
132       part {
133          name: "elm.text";
134          type: TEXTBLOCK;
135          mouse_events: 0;
136          scale: 1;
137          description {
138             state: "default" 0.0;
139             min: 0 MULTIBUTTONENTRY_GUIDE_HEIGHT_INC;
140             text.style: "multibuttonentry_guide_style";
141          }
142       }
143    }
144 }
145
146 group {
147    name: "elm/multibuttonentry/btn/default";
148
149    images {
150       image: "00_contacts_button.png" COMP;
151       image: "00_contacts_button_press.png" COMP;
152    }
153
154    data.item: "button_max_size" MULTIBUTTONENTRY_BUTTON_MAX_INC;
155
156    parts {
157       part {
158          name: "elm.btn.bg";
159          type: IMAGE;
160          mouse_events: 0;
161          scale: 1;
162          description {
163             state: "default" 0.0;
164             min: 0 MULTIBUTTONENTRY_BUTTON_HEIGHT_INC;
165             image {
166                normal: "00_contacts_button.png";
167                border: MULTIBUTTONENTRY_BUTTON_NINEPATCH_INC;
168                border_scale: 1;
169             }
170          }
171          description {
172             state: "focused" 0.0;
173             inherit: "default" 0.0;
174             image.normal: "00_contacts_button_press.png";
175          }
176       }
177       part {
178          name: "left.padding";
179          type: RECT;
180          mouse_events: 0;
181          scale: 1;
182          description {
183             state: "default" 0.0;
184             min: MULTIBUTTONENTRY_BUTTON_PAD_INC 0;
185             fixed: 1 0;
186             rel2.relative: 0.0 1.0;
187             align: 0.0 0.5;
188             color: 0 0 0 0;
189          }
190       }
191       part {
192          name: "right.padding";
193          type: RECT;
194          mouse_events: 0;
195          scale: 1;
196          description {
197             state: "default" 0.0;
198             min: MULTIBUTTONENTRY_BUTTON_PAD_INC 0;
199             fixed: 1 0;
200             rel1.relative: 1.0 0.0;
201             align: 1.0 0.5;
202             color: 0 0 0 0;
203          }
204       }
205       part {
206          name: "elm.btn.text";
207          type: TEXT;
208          mouse_events: 0;
209          scale: 1;
210          description {
211             state: "default" 0.0;
212             color: MULTIBUTTONENTRY_BUTTON_TEXT_COLOR_INC;
213             text {
214                font: "SLP:style=Regular";
215                size: MULTIBUTTONENTRY_BUTTON_TEXT_SIZE_INC;
216                min: 1 0;
217                text_class: "slp";
218             }
219             rel1 {
220                relative: 1.0 0.0;
221                to: "left.padding";
222             }
223             rel2 {
224                relative: 0.0 1.0;
225                to: "right.padding";
226             }
227          }
228          description {
229             state: "ellipsis" 0.0;
230             inherit: "default" 0.0;
231             min: MULTIBUTTONENTRY_BUTTON_TEXT_MAX_INC 0;
232             text.min: 0 0;
233          }
234       }
235       part { name: "events";
236          type: RECT;
237          ignore_flags: ON_HOLD;
238          description {
239             state: "default" 0.0;
240             color: 0 0 0 0;
241          }
242       }
243    }
244    programs {
245       program {
246          name: "text_ellipsis";
247          signal: "elm,state,text,ellipsis";
248          source: "";
249          action: STATE_SET "ellipsis" 0.0;
250          target: "elm.btn.text";
251       }
252       program {
253          name: "focused";
254          signal: "focused";
255          source: "";
256          action: STATE_SET "focused" 0.0;
257          target: "elm.btn.bg";
258          after: "selected";
259       }
260       program {
261          name: "unfocused";
262          signal: "default";
263          source: "";
264          action: STATE_SET "default" 0.0;
265          target: "elm.btn.bg";
266       }
267       program {
268          name: "clicked";
269          signal: "mouse,clicked,1";
270          source: "events";
271          action: SIGNAL_EMIT "elm,action,clicked" "";
272       }
273       program {
274          name: "selected";
275          action: SIGNAL_EMIT "elm,action,selected" "";
276       }
277    }
278 }
279
280 group {
281    name: "elm/multibuttonentry/number/default";
282
283    parts {
284       part {
285          name: "left.pad";
286          type: RECT;
287          mouse_events: 0;
288          scale: 1;
289          description {
290             state: "default" 0.0;
291             min: MULTIBUTTONENTRY_LABEL_PAD_INC 0;
292             fixed: 1 0;
293             rel2.relative: 0.0 1.0;
294             align: 0.0 0.5;
295             color: 0 0 0 0;
296          }
297       }
298       part {
299          name: "elm.text";
300          type: TEXT;
301          mouse_events: 0;
302          scale: 1;
303          description {
304             state: "default" 0.0;
305             min: 0 MULTIBUTTONENTRY_LABEL_HEIGHT_INC;
306             color: MULTIBUTTONENTRY_NUMBER_TEXT_COLOR_INC;
307             text {
308                font: "SLP:style=Regular";
309                size: MULTIBUTTONENTRY_LABEL_TEXT_SIZE_INC;
310                min: 1 0;
311                text_class: "slp";
312             }
313             rel1 {
314                relative: 1.0 0.0;
315                to: "left.pad";
316             }
317          }
318       }
319    }
320 }
321
322 group {
323    name: "elm/multibuttonentry/closedbutton/default";
324
325    images {
326       image: "00_circle_button.png" COMP;
327       image: "00_button_expand_closed.png" COMP;
328    }
329
330    parts {
331       part {
332          name: "closed_button_bg";
333          scale: 1;
334          mouse_events: 0;
335          description {
336             state: "default" 0.0;
337             min: MULTIBUTTONENTRY_CLOSEDBUTTON_SIZE_INC MULTIBUTTONENTRY_CLOSEDBUTTON_SIZE_INC;
338             image.normal: "00_circle_button.png";
339          }
340       }
341       part {
342          name: "closed_button";
343          scale: 1;
344          mouse_events: 0;
345          description {
346             state: "default" 0.0;
347             image.normal: "00_button_expand_closed.png";
348          }
349       }
350    }
351 }
352
353 group {
354    name: "elm/multibuttonentry/label/default";
355
356    styles {
357       style {
358          name: "multibuttonentry_label_style";
359          base: "font=SLP:style=Regular font_size="MULTIBUTTONENTRY_LABEL_TEXT_SIZE_INC" color="MULTIBUTTONENTRY_LABEL_TEXT_COLOR_INC" wrap=char text_class=slp";
360          tag:  "br" "\n";
361          tag:  "ps" "ps";
362          tag:  "hilight" "+ font=SLP:style=Bold";
363          tag:  "b" "+ font=SLP:style=Bold";
364          tag:  "tab" "\t";
365       }
366    }
367
368    parts {
369       part {
370          name: "mbe.label.right.padding";
371          type: RECT;
372          mouse_events: 0;
373          scale: 1;
374          description {
375             state: "default" 0.0;
376             min: MULTIBUTTONENTRY_LABEL_PAD_INC 0;
377             fixed: 1 0;
378             rel1.relative: 1.0 0.0;
379             align: 1.0 0.5;
380             color: 0 0 0 0;
381          }
382       }
383       part {
384          name: "mbe.label";
385          type: TEXTBLOCK;
386          mouse_events: 0;
387          scale: 1;
388          description {
389             state: "default" 0.0;
390             min: 0 MULTIBUTTONENTRY_LABEL_HEIGHT_INC;
391             text {
392                style: "multibuttonentry_label_style";
393                min: 1 0;
394             }
395             rel2 {
396                relative: 0.0 1.0;
397                to: "mbe.label.right.padding";
398             }
399          }
400       }
401    }
402 }