1 #define BOX_COLOR_BG 28 29 30 255
2 #define BOX_WIDTH_P 340
3 #define BOX_HEIGHT_P 400
4 #define BOX_WIDTH_L 409
5 #define BOX_HEIGHT_L 400
7 #define BOX_MARGIN_TEXT_H 14
8 #define BOX_TEXT_CONTENTS_HEIGHT 40
9 #define BOX_TEXT_INFO_HEIGHT 36
10 #define BOX_TEXT_SUB_WIDTH 120
11 #define BOX_TEXT_SUB_PADDING_WIDTH 10
16 #define MAKE_PART_SHOW_PROGRAM(PARTNAME)\
18 name: PARTNAME".object.show";\
19 signal: "object.show";\
21 action: STATE_SET "show" 0.0;\
25 #define MAKE_PART_SHOW_TEXT_PROGRAM(PARTNAME)\
27 name: PARTNAME".text.show";\
28 signal: "object.show";\
30 action: STATE_SET "show" 0.0;\
34 name: PARTNAME".text.show.efect";\
35 signal: "object.show.effect";\
37 action: STATE_SET "show.effect" 0.0;\
42 image: "quick_icon_bg_01.png" COMP;
43 image: "quick_btn_close_press.png" COMP;
44 image: "quick_btn_close_dim.png" COMP;
45 image: "quick_btn_close_nor.png" COMP;
46 image: "quick_image_dimmed_port.png" COMP;
47 image: "quick_image_dimmed_land.png" COMP;
48 image: "quick_icon_bg_small.png" COMP;
51 #define BOX_FONT_SHADOW_COLOR 0 0 0 191
52 #define BOX_FONT_OUTLINE_COLOR 0 0 0 191
53 #define BOX_FONT_NO_SHADOW_COLOR 0 0 0 0
54 #define BOX_FONT_NO_OUTLINE_COLOR 0 0 0 0
56 #define BOX_CONTENTS_FONT "Tizen:style=Medium"
57 #define BOX_CONTENTS_FONT_SIZE 32
58 #define BOX_CONTENTS_FONT_COLOR 248 246 239 255
60 #define BOX_INFO_FONT "Tizen:style=Regular"
61 #define BOX_INFO_FONT_SIZE 28
62 #define BOX_INFO_FONT_COLOR 248 246 239 127
64 #define BOX_INFO_SUB_FONT "Tizen:style=Regular"
65 #define BOX_INFO_SUB_FONT_SIZE 28
66 #define BOX_INFO_SUB_FONT_COLOR 248 246 239 127
68 #define BOX_INFO_COUNT_FONT "Tizen:style=Medium"
69 #define BOX_INFO_COUNT_FONT_SIZE 58
70 #define BOX_INFO_COUNT_FONT_COLOR 248 246 239 255
72 #define TEXT_CLASS_TIZEN "tizen"
73 #define TEXT_EFFECT "OUTLINE_SHADOW"
77 name: "notibox_title";
78 base: "font=Tizen:style=Regular text_class=tizen font_size=40 color=#F8F6EF ellipsis=1.0 wrap=mixed";
82 name: "notibox_title_effect";
83 base: "font=Tizen:style=Regular text_class=tizen font_size=40 color=#F8F6EF ellipsis=1.0 wrap=mixed style=outline_shadow outline_color=#000000BF shadow_color=#000000BF";
87 name: "notibox_contents";
88 base: "font=Tizen:style=Medium text_class=tizen font_size=32 color=#F8F6EF ellipsis=1.0 linegap=-6 wrap=mixed";
92 name: "notibox_contents_effect";
93 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";
98 base: "font=Tizen:style=Regular text_class=tizen font_size=28 color=#F8F6EF7F ellipsis=1.0 linegap=-6 wrap=mixed";
102 name: "notibox_info_effect";
103 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";
108 name: "quickpanel/notibox/single_multi";
111 public g_is_close_button_disabled;
112 public g_is_show_dim_bg;
114 public init_variables() {
115 set_int(g_is_close_button_disabled, 0);
116 set_int(g_is_show_dim_bg, 0);
126 state: "default" 0.0;
127 min: BOX_WIDTH_P BOX_HEIGHT_P;
128 max: BOX_WIDTH_P BOX_HEIGHT_P;
133 state: "portrait" 0.0;
134 inherit: "default" 0.0;
137 state: "landscape" 0.0;
138 inherit: "default" 0.0;
139 min: BOX_WIDTH_L BOX_HEIGHT_L;
140 max: BOX_WIDTH_L BOX_HEIGHT_L;
144 //section layout for margin
151 state: "default" 0.0;
152 min: BOX_MARGIN_TEXT_H 0;
169 name: "margin.right";
173 state: "default" 0.0;
174 min: BOX_MARGIN_TEXT_H 0;
191 name: "margin.right.icon";
195 state: "default" 0.0;
206 color: 0 255 255 255;
213 name: "margin.top.icon";
217 state: "default" 0.0;
228 color: 255 0 255 255;
235 name: "margin.top.text";
239 state: "default" 0.0;
257 name: "margin.bottom";
261 state: "default" 0.0;
279 name: "margin.bottom.thin";
283 state: "default" 0.0;
301 //section layout for elements
302 //section layout for icon
304 name: "rect.icon.bg";
308 state: "default" 0.0;
313 to_x:"margin.right.icon";
314 to_y:"margin.top.icon";
318 to_x:"margin.right.icon";
319 to_y:"margin.top.icon";
335 state: "default" 0.0;
349 color: 205 205 255 255;
356 name: "rect.icon.sub.padding";
360 state: "default" 0.0;
373 color: 235 215 235 255;
380 name: "rect.icon.sub";
384 state: "default" 0.0;
389 to:"rect.icon.sub.padding";
393 to:"rect.icon.sub.padding";
398 color: 255 0 100 255;
405 //section layout for close button
407 name: "rect.button.close";
411 state: "default" 0.0;
423 color: 255 255 255 255;
430 //section layout for texts
432 name: "rect.text.title";
436 state: "default" 0.0;
442 to_y:"margin.top.text";
447 to_y:"margin.top.text";
452 color: 100 100 100 255;
458 state: "portrait" 0.0;
459 inherit: "default" 0.0;
462 state: "landscape" 0.0;
463 inherit: "default" 0.0;
470 name: "rect.text.info.2";
474 state: "default" 0.0;
475 min: 0 BOX_TEXT_INFO_HEIGHT;
479 to_y:"margin.bottom";
484 to_y:"margin.bottom";
489 color: 100 100 100 255;
496 name: "rect.text.info.sub.2";
500 state: "default" 0.0;
501 min: BOX_TEXT_SUB_WIDTH BOX_TEXT_INFO_HEIGHT;
502 max: BOX_TEXT_SUB_WIDTH BOX_TEXT_INFO_HEIGHT;
506 to_y:"margin.bottom";
511 to_y:"margin.bottom";
523 name: "rect.text.info.sub.2.padding";
527 state: "default" 0.0;
528 min: BOX_TEXT_SUB_PADDING_WIDTH 0;
531 to:"rect.text.info.sub.2";
535 to:"rect.text.info.sub.2";
547 name: "rect.text.info.2.short";
551 state: "default" 0.0;
554 to_y:"rect.text.info.2";
558 to_x:"rect.text.info.sub.2.padding";
559 to_y:"rect.text.info.2";
564 color: 102 103 104 255;
571 name: "rect.text.info.1";
575 state: "default" 0.0;
576 min: 0 BOX_TEXT_INFO_HEIGHT;
580 to_y:"rect.text.info.2";
585 to_y:"rect.text.info.2";
590 color: 100 150 100 255;
597 name: "rect.text.info.1.multiline";
601 state: "default" 0.0;
605 to_y:"rect.text.info.1";
610 to_y:"margin.bottom.thin";
615 color: 255 150 100 255;
622 name: "rect.text.info.sub.1";
626 state: "default" 0.0;
627 min: BOX_TEXT_SUB_WIDTH BOX_TEXT_INFO_HEIGHT;
628 max: BOX_TEXT_SUB_WIDTH BOX_TEXT_INFO_HEIGHT;
632 to_y:"rect.text.info.2";
637 to_y:"rect.text.info.2";
649 name: "rect.text.info.sub.1.padding";
653 state: "default" 0.0;
654 min: BOX_TEXT_SUB_PADDING_WIDTH 0;
657 to:"rect.text.info.sub.1";
661 to:"rect.text.info.sub.1";
673 name: "rect.text.info.1.short";
677 state: "default" 0.0;
680 to_y:"rect.text.info.1";
684 to_x:"rect.text.info.sub.1.padding";
685 to_y:"rect.text.info.1";
690 color: 102 103 104 255;
697 name: "rect.text.margin.contents";
701 state: "default" 0.0;
706 to_y:"rect.text.info.1";
711 to_y:"rect.text.info.1";
716 color: 255 255 255 255;
723 name: "rect.text.contents";
727 state: "default" 0.0;
728 min: 0 BOX_TEXT_CONTENTS_HEIGHT;
732 to_y:"rect.text.margin.contents";
737 to_y:"rect.text.margin.contents";
742 color: 100 150 100 255;
749 name: "rect.text.contents.multiline";
753 state: "default" 0.0;
757 to_y:"rect.text.contents";
762 to_y:"margin.bottom.thin";
767 color: 100 150 100 255;
774 name: "rect.text.count";
778 state: "default" 0.0;
784 to_y:"rect.text.margin.contents";
789 to_y:"rect.text.margin.contents";
794 color: 190 190 190 255;
801 inherit: "default" 0.0;
805 inherit: "default" 0.0;
810 inherit: "default" 0.0;
815 inherit: "default" 0.0;
820 inherit: "default" 0.0;
825 name: "rect.text.count.padding";
829 state: "default" 0.0;
832 to:"rect.text.count";
836 to:"rect.text.count";
848 name: "rect.text.contents.short";
852 state: "default" 0.0;
853 min: 0 BOX_TEXT_CONTENTS_HEIGHT;
856 to_x:"rect.text.count.padding";
857 to_y:"rect.text.margin.contents";
862 to_y:"rect.text.margin.contents";
867 color: 40 255 100 255;
876 name: "object.icon.background";
880 state: "default" 0.0;
882 rel1 {to: "background";}
883 rel2 {to: "background";}
888 inherit: "default" 0.0;
893 name: "object.icon.bg";
897 state: "default" 0.0;
899 rel1 {to: "rect.icon.bg";}
900 rel2 {to: "rect.icon.bg";}
902 normal:"quick_icon_bg_01.png";
909 inherit: "default" 0.0;
914 inherit: "default" 0.0;
919 name: "object.icon.bg.dim";
923 state: "default" 0.0;
925 rel1 {to: "background";}
926 rel2 {to: "background";}
928 normal:"quick_image_dimmed_port.png";
935 state: "portrait" 0.0;
936 inherit: "default" 0.0;
938 normal:"quick_image_dimmed_port.png";
945 state: "landscape" 0.0;
946 inherit: "default" 0.0;
948 normal:"quick_image_dimmed_land.png";
960 state: "default" 0.0;
962 rel1 {to: "rect.icon";}
963 rel2 {to: "rect.icon";}
968 inherit: "default" 0.0;
973 name: "object.icon.sub.bg";
977 state: "default" 0.0;
979 rel1 {to: "rect.icon.sub";}
980 rel2 {to: "rect.icon.sub";}
982 normal:"quick_icon_bg_small.png";
990 inherit: "default" 0.0;
995 inherit: "default" 0.0;
1000 name: "object.icon.sub";
1004 state: "default" 0.0;
1006 rel1 {to: "rect.icon.sub";}
1007 rel2 {to: "rect.icon.sub";}
1012 inherit: "default" 0.0;
1018 name: "object.text.title";
1023 state: "default" 0.0;
1024 rel1 {to: "rect.text.title";}
1025 rel2 {to: "rect.text.title";}
1027 style: "notibox_title";
1030 text: "some string of text to display";
1037 inherit: "default" 0.0;
1041 state: "show.effect" 0.0;
1042 inherit: "default" 0.0;
1044 style: "notibox_title_effect";
1051 name: "object.text.contents";
1054 effect: TEXT_EFFECT;
1056 state: "default" 0.0;
1057 rel1 {to: "rect.text.contents";}
1058 rel2 {to: "rect.text.contents";}
1059 color: BOX_CONTENTS_FONT_COLOR;
1061 font: BOX_CONTENTS_FONT;
1062 text_class: TEXT_CLASS_TIZEN;
1063 size: BOX_CONTENTS_FONT_SIZE;
1066 text: "some string of text to display";
1073 inherit: "default" 0.0;
1077 state: "show.effect" 0.0;
1078 inherit: "default" 0.0;
1079 color2: BOX_FONT_SHADOW_COLOR;
1080 color3: BOX_FONT_OUTLINE_COLOR;
1085 name: "object.text.contents.short";
1088 effect: TEXT_EFFECT;
1090 state: "default" 0.0;
1091 rel1 {to: "rect.text.contents.short";}
1092 rel2 {to: "rect.text.contents.short";}
1093 color: BOX_CONTENTS_FONT_COLOR;
1095 font: BOX_CONTENTS_FONT;
1096 text_class: TEXT_CLASS_TIZEN;
1097 size: BOX_CONTENTS_FONT_SIZE;
1104 inherit: "default" 0.0;
1108 state: "show.effect" 0.0;
1109 inherit: "default" 0.0;
1110 color2: BOX_FONT_SHADOW_COLOR;
1111 color3: BOX_FONT_OUTLINE_COLOR;
1116 name: "object.text.contents.multiline";
1121 state: "default" 0.0;
1125 to: "rect.text.contents.multiline";
1128 to: "rect.text.contents.multiline";
1131 style: "notibox_contents";
1139 inherit: "default" 0.0;
1143 state: "show.effect" 0.0;
1144 inherit: "default" 0.0;
1146 style: "notibox_contents_effect";
1152 name: "object.text.count";
1155 effect: TEXT_EFFECT;
1157 state: "default" 0.0;
1158 rel1 {to: "rect.text.count";}
1159 rel2 {to: "rect.text.count";}
1160 color: BOX_INFO_COUNT_FONT_COLOR;
1162 font: BOX_INFO_COUNT_FONT;
1163 text_class: TEXT_CLASS_TIZEN;
1164 size: BOX_INFO_COUNT_FONT_SIZE;
1174 inherit: "default" 0.0;
1178 state: "show.effect" 0.0;
1179 inherit: "default" 0.0;
1180 color2: BOX_FONT_SHADOW_COLOR;
1181 color3: BOX_FONT_OUTLINE_COLOR;
1187 name: "object.text.info.1";
1190 effect: TEXT_EFFECT;
1192 state: "default" 0.0;
1193 rel1 {to: "rect.text.info.1";}
1194 rel2 {to: "rect.text.info.1";}
1195 color: BOX_INFO_FONT_COLOR;
1197 font: BOX_INFO_FONT;
1198 text_class: TEXT_CLASS_TIZEN;
1199 size: BOX_INFO_FONT_SIZE;
1202 text: "some string of text to display";
1209 inherit: "default" 0.0;
1213 state: "show.effect" 0.0;
1214 inherit: "default" 0.0;
1215 color2: BOX_FONT_SHADOW_COLOR;
1216 color3: BOX_FONT_OUTLINE_COLOR;
1221 name: "object.text.info.1.short";
1224 effect: TEXT_EFFECT;
1226 state: "default" 0.0;
1227 rel1 {to: "rect.text.info.1.short";}
1228 rel2 {to: "rect.text.info.1.short";}
1229 color: BOX_INFO_FONT_COLOR;
1231 font: BOX_INFO_FONT;
1232 text_class: TEXT_CLASS_TIZEN;
1233 size: BOX_INFO_FONT_SIZE;
1240 inherit: "default" 0.0;
1244 state: "show.effect" 0.0;
1245 inherit: "default" 0.0;
1246 color2: BOX_FONT_SHADOW_COLOR;
1247 color3: BOX_FONT_OUTLINE_COLOR;
1252 name: "object.text.info.1.multiline";
1257 state: "default" 0.0;
1261 to: "rect.text.info.1.multiline";
1264 to: "rect.text.info.1.multiline";
1267 style: "notibox_info";
1275 inherit: "default" 0.0;
1279 state: "show.effect" 0.0;
1280 inherit: "default" 0.0;
1282 style: "notibox_info_effect";
1288 name: "object.text.info.sub.1";
1291 effect: TEXT_EFFECT;
1293 state: "default" 0.0;
1294 rel1 {to: "rect.text.info.sub.1";}
1295 rel2 {to: "rect.text.info.sub.1";}
1296 color: BOX_INFO_SUB_FONT_COLOR;
1298 font: BOX_INFO_SUB_FONT;
1299 text_class: TEXT_CLASS_TIZEN;
1300 size: BOX_INFO_SUB_FONT_SIZE;
1303 text: "some string of text to display";
1310 inherit: "default" 0.0;
1314 state: "show.effect" 0.0;
1315 inherit: "default" 0.0;
1316 color2: BOX_FONT_SHADOW_COLOR;
1317 color3: BOX_FONT_OUTLINE_COLOR;
1323 name: "object.text.info.2";
1326 effect: TEXT_EFFECT;
1328 state: "default" 0.0;
1329 rel1 {to: "rect.text.info.2";}
1330 rel2 {to: "rect.text.info.2";}
1331 color: BOX_INFO_FONT_COLOR;
1333 font: BOX_INFO_FONT;
1334 text_class: TEXT_CLASS_TIZEN;
1335 size: BOX_INFO_FONT_SIZE;
1338 text: "some string of text to display";
1345 inherit: "default" 0.0;
1349 state: "show.effect" 0.0;
1350 inherit: "default" 0.0;
1351 color2: BOX_FONT_SHADOW_COLOR;
1352 color3: BOX_FONT_OUTLINE_COLOR;
1357 name: "object.text.info.2.short";
1360 effect: TEXT_EFFECT;
1362 state: "default" 0.0;
1363 rel1 {to: "rect.text.info.2.short";}
1364 rel2 {to: "rect.text.info.2.short";}
1365 color: BOX_INFO_FONT_COLOR;
1367 font: BOX_INFO_FONT;
1368 text_class: TEXT_CLASS_TIZEN;
1369 size: BOX_INFO_FONT_SIZE;
1376 inherit: "default" 0.0;
1380 state: "show.effect" 0.0;
1381 inherit: "default" 0.0;
1382 color2: BOX_FONT_SHADOW_COLOR;
1383 color3: BOX_FONT_OUTLINE_COLOR;
1388 name: "object.text.info.sub.2";
1391 effect: TEXT_EFFECT;
1393 state: "default" 0.0;
1394 rel1 {to: "rect.text.info.sub.2";}
1395 rel2 {to: "rect.text.info.sub.2";}
1396 color: BOX_INFO_SUB_FONT_COLOR;
1398 font: BOX_INFO_SUB_FONT;
1399 text_class: TEXT_CLASS_TIZEN;
1400 size: BOX_INFO_SUB_FONT_SIZE;
1403 text: "some string of text to display";
1410 inherit: "default" 0.0;
1414 state: "show.effect" 0.0;
1415 inherit: "default" 0.0;
1416 color2: BOX_FONT_SHADOW_COLOR;
1417 color3: BOX_FONT_OUTLINE_COLOR;
1422 name: "object.layer.touch.background";
1428 state: "default" 0.0;
1429 rel1 {to: "background";}
1430 rel2 {to: "background";}
1435 name: "object.layer.touch.button.1";
1441 state: "default" 0.0;
1444 to_y: "object.button.close";
1447 rel2 {to: "rect.icon";}
1452 inherit: "default" 0.0;
1457 inherit: "default" 0.0;
1462 name: "object.button.close";
1466 state: "default" 0.0;
1469 to: "rect.button.close";
1473 to: "rect.button.close";
1481 name: "object.image.button.close";
1486 state: "default" 0.0;
1487 rel1 {to: "rect.button.close";}
1488 rel2 {to: "rect.button.close";}
1490 normal:"quick_btn_close_nor.png";
1497 state: "normal" 0.0;
1498 inherit: "default" 0.0;
1501 state: "pressed" 0.0;
1502 inherit: "default" 0.0;
1504 normal:"quick_btn_close_press.png";
1511 state: "disabled" 0.0;
1512 inherit: "default" 0.0;
1514 normal:"quick_btn_close_dim.png";
1525 name: "init.layout";
1534 name: "box.show.dim";
1535 signal: "box.show.dim";
1538 set_int(g_is_show_dim_bg, 1);
1542 name: "box.hide.dim";
1543 signal: "box.hide.dim";
1546 set_int(g_is_show_dim_bg, 0);
1550 name: "box.portrait";
1551 signal: "box.portrait";
1553 action: STATE_SET "portrait" 0.0;
1554 target: "background";
1555 target: "rect.text.title";
1556 after: "box.portrait.custom";
1559 name: "box.landscape";
1560 signal: "box.landscape";
1562 action: STATE_SET "landscape" 0.0;
1563 target: "background";
1564 target: "rect.text.title";
1565 after: "box.landscape.custom";
1568 name: "box.portrait.custom";
1571 if (get_int(g_is_show_dim_bg) == 1) {
1572 set_state(PART:"object.icon.bg.dim", "portrait", 0.0);
1577 name: "box.landscape.custom";
1580 if (get_int(g_is_show_dim_bg) == 1) {
1581 set_state(PART:"object.icon.bg.dim", "landscape", 0.0);
1586 name: "box.touch.down";
1587 signal: "mouse,clicked,1";
1588 source: "object.layer.touch.background";
1589 action: SIGNAL_EMIT "selected" "edje";
1592 name: "box.button.1.touch.down";
1593 signal: "mouse,clicked,1";
1594 source: "object.layer.touch.button.1";
1595 action: SIGNAL_EMIT "button_1" "edje";
1598 name: "box.button.close.1";
1599 signal: "mouse,down,1";
1600 source: "object.button.close";
1602 if (get_int(g_is_close_button_disabled) == 0) {
1603 set_state(PART:"object.image.button.close", "pressed", 0.0);
1608 name: "box.button.close.2";
1609 signal: "mouse,up,1";
1610 source: "object.button.close";
1612 set_state(PART:"object.image.button.close", "normal", 0.0);
1616 name: "box.button.close.3";
1617 signal: "mouse,clicked,1";
1618 source: "object.button.close";
1620 if (get_int(g_is_close_button_disabled) == 0) {
1621 set_state(PART:"object.image.button.close", "normal", 0.0);
1622 emit("deleted", "edje");
1627 name: "box.button.close.4";
1629 source: "object.button.close";
1631 set_state(PART:"object.image.button.close", "disabled", 0.0);
1632 set_int(g_is_close_button_disabled, 1);
1636 name: "box.show.icon.bg";
1637 signal: "box.show.icon.bg";
1639 action: STATE_SET "show" 0.0;
1640 target: "object.icon.bg";
1641 target: "object.layer.touch.button.1";
1644 name: "box.hide.icon.bg";
1645 signal: "box.hide.icon.bg";
1647 action: STATE_SET "hide" 0.0;
1648 target: "object.icon.bg";
1649 target: "object.layer.touch.button.1";
1652 name: "box.show.icon.sub.bg";
1653 signal: "box.show.sub.bg";
1655 action: STATE_SET "show" 0.0;
1656 target: "object.icon.sub.bg";
1659 name: "box.hide.icon.sub.bg";
1660 signal: "box.hide.sub.bg";
1662 action: STATE_SET "hide" 0.0;
1663 target: "object.icon.sub.bg";
1666 name: "box.count.1";
1667 signal: "box.count.1";
1669 action: STATE_SET "count1" 0.0;
1670 target: "rect.text.count";
1673 name: "box.count.2";
1674 signal: "box.count.2";
1676 action: STATE_SET "count2" 0.0;
1677 target: "rect.text.count";
1680 name: "box.count.3";
1681 signal: "box.count.3";
1683 action: STATE_SET "count3" 0.0;
1684 target: "rect.text.count";
1687 name: "box.count.4";
1688 signal: "box.count.4";
1690 action: STATE_SET "count4" 0.0;
1691 target: "rect.text.count";
1694 name: "box.count.5";
1695 signal: "box.count.5";
1697 action: STATE_SET "count5" 0.0;
1698 target: "rect.text.count";
1700 MAKE_PART_SHOW_PROGRAM("object.icon.background")
1701 MAKE_PART_SHOW_PROGRAM("object.icon")
1702 MAKE_PART_SHOW_PROGRAM("object.icon.sub")
1703 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.title")
1704 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.contents")
1705 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.contents.short")
1706 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.contents.multiline")
1707 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.count")
1708 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.info.1")
1709 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.info.1.short")
1710 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.info.1.multiline")
1711 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.info.sub.1")
1712 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.info.2")
1713 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.info.2.short")
1714 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.info.sub.2")
1720 name: "quickpanel/notibox/thumbnail";
1723 public g_is_close_button_disabled;
1724 public g_is_show_dim_bg;
1726 public init_variables() {
1727 set_int(g_is_close_button_disabled, 0);
1728 set_int(g_is_show_dim_bg, 0);
1738 state: "default" 0.0;
1739 min: BOX_WIDTH_P BOX_HEIGHT_P;
1740 color: BOX_COLOR_BG;
1744 state: "portrait" 0.0;
1745 inherit: "default" 0.0;
1748 state: "landscape" 0.0;
1749 inherit: "default" 0.0;
1750 min: BOX_WIDTH_L BOX_HEIGHT_L;
1754 //section layout for margin
1757 name: "margin.left";
1761 state: "default" 0.0;
1762 min: BOX_MARGIN_TEXT_H 0;
1778 name: "margin.right";
1782 state: "default" 0.0;
1783 min: BOX_MARGIN_TEXT_H 0;
1799 name: "margin.left.thumnail";
1803 state: "default" 0.0;
1819 state: "portrait" 0.0;
1820 inherit: "default" 0.0;
1823 state: "landscape" 0.0;
1824 inherit: "default" 0.0;
1829 name: "margin.right.thumnail";
1833 state: "default" 0.0;
1849 state: "portrait" 0.0;
1850 inherit: "default" 0.0;
1853 state: "landscape" 0.0;
1854 inherit: "default" 0.0;
1859 name: "margin.right.icon";
1863 state: "default" 0.0;
1873 color: 0 255 255 255;
1880 name: "margin.top.icon";
1884 state: "default" 0.0;
1894 color: 255 0 255 255;
1901 name: "margin.top.text";
1905 state: "default" 0.0;
1922 name: "margin.bottom";
1926 state: "default" 0.0;
1943 //section layout for elements
1944 //section layout for icon
1946 name: "rect.icon.bg";
1950 state: "default" 0.0;
1953 to_x:"margin.right.icon";
1954 to_y:"margin.top.icon";
1958 to_x:"margin.right.icon";
1959 to_y:"margin.top.icon";
1975 state: "default" 0.0;
1987 color: 205 205 255 255;
1994 name: "rect.icon.sub.padding";
1998 state: "default" 0.0;
2010 color: 235 215 235 255;
2017 name: "rect.icon.sub";
2021 state: "default" 0.0;
2024 to:"rect.icon.sub.padding";
2028 to:"rect.icon.sub.padding";
2033 color: 255 0 100 255;
2040 //section layout for close button
2042 name: "rect.button.close";
2046 state: "default" 0.0;
2056 color: 255 255 255 255;
2063 //section layout for texts
2065 name: "rect.text.title";
2069 state: "default" 0.0;
2075 to_y:"margin.top.text";
2079 to_x:"rect.icon.bg";
2080 to_y:"margin.top.text";
2085 color: 100 100 100 255;
2091 state: "portrait" 0.0;
2092 inherit: "default" 0.0;
2095 state: "landscape" 0.0;
2096 inherit: "default" 0.0;
2104 name: "rect.text.margin.contents";
2108 state: "default" 0.0;
2112 to_y:"rect.thumbnail.list.1";
2116 to_x:"margin.right";
2117 to_y:"rect.thumbnail.list.1";
2122 color: 255 255 255 255;
2129 name: "rect.text.contents";
2133 state: "default" 0.0;
2134 min: 0 BOX_TEXT_CONTENTS_HEIGHT;
2137 to_y:"rect.text.margin.contents";
2141 to_x:"margin.right";
2142 to_y:"rect.text.margin.contents";
2147 color: 100 150 100 255;
2154 name: "rect.text.count";
2158 state: "default" 0.0;
2162 to_y:"rect.text.margin.contents";
2167 to_y:"rect.text.margin.contents";
2172 color: 190 190 190 255;
2179 name: "rect.text.count.padding";
2183 state: "default" 0.0;
2186 to:"rect.text.count";
2190 to:"rect.text.count";
2202 name: "rect.text.contents.short";
2206 state: "default" 0.0;
2207 min: 0 BOX_TEXT_CONTENTS_HEIGHT;
2209 to_x:"rect.text.count.padding";
2210 to_y:"rect.text.margin.contents";
2214 to_x:"margin.right";
2215 to_y:"rect.text.margin.contents";
2220 color: 40 255 100 255;
2227 //section layout for thumbnail
2229 name: "rect.thumbnail.list.1";
2233 state: "default" 0.0;
2236 to_x:"margin.left.thumnail";
2237 to_y:"margin.bottom";
2241 to_x:"margin.left.thumnail";
2242 to_y:"margin.bottom";
2254 name: "rect.thumbnail.list.1.padding";
2258 state: "default" 0.0;
2261 to:"rect.thumbnail.list.1";
2265 to:"rect.thumbnail.list.1";
2276 state: "portrait" 0.0;
2277 inherit: "default" 0.0;
2280 state: "landscape" 0.0;
2281 inherit: "default" 0.0;
2286 name: "rect.thumbnail.list.2";
2290 state: "default" 0.0;
2293 to_x:"rect.thumbnail.list.1.padding";
2294 to_y:"margin.bottom";
2298 to_x:"rect.thumbnail.list.1.padding";
2299 to_y:"margin.bottom";
2311 name: "rect.thumbnail.list.2.padding";
2315 state: "default" 0.0;
2318 to:"rect.thumbnail.list.2";
2322 to:"rect.thumbnail.list.2";
2333 state: "portrait" 0.0;
2334 inherit: "default" 0.0;
2337 state: "landscape" 0.0;
2338 inherit: "default" 0.0;
2343 name: "rect.thumbnail.list.3";
2347 state: "default" 0.0;
2350 to_x:"rect.thumbnail.list.2.padding";
2351 to_y:"margin.bottom";
2355 to_x:"rect.thumbnail.list.2.padding";
2356 to_y:"margin.bottom";
2368 name: "rect.thumbnail.list.3.padding";
2372 state: "default" 0.0;
2375 to:"rect.thumbnail.list.3";
2379 to:"rect.thumbnail.list.3";
2390 state: "portrait" 0.0;
2391 inherit: "default" 0.0;
2394 state: "landscape" 0.0;
2395 inherit: "default" 0.0;
2400 name: "rect.thumbnail.list.4";
2404 state: "default" 0.0;
2407 to_x:"rect.thumbnail.list.3.padding";
2408 to_y:"margin.bottom";
2412 to_x:"rect.thumbnail.list.3.padding";
2413 to_y:"margin.bottom";
2425 name: "rect.thumbnail.list.4.padding";
2429 state: "default" 0.0;
2432 to:"rect.thumbnail.list.4";
2436 to:"rect.thumbnail.list.4";
2447 state: "portrait" 0.0;
2448 inherit: "default" 0.0;
2451 state: "landscape" 0.0;
2452 inherit: "default" 0.0;
2457 name: "rect.thumbnail.list.5";
2461 state: "default" 0.0;
2464 to_x:"rect.thumbnail.list.4.padding";
2465 to_y:"margin.bottom";
2469 to_x:"rect.thumbnail.list.4.padding";
2470 to_y:"margin.bottom";
2482 state: "portrait" 0.0;
2483 inherit: "default" 0.0;
2486 state: "landscape" 0.0;
2487 inherit: "default" 0.0;
2493 name: "object.icon.background";
2497 state: "default" 0.0;
2499 rel1 {to: "background";}
2500 rel2 {to: "background";}
2505 inherit: "default" 0.0;
2510 name: "object.icon.bg";
2514 state: "default" 0.0;
2516 rel1 {to: "rect.icon.bg";}
2517 rel2 {to: "rect.icon.bg";}
2519 normal:"quick_icon_bg_01.png";
2526 inherit: "default" 0.0;
2531 inherit: "default" 0.0;
2536 name: "object.icon.bg.dim";
2540 state: "default" 0.0;
2542 rel1 {to: "background";}
2543 rel2 {to: "background";}
2545 normal:"quick_image_dimmed_port.png";
2552 state: "portrait" 0.0;
2553 inherit: "default" 0.0;
2555 normal:"quick_image_dimmed_port.png";
2562 state: "landscape" 0.0;
2563 inherit: "default" 0.0;
2565 normal:"quick_image_dimmed_land.png";
2573 name: "object.icon";
2577 state: "default" 0.0;
2579 rel1 {to: "rect.icon";}
2580 rel2 {to: "rect.icon";}
2585 inherit: "default" 0.0;
2590 name: "object.icon.sub.bg";
2594 state: "default" 0.0;
2596 rel1 {to: "rect.icon.sub";}
2597 rel2 {to: "rect.icon.sub";}
2599 normal:"quick_icon_bg_small.png";
2607 inherit: "default" 0.0;
2612 inherit: "default" 0.0;
2617 name: "object.icon.sub";
2621 state: "default" 0.0;
2623 rel1 {to: "rect.icon.sub";}
2624 rel2 {to: "rect.icon.sub";}
2629 inherit: "default" 0.0;
2636 name: "object.thumbnail.list.1";
2640 state: "default" 0.0;
2642 rel1 {to: "rect.thumbnail.list.1";}
2643 rel2 {to: "rect.thumbnail.list.1";}
2648 inherit: "default" 0.0;
2653 name: "object.thumbnail.list.2";
2657 state: "default" 0.0;
2659 rel1 {to: "rect.thumbnail.list.2";}
2660 rel2 {to: "rect.thumbnail.list.2";}
2665 inherit: "default" 0.0;
2670 name: "object.thumbnail.list.3";
2674 state: "default" 0.0;
2676 rel1 {to: "rect.thumbnail.list.3";}
2677 rel2 {to: "rect.thumbnail.list.3";}
2682 inherit: "default" 0.0;
2687 name: "object.thumbnail.list.4";
2691 state: "default" 0.0;
2693 rel1 {to: "rect.thumbnail.list.4";}
2694 rel2 {to: "rect.thumbnail.list.4";}
2699 inherit: "default" 0.0;
2704 name: "object.thumbnail.list.5";
2708 state: "default" 0.0;
2710 rel1 {to: "rect.thumbnail.list.5";}
2711 rel2 {to: "rect.thumbnail.list.5";}
2715 state: "portrait" 0.0;
2716 inherit: "default" 0.0;
2719 state: "landscape" 0.0;
2720 inherit: "default" 0.0;
2726 name: "object.text.title";
2731 state: "default" 0.0;
2732 rel1 {to: "rect.text.title";}
2733 rel2 {to: "rect.text.title";}
2735 style: "notibox_title";
2738 text: "some string of text to display";
2745 inherit: "default" 0.0;
2749 state: "show.effect" 0.0;
2750 inherit: "default" 0.0;
2752 style: "notibox_title_effect";
2759 name: "object.text.contents";
2762 effect: TEXT_EFFECT;
2764 state: "default" 0.0;
2765 rel1 {to: "rect.text.contents";}
2766 rel2 {to: "rect.text.contents";}
2767 color: BOX_CONTENTS_FONT_COLOR;
2769 font: BOX_CONTENTS_FONT;
2770 text_class: TEXT_CLASS_TIZEN;
2771 size: BOX_CONTENTS_FONT_SIZE;
2774 text: "some string of text to display";
2781 inherit: "default" 0.0;
2785 state: "show.effect" 0.0;
2786 inherit: "default" 0.0;
2787 color2: BOX_FONT_SHADOW_COLOR;
2788 color3: BOX_FONT_OUTLINE_COLOR;
2793 name: "object.text.contents.short";
2796 effect: TEXT_EFFECT;
2798 state: "default" 0.0;
2799 rel1 {to: "rect.text.contents.short";}
2800 rel2 {to: "rect.text.contents.short";}
2801 color: BOX_CONTENTS_FONT_COLOR;
2803 font: BOX_CONTENTS_FONT;
2804 text_class: TEXT_CLASS_TIZEN;
2805 size: BOX_CONTENTS_FONT_SIZE;
2812 inherit: "default" 0.0;
2816 state: "show.effect" 0.0;
2817 inherit: "default" 0.0;
2818 color2: BOX_FONT_SHADOW_COLOR;
2819 color3: BOX_FONT_OUTLINE_COLOR;
2825 name: "object.text.count";
2828 effect: TEXT_EFFECT;
2830 state: "default" 0.0;
2831 rel1 {to: "rect.text.count";}
2832 rel2 {to: "rect.text.count";}
2833 color: BOX_INFO_COUNT_FONT_COLOR;
2835 font: BOX_INFO_COUNT_FONT;
2836 text_class: TEXT_CLASS_TIZEN;
2837 size: BOX_INFO_COUNT_FONT_SIZE;
2847 inherit: "default" 0.0;
2851 state: "show.effect" 0.0;
2852 inherit: "default" 0.0;
2853 color2: BOX_FONT_SHADOW_COLOR;
2854 color3: BOX_FONT_OUTLINE_COLOR;
2859 name: "object.layer.touch.background";
2865 state: "default" 0.0;
2866 rel1 {to: "background";}
2867 rel2 {to: "background";}
2872 name: "object.layer.touch.button.1";
2878 state: "default" 0.0;
2881 to_y: "object.button.close";
2884 rel2 {to: "rect.icon";}
2889 inherit: "default" 0.0;
2894 inherit: "default" 0.0;
2899 name: "object.button.close";
2903 state: "default" 0.0;
2906 to: "rect.button.close";
2910 to: "rect.button.close";
2918 name: "object.image.button.close";
2923 state: "default" 0.0;
2924 rel1 {to: "rect.button.close";}
2925 rel2 {to: "rect.button.close";}
2927 normal:"quick_btn_close_nor.png";
2934 state: "normal" 0.0;
2935 inherit: "default" 0.0;
2938 state: "pressed" 0.0;
2939 inherit: "default" 0.0;
2941 normal:"quick_btn_close_press.png";
2948 state: "disabled" 0.0;
2949 inherit: "default" 0.0;
2951 normal:"quick_btn_close_dim.png";
2962 name: "init.layout";
2971 name: "box.show.dim";
2972 signal: "box.show.dim";
2975 set_int(g_is_show_dim_bg, 1);
2979 name: "box.hide.dim";
2980 signal: "box.hide.dim";
2983 set_int(g_is_show_dim_bg, 0);
2987 name: "box.portrait";
2988 signal: "box.portrait";
2990 action: STATE_SET "portrait" 0.0;
2991 target: "background";
2992 target: "margin.left.thumnail";
2993 target: "margin.right.thumnail";
2994 target: "rect.text.title";
2995 target: "rect.thumbnail.list.1.padding";
2996 target: "rect.thumbnail.list.2.padding";
2997 target: "rect.thumbnail.list.3.padding";
2998 target: "rect.thumbnail.list.4.padding";
2999 target: "rect.thumbnail.list.5";
3000 target: "object.thumbnail.list.5";
3001 after: "box.portrait.custom";
3004 name: "box.landscape";
3005 signal: "box.landscape";
3007 action: STATE_SET "landscape" 0.0;
3008 target: "background";
3009 target: "margin.left.thumnail";
3010 target: "margin.right.thumnail";
3011 target: "rect.text.title";
3012 target: "rect.thumbnail.list.1.padding";
3013 target: "rect.thumbnail.list.2.padding";
3014 target: "rect.thumbnail.list.3.padding";
3015 target: "rect.thumbnail.list.4.padding";
3016 target: "rect.thumbnail.list.5";
3017 target: "object.thumbnail.list.5";
3018 after: "box.landscape.custom";
3021 name: "box.portrait.custom";
3024 if (get_int(g_is_show_dim_bg) == 1) {
3025 set_state(PART:"object.icon.bg.dim", "portrait", 0.0);
3030 name: "box.landscape.custom";
3033 if (get_int(g_is_show_dim_bg) == 1) {
3034 set_state(PART:"object.icon.bg.dim", "landscape", 0.0);
3039 name: "box.touch.down";
3040 signal: "mouse,clicked,1";
3041 source: "object.layer.touch.background";
3042 action: SIGNAL_EMIT "selected" "edje";
3045 name: "box.button.1.touch.down";
3046 signal: "mouse,clicked,1";
3047 source: "object.layer.touch.button.1";
3048 action: SIGNAL_EMIT "button_1" "edje";
3051 name: "box.button.close.1";
3052 signal: "mouse,down,1";
3053 source: "object.button.close";
3055 if (get_int(g_is_close_button_disabled) == 0) {
3056 set_state(PART:"object.image.button.close", "pressed", 0.0);
3061 name: "box.button.close.2";
3062 signal: "mouse,up,1";
3063 source: "object.button.close";
3065 set_state(PART:"object.image.button.close", "normal", 0.0);
3069 name: "box.button.close.3";
3070 signal: "mouse,clicked,1";
3071 source: "object.button.close";
3073 if (get_int(g_is_close_button_disabled) == 0) {
3074 set_state(PART:"object.image.button.close", "normal", 0.0);
3075 emit("deleted", "edje");
3080 name: "box.button.close.4";
3082 source: "object.button.close";
3084 set_state(PART:"object.image.button.close", "disabled", 0.0);
3085 set_int(g_is_close_button_disabled, 1);
3089 name: "box.show.icon.bg";
3090 signal: "box.show.icon.bg";
3092 action: STATE_SET "show" 0.0;
3093 target: "object.icon.bg";
3094 target: "object.layer.touch.button.1";
3097 name: "box.hide.icon.bg";
3098 signal: "box.hide.icon.bg";
3100 action: STATE_SET "hide" 0.0;
3101 target: "object.icon.bg";
3102 target: "object.layer.touch.button.1";
3105 name: "box.show.icon.sub.bg";
3106 signal: "box.show.sub.bg";
3108 action: STATE_SET "show" 0.0;
3109 target: "object.icon.sub.bg";
3112 name: "box.hide.icon.sub.bg";
3113 signal: "box.hide.sub.bg";
3115 action: STATE_SET "hide" 0.0;
3116 target: "object.icon.sub.bg";
3118 MAKE_PART_SHOW_PROGRAM("object.icon.background")
3119 MAKE_PART_SHOW_PROGRAM("object.icon")
3120 MAKE_PART_SHOW_PROGRAM("object.icon.sub")
3121 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.title")
3122 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.contents")
3123 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.contents.short")
3124 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.count")
3125 MAKE_PART_SHOW_PROGRAM("object.thumbnail.list.1")
3126 MAKE_PART_SHOW_PROGRAM("object.thumbnail.list.2")
3127 MAKE_PART_SHOW_PROGRAM("object.thumbnail.list.3")
3128 MAKE_PART_SHOW_PROGRAM("object.thumbnail.list.4")