4 #define MAKE_PART_SHOW_PROGRAM(PARTNAME)\
6 name: PARTNAME".object.show";\
7 signal: "object.show";\
9 action: STATE_SET "show" 0.0;\
13 #define MAKE_PART_SHOW_TEXT_PROGRAM(PARTNAME)\
15 name: PARTNAME".text.show";\
16 signal: "object.show";\
18 action: STATE_SET "show" 0.0;\
22 name: PARTNAME".text.show.efect";\
23 signal: "object.show.effect";\
25 action: STATE_SET "show.effect" 0.0;\
30 image: "quick_icon_bg_01.png" COMP;
31 image: "quick_btn_close_press.png" COMP;
32 image: "quick_btn_close_dim.png" COMP;
33 image: "quick_btn_close_nor.png" COMP;
34 image: "quick_image_dimmed_port.png" COMP;
35 image: "quick_image_dimmed_land.png" COMP;
36 image: "quick_icon_bg_small.png" COMP;
37 image: "icon_press.png" COMP;
40 #define BOX_FONT_SHADOW_COLOR 0 0 0 191
41 #define BOX_FONT_OUTLINE_COLOR 0 0 0 191
42 #define BOX_FONT_NO_SHADOW_COLOR 0 0 0 0
43 #define BOX_FONT_NO_OUTLINE_COLOR 0 0 0 0
45 #define BOX_CONTENTS_FONT "Tizen:style=Medium"
46 #define BOX_CONTENTS_FONT_SIZE 32
47 #define BOX_CONTENTS_FONT_COLOR 248 246 239 255
49 #define BOX_INFO_FONT "Tizen:style=Regular"
50 #define BOX_INFO_FONT_SIZE 28
51 #define BOX_INFO_FONT_COLOR 248 246 239 127
53 #define BOX_INFO_SHORT_FONT "Tizen:style=Medium"
54 #define BOX_INFO_SHORT_FONT_SIZE 28
55 #define BOX_INFO_SHORT_FONT_COLOR 248 246 239 127
57 #define BOX_INFO_SUB_FONT "Tizen:style=Regular"
58 #define BOX_INFO_SUB_FONT_SIZE 20
59 #define BOX_INFO_SUB_FONT_COLOR 248 246 239 127
61 #define BOX_INFO_COUNT_FONT "Tizen:style=Medium"
62 #define BOX_INFO_COUNT_FONT_SIZE 46
63 #define BOX_INFO_COUNT_FONT_COLOR 248 246 239 255
65 #define TEXT_CLASS_TIZEN "tizen"
66 #define TEXT_EFFECT "OUTLINE_SHADOW"
70 name: "notibox_title";
71 base: "font=Tizen:style=Regular text_class=tizen font_size=38 color=#F8F6EF ellipsis=1.0 wrap=mixed";
75 name: "notibox_title_effect";
76 base: "font=Tizen:style=Regular text_class=tizen font_size=38 color=#F8F6EF ellipsis=1.0 wrap=mixed style=outline_shadow outline_color=#000000BF shadow_color=#000000BF";
80 name: "notibox_contents";
81 base: "font=Tizen:style=Medium text_class=tizen font_size=32 color=#F8F6EF ellipsis=1.0 linegap=-6 wrap=mixed";
85 name: "notibox_contents_effect";
86 base: "font=Tizen:style=Medium text_class=tizen font_size=32 color=#F8F6EF ellipsis=1.0 linegap=-6 wrap=mixed style=outline_shadow outline_color=#000000BF shadow_color=#000000BF";
91 base: "font=Tizen:style=Regular text_class=tizen font_size=28 color=#F8F6EF7F ellipsis=1.0 linegap=-6 wrap=mixed";
95 name: "notibox_info_effect";
96 base: "font=Tizen:style=Regular text_class=tizen font_size=28 color=#F8F6EF7F ellipsis=1.0 linegap=-6 wrap=mixed style=outline_shadow outline_color=#000000BF shadow_color=#000000BF";
100 name: "notibox_info_short";
101 base: "font=Tizen:style=Regular text_class=tizen font_size=28 color=#F8F6EF7F ellipsis=1.0 linegap=-6 wrap=mixed";
105 name: "notibox_info_short_effect";
106 base: "font=Tizen:style=Regular text_class=tizen font_size=28 color=#F8F6EF7F ellipsis=1.0 linegap=-6 wrap=mixed style=outline_shadow outline_color=#000000BF shadow_color=#000000BF";
110 name: "notibox_info_sub";
111 base: "font=Tizen:style=Regular text_class=tizen font_size=20 color=#F8F6EF7F ellipsis=1.0 linegap=-6 wrap=mixed";
115 name: "notibox_info_sub_effect";
116 base: "font=Tizen:style=Regular text_class=tizen font_size=20 color=#F8F6EF7F ellipsis=1.0 linegap=-6 wrap=mixed style=outline_shadow outline_color=#000000BF shadow_color=#000000BF";
121 name: "quickpanel/notibox/single_multi";
124 public g_is_close_button_disabled;
125 public g_is_show_dim_bg;
127 public init_variables() {
128 set_int(g_is_close_button_disabled, 0);
129 set_int(g_is_show_dim_bg, 0);
139 state: "default" 0.0;
145 state: "portrait" 0.0;
146 inherit: "default" 0.0;
149 state: "landscape" 0.0;
150 inherit: "default" 0.0;
154 //section layout for margin
161 state: "default" 0.0;
162 min: BOX_MARGIN_L_TEXT_H 0;
179 name: "margin.right";
183 state: "default" 0.0;
184 min: BOX_MARGIN_R_TEXT_H 0;
201 name: "margin.right.icon";
205 state: "default" 0.0;
216 color: 0 255 255 255;
223 name: "margin.top.icon";
227 state: "default" 0.0;
238 color: 255 0 255 255;
245 name: "margin.top.text";
249 state: "default" 0.0;
267 name: "margin.bottom";
271 state: "default" 0.0;
289 name: "margin.bottom.thin";
293 state: "default" 0.0;
311 //section layout for elements
312 //section layout for icon
314 name: "rect.icon.bg";
318 state: "default" 0.0;
319 min: BOX_ICON_SIZE_W BOX_ICON_SIZE_H;
320 max: BOX_ICON_SIZE_W BOX_ICON_SIZE_H;
323 to_x:"margin.right.icon";
324 to_y:"margin.top.icon";
328 to_x:"margin.right.icon";
329 to_y:"margin.top.icon";
345 state: "default" 0.0;
346 min: BOX_ICON_SIZE_W BOX_ICON_SIZE_H;
347 max: BOX_ICON_SIZE_W BOX_ICON_SIZE_H;
359 color: 205 205 255 255;
366 name: "rect.icon.sub.padding";
370 state: "default" 0.0;
383 color: 235 215 235 255;
390 name: "rect.icon.sub";
394 state: "default" 0.0;
395 min: BOX_ICON_SUB_SIZE_W BOX_ICON_SUB_SIZE_H;
396 max: BOX_ICON_SUB_SIZE_W BOX_ICON_SUB_SIZE_H;
399 to:"rect.icon.sub.padding";
403 to:"rect.icon.sub.padding";
408 color: 255 0 100 255;
415 //section layout for close button
417 name: "rect.button.close";
421 state: "default" 0.0;
433 color: 255 255 255 255;
440 //section layout for texts
442 name: "rect.text.title";
446 state: "default" 0.0;
452 to_y:"margin.top.text";
457 to_y:"margin.top.text";
462 color: 100 100 100 255;
468 state: "portrait" 0.0;
469 inherit: "default" 0.0;
472 state: "landscape" 0.0;
473 inherit: "default" 0.0;
480 name: "rect.text.info.2";
484 state: "default" 0.0;
485 min: 0 BOX_TEXT_INFO_HEIGHT;
489 to_y:"margin.bottom";
494 to_y:"margin.bottom";
499 color: 100 100 100 255;
506 name: "rect.text.info.sub.2";
510 state: "default" 0.0;
511 min: BOX_TEXT_SUB_WIDTH BOX_TEXT_INFO_HEIGHT;
512 max: BOX_TEXT_SUB_WIDTH BOX_TEXT_INFO_HEIGHT;
516 to_y:"margin.bottom";
521 to_y:"margin.bottom";
533 name: "rect.text.info.sub.2.padding";
537 state: "default" 0.0;
538 min: BOX_TEXT_SUB_PADDING_WIDTH 0;
541 to:"rect.text.info.sub.2";
545 to:"rect.text.info.sub.2";
557 name: "rect.text.info.2.short";
561 state: "default" 0.0;
564 to_y:"rect.text.info.2";
568 to_x:"rect.text.info.sub.2.padding";
569 to_y:"rect.text.info.2";
574 color: 102 103 104 255;
581 name: "rect.text.info.1";
585 state: "default" 0.0;
586 min: 0 BOX_TEXT_INFO_HEIGHT;
590 to_y:"rect.text.info.2";
595 to_y:"rect.text.info.2";
600 color: 100 150 100 255;
607 name: "rect.text.info.1.multiline";
611 state: "default" 0.0;
615 to_y:"rect.text.info.1";
620 to_y:"margin.bottom.thin";
625 color: 255 150 100 255;
632 name: "rect.text.info.sub.1";
636 state: "default" 0.0;
637 min: BOX_TEXT_SUB_WIDTH BOX_TEXT_INFO_HEIGHT;
638 max: BOX_TEXT_SUB_WIDTH BOX_TEXT_INFO_HEIGHT;
642 to_y:"rect.text.info.2";
647 to_y:"rect.text.info.2";
659 name: "rect.text.info.sub.1.padding";
663 state: "default" 0.0;
664 min: BOX_TEXT_SUB_PADDING_WIDTH 0;
667 to:"rect.text.info.sub.1";
671 to:"rect.text.info.sub.1";
683 name: "rect.text.info.1.short";
687 state: "default" 0.0;
690 to_y:"rect.text.info.1";
694 to_x:"rect.text.info.sub.1.padding";
695 to_y:"rect.text.info.1";
700 color: 102 103 104 255;
707 name: "rect.text.margin.contents";
711 state: "default" 0.0;
716 to_y:"rect.text.info.1";
721 to_y:"rect.text.info.1";
726 color: 255 255 255 255;
733 name: "rect.text.margin.count";
737 state: "default" 0.0;
742 to_y:"rect.text.info.1";
747 to_y:"rect.text.info.1";
752 color: 255 255 255 255;
759 name: "rect.text.contents";
763 state: "default" 0.0;
764 min: 0 BOX_TEXT_CONTENTS_HEIGHT;
768 to_y:"rect.text.margin.contents";
773 to_y:"rect.text.margin.contents";
778 color: 100 150 100 255;
785 name: "rect.text.contents.multiline";
789 state: "default" 0.0;
793 to_y:"rect.text.contents";
798 to_y:"margin.bottom.thin";
803 color: 100 150 100 255;
810 name: "rect.text.count";
814 state: "default" 0.0;
820 to_y:"rect.text.margin.count";
825 to_y:"rect.text.margin.count";
830 color: 190 190 190 255;
837 inherit: "default" 0.0;
841 inherit: "default" 0.0;
846 inherit: "default" 0.0;
851 inherit: "default" 0.0;
856 inherit: "default" 0.0;
861 name: "rect.text.count.padding";
865 state: "default" 0.0;
868 to:"rect.text.count";
872 to:"rect.text.count";
884 name: "rect.text.contents.short";
888 state: "default" 0.0;
889 min: 0 BOX_TEXT_CONTENTS_HEIGHT;
892 to_x:"rect.text.count.padding";
893 to_y:"rect.text.margin.contents";
898 to_y:"rect.text.margin.contents";
903 color: 40 255 100 255;
912 name: "object.icon.background";
916 state: "default" 0.0;
918 rel1 {to: "background";}
919 rel2 {to: "background";}
924 inherit: "default" 0.0;
929 name: "object.icon.bg";
933 state: "default" 0.0;
935 rel1 {to: "rect.icon.bg";}
936 rel2 {to: "rect.icon.bg";}
938 normal:"quick_icon_bg_01.png";
945 inherit: "default" 0.0;
950 inherit: "default" 0.0;
955 name: "object.icon.bg.dim";
959 state: "default" 0.0;
961 rel1 {to: "background";}
962 rel2 {to: "background";}
964 normal:"quick_image_dimmed_port.png";
971 state: "portrait" 0.0;
972 inherit: "default" 0.0;
974 normal:"quick_image_dimmed_port.png";
981 state: "landscape" 0.0;
982 inherit: "default" 0.0;
984 normal:"quick_image_dimmed_land.png";
996 state: "default" 0.0;
998 min: BOX_ICON_SIZE_W BOX_ICON_SIZE_H;
999 max: BOX_ICON_SIZE_W BOX_ICON_SIZE_H;
1000 rel1 {to: "rect.icon";}
1001 rel2 {to: "rect.icon";}
1006 inherit: "default" 0.0;
1011 name: "object.icon.press";
1015 state: "default" 0.0;
1017 min: BOX_ICON_SIZE_W BOX_ICON_SIZE_H;
1018 max: BOX_ICON_SIZE_W BOX_ICON_SIZE_H;
1019 rel1 {to: "rect.icon";}
1020 rel2 {to: "rect.icon";}
1022 normal:"icon_press.png";
1030 inherit: "default" 0.0;
1035 inherit: "default" 0.0;
1040 name: "object.icon.sub.bg";
1044 state: "default" 0.0;
1046 rel1 {to: "rect.icon.sub";}
1047 rel2 {to: "rect.icon.sub";}
1049 normal:"quick_icon_bg_small.png";
1057 inherit: "default" 0.0;
1062 inherit: "default" 0.0;
1067 name: BOX_PART_ICON_SUB;
1071 state: "default" 0.0;
1073 min: BOX_ICON_SUB_SIZE_W BOX_ICON_SUB_SIZE_H;
1074 max: BOX_ICON_SUB_SIZE_W BOX_ICON_SUB_SIZE_H;
1075 rel1 {to: "rect.icon.sub";}
1076 rel2 {to: "rect.icon.sub";}
1081 inherit: "default" 0.0;
1087 name: "object.text.title";
1092 state: "default" 0.0;
1093 rel1 {to: "rect.text.title";}
1094 rel2 {to: "rect.text.title";}
1096 style: "notibox_title";
1099 text: "some string of text to display";
1106 inherit: "default" 0.0;
1110 state: "show.effect" 0.0;
1111 inherit: "default" 0.0;
1113 style: "notibox_title_effect";
1120 name: "object.text.contents";
1123 effect: TEXT_EFFECT;
1125 state: "default" 0.0;
1126 rel1 {to: "rect.text.contents";}
1127 rel2 {to: "rect.text.contents";}
1128 color: BOX_CONTENTS_FONT_COLOR;
1130 font: BOX_CONTENTS_FONT;
1131 text_class: TEXT_CLASS_TIZEN;
1132 size: BOX_CONTENTS_FONT_SIZE;
1135 text: "some string of text to display";
1142 inherit: "default" 0.0;
1146 state: "show.effect" 0.0;
1147 inherit: "default" 0.0;
1148 color2: BOX_FONT_SHADOW_COLOR;
1149 color3: BOX_FONT_OUTLINE_COLOR;
1154 name: "object.text.contents.short";
1157 effect: TEXT_EFFECT;
1159 state: "default" 0.0;
1160 rel1 {to: "rect.text.contents.short";}
1161 rel2 {to: "rect.text.contents.short";}
1162 color: BOX_CONTENTS_FONT_COLOR;
1164 font: BOX_CONTENTS_FONT;
1165 text_class: TEXT_CLASS_TIZEN;
1166 size: BOX_CONTENTS_FONT_SIZE;
1173 inherit: "default" 0.0;
1177 state: "show.effect" 0.0;
1178 inherit: "default" 0.0;
1179 color2: BOX_FONT_SHADOW_COLOR;
1180 color3: BOX_FONT_OUTLINE_COLOR;
1185 name: "object.text.contents.multiline";
1190 state: "default" 0.0;
1194 to: "rect.text.contents.multiline";
1197 to: "rect.text.contents.multiline";
1200 style: "notibox_contents";
1208 inherit: "default" 0.0;
1212 state: "show.effect" 0.0;
1213 inherit: "default" 0.0;
1215 style: "notibox_contents_effect";
1221 name: "object.text.count";
1224 effect: TEXT_EFFECT;
1226 state: "default" 0.0;
1227 rel1 {to: "rect.text.count";}
1228 rel2 {to: "rect.text.count";}
1229 color: BOX_INFO_COUNT_FONT_COLOR;
1231 font: BOX_INFO_COUNT_FONT;
1232 text_class: TEXT_CLASS_TIZEN;
1233 size: BOX_INFO_COUNT_FONT_SIZE;
1243 inherit: "default" 0.0;
1247 state: "show.effect" 0.0;
1248 inherit: "default" 0.0;
1249 color2: BOX_FONT_SHADOW_COLOR;
1250 color3: BOX_FONT_OUTLINE_COLOR;
1256 name: "object.text.info.1";
1259 effect: TEXT_EFFECT;
1261 state: "default" 0.0;
1262 rel1 {to: "rect.text.info.1";}
1263 rel2 {to: "rect.text.info.1";}
1264 color: BOX_INFO_FONT_COLOR;
1266 font: BOX_INFO_FONT;
1267 text_class: TEXT_CLASS_TIZEN;
1268 size: BOX_INFO_FONT_SIZE;
1271 text: "some string of text to display";
1278 inherit: "default" 0.0;
1282 state: "show.effect" 0.0;
1283 inherit: "default" 0.0;
1284 color2: BOX_FONT_SHADOW_COLOR;
1285 color3: BOX_FONT_OUTLINE_COLOR;
1290 name: "object.text.info.1.short";
1293 effect: TEXT_EFFECT;
1295 state: "default" 0.0;
1296 rel1 {to: "rect.text.info.1.short";}
1297 rel2 {to: "rect.text.info.1.short";}
1298 color: BOX_INFO_SHORT_FONT_COLOR;
1300 font: BOX_INFO_SHORT_FONT;
1301 text_class: TEXT_CLASS_TIZEN;
1302 size: BOX_INFO_SHORT_FONT_SIZE;
1309 inherit: "default" 0.0;
1313 state: "show.effect" 0.0;
1314 inherit: "default" 0.0;
1315 color2: BOX_FONT_SHADOW_COLOR;
1316 color3: BOX_FONT_OUTLINE_COLOR;
1321 name: "object.text.info.1.multiline";
1326 state: "default" 0.0;
1330 to: "rect.text.info.1.multiline";
1333 to: "rect.text.info.1.multiline";
1336 style: "notibox_info";
1344 inherit: "default" 0.0;
1348 state: "show.effect" 0.0;
1349 inherit: "default" 0.0;
1351 style: "notibox_info_effect";
1357 name: "object.text.info.sub.1";
1360 effect: TEXT_EFFECT;
1362 state: "default" 0.0;
1363 rel1 {to: "rect.text.info.sub.1";}
1364 rel2 {to: "rect.text.info.sub.1";}
1365 color: BOX_INFO_SUB_FONT_COLOR;
1367 font: BOX_INFO_SUB_FONT;
1368 text_class: TEXT_CLASS_TIZEN;
1369 size: BOX_INFO_SUB_FONT_SIZE;
1372 text: "some string of text to display";
1379 inherit: "default" 0.0;
1383 state: "show.effect" 0.0;
1384 inherit: "default" 0.0;
1385 color2: BOX_FONT_SHADOW_COLOR;
1386 color3: BOX_FONT_OUTLINE_COLOR;
1392 name: "object.text.info.2";
1395 effect: TEXT_EFFECT;
1397 state: "default" 0.0;
1398 rel1 {to: "rect.text.info.2";}
1399 rel2 {to: "rect.text.info.2";}
1400 color: BOX_INFO_FONT_COLOR;
1402 font: BOX_INFO_FONT;
1403 text_class: TEXT_CLASS_TIZEN;
1404 size: BOX_INFO_FONT_SIZE;
1407 text: "some string of text to display";
1414 inherit: "default" 0.0;
1418 state: "show.effect" 0.0;
1419 inherit: "default" 0.0;
1420 color2: BOX_FONT_SHADOW_COLOR;
1421 color3: BOX_FONT_OUTLINE_COLOR;
1426 name: "object.text.info.2.short";
1429 effect: TEXT_EFFECT;
1431 state: "default" 0.0;
1432 rel1 {to: "rect.text.info.2.short";}
1433 rel2 {to: "rect.text.info.2.short";}
1434 color: BOX_INFO_SHORT_FONT_COLOR;
1436 font: BOX_INFO_SHORT_FONT;
1437 text_class: TEXT_CLASS_TIZEN;
1438 size: BOX_INFO_SHORT_FONT_SIZE;
1445 inherit: "default" 0.0;
1449 state: "show.effect" 0.0;
1450 inherit: "default" 0.0;
1451 color2: BOX_FONT_SHADOW_COLOR;
1452 color3: BOX_FONT_OUTLINE_COLOR;
1457 name: "object.text.info.sub.2";
1460 effect: TEXT_EFFECT;
1462 state: "default" 0.0;
1463 rel1 {to: "rect.text.info.sub.2";}
1464 rel2 {to: "rect.text.info.sub.2";}
1465 color: BOX_INFO_SUB_FONT_COLOR;
1467 font: BOX_INFO_SUB_FONT;
1468 text_class: TEXT_CLASS_TIZEN;
1469 size: BOX_INFO_SUB_FONT_SIZE;
1472 text: "some string of text to display";
1479 inherit: "default" 0.0;
1483 state: "show.effect" 0.0;
1484 inherit: "default" 0.0;
1485 color2: BOX_FONT_SHADOW_COLOR;
1486 color3: BOX_FONT_OUTLINE_COLOR;
1491 name: "object.layer.touch.background";
1497 state: "default" 0.0;
1498 rel1 {to: "background";}
1499 rel2 {to: "background";}
1504 name: "object.layer.touch.button.1";
1510 state: "default" 0.0;
1513 to_y: "object.button.close";
1516 rel2 {to: "rect.icon";}
1521 inherit: "default" 0.0;
1526 inherit: "default" 0.0;
1531 name: "object.button.close";
1535 state: "default" 0.0;
1538 to: "rect.button.close";
1542 to: "rect.button.close";
1550 name: "object.image.button.close";
1555 state: "default" 0.0;
1556 rel1 {to: "rect.button.close";}
1557 rel2 {to: "rect.button.close";}
1559 normal:"quick_btn_close_nor.png";
1566 state: "normal" 0.0;
1567 inherit: "default" 0.0;
1570 state: "pressed" 0.0;
1571 inherit: "default" 0.0;
1573 normal:"quick_btn_close_press.png";
1580 state: "disabled" 0.0;
1581 inherit: "default" 0.0;
1583 normal:"quick_btn_close_dim.png";
1591 name: "accessibility";
1597 state: "default" 0.0;
1604 color: QP_ACCESSIBILITY_TEST_COLOR;
1609 name: "accessibility.closebutton";
1615 state: "default" 0.0;
1617 to: "rect.button.close";
1620 to: "rect.button.close";
1622 color: QP_ACCESSIBILITY_TEST_COLOR;
1630 name: "init.layout";
1639 name: "box.show.dim";
1640 signal: "box.show.dim";
1643 set_int(g_is_show_dim_bg, 1);
1647 name: "box.hide.dim";
1648 signal: "box.hide.dim";
1651 set_int(g_is_show_dim_bg, 0);
1655 name: "box.portrait";
1656 signal: "box.portrait";
1658 action: STATE_SET "portrait" 0.0;
1659 target: "background";
1660 target: "rect.text.title";
1661 after: "box.portrait.custom";
1664 name: "box.landscape";
1665 signal: "box.landscape";
1667 action: STATE_SET "landscape" 0.0;
1668 target: "background";
1669 target: "rect.text.title";
1670 after: "box.landscape.custom";
1673 name: "box.portrait.custom";
1676 if (get_int(g_is_show_dim_bg) == 1) {
1677 set_state(PART:"object.icon.bg.dim", "portrait", 0.0);
1682 name: "box.landscape.custom";
1685 if (get_int(g_is_show_dim_bg) == 1) {
1686 set_state(PART:"object.icon.bg.dim", "landscape", 0.0);
1691 name: "box.touch.down";
1692 signal: "mouse,clicked,1";
1693 source: "object.layer.touch.background";
1694 action: SIGNAL_EMIT "selected" "edje";
1697 name: "box.button.1.touch.clicked";
1698 signal: "mouse,clicked,1";
1699 source: "object.layer.touch.button.1";
1700 action: SIGNAL_EMIT "button_1" "edje";
1703 name: "box.button.1.touch.down";
1704 signal: "mouse,down,1";
1705 source: "object.layer.touch.button.1";
1706 action: STATE_SET "show" 0.0;
1707 target: "object.icon.press";
1710 name: "box.button.1.touch.up";
1711 signal: "mouse,up,1";
1712 source: "object.layer.touch.button.1";
1713 action: STATE_SET "hide" 0.0;
1714 target: "object.icon.press";
1717 name: "box.button.close.1";
1718 signal: "mouse,down,1";
1719 source: "object.button.close";
1721 if (get_int(g_is_close_button_disabled) == 0) {
1722 set_state(PART:"object.image.button.close", "pressed", 0.0);
1727 name: "box.button.close.2";
1728 signal: "mouse,up,1";
1729 source: "object.button.close";
1731 set_state(PART:"object.image.button.close", "normal", 0.0);
1735 name: "box.button.close.3";
1736 signal: "mouse,clicked,1";
1737 source: "object.button.close";
1739 if (get_int(g_is_close_button_disabled) == 0) {
1740 set_state(PART:"object.image.button.close", "normal", 0.0);
1741 emit("deleted", "edje");
1746 name: "box.button.close.4";
1748 source: "object.button.close";
1750 set_state(PART:"object.image.button.close", "disabled", 0.0);
1751 set_int(g_is_close_button_disabled, 1);
1755 name: "box.show.icon.bg";
1756 signal: "box.show.icon.bg";
1758 action: STATE_SET "show" 0.0;
1759 target: "object.icon.bg";
1760 target: "object.layer.touch.button.1";
1763 name: "box.hide.icon.bg";
1764 signal: "box.hide.icon.bg";
1766 action: STATE_SET "hide" 0.0;
1767 target: "object.icon.bg";
1768 target: "object.layer.touch.button.1";
1771 name: "box.show.icon.sub.bg";
1772 signal: "box.show.sub.bg";
1774 action: STATE_SET "show" 0.0;
1775 target: "object.icon.sub.bg";
1778 name: "box.hide.icon.sub.bg";
1779 signal: "box.hide.sub.bg";
1781 action: STATE_SET "hide" 0.0;
1782 target: "object.icon.sub.bg";
1785 name: "box.count.1";
1786 signal: "box.count.1";
1788 action: STATE_SET "count1" 0.0;
1789 target: "rect.text.count";
1792 name: "box.count.2";
1793 signal: "box.count.2";
1795 action: STATE_SET "count2" 0.0;
1796 target: "rect.text.count";
1799 name: "box.count.3";
1800 signal: "box.count.3";
1802 action: STATE_SET "count3" 0.0;
1803 target: "rect.text.count";
1806 name: "box.count.4";
1807 signal: "box.count.4";
1809 action: STATE_SET "count4" 0.0;
1810 target: "rect.text.count";
1813 name: "box.count.5";
1814 signal: "box.count.5";
1816 action: STATE_SET "count5" 0.0;
1817 target: "rect.text.count";
1819 MAKE_PART_SHOW_PROGRAM("object.icon.background")
1820 MAKE_PART_SHOW_PROGRAM("object.icon")
1821 MAKE_PART_SHOW_PROGRAM("object.icon.sub")
1822 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.title")
1823 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.contents")
1824 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.contents.short")
1825 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.contents.multiline")
1826 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.count")
1827 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.info.1")
1828 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.info.1.short")
1829 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.info.1.multiline")
1830 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.info.sub.1")
1831 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.info.2")
1832 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.info.2.short")
1833 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.info.sub.2")
1839 name: "quickpanel/notibox/thumbnail";
1842 public g_is_close_button_disabled;
1843 public g_is_show_dim_bg;
1845 public init_variables() {
1846 set_int(g_is_close_button_disabled, 0);
1847 set_int(g_is_show_dim_bg, 0);
1857 state: "default" 0.0;
1858 min: BOX_WIDTH_P BOX_HEIGHT_P;
1859 color: BOX_COLOR_BG;
1863 state: "portrait" 0.0;
1864 inherit: "default" 0.0;
1867 state: "landscape" 0.0;
1868 inherit: "default" 0.0;
1869 min: BOX_WIDTH_L BOX_HEIGHT_L;
1873 //section layout for margin
1876 name: "margin.left";
1880 state: "default" 0.0;
1881 min: BOX_MARGIN_L_TEXT_H 0;
1897 name: "margin.right";
1901 state: "default" 0.0;
1902 min: BOX_MARGIN_R_TEXT_H 0;
1918 name: "margin.left.thumnail";
1922 state: "default" 0.0;
1938 state: "portrait" 0.0;
1939 inherit: "default" 0.0;
1942 state: "landscape" 0.0;
1943 inherit: "default" 0.0;
1948 name: "margin.right.thumnail";
1952 state: "default" 0.0;
1968 state: "portrait" 0.0;
1969 inherit: "default" 0.0;
1972 state: "landscape" 0.0;
1973 inherit: "default" 0.0;
1978 name: "margin.right.icon";
1982 state: "default" 0.0;
1992 color: 0 255 255 255;
1999 name: "margin.top.icon";
2003 state: "default" 0.0;
2013 color: 255 0 255 255;
2020 name: "margin.top.text";
2024 state: "default" 0.0;
2041 name: "margin.bottom";
2045 state: "default" 0.0;
2062 //section layout for elements
2063 //section layout for icon
2065 name: "rect.icon.bg";
2069 state: "default" 0.0;
2070 min: BOX_ICON_SIZE_W BOX_ICON_SIZE_H;
2071 max: BOX_ICON_SIZE_W BOX_ICON_SIZE_H;
2073 to_x:"margin.right.icon";
2074 to_y:"margin.top.icon";
2078 to_x:"margin.right.icon";
2079 to_y:"margin.top.icon";
2095 state: "default" 0.0;
2096 min: BOX_ICON_SIZE_W BOX_ICON_SIZE_H;
2097 max: BOX_ICON_SIZE_W BOX_ICON_SIZE_H;
2108 color: 205 205 255 255;
2115 name: "rect.icon.sub.padding";
2119 state: "default" 0.0;
2131 color: 235 215 235 255;
2138 name: "rect.icon.sub";
2142 state: "default" 0.0;
2143 min: BOX_ICON_SUB_SIZE_W BOX_ICON_SUB_SIZE_H;
2144 max: BOX_ICON_SUB_SIZE_W BOX_ICON_SUB_SIZE_H;
2146 to:"rect.icon.sub.padding";
2150 to:"rect.icon.sub.padding";
2155 color: 255 0 100 255;
2162 //section layout for close button
2164 name: "rect.button.close";
2168 state: "default" 0.0;
2178 color: 255 255 255 255;
2185 //section layout for texts
2187 name: "rect.text.title";
2191 state: "default" 0.0;
2197 to_y:"margin.top.text";
2201 to_x:"rect.icon.bg";
2202 to_y:"margin.top.text";
2207 color: 100 100 100 255;
2213 state: "portrait" 0.0;
2214 inherit: "default" 0.0;
2217 state: "landscape" 0.0;
2218 inherit: "default" 0.0;
2226 name: "rect.text.margin.contents";
2230 state: "default" 0.0;
2234 to_y:"rect.thumbnail.list.1";
2238 to_x:"margin.right";
2239 to_y:"rect.thumbnail.list.1";
2244 color: 255 255 255 255;
2251 name: "rect.text.contents";
2255 state: "default" 0.0;
2256 min: 0 BOX_TEXT_CONTENTS_HEIGHT;
2259 to_y:"rect.text.margin.contents";
2263 to_x:"margin.right";
2264 to_y:"rect.text.margin.contents";
2269 color: 100 150 100 255;
2276 name: "rect.text.count";
2280 state: "default" 0.0;
2284 to_y:"rect.text.margin.contents";
2289 to_y:"rect.text.margin.contents";
2294 color: 190 190 190 255;
2301 name: "rect.text.count.padding";
2305 state: "default" 0.0;
2308 to:"rect.text.count";
2312 to:"rect.text.count";
2324 name: "rect.text.contents.short";
2328 state: "default" 0.0;
2329 min: 0 BOX_TEXT_CONTENTS_HEIGHT;
2331 to_x:"rect.text.count.padding";
2332 to_y:"rect.text.margin.contents";
2336 to_x:"margin.right";
2337 to_y:"rect.text.margin.contents";
2342 color: 40 255 100 255;
2349 //section layout for thumbnail
2351 name: "rect.thumbnail.list.1";
2355 state: "default" 0.0;
2358 to_x:"margin.left.thumnail";
2359 to_y:"margin.bottom";
2363 to_x:"margin.left.thumnail";
2364 to_y:"margin.bottom";
2376 name: "rect.thumbnail.list.1.padding";
2380 state: "default" 0.0;
2383 to:"rect.thumbnail.list.1";
2387 to:"rect.thumbnail.list.1";
2398 state: "portrait" 0.0;
2399 inherit: "default" 0.0;
2402 state: "landscape" 0.0;
2403 inherit: "default" 0.0;
2408 name: "rect.thumbnail.list.2";
2412 state: "default" 0.0;
2415 to_x:"rect.thumbnail.list.1.padding";
2416 to_y:"margin.bottom";
2420 to_x:"rect.thumbnail.list.1.padding";
2421 to_y:"margin.bottom";
2433 name: "rect.thumbnail.list.2.padding";
2437 state: "default" 0.0;
2440 to:"rect.thumbnail.list.2";
2444 to:"rect.thumbnail.list.2";
2455 state: "portrait" 0.0;
2456 inherit: "default" 0.0;
2459 state: "landscape" 0.0;
2460 inherit: "default" 0.0;
2465 name: "rect.thumbnail.list.3";
2469 state: "default" 0.0;
2472 to_x:"rect.thumbnail.list.2.padding";
2473 to_y:"margin.bottom";
2477 to_x:"rect.thumbnail.list.2.padding";
2478 to_y:"margin.bottom";
2490 name: "rect.thumbnail.list.3.padding";
2494 state: "default" 0.0;
2497 to:"rect.thumbnail.list.3";
2501 to:"rect.thumbnail.list.3";
2512 state: "portrait" 0.0;
2513 inherit: "default" 0.0;
2516 state: "landscape" 0.0;
2517 inherit: "default" 0.0;
2522 name: "rect.thumbnail.list.4";
2526 state: "default" 0.0;
2529 to_x:"rect.thumbnail.list.3.padding";
2530 to_y:"margin.bottom";
2534 to_x:"rect.thumbnail.list.3.padding";
2535 to_y:"margin.bottom";
2547 name: "rect.thumbnail.list.4.padding";
2551 state: "default" 0.0;
2554 to:"rect.thumbnail.list.4";
2558 to:"rect.thumbnail.list.4";
2569 state: "portrait" 0.0;
2570 inherit: "default" 0.0;
2573 state: "landscape" 0.0;
2574 inherit: "default" 0.0;
2579 name: "rect.thumbnail.list.5";
2583 state: "default" 0.0;
2586 to_x:"rect.thumbnail.list.4.padding";
2587 to_y:"margin.bottom";
2591 to_x:"rect.thumbnail.list.4.padding";
2592 to_y:"margin.bottom";
2604 state: "portrait" 0.0;
2605 inherit: "default" 0.0;
2608 state: "landscape" 0.0;
2609 inherit: "default" 0.0;
2615 name: "object.icon.background";
2619 state: "default" 0.0;
2621 rel1 {to: "background";}
2622 rel2 {to: "background";}
2627 inherit: "default" 0.0;
2632 name: "object.icon.bg";
2636 state: "default" 0.0;
2638 rel1 {to: "rect.icon.bg";}
2639 rel2 {to: "rect.icon.bg";}
2641 normal:"quick_icon_bg_01.png";
2648 inherit: "default" 0.0;
2653 inherit: "default" 0.0;
2658 name: "object.icon.bg.dim";
2662 state: "default" 0.0;
2664 rel1 {to: "background";}
2665 rel2 {to: "background";}
2667 normal:"quick_image_dimmed_port.png";
2674 state: "portrait" 0.0;
2675 inherit: "default" 0.0;
2677 normal:"quick_image_dimmed_port.png";
2684 state: "landscape" 0.0;
2685 inherit: "default" 0.0;
2687 normal:"quick_image_dimmed_land.png";
2695 name: BOX_PART_ICON;
2699 state: "default" 0.0;
2701 min: BOX_ICON_SIZE_W BOX_ICON_SIZE_H;
2702 max: BOX_ICON_SIZE_W BOX_ICON_SIZE_H;
2703 rel1 {to: "rect.icon";}
2704 rel2 {to: "rect.icon";}
2709 inherit: "default" 0.0;
2714 name: "object.icon.press";
2718 state: "default" 0.0;
2720 min: BOX_ICON_SIZE_W BOX_ICON_SIZE_H;
2721 max: BOX_ICON_SIZE_W BOX_ICON_SIZE_H;
2722 rel1 {to: "rect.icon";}
2723 rel2 {to: "rect.icon";}
2725 normal:"icon_press.png";
2733 inherit: "default" 0.0;
2738 inherit: "default" 0.0;
2743 name: "object.icon.sub.bg";
2747 state: "default" 0.0;
2749 rel1 {to: "rect.icon.sub";}
2750 rel2 {to: "rect.icon.sub";}
2752 normal:"quick_icon_bg_small.png";
2760 inherit: "default" 0.0;
2765 inherit: "default" 0.0;
2770 name: BOX_PART_ICON_SUB;
2774 state: "default" 0.0;
2776 min: BOX_ICON_SUB_SIZE_W BOX_ICON_SUB_SIZE_H;
2777 max: BOX_ICON_SUB_SIZE_W BOX_ICON_SUB_SIZE_H;
2778 rel1 {to: "rect.icon.sub";}
2779 rel2 {to: "rect.icon.sub";}
2784 inherit: "default" 0.0;
2791 name: "object.thumbnail.list.1";
2795 state: "default" 0.0;
2797 rel1 {to: "rect.thumbnail.list.1";}
2798 rel2 {to: "rect.thumbnail.list.1";}
2803 inherit: "default" 0.0;
2808 name: "object.thumbnail.list.2";
2812 state: "default" 0.0;
2814 rel1 {to: "rect.thumbnail.list.2";}
2815 rel2 {to: "rect.thumbnail.list.2";}
2820 inherit: "default" 0.0;
2825 name: "object.thumbnail.list.3";
2829 state: "default" 0.0;
2831 rel1 {to: "rect.thumbnail.list.3";}
2832 rel2 {to: "rect.thumbnail.list.3";}
2837 inherit: "default" 0.0;
2842 name: "object.thumbnail.list.4";
2846 state: "default" 0.0;
2848 rel1 {to: "rect.thumbnail.list.4";}
2849 rel2 {to: "rect.thumbnail.list.4";}
2854 inherit: "default" 0.0;
2859 name: "object.thumbnail.list.5";
2863 state: "default" 0.0;
2865 rel1 {to: "rect.thumbnail.list.5";}
2866 rel2 {to: "rect.thumbnail.list.5";}
2870 state: "portrait" 0.0;
2871 inherit: "default" 0.0;
2874 state: "landscape" 0.0;
2875 inherit: "default" 0.0;
2881 name: "object.text.title";
2886 state: "default" 0.0;
2887 rel1 {to: "rect.text.title";}
2888 rel2 {to: "rect.text.title";}
2890 style: "notibox_title";
2893 text: "some string of text to display";
2900 inherit: "default" 0.0;
2904 state: "show.effect" 0.0;
2905 inherit: "default" 0.0;
2907 style: "notibox_title_effect";
2914 name: "object.text.contents";
2917 effect: TEXT_EFFECT;
2919 state: "default" 0.0;
2920 rel1 {to: "rect.text.contents";}
2921 rel2 {to: "rect.text.contents";}
2922 color: BOX_CONTENTS_FONT_COLOR;
2924 font: BOX_CONTENTS_FONT;
2925 text_class: TEXT_CLASS_TIZEN;
2926 size: BOX_CONTENTS_FONT_SIZE;
2929 text: "some string of text to display";
2936 inherit: "default" 0.0;
2940 state: "show.effect" 0.0;
2941 inherit: "default" 0.0;
2942 color2: BOX_FONT_SHADOW_COLOR;
2943 color3: BOX_FONT_OUTLINE_COLOR;
2948 name: "object.text.contents.short";
2951 effect: TEXT_EFFECT;
2953 state: "default" 0.0;
2954 rel1 {to: "rect.text.contents.short";}
2955 rel2 {to: "rect.text.contents.short";}
2956 color: BOX_CONTENTS_FONT_COLOR;
2958 font: BOX_CONTENTS_FONT;
2959 text_class: TEXT_CLASS_TIZEN;
2960 size: BOX_CONTENTS_FONT_SIZE;
2967 inherit: "default" 0.0;
2971 state: "show.effect" 0.0;
2972 inherit: "default" 0.0;
2973 color2: BOX_FONT_SHADOW_COLOR;
2974 color3: BOX_FONT_OUTLINE_COLOR;
2980 name: "object.text.count";
2983 effect: TEXT_EFFECT;
2985 state: "default" 0.0;
2986 rel1 {to: "rect.text.count";}
2987 rel2 {to: "rect.text.count";}
2988 color: BOX_INFO_COUNT_FONT_COLOR;
2990 font: BOX_INFO_COUNT_FONT;
2991 text_class: TEXT_CLASS_TIZEN;
2992 size: BOX_INFO_COUNT_FONT_SIZE;
3002 inherit: "default" 0.0;
3006 state: "show.effect" 0.0;
3007 inherit: "default" 0.0;
3008 color2: BOX_FONT_SHADOW_COLOR;
3009 color3: BOX_FONT_OUTLINE_COLOR;
3014 name: "object.layer.touch.background";
3020 state: "default" 0.0;
3021 rel1 {to: "background";}
3022 rel2 {to: "background";}
3027 name: "object.layer.touch.button.1";
3033 state: "default" 0.0;
3036 to_y: "object.button.close";
3039 rel2 {to: "rect.icon";}
3044 inherit: "default" 0.0;
3049 inherit: "default" 0.0;
3054 name: "object.button.close";
3058 state: "default" 0.0;
3061 to: "rect.button.close";
3065 to: "rect.button.close";
3073 name: "object.image.button.close";
3078 state: "default" 0.0;
3079 rel1 {to: "rect.button.close";}
3080 rel2 {to: "rect.button.close";}
3082 normal:"quick_btn_close_nor.png";
3089 state: "normal" 0.0;
3090 inherit: "default" 0.0;
3093 state: "pressed" 0.0;
3094 inherit: "default" 0.0;
3096 normal:"quick_btn_close_press.png";
3103 state: "disabled" 0.0;
3104 inherit: "default" 0.0;
3106 normal:"quick_btn_close_dim.png";
3114 name: "accessibility";
3120 state: "default" 0.0;
3127 color: QP_ACCESSIBILITY_TEST_COLOR;
3132 name: "accessibility.closebutton";
3138 state: "default" 0.0;
3140 to: "rect.button.close";
3143 to: "rect.button.close";
3145 color: QP_ACCESSIBILITY_TEST_COLOR;
3153 name: "init.layout";
3162 name: "box.show.dim";
3163 signal: "box.show.dim";
3166 set_int(g_is_show_dim_bg, 1);
3170 name: "box.hide.dim";
3171 signal: "box.hide.dim";
3174 set_int(g_is_show_dim_bg, 0);
3178 name: "box.portrait";
3179 signal: "box.portrait";
3181 action: STATE_SET "portrait" 0.0;
3182 target: "background";
3183 target: "margin.left.thumnail";
3184 target: "margin.right.thumnail";
3185 target: "rect.text.title";
3186 target: "rect.thumbnail.list.1.padding";
3187 target: "rect.thumbnail.list.2.padding";
3188 target: "rect.thumbnail.list.3.padding";
3189 target: "rect.thumbnail.list.4.padding";
3190 target: "rect.thumbnail.list.5";
3191 target: "object.thumbnail.list.5";
3192 after: "box.portrait.custom";
3195 name: "box.landscape";
3196 signal: "box.landscape";
3198 action: STATE_SET "landscape" 0.0;
3199 target: "background";
3200 target: "margin.left.thumnail";
3201 target: "margin.right.thumnail";
3202 target: "rect.text.title";
3203 target: "rect.thumbnail.list.1.padding";
3204 target: "rect.thumbnail.list.2.padding";
3205 target: "rect.thumbnail.list.3.padding";
3206 target: "rect.thumbnail.list.4.padding";
3207 target: "rect.thumbnail.list.5";
3208 target: "object.thumbnail.list.5";
3209 after: "box.landscape.custom";
3212 name: "box.portrait.custom";
3215 if (get_int(g_is_show_dim_bg) == 1) {
3216 set_state(PART:"object.icon.bg.dim", "portrait", 0.0);
3221 name: "box.landscape.custom";
3224 if (get_int(g_is_show_dim_bg) == 1) {
3225 set_state(PART:"object.icon.bg.dim", "landscape", 0.0);
3230 name: "box.touch.down";
3231 signal: "mouse,clicked,1";
3232 source: "object.layer.touch.background";
3233 action: SIGNAL_EMIT "selected" "edje";
3236 name: "box.button.1.touch.clicked";
3237 signal: "mouse,clicked,1";
3238 source: "object.layer.touch.button.1";
3239 action: SIGNAL_EMIT "button_1" "edje";
3242 name: "box.button.1.touch.down";
3243 signal: "mouse,down,1";
3244 source: "object.layer.touch.button.1";
3245 action: STATE_SET "show" 0.0;
3246 target: "object.icon.press";
3249 name: "box.button.1.touch.up";
3250 signal: "mouse,up,1";
3251 source: "object.layer.touch.button.1";
3252 action: STATE_SET "hide" 0.0;
3253 target: "object.icon.press";
3256 name: "box.button.close.1";
3257 signal: "mouse,down,1";
3258 source: "object.button.close";
3260 if (get_int(g_is_close_button_disabled) == 0) {
3261 set_state(PART:"object.image.button.close", "pressed", 0.0);
3266 name: "box.button.close.2";
3267 signal: "mouse,up,1";
3268 source: "object.button.close";
3270 set_state(PART:"object.image.button.close", "normal", 0.0);
3274 name: "box.button.close.3";
3275 signal: "mouse,clicked,1";
3276 source: "object.button.close";
3278 if (get_int(g_is_close_button_disabled) == 0) {
3279 set_state(PART:"object.image.button.close", "normal", 0.0);
3280 emit("deleted", "edje");
3285 name: "box.button.close.4";
3287 source: "object.button.close";
3289 set_state(PART:"object.image.button.close", "disabled", 0.0);
3290 set_int(g_is_close_button_disabled, 1);
3294 name: "box.show.icon.bg";
3295 signal: "box.show.icon.bg";
3297 action: STATE_SET "show" 0.0;
3298 target: "object.icon.bg";
3299 target: "object.layer.touch.button.1";
3302 name: "box.hide.icon.bg";
3303 signal: "box.hide.icon.bg";
3305 action: STATE_SET "hide" 0.0;
3306 target: "object.icon.bg";
3307 target: "object.layer.touch.button.1";
3310 name: "box.show.icon.sub.bg";
3311 signal: "box.show.sub.bg";
3313 action: STATE_SET "show" 0.0;
3314 target: "object.icon.sub.bg";
3317 name: "box.hide.icon.sub.bg";
3318 signal: "box.hide.sub.bg";
3320 action: STATE_SET "hide" 0.0;
3321 target: "object.icon.sub.bg";
3323 MAKE_PART_SHOW_PROGRAM("object.icon.background")
3324 MAKE_PART_SHOW_PROGRAM("object.icon")
3325 MAKE_PART_SHOW_PROGRAM("object.icon.sub")
3326 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.title")
3327 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.contents")
3328 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.contents.short")
3329 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.count")
3330 MAKE_PART_SHOW_PROGRAM("object.thumbnail.list.1")
3331 MAKE_PART_SHOW_PROGRAM("object.thumbnail.list.2")
3332 MAKE_PART_SHOW_PROGRAM("object.thumbnail.list.3")
3333 MAKE_PART_SHOW_PROGRAM("object.thumbnail.list.4")