4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Seokjae Jeong <seok.j.jeong@samsung.com>, Myoungwoon Roy Kim <Myoungwoon.kim@samsung.com>, Jeonghyun Yun <jh0506.yun@samsung.com>, Jaehwan Kim <jae.hwan.kim@samsung.com>, Chuneon Park <chuneon.park@samsung.com>, Juyung Seo <juyung.seo@samsung.com>, Woohyun Jung <wh0705.jung@samsung.com>, Myungjae Lee <mjae.lee@samsung.com>, Hyoyoung Chang <hyoyoung.chang@samsung.com>, IlKook Yun <ilkook.yun@samsung.com>, CinWoo Kim <cinoo.kim@samsung.com> JiYeon Park <jy0703.park@samsung.com>
8 * This library is free software; you can redistribute it and/or modify it under
9 * the terms of the GNU Lesser General Public License as published by the
10 * Free Software Foundation; either version 2.1 of the License, or (at your option)
13 * This library is distributed in the hope that it will be useful, but WITHOUT ANY
14 * WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
16 * License for more details.
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with this library; if not, write to the Free Software Foundation, Inc., 51
20 * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
24 ///////////////////////////////////////////////////////////////////////////////////////
26 name: "elm/multibuttonentry/base/default";
27 data.item: "closed_button_type" "image"; /* image, label, default : label */
28 data.item: "closed_height" MULTIBUTTONENTRY_CLOSEDBUTTON_AREA_HEIGHT;
47 min : MULTIBUTTONENTRY_WIDTH_PAD MULTIBUTTONENTRY_HEIGHT_PAD;
49 rel1 { relative: 0.0 0.0;to:elm.base; }
50 rel2 { relative: 0.0 0.0;to:elm.base; }
56 name: "bottom.right.pad";
61 min : MULTIBUTTONENTRY_WIDTH_PAD MULTIBUTTONENTRY_HEIGHT_PAD;
63 rel1 { relative: 1.0 1.0;to:elm.base; }
64 rel2 { relative: 1.0 1.0;to:elm.base; }
74 rel1 { relative: 1.0 1.0; to: "top.left.pad"; }
75 rel2 { relative: 0.0 0.0; to: "bottom.right.pad"; }
82 ///////////////////////////////////////////////////////////////////////////////////////
84 name: "elm/multibuttonentry/guidetext/default";
103 state: "default" 0.0;
104 color: MULTIBUTTONENTRY_GUIDETEXT_COLOR_INC;
106 font: "SLP:style=Roman";
107 size: MULTIBUTTONENTRY_GUIDETEXT_SIZE;
116 ///////////////////////////////////////////////////////////////////////////////////////
118 name: "elm/multibuttonentry/btn/default";
119 data.item: "button_max_size" MULTIBUTTONENTRY_BUTTON_MAX_SIZE;
127 state: "default" 0.0;
128 min: 0 MULTIBUTTONENTRY_BUTTON_BASE_SIZE;
129 max: 5000 MULTIBUTTONENTRY_BUTTON_BASE_SIZE;
134 //----------------------------------------------------padding
140 state: "default" 0.0;
141 min : 0 MULTIBUTTONENTRY_BUTTON_TOP_BUTTOM_PAD;
143 rel1 { relative: 0.0 0.0;to:elm.base; }
144 rel2 { relative: 1.0 0.0;to:elm.base; }
150 name: "bottom.padding";
154 state: "default" 0.0;
155 min : 0 MULTIBUTTONENTRY_BUTTON_TOP_BUTTOM_PAD;
157 rel1 { relative: 0.0 1.0;to:elm.base; }
158 rel2 { relative: 1.0 1.0;to:elm.base; }
164 name: "left.padding";
168 state: "default" 0.0;
171 rel1 { relative: 0.0 0.0; to: "elm.base"; }
172 rel2 { relative: 0.0 1.0; to: "elm.base"; }
178 name: "left.inner.padding";
182 state: "default" 0.0;
183 min : MULTIBUTTONENTRY_BUTTON_LEFT_INNER_PAD 0;
185 rel1 { relative: 1.0 0.0; to_x:"left.padding"; to_y:"elm.base"; }
186 rel2 { relative: 1.0 1.0; to_x:"left.padding"; to_y:"elm.base"; }
192 name: "right.padding";
196 state: "default" 0.0;
197 min : MULTIBUTTONENTRY_BUTTON_RIGHT_PAD 0;
199 rel1 { relative: 1.0 0.0; to: "elm.base"; }
200 rel2 { relative: 1.0 1.0; to: "elm.base"; }
206 name: "right.inner.padding";
210 state: "default" 0.0;
211 min : MULTIBUTTONENTRY_BUTTON_RIGHT_INNER_PAD 0;
213 rel1 { relative: 0.0 0.0; to_x:right.padding; to_y:elm.base; }
214 rel2 { relative: 0.0 1.0; to_x:right.padding; to_y:elm.base; }
219 //---------------------------------------------------- contents
226 state: "default" 0.0;
227 rel1 { relative: 1.0 1.0; to_x:"left.padding";to_y:"top.padding";}
228 rel2 { relative: 0.0 0.0; to_x:"right.padding";to_y:"bottom.padding";}
229 color: MULTIBUTTONENTRY_NORMAL_BUTTON_COLOR_INC;
232 state: "focused" 0.0;
233 inherit: "default" 0.0;
234 color: MULTIBUTTONENTRY_PRESSED_BUTTON_COLOR_INC;
238 name: "elm.btn.text";
243 state: "default" 0.0;
248 style: "multibuttonentry_textblock_style";
251 rel1 { relative: 1.0 1.0; to_x:"left.inner.padding";to_y:"top.padding";}
252 rel2 { relative: 0.0 0.0; to_x:"right.inner.padding";to_y:"bottom.padding";}
260 signal: "mouse,clicked,1";
261 source: "elm.btn.bg";
262 action: SIGNAL_EMIT "clicked" "elm";
267 action: STATE_SET "default" 0.0;
268 target: "elm.btn.bg";
273 action: STATE_SET "focused" 0.0;
274 target: "elm.btn.bg";
279 style { name: "multibuttonentry_textblock_style";
280 base: "font=SLP:style=Medium align=center font_size="MULTIBUTTONENTRY_BUTTON_TEXT_SIZE" color="MULTIBUTTONENTRY_BUTTON_TEXT_COLOR_INT" text_class=label";
284 ///////////////////////////////////////////////////////////////////////////////////////
286 name: "elm/label/base/extended/multibuttonentry_default";
290 name: "textblock_style_multibuttonentry_default";
291 base: "font=SLP:style=Medium font_size=24 color=#000000 wrap=char";
294 tag: "hilight" "+ font=SLP:style=Bold";
295 tag: "b" "+ font=SLP:style=Bold";
302 name: "label.swallow.background";
305 state: "default" 0.0;
307 rel1 { relative: 0 0; to: "elm.text"; }
308 rel2 { relative: 1 1; to: "elm.text"; }
317 state: "default" 0.0;
319 style: "textblock_style_multibuttonentry_default";
327 ///////////////////////////////////////////////////////////////////////////////////////
329 name: "elm/multibuttonentry/closedbutton/default";
331 image: "00_mbe_btn_circle_bg_normal.png" COMP;
332 image: "00_mbe_btn_circle_bg_press.png" COMP;
333 image: "00_mbe_btn_expand_closed.png" COMP;
334 image: "00_mbe_btn_expand_closed_press.png" COMP;
335 image: "00_mbe_btn_expand_opened.png" COMP;
337 data.item: "closed_button_height" MULTIBUTTONENTRY_CLOSEDBUTTON_SIZE;
338 data.item: "closed_button_width" MULTIBUTTONENTRY_CLOSEDBUTTON_SIZE;
342 name: "closed_button_bg";
347 state: "default" 0.0;
349 min: MULTIBUTTONENTRY_CLOSEDBUTTON_SIZE MULTIBUTTONENTRY_CLOSEDBUTTON_SIZE;
351 image.normal: "00_mbe_btn_circle_bg_normal.png";
352 rel1 { relative: 0.0 0.0; }
353 rel2 { relative: 1.0 1.0; }
356 state: "clicked" 0.0;
357 inherit: "default" 0.0;
358 image.normal: "00_mbe_btn_circle_bg_press.png";
362 inherit: "default" 0.0;
363 image.normal: "00_mbe_btn_circle_bg_normal.png";
367 name: "closed_button";
372 state: "default" 0.0;
374 min: MULTIBUTTONENTRY_CLOSEDBUTTON_SIZE MULTIBUTTONENTRY_CLOSEDBUTTON_SIZE;
376 image.normal: "00_mbe_btn_expand_opened.png";
377 rel1 { relative: 0.0 0.0; }
378 rel2 { relative: 1.0 1.0; }
381 state: "clicked" 0.0;
382 inherit: "default" 0.0;
383 image.normal: "00_mbe_btn_expand_closed_press.png";
387 inherit: "default" 0.0;
388 image.normal: "00_mbe_btn_expand_closed.png";
395 name: "button_click";
396 signal: "mouse,down,1";
397 source: "closed_button";
398 action: STATE_SET "clicked" 0.0;
399 target: "closed_button_bg";
400 target: "closed_button";
403 name: "button_unclick";
404 signal: "mouse,up,1";
405 source: "closed_button";
406 action: STATE_SET "default" 0.0;
407 target: "closed_button_bg";
408 target: "closed_button";
413 action: STATE_SET "closed" 0.0;
414 target: "closed_button_bg";
415 target: "closed_button";
421 name: "elm/multibuttonentry/label/default";
424 name: "mbe.label.bg";
428 state: "default" 0.0;
434 state: "no_text" 0.0;
435 inherit: "default" 0.0;
440 name: "mbe.label.left.padding";
444 state: "default" 0.0;
448 rel1.to: "mbe.label.bg";
456 state: "no_text" 0.0;
457 inherit: "default" 0.0;
462 name: "mbe.label.right.padding";
466 state: "default" 0.0;
468 min: MULTIBUTTONENTRY_LABEL_RIGHT_PAD 0;
474 rel2.to: "mbe.label.bg";
478 state: "no_text" 0.0;
479 inherit: "default" 0.0;
488 state: "default" 0.0;
489 color: MULTIBUTTONENTRY_LABEL_TEXT_COLOR_INC;
490 min: 0 MULTIBUTTONENTRY_LABEL_MIN_HEIGHT;
493 font: "SLP:style=Roman";
494 size: MULTIBUTTONENTRY_LABEL_TEXT_SIZE;
498 rel1 { relative: 1.0 1.0; to: "mbe.label.left.padding"; }
499 rel2 { relative: 0.0 0.0; to: "mbe.label.right.padding"; }
502 state: "no_text" 0.0;
503 inherit: "default" 0.0;
512 signal: "elm,mbe,set_text";
514 action: STATE_SET "default" 0.0;
515 target: "mbe.label.bg";
516 target: "mbe.label.left.padding";
517 target: "mbe.label.right.padding";
522 signal: "elm,mbe,clear_text";
524 action: STATE_SET "no_text" 0.0;
525 target: "mbe.label.bg";
526 target: "mbe.label.left.padding";
527 target: "mbe.label.right.padding";