2 * Copyright (c) 2009-2015 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
22 #define MAKE_PART_SHOW_PROGRAM(PARTNAME)\
24 name: PARTNAME".object.show";\
25 signal: "object.show";\
27 action: STATE_SET "show" 0.0;\
31 #define MAKE_PART_SHOW_TEXT_PROGRAM(PARTNAME)\
33 name: PARTNAME".text.show";\
34 signal: "object.show";\
36 action: STATE_SET "show" 0.0;\
40 name: PARTNAME".text.show.efect";\
41 signal: "object.show.effect";\
43 action: STATE_SET "show.effect" 0.0;\
48 image: "quick_image_dimmed_port.png" COMP;
49 image: "quick_image_dimmed_land.png" COMP;
50 image: "icon_press.png" COMP;
53 #define NOTIBOX_FONT_SHADOW_COLOR 0 0 0 191
54 #define NOTIBOX_FONT_OUTLINE_COLOR 0 0 0 191
55 #define NOTIBOX_FONT_NO_SHADOW_COLOR 0 0 0 0
56 #define NOTIBOX_FONT_NO_OUTLINE_COLOR 0 0 0 0
58 #define NOTIBOX_CONTENTS_FONT "Tizen:style=Bold"
59 #define NOTIBOX_CONTENTS_FONT_SIZE 20
60 #define NOTIBOX_CONTENTS_FONT_COLOR 248 246 239 255
62 #define NOTIBOX_INFO_FONT "Tizen:style=Bold"
63 #define NOTIBOX_INFO_FONT_SIZE 18
64 #define NOTIBOX_INFO_FONT_COLOR 180 180 180 255
66 #define NOTIBOX_INFO_SHORT_FONT "Tizen:style=Bold"
67 #define NOTIBOX_INFO_SHORT_FONT_SIZE 18
68 #define NOTIBOX_INFO_SHORT_FONT_COLOR 180 180 180 255
70 #define NOTIBOX_INFO_SUB_FONT "Tizen:style=Regular"
71 #define NOTIBOX_INFO_SUB_FONT_SIZE 16
72 #define NOTIBOX_INFO_SUB_FONT_COLOR 180 180 180 255
74 #define TEXT_CLASS_TIZEN "tizen"
75 #define TEXT_EFFECT "OUTLINE_SHADOW"
79 name: "notibox_title";
80 base: "font=Tizen:style=Regular text_class=tizen font_size=22 color=#F8F6EF ellipsis=1.0 linegap=-6 wrap=mixed";
84 name: "notibox_title_effect";
85 base: "font=Tizen:style=Regular text_class=tizen font_size=22 color=#F8F6EF ellipsis=1.0 linegap=-6 wrap=mixed style=outline_shadow outline_color=#000000BF shadow_color=#000000BF";
89 name: "notibox_contents";
90 base: "font=Tizen:style=Bold text_class=tizen font_size=20 color=#F8F6EF ellipsis=1.0 linegap=-6 wrap=mixed";
94 name: "notibox_contents_effect";
95 base: "font=Tizen:style=Bold text_class=tizen font_size=20 color=#F8F6EF ellipsis=1.0 linegap=-6 wrap=mixed style=outline_shadow outline_color=#000000BF shadow_color=#000000BF";
100 base: "font=Tizen:style=Bold text_class=tizen font_size=18 color=#BFBFBFFF ellipsis=1.0 linegap=-6 wrap=mixed";
104 name: "notibox_info_effect";
105 base: "font=Tizen:style=Bold text_class=tizen font_size=18 color=#BFBFBFFF ellipsis=1.0 linegap=-6 wrap=mixed style=outline_shadow outline_color=#000000BF shadow_color=#000000BF";
109 name: "notibox_info_short";
110 base: "font=Tizen:style=Bold text_class=tizen font_size=18 color=#BFBFBFFF ellipsis=1.0 linegap=-6 wrap=mixed";
114 name: "notibox_info_short_effect";
115 base: "font=Tizen:style=Regular text_class=tizen font_size=18 color=#BFBFBFFF ellipsis=1.0 linegap=-6 wrap=mixed style=outline_shadow outline_color=#000000BF shadow_color=#000000BF";
119 name: "notibox_info_sub";
120 base: "font=Tizen:style=Regular text_class=tizen font_size=12 color=#BFBFBFFF ellipsis=1.0 linegap=-6 wrap=mixed";
124 name: "notibox_info_sub_effect";
125 base: "font=Tizen:style=Regular text_class=tizen font_size=12 color=#BFBFBFFF ellipsis=1.0 linegap=-6 wrap=mixed style=outline_shadow outline_color=#000000BF shadow_color=#000000BF";
130 name: "quickpanel/notibox/single_multi";
133 public g_is_show_dim_bg;
135 public init_variables() {
136 set_int(g_is_show_dim_bg, 0);
142 name: "clip.background";
146 state: "default" 0.0;
148 rel1 {to: "background";}
149 rel2 {to: "background";}
158 state: "default" 0.0;
161 color_class: BOX_COLOR_BG;
164 state: "portrait" 0.0;
165 inherit: "default" 0.0;
168 state: "landscape" 0.0;
169 inherit: "default" 0.0;
173 //section layout for margin
180 state: "default" 0.0;
181 min: BOX_MARGIN_L_TEXT_H 0;
198 name: "margin.right";
202 state: "default" 0.0;
203 min: BOX_MARGIN_R_TEXT_H 0;
220 name: "margin.left.icon";
224 state: "default" 0.0;
235 color: 0 255 255 255;
242 name: "margin.top.icon";
246 state: "default" 0.0;
257 color: 255 0 255 255;
264 name: "margin.top.text";
268 state: "default" 0.0;
286 name: "margin.bottom";
290 state: "default" 0.0;
308 name: "margin.bottom.thin";
312 state: "default" 0.0;
330 //section layout for elements
331 //section layout for icon
333 name: "rect.icon.bg";
337 state: "default" 0.0;
338 min: BOX_ICON_BG_SIZE_W BOX_ICON_BG_SIZE_H;
339 max: BOX_ICON_BG_SIZE_W BOX_ICON_BG_SIZE_H;
342 to_x:"margin.left.icon";
343 to_y:"margin.top.icon";
347 to_x:"margin.left.icon";
348 to_y:"margin.top.icon";
364 state: "default" 0.0;
366 min: BOX_ICON_BG_SIZE_W BOX_ICON_BG_SIZE_H;
367 max: BOX_ICON_BG_SIZE_W BOX_ICON_BG_SIZE_H;
378 color: 205 205 255 255;
385 name: "rect.icon.sub.padding";
389 state: "default" 0.0;
402 color: 235 215 235 255;
409 name: "rect.icon.sub";
413 state: "default" 0.0;
414 min: BOX_ICON_SUB_SIZE_W BOX_ICON_SUB_SIZE_H;
415 max: BOX_ICON_SUB_SIZE_W BOX_ICON_SUB_SIZE_H;
418 to:"rect.icon.sub.padding";
422 to:"rect.icon.sub.padding";
427 color: 255 0 100 255;
434 //section layout for texts
436 name: "rect.text.title";
440 state: "default" 0.0;
457 color: 100 100 100 255;
463 state: "without_icon" 0.0;
479 color: 100 100 100 255;
487 name: "rect.text.info.2";
491 state: "default" 0.0;
492 min: 0 BOX_TEXT_INFO_HEIGHT;
496 to_y:"margin.bottom";
501 to_y:"margin.bottom";
506 color: 100 100 100 255;
513 name: "rect.text.info.sub.2";
517 state: "default" 0.0;
518 min: 0 BOX_TEXT_INFO_HEIGHT;
519 max: 0 BOX_TEXT_INFO_HEIGHT;
523 to_y:"margin.bottom";
528 to_y:"margin.bottom";
540 name: "rect.text.info.2.short";
544 state: "default" 0.0;
547 to_y:"rect.text.info.2";
551 to_x:"object.text.info.sub.2";
552 to_y:"rect.text.info.2";
554 offset: BOX_TEXT_SUB_PADDING_WIDTH 0;
558 color: 102 103 104 255;
565 name: "rect.text.info.1";
569 state: "default" 0.0;
570 min: 0 BOX_TEXT_INFO_HEIGHT;
574 to_y:"rect.text.info.2";
579 to_y:"rect.text.info.2";
584 color: 100 150 100 255;
591 name: "rect.text.info.1.multiline";
595 state: "default" 0.0;
599 to_y:"rect.text.info.1";
604 to_y:"margin.bottom.thin";
609 color: 255 150 100 255;
616 name: "rect.text.info.sub.1";
620 state: "default" 0.0;
621 min: 0 BOX_TEXT_INFO_HEIGHT;
622 max: 0 BOX_TEXT_INFO_HEIGHT;
626 to_y:"rect.text.info.2";
631 to_y:"rect.text.info.2";
643 name: "rect.text.info.1.short";
647 state: "default" 0.0;
650 to_y:"rect.text.info.1";
654 to_x:"object.text.info.sub.1";
655 to_y:"rect.text.info.1";
657 offset: BOX_TEXT_SUB_PADDING_WIDTH 0;
661 color: 102 103 104 255;
668 name: "rect.text.contents";
672 state: "default" 0.0;
673 min: 0 BOX_TEXT_CONTENTS_HEIGHT;
677 to_y:"rect.text.info.1";
681 to_x:"object.text.count";
682 to_y:"rect.text.info.1";
688 color: 100 150 100 255;
695 name: "rect.text.contents.multiline.short";
699 state: "default" 0.0;
703 to_y:"rect.text.contents";
708 to_y:"rect.text.info.2";
713 color: 100 150 100 255;
720 name: "rect.text.contents.multiline";
724 state: "default" 0.0;
728 to_y:"rect.text.contents";
733 to_y:"margin.bottom.thin";
738 color: 100 150 100 255;
746 name: "object.icon.background";
749 clip_to: "clip.background";
751 state: "default" 0.0;
753 rel1 {to: "background";}
754 rel2 {to: "background";}
759 inherit: "default" 0.0;
764 name: "object.touch.effect";
768 state: "default" 0.0;
770 rel1 {to: "background";}
771 rel2 {to: "background";}
777 inherit: "default" 0.0;
778 color_class: BOX_COLOR_BG_HIGHLIGHT;
782 state: "show.dim" 0.0;
783 inherit: "default" 0.0;
784 color_class: BOX_COLOR_BG_HIGHLIGHT_DIM;
789 name: "object.icon.bg.dim";
793 state: "default" 0.0;
795 rel1 {to: "background";}
796 rel2 {to: "background";}
798 normal:"quick_image_dimmed_port.png";
805 state: "portrait" 0.0;
806 inherit: "default" 0.0;
808 normal:"quick_image_dimmed_port.png";
815 state: "landscape" 0.0;
816 inherit: "default" 0.0;
818 normal:"quick_image_dimmed_land.png";
830 state: "default" 0.0;
832 min: BOX_ICON_BG_SIZE_W BOX_ICON_BG_SIZE_H;
833 max: BOX_ICON_BG_SIZE_W BOX_ICON_BG_SIZE_H;
834 rel1 {to: "rect.icon";}
835 rel2 {to: "rect.icon";}
840 inherit: "default" 0.0;
845 name: "object.icon.press";
849 state: "default" 0.0;
851 min: BOX_ICON_BG_SIZE_W BOX_ICON_BG_SIZE_H;
852 max: BOX_ICON_BG_SIZE_W BOX_ICON_BG_SIZE_H;
853 rel1 {to: "rect.icon.bg";}
854 rel2 {to: "rect.icon.bg";}
856 normal:"icon_press.png";
864 inherit: "default" 0.0;
869 inherit: "default" 0.0;
874 name: BOX_PART_ICON_SUB;
878 state: "default" 0.0;
880 min: BOX_ICON_SUB_SIZE_W BOX_ICON_SUB_SIZE_H;
881 max: BOX_ICON_SUB_SIZE_W BOX_ICON_SUB_SIZE_H;
882 rel1 {to: "rect.icon.sub";}
883 rel2 {to: "rect.icon.sub";}
888 inherit: "default" 0.0;
894 name: "object.text.title";
899 state: "default" 0.0;
900 rel1 {to: "rect.text.title";}
901 rel2 {to: "rect.text.title";}
903 style: "notibox_title";
907 text: "some string of text to display";
914 inherit: "default" 0.0;
918 state: "show.effect" 0.0;
919 inherit: "default" 0.0;
921 style: "notibox_title_effect";
928 name: "object.text.contents";
933 state: "default" 0.0;
934 rel1 {to: "rect.text.contents";}
935 rel2 {to: "rect.text.contents";}
936 color: NOTIBOX_CONTENTS_FONT_COLOR;
938 font: NOTIBOX_CONTENTS_FONT;
939 text_class: TEXT_CLASS_TIZEN;
940 size: NOTIBOX_CONTENTS_FONT_SIZE;
943 text: "some string of text to display";
950 inherit: "default" 0.0;
954 state: "show.effect" 0.0;
955 inherit: "default" 0.0;
956 color2: NOTIBOX_FONT_SHADOW_COLOR;
957 color3: NOTIBOX_FONT_OUTLINE_COLOR;
962 name: "object.text.contents.multiline.short";
967 state: "default" 0.0;
971 to: "rect.text.contents.multiline.short";
974 to: "rect.text.contents.multiline.short";
977 style: "notibox_contents";
984 inherit: "default" 0.0;
988 state: "show.effect" 0.0;
989 inherit: "default" 0.0;
991 style: "notibox_contents_effect";
997 name: "object.text.contents.multiline";
1002 state: "default" 0.0;
1006 to: "rect.text.contents.multiline";
1009 to: "rect.text.contents.multiline";
1012 style: "notibox_contents";
1019 inherit: "default" 0.0;
1023 state: "show.effect" 0.0;
1024 inherit: "default" 0.0;
1026 style: "notibox_contents_effect";
1032 name: "object.text.count";
1035 effect: TEXT_EFFECT;
1037 state: "default" 0.0;
1038 min: 0 BOX_TEXT_CONTENTS_HEIGHT;
1039 max: 79 BOX_TEXT_CONTENTS_HEIGHT;
1041 to_x:"margin.right";
1042 to_y:"rect.text.info.1";
1046 to_x:"margin.right";
1047 to_y:"rect.text.info.1";
1050 color: NOTIBOX_CONTENTS_FONT_COLOR;
1052 font: NOTIBOX_CONTENTS_FONT;
1053 text_class: TEXT_CLASS_TIZEN;
1054 size: NOTIBOX_CONTENTS_FONT_SIZE;
1058 text: "some string of text to display";
1066 inherit: "default" 0.0;
1070 state: "show.effect" 0.0;
1071 inherit: "default" 0.0;
1072 color2: NOTIBOX_FONT_SHADOW_COLOR;
1073 color3: NOTIBOX_FONT_OUTLINE_COLOR;
1078 name: "object.text.info.1";
1081 effect: TEXT_EFFECT;
1083 state: "default" 0.0;
1084 rel1 {to: "rect.text.info.1";}
1085 rel2 {to: "rect.text.info.1";}
1086 color: NOTIBOX_INFO_FONT_COLOR;
1088 font: NOTIBOX_INFO_FONT;
1089 text_class: TEXT_CLASS_TIZEN;
1090 size: NOTIBOX_INFO_FONT_SIZE;
1093 text: "some string of text to display";
1100 inherit: "default" 0.0;
1104 state: "show.effect" 0.0;
1105 inherit: "default" 0.0;
1106 color2: NOTIBOX_FONT_SHADOW_COLOR;
1107 color3: NOTIBOX_FONT_OUTLINE_COLOR;
1112 name: "object.text.info.1.short";
1115 effect: TEXT_EFFECT;
1117 state: "default" 0.0;
1118 rel1 {to: "rect.text.info.1.short";}
1119 rel2 {to: "rect.text.info.1.short";}
1120 color: NOTIBOX_INFO_SHORT_FONT_COLOR;
1122 font: NOTIBOX_INFO_SHORT_FONT;
1123 text_class: TEXT_CLASS_TIZEN;
1124 size: NOTIBOX_INFO_SHORT_FONT_SIZE;
1131 inherit: "default" 0.0;
1135 state: "show.effect" 0.0;
1136 inherit: "default" 0.0;
1137 color2: NOTIBOX_FONT_SHADOW_COLOR;
1138 color3: NOTIBOX_FONT_OUTLINE_COLOR;
1143 name: "object.text.info.1.multiline";
1148 state: "default" 0.0;
1152 to: "rect.text.info.1.multiline";
1155 to: "rect.text.info.1.multiline";
1158 style: "notibox_info";
1165 inherit: "default" 0.0;
1169 state: "show.effect" 0.0;
1170 inherit: "default" 0.0;
1172 style: "notibox_info_effect";
1178 name: "object.text.info.sub.1";
1181 effect: TEXT_EFFECT;
1183 state: "default" 0.0;
1185 to: "rect.text.info.sub.1";
1189 to: "rect.text.info.sub.1";
1192 color: NOTIBOX_INFO_SUB_FONT_COLOR;
1194 font: NOTIBOX_INFO_SUB_FONT;
1195 text_class: TEXT_CLASS_TIZEN;
1196 size: NOTIBOX_INFO_SUB_FONT_SIZE;
1200 text: "some string of text to display";
1208 inherit: "default" 0.0;
1212 state: "show.effect" 0.0;
1213 inherit: "default" 0.0;
1214 color2: NOTIBOX_FONT_SHADOW_COLOR;
1215 color3: NOTIBOX_FONT_OUTLINE_COLOR;
1221 name: "object.text.info.2";
1224 effect: TEXT_EFFECT;
1226 state: "default" 0.0;
1227 rel1 {to: "rect.text.info.2";}
1228 rel2 {to: "rect.text.info.2";}
1229 color: NOTIBOX_INFO_FONT_COLOR;
1231 font: NOTIBOX_INFO_FONT;
1232 text_class: TEXT_CLASS_TIZEN;
1233 size: NOTIBOX_INFO_FONT_SIZE;
1236 text: "some string of text to display";
1243 inherit: "default" 0.0;
1247 state: "show.effect" 0.0;
1248 inherit: "default" 0.0;
1249 color2: NOTIBOX_FONT_SHADOW_COLOR;
1250 color3: NOTIBOX_FONT_OUTLINE_COLOR;
1255 name: "object.text.info.2.short";
1258 effect: TEXT_EFFECT;
1260 state: "default" 0.0;
1261 rel1 {to: "rect.text.info.2.short";}
1262 rel2 {to: "rect.text.info.2.short";}
1263 color: NOTIBOX_INFO_SHORT_FONT_COLOR;
1265 font: NOTIBOX_INFO_SHORT_FONT;
1266 text_class: TEXT_CLASS_TIZEN;
1267 size: NOTIBOX_INFO_SHORT_FONT_SIZE;
1274 inherit: "default" 0.0;
1278 state: "show.effect" 0.0;
1279 inherit: "default" 0.0;
1280 color2: NOTIBOX_FONT_SHADOW_COLOR;
1281 color3: NOTIBOX_FONT_OUTLINE_COLOR;
1286 name: "object.text.info.sub.2";
1289 effect: TEXT_EFFECT;
1291 state: "default" 0.0;
1293 to: "rect.text.info.sub.2";
1297 to: "rect.text.info.sub.2";
1300 color: NOTIBOX_INFO_SUB_FONT_COLOR;
1302 font: NOTIBOX_INFO_SUB_FONT;
1303 text_class: TEXT_CLASS_TIZEN;
1304 size: NOTIBOX_INFO_SUB_FONT_SIZE;
1308 text: "some string of text to display";
1316 inherit: "default" 0.0;
1320 state: "show.effect" 0.0;
1321 inherit: "default" 0.0;
1322 color2: NOTIBOX_FONT_SHADOW_COLOR;
1323 color3: NOTIBOX_FONT_OUTLINE_COLOR;
1328 name: "object.layer.touch.background";
1334 state: "default" 0.0;
1335 rel1 {to: "background";}
1336 rel2 {to: "background";}
1340 QUICKPANEL_FOCUS_OBJECT("focus", "background", "background")
1342 name: "object.layer.touch.button.1";
1348 state: "default" 0.0;
1352 rel2 {to: "rect.icon";}
1357 inherit: "default" 0.0;
1362 inherit: "default" 0.0;
1370 name: "init.layout";
1379 name: "box.show.dim";
1380 signal: "box.show.dim";
1383 set_int(g_is_show_dim_bg, 1);
1387 name: "box.hide.dim";
1388 signal: "box.hide.dim";
1391 set_int(g_is_show_dim_bg, 0);
1395 name: "box.portrait";
1396 signal: "box.portrait";
1398 action: STATE_SET "portrait" 0.0;
1399 target: "background";
1400 after: "box.portrait.custom";
1403 name: "box.landscape";
1404 signal: "box.landscape";
1406 action: STATE_SET "landscape" 0.0;
1407 target: "background";
1408 after: "box.landscape.custom";
1411 name: "box.portrait.custom";
1414 if (get_int(g_is_show_dim_bg) == 1) {
1415 set_state(PART:"object.icon.bg.dim", "portrait", 0.0);
1420 name: "box.landscape.custom";
1423 if (get_int(g_is_show_dim_bg) == 1) {
1424 set_state(PART:"object.icon.bg.dim", "landscape", 0.0);
1430 name: "box.touch.down";
1431 signal: "mouse,clicked,1";
1432 source: "object.layer.touch.background";
1433 action: SIGNAL_EMIT "selected" "edje";
1437 name: "effect,mouse,down";
1438 signal: "mouse,down,1";
1439 source: "object.layer.touch.background";
1441 if (get_int(g_is_show_dim_bg) == 1) {
1442 set_state(PART:"object.touch.effect", "show.dim", 0.0);
1444 set_state(PART:"object.touch.effect", "show", 0.0);
1449 name: "effect,mouse,up";
1450 signal: "mouse,up,1";
1451 source: "object.layer.touch.background";
1452 action: STATE_SET "default" 0.0;
1453 transition: ACCELERATE 0.20;
1454 target: "object.touch.effect";
1457 name: "box.button.1.touch.clicked";
1458 signal: "mouse,clicked,1";
1459 source: "object.layer.touch.button.1";
1460 action: SIGNAL_EMIT "button_1" "edje";
1463 name: "box.button.1.touch.down";
1464 signal: "mouse,down,1";
1465 source: "object.layer.touch.button.1";
1466 action: STATE_SET "show" 0.0;
1467 target: "object.icon.press";
1470 name: "box.button.1.touch.up";
1471 signal: "mouse,up,1";
1472 source: "object.layer.touch.button.1";
1473 action: STATE_SET "hide" 0.0;
1474 target: "object.icon.press";
1477 name: "box.show.icon.bg";
1478 signal: "box.show.icon.bg";
1480 action: STATE_SET "show" 0.0;
1481 target: "object.layer.touch.button.1";
1484 name: "box.hide.icon.bg";
1485 signal: "box.hide.icon.bg";
1487 action: STATE_SET "hide" 0.0;
1488 target: "object.layer.touch.button.1";
1491 name: "box.title.with.icon";
1492 signal: "box.title.with.icon";
1494 action: STATE_SET "default" 0.0;
1495 target: "rect.text.title";
1498 name: "box.title.without.icon";
1499 signal: "box.title.without.icon";
1501 action: STATE_SET "without_icon" 0.0;
1502 target: "rect.text.title";
1504 MAKE_PART_SHOW_PROGRAM("object.icon.background")
1505 MAKE_PART_SHOW_PROGRAM("object.icon")
1506 MAKE_PART_SHOW_PROGRAM("object.icon.sub")
1507 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.title")
1508 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.contents")
1509 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.contents.multiline.short")
1510 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.contents.multiline")
1511 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.count")
1512 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.info.1")
1513 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.info.1.short")
1514 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.info.1.multiline")
1515 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.info.sub.1")
1516 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.info.2")
1517 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.info.2.short")
1518 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.info.sub.2")
1524 name: "quickpanel/notibox/thumbnail";
1527 public g_is_show_dim_bg;
1529 public init_variables() {
1530 set_int(g_is_show_dim_bg, 0);
1536 name: "clip.background";
1540 state: "default" 0.0;
1542 rel1 {to: "background";}
1543 rel2 {to: "background";}
1552 state: "default" 0.0;
1554 color_class: BOX_COLOR_BG;
1558 state: "portrait" 0.0;
1559 inherit: "default" 0.0;
1562 state: "landscape" 0.0;
1563 inherit: "default" 0.0;
1567 //section layout for margin
1570 name: "margin.left";
1574 state: "default" 0.0;
1575 min: BOX_MARGIN_L_TEXT_H 0;
1592 name: "margin.right";
1596 state: "default" 0.0;
1597 min: BOX_MARGIN_R_TEXT_H 0;
1614 name: "margin.left.icon";
1618 state: "default" 0.0;
1629 color: 0 255 255 255;
1636 name: "margin.top.icon";
1640 state: "default" 0.0;
1651 color: 255 0 255 255;
1658 name: "margin.top.text";
1662 state: "default" 0.0;
1680 name: "margin.bottom";
1684 state: "default" 0.0;
1702 name: "margin.bottom.thin";
1706 state: "default" 0.0;
1724 //section layout for elements
1725 //section layout for icon
1727 name: "rect.icon.bg";
1731 state: "default" 0.0;
1732 min: BOX_ICON_BG_SIZE_W BOX_ICON_BG_SIZE_H;
1733 max: BOX_ICON_BG_SIZE_W BOX_ICON_BG_SIZE_H;
1736 to_x:"margin.left.icon";
1737 to_y:"margin.top.icon";
1741 to_x:"margin.left.icon";
1742 to_y:"margin.top.icon";
1758 state: "default" 0.0;
1760 min: BOX_ICON_BG_SIZE_W BOX_ICON_BG_SIZE_H;
1761 max: BOX_ICON_BG_SIZE_W BOX_ICON_BG_SIZE_H;
1772 color: 205 205 255 255;
1779 name: "rect.icon.sub.padding";
1783 state: "default" 0.0;
1796 color: 235 215 235 255;
1803 name: "rect.icon.sub";
1807 state: "default" 0.0;
1808 min: BOX_ICON_SUB_SIZE_W BOX_ICON_SUB_SIZE_H;
1809 max: BOX_ICON_SUB_SIZE_W BOX_ICON_SUB_SIZE_H;
1812 to:"rect.icon.sub.padding";
1816 to:"rect.icon.sub.padding";
1821 color: 255 0 100 255;
1828 //section layout for texts
1830 name: "rect.text.title";
1834 state: "default" 0.0;
1839 to_x:"rect.icon.bg";
1840 to_y:"rect.icon.bg";
1845 to_x:"margin.right";
1846 to_y:"rect.icon.bg";
1851 color: 100 100 100 255;
1857 state: "without_icon" 0.0;
1863 to_y:"rect.icon.bg";
1867 to_x:"margin.right";
1868 to_y:"rect.icon.bg";
1873 color: 100 100 100 255;
1881 name: "rect.text.info.2";
1885 state: "default" 0.0;
1886 min: 0 BOX_TEXT_INFO_HEIGHT;
1889 to_x:"rect.thumbnail.list.1.padding";
1890 to_y:"margin.bottom";
1894 to_x:"margin.right";
1895 to_y:"margin.bottom";
1900 color: 100 100 100 255;
1907 name: "rect.text.info.1";
1911 state: "default" 0.0;
1912 min: 0 BOX_TEXT_INFO_HEIGHT;
1915 to_x:"rect.thumbnail.list.1.padding";
1916 to_y:"rect.text.info.2";
1920 to_x:"margin.right";
1921 to_y:"rect.text.info.2";
1926 color: 100 150 100 255;
1933 name: "rect.text.info.1.multiline";
1937 state: "default" 0.0;
1940 to_x:"rect.thumbnail.list.1.padding";
1941 to_y:"rect.text.info.1";
1945 to_x:"margin.right";
1946 to_y:"margin.bottom.thin";
1951 color: 255 150 100 255;
1959 name: "rect.text.contents";
1963 state: "default" 0.0;
1964 min: 0 BOX_TEXT_CONTENTS_HEIGHT;
1967 to_y:"rect.thumbnail.list.1";
1971 to_x:"object.text.count";
1972 to_y:"rect.thumbnail.list.1";
1978 color: 100 150 100 255;
1984 //section layout for thumbnail
1986 name: "rect.thumbnail.list.1";
1990 state: "default" 0.0;
1993 to_x:"margin.left.icon";
1994 to_y:"margin.bottom";
1998 to_x:"margin.left.icon";
1999 to_y:"margin.bottom";
2011 name: "rect.thumbnail.list.1.padding";
2015 state: "default" 0.0;
2018 to:"rect.thumbnail.list.1";
2022 to:"rect.thumbnail.list.1";
2033 state: "portrait" 0.0;
2034 inherit: "default" 0.0;
2037 state: "landscape" 0.0;
2038 inherit: "default" 0.0;
2043 name: "rect.thumbnail.list.2";
2047 state: "default" 0.0;
2050 to_x:"rect.thumbnail.list.1.padding";
2051 to_y:"margin.bottom";
2055 to_x:"rect.thumbnail.list.1.padding";
2056 to_y:"margin.bottom";
2068 name: "rect.thumbnail.list.2.padding";
2072 state: "default" 0.0;
2075 to:"rect.thumbnail.list.2";
2079 to:"rect.thumbnail.list.2";
2090 state: "portrait" 0.0;
2091 inherit: "default" 0.0;
2094 state: "landscape" 0.0;
2095 inherit: "default" 0.0;
2100 name: "rect.thumbnail.list.3";
2104 state: "default" 0.0;
2107 to_x:"rect.thumbnail.list.2.padding";
2108 to_y:"margin.bottom";
2112 to_x:"rect.thumbnail.list.2.padding";
2113 to_y:"margin.bottom";
2125 name: "rect.thumbnail.list.3.padding";
2129 state: "default" 0.0;
2132 to:"rect.thumbnail.list.3";
2136 to:"rect.thumbnail.list.3";
2147 state: "portrait" 0.0;
2148 inherit: "default" 0.0;
2151 state: "landscape" 0.0;
2152 inherit: "default" 0.0;
2157 name: "rect.thumbnail.list.4";
2161 state: "default" 0.0;
2164 to_x:"rect.thumbnail.list.3.padding";
2165 to_y:"margin.bottom";
2169 to_x:"rect.thumbnail.list.3.padding";
2170 to_y:"margin.bottom";
2182 name: "rect.thumbnail.list.4.padding";
2186 state: "default" 0.0;
2189 to:"rect.thumbnail.list.4";
2193 to:"rect.thumbnail.list.4";
2204 state: "portrait" 0.0;
2205 inherit: "default" 0.0;
2208 state: "landscape" 0.0;
2209 inherit: "default" 0.0;
2214 name: "rect.thumbnail.list.5";
2218 state: "default" 0.0;
2221 to_x:"rect.thumbnail.list.4.padding";
2222 to_y:"margin.bottom";
2226 to_x:"rect.thumbnail.list.4.padding";
2227 to_y:"margin.bottom";
2239 state: "portrait" 0.0;
2240 inherit: "default" 0.0;
2243 state: "landscape" 0.0;
2244 inherit: "default" 0.0;
2249 name: "object.icon.background";
2252 clip_to: "clip.background";
2254 state: "default" 0.0;
2256 rel1 {to: "background";}
2257 rel2 {to: "background";}
2262 inherit: "default" 0.0;
2267 name: "object.touch.effect";
2271 state: "default" 0.0;
2273 rel1 {to: "background";}
2274 rel2 {to: "background";}
2280 inherit: "default" 0.0;
2281 color_class: BOX_COLOR_BG_HIGHLIGHT;
2285 state: "show.dim" 0.0;
2286 inherit: "default" 0.0;
2287 color_class: BOX_COLOR_BG_HIGHLIGHT_DIM;
2292 name: "object.icon.bg.dim";
2296 state: "default" 0.0;
2298 rel1 {to: "background";}
2299 rel2 {to: "background";}
2301 normal:"quick_image_dimmed_port.png";
2308 state: "portrait" 0.0;
2309 inherit: "default" 0.0;
2311 normal:"quick_image_dimmed_port.png";
2318 state: "landscape" 0.0;
2319 inherit: "default" 0.0;
2321 normal:"quick_image_dimmed_land.png";
2329 name: BOX_PART_ICON;
2333 state: "default" 0.0;
2335 min: BOX_ICON_BG_SIZE_W BOX_ICON_BG_SIZE_H;
2336 max: BOX_ICON_BG_SIZE_W BOX_ICON_BG_SIZE_H;
2337 rel1 {to: "rect.icon";}
2338 rel2 {to: "rect.icon";}
2343 inherit: "default" 0.0;
2348 name: "object.icon.press";
2352 state: "default" 0.0;
2354 min: BOX_ICON_BG_SIZE_W BOX_ICON_BG_SIZE_H;
2355 max: BOX_ICON_BG_SIZE_W BOX_ICON_BG_SIZE_H;
2356 rel1 {to: "rect.icon.bg";}
2357 rel2 {to: "rect.icon.bg";}
2359 normal:"icon_press.png";
2367 inherit: "default" 0.0;
2372 inherit: "default" 0.0;
2377 name: BOX_PART_ICON_SUB;
2381 state: "default" 0.0;
2383 min: BOX_ICON_SUB_SIZE_W BOX_ICON_SUB_SIZE_H;
2384 max: BOX_ICON_SUB_SIZE_W BOX_ICON_SUB_SIZE_H;
2385 rel1 {to: "rect.icon.sub";}
2386 rel2 {to: "rect.icon.sub";}
2391 inherit: "default" 0.0;
2398 name: "object.thumbnail.list.1";
2402 state: "default" 0.0;
2404 rel1 {to: "rect.thumbnail.list.1";}
2405 rel2 {to: "rect.thumbnail.list.1";}
2410 inherit: "default" 0.0;
2415 name: "object.thumbnail.list.2";
2419 state: "default" 0.0;
2421 rel1 {to: "rect.thumbnail.list.2";}
2422 rel2 {to: "rect.thumbnail.list.2";}
2427 inherit: "default" 0.0;
2432 name: "object.thumbnail.list.3";
2436 state: "default" 0.0;
2438 rel1 {to: "rect.thumbnail.list.3";}
2439 rel2 {to: "rect.thumbnail.list.3";}
2444 inherit: "default" 0.0;
2449 name: "object.thumbnail.list.4";
2453 state: "default" 0.0;
2455 rel1 {to: "rect.thumbnail.list.4";}
2456 rel2 {to: "rect.thumbnail.list.4";}
2461 inherit: "default" 0.0;
2466 name: "object.thumbnail.list.5";
2470 state: "default" 0.0;
2472 rel1 {to: "rect.thumbnail.list.5";}
2473 rel2 {to: "rect.thumbnail.list.5";}
2477 state: "portrait" 0.0;
2478 inherit: "default" 0.0;
2481 state: "landscape" 0.0;
2482 inherit: "default" 0.0;
2488 name: "object.text.title";
2493 state: "default" 0.0;
2494 rel1 {to: "rect.text.title";}
2495 rel2 {to: "rect.text.title";}
2497 style: "notibox_title";
2501 text: "some string of text to display";
2508 inherit: "default" 0.0;
2512 state: "show.effect" 0.0;
2513 inherit: "default" 0.0;
2515 style: "notibox_title_effect";
2522 name: "object.text.contents";
2525 effect: TEXT_EFFECT;
2527 state: "default" 0.0;
2528 rel1 {to: "rect.text.contents";}
2529 rel2 {to: "rect.text.contents";}
2530 color: NOTIBOX_CONTENTS_FONT_COLOR;
2532 font: NOTIBOX_CONTENTS_FONT;
2533 text_class: TEXT_CLASS_TIZEN;
2534 size: NOTIBOX_CONTENTS_FONT_SIZE;
2537 text: "some string of text to display";
2544 inherit: "default" 0.0;
2548 state: "show.effect" 0.0;
2549 inherit: "default" 0.0;
2550 color2: NOTIBOX_FONT_SHADOW_COLOR;
2551 color3: NOTIBOX_FONT_OUTLINE_COLOR;
2556 name: "object.text.count";
2559 effect: TEXT_EFFECT;
2561 state: "default" 0.0;
2562 min: 0 BOX_TEXT_CONTENTS_HEIGHT;
2563 max: 790 BOX_TEXT_CONTENTS_HEIGHT;
2565 to_x:"margin.right";
2566 to_y:"rect.thumbnail.list.1";
2570 to_x:"margin.right";
2571 to_y:"rect.thumbnail.list.1";
2574 color: NOTIBOX_CONTENTS_FONT_COLOR;
2576 font: NOTIBOX_CONTENTS_FONT;
2577 text_class: TEXT_CLASS_TIZEN;
2578 size: NOTIBOX_CONTENTS_FONT_SIZE;
2582 text: "some string of text to display";
2590 inherit: "default" 0.0;
2594 state: "show.effect" 0.0;
2595 inherit: "default" 0.0;
2596 color2: NOTIBOX_FONT_SHADOW_COLOR;
2597 color3: NOTIBOX_FONT_OUTLINE_COLOR;
2602 name: "object.text.info.1";
2605 effect: TEXT_EFFECT;
2607 state: "default" 0.0;
2608 rel1 {to: "rect.text.info.1";}
2609 rel2 {to: "rect.text.info.1";}
2610 color: NOTIBOX_INFO_FONT_COLOR;
2612 font: NOTIBOX_INFO_FONT;
2613 text_class: TEXT_CLASS_TIZEN;
2614 size: NOTIBOX_INFO_FONT_SIZE;
2617 text: "some string of text to display";
2624 inherit: "default" 0.0;
2628 state: "show.effect" 0.0;
2629 inherit: "default" 0.0;
2630 color2: NOTIBOX_FONT_SHADOW_COLOR;
2631 color3: NOTIBOX_FONT_OUTLINE_COLOR;
2637 name: "object.text.info.1.multiline";
2642 state: "default" 0.0;
2646 to: "rect.text.info.1.multiline";
2649 to: "rect.text.info.1.multiline";
2652 style: "notibox_info";
2659 inherit: "default" 0.0;
2663 state: "show.effect" 0.0;
2664 inherit: "default" 0.0;
2666 style: "notibox_info_effect";
2673 name: "object.text.info.2";
2676 effect: TEXT_EFFECT;
2678 state: "default" 0.0;
2679 rel1 {to: "rect.text.info.2";}
2680 rel2 {to: "rect.text.info.2";}
2681 color: NOTIBOX_INFO_FONT_COLOR;
2683 font: NOTIBOX_INFO_FONT;
2684 text_class: TEXT_CLASS_TIZEN;
2685 size: NOTIBOX_INFO_FONT_SIZE;
2688 text: "some string of text to display";
2695 inherit: "default" 0.0;
2699 state: "show.effect" 0.0;
2700 inherit: "default" 0.0;
2701 color2: NOTIBOX_FONT_SHADOW_COLOR;
2702 color3: NOTIBOX_FONT_OUTLINE_COLOR;
2708 name: "object.layer.touch.background";
2714 state: "default" 0.0;
2715 rel1 {to: "background";}
2716 rel2 {to: "background";}
2720 QUICKPANEL_FOCUS_OBJECT("focus", "background", "background")
2722 name: "object.layer.touch.button.1";
2728 state: "default" 0.0;
2732 rel2 {to: "rect.icon";}
2737 inherit: "default" 0.0;
2742 inherit: "default" 0.0;
2750 name: "init.layout";
2759 name: "box.show.dim";
2760 signal: "box.show.dim";
2763 set_int(g_is_show_dim_bg, 1);
2767 name: "box.hide.dim";
2768 signal: "box.hide.dim";
2771 set_int(g_is_show_dim_bg, 0);
2775 name: "box.portrait";
2776 signal: "box.portrait";
2778 action: STATE_SET "portrait" 0.0;
2779 target: "background";
2781 target: "rect.thumbnail.list.1.padding";
2782 target: "rect.thumbnail.list.2.padding";
2783 target: "rect.thumbnail.list.3.padding";
2784 target: "rect.thumbnail.list.4.padding";
2785 target: "rect.thumbnail.list.5";
2787 target: "object.thumbnail.list.5";
2788 after: "box.portrait.custom";
2791 name: "box.landscape";
2792 signal: "box.landscape";
2794 action: STATE_SET "landscape" 0.0;
2795 target: "background";
2797 target: "rect.thumbnail.list.1.padding";
2798 target: "rect.thumbnail.list.2.padding";
2799 target: "rect.thumbnail.list.3.padding";
2800 target: "rect.thumbnail.list.4.padding";
2801 target: "rect.thumbnail.list.5";
2802 target: "object.thumbnail.list.5";
2803 after: "box.landscape.custom";
2806 name: "box.portrait.custom";
2809 if (get_int(g_is_show_dim_bg) == 1) {
2810 set_state(PART:"object.icon.bg.dim", "portrait", 0.0);
2815 name: "box.landscape.custom";
2818 if (get_int(g_is_show_dim_bg) == 1) {
2819 set_state(PART:"object.icon.bg.dim", "landscape", 0.0);
2825 name: "box.touch.down";
2826 signal: "mouse,clicked,1";
2827 source: "object.layer.touch.background";
2828 action: SIGNAL_EMIT "selected" "edje";
2832 name: "effect,mouse,down";
2833 signal: "mouse,down,1";
2834 source: "object.layer.touch.background";
2836 if (get_int(g_is_show_dim_bg) == 1) {
2837 set_state(PART:"object.touch.effect", "show.dim", 0.0);
2839 set_state(PART:"object.touch.effect", "show", 0.0);
2844 name: "effect,mouse,up";
2845 signal: "mouse,up,1";
2846 source: "object.layer.touch.background";
2847 action: STATE_SET "default" 0.0;
2848 transition: ACCELERATE 0.20;
2849 target: "object.touch.effect";
2852 name: "box.button.1.touch.clicked";
2853 signal: "mouse,clicked,1";
2854 source: "object.layer.touch.button.1";
2855 action: SIGNAL_EMIT "button_1" "edje";
2858 name: "box.button.1.touch.down";
2859 signal: "mouse,down,1";
2860 source: "object.layer.touch.button.1";
2861 action: STATE_SET "show" 0.0;
2862 target: "object.icon.press";
2865 name: "box.button.1.touch.up";
2866 signal: "mouse,up,1";
2867 source: "object.layer.touch.button.1";
2868 action: STATE_SET "hide" 0.0;
2869 target: "object.icon.press";
2872 name: "box.show.icon.bg";
2873 signal: "box.show.icon.bg";
2875 action: STATE_SET "show" 0.0;
2877 target: "object.layer.touch.button.1";
2880 name: "box.hide.icon.bg";
2881 signal: "box.hide.icon.bg";
2883 action: STATE_SET "hide" 0.0;
2885 target: "object.layer.touch.button.1";
2888 name: "box.title.with.icon";
2889 signal: "box.title.with.icon";
2891 action: STATE_SET "default" 0.0;
2892 target: "rect.text.title";
2895 name: "box.title.without.icon";
2896 signal: "box.title.without.icon";
2898 action: STATE_SET "without_icon" 0.0;
2899 target: "rect.text.title";
2901 MAKE_PART_SHOW_PROGRAM("object.icon.background")
2902 MAKE_PART_SHOW_PROGRAM("object.icon")
2903 MAKE_PART_SHOW_PROGRAM("object.icon.sub")
2904 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.title")
2905 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.contents")
2906 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.count")
2907 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.info.1")
2908 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.info.1.multiline")
2909 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.info.2")
2910 MAKE_PART_SHOW_PROGRAM("object.thumbnail.list.1")
2911 MAKE_PART_SHOW_PROGRAM("object.thumbnail.list.2")
2912 MAKE_PART_SHOW_PROGRAM("object.thumbnail.list.3")
2913 MAKE_PART_SHOW_PROGRAM("object.thumbnail.list.4")