merge with master
[apps/core/preloaded/quickpanel.git] / data / quickpanel_notibox.edc
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
6
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
12
13 //#define DEBUG
14 //#define DEBUG_TEXT
15
16 #define MAKE_PART_SHOW_PROGRAM(PARTNAME)\
17                 program{\
18                         name: PARTNAME".object.show";\
19                         signal: "object.show";\
20                         source: PARTNAME;\
21                         action: STATE_SET "show" 0.0;\
22                         target: PARTNAME;\
23                 }\
24
25 #define MAKE_PART_SHOW_TEXT_PROGRAM(PARTNAME)\
26                 program{\
27                         name: PARTNAME".text.show";\
28                         signal: "object.show";\
29                         source: PARTNAME;\
30                         action: STATE_SET "show" 0.0;\
31                         target: PARTNAME;\
32                 }\
33                 program{\
34                         name: PARTNAME".text.show.efect";\
35                         signal: "object.show.effect";\
36                         source: PARTNAME;\
37                         action: STATE_SET "show.effect" 0.0;\
38                         target: PARTNAME;\
39                 }\
40
41 images {
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;
49 }
50
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
55
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
59
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
63
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
67
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
71
72 #define TEXT_CLASS_TIZEN "tizen"
73 #define TEXT_EFFECT "OUTLINE_SHADOW"
74
75 styles {
76         style {
77                 name: "notibox_title";
78                 base: "font=Tizen:style=Regular text_class=tizen font_size=40 color=#F8F6EF ellipsis=1.0 wrap=mixed";
79         }
80
81         style {
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";
84         }
85
86         style {
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";
89         }
90
91         style {
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";
94         }
95
96         style {
97                 name: "notibox_info";
98                 base: "font=Tizen:style=Regular text_class=tizen font_size=28 color=#F8F6EF7F ellipsis=1.0 linegap=-6 wrap=mixed";
99         }
100
101         style {
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";
104         }
105 }
106
107 group {
108         name: "quickpanel/notibox/single_multi";
109
110         script {
111                 public g_is_cloase_button_disabled;
112                 public g_is_show_dim_bg;
113
114                 public init_variables() {
115                         set_int(g_is_cloase_button_disabled, 0);
116                         set_int(g_is_show_dim_bg, 0);
117                 }
118         }
119
120         parts {
121                 part {
122                         name: "background";
123                         type: RECT;
124                         scale: 1;
125                         description {
126                                 state: "default" 0.0;
127                                 min: BOX_WIDTH_P BOX_HEIGHT_P;
128                                 max: BOX_WIDTH_P BOX_HEIGHT_P;
129                                 color: BOX_COLOR_BG;
130                                 align: 0.0 0.0;
131                         }
132                         description {
133                                 state: "portrait" 0.0;
134                                 inherit: "default" 0.0;
135                         }
136                         description {
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;
141                         }
142                 }
143
144                 //section layout for margin
145
146                 part {
147                         name: "margin.left";
148                         type: RECT;
149                         scale: 1;
150                         description {
151                                 state: "default" 0.0;
152                                 min: BOX_MARGIN_TEXT_H 0;
153                                 fixed: 1 0;
154                                 rel1 {
155                                         relative: 0.0 0.0;
156                                 }
157                                 rel2 {
158                                         relative: 0.0 1.0;
159                                 }
160                                 align: 0.0 0.0;
161 #ifdef DEBUG
162                                 color: 0 0 255 255;
163 #else
164                                 visible:0;
165 #endif
166                         }
167                 }
168                 part {
169                         name: "margin.right";
170                         type: RECT;
171                         scale: 1;
172                         description {
173                                 state: "default" 0.0;
174                                 min: BOX_MARGIN_TEXT_H 0;
175                                 fixed: 1 0;
176                                 rel1 {
177                                         relative: 1.0 0.0;
178                                 }
179                                 rel2 {
180                                         relative: 1.0 1.0;
181                                 }
182                                 align: 1.0 0.0;
183 #ifdef DEBUG
184                                 color: 0 0 255 255;
185 #else
186                                 visible:0;
187 #endif
188                         }
189                 }
190                 part {
191                         name: "margin.right.icon";
192                         type: RECT;
193                         scale: 1;
194                         description {
195                                 state: "default" 0.0;
196                                 min: 6 0;
197                                 fixed: 1 0;
198                                 rel1 {
199                                         relative: 1.0 0.0;
200                                 }
201                                 rel2 {
202                                         relative: 1.0 1.0;
203                                 }
204                                 align: 1.0 0.0;
205 #ifdef DEBUG
206                                 color: 0 255 255 255;
207 #else
208                                 visible:0;
209 #endif
210                         }
211                 }
212                 part {
213                         name: "margin.top.icon";
214                         type: RECT;
215                         scale: 1;
216                         description {
217                                 state: "default" 0.0;
218                                 min: 0 44;
219                                 fixed: 0 1;
220                                 rel1 {
221                                         relative: 0.0 0.0;
222                                 }
223                                 rel2 {
224                                         relative: 1.0 0.0;
225                                 }
226                                 align: 0.0 0.0;
227 #ifdef DEBUG
228                                 color: 255 0 255 255;
229 #else
230                                 visible:0;
231 #endif
232                         }
233                 }
234                 part {
235                         name: "margin.top.text";
236                         type: RECT;
237                         scale: 1;
238                         description {
239                                 state: "default" 0.0;
240                                 min: 0 20;
241                                 fixed: 0 1;
242                                 rel1 {
243                                         relative: 0.0 0.0;
244                                 }
245                                 rel2 {
246                                         relative: 1.0 0.0;
247                                 }
248                                 align: 0.0 0.0;
249 #ifdef DEBUG
250                                 color: 0 0 255 255;
251 #else
252                                 visible:0;
253 #endif
254                         }
255                 }
256                 part {
257                         name: "margin.bottom";
258                         type: RECT;
259                         scale: 1;
260                         description {
261                                 state: "default" 0.0;
262                                 min: 0 22;
263                                 fixed: 0 1;
264                                 rel1 {
265                                         relative: 0.0 1.0;
266                                 }
267                                 rel2 {
268                                         relative: 1.0 1.0;
269                                 }
270                                 align: 0.0 1.0;
271 #ifdef DEBUG
272                                 color: 0 0 255 255;
273 #else
274                                 visible:0;
275 #endif
276                         }
277                 }
278                 part {
279                         name: "margin.bottom.thin";
280                         type: RECT;
281                         scale: 1;
282                         description {
283                                 state: "default" 0.0;
284                                 min: 0 2;
285                                 fixed: 0 1;
286                                 rel1 {
287                                         relative: 0.0 1.0;
288                                 }
289                                 rel2 {
290                                         relative: 1.0 1.0;
291                                 }
292                                 align: 0.0 1.0;
293 #ifdef DEBUG
294                                 color: 0 0 255 255;
295 #else
296                                 visible:0;
297 #endif
298                         }
299                 }
300
301                 //section layout for elements
302                 //section layout for icon
303                 part {
304                         name: "rect.icon.bg";
305                         type: RECT;
306                         scale: 1;
307                         description {
308                                 state: "default" 0.0;
309                                 min: 124 124;
310                                 max: 124 124;
311                                 fixed: 1 1;
312                                 rel1 {
313                                         to_x:"margin.right.icon";
314                                         to_y:"margin.top.icon";
315                                         relative: 0.0 1.0;
316                                 }
317                                 rel2 {
318                                         to_x:"margin.right.icon";
319                                         to_y:"margin.top.icon";
320                                         relative: 0.0 1.0;
321                                 }
322                                 align: 1.0 0.0;
323 #ifdef DEBUG
324                                 color: 255 0 0 255;
325 #else
326                                 visible:0;
327 #endif
328                         }
329                 }
330                 part {
331                         name: "rect.icon";
332                         type: RECT;
333                         scale: 1;
334                         description {
335                                 state: "default" 0.0;
336                                 min: 124 124;
337                                 max: 124 124;
338                                 fixed: 1 1;
339                                 rel1 {
340                                         to:"rect.icon.bg";
341                                         relative: 0.5 0.5;
342                                 }
343                                 rel2 {
344                                         to:"rect.icon.bg";
345                                         relative: 0.5 0.5;
346                                 }
347                                 align: 0.5 0.5;
348 #ifdef DEBUG
349                                 color: 205 205 255 255;
350 #else
351                                 visible:0;
352 #endif
353                         }
354                 }
355                 part {
356                         name: "rect.icon.sub.padding";
357                         type: RECT;
358                         scale: 1;
359                         description {
360                                 state: "default" 0.0;
361                                 min: 0 12;
362                                 fixed: 0 1;
363                                 rel1 {
364                                         to:"rect.icon.bg";
365                                         relative: 0.0 1.0;
366                                 }
367                                 rel2 {
368                                         to:"rect.icon.bg";
369                                         relative: 1.0 1.0;
370                                 }
371                                 align: 0.0 0.0;
372 #ifdef DEBUG
373                                 color: 235 215 235 255;
374 #else
375                                 visible:0;
376 #endif
377                         }
378                 }
379                 part {
380                         name: "rect.icon.sub";
381                         type: RECT;
382                         scale: 1;
383                         description {
384                                 state: "default" 0.0;
385                                 min: 56 56;
386                                 max: 56 56;
387                                 fixed: 1 1;
388                                 rel1 {
389                                         to:"rect.icon.sub.padding";
390                                         relative: 1.0 1.0;
391                                 }
392                                 rel2 {
393                                         to:"rect.icon.sub.padding";
394                                         relative: 1.0 1.0;
395                                 }
396                                 align: 1.0 1.0;
397 #ifdef DEBUG
398                                 color: 255 0 100 255;
399 #else
400                                 visible:0;
401 #endif
402                         }
403                 }
404
405                 //section layout for close button
406                 part {
407                         name: "rect.button.close";
408                         type: RECT;
409                         scale: 1;
410                         description {
411                                 state: "default" 0.0;
412                                 min: 38 38;
413                                 max: 38 38;
414                                 fixed: 1 1;
415                                 rel1 {
416                                         relative: 1.0 0.0;
417                                 }
418                                 rel2 {
419                                         relative: 1.0 0.0;
420                                 }
421                                 align: 1.0 0.0;
422 #ifdef DEBUG
423                                 color: 255 255 255 255;
424 #else
425                                 visible:0;
426 #endif
427                         }
428                 }
429
430                 //section layout for texts
431                 part {
432                         name: "rect.text.title";
433                         type: RECT;
434                         scale: 1;
435                         description {
436                                 state: "default" 0.0;
437                                 min: 190 189;
438                                 max: 190 189;
439                                 fixed: 1 1;
440                                 rel1 {
441                                         to_x:"margin.left";
442                                         to_y:"margin.top.text";
443                                         relative: 1.0 1.0;
444                                 }
445                                 rel2 {
446                                         to_x:"rect.icon.bg";
447                                         to_y:"margin.top.text";
448                                         relative: 0.0 1.0;
449                                 }
450                                 align: 0.0 0.0;
451 #ifdef DEBUG
452                                 color: 100 100 100 255;
453 #else
454                                 visible:0;
455 #endif
456                         }
457                         description {
458                                 state: "portrait" 0.0;
459                                 inherit: "default" 0.0;
460                         }
461                         description {
462                                 state: "landscape" 0.0;
463                                 inherit: "default" 0.0;
464                                 min: 260 189;
465                                 max: 260 189;
466                         }
467                 }
468
469                 part {
470                         name: "rect.text.info.2";
471                         type: RECT;
472                         scale: 1;
473                         description {
474                                 state: "default" 0.0;
475                                 min: 0 BOX_TEXT_INFO_HEIGHT;
476                                 fixed: 0 1;
477                                 rel1 {
478                                         to_x:"margin.left";
479                                         to_y:"margin.bottom";
480                                         relative: 1.0 0.0;
481                                 }
482                                 rel2 {
483                                         to_x:"margin.right";
484                                         to_y:"margin.bottom";
485                                         relative: 0.0 0.0;
486                                 }
487                                 align: 0.0 1.0;
488 #ifdef DEBUG
489                                 color: 100 100 100 255;
490 #else
491                                 visible:0;
492 #endif
493                         }
494                 }
495                 part {
496                         name: "rect.text.info.sub.2";
497                         type: RECT;
498                         scale: 1;
499                         description {
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;
503                                 fixed: 1 1;
504                                 rel1 {
505                                         to_x:"margin.right";
506                                         to_y:"margin.bottom";
507                                         relative: 0.0 0.0;
508                                 }
509                                 rel2 {
510                                         to_x:"margin.right";
511                                         to_y:"margin.bottom";
512                                         relative: 0.0 0.0;
513                                 }
514                                 align: 1.0 1.0;
515 #ifdef DEBUG
516                                 color: 76 76 76 255;
517 #else
518                                 visible:0;
519 #endif
520                         }
521                 }
522                 part {
523                         name: "rect.text.info.sub.2.padding";
524                         type: RECT;
525                         scale: 1;
526                         description {
527                                 state: "default" 0.0;
528                                 min: BOX_TEXT_SUB_PADDING_WIDTH 0;
529                                 fixed: 1 0;
530                                 rel1 {
531                                         to:"rect.text.info.sub.2";
532                                         relative: 0.0 0.0;
533                                 }
534                                 rel2 {
535                                         to:"rect.text.info.sub.2";
536                                         relative: 0.0 1.0;
537                                 }
538                                 align: 1.0 1.0;
539 #ifdef DEBUG
540                                 color: 90 90 90 255;
541 #else
542                                 visible:0;
543 #endif
544                         }
545                 }
546                 part {
547                         name: "rect.text.info.2.short";
548                         type: RECT;
549                         scale: 1;
550                         description {
551                                 state: "default" 0.0;
552                                 rel1 {
553                                         to_x:"margin.left";
554                                         to_y:"rect.text.info.2";
555                                         relative: 1.0 0.0;
556                                 }
557                                 rel2 {
558                                         to_x:"rect.text.info.sub.2.padding";
559                                         to_y:"rect.text.info.2";
560                                         relative: 0.0 1.0;
561                                 }
562                                 align: 0.0 1.0;
563 #ifdef DEBUG
564                                 color: 102 103 104 255;
565 #else
566                                 visible:0;
567 #endif
568                         }
569                 }
570                 part {
571                         name: "rect.text.info.1";
572                         type: RECT;
573                         scale: 1;
574                         description {
575                                 state: "default" 0.0;
576                                 min: 0 BOX_TEXT_INFO_HEIGHT;
577                                 fixed: 0 1;
578                                 rel1 {
579                                         to_x:"margin.left";
580                                         to_y:"rect.text.info.2";
581                                         relative: 1.0 0.0;
582                                 }
583                                 rel2 {
584                                         to_x:"margin.right";
585                                         to_y:"rect.text.info.2";
586                                         relative: 0.0 0.0;
587                                 }
588                                 align: 0.0 1.0;
589 #ifdef DEBUG
590                                 color: 100 150 100 255;
591 #else
592                                 visible:0;
593 #endif
594                         }
595                 }
596                 part {
597                         name: "rect.text.info.1.multiline";
598                         type: RECT;
599                         scale: 1;
600                         description {
601                                 state: "default" 0.0;
602                                 fixed: 1 1;
603                                 rel1 {
604                                         to_x:"margin.left";
605                                         to_y:"rect.text.info.1";
606                                         relative: 1.0 0.0;
607                                 }
608                                 rel2 {
609                                         to_x:"margin.right";
610                                         to_y:"margin.bottom.thin";
611                                         relative: 0.0 0.0;
612                                 }
613                                 align: 0.0 0.0;
614 #ifdef DEBUG
615                                 color: 255 150 100 255;
616 #else
617                                 visible:0;
618 #endif
619                         }
620                 }
621                 part {
622                         name: "rect.text.info.sub.1";
623                         type: RECT;
624                         scale: 1;
625                         description {
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;
629                                 fixed: 1 1;
630                                 rel1 {
631                                         to_x:"margin.right";
632                                         to_y:"rect.text.info.2";
633                                         relative: 0.0 0.0;
634                                 }
635                                 rel2 {
636                                         to_x:"margin.right";
637                                         to_y:"rect.text.info.2";
638                                         relative: 0.0 0.0;
639                                 }
640                                 align: 1.0 1.0;
641 #ifdef DEBUG
642                                 color: 76 76 76 255;
643 #else
644                                 visible:0;
645 #endif
646                         }
647                 }
648                 part {
649                         name: "rect.text.info.sub.1.padding";
650                         type: RECT;
651                         scale: 1;
652                         description {
653                                 state: "default" 0.0;
654                                 min: BOX_TEXT_SUB_PADDING_WIDTH 0;
655                                 fixed: 1 0;
656                                 rel1 {
657                                         to:"rect.text.info.sub.1";
658                                         relative: 0.0 0.0;
659                                 }
660                                 rel2 {
661                                         to:"rect.text.info.sub.1";
662                                         relative: 0.0 1.0;
663                                 }
664                                 align: 1.0 1.0;
665 #ifdef DEBUG
666                                 color: 90 90 90 255;
667 #else
668                                 visible:0;
669 #endif
670                         }
671                 }
672                 part {
673                         name: "rect.text.info.1.short";
674                         type: RECT;
675                         scale: 1;
676                         description {
677                                 state: "default" 0.0;
678                                 rel1 {
679                                         to_x:"margin.left";
680                                         to_y:"rect.text.info.1";
681                                         relative: 1.0 0.0;
682                                 }
683                                 rel2 {
684                                         to_x:"rect.text.info.sub.1.padding";
685                                         to_y:"rect.text.info.1";
686                                         relative: 0.0 1.0;
687                                 }
688                                 align: 0.0 1.0;
689 #ifdef DEBUG
690                                 color: 102 103 104 255;
691 #else
692                                 visible:0;
693 #endif
694                         }
695                 }
696                 part {
697                         name: "rect.text.margin.contents";
698                         type: RECT;
699                         scale: 1;
700                         description {
701                                 state: "default" 0.0;
702                                 min: 0 20;
703                                 fixed: 0 1;
704                                 rel1 {
705                                         to_x:"margin.left";
706                                         to_y:"rect.text.info.1";
707                                         relative: 1.0 0.0;
708                                 }
709                                 rel2 {
710                                         to_x:"margin.right";
711                                         to_y:"rect.text.info.1";
712                                         relative: 0.0 0.0;
713                                 }
714                                 align: 0.0 1.0;
715 #ifdef DEBUG
716                                 color: 255 255 255 255;
717 #else
718                                 visible:0;
719 #endif
720                         }
721                 }
722                 part {
723                         name: "rect.text.contents";
724                         type: RECT;
725                         scale: 1;
726                         description {
727                                 state: "default" 0.0;
728                                 min: 0 BOX_TEXT_CONTENTS_HEIGHT;
729                                 fixed: 0 1;
730                                 rel1 {
731                                         to_x:"margin.left";
732                                         to_y:"rect.text.margin.contents";
733                                         relative: 1.0 0.0;
734                                 }
735                                 rel2 {
736                                         to_x:"margin.right";
737                                         to_y:"rect.text.margin.contents";
738                                         relative: 0.0 0.0;
739                                 }
740                                 align: 0.0 1.0;
741 #ifdef DEBUG
742                                 color: 100 150 100 255;
743 #else
744                                 visible:0;
745 #endif
746                         }
747                 }
748                 part {
749                         name: "rect.text.contents.multiline";
750                         type: RECT;
751                         scale: 1;
752                         description {
753                                 state: "default" 0.0;
754                                 fixed: 1 1;
755                                 rel1 {
756                                         to_x:"margin.left";
757                                         to_y:"rect.text.contents";
758                                         relative: 1.0 0.0;
759                                 }
760                                 rel2 {
761                                         to_x:"margin.right";
762                                         to_y:"margin.bottom.thin";
763                                         relative: 0.0 0.0;
764                                 }
765                                 align: 0.0 1.0;
766 #ifdef DEBUG
767                                 color: 100 150 100 255;
768 #else
769                                 visible:0;
770 #endif
771                         }
772                 }
773                 part {
774                         name: "rect.text.count";
775                         type: RECT;
776                         scale: 1;
777                         description {
778                                 state: "default" 0.0;
779                                 min: 40 58;
780                                 max: 40 58;
781                                 fixed: 1 1;
782                                 rel1 {
783                                         to_x:"margin.left";
784                                         to_y:"rect.text.margin.contents";
785                                         relative: 1.0 0.0;
786                                 }
787                                 rel2 {
788                                         to_x:"margin.left";
789                                         to_y:"rect.text.margin.contents";
790                                         relative: 1.0 0.0;
791                                 }
792                                 align: 0.0 1.0;
793 #ifdef DEBUG
794                                 color: 190 190 190 255;
795 #else
796                                 visible:0;
797 #endif
798                         }
799                         description {
800                                 state: "count1" 0.0;
801                                 inherit: "default" 0.0;
802                         }
803                         description {
804                                 state: "count2" 0.0;
805                                 inherit: "default" 0.0;
806                                 min: 72 58;
807                         }
808                         description {
809                                 state: "count3" 0.0;
810                                 inherit: "default" 0.0;
811                                 min: 103 58;
812                         }
813                         description {
814                                 state: "count4" 0.0;
815                                 inherit: "default" 0.0;
816                                 min: 137 58;
817                         }
818                         description {
819                                 state: "count5" 0.0;
820                                 inherit: "default" 0.0;
821                                 min: 167 58;
822                         }
823                 }
824                 part {
825                         name: "rect.text.count.padding";
826                         type: RECT;
827                         scale: 1;
828                         description {
829                                 state: "default" 0.0;
830                                 min: 10 58;
831                                 rel1 {
832                                         to:"rect.text.count";
833                                         relative: 1.0 0.0;
834                                 }
835                                 rel2 {
836                                         to:"rect.text.count";
837                                         relative: 1.0 1.0;
838                                 }
839                                 align: 0.0 0.0;
840 #ifdef DEBUG
841                                 color: 0 0 0 255;
842 #else
843                                 visible:0;
844 #endif
845                         }
846                 }
847                 part {
848                         name: "rect.text.contents.short";
849                         type: RECT;
850                         scale: 1;
851                         description {
852                                 state: "default" 0.0;
853                                 min: 0 BOX_TEXT_CONTENTS_HEIGHT;
854                                 fixed: 0 1;
855                                 rel1 {
856                                         to_x:"rect.text.count.padding";
857                                         to_y:"rect.text.margin.contents";
858                                         relative: 1.0 0.0;
859                                 }
860                                 rel2 {
861                                         to_x:"margin.right";
862                                         to_y:"rect.text.margin.contents";
863                                         relative: 0.0 0.0;
864                                 }
865                                 align: 0.0 1.0;
866 #ifdef DEBUG
867                                 color: 40 255 100 255;
868 #else
869                                 visible:0;
870 #endif
871                         }
872                 }
873
874                 //section objects
875                 part{
876                         name: "object.icon.background";
877                         type:SWALLOW;
878                         scale: 1;
879                         description {
880                                 state: "default" 0.0;
881                                 fixed: 0 0;
882                                 rel1 {to: "background";}
883                                 rel2 {to: "background";}
884                                 visible:0;
885                         }
886                         description {
887                                 state: "show" 0.0;
888                                 inherit: "default" 0.0;
889                                 visible:1;
890                         }
891                 }
892                 part{
893                         name: "object.icon.bg";
894                         type:IMAGE;
895                         scale:1;
896                         description {
897                                 state: "default" 0.0;
898                                 fixed: 0 0;
899                                 rel1 {to: "rect.icon.bg";}
900                                 rel2 {to: "rect.icon.bg";}
901                                 image {
902                                         normal:"quick_icon_bg_01.png";
903                                         border: 0 0 0 0;
904                                         border_scale: 1;
905                                 }
906                         }
907                         description {
908                                 state: "show" 0.0;
909                                 inherit: "default" 0.0;
910                                 visible:1;
911                         }
912                         description {
913                                 state: "hide" 0.0;
914                                 inherit: "default" 0.0;
915                                 visible:0;
916                         }
917                 }
918                 part{
919                         name: "object.icon.bg.dim";
920                         type:IMAGE;
921                         scale:1;
922                         description {
923                                 state: "default" 0.0;
924                                 fixed: 0 0;
925                                 rel1 {to: "background";}
926                                 rel2 {to: "background";}
927                                 image {
928                                         normal:"quick_image_dimmed_port.png";
929                                         border: 0 0 0 0;
930                                         border_scale: 1;
931                                 }
932                                 visible:0;
933                         }
934                         description {
935                                 state: "portrait" 0.0;
936                                 inherit: "default" 0.0;
937                                 image {
938                                         normal:"quick_image_dimmed_port.png";
939                                         border: 0 0 0 0;
940                                         border_scale: 1;
941                                 }
942                                 visible:1;
943                         }
944                         description {
945                                 state: "landscape" 0.0;
946                                 inherit: "default" 0.0;
947                                 image {
948                                         normal:"quick_image_dimmed_land.png";
949                                         border: 0 0 0 0;
950                                         border_scale: 1;
951                                 }
952                                 visible:1;
953                         }
954                 }
955                 part{
956                         name: "object.icon";
957                         type:SWALLOW;
958                         scale: 1;
959                         description {
960                                 state: "default" 0.0;
961                                 fixed: 0 0;
962                                 rel1 {to: "rect.icon";}
963                                 rel2 {to: "rect.icon";}
964                                 visible:0;
965                         }
966                         description {
967                                 state: "show" 0.0;
968                                 inherit: "default" 0.0;
969                                 visible:1;
970                         }
971                 }
972                 part{
973                         name: "object.icon.sub.bg";
974                         type:IMAGE;
975                         scale:1;
976                         description {
977                                 state: "default" 0.0;
978                                 fixed: 0 0;
979                                 rel1 {to: "rect.icon.sub";}
980                                 rel2 {to: "rect.icon.sub";}
981                                 image {
982                                         normal:"quick_icon_bg_small.png";
983                                         border: 0 0 0 0;
984                                         border_scale: 1;
985                                 }
986                                 visible:0;
987                         }
988                         description {
989                                 state: "show" 0.0;
990                                 inherit: "default" 0.0;
991                                 visible:1;
992                         }
993                         description {
994                                 state: "hide" 0.0;
995                                 inherit: "default" 0.0;
996                                 visible:0;
997                         }
998                 }
999                 part{
1000                         name: "object.icon.sub";
1001                         type:SWALLOW;
1002                         scale: 1;
1003                         description {
1004                                 state: "default" 0.0;
1005                                 fixed: 0 0;
1006                                 rel1 {to: "rect.icon.sub";}
1007                                 rel2 {to: "rect.icon.sub";}
1008                                 visible:0;
1009                         }
1010                         description {
1011                                 state: "show" 0.0;
1012                                 inherit: "default" 0.0;
1013                                 visible:1;
1014                         }
1015                 }
1016
1017                 part {
1018                         name: "object.text.title";
1019                         scale: 1;
1020                         type: TEXTBLOCK;
1021                         multiline: 1;
1022                         description {
1023                                 state: "default" 0.0;
1024                                 rel1 {to: "rect.text.title";}
1025                                 rel2 {to: "rect.text.title";}
1026                                 text {
1027                                         style: "notibox_title";
1028                                         align: 0.0 0.0;
1029 #ifdef DEBUG_TEXT
1030                                         text: "some string of text to display";
1031 #endif
1032                                 }
1033                                 visible:0;
1034                         }
1035                         description {
1036                                 state: "show" 0.0;
1037                                 inherit: "default" 0.0;
1038                                 visible:1;
1039                         }
1040                         description {
1041                                 state: "show.effect" 0.0;
1042                                 inherit: "default" 0.0;
1043                                 text {
1044                                         style: "notibox_title_effect";
1045                                 }
1046                                 visible:1;
1047                         }
1048                 }
1049
1050                 part {
1051                         name: "object.text.contents";
1052                         scale: 1;
1053                         type: TEXT;
1054                         effect: TEXT_EFFECT;
1055                         description {
1056                                 state: "default" 0.0;
1057                                 rel1 {to: "rect.text.contents";}
1058                                 rel2 {to: "rect.text.contents";}
1059                                 color: BOX_CONTENTS_FONT_COLOR;
1060                                 text {
1061                                         font: BOX_CONTENTS_FONT;
1062                                         text_class: TEXT_CLASS_TIZEN;
1063                                         size: BOX_CONTENTS_FONT_SIZE;
1064                                         align: 0.0 0.5;
1065 #ifdef DEBUG_TEXT
1066                                         text: "some string of text to display";
1067 #endif
1068                                 }
1069                                 visible:0;
1070                         }
1071                         description {
1072                                 state: "show" 0.0;
1073                                 inherit: "default" 0.0;
1074                                 visible:1;
1075                         }
1076                         description {
1077                                 state: "show.effect" 0.0;
1078                                 inherit: "default" 0.0;
1079                                 color2: BOX_FONT_SHADOW_COLOR;
1080                                 color3: BOX_FONT_OUTLINE_COLOR;
1081                                 visible:1;
1082                         }
1083                 }
1084                 part {
1085                         name: "object.text.contents.short";
1086                         scale: 1;
1087                         type: TEXT;
1088                         effect: TEXT_EFFECT;
1089                         description {
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;
1094                                 text {
1095                                         font: BOX_CONTENTS_FONT;
1096                                         text_class: TEXT_CLASS_TIZEN;
1097                                         size: BOX_CONTENTS_FONT_SIZE;
1098                                         align: 0.0 0.5;
1099                                 }
1100                                 visible:0;
1101                         }
1102                         description {
1103                                 state: "show" 0.0;
1104                                 inherit: "default" 0.0;
1105                                 visible:1;
1106                         }
1107                         description {
1108                                 state: "show.effect" 0.0;
1109                                 inherit: "default" 0.0;
1110                                 color2: BOX_FONT_SHADOW_COLOR;
1111                                 color3: BOX_FONT_OUTLINE_COLOR;
1112                                 visible:1;
1113                         }
1114                 }
1115                 part {
1116                         name: "object.text.contents.multiline";
1117                         scale: 1;
1118                         type: TEXTBLOCK;
1119                         multiline: 1;
1120                         description {
1121                                 state: "default" 0.0;
1122                                 align: 0.0 0.0;
1123                                 fixed: 1 1;
1124                                 rel1 {
1125                                         to: "rect.text.contents.multiline";
1126                                 }
1127                                 rel2 {
1128                                         to: "rect.text.contents.multiline";
1129                                 }
1130                                 text {
1131                                                 style: "notibox_contents";
1132                                                 align: 0.0 0.0;
1133                                                 fit: 0 0;
1134                                 }
1135                                 visible:0;
1136                         }
1137                         description {
1138                                 state: "show" 0.0;
1139                                 inherit: "default" 0.0;
1140                                 visible:1;
1141                         }
1142                         description {
1143                                 state: "show.effect" 0.0;
1144                                 inherit: "default" 0.0;
1145                                 text {
1146                                         style: "notibox_contents_effect";
1147                                 }
1148                                 visible:1;
1149                         }
1150                 }
1151                 part {
1152                         name: "object.text.count";
1153                         scale: 1;
1154                         type: TEXT;
1155                         effect: TEXT_EFFECT;
1156                         description {
1157                                 state: "default" 0.0;
1158                                 rel1 {to: "rect.text.count";}
1159                                 rel2 {to: "rect.text.count";}
1160                                 color: BOX_INFO_COUNT_FONT_COLOR;
1161                                 text {
1162                                         font: BOX_INFO_COUNT_FONT;
1163                                         text_class: TEXT_CLASS_TIZEN;
1164                                         size: BOX_INFO_COUNT_FONT_SIZE;
1165                                         align: 0.0 0.5;
1166 #ifdef DEBUG_TEXT
1167                                         text: "3";
1168 #endif
1169                                 }
1170                                 visible:0;
1171                         }
1172                         description {
1173                                 state: "show" 0.0;
1174                                 inherit: "default" 0.0;
1175                                 visible:1;
1176                         }
1177                         description {
1178                                 state: "show.effect" 0.0;
1179                                 inherit: "default" 0.0;
1180                                 color2: BOX_FONT_SHADOW_COLOR;
1181                                 color3: BOX_FONT_OUTLINE_COLOR;
1182                                 visible:1;
1183                         }
1184                 }
1185
1186                 part {
1187                         name: "object.text.info.1";
1188                         scale: 1;
1189                         type: TEXT;
1190                         effect: TEXT_EFFECT;
1191                         description {
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;
1196                                 text {
1197                                         font: BOX_INFO_FONT;
1198                                         text_class: TEXT_CLASS_TIZEN;
1199                                         size: BOX_INFO_FONT_SIZE;
1200                                         align: 0.0 0.5;
1201 #ifdef DEBUG_TEXT
1202                                         text: "some string of text to display";
1203 #endif
1204                                 }
1205                                 visible:0;
1206                         }
1207                         description {
1208                                 state: "show" 0.0;
1209                                 inherit: "default" 0.0;
1210                                 visible:1;
1211                         }
1212                         description {
1213                                 state: "show.effect" 0.0;
1214                                 inherit: "default" 0.0;
1215                                 color2: BOX_FONT_SHADOW_COLOR;
1216                                 color3: BOX_FONT_OUTLINE_COLOR;
1217                                 visible:1;
1218                         }
1219                 }
1220                 part {
1221                         name: "object.text.info.1.short";
1222                         scale: 1;
1223                         type: TEXT;
1224                         effect: TEXT_EFFECT;
1225                         description {
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;
1230                                 text {
1231                                         font: BOX_INFO_FONT;
1232                                         text_class: TEXT_CLASS_TIZEN;
1233                                         size: BOX_INFO_FONT_SIZE;
1234                                         align: 0.0 0.5;
1235                                 }
1236                                 visible:0;
1237                         }
1238                         description {
1239                                 state: "show" 0.0;
1240                                 inherit: "default" 0.0;
1241                                 visible:1;
1242                         }
1243                         description {
1244                                 state: "show.effect" 0.0;
1245                                 inherit: "default" 0.0;
1246                                 color2: BOX_FONT_SHADOW_COLOR;
1247                                 color3: BOX_FONT_OUTLINE_COLOR;
1248                                 visible:1;
1249                         }
1250                 }
1251                 part {
1252                         name: "object.text.info.1.multiline";
1253                         scale: 1;
1254                         type: TEXTBLOCK;
1255                         multiline: 1;
1256                         description {
1257                                 state: "default" 0.0;
1258                                 align: 0.0 0.0;
1259                                 fixed: 1 1;
1260                                 rel1 {
1261                                         to: "rect.text.info.1.multiline";
1262                                 }
1263                                 rel2 {
1264                                         to: "rect.text.info.1.multiline";
1265                                 }
1266                                 text {
1267                                                 style: "notibox_info";
1268                                                 align: 0.0 0.0;
1269                                                 fit: 0 0;
1270                                 }
1271                                 visible:0;
1272                         }
1273                         description {
1274                                 state: "show" 0.0;
1275                                 inherit: "default" 0.0;
1276                                 visible:1;
1277                         }
1278                         description {
1279                                 state: "show.effect" 0.0;
1280                                 inherit: "default" 0.0;
1281                                 text {
1282                                         style: "notibox_info_effect";
1283                                 }
1284                                 visible:1;
1285                         }
1286                 }
1287                 part {
1288                         name: "object.text.info.sub.1";
1289                         scale: 1;
1290                         type: TEXT;
1291                         effect: TEXT_EFFECT;
1292                         description {
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;
1297                                 text {
1298                                         font: BOX_INFO_SUB_FONT;
1299                                         text_class: TEXT_CLASS_TIZEN;
1300                                         size: BOX_INFO_SUB_FONT_SIZE;
1301                                         align: 0.0 0.5;
1302 #ifdef DEBUG_TEXT
1303                                         text: "some string of text to display";
1304 #endif
1305                                 }
1306                                 visible:0;
1307                         }
1308                         description {
1309                                 state: "show" 0.0;
1310                                 inherit: "default" 0.0;
1311                                 visible:1;
1312                         }
1313                         description {
1314                                 state: "show.effect" 0.0;
1315                                 inherit: "default" 0.0;
1316                                 color2: BOX_FONT_SHADOW_COLOR;
1317                                 color3: BOX_FONT_OUTLINE_COLOR;
1318                                 visible:1;
1319                         }
1320                 }
1321
1322                 part {
1323                         name: "object.text.info.2";
1324                         scale: 1;
1325                         type: TEXT;
1326                         effect: TEXT_EFFECT;
1327                         description {
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;
1332                                 text {
1333                                         font: BOX_INFO_FONT;
1334                                         text_class: TEXT_CLASS_TIZEN;
1335                                         size: BOX_INFO_FONT_SIZE;
1336                                         align: 0.0 0.5;
1337 #ifdef DEBUG_TEXT
1338                                         text: "some string of text to display";
1339 #endif
1340                                 }
1341                                 visible:0;
1342                         }
1343                         description {
1344                                 state: "show" 0.0;
1345                                 inherit: "default" 0.0;
1346                                 visible:1;
1347                         }
1348                         description {
1349                                 state: "show.effect" 0.0;
1350                                 inherit: "default" 0.0;
1351                                 color2: BOX_FONT_SHADOW_COLOR;
1352                                 color3: BOX_FONT_OUTLINE_COLOR;
1353                                 visible:1;
1354                         }
1355                 }
1356                 part {
1357                         name: "object.text.info.2.short";
1358                         scale: 1;
1359                         type: TEXT;
1360                         effect: TEXT_EFFECT;
1361                         description {
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;
1366                                 text {
1367                                         font: BOX_INFO_FONT;
1368                                         text_class: TEXT_CLASS_TIZEN;
1369                                         size: BOX_INFO_FONT_SIZE;
1370                                         align: 0.0 0.5;
1371                                 }
1372                                 visible:0;
1373                         }
1374                         description {
1375                                 state: "show" 0.0;
1376                                 inherit: "default" 0.0;
1377                                 visible:1;
1378                         }
1379                         description {
1380                                 state: "show.effect" 0.0;
1381                                 inherit: "default" 0.0;
1382                                 color2: BOX_FONT_SHADOW_COLOR;
1383                                 color3: BOX_FONT_OUTLINE_COLOR;
1384                                 visible:1;
1385                         }
1386                 }
1387                 part {
1388                         name: "object.text.info.sub.2";
1389                         scale: 1;
1390                         type: TEXT;
1391                         effect: TEXT_EFFECT;
1392                         description {
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;
1397                                 text {
1398                                         font: BOX_INFO_SUB_FONT;
1399                                         text_class: TEXT_CLASS_TIZEN;
1400                                         size: BOX_INFO_SUB_FONT_SIZE;
1401                                         align: 0.0 0.5;
1402 #ifdef DEBUG_TEXT
1403                                         text: "some string of text to display";
1404 #endif
1405                                 }
1406                                 visible:0;
1407                         }
1408                         description {
1409                                 state: "show" 0.0;
1410                                 inherit: "default" 0.0;
1411                                 visible:1;
1412                         }
1413                         description {
1414                                 state: "show.effect" 0.0;
1415                                 inherit: "default" 0.0;
1416                                 color2: BOX_FONT_SHADOW_COLOR;
1417                                 color3: BOX_FONT_OUTLINE_COLOR;
1418                                 visible:1;
1419                         }
1420                 }
1421                 part {
1422                         name: "object.layer.touch";
1423                         mouse_events: 1;
1424                         repeat_events: 1;
1425                         scale: 1;
1426                         type: RECT;
1427                         description {
1428                                 state: "default" 0.0;
1429                                 rel1 {to: "background";}
1430                                 rel2 {to: "background";}
1431                                 color: 0 0 0 0;
1432                         }
1433                 }
1434                 part{
1435                         name: "object.button.close";
1436                         type:RECT;
1437                         scale:1;
1438                         description {
1439                                 state: "default" 0.0;
1440                                 min:100 100;
1441                                 rel1 {
1442                                         to: "rect.button.close";
1443                                         relative: 1.0 0.0;
1444                                 }
1445                                 rel2 {
1446                                         to: "rect.button.close";
1447                                         relative: 1.0 0.0;
1448                                 }
1449                                 color: 0 0 0 0;
1450                                 align: 1.0 0.0;
1451                         }
1452                 }
1453                 part{
1454                         name: "object.image.button.close";
1455                         type:IMAGE;
1456                         scale:1;
1457                         repeat_events: 1;
1458                         description {
1459                                 state: "default" 0.0;
1460                                 rel1 {to: "rect.button.close";}
1461                                 rel2 {to: "rect.button.close";}
1462                                 image {
1463                                         normal:"quick_btn_close_nor.png";
1464                                         border: 0 0 0 0;
1465                                         border_scale: 1;
1466                                 }
1467                                 align: 0.0 1.0;
1468                         }
1469                         description {
1470                                 state: "normal" 0.0;
1471                                 inherit: "default" 0.0;
1472                         }
1473                         description {
1474                                 state: "pressed" 0.0;
1475                                 inherit: "default" 0.0;
1476                                 image {
1477                                         normal:"quick_btn_close_press.png";
1478                                         border: 0 0 0 0;
1479                                         border_scale: 1;
1480                                 }
1481                                 align: 0.0 1.0;
1482                         }
1483                         description {
1484                                 state: "disabled" 0.0;
1485                                 inherit: "default" 0.0;
1486                                 image {
1487                                         normal:"quick_btn_close_dim.png";
1488                                         border: 0 0 0 0;
1489                                         border_scale: 1;
1490                                 }
1491                                 align: 0.0 1.0;
1492                         }
1493                 }
1494         }
1495
1496         programs {
1497                 program {
1498                         name: "init.layout";
1499                         signal: "load";
1500                         source: "";
1501                         in: 0.0 0.0;
1502                         script{
1503                                 init_variables();
1504                         }
1505                 }
1506                 program{
1507                         name: "box.show.dim";
1508                         signal: "box.show.dim";
1509                         source: "box.prog";
1510                         script {
1511                                 set_int(g_is_show_dim_bg, 1);
1512                         }
1513                 }
1514                 program{
1515                         name: "box.hide.dim";
1516                         signal: "box.hide.dim";
1517                         source: "box.prog";
1518                         script {
1519                                 set_int(g_is_show_dim_bg, 0);
1520                         }
1521                 }
1522                 program{
1523                         name: "box.portrait";
1524                         signal: "box.portrait";
1525                         source: "box.prog";
1526                         action: STATE_SET "portrait" 0.0;
1527                         target: "background";
1528                         target: "rect.text.title";
1529                         after: "box.portrait.custom";
1530                 }
1531                 program{
1532                         name: "box.landscape";
1533                         signal: "box.landscape";
1534                         source: "box.prog";
1535                         action: STATE_SET "landscape" 0.0;
1536                         target: "background";
1537                         target: "rect.text.title";
1538                         after: "box.landscape.custom";
1539                 }
1540                 program{
1541                         name: "box.portrait.custom";
1542                         source: "box.prog";
1543                         script {
1544                                 if (get_int(g_is_show_dim_bg) == 1) {
1545                                         set_state(PART:"object.icon.bg.dim", "portrait", 0.0);
1546                                 }
1547                         }
1548                 }
1549                 program{
1550                         name: "box.landscape.custom";
1551                         source: "box.prog";
1552                         script {
1553                                 if (get_int(g_is_show_dim_bg) == 1) {
1554                                         set_state(PART:"object.icon.bg.dim", "landscape", 0.0);
1555                                 }
1556                         }
1557                 }
1558                 program{
1559                         name: "box.touch.down";
1560                         signal: "mouse,clicked,1";
1561                         source: "object.layer.touch";
1562                         action: SIGNAL_EMIT "selected" "object.layer.touch";
1563                 }
1564                 program{
1565                         name: "box.button.close.1";
1566                         signal: "mouse,down,1";
1567                         source: "object.button.close";
1568                         script {
1569                                 if (get_int(g_is_cloase_button_disabled) == 0) {
1570                                         set_state(PART:"object.image.button.close", "pressed", 0.0);
1571                                 }
1572                         }
1573                 }
1574                 program{
1575                         name: "box.button.close.2";
1576                         signal: "mouse,up,1";
1577                         source: "object.button.close";
1578                         script {
1579                                 set_state(PART:"object.image.button.close", "normal", 0.0);
1580                         }
1581                 }
1582                 program{
1583                         name: "box.button.close.3";
1584                         signal: "mouse,clicked,1";
1585                         source: "object.button.close";
1586                         script {
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");
1590                                 }
1591                         }
1592                 }
1593                 program{
1594                         name: "box.button.close.4";
1595                         signal: "disabled";
1596                         source: "object.button.close";
1597                         script {
1598                                 set_state(PART:"object.image.button.close", "disabled", 0.0);
1599                                 set_int(g_is_cloase_button_disabled, 1);
1600                         }
1601                 }
1602                 program{
1603                         name: "box.show.icon.bg";
1604                         signal: "box.show.icon.bg";
1605                         source: "box.prog";
1606                         action: STATE_SET "show" 0.0;
1607                         target: "object.icon.bg";
1608                 }
1609                 program{
1610                         name: "box.hide.icon.bg";
1611                         signal: "box.hide.icon.bg";
1612                         source: "box.prog";
1613                         action: STATE_SET "hide" 0.0;
1614                         target: "object.icon.bg";
1615                 }
1616                 program{
1617                         name: "box.show.icon.sub.bg";
1618                         signal: "box.show.sub.bg";
1619                         source: "box.prog";
1620                         action: STATE_SET "show" 0.0;
1621                         target: "object.icon.sub.bg";
1622                 }
1623                 program{
1624                         name: "box.hide.icon.sub.bg";
1625                         signal: "box.hide.sub.bg";
1626                         source: "box.prog";
1627                         action: STATE_SET "hide" 0.0;
1628                         target: "object.icon.sub.bg";
1629                 }
1630                 program{
1631                         name: "box.count.1";
1632                         signal: "box.count.1";
1633                         source: "box.prog";
1634                         action: STATE_SET "count1" 0.0;
1635                         target: "rect.text.count";
1636                 }
1637                 program{
1638                         name: "box.count.2";
1639                         signal: "box.count.2";
1640                         source: "box.prog";
1641                         action: STATE_SET "count2" 0.0;
1642                         target: "rect.text.count";
1643                 }
1644                 program{
1645                         name: "box.count.3";
1646                         signal: "box.count.3";
1647                         source: "box.prog";
1648                         action: STATE_SET "count3" 0.0;
1649                         target: "rect.text.count";
1650                 }
1651                 program{
1652                         name: "box.count.4";
1653                         signal: "box.count.4";
1654                         source: "box.prog";
1655                         action: STATE_SET "count4" 0.0;
1656                         target: "rect.text.count";
1657                 }
1658                 program{
1659                         name: "box.count.5";
1660                         signal: "box.count.5";
1661                         source: "box.prog";
1662                         action: STATE_SET "count5" 0.0;
1663                         target: "rect.text.count";
1664                 }
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")
1680         }
1681 }
1682
1683
1684 group {
1685         name: "quickpanel/notibox/thumbnail";
1686
1687         script {
1688                 public g_is_cloase_button_disabled;
1689                 public g_is_show_dim_bg;
1690
1691                 public init_variables() {
1692                         set_int(g_is_cloase_button_disabled, 0);
1693                         set_int(g_is_show_dim_bg, 0);
1694                 }
1695         }
1696
1697         parts {
1698                 part {
1699                         name: "background";
1700                         type: RECT;
1701                         scale: 1;
1702                         description {
1703                                 state: "default" 0.0;
1704                                 min: BOX_WIDTH_P BOX_HEIGHT_P;
1705                                 color: BOX_COLOR_BG;
1706                                 align: 0.0 0.0;
1707                         }
1708                         description {
1709                                 state: "portrait" 0.0;
1710                                 inherit: "default" 0.0;
1711                         }
1712                         description {
1713                                 state: "landscape" 0.0;
1714                                 inherit: "default" 0.0;
1715                                 min: BOX_WIDTH_L BOX_HEIGHT_L;
1716                         }
1717                 }
1718
1719                 //section layout for margin
1720
1721                 part {
1722                         name: "margin.left";
1723                         type: RECT;
1724                         scale: 1;
1725                         description {
1726                                 state: "default" 0.0;
1727                                 min: BOX_MARGIN_TEXT_H 0;
1728                                 rel1 {
1729                                         relative: 0.0 0.0;
1730                                 }
1731                                 rel2 {
1732                                         relative: 0.0 1.0;
1733                                 }
1734                                 align: 0.0 0.0;
1735 #ifdef DEBUG
1736                                 color: 0 0 255 255;
1737 #else
1738                                 visible:0;
1739 #endif
1740                         }
1741                 }
1742                 part {
1743                         name: "margin.right";
1744                         type: RECT;
1745                         scale: 1;
1746                         description {
1747                                 state: "default" 0.0;
1748                                 min: BOX_MARGIN_TEXT_H 0;
1749                                 rel1 {
1750                                         relative: 1.0 0.0;
1751                                 }
1752                                 rel2 {
1753                                         relative: 1.0 1.0;
1754                                 }
1755                                 align: 1.0 0.0;
1756 #ifdef DEBUG
1757                                 color: 0 0 255 255;
1758 #else
1759                                 visible:0;
1760 #endif
1761                         }
1762                 }
1763                 part {
1764                         name: "margin.left.thumnail";
1765                         type: RECT;
1766                         scale: 1;
1767                         description {
1768                                 state: "default" 0.0;
1769                                 min: 15 0;
1770                                 rel1 {
1771                                         relative: 0.0 0.0;
1772                                 }
1773                                 rel2 {
1774                                         relative: 0.0 1.0;
1775                                 }
1776                                 align: 0.0 0.0;
1777 #ifdef DEBUG
1778                                 color: 25 0 60 255;
1779 #else
1780                                 visible:0;
1781 #endif
1782                         }
1783                         description {
1784                                 state: "portrait" 0.0;
1785                                 inherit: "default" 0.0;
1786                         }
1787                         description {
1788                                 state: "landscape" 0.0;
1789                                 inherit: "default" 0.0;
1790                                 min: 14 0;
1791                         }
1792                 }
1793                 part {
1794                         name: "margin.right.thumnail";
1795                         type: RECT;
1796                         scale: 1;
1797                         description {
1798                                 state: "default" 0.0;
1799                                 min: 15 0;
1800                                 rel1 {
1801                                         relative: 1.0 0.0;
1802                                 }
1803                                 rel2 {
1804                                         relative: 1.0 1.0;
1805                                 }
1806                                 align: 1.0 0.0;
1807 #ifdef DEBUG
1808                                 color: 25 0 60 255;
1809 #else
1810                                 visible:0;
1811 #endif
1812                         }
1813                         description {
1814                                 state: "portrait" 0.0;
1815                                 inherit: "default" 0.0;
1816                         }
1817                         description {
1818                                 state: "landscape" 0.0;
1819                                 inherit: "default" 0.0;
1820                                 min: 14 0;
1821                         }
1822                 }
1823                 part {
1824                         name: "margin.right.icon";
1825                         type: RECT;
1826                         scale: 1;
1827                         description {
1828                                 state: "default" 0.0;
1829                                 min: 6 0;
1830                                 rel1 {
1831                                         relative: 1.0 0.0;
1832                                 }
1833                                 rel2 {
1834                                         relative: 1.0 1.0;
1835                                 }
1836                                 align: 1.0 0.0;
1837 #ifdef DEBUG
1838                                 color: 0 255 255 255;
1839 #else
1840                                 visible:0;
1841 #endif
1842                         }
1843                 }
1844                 part {
1845                         name: "margin.top.icon";
1846                         type: RECT;
1847                         scale: 1;
1848                         description {
1849                                 state: "default" 0.0;
1850                                 min: 0 44;
1851                                 rel1 {
1852                                         relative: 0.0 0.0;
1853                                 }
1854                                 rel2 {
1855                                         relative: 1.0 0.0;
1856                                 }
1857                                 align: 0.0 0.0;
1858 #ifdef DEBUG
1859                                 color: 255 0 255 255;
1860 #else
1861                                 visible:0;
1862 #endif
1863                         }
1864                 }
1865                 part {
1866                         name: "margin.top.text";
1867                         type: RECT;
1868                         scale: 1;
1869                         description {
1870                                 state: "default" 0.0;
1871                                 min: 0 20;
1872                                 rel1 {
1873                                         relative: 0.0 0.0;
1874                                 }
1875                                 rel2 {
1876                                         relative: 1.0 0.0;
1877                                 }
1878                                 align: 0.0 0.0;
1879 #ifdef DEBUG
1880                                 color: 0 0 255 255;
1881 #else
1882                                 visible:0;
1883 #endif
1884                         }
1885                 }
1886                 part {
1887                         name: "margin.bottom";
1888                         type: RECT;
1889                         scale: 1;
1890                         description {
1891                                 state: "default" 0.0;
1892                                 min: 0 26;
1893                                 rel1 {
1894                                         relative: 0.0 1.0;
1895                                 }
1896                                 rel2 {
1897                                         relative: 1.0 1.0;
1898                                 }
1899                                 align: 0.0 1.0;
1900 #ifdef DEBUG
1901                                 color: 0 0 255 255;
1902 #else
1903                                 visible:0;
1904 #endif
1905                         }
1906                 }
1907
1908                 //section layout for elements
1909                 //section layout for icon
1910                 part {
1911                         name: "rect.icon.bg";
1912                         type: RECT;
1913                         scale: 1;
1914                         description {
1915                                 state: "default" 0.0;
1916                                 min: 124 124;
1917                                 rel1 {
1918                                         to_x:"margin.right.icon";
1919                                         to_y:"margin.top.icon";
1920                                         relative: 0.0 1.0;
1921                                 }
1922                                 rel2 {
1923                                         to_x:"margin.right.icon";
1924                                         to_y:"margin.top.icon";
1925                                         relative: 0.0 1.0;
1926                                 }
1927                                 align: 1.0 0.0;
1928 #ifdef DEBUG
1929                                 color: 255 0 0 255;
1930 #else
1931                                 visible:0;
1932 #endif
1933                         }
1934                 }
1935                 part {
1936                         name: "rect.icon";
1937                         type: RECT;
1938                         scale: 1;
1939                         description {
1940                                 state: "default" 0.0;
1941                                 min: 124 124;
1942                                 rel1 {
1943                                         to:"rect.icon.bg";
1944                                         relative: 0.5 0.5;
1945                                 }
1946                                 rel2 {
1947                                         to:"rect.icon.bg";
1948                                         relative: 0.5 0.5;
1949                                 }
1950                                 align: 0.5 0.5;
1951 #ifdef DEBUG
1952                                 color: 205 205 255 255;
1953 #else
1954                                 visible:0;
1955 #endif
1956                         }
1957                 }
1958                 part {
1959                         name: "rect.icon.sub.padding";
1960                         type: RECT;
1961                         scale: 1;
1962                         description {
1963                                 state: "default" 0.0;
1964                                 min: 0 12;
1965                                 rel1 {
1966                                         to:"rect.icon.bg";
1967                                         relative: 0.0 1.0;
1968                                 }
1969                                 rel2 {
1970                                         to:"rect.icon.bg";
1971                                         relative: 1.0 1.0;
1972                                 }
1973                                 align: 0.0 0.0;
1974 #ifdef DEBUG
1975                                 color: 235 215 235 255;
1976 #else
1977                                 visible:0;
1978 #endif
1979                         }
1980                 }
1981                 part {
1982                         name: "rect.icon.sub";
1983                         type: RECT;
1984                         scale: 1;
1985                         description {
1986                                 state: "default" 0.0;
1987                                 min: 56 56;
1988                                 rel1 {
1989                                         to:"rect.icon.sub.padding";
1990                                         relative: 1.0 1.0;
1991                                 }
1992                                 rel2 {
1993                                         to:"rect.icon.sub.padding";
1994                                         relative: 1.0 1.0;
1995                                 }
1996                                 align: 1.0 1.0;
1997 #ifdef DEBUG
1998                                 color: 255 0 100 255;
1999 #else
2000                                 visible:0;
2001 #endif
2002                         }
2003                 }
2004
2005                 //section layout for close button
2006                 part {
2007                         name: "rect.button.close";
2008                         type: RECT;
2009                         scale: 1;
2010                         description {
2011                                 state: "default" 0.0;
2012                                 min: 38 38;
2013                                 rel1 {
2014                                         relative: 1.0 0.0;
2015                                 }
2016                                 rel2 {
2017                                         relative: 1.0 0.0;
2018                                 }
2019                                 align: 1.0 0.0;
2020 #ifdef DEBUG
2021                                 color: 255 255 255 255;
2022 #else
2023                                 visible:0;
2024 #endif
2025                         }
2026                 }
2027
2028                 //section layout for texts
2029                 part {
2030                         name: "rect.text.title";
2031                         type: RECT;
2032                         scale: 1;
2033                         description {
2034                                 state: "default" 0.0;
2035                                 min: 190 189;
2036                                 max: 190 189;
2037                                 fixed: 1 1;
2038                                 rel1 {
2039                                         to_x:"margin.left";
2040                                         to_y:"margin.top.text";
2041                                         relative: 1.0 1.0;
2042                                 }
2043                                 rel2 {
2044                                         to_x:"rect.icon.bg";
2045                                         to_y:"margin.top.text";
2046                                         relative: 0.0 1.0;
2047                                 }
2048                                 align: 0.0 0.0;
2049 #ifdef DEBUG
2050                                 color: 100 100 100 255;
2051 #else
2052                                 visible:0;
2053 #endif
2054                         }
2055                         description {
2056                                 state: "portrait" 0.0;
2057                                 inherit: "default" 0.0;
2058                         }
2059                         description {
2060                                 state: "landscape" 0.0;
2061                                 inherit: "default" 0.0;
2062                                 min: 260 189;
2063                                 max: 260 189;
2064                         }
2065                 }
2066
2067
2068                 part {
2069                         name: "rect.text.margin.contents";
2070                         type: RECT;
2071                         scale: 1;
2072                         description {
2073                                 state: "default" 0.0;
2074                                 min: 0 20;
2075                                 rel1 {
2076                                         to_x:"margin.left";
2077                                         to_y:"rect.thumbnail.list.1";
2078                                         relative: 1.0 0.0;
2079                                 }
2080                                 rel2 {
2081                                         to_x:"margin.right";
2082                                         to_y:"rect.thumbnail.list.1";
2083                                         relative: 0.0 0.0;
2084                                 }
2085                                 align: 0.0 1.0;
2086 #ifdef DEBUG
2087                                 color: 255 255 255 255;
2088 #else
2089                                 visible:0;
2090 #endif
2091                         }
2092                 }
2093                 part {
2094                         name: "rect.text.contents";
2095                         type: RECT;
2096                         scale: 1;
2097                         description {
2098                                 state: "default" 0.0;
2099                                 min: 0 BOX_TEXT_CONTENTS_HEIGHT;
2100                                 rel1 {
2101                                         to_x:"margin.left";
2102                                         to_y:"rect.text.margin.contents";
2103                                         relative: 1.0 0.0;
2104                                 }
2105                                 rel2 {
2106                                         to_x:"margin.right";
2107                                         to_y:"rect.text.margin.contents";
2108                                         relative: 0.0 0.0;
2109                                 }
2110                                 align: 0.0 1.0;
2111 #ifdef DEBUG
2112                                 color: 100 150 100 255;
2113 #else
2114                                 visible:0;
2115 #endif
2116                         }
2117                 }
2118                 part {
2119                         name: "rect.text.count";
2120                         type: RECT;
2121                         scale: 1;
2122                         description {
2123                                 state: "default" 0.0;
2124                                 min: 58 58;
2125                                 rel1 {
2126                                         to_x:"margin.left";
2127                                         to_y:"rect.text.margin.contents";
2128                                         relative: 1.0 0.0;
2129                                 }
2130                                 rel2 {
2131                                         to_x:"margin.left";
2132                                         to_y:"rect.text.margin.contents";
2133                                         relative: 1.0 0.0;
2134                                 }
2135                                 align: 0.0 1.0;
2136 #ifdef DEBUG
2137                                 color: 190 190 190 255;
2138 #else
2139                                 visible:0;
2140 #endif
2141                         }
2142                 }
2143                 part {
2144                         name: "rect.text.count.padding";
2145                         type: RECT;
2146                         scale: 1;
2147                         description {
2148                                 state: "default" 0.0;
2149                                 min: 10 58;
2150                                 rel1 {
2151                                         to:"rect.text.count";
2152                                         relative: 1.0 0.0;
2153                                 }
2154                                 rel2 {
2155                                         to:"rect.text.count";
2156                                         relative: 1.0 1.0;
2157                                 }
2158                                 align: 0.0 0.0;
2159 #ifdef DEBUG
2160                                 color: 0 0 0 255;
2161 #else
2162                                 visible:0;
2163 #endif
2164                         }
2165                 }
2166                 part {
2167                         name: "rect.text.contents.short";
2168                         type: RECT;
2169                         scale: 1;
2170                         description {
2171                                 state: "default" 0.0;
2172                                 min: 0 BOX_TEXT_CONTENTS_HEIGHT;
2173                                 rel1 {
2174                                         to_x:"rect.text.count.padding";
2175                                         to_y:"rect.text.margin.contents";
2176                                         relative: 1.0 0.0;
2177                                 }
2178                                 rel2 {
2179                                         to_x:"margin.right";
2180                                         to_y:"rect.text.margin.contents";
2181                                         relative: 0.0 0.0;
2182                                 }
2183                                 align: 0.0 1.0;
2184 #ifdef DEBUG
2185                                 color: 40 255 100 255;
2186 #else
2187                                 visible:0;
2188 #endif
2189                         }
2190                 }
2191
2192                 //section layout for thumbnail
2193                 part {
2194                         name: "rect.thumbnail.list.1";
2195                         type: RECT;
2196                         scale: 1;
2197                         description {
2198                                 state: "default" 0.0;
2199                                 min: 70 70;
2200                                 rel1 {
2201                                         to_x:"margin.left.thumnail";
2202                                         to_y:"margin.bottom";
2203                                         relative: 1.0 0.0;
2204                                 }
2205                                 rel2 {
2206                                         to_x:"margin.left.thumnail";
2207                                         to_y:"margin.bottom";
2208                                         relative: 1.0 0.0;
2209                                 }
2210                                 align: 0.0 1.0;
2211 #ifdef DEBUG
2212                                 color: 255 0 0 255;
2213 #else
2214                                 visible:0;
2215 #endif
2216                         }
2217                 }
2218                 part {
2219                         name: "rect.thumbnail.list.1.padding";
2220                         type: RECT;
2221                         scale: 1;
2222                         description {
2223                                 state: "default" 0.0;
2224                                 min: 10 0;
2225                                 rel1 {
2226                                         to:"rect.thumbnail.list.1";
2227                                         relative: 1.0 0.0;
2228                                 }
2229                                 rel2 {
2230                                         to:"rect.thumbnail.list.1";
2231                                         relative: 1.0 1.0;
2232                                 }
2233                                 align: 0.0 0.0;
2234 #ifdef DEBUG
2235                                 color: 0 0 0 255;
2236 #else
2237                                 visible:0;
2238 #endif
2239                         }
2240                         description {
2241                                 state: "portrait" 0.0;
2242                                 inherit: "default" 0.0;
2243                         }
2244                         description {
2245                                 state: "landscape" 0.0;
2246                                 inherit: "default" 0.0;
2247                                 min: 8 0;
2248                         }
2249                 }
2250                 part {
2251                         name: "rect.thumbnail.list.2";
2252                         type: RECT;
2253                         scale: 1;
2254                         description {
2255                                 state: "default" 0.0;
2256                                 min: 70 70;
2257                                 rel1 {
2258                                         to_x:"rect.thumbnail.list.1.padding";
2259                                         to_y:"margin.bottom";
2260                                         relative: 1.0 0.0;
2261                                 }
2262                                 rel2 {
2263                                         to_x:"rect.thumbnail.list.1.padding";
2264                                         to_y:"margin.bottom";
2265                                         relative: 1.0 0.0;
2266                                 }
2267                                 align: 0.0 1.0;
2268 #ifdef DEBUG
2269                                 color: 255 0 0 255;
2270 #else
2271                                 visible:0;
2272 #endif
2273                         }
2274                 }
2275                 part {
2276                         name: "rect.thumbnail.list.2.padding";
2277                         type: RECT;
2278                         scale: 1;
2279                         description {
2280                                 state: "default" 0.0;
2281                                 min: 10 0;
2282                                 rel1 {
2283                                         to:"rect.thumbnail.list.2";
2284                                         relative: 1.0 0.0;
2285                                 }
2286                                 rel2 {
2287                                         to:"rect.thumbnail.list.2";
2288                                         relative: 1.0 1.0;
2289                                 }
2290                                 align: 0.0 0.0;
2291 #ifdef DEBUG
2292                                 color: 0 0 0 255;
2293 #else
2294                                 visible:0;
2295 #endif
2296                         }
2297                         description {
2298                                 state: "portrait" 0.0;
2299                                 inherit: "default" 0.0;
2300                         }
2301                         description {
2302                                 state: "landscape" 0.0;
2303                                 inherit: "default" 0.0;
2304                                 min: 8 0;
2305                         }
2306                 }
2307                 part {
2308                         name: "rect.thumbnail.list.3";
2309                         type: RECT;
2310                         scale: 1;
2311                         description {
2312                                 state: "default" 0.0;
2313                                 min: 70 70;
2314                                 rel1 {
2315                                         to_x:"rect.thumbnail.list.2.padding";
2316                                         to_y:"margin.bottom";
2317                                         relative: 1.0 0.0;
2318                                 }
2319                                 rel2 {
2320                                         to_x:"rect.thumbnail.list.2.padding";
2321                                         to_y:"margin.bottom";
2322                                         relative: 1.0 0.0;
2323                                 }
2324                                 align: 0.0 1.0;
2325 #ifdef DEBUG
2326                                 color: 255 0 0 255;
2327 #else
2328                                 visible:0;
2329 #endif
2330                         }
2331                 }
2332                 part {
2333                         name: "rect.thumbnail.list.3.padding";
2334                         type: RECT;
2335                         scale: 1;
2336                         description {
2337                                 state: "default" 0.0;
2338                                 min: 10 0;
2339                                 rel1 {
2340                                         to:"rect.thumbnail.list.3";
2341                                         relative: 1.0 0.0;
2342                                 }
2343                                 rel2 {
2344                                         to:"rect.thumbnail.list.3";
2345                                         relative: 1.0 1.0;
2346                                 }
2347                                 align: 0.0 0.0;
2348 #ifdef DEBUG
2349                                 color: 0 0 0 255;
2350 #else
2351                                 visible:0;
2352 #endif
2353                         }
2354                         description {
2355                                 state: "portrait" 0.0;
2356                                 inherit: "default" 0.0;
2357                         }
2358                         description {
2359                                 state: "landscape" 0.0;
2360                                 inherit: "default" 0.0;
2361                                 min: 8 0;
2362                         }
2363                 }
2364                 part {
2365                         name: "rect.thumbnail.list.4";
2366                         type: RECT;
2367                         scale: 1;
2368                         description {
2369                                 state: "default" 0.0;
2370                                 min: 70 70;
2371                                 rel1 {
2372                                         to_x:"rect.thumbnail.list.3.padding";
2373                                         to_y:"margin.bottom";
2374                                         relative: 1.0 0.0;
2375                                 }
2376                                 rel2 {
2377                                         to_x:"rect.thumbnail.list.3.padding";
2378                                         to_y:"margin.bottom";
2379                                         relative: 1.0 0.0;
2380                                 }
2381                                 align: 0.0 1.0;
2382 #ifdef DEBUG
2383                                 color: 255 0 0 255;
2384 #else
2385                                 visible:0;
2386 #endif
2387                         }
2388                 }
2389                 part {
2390                         name: "rect.thumbnail.list.4.padding";
2391                         type: RECT;
2392                         scale: 1;
2393                         description {
2394                                 state: "default" 0.0;
2395                                 min: 10 0;
2396                                 rel1 {
2397                                         to:"rect.thumbnail.list.4";
2398                                         relative: 1.0 0.0;
2399                                 }
2400                                 rel2 {
2401                                         to:"rect.thumbnail.list.4";
2402                                         relative: 1.0 1.0;
2403                                 }
2404                                 align: 0.0 0.0;
2405 #ifdef DEBUG
2406                                 color: 0 0 0 255;
2407 #else
2408                                 visible:0;
2409 #endif
2410                         }
2411                         description {
2412                                 state: "portrait" 0.0;
2413                                 inherit: "default" 0.0;
2414                         }
2415                         description {
2416                                 state: "landscape" 0.0;
2417                                 inherit: "default" 0.0;
2418                                 min: 8 0;
2419                         }
2420                 }
2421                 part {
2422                         name: "rect.thumbnail.list.5";
2423                         type: RECT;
2424                         scale: 1;
2425                         description {
2426                                 state: "default" 0.0;
2427                                 min: 70 70;
2428                                 rel1 {
2429                                         to_x:"rect.thumbnail.list.4.padding";
2430                                         to_y:"margin.bottom";
2431                                         relative: 1.0 0.0;
2432                                 }
2433                                 rel2 {
2434                                         to_x:"rect.thumbnail.list.4.padding";
2435                                         to_y:"margin.bottom";
2436                                         relative: 1.0 0.0;
2437                                 }
2438                                 align: 0.0 1.0;
2439 #ifdef DEBUG
2440                                 color: 255 0 0 255;
2441 #else
2442                                 visible:0;
2443 #endif
2444
2445                         }
2446                         description {
2447                                 state: "portrait" 0.0;
2448                                 inherit: "default" 0.0;
2449                         }
2450                         description {
2451                                 state: "landscape" 0.0;
2452                                 inherit: "default" 0.0;
2453                                 visible:1;
2454                         }
2455                 }
2456
2457                 part{
2458                         name: "object.icon.background";
2459                         type:SWALLOW;
2460                         scale: 1;
2461                         description {
2462                                 state: "default" 0.0;
2463                                 fixed: 0 0;
2464                                 rel1 {to: "background";}
2465                                 rel2 {to: "background";}
2466                                 visible:0;
2467                         }
2468                         description {
2469                                 state: "show" 0.0;
2470                                 inherit: "default" 0.0;
2471                                 visible:1;
2472                         }
2473                 }
2474                 part{
2475                         name: "object.icon.bg";
2476                         type:IMAGE;
2477                         scale:1;
2478                         description {
2479                                 state: "default" 0.0;
2480                                 fixed: 0 0;
2481                                 rel1 {to: "rect.icon.bg";}
2482                                 rel2 {to: "rect.icon.bg";}
2483                                 image {
2484                                         normal:"quick_icon_bg_01.png";
2485                                         border: 0 0 0 0;
2486                                         border_scale: 1;
2487                                 }
2488                         }
2489                         description {
2490                                 state: "show" 0.0;
2491                                 inherit: "default" 0.0;
2492                                 visible:1;
2493                         }
2494                         description {
2495                                 state: "hide" 0.0;
2496                                 inherit: "default" 0.0;
2497                                 visible:0;
2498                         }
2499                 }
2500                 part{
2501                         name: "object.icon.bg.dim";
2502                         type:IMAGE;
2503                         scale:1;
2504                         description {
2505                                 state: "default" 0.0;
2506                                 fixed: 0 0;
2507                                 rel1 {to: "background";}
2508                                 rel2 {to: "background";}
2509                                 image {
2510                                         normal:"quick_image_dimmed_port.png";
2511                                         border: 0 0 0 0;
2512                                         border_scale: 1;
2513                                 }
2514                                 visible:0;
2515                         }
2516                         description {
2517                                 state: "portrait" 0.0;
2518                                 inherit: "default" 0.0;
2519                                 image {
2520                                         normal:"quick_image_dimmed_port.png";
2521                                         border: 0 0 0 0;
2522                                         border_scale: 1;
2523                                 }
2524                                 visible:1;
2525                         }
2526                         description {
2527                                 state: "landscape" 0.0;
2528                                 inherit: "default" 0.0;
2529                                 image {
2530                                         normal:"quick_image_dimmed_land.png";
2531                                         border: 0 0 0 0;
2532                                         border_scale: 1;
2533                                 }
2534                                 visible:1;
2535                         }
2536                 }
2537                 part{
2538                         name: "object.icon";
2539                         type:SWALLOW;
2540                         scale: 1;
2541                         description {
2542                                 state: "default" 0.0;
2543                                 fixed: 0 0;
2544                                 rel1 {to: "rect.icon";}
2545                                 rel2 {to: "rect.icon";}
2546                                 visible:0;
2547                         }
2548                         description {
2549                                 state: "show" 0.0;
2550                                 inherit: "default" 0.0;
2551                                 visible:1;
2552                         }
2553                 }
2554                 part{
2555                         name: "object.icon.sub.bg";
2556                         type:IMAGE;
2557                         scale:1;
2558                         description {
2559                                 state: "default" 0.0;
2560                                 fixed: 0 0;
2561                                 rel1 {to: "rect.icon.sub";}
2562                                 rel2 {to: "rect.icon.sub";}
2563                                 image {
2564                                         normal:"quick_icon_bg_small.png";
2565                                         border: 0 0 0 0;
2566                                         border_scale: 1;
2567                                 }
2568                                 visible:0;
2569                         }
2570                         description {
2571                                 state: "show" 0.0;
2572                                 inherit: "default" 0.0;
2573                                 visible:1;
2574                         }
2575                         description {
2576                                 state: "hide" 0.0;
2577                                 inherit: "default" 0.0;
2578                                 visible:0;
2579                         }
2580                 }
2581                 part{
2582                         name: "object.icon.sub";
2583                         type:SWALLOW;
2584                         scale: 1;
2585                         description {
2586                                 state: "default" 0.0;
2587                                 fixed: 0 0;
2588                                 rel1 {to: "rect.icon.sub";}
2589                                 rel2 {to: "rect.icon.sub";}
2590                                 visible:0;
2591                         }
2592                         description {
2593                                 state: "show" 0.0;
2594                                 inherit: "default" 0.0;
2595                                 visible:1;
2596                         }
2597                 }
2598
2599                 //section thumbnail
2600                 part{
2601                         name: "object.thumbnail.list.1";
2602                         type:SWALLOW;
2603                         scale: 1;
2604                         description {
2605                                 state: "default" 0.0;
2606                                 fixed: 0 0;
2607                                 rel1 {to: "rect.thumbnail.list.1";}
2608                                 rel2 {to: "rect.thumbnail.list.1";}
2609                                 visible:0;
2610                         }
2611                         description {
2612                                 state: "show" 0.0;
2613                                 inherit: "default" 0.0;
2614                                 visible:1;
2615                         }
2616                 }
2617                 part{
2618                         name: "object.thumbnail.list.2";
2619                         type:SWALLOW;
2620                         scale: 1;
2621                         description {
2622                                 state: "default" 0.0;
2623                                 fixed: 0 0;
2624                                 rel1 {to: "rect.thumbnail.list.2";}
2625                                 rel2 {to: "rect.thumbnail.list.2";}
2626                                 visible:0;
2627                         }
2628                         description {
2629                                 state: "show" 0.0;
2630                                 inherit: "default" 0.0;
2631                                 visible:1;
2632                         }
2633                 }
2634                 part{
2635                         name: "object.thumbnail.list.3";
2636                         type:SWALLOW;
2637                         scale: 1;
2638                         description {
2639                                 state: "default" 0.0;
2640                                 fixed: 0 0;
2641                                 rel1 {to: "rect.thumbnail.list.3";}
2642                                 rel2 {to: "rect.thumbnail.list.3";}
2643                                 visible:0;
2644                         }
2645                         description {
2646                                 state: "show" 0.0;
2647                                 inherit: "default" 0.0;
2648                                 visible:1;
2649                         }
2650                 }
2651                 part{
2652                         name: "object.thumbnail.list.4";
2653                         type:SWALLOW;
2654                         scale: 1;
2655                         description {
2656                                 state: "default" 0.0;
2657                                 fixed: 0 0;
2658                                 rel1 {to: "rect.thumbnail.list.4";}
2659                                 rel2 {to: "rect.thumbnail.list.4";}
2660                                 visible:0;
2661                         }
2662                         description {
2663                                 state: "show" 0.0;
2664                                 inherit: "default" 0.0;
2665                                 visible:1;
2666                         }
2667                 }
2668                 part{
2669                         name: "object.thumbnail.list.5";
2670                         type:SWALLOW;
2671                         scale: 1;
2672                         description {
2673                                 state: "default" 0.0;
2674                                 fixed: 0 0;
2675                                 rel1 {to: "rect.thumbnail.list.5";}
2676                                 rel2 {to: "rect.thumbnail.list.5";}
2677                                 visible: 0;
2678                         }
2679                         description {
2680                                 state: "portrait" 0.0;
2681                                 inherit: "default" 0.0;
2682                         }
2683                         description {
2684                                 state: "landscape" 0.0;
2685                                 inherit: "default" 0.0;
2686                                 visible: 1;
2687                         }
2688                 }
2689
2690                 part {
2691                         name: "object.text.title";
2692                         scale: 1;
2693                         type: TEXTBLOCK;
2694                         multiline: 1;
2695                         description {
2696                                 state: "default" 0.0;
2697                                 rel1 {to: "rect.text.title";}
2698                                 rel2 {to: "rect.text.title";}
2699                                 text {
2700                                         style: "notibox_title";
2701                                         align: 0.0 0.0;
2702 #ifdef DEBUG_TEXT
2703                                         text: "some string of text to display";
2704 #endif
2705                                 }
2706                                 visible:0;
2707                         }
2708                         description {
2709                                 state: "show" 0.0;
2710                                 inherit: "default" 0.0;
2711                                 visible:1;
2712                         }
2713                         description {
2714                                 state: "show.effect" 0.0;
2715                                 inherit: "default" 0.0;
2716                                 text {
2717                                         style: "notibox_title_effect";
2718                                 }
2719                                 visible:1;
2720                         }
2721                 }
2722
2723                 part {
2724                         name: "object.text.contents";
2725                         scale: 1;
2726                         type: TEXT;
2727                         effect: TEXT_EFFECT;
2728                         description {
2729                                 state: "default" 0.0;
2730                                 rel1 {to: "rect.text.contents";}
2731                                 rel2 {to: "rect.text.contents";}
2732                                 color: BOX_CONTENTS_FONT_COLOR;
2733                                 text {
2734                                         font: BOX_CONTENTS_FONT;
2735                                         text_class: TEXT_CLASS_TIZEN;
2736                                         size: BOX_CONTENTS_FONT_SIZE;
2737                                         align: 0.0 0.5;
2738 #ifdef DEBUG_TEXT
2739                                         text: "some string of text to display";
2740 #endif
2741                                 }
2742                                 visible:0;
2743                         }
2744                         description {
2745                                 state: "show" 0.0;
2746                                 inherit: "default" 0.0;
2747                                 visible:1;
2748                         }
2749                         description {
2750                                 state: "show.effect" 0.0;
2751                                 inherit: "default" 0.0;
2752                                 color2: BOX_FONT_SHADOW_COLOR;
2753                                 color3: BOX_FONT_OUTLINE_COLOR;
2754                                 visible:1;
2755                         }
2756                 }
2757                 part {
2758                         name: "object.text.contents.short";
2759                         scale: 1;
2760                         type: TEXT;
2761                         effect: TEXT_EFFECT;
2762                         description {
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;
2767                                 text {
2768                                         font: BOX_CONTENTS_FONT;
2769                                         text_class: TEXT_CLASS_TIZEN;
2770                                         size: BOX_CONTENTS_FONT_SIZE;
2771                                         align: 0.0 0.5;
2772                                 }
2773                                 visible:0;
2774                         }
2775                         description {
2776                                 state: "show" 0.0;
2777                                 inherit: "default" 0.0;
2778                                 visible:1;
2779                         }
2780                         description {
2781                                 state: "show.effect" 0.0;
2782                                 inherit: "default" 0.0;
2783                                 color2: BOX_FONT_SHADOW_COLOR;
2784                                 color3: BOX_FONT_OUTLINE_COLOR;
2785                                 visible:1;
2786                         }
2787                 }
2788
2789                 part {
2790                         name: "object.text.count";
2791                         scale: 1;
2792                         type: TEXT;
2793                         effect: TEXT_EFFECT;
2794                         description {
2795                                 state: "default" 0.0;
2796                                 rel1 {to: "rect.text.count";}
2797                                 rel2 {to: "rect.text.count";}
2798                                 color: BOX_INFO_COUNT_FONT_COLOR;
2799                                 text {
2800                                         font: BOX_INFO_COUNT_FONT;
2801                                         text_class: TEXT_CLASS_TIZEN;
2802                                         size: BOX_INFO_COUNT_FONT_SIZE;
2803                                         align: 0.0 0.5;
2804 #ifdef DEBUG_TEXT
2805                                         text: "3";
2806 #endif
2807                                 }
2808                                 visible:0;
2809                         }
2810                         description {
2811                                 state: "show" 0.0;
2812                                 inherit: "default" 0.0;
2813                                 visible:1;
2814                         }
2815                         description {
2816                                 state: "show.effect" 0.0;
2817                                 inherit: "default" 0.0;
2818                                 color2: BOX_FONT_SHADOW_COLOR;
2819                                 color3: BOX_FONT_OUTLINE_COLOR;
2820                                 visible:1;
2821                         }
2822                 }
2823                 part {
2824                         name: "object.layer.touch";
2825                         mouse_events: 1;
2826                         repeat_events: 1;
2827                         scale: 1;
2828                         type: RECT;
2829                         description {
2830                                 state: "default" 0.0;
2831                                 rel1 {to: "background";}
2832                                 rel2 {to: "background";}
2833                                 color: 0 0 0 0;
2834                         }
2835                 }
2836                 part{
2837                         name: "object.button.close";
2838                         type:RECT;
2839                         scale:1;
2840                         description {
2841                                 state: "default" 0.0;
2842                                 min:64 64;
2843                                 rel1 {
2844                                         to: "rect.button.close";
2845                                         relative: 1.0 0.0;
2846                                 }
2847                                 rel2 {
2848                                         to: "rect.button.close";
2849                                         relative: 1.0 0.0;
2850                                 }
2851                                 align: 1.0 0.0;
2852                                 color: 0 0 0 0;
2853                         }
2854                 }
2855                 part{
2856                         name: "object.image.button.close";
2857                         type:IMAGE;
2858                         scale:1;
2859                         repeat_events: 1;
2860                         description {
2861                                 state: "default" 0.0;
2862                                 rel1 {to: "rect.button.close";}
2863                                 rel2 {to: "rect.button.close";}
2864                                 image {
2865                                         normal:"quick_btn_close_nor.png";
2866                                         border: 0 0 0 0;
2867                                         border_scale: 1;
2868                                 }
2869                                 align: 0.0 1.0;
2870                         }
2871                         description {
2872                                 state: "normal" 0.0;
2873                                 inherit: "default" 0.0;
2874                         }
2875                         description {
2876                                 state: "pressed" 0.0;
2877                                 inherit: "default" 0.0;
2878                                 image {
2879                                         normal:"quick_btn_close_press.png";
2880                                         border: 0 0 0 0;
2881                                         border_scale: 1;
2882                                 }
2883                                 align: 0.0 1.0;
2884                         }
2885                         description {
2886                                 state: "disabled" 0.0;
2887                                 inherit: "default" 0.0;
2888                                 image {
2889                                         normal:"quick_btn_close_dim.png";
2890                                         border: 0 0 0 0;
2891                                         border_scale: 1;
2892                                 }
2893                                 align: 0.0 1.0;
2894                         }
2895                 }
2896         }
2897
2898         programs {
2899                 program {
2900                         name: "init.layout";
2901                         signal: "load";
2902                         source: "";
2903                         in: 0.0 0.0;
2904                         script{
2905                                 init_variables();
2906                         }
2907                 }
2908                 program{
2909                         name: "box.show.dim";
2910                         signal: "box.show.dim";
2911                         source: "box.prog";
2912                         script {
2913                                 set_int(g_is_show_dim_bg, 1);
2914                         }
2915                 }
2916                 program{
2917                         name: "box.hide.dim";
2918                         signal: "box.hide.dim";
2919                         source: "box.prog";
2920                         script {
2921                                 set_int(g_is_show_dim_bg, 0);
2922                         }
2923                 }
2924                 program{
2925                         name: "box.portrait";
2926                         signal: "box.portrait";
2927                         source: "box.prog";
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";
2940                 }
2941                 program{
2942                         name: "box.landscape";
2943                         signal: "box.landscape";
2944                         source: "box.prog";
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";
2957                 }
2958                 program{
2959                         name: "box.portrait.custom";
2960                         source: "box.prog";
2961                         script {
2962                                 if (get_int(g_is_show_dim_bg) == 1) {
2963                                         set_state(PART:"object.icon.bg.dim", "portrait", 0.0);
2964                                 }
2965                         }
2966                 }
2967                 program{
2968                         name: "box.landscape.custom";
2969                         source: "box.prog";
2970                         script {
2971                                 if (get_int(g_is_show_dim_bg) == 1) {
2972                                         set_state(PART:"object.icon.bg.dim", "landscape", 0.0);
2973                                 }
2974                         }
2975                 }
2976                 program{
2977                         name: "box.touch.down";
2978                         signal: "mouse,clicked,1";
2979                         source: "object.layer.touch";
2980                         action: SIGNAL_EMIT "selected" "object.layer.touch";
2981                 }
2982                 program{
2983                         name: "box.button.close.1";
2984                         signal: "mouse,down,1";
2985                         source: "object.button.close";
2986                         script {
2987                                 if (get_int(g_is_cloase_button_disabled) == 0) {
2988                                         set_state(PART:"object.image.button.close", "pressed", 0.0);
2989                                 }
2990                         }
2991                 }
2992                 program{
2993                         name: "box.button.close.2";
2994                         signal: "mouse,up,1";
2995                         source: "object.button.close";
2996                         script {
2997                                 set_state(PART:"object.image.button.close", "normal", 0.0);
2998                         }
2999                 }
3000                 program{
3001                         name: "box.button.close.3";
3002                         signal: "mouse,clicked,1";
3003                         source: "object.button.close";
3004                         script {
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");
3008                                 }
3009                         }
3010                 }
3011                 program{
3012                         name: "box.button.close.4";
3013                         signal: "disabled";
3014                         source: "object.button.close";
3015                         script {
3016                                 set_state(PART:"object.image.button.close", "disabled", 0.0);
3017                                 set_int(g_is_cloase_button_disabled, 1);
3018                         }
3019                 }
3020                 program{
3021                         name: "box.show.icon.bg";
3022                         signal: "box.show.icon.bg";
3023                         source: "box.prog";
3024                         action: STATE_SET "show" 0.0;
3025                         target: "object.icon.bg";
3026                 }
3027                 program{
3028                         name: "box.hide.icon.bg";
3029                         signal: "box.hide.icon.bg";
3030                         source: "box.prog";
3031                         action: STATE_SET "hide" 0.0;
3032                         target: "object.icon.bg";
3033                 }
3034                 program{
3035                         name: "box.show.icon.sub.bg";
3036                         signal: "box.show.sub.bg";
3037                         source: "box.prog";
3038                         action: STATE_SET "show" 0.0;
3039                         target: "object.icon.sub.bg";
3040                 }
3041                 program{
3042                         name: "box.hide.icon.sub.bg";
3043                         signal: "box.hide.sub.bg";
3044                         source: "box.prog";
3045                         action: STATE_SET "hide" 0.0;
3046                         target: "object.icon.sub.bg";
3047                 }
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")
3059         }
3060 }