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_cloase_button_disabled;
112 public g_is_show_dim_bg;
114 public init_variables() {
115 set_int(g_is_cloase_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";
1428 state: "default" 0.0;
1429 rel1 {to: "background";}
1430 rel2 {to: "background";}
1435 name: "object.button.close";
1439 state: "default" 0.0;
1442 to: "rect.button.close";
1446 to: "rect.button.close";
1454 name: "object.image.button.close";
1459 state: "default" 0.0;
1460 rel1 {to: "rect.button.close";}
1461 rel2 {to: "rect.button.close";}
1463 normal:"quick_btn_close_nor.png";
1470 state: "normal" 0.0;
1471 inherit: "default" 0.0;
1474 state: "pressed" 0.0;
1475 inherit: "default" 0.0;
1477 normal:"quick_btn_close_press.png";
1484 state: "disabled" 0.0;
1485 inherit: "default" 0.0;
1487 normal:"quick_btn_close_dim.png";
1498 name: "init.layout";
1507 name: "box.show.dim";
1508 signal: "box.show.dim";
1511 set_int(g_is_show_dim_bg, 1);
1515 name: "box.hide.dim";
1516 signal: "box.hide.dim";
1519 set_int(g_is_show_dim_bg, 0);
1523 name: "box.portrait";
1524 signal: "box.portrait";
1526 action: STATE_SET "portrait" 0.0;
1527 target: "background";
1528 target: "rect.text.title";
1529 after: "box.portrait.custom";
1532 name: "box.landscape";
1533 signal: "box.landscape";
1535 action: STATE_SET "landscape" 0.0;
1536 target: "background";
1537 target: "rect.text.title";
1538 after: "box.landscape.custom";
1541 name: "box.portrait.custom";
1544 if (get_int(g_is_show_dim_bg) == 1) {
1545 set_state(PART:"object.icon.bg.dim", "portrait", 0.0);
1550 name: "box.landscape.custom";
1553 if (get_int(g_is_show_dim_bg) == 1) {
1554 set_state(PART:"object.icon.bg.dim", "landscape", 0.0);
1559 name: "box.touch.down";
1560 signal: "mouse,clicked,1";
1561 source: "object.layer.touch";
1562 action: SIGNAL_EMIT "selected" "object.layer.touch";
1565 name: "box.button.close.1";
1566 signal: "mouse,down,1";
1567 source: "object.button.close";
1569 if (get_int(g_is_cloase_button_disabled) == 0) {
1570 set_state(PART:"object.image.button.close", "pressed", 0.0);
1575 name: "box.button.close.2";
1576 signal: "mouse,up,1";
1577 source: "object.button.close";
1579 set_state(PART:"object.image.button.close", "normal", 0.0);
1583 name: "box.button.close.3";
1584 signal: "mouse,clicked,1";
1585 source: "object.button.close";
1587 if (get_int(g_is_cloase_button_disabled) == 0) {
1588 set_state(PART:"object.image.button.close", "normal", 0.0);
1589 emit("deleted", "object.layer.touch");
1594 name: "box.button.close.4";
1596 source: "object.button.close";
1598 set_state(PART:"object.image.button.close", "disabled", 0.0);
1599 set_int(g_is_cloase_button_disabled, 1);
1603 name: "box.show.icon.bg";
1604 signal: "box.show.icon.bg";
1606 action: STATE_SET "show" 0.0;
1607 target: "object.icon.bg";
1610 name: "box.hide.icon.bg";
1611 signal: "box.hide.icon.bg";
1613 action: STATE_SET "hide" 0.0;
1614 target: "object.icon.bg";
1617 name: "box.show.icon.sub.bg";
1618 signal: "box.show.sub.bg";
1620 action: STATE_SET "show" 0.0;
1621 target: "object.icon.sub.bg";
1624 name: "box.hide.icon.sub.bg";
1625 signal: "box.hide.sub.bg";
1627 action: STATE_SET "hide" 0.0;
1628 target: "object.icon.sub.bg";
1631 name: "box.count.1";
1632 signal: "box.count.1";
1634 action: STATE_SET "count1" 0.0;
1635 target: "rect.text.count";
1638 name: "box.count.2";
1639 signal: "box.count.2";
1641 action: STATE_SET "count2" 0.0;
1642 target: "rect.text.count";
1645 name: "box.count.3";
1646 signal: "box.count.3";
1648 action: STATE_SET "count3" 0.0;
1649 target: "rect.text.count";
1652 name: "box.count.4";
1653 signal: "box.count.4";
1655 action: STATE_SET "count4" 0.0;
1656 target: "rect.text.count";
1659 name: "box.count.5";
1660 signal: "box.count.5";
1662 action: STATE_SET "count5" 0.0;
1663 target: "rect.text.count";
1665 MAKE_PART_SHOW_PROGRAM("object.icon.background")
1666 MAKE_PART_SHOW_PROGRAM("object.icon")
1667 MAKE_PART_SHOW_PROGRAM("object.icon.sub")
1668 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.title")
1669 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.contents")
1670 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.contents.short")
1671 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.contents.multiline")
1672 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.count")
1673 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.info.1")
1674 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.info.1.short")
1675 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.info.1.multiline")
1676 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.info.sub.1")
1677 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.info.2")
1678 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.info.2.short")
1679 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.info.sub.2")
1685 name: "quickpanel/notibox/thumbnail";
1688 public g_is_cloase_button_disabled;
1689 public g_is_show_dim_bg;
1691 public init_variables() {
1692 set_int(g_is_cloase_button_disabled, 0);
1693 set_int(g_is_show_dim_bg, 0);
1703 state: "default" 0.0;
1704 min: BOX_WIDTH_P BOX_HEIGHT_P;
1705 color: BOX_COLOR_BG;
1709 state: "portrait" 0.0;
1710 inherit: "default" 0.0;
1713 state: "landscape" 0.0;
1714 inherit: "default" 0.0;
1715 min: BOX_WIDTH_L BOX_HEIGHT_L;
1719 //section layout for margin
1722 name: "margin.left";
1726 state: "default" 0.0;
1727 min: BOX_MARGIN_TEXT_H 0;
1743 name: "margin.right";
1747 state: "default" 0.0;
1748 min: BOX_MARGIN_TEXT_H 0;
1764 name: "margin.left.thumnail";
1768 state: "default" 0.0;
1784 state: "portrait" 0.0;
1785 inherit: "default" 0.0;
1788 state: "landscape" 0.0;
1789 inherit: "default" 0.0;
1794 name: "margin.right.thumnail";
1798 state: "default" 0.0;
1814 state: "portrait" 0.0;
1815 inherit: "default" 0.0;
1818 state: "landscape" 0.0;
1819 inherit: "default" 0.0;
1824 name: "margin.right.icon";
1828 state: "default" 0.0;
1838 color: 0 255 255 255;
1845 name: "margin.top.icon";
1849 state: "default" 0.0;
1859 color: 255 0 255 255;
1866 name: "margin.top.text";
1870 state: "default" 0.0;
1887 name: "margin.bottom";
1891 state: "default" 0.0;
1908 //section layout for elements
1909 //section layout for icon
1911 name: "rect.icon.bg";
1915 state: "default" 0.0;
1918 to_x:"margin.right.icon";
1919 to_y:"margin.top.icon";
1923 to_x:"margin.right.icon";
1924 to_y:"margin.top.icon";
1940 state: "default" 0.0;
1952 color: 205 205 255 255;
1959 name: "rect.icon.sub.padding";
1963 state: "default" 0.0;
1975 color: 235 215 235 255;
1982 name: "rect.icon.sub";
1986 state: "default" 0.0;
1989 to:"rect.icon.sub.padding";
1993 to:"rect.icon.sub.padding";
1998 color: 255 0 100 255;
2005 //section layout for close button
2007 name: "rect.button.close";
2011 state: "default" 0.0;
2021 color: 255 255 255 255;
2028 //section layout for texts
2030 name: "rect.text.title";
2034 state: "default" 0.0;
2040 to_y:"margin.top.text";
2044 to_x:"rect.icon.bg";
2045 to_y:"margin.top.text";
2050 color: 100 100 100 255;
2056 state: "portrait" 0.0;
2057 inherit: "default" 0.0;
2060 state: "landscape" 0.0;
2061 inherit: "default" 0.0;
2069 name: "rect.text.margin.contents";
2073 state: "default" 0.0;
2077 to_y:"rect.thumbnail.list.1";
2081 to_x:"margin.right";
2082 to_y:"rect.thumbnail.list.1";
2087 color: 255 255 255 255;
2094 name: "rect.text.contents";
2098 state: "default" 0.0;
2099 min: 0 BOX_TEXT_CONTENTS_HEIGHT;
2102 to_y:"rect.text.margin.contents";
2106 to_x:"margin.right";
2107 to_y:"rect.text.margin.contents";
2112 color: 100 150 100 255;
2119 name: "rect.text.count";
2123 state: "default" 0.0;
2127 to_y:"rect.text.margin.contents";
2132 to_y:"rect.text.margin.contents";
2137 color: 190 190 190 255;
2144 name: "rect.text.count.padding";
2148 state: "default" 0.0;
2151 to:"rect.text.count";
2155 to:"rect.text.count";
2167 name: "rect.text.contents.short";
2171 state: "default" 0.0;
2172 min: 0 BOX_TEXT_CONTENTS_HEIGHT;
2174 to_x:"rect.text.count.padding";
2175 to_y:"rect.text.margin.contents";
2179 to_x:"margin.right";
2180 to_y:"rect.text.margin.contents";
2185 color: 40 255 100 255;
2192 //section layout for thumbnail
2194 name: "rect.thumbnail.list.1";
2198 state: "default" 0.0;
2201 to_x:"margin.left.thumnail";
2202 to_y:"margin.bottom";
2206 to_x:"margin.left.thumnail";
2207 to_y:"margin.bottom";
2219 name: "rect.thumbnail.list.1.padding";
2223 state: "default" 0.0;
2226 to:"rect.thumbnail.list.1";
2230 to:"rect.thumbnail.list.1";
2241 state: "portrait" 0.0;
2242 inherit: "default" 0.0;
2245 state: "landscape" 0.0;
2246 inherit: "default" 0.0;
2251 name: "rect.thumbnail.list.2";
2255 state: "default" 0.0;
2258 to_x:"rect.thumbnail.list.1.padding";
2259 to_y:"margin.bottom";
2263 to_x:"rect.thumbnail.list.1.padding";
2264 to_y:"margin.bottom";
2276 name: "rect.thumbnail.list.2.padding";
2280 state: "default" 0.0;
2283 to:"rect.thumbnail.list.2";
2287 to:"rect.thumbnail.list.2";
2298 state: "portrait" 0.0;
2299 inherit: "default" 0.0;
2302 state: "landscape" 0.0;
2303 inherit: "default" 0.0;
2308 name: "rect.thumbnail.list.3";
2312 state: "default" 0.0;
2315 to_x:"rect.thumbnail.list.2.padding";
2316 to_y:"margin.bottom";
2320 to_x:"rect.thumbnail.list.2.padding";
2321 to_y:"margin.bottom";
2333 name: "rect.thumbnail.list.3.padding";
2337 state: "default" 0.0;
2340 to:"rect.thumbnail.list.3";
2344 to:"rect.thumbnail.list.3";
2355 state: "portrait" 0.0;
2356 inherit: "default" 0.0;
2359 state: "landscape" 0.0;
2360 inherit: "default" 0.0;
2365 name: "rect.thumbnail.list.4";
2369 state: "default" 0.0;
2372 to_x:"rect.thumbnail.list.3.padding";
2373 to_y:"margin.bottom";
2377 to_x:"rect.thumbnail.list.3.padding";
2378 to_y:"margin.bottom";
2390 name: "rect.thumbnail.list.4.padding";
2394 state: "default" 0.0;
2397 to:"rect.thumbnail.list.4";
2401 to:"rect.thumbnail.list.4";
2412 state: "portrait" 0.0;
2413 inherit: "default" 0.0;
2416 state: "landscape" 0.0;
2417 inherit: "default" 0.0;
2422 name: "rect.thumbnail.list.5";
2426 state: "default" 0.0;
2429 to_x:"rect.thumbnail.list.4.padding";
2430 to_y:"margin.bottom";
2434 to_x:"rect.thumbnail.list.4.padding";
2435 to_y:"margin.bottom";
2447 state: "portrait" 0.0;
2448 inherit: "default" 0.0;
2451 state: "landscape" 0.0;
2452 inherit: "default" 0.0;
2458 name: "object.icon.background";
2462 state: "default" 0.0;
2464 rel1 {to: "background";}
2465 rel2 {to: "background";}
2470 inherit: "default" 0.0;
2475 name: "object.icon.bg";
2479 state: "default" 0.0;
2481 rel1 {to: "rect.icon.bg";}
2482 rel2 {to: "rect.icon.bg";}
2484 normal:"quick_icon_bg_01.png";
2491 inherit: "default" 0.0;
2496 inherit: "default" 0.0;
2501 name: "object.icon.bg.dim";
2505 state: "default" 0.0;
2507 rel1 {to: "background";}
2508 rel2 {to: "background";}
2510 normal:"quick_image_dimmed_port.png";
2517 state: "portrait" 0.0;
2518 inherit: "default" 0.0;
2520 normal:"quick_image_dimmed_port.png";
2527 state: "landscape" 0.0;
2528 inherit: "default" 0.0;
2530 normal:"quick_image_dimmed_land.png";
2538 name: "object.icon";
2542 state: "default" 0.0;
2544 rel1 {to: "rect.icon";}
2545 rel2 {to: "rect.icon";}
2550 inherit: "default" 0.0;
2555 name: "object.icon.sub.bg";
2559 state: "default" 0.0;
2561 rel1 {to: "rect.icon.sub";}
2562 rel2 {to: "rect.icon.sub";}
2564 normal:"quick_icon_bg_small.png";
2572 inherit: "default" 0.0;
2577 inherit: "default" 0.0;
2582 name: "object.icon.sub";
2586 state: "default" 0.0;
2588 rel1 {to: "rect.icon.sub";}
2589 rel2 {to: "rect.icon.sub";}
2594 inherit: "default" 0.0;
2601 name: "object.thumbnail.list.1";
2605 state: "default" 0.0;
2607 rel1 {to: "rect.thumbnail.list.1";}
2608 rel2 {to: "rect.thumbnail.list.1";}
2613 inherit: "default" 0.0;
2618 name: "object.thumbnail.list.2";
2622 state: "default" 0.0;
2624 rel1 {to: "rect.thumbnail.list.2";}
2625 rel2 {to: "rect.thumbnail.list.2";}
2630 inherit: "default" 0.0;
2635 name: "object.thumbnail.list.3";
2639 state: "default" 0.0;
2641 rel1 {to: "rect.thumbnail.list.3";}
2642 rel2 {to: "rect.thumbnail.list.3";}
2647 inherit: "default" 0.0;
2652 name: "object.thumbnail.list.4";
2656 state: "default" 0.0;
2658 rel1 {to: "rect.thumbnail.list.4";}
2659 rel2 {to: "rect.thumbnail.list.4";}
2664 inherit: "default" 0.0;
2669 name: "object.thumbnail.list.5";
2673 state: "default" 0.0;
2675 rel1 {to: "rect.thumbnail.list.5";}
2676 rel2 {to: "rect.thumbnail.list.5";}
2680 state: "portrait" 0.0;
2681 inherit: "default" 0.0;
2684 state: "landscape" 0.0;
2685 inherit: "default" 0.0;
2691 name: "object.text.title";
2696 state: "default" 0.0;
2697 rel1 {to: "rect.text.title";}
2698 rel2 {to: "rect.text.title";}
2700 style: "notibox_title";
2703 text: "some string of text to display";
2710 inherit: "default" 0.0;
2714 state: "show.effect" 0.0;
2715 inherit: "default" 0.0;
2717 style: "notibox_title_effect";
2724 name: "object.text.contents";
2727 effect: TEXT_EFFECT;
2729 state: "default" 0.0;
2730 rel1 {to: "rect.text.contents";}
2731 rel2 {to: "rect.text.contents";}
2732 color: BOX_CONTENTS_FONT_COLOR;
2734 font: BOX_CONTENTS_FONT;
2735 text_class: TEXT_CLASS_TIZEN;
2736 size: BOX_CONTENTS_FONT_SIZE;
2739 text: "some string of text to display";
2746 inherit: "default" 0.0;
2750 state: "show.effect" 0.0;
2751 inherit: "default" 0.0;
2752 color2: BOX_FONT_SHADOW_COLOR;
2753 color3: BOX_FONT_OUTLINE_COLOR;
2758 name: "object.text.contents.short";
2761 effect: TEXT_EFFECT;
2763 state: "default" 0.0;
2764 rel1 {to: "rect.text.contents.short";}
2765 rel2 {to: "rect.text.contents.short";}
2766 color: BOX_CONTENTS_FONT_COLOR;
2768 font: BOX_CONTENTS_FONT;
2769 text_class: TEXT_CLASS_TIZEN;
2770 size: BOX_CONTENTS_FONT_SIZE;
2777 inherit: "default" 0.0;
2781 state: "show.effect" 0.0;
2782 inherit: "default" 0.0;
2783 color2: BOX_FONT_SHADOW_COLOR;
2784 color3: BOX_FONT_OUTLINE_COLOR;
2790 name: "object.text.count";
2793 effect: TEXT_EFFECT;
2795 state: "default" 0.0;
2796 rel1 {to: "rect.text.count";}
2797 rel2 {to: "rect.text.count";}
2798 color: BOX_INFO_COUNT_FONT_COLOR;
2800 font: BOX_INFO_COUNT_FONT;
2801 text_class: TEXT_CLASS_TIZEN;
2802 size: BOX_INFO_COUNT_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;
2824 name: "object.layer.touch";
2830 state: "default" 0.0;
2831 rel1 {to: "background";}
2832 rel2 {to: "background";}
2837 name: "object.button.close";
2841 state: "default" 0.0;
2844 to: "rect.button.close";
2848 to: "rect.button.close";
2856 name: "object.image.button.close";
2861 state: "default" 0.0;
2862 rel1 {to: "rect.button.close";}
2863 rel2 {to: "rect.button.close";}
2865 normal:"quick_btn_close_nor.png";
2872 state: "normal" 0.0;
2873 inherit: "default" 0.0;
2876 state: "pressed" 0.0;
2877 inherit: "default" 0.0;
2879 normal:"quick_btn_close_press.png";
2886 state: "disabled" 0.0;
2887 inherit: "default" 0.0;
2889 normal:"quick_btn_close_dim.png";
2900 name: "init.layout";
2909 name: "box.show.dim";
2910 signal: "box.show.dim";
2913 set_int(g_is_show_dim_bg, 1);
2917 name: "box.hide.dim";
2918 signal: "box.hide.dim";
2921 set_int(g_is_show_dim_bg, 0);
2925 name: "box.portrait";
2926 signal: "box.portrait";
2928 action: STATE_SET "portrait" 0.0;
2929 target: "background";
2930 target: "margin.left.thumnail";
2931 target: "margin.right.thumnail";
2932 target: "rect.text.title";
2933 target: "rect.thumbnail.list.1.padding";
2934 target: "rect.thumbnail.list.2.padding";
2935 target: "rect.thumbnail.list.3.padding";
2936 target: "rect.thumbnail.list.4.padding";
2937 target: "rect.thumbnail.list.5";
2938 target: "object.thumbnail.list.5";
2939 after: "box.portrait.custom";
2942 name: "box.landscape";
2943 signal: "box.landscape";
2945 action: STATE_SET "landscape" 0.0;
2946 target: "background";
2947 target: "margin.left.thumnail";
2948 target: "margin.right.thumnail";
2949 target: "rect.text.title";
2950 target: "rect.thumbnail.list.1.padding";
2951 target: "rect.thumbnail.list.2.padding";
2952 target: "rect.thumbnail.list.3.padding";
2953 target: "rect.thumbnail.list.4.padding";
2954 target: "rect.thumbnail.list.5";
2955 target: "object.thumbnail.list.5";
2956 after: "box.landscape.custom";
2959 name: "box.portrait.custom";
2962 if (get_int(g_is_show_dim_bg) == 1) {
2963 set_state(PART:"object.icon.bg.dim", "portrait", 0.0);
2968 name: "box.landscape.custom";
2971 if (get_int(g_is_show_dim_bg) == 1) {
2972 set_state(PART:"object.icon.bg.dim", "landscape", 0.0);
2977 name: "box.touch.down";
2978 signal: "mouse,clicked,1";
2979 source: "object.layer.touch";
2980 action: SIGNAL_EMIT "selected" "object.layer.touch";
2983 name: "box.button.close.1";
2984 signal: "mouse,down,1";
2985 source: "object.button.close";
2987 if (get_int(g_is_cloase_button_disabled) == 0) {
2988 set_state(PART:"object.image.button.close", "pressed", 0.0);
2993 name: "box.button.close.2";
2994 signal: "mouse,up,1";
2995 source: "object.button.close";
2997 set_state(PART:"object.image.button.close", "normal", 0.0);
3001 name: "box.button.close.3";
3002 signal: "mouse,clicked,1";
3003 source: "object.button.close";
3005 if (get_int(g_is_cloase_button_disabled) == 0) {
3006 set_state(PART:"object.image.button.close", "normal", 0.0);
3007 emit("deleted", "object.layer.touch");
3012 name: "box.button.close.4";
3014 source: "object.button.close";
3016 set_state(PART:"object.image.button.close", "disabled", 0.0);
3017 set_int(g_is_cloase_button_disabled, 1);
3021 name: "box.show.icon.bg";
3022 signal: "box.show.icon.bg";
3024 action: STATE_SET "show" 0.0;
3025 target: "object.icon.bg";
3028 name: "box.hide.icon.bg";
3029 signal: "box.hide.icon.bg";
3031 action: STATE_SET "hide" 0.0;
3032 target: "object.icon.bg";
3035 name: "box.show.icon.sub.bg";
3036 signal: "box.show.sub.bg";
3038 action: STATE_SET "show" 0.0;
3039 target: "object.icon.sub.bg";
3042 name: "box.hide.icon.sub.bg";
3043 signal: "box.hide.sub.bg";
3045 action: STATE_SET "hide" 0.0;
3046 target: "object.icon.sub.bg";
3048 MAKE_PART_SHOW_PROGRAM("object.icon.background")
3049 MAKE_PART_SHOW_PROGRAM("object.icon")
3050 MAKE_PART_SHOW_PROGRAM("object.icon.sub")
3051 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.title")
3052 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.contents")
3053 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.contents.short")
3054 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.count")
3055 MAKE_PART_SHOW_PROGRAM("object.thumbnail.list.1")
3056 MAKE_PART_SHOW_PROGRAM("object.thumbnail.list.2")
3057 MAKE_PART_SHOW_PROGRAM("object.thumbnail.list.3")
3058 MAKE_PART_SHOW_PROGRAM("object.thumbnail.list.4")