2 * Copyright (c) 2009 - 2015 Samsung Electronics Co., Ltd. All rights reserved.
4 * Licensed under the Apache License, Version 2.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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
20 #define TOOLBAR_WIDTH 720
21 #define TOOLBAR_HEIGHT 83
22 #define TOOLBAR_LANDSCAPE_WIDTH 1280
26 name: "touch_sound" AS_IS;
27 source: "Tizen_touch.wav";
31 #define BUTTON_BACKGROUD_NORMAL_OR_PRESS(part_name, rel1_x, rel1_y, rel2_x, rel2_y, normal_icon_name, press_icon_name)\
38 state: "default" 0.0;\
40 rel1 {relative: rel1_x/TOOLBAR_WIDTH rel1_y/TOOLBAR_HEIGHT; to: "bg";}\
41 rel2 {relative: rel2_x/TOOLBAR_WIDTH rel2_y/TOOLBAR_HEIGHT; to: "bg";}\
42 image.normal: normal_icon_name;\
43 image.border: 8 8 0 0;\
47 inherit: "default" 0.0;\
48 image.normal: press_icon_name;\
49 image.border: 8 8 0 0;\
52 state: "landscape_default" 0.0;\
53 inherit: "default" 0.0;\
54 rel1 {relative: (rel1_x+10)/TOOLBAR_LANDSCAPE_WIDTH rel1_y/TOOLBAR_HEIGHT; to: "bg";}\
55 rel2 {relative: (rel2_x+10)/TOOLBAR_LANDSCAPE_WIDTH rel2_y/TOOLBAR_HEIGHT; to: "bg";}\
58 state: "landscape_press" 0.0;\
59 inherit: "landscape_default" 0.0;\
60 image.normal: press_icon_name;\
61 image.border: 8 8 0 0;\
65 #define BUTTON_BG_NORMAL_OR_PRESS(part_name, rel1_x, rel1_y, rel2_x, rel2_y, normal_icon_name, press_icon_name)\
72 state: "default" 0.0;\
74 rel1 {relative: rel1_x/TOOLBAR_WIDTH rel1_y/TOOLBAR_HEIGHT; to: "bg";}\
75 rel2 {relative: rel2_x/TOOLBAR_WIDTH rel2_y/TOOLBAR_HEIGHT; to: "bg";}\
76 image.normal: normal_icon_name;\
77 image.border: 16 8 0 0;\
81 inherit: "default" 0.0;\
82 image.normal: press_icon_name;\
85 state: "landscape_default" 0.0;\
86 inherit: "default" 0.0;\
87 rel1 {relative: (rel1_x+520)/TOOLBAR_LANDSCAPE_WIDTH rel1_y/TOOLBAR_HEIGHT; to: "bg";}\
88 rel2 {relative: (rel2_x+520)/TOOLBAR_LANDSCAPE_WIDTH rel2_y/TOOLBAR_HEIGHT; to: "bg";}\
91 state: "landscape_press" 0.0;\
92 inherit: "landscape_default" 0.0;\
93 image.normal: press_icon_name;\
96 #define BUTTON_BG_NORMAL_OR_PRESS_OR_ENABLE(part_name, rel1_x, rel1_y, rel2_x, rel2_y, normal_icon_name, press_icon_name,enable_icon_name)\
103 state: "default" 0.0;\
105 rel1 {relative: rel1_x/TOOLBAR_WIDTH rel1_y/TOOLBAR_HEIGHT; to: "bg";}\
106 rel2 {relative: rel2_x/TOOLBAR_WIDTH rel2_y/TOOLBAR_HEIGHT; to: "bg";}\
107 image.normal: normal_icon_name;\
108 image.border: 16 8 0 0;\
112 inherit: "default" 0.0;\
113 image.normal: press_icon_name;\
116 state: "enable" 0.0;\
117 inherit: "default" 0.0;\
118 image.normal: enable_icon_name;\
121 state: "landscape_default" 0.0;\
122 inherit: "default" 0.0;\
123 rel1 {relative: (rel1_x+520)/TOOLBAR_LANDSCAPE_WIDTH rel1_y/TOOLBAR_HEIGHT; to: "bg";}\
124 rel2 {relative: (rel2_x+520)/TOOLBAR_LANDSCAPE_WIDTH rel2_y/TOOLBAR_HEIGHT; to: "bg";}\
127 state: "landscape_press" 0.0;\
128 inherit: "landscape_default" 0.0;\
129 image.normal: press_icon_name;\
132 state: "landscape_enable" 0.0;\
133 inherit: "landscape_default" 0.0;\
134 image.normal: enable_icon_name;\
139 #define BUTTON_BG_PRESS(part_name, rel1_x, rel1_y, rel2_x, rel2_y, press_icon_name)\
146 state: "default" 0.0;\
148 rel1 {relative: rel1_x/TOOLBAR_WIDTH rel1_y/TOOLBAR_HEIGHT; to: "bg";}\
149 rel2 {relative: rel2_x/TOOLBAR_WIDTH rel2_y/TOOLBAR_HEIGHT; to: "bg";}\
150 image.border: 8 8 0 0;\
155 rel1 {relative: rel1_x/TOOLBAR_WIDTH rel1_y/TOOLBAR_HEIGHT; to: "bg";}\
156 rel2 {relative: rel2_x/TOOLBAR_WIDTH rel2_y/TOOLBAR_HEIGHT; to: "bg";}\
157 image.normal: press_icon_name;\
158 image.border: 8 8 0 0;\
161 state: "landscape_default" 0.0;\
162 inherit: "default" 0.0;\
163 rel1 {relative: (rel1_x+560)/TOOLBAR_LANDSCAPE_WIDTH rel1_y/TOOLBAR_HEIGHT; to: "bg";}\
164 rel2 {relative: (rel2_x+560)/TOOLBAR_LANDSCAPE_WIDTH rel2_y/TOOLBAR_HEIGHT; to: "bg";}\
167 state: "landscape_press" 0.0;\
168 inherit: "landscape_default" 0.0;\
169 image.normal: press_icon_name;\
170 image.border: 8 8 0 0;\
174 #define BUTTON_NORMAL_OR_PRESS(part_name, rel1_x, rel1_y, rel2_x, rel2_y, normal_icon_name, press_icon_name, part_bg_name)\
182 state: "default" 0.0;\
184 rel1 {relative: rel1_x rel1_y; to: part_bg_name;}\
185 rel2 {relative: rel2_x rel2_y; to: part_bg_name;}\
186 image.normal: normal_icon_name;\
190 inherit: "default" 0.0;\
191 image.normal: press_icon_name;\
195 #define TOOLBAR_BUTTON_PROGRAM_SIGNAL_EMIT_1(part_name, singal_name)\
197 name: "send_click_event_"part_name;\
198 signal: "mouse,clicked,1";\
200 action: SIGNAL_EMIT singal_name "";\
201 after: "touch_snd_"part_name;\
204 name: "touch_snd_"part_name;\
205 action: PLAY_SAMPLE "touch_sound" 1.0;\
209 #define TOOLBAR_BUTTON_PROGRAM_SIGNAL_EMIT_2(part_name, singal_name1, signal_name2)\
211 name: "mouse_down_"part_name;\
212 signal: "mouse,down,1";\
214 action: SIGNAL_EMIT singal_name1 "";\
217 name: "mouse_up_"part_name;\
218 signal: "mouse,up,1";\
220 action: SIGNAL_EMIT signal_name2 "";\
224 #define COLOR_RECT(part_name, relative_part_name, color_class_name)\
230 state: "default" 0.0;\
231 rel1 { relative: 9/56 40/60; to: relative_part_name;}\
232 rel2 { relative: 49/56 50/60; to: relative_part_name;}\
233 color_class: color_class_name;\
236 #define PROG_PART_DEFAULT_PRESS(part_name)\
238 name: "default,"part_name;\
239 signal: "default,"part_name;\
241 action: STATE_SET "default" 0.0;\
245 name: "press,"part_name;\
246 signal: "press,"part_name;\
248 action: STATE_SET "press" 0.0;\
252 name: "landscape_default,"part_name;\
253 signal: "landscape_default,"part_name;\
255 action: STATE_SET "landscape_default" 0.0;\
259 name: "landscape_press,"part_name;\
260 signal: "landscape_press,"part_name;\
262 action: STATE_SET "landscape_press" 0.0;\
266 #define PROG_PART_DEFAULT_SHOW(part_name)\
268 name: "default,"part_name;\
269 signal: "default,"part_name;\
271 action: STATE_SET "default" 0.0;\
275 name: "shown,"part_name;\
276 signal: "shown,"part_name;\
278 action: STATE_SET "shown" 0.0;\
282 #define PROG_PART_DEFAULT_LANDSCAPE(part_name)\
284 name: "default,"part_name;\
285 signal: "default,"part_name;\
287 action: STATE_SET "default" 0.0;\
291 name: "landscape,"part_name;\
292 signal: "landscape,"part_name;\
294 action: STATE_SET "landscape" 0.0;\
298 #define PROG_PART_DEFAULT_ENABLE(part_name)\
300 name: "default,"part_name;\
301 signal: "default,"part_name;\
303 action: STATE_SET "default" 0.0;\
307 name: "enable,"part_name;\
308 signal: "enable,"part_name;\
310 action: STATE_SET "enable" 0.0;\
314 name: "landscape_default,"part_name;\
315 signal: "landscape_default,"part_name;\
317 action: STATE_SET "landscape_default" 0.0;\
321 name: "landscape_enable,"part_name;\
322 signal: "landscape_enable,"part_name;\
324 action: STATE_SET "landscape_enable" 0.0;\
333 image: "B09_Add_Text_sip_option_bg.png" COMP;
334 image: "icon_preview_normal.png" COMP;
335 image: "icon_preview_press.png" COMP;
336 image: "icon_preview_dim.png" COMP;
337 image: "00_circle_button.png" COMP;
338 image: "edit_txt_bg.png" COMP;
339 image: "icon_preview_search_btn.png" COMP;
340 image: "icon_preview_search_btn_press.png" COMP;
342 name: "lockscreen.options.locktitle.main";
349 state: "default" 0.0;
351 rel1 { relative: 0.0 0.0; }
352 rel2 { relative: 1.0 1.0; }
361 state: "default" 0.0;
377 state: "default" 0.0;
388 name: "elm.swallow.content"; /* editfield */
392 state: "default" 0.0;
394 rel1 { relative: 0.0 0.0; to: "background"; offset: 0 10;}
395 rel2 { relative: 1.0 0.0; to: "background"; offset: -98 220-40-30-10+10;}
404 state: "default" 0.0;
405 rel1 { relative: 0.0 0.0; to: "background"; }
406 rel2 { relative: 1.0 0.25; to: "background"; }
414 state: "default" 0.0;
419 rel1 { relative: 0.0 1.0; to: "background";}
420 rel2 { relative: 1.0 1.0; to: "background";}
421 image.normal: "edit_txt_bg.png";
422 image.border: 8 8 8 8;
426 name: "elm.swallow.toolbar2";/* add font and color buttons */
430 state: "default" 0.0;
432 rel1 { relative: 0.0 0.0; to: "toolbar.bg";}
433 rel2 { relative: 1.0 1.0; to: "toolbar.bg";}
437 name: "toolbar_another.bg";
441 state: "default" 0.0;
446 rel1 { relative: 0.0 (1280-474-83)/1280; to: "background";}
447 rel2 { relative: 1.0 (1280-474)/1280; to: "background";}
448 image.normal: "edit_txt_bg.png";
449 image.border: 8 8 8 8;
453 name: "elm.swallow.toolbar2_another";/* add font and color buttons */
457 state: "default" 0.0;
459 rel1 { relative: 0.0 0.0; to: "toolbar_another.bg";}
460 rel2 { relative: 1.0 1.0; to: "toolbar_another.bg";}
464 name: "bg.elm.swallow.selector";
468 state: "default" 0.0;
470 rel1 { relative: 0.0 1.0; to: "toolbar_another.bg";}
471 rel2 { relative: 1.0 1.0; to: "background";}
476 name: "elm.swallow.selector_";/* font and color selector layout */
480 state: "default" 0.0;
482 rel1 { relative: 0.0 1.0; to: "toolbar_another.bg";}
483 rel2 { relative: 1.0 1.0; to: "background";}
488 name: "elm.swallow.toolbar1";/*add done and back buttons*/
492 state: "default" 0.0;
495 rel1 { relative: 0.0 1.0; to: "background";}
496 rel2 { relative: 1.0 1.0; to: "background";}
501 rel1 { relative: 0.0 -1.0; to: "toolbar.bg";}
502 rel2 { relative: 1.0 0.0; to: "toolbar.bg";}
506 name: "elm.swallow.content"; /* editfield */
510 state: "default" 0.0;
512 rel1 { relative: 0.0 0.0; to: "background";}
513 rel2 { relative: 1.0 0.0; to: "background"; offset: -98 220-40;}
517 name: "img.preview.background";
523 state: "default" 0.0;
528 rel1 { relative: 0.0 0.0; to: "background"; offset: 0 55;}
529 rel2 { relative: 1.0 0.0; to: "background"; offset: -20 0;}
530 image.normal: "icon_preview_search_btn.png";
538 rel1 { relative: 0.0 0.0; to: "background"; offset: 0 55;}
539 rel2 { relative: 1.0 0.0; to: "background"; offset: -20 0;}
540 image.normal: "icon_preview_search_btn_press.png";
550 state: "default" 0.0;
555 rel1 { relative: 0.0 0.0; to: "background"; offset: 0 60;}
556 rel2 { relative: 1.0 0.0; to: "background"; offset: -25 0;}
557 image.normal: "icon_preview_normal.png";
565 rel1 { relative: 0.0 0.0; to: "background"; offset: 0 60;}
566 rel2 { relative: 1.0 0.0; to: "background"; offset: -25 0;}
567 image.normal: "icon_preview_press.png";
571 FOCUS_OBJECT("img.preview");
573 name: "elm.swallow.selector";/* font and color selector layout */
577 state: "default" 0.0;
579 rel1 { relative: 0.0 1.0; to: "toolbar.bg";}
580 rel2 { relative: 1.0 1.0; to: "background";}
586 public message(Msg_Type:type, id, ...) {
587 custom_state(PART:"toolbar.bg", "default", 0.0);
588 custom_state(PART:"elm.swallow.toolbar2", "default", 0.0);
589 custom_state(PART:"toolbar_another.bg", "default", 0.0);
590 custom_state(PART:"elm.swallow.toolbar2_another", "default", 0.0);
591 custom_state(PART:"bg.elm.swallow.selector", "default", 0.0);
592 custom_state(PART:"elm.swallow.selector_", "default", 0.0);
594 if ((type == MSG_FLOAT) && (id == 1)) {
595 new Float:rel2_y = Float:getarg(2);
596 set_state_val(PART:"toolbar.bg", STATE_REL1, 0.0, rel2_y);
597 set_state_val(PART:"toolbar.bg", STATE_REL2, 1.0, rel2_y);
599 if ((type == MSG_FLOAT) && (id == 2)) {
600 set_state_val(PART:"toolbar.bg", STATE_VISIBLE, 1);
601 set_state_val(PART:"elm.swallow.toolbar2", STATE_VISIBLE, 1);
603 if ((type == MSG_FLOAT) && (id == 3)) {
604 //set_state_val(PART:"toolbar.bg", STATE_REL1_OFFSET, 0, 0);
605 //set_state_val(PART:"toolbar.bg", STATE_REL2_OFFSET, 0, 0);
606 set_state_val(PART:"toolbar.bg", STATE_VISIBLE, 0);
607 set_state_val(PART:"elm.swallow.toolbar2", STATE_VISIBLE, 0);
610 if ((type == MSG_INT) && (id == 4)) {
611 new offset_y = getarg(2);
612 set_state_val(PART:"toolbar.bg", STATE_REL1, 0.0, 0.0);
613 set_state_val(PART:"toolbar.bg", STATE_REL2, 1.0, 0.0);
614 set_state_val(PART:"toolbar.bg", STATE_REL1_OFFSET, 0, offset_y);
615 set_state_val(PART:"toolbar.bg", STATE_REL2_OFFSET, 0, offset_y);
617 if ((type == MSG_FLOAT) && (id == 5)) {
618 set_state_val(PART:"toolbar_another.bg", STATE_VISIBLE, 0);
619 set_state_val(PART:"elm.swallow.toolbar2_another", STATE_VISIBLE, 0);
620 set_state_val(PART:"bg.elm.swallow.selector", STATE_VISIBLE, 0);
621 set_state_val(PART:"elm.swallow.selector_", STATE_VISIBLE, 0);
623 if ((type == MSG_FLOAT) && (id == 6)) {
624 set_state_val(PART:"toolbar_another.bg", STATE_VISIBLE, 1);
625 set_state_val(PART:"elm.swallow.toolbar2_another", STATE_VISIBLE, 1);
626 set_state_val(PART:"bg.elm.swallow.selector", STATE_VISIBLE, 1);
627 set_state_val(PART:"elm.swallow.selector_", STATE_VISIBLE, 1);
629 set_state(PART:"toolbar.bg", "custom", 0.0);
630 set_state(PART:"elm.swallow.toolbar2", "custom", 0.0);
631 set_state(PART:"toolbar_another.bg", "custom", 0.0);
632 set_state(PART:"elm.swallow.toolbar2_another", "custom", 0.0);
633 set_state(PART:"bg.elm.swallow.selector", "custom", 0.0);
634 set_state(PART:"elm.swallow.selector_", "custom", 0.0);
642 signal: "up,toolbar1";
643 source: "elm.swallow.toolbar1";
644 action: STATE_SET "up" 1.0;
645 target: "elm.swallow.toolbar1";
648 name: "down,toolbar1";
649 signal: "down,toolbar1";
650 source: "elm.swallow.toolbar1";
651 action: STATE_SET "default" 0.0;
652 target: "elm.swallow.toolbar1";
654 PROGRAM_CLICKED_SIGNAL_EMIT("img.preview","img.preview,clicked")
656 name: "mouse_down_img.preview";
657 signal: "mouse,down,1";
658 source: "img.preview.background";
659 action: STATE_SET "press" 0.0;
660 target: "img.preview";
663 name: "mouse_up_img.preview";
664 signal: "mouse,up,1";
665 source: "img.preview.background";
666 action: STATE_SET "default" 0.0;
667 target: "img.preview";
670 PROGRAM_CLICKED_SIGNAL_EMIT("img.preview.background","img.preview.background,clicked")
672 name: "mouse_down_img.preview.background";
673 signal: "mouse,down,1";
674 source: "img.preview.background";
675 action: STATE_SET "press" 0.0;
676 target: "img.preview.background";
679 name: "mouse_up_img.preview.background";
680 signal: "mouse,up,1";
681 source: "img.preview.background";
682 action: STATE_SET "default" 0.0;
683 target: "img.preview.background";
691 base: "font=SamsungSans:style=Regular text_class=SamsungSans font_size=48 align=center color=#ffffffff style=shadow shadow_color=#0000007f wrap=""";
693 tag: "hilight" "+ color=#ffff";
694 tag: "b" "+ color=#ffff";
701 image: "B09_key_btn_01.png" COMP;
702 image: "B09_key_btn_press.png" COMP;
703 image: "B09_Add_Text_sip_option_bold.png" COMP;
704 image: "B09_Add_Text_sip_option_Italic.png" COMP;
705 image: "B09_Add_Text_sip_option_underline.png" COMP;
706 image: "B09_Add_Text_sip_option_color.png" COMP;
707 image: "B09_Add_Text_sip_option_style.png" COMP;
709 image: "icon_preview_tool_icon_01.png" COMP;
710 image: "icon_preview_tool_icon_01_select.png" COMP;
711 image: "icon_preview_tool_icon_03.png" COMP;
712 image: "icon_preview_tool_icon_03_select.png" COMP;
713 image: "icon_preview_tool_icon_04.png" COMP;
714 image: "icon_preview_tool_icon_04_select.png" COMP;
715 image: "icon_preview_tool_icon_05.png" COMP;
716 image: "icon_preview_tool_icon_05_select.png" COMP;
717 image: "icon_preview_tool_icon_06.png" COMP;
718 image: "icon_preview_tool_icon_06_select.png" COMP;
719 image: "edit_btn_divider.png" COMP;
720 image: "edit_btn_press.png" COMP;
721 image: "edit_btn_selected.png" COMP;
722 image: "edit_btn_normal.png" COMP;
723 image: "edit_btn_selected_l.png" COMP;
724 image: "edit_btn_selected_c.png" COMP;
725 image: "edit_btn_selected_r.png" COMP;
726 image: "edit_btn_enable_l.png" COMP;
727 image: "edit_btn_enable_c.png" COMP;
728 image: "edit_btn_enable_r.png" COMP;
729 image: "edit_btn_enable.png" COMP;
730 image: "edit_btn_normal_l.png" COMP;
731 image: "edit_btn_normal_c.png" COMP;
732 image: "edit_btn_normal_r.png" COMP;
733 image: "edit_btn_press_l.png" COMP;
734 image: "edit_btn_press_c.png" COMP;
735 image: "edit_btn_press_r.png" COMP;
736 image: "edit_btn_icon_txtcolor_nor.png" COMP;
737 image: "edit_btn_icon_txtcolor_nor.png" COMP;
738 image: "edit_btn_icon_txtcolor_press.png" COMP;
739 image: "edit_btn_icon_bold_nor.png" COMP;
740 image: "edit_btn_icon_bold_press.png" COMP;
741 image: "edit_btn_icon_Italic_nor.png" COMP;
742 image: "edit_btn_icon_Italic_press.png" COMP;
743 image: "edit_btn_icon_underline_nor.png" COMP;
744 image: "edit_btn_icon_underline_press.png" COMP;
745 image: "edit_btn_icon_txtcolor_nor.png" COMP;
746 image: "edit_btn_icon_txtcolor_press.png" COMP;
747 image: "edit_btn_icon_keyboard_nor.png" COMP;
748 image: "edit_btn_icon_keyboard_press.png" COMP;
750 name: "lockscreen.options.locktitle.toolbar2";
757 state: "default" 0.0;
759 rel1 { relative: 0.0 0.0; }
760 rel2 { relative: 1.0 1.0; }
765 BUTTON_BACKGROUD_NORMAL_OR_PRESS("background", (4), (8), (4+254), (8+82), "edit_btn_normal.png", "edit_btn_normal.png");
774 state: "default" 0.0;
776 image.border: 8 0 8 8;
777 rel1 {relative: 0.0 0.0; to: "background";}
778 rel2 {relative: (85)/254 1.0; to: "background";}
779 image.normal: "edit_btn_normal_l.png";
784 image.border: 8 0 8 8;
785 rel1 {relative: 0.0 0.0; to: "background";}
786 rel2 {relative: (85)/254 1.0; to: "background";}
787 image.normal: "edit_btn_enable_l.png";
792 image.border: 8 0 8 8;
793 rel1 {relative: 0.0 0.0; to: "background";}
794 rel2 {relative: (85)/254 1.0; to: "background";}
795 image.normal: "edit_btn_press_l.png";
798 //BUTTON_NORMAL_OR_PRESS("keyboard", (4+13/2)/254, 15/82, (85-10.5)/256, (82-15)/82, "icon_preview_tool_icon_01.png", "icon_preview_tool_icon_01_select.png", "background");
799 BUTTON_NORMAL_OR_PRESS("keyboard", (4+13/2)/254, 15/82, (85-10.5)/256, (82-15)/82, "edit_btn_icon_keyboard_nor.png", "edit_btn_icon_keyboard_press.png", "background");
809 state: "default" 0.0;
813 rel1 { relative: (85)/254 0.0; to: "background";}
814 rel2 { relative: (85+2)/254 1.0; to: "background";}
815 image.normal: "edit_btn_divider.png";
826 state: "default" 0.0;
828 rel1 {relative: (85+2)/254 0.0; to: "background";}
829 rel2 {relative: (85+2+80)/254 1.0; to: "background";}
830 image.normal: "edit_btn_normal_c.png";
836 rel1 {relative: (85+2)/254 0.0; to: "background";}
837 rel2 {relative: (85+2+80)/254 1.0; to: "background";}
839 inherit: "default" 0.0;
840 //image.normal: "edit_btn_selected_c.png";
841 image.normal: "edit_btn_enable_c.png";
847 rel1 {relative: (85+2)/254 0.0; to: "background";}
848 rel2 {relative: (85+2+80)/254 1.0; to: "background";}
850 inherit: "default" 0.0;
851 image.normal: "edit_btn_press_c.png";
861 state: "default" 0.0;
863 rel1 { relative: (85+2+9)/254 15/82; to: "background";}
864 rel2 { relative: (85+2+9+62)/254 (15+52)/82; to: "background";}
879 state: "default" 0.0;
883 rel1 { relative: (85+2+80)/254 0.0; to: "background";}
884 rel2 { relative: (85+2+80+2)/254 1.0; to: "background";}
885 image.normal: "edit_btn_divider.png";
896 state: "default" 0.0;
898 image.border: 0 8 8 8;
899 rel1 {relative: (85+2+80+2)/254 0.0; to: "background";}
900 rel2 {relative: 1.0 1.0; to: "background";}
901 image.normal: "edit_btn_normal_r.png";
906 image.border: 0 8 8 8;
907 rel1 {relative: (85+2+80+2)/254 0.0; to: "background";}
908 rel2 {relative: 1.0 1.0; to: "background";}
909 image.normal: "edit_btn_enable_r.png";
914 image.border: 0 8 8 8;
915 rel1 {relative: (85+2+80+2)/254 0.0; to: "background";}
916 rel2 {relative: 1.0 1.0; to: "background";}
917 image.normal: "edit_btn_press_r.png";
920 //BUTTON_NORMAL_OR_PRESS("draw", (85+2+80+2+(85-62)/2)/254, 8/82, (85+2+80+2+10.5+62)/256, (8+52)/82, "icon_preview_tool_icon_03.png", "icon_preview_tool_icon_03_select.png", "background");
921 BUTTON_NORMAL_OR_PRESS("draw", (85+2+80+2+(85-62)/2)/254, 15/82, (85+2+80+2+10.5+62)/256, (15+52)/82, "edit_btn_icon_txtcolor_nor.png", "edit_btn_icon_txtcolor_press.png", "background");
924 BUTTON_BG_NORMAL_OR_PRESS("keyboard_normal", (10), (9), (10+80), (9+64), "edit_btn_normal.png", "edit_btn_normal.png");
925 BUTTON_BG_NORMAL_OR_PRESS_OR_ENABLE("text.keyboard.bg", (10), (9), (10+80), (9+64), "edit_btn_normal.png", "edit_btn_enable.png","edit_btn_press.png");
926 BUTTON_NORMAL_OR_PRESS("text.keyboard", 0.0, 0.0, 1.0, 1.0,"edit_btn_icon_keyboard_nor.png", "edit_btn_icon_keyboard_press.png", "text.keyboard.bg");
929 BUTTON_BG_NORMAL_OR_PRESS("font_normal", (10+80+4), (9), (10+80+4+80), (9+64), "edit_btn_normal.png", "edit_btn_normal.png");
930 BUTTON_BG_NORMAL_OR_PRESS_OR_ENABLE("text.font.bg", (10+80+4), (9), (10+80+4+80), (9+64), "edit_btn_normal.png", "edit_btn_enable.png","edit_btn_press.png");
938 state: "default" 0.0;
940 rel1 { relative: 0.0 0.0; to: "text.font.bg";}
941 rel2 { relative: 1.0 1.0; to: "text.font.bg";}
949 BUTTON_BG_NORMAL_OR_PRESS("draw_normal", (10+80+4+80+4), (9), (10+80+4+80+4+80), (9+64), "edit_btn_normal.png", "edit_btn_normal.png");
950 BUTTON_BG_NORMAL_OR_PRESS_OR_ENABLE("text.draw.bg", (10+80+4+80+4), (9), (10+80+4+80+4+80), (9+64), "edit_btn_normal.png", "edit_btn_enable.png","edit_btn_press.png");
951 BUTTON_NORMAL_OR_PRESS("text.draw", 0.0, 0.0, 1.0, 1.0, "edit_btn_icon_txtcolor_nor.png", "edit_btn_icon_txtcolor_press.png", "text.draw.bg");
956 name: "draw_indictor1";/* change the color in c code */
962 state: "default" 0.0;
963 //rel1 { relative: (9.5+1)/62 (40-2)/52; to: "draw";}
964 //rel2 { relative: (9.5+43+3)/62 (40+8)/52; to: "draw";}
965 rel1 { relative: (9.5)/62 (40-2)/52; to: "draw_normal";}
966 rel2 { relative: (9.5+43)/62 (40+6)/52; to: "draw_normal";}
967 color_class: "draw_indictor";
972 BUTTON_BG_NORMAL_OR_PRESS("bold_normal", (10+80+4+80+4+80+204), (9), (10+80+4+80+4+80+204+80), (9+64), "edit_btn_normal.png", "edit_btn_normal.png");
973 //BUTTON_BG_NORMAL_OR_PRESS_OR_ENABLE("text.bold.bg", (4+254+110), (8), (4+254+110+108), (8+82), "edit_btn_normal.png", "edit_btn_selected.png","edit_btn_enable_c.png");
974 BUTTON_BG_NORMAL_OR_PRESS_OR_ENABLE("text.bold.bg", (10+80+4+80+4+80+204), (9), (10+80+4+80+4+80+204+80), (9+64), "edit_btn_normal.png", "edit_btn_enable.png","edit_btn_press.png");
975 //BUTTON_NORMAL_OR_PRESS("text.bold", 23/108, 15/82, (108-23)/108, (82-15)/82,"icon_preview_tool_icon_04.png", "icon_preview_tool_icon_04_select.png", "text.bold.bg");
976 BUTTON_NORMAL_OR_PRESS("text.bold", 0.0, 0.0, 1.0, 1.0,"edit_btn_icon_bold_nor.png", "edit_btn_icon_bold_press.png", "text.bold.bg");
979 BUTTON_BG_NORMAL_OR_PRESS("italic_normal", (10+80+4+80+4+80+204+80+4), (9), (10+80+4+80+4+80+204+80+4+80), (9+64), "edit_btn_normal.png", "edit_btn_normal.png");
980 //BUTTON_BG_NORMAL_OR_PRESS_OR_ENABLE("text.italic.bg", (4+254+110+108+12), (8), (4+254+110+108+12+108), (8+82), "edit_btn_normal.png", "edit_btn_selected.png","edit_btn_enable_c.png");
981 BUTTON_BG_NORMAL_OR_PRESS_OR_ENABLE("text.italic.bg", (10+80+4+80+4+80+204+80+4), (9), (10+80+4+80+4+80+204+80+4+80), (9+64), "edit_btn_normal.png", "edit_btn_enable.png","edit_btn_press.png");
982 BUTTON_NORMAL_OR_PRESS("text.italic", 0.0, 0.0, 1.0, 1.0, "edit_btn_icon_Italic_nor.png", "edit_btn_icon_Italic_press.png", "text.italic.bg");
985 BUTTON_BG_NORMAL_OR_PRESS("underline_normal", (10+80+4+80+4+80+204+80+4+80+4), (9), (10+80+4+80+4+80+204+80+4+80+4+80), (9+64), "edit_btn_normal.png", "edit_btn_normal.png");
986 //BUTTON_BG_NORMAL_OR_PRESS_OR_ENABLE("text.underline.bg", (4+254+110+108+12+108+12), (8), (4+254+110+108+12+108+12+108), (8+82), "edit_btn_normal.png", "edit_btn_selected.png","edit_btn_enable_c.png");
987 BUTTON_BG_NORMAL_OR_PRESS_OR_ENABLE("text.underline.bg", (10+80+4+80+4+80+204+80+4+80+4), (9), (10+80+4+80+4+80+204+80+4+80+4+80), (9+64), "edit_btn_normal.png", "edit_btn_enable.png","edit_btn_press.png");
988 BUTTON_NORMAL_OR_PRESS("text.underline", 0.0, 0.0, 1.0, 1.0, "edit_btn_icon_underline_nor.png", "edit_btn_icon_underline_press.png", "text.underline.bg");
993 PROG_PART_DEFAULT_SHOW("keyboard.bg");
995 name: "select,keyboard.bg";
996 signal: "select,keyboard.bg";
997 source: "keyboard.bg";
998 action: STATE_SET "shown" 0.0;
999 target: "keyboard.bg";
1002 name: "unselect,keyboard.bg";
1003 signal: "unselect,keyboard.bg";
1004 source: "keyboard.bg";
1005 action: STATE_SET "default" 0.0;
1006 target: "keyboard.bg";
1009 name: "mouse_down.keyboard.bg";
1010 signal: "mouse_down,keyboard.bg";
1011 source: "keyboard.bg";
1012 action: STATE_SET "enable" 0.0;
1013 target: "keyboard.bg";
1016 name: "mouse_up.keyboard.bg";
1017 signal: "mouse_up,keyboard.bg";
1018 source: "keyboard.bg";
1019 action: STATE_SET "default" 0.0;
1020 target: "keyboard.bg";
1023 name: "mouse_down.keyboard";
1024 signal: "mouse,down,1";
1025 source: "keyboard.bg";
1026 action: STATE_SET "press" 0.0;
1030 name: "mouse_up.keyboard";
1031 signal: "mouse,up,1";
1032 source: "keyboard.bg";
1033 action: STATE_SET "default" 0.0;
1037 PROG_PART_DEFAULT_SHOW("font.bg");
1039 name: "mouse_down.font.bg";
1040 signal: "mouse_down,font.bg";
1042 action: STATE_SET "enable" 0.0;
1046 name: "mouse_up.font.bg";
1047 signal: "mouse_up,font.bg";
1049 action: STATE_SET "default" 0.0;
1053 name: "select,font.bg";
1054 signal: "select,font.bg";
1056 action: STATE_SET "shown" 0.0;
1060 name: "unselect,font.bg";
1061 signal: "unselect,font.bg";
1063 action: STATE_SET "default" 0.0;
1067 PROG_PART_DEFAULT_SHOW("draw.bg");
1069 name: "select,draw.bg";
1070 signal: "select,draw.bg";
1072 action: STATE_SET "shown" 0.0;
1076 name: "unselect,draw.bg";
1077 signal: "unselect,draw.bg";
1079 action: STATE_SET "default" 0.0;
1083 name: "mouse_down.draw.bg";
1084 signal: "mouse_down,draw.bg";
1086 action: STATE_SET "enable" 0.0;
1090 name: "mouse_up.draw.bg";
1091 signal: "mouse_up,draw.bg";
1093 action: STATE_SET "default" 0.0;
1097 name: "mouse_down.draw";
1098 signal: "mouse,down,1";
1100 action: STATE_SET "press" 0.0;
1104 name: "mouse_up.draw";
1105 signal: "mouse,up,1";
1107 action: STATE_SET "default" 0.0;
1111 PROG_PART_DEFAULT_PRESS("background");
1113 PROG_PART_DEFAULT_PRESS("keyboard_normal");
1114 PROG_PART_DEFAULT_PRESS("text.keyboard.bg");
1116 name: "select,text.keyboard.bg";
1117 signal: "select,text.keyboard.bg";
1118 source: "text.keyboard.bg";
1119 action: STATE_SET "shown" 0.0;
1120 target: "text.keyboard.bg";
1123 name: "unselect,text.keyboard.bg";
1124 signal: "unselect,text.keyboard.bg";
1125 source: "text.keyboard.bg";
1126 action: STATE_SET "default" 0.0;
1127 target: "text.keyboard.bg";
1130 name: "mouse_down.keyboard";
1131 signal: "mouse_down,keyboard";
1132 source: "text.keyboard.bg";
1133 action: STATE_SET "enable" 0.0;
1134 target: "text.keyboard.bg";
1137 name: "mouse_up.keyboard";
1138 signal: "mouse_up,keyboard";
1139 source: "text.keyboard.bg";
1140 action: STATE_SET "default" 0.0;
1141 target: "text.keyboard.bg";
1144 name: "landscape_mouse_down.keyboard";
1145 signal: "landscape_mouse_down,keyboard";
1146 source: "text.keyboard.bg";
1147 action: STATE_SET "landscape_enable" 0.0;
1148 target: "text.keyboard.bg";
1151 name: "landscape_mouse_up.keyboard";
1152 signal: "landscape_mouse_up,keyboard";
1153 source: "text.keyboard.bg";
1154 action: STATE_SET "landscape_default" 0.0;
1155 target: "text.keyboard.bg";
1158 name: "mouse_down.text_keyboard";
1159 signal: "mouse,down,1";
1160 source: "text.keyboard.bg";
1161 action: STATE_SET "press" 0.0;
1162 target: "text.keyboard";
1165 name: "mouse_up.text_keyboard";
1166 signal: "mouse,up,1";
1167 source: "text.keyboard.bg";
1168 action: STATE_SET "default" 0.0;
1169 target: "text.keyboard";
1172 PROG_PART_DEFAULT_PRESS("font_normal");
1173 PROG_PART_DEFAULT_PRESS("text.font.bg");
1175 name: "select,text.font.bg";
1176 signal: "select,text.font.bg";
1177 source: "text.font.bg";
1178 action: STATE_SET "shown" 0.0;
1179 target: "text.font.bg";
1182 name: "unselect,text.font.bg";
1183 signal: "unselect,text.font.bg";
1184 source: "text.font.bg";
1185 action: STATE_SET "default" 0.0;
1186 target: "text.font.bg";
1190 name: "mouse_down.font";
1191 signal: "mouse_down,font";
1192 source: "text.font.bg";
1193 action: STATE_SET "enable" 0.0;
1194 target: "text.font.bg";
1197 name: "mouse_up.font";
1198 signal: "mouse_up,font";
1199 source: "text.font.bg";
1200 action: STATE_SET "default" 0.0;
1201 target: "text.font.bg";
1204 name: "landscape_mouse_down.font";
1205 signal: "landscape_mouse_down,font";
1206 source: "text.font.bg";
1207 action: STATE_SET "landscape_enable" 0.0;
1208 target: "text.font.bg";
1211 name: "landscape_mouse_up.font";
1212 signal: "landscape_mouse_up,font";
1213 source: "text.font.bg";
1214 action: STATE_SET "landscape_default" 0.0;
1215 target: "text.font.bg";
1218 PROG_PART_DEFAULT_PRESS("draw_normal");
1219 PROG_PART_DEFAULT_PRESS("text.draw.bg");
1221 name: "select,text.draw.bg";
1222 signal: "select,text.draw.bg";
1223 source: "text.draw.bg";
1224 action: STATE_SET "shown" 0.0;
1225 target: "text.draw.bg";
1228 name: "unselect,text.draw.bg";
1229 signal: "unselect,text.draw.bg";
1230 source: "text.draw.bg";
1231 action: STATE_SET "default" 0.0;
1232 target: "text.draw.bg";
1236 name: "mouse_down.draw";
1237 signal: "mouse_down,draw";
1238 source: "text.draw.bg";
1239 action: STATE_SET "enable" 0.0;
1240 target: "text.draw.bg";
1243 name: "mouse_up.draw";
1244 signal: "mouse_up,draw";
1245 source: "text.draw.bg";
1246 action: STATE_SET "default" 0.0;
1247 target: "text.draw.bg";
1250 name: "landscape_mouse_down.draw";
1251 signal: "landscape_mouse_down,draw";
1252 source: "text.draw.bg";
1253 action: STATE_SET "landscape_enable" 0.0;
1254 target: "text.draw.bg";
1257 name: "landscape_mouse_up.draw";
1258 signal: "landscape_mouse_up,draw";
1259 source: "text.draw.bg";
1260 action: STATE_SET "landscape_default" 0.0;
1261 target: "text.draw.bg";
1265 name: "mouse_down.text_draw";
1266 signal: "mouse,down,1";
1267 source: "text.draw.bg";
1268 action: STATE_SET "press" 0.0;
1269 target: "text.draw";
1272 name: "mouse_up.text_draw";
1273 signal: "mouse,up,1";
1274 source: "text.draw.bg";
1275 action: STATE_SET "default" 0.0;
1276 target: "text.draw";
1279 PROG_PART_DEFAULT_PRESS("bold_normal");
1280 PROG_PART_DEFAULT_PRESS("text.bold.bg");
1282 name: "mouse_down.bold";
1283 signal: "mouse_down,bold";
1284 source: "text.bold.bg";
1285 action: STATE_SET "enable" 0.0;
1286 target: "text.bold.bg";
1289 name: "mouse_up.bold";
1290 signal: "mouse_up,bold";
1291 source: "text.bold.bg";
1292 action: STATE_SET "default" 0.0;
1293 target: "text.bold.bg";
1296 name: "landscape_mouse_down.bold";
1297 signal: "landscape_mouse_down,bold";
1298 source: "text.bold.bg";
1299 action: STATE_SET "landscape_enable" 0.0;
1300 target: "text.bold.bg";
1303 name: "landscape_mouse_up.bold";
1304 signal: "landscape_mouse_up,bold";
1305 source: "text.bold.bg";
1306 action: STATE_SET "landscape_default" 0.0;
1307 target: "text.bold.bg";
1310 name: "mouse_down.text_bold";
1311 signal: "mouse,down,1";
1312 source: "text.bold.bg";
1313 action: STATE_SET "press" 0.0;
1314 target: "text.bold";
1317 name: "mouse_up.text_bold";
1318 signal: "mouse,up,1";
1319 source: "text.bold.bg";
1320 action: STATE_SET "default" 0.0;
1321 target: "text.bold";
1323 PROG_PART_DEFAULT_PRESS("italic_normal");
1324 PROG_PART_DEFAULT_PRESS("text.italic.bg");
1327 name: "mouse_down.italic";
1328 signal: "mouse_down,italic";
1329 source: "text.italic.bg";
1330 action: STATE_SET "enable" 0.0;
1331 target: "text.italic.bg";
1334 name: "mouse_up.italic";
1335 signal: "mouse_up,italic";
1336 source: "text.italic.bg";
1337 action: STATE_SET "default" 0.0;
1338 target: "text.italic.bg";
1341 name: "landscape_mouse_down.italic";
1342 signal: "landscape_mouse_down,italic";
1343 source: "text.italic.bg";
1344 action: STATE_SET "landscape_enable" 0.0;
1345 target: "text.italic.bg";
1348 name: "landscape_mouse_up.italic";
1349 signal: "landscape_mouse_up,italic";
1350 source: "text.italic.bg";
1351 action: STATE_SET "landscape_default" 0.0;
1352 target: "text.italic.bg";
1356 name: "mouse_down.text_italic";
1357 signal: "mouse,down,1";
1358 source: "text.italic.bg";
1359 action: STATE_SET "press" 0.0;
1360 target: "text.italic";
1363 name: "mouse_up.text_italic";
1364 signal: "mouse,up,1";
1365 source: "text.italic.bg";
1366 action: STATE_SET "default" 0.0;
1367 target: "text.italic";
1370 PROG_PART_DEFAULT_PRESS("underline_normal");
1371 PROG_PART_DEFAULT_PRESS("text.underline.bg");
1373 name: "mouse_down.underline";
1374 signal: "mouse_down,underline";
1375 source: "text.underline.bg";
1376 action: STATE_SET "enable" 0.0;
1377 target: "text.underline.bg";
1380 name: "mouse_up.underline";
1381 signal: "mouse_up,underline";
1382 source: "text.underline.bg";
1383 action: STATE_SET "default" 0.0;
1384 target: "text.underline.bg";
1387 name: "landscape_mouse_down.underline";
1388 signal: "landscape_mouse_down,underline";
1389 source: "text.underline.bg";
1390 action: STATE_SET "landscape_enable" 0.0;
1391 target: "text.underline.bg";
1394 name: "landscape_mouse_up.underline";
1395 signal: "landscape_mouse_up,underline";
1396 source: "text.underline.bg";
1397 action: STATE_SET "landscape_default" 0.0;
1398 target: "text.underline.bg";
1401 name: "mouse_down.text_underline";
1402 signal: "mouse,down,1";
1403 source: "text.underline.bg";
1404 action: STATE_SET "press" 0.0;
1405 target: "text.underline";
1408 name: "mouse_up.text_underline";
1409 signal: "mouse,up,1";
1410 source: "text.underline.bg";
1411 action: STATE_SET "default" 0.0;
1412 target: "text.underline";
1415 //PROG_PART_DEFAULT_LANDSCAPE("font.bg");
1416 //PROG_PART_DEFAULT_LANDSCAPE("draw.bg");
1418 TOOLBAR_BUTTON_PROGRAM_SIGNAL_EMIT_1("keyboard.bg","keyboard.clicked");
1419 TOOLBAR_BUTTON_PROGRAM_SIGNAL_EMIT_1("font.bg","font.clicked");
1420 TOOLBAR_BUTTON_PROGRAM_SIGNAL_EMIT_1("draw.bg","draw.clicked");
1422 TOOLBAR_BUTTON_PROGRAM_SIGNAL_EMIT_1("text.keyboard.bg", "text.keyboard.clicked");
1423 TOOLBAR_BUTTON_PROGRAM_SIGNAL_EMIT_1("text.font.bg", "text.font.clicked");
1424 TOOLBAR_BUTTON_PROGRAM_SIGNAL_EMIT_1("text.draw.bg", "text.draw.clicked");
1426 TOOLBAR_BUTTON_PROGRAM_SIGNAL_EMIT_1("text.bold.bg", "text.bold.clicked");
1427 TOOLBAR_BUTTON_PROGRAM_SIGNAL_EMIT_1("text.italic.bg", "text.italic.clicked");
1428 TOOLBAR_BUTTON_PROGRAM_SIGNAL_EMIT_1("text.underline.bg", "text.underline.clicked");
1430 //TOOLBAR_BUTTON_PROGRAM_SIGNAL_EMIT_2("font.bg", "dropdown.fonttype.clicked", "dropdown.fonttype.unclicked");
1431 //TOOLBAR_BUTTON_PROGRAM_SIGNAL_EMIT_2("draw.bg", "draw.button.clicked", "draw.button.unclicked");
1436 name: "lockscreen.options.locktitle.colorselector";
1443 state: "default" 0.0;
1452 state: "default" 0.0;
1454 rel1 { relative: 0.2 0.108; to: "bg";}
1455 rel2 { relative: 0.8 0.108; to: "bg";}
1463 state: "default" 0.0;
1464 rel1 { relative: 0.0 1.5; to_x: "bg"; to_y:"rect";}
1465 rel2 { relative: 1.0 0.92; to: "bg";}
1471 name: "colorplane/rect";
1478 state: "default" 0.0;
1489 state: "default" 0.0;
1501 name: "colorplane_popup";
1508 state: "default" 0.0;
1514 name: "top_padding";
1518 state: "default" 0.0;
1530 name: "colorpalette";
1534 state: "default" 0.0;
1538 to_y: "top_padding";
1542 to_y: "top_padding";
1549 name: "colorpalette_bottom_padding";
1553 state: "default" 0.0;
1558 to_y: "colorpalette";
1563 to_y: "colorpalette";
1579 state: "default" 0.0;
1586 name: "top_padding";
1590 state: "default" 0.0;
1602 name: "colorpalette";
1606 state: "default" 0.0;
1610 to_y: "top_padding";
1615 to_y: "top_padding";
1624 name: "colorpalette_bottom_padding";
1628 state: "default" 0.0;
1633 to_y: "colorpalette";
1638 to_y: "colorpalette";
1646 name: "item/colorpalette";
1648 image: "00_color_picker_palette_bg.png" COMP;
1656 state: "default" 0.0;
1657 image.normal: "00_color_picker_palette_bg.png";
1658 image.border: 13 13 13 13;
1659 image.border_scale: 1;
1666 group { name: "custom_editfield";
1673 //color: 37 46 72 255;
1674 state: "default" 0.0;
1679 name: "top_left_padding";
1684 state: "default" 0.0;
1701 part { name: "bottom_right_padding";
1705 state: "default" 0.0;
1710 rel1 { relative: 1.0 1.0; to: "base"; }
1711 rel2 { relative: 1.0 1.0; to: "base"; offset: -50 -32;}
1715 part { name: "elm.swallow.content";
1719 state: "default" 0.0;
1722 rel1 { relative: 1.0 1.0; to: "top_left_padding"; }
1723 rel2 { relative: 0.0 0.0; to: "bottom_right_padding"; }
1731 name: "lockscreen.options.locktitle.toolbar1";
1738 state: "default" 0.0;
1743 name: "toolbar_button1";
1747 state: "default" 0.0;
1756 state: "default" 0.0;
1758 rel1 { relative: 1.0 0.0; to: "toolbar_button1";}
1759 rel2 { relative: 1.0 1.0; to: "bg";}