sync with master branch
[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_close_button_disabled;
112                 public g_is_show_dim_bg;
113
114                 public init_variables() {
115                         set_int(g_is_close_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.background";
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.layer.touch.button.1";
1436                         mouse_events: 1;
1437                         repeat_events: 0;
1438                         scale: 1;
1439                         type: RECT;
1440                         description {
1441                                 state: "default" 0.0;
1442                                 rel1 {
1443                                         to_x: "rect.icon";
1444                                         to_y: "object.button.close";
1445                                         relative: 0.0 1.0;
1446                                 }
1447                                 rel2 {to: "rect.icon";}
1448                                 color: 0 0 0 0;
1449                         }
1450                         description {
1451                                 state: "show" 0.0;
1452                                 inherit: "default" 0.0;
1453                                 visible:1;
1454                         }
1455                         description {
1456                                 state: "hide" 0.0;
1457                                 inherit: "default" 0.0;
1458                                 visible: 0;
1459                         }
1460                 }
1461                 part{
1462                         name: "object.button.close";
1463                         type:RECT;
1464                         scale:1;
1465                         description {
1466                                 state: "default" 0.0;
1467                                 min:100 64;
1468                                 rel1 {
1469                                         to: "rect.button.close";
1470                                         relative: 1.0 0.0;
1471                                 }
1472                                 rel2 {
1473                                         to: "rect.button.close";
1474                                         relative: 1.0 0.0;
1475                                 }
1476                                 color: 0 0 0 0;
1477                                 align: 1.0 0.0;
1478                         }
1479                 }
1480                 part{
1481                         name: "object.image.button.close";
1482                         type:IMAGE;
1483                         scale:1;
1484                         repeat_events: 1;
1485                         description {
1486                                 state: "default" 0.0;
1487                                 rel1 {to: "rect.button.close";}
1488                                 rel2 {to: "rect.button.close";}
1489                                 image {
1490                                         normal:"quick_btn_close_nor.png";
1491                                         border: 0 0 0 0;
1492                                         border_scale: 1;
1493                                 }
1494                                 align: 0.0 1.0;
1495                         }
1496                         description {
1497                                 state: "normal" 0.0;
1498                                 inherit: "default" 0.0;
1499                         }
1500                         description {
1501                                 state: "pressed" 0.0;
1502                                 inherit: "default" 0.0;
1503                                 image {
1504                                         normal:"quick_btn_close_press.png";
1505                                         border: 0 0 0 0;
1506                                         border_scale: 1;
1507                                 }
1508                                 align: 0.0 1.0;
1509                         }
1510                         description {
1511                                 state: "disabled" 0.0;
1512                                 inherit: "default" 0.0;
1513                                 image {
1514                                         normal:"quick_btn_close_dim.png";
1515                                         border: 0 0 0 0;
1516                                         border_scale: 1;
1517                                 }
1518                                 align: 0.0 1.0;
1519                         }
1520                 }
1521         }
1522
1523         programs {
1524                 program {
1525                         name: "init.layout";
1526                         signal: "load";
1527                         source: "";
1528                         in: 0.0 0.0;
1529                         script{
1530                                 init_variables();
1531                         }
1532                 }
1533                 program{
1534                         name: "box.show.dim";
1535                         signal: "box.show.dim";
1536                         source: "box.prog";
1537                         script {
1538                                 set_int(g_is_show_dim_bg, 1);
1539                         }
1540                 }
1541                 program{
1542                         name: "box.hide.dim";
1543                         signal: "box.hide.dim";
1544                         source: "box.prog";
1545                         script {
1546                                 set_int(g_is_show_dim_bg, 0);
1547                         }
1548                 }
1549                 program{
1550                         name: "box.portrait";
1551                         signal: "box.portrait";
1552                         source: "box.prog";
1553                         action: STATE_SET "portrait" 0.0;
1554                         target: "background";
1555                         target: "rect.text.title";
1556                         after: "box.portrait.custom";
1557                 }
1558                 program{
1559                         name: "box.landscape";
1560                         signal: "box.landscape";
1561                         source: "box.prog";
1562                         action: STATE_SET "landscape" 0.0;
1563                         target: "background";
1564                         target: "rect.text.title";
1565                         after: "box.landscape.custom";
1566                 }
1567                 program{
1568                         name: "box.portrait.custom";
1569                         source: "box.prog";
1570                         script {
1571                                 if (get_int(g_is_show_dim_bg) == 1) {
1572                                         set_state(PART:"object.icon.bg.dim", "portrait", 0.0);
1573                                 }
1574                         }
1575                 }
1576                 program{
1577                         name: "box.landscape.custom";
1578                         source: "box.prog";
1579                         script {
1580                                 if (get_int(g_is_show_dim_bg) == 1) {
1581                                         set_state(PART:"object.icon.bg.dim", "landscape", 0.0);
1582                                 }
1583                         }
1584                 }
1585                 program{
1586                         name: "box.touch.down";
1587                         signal: "mouse,clicked,1";
1588                         source: "object.layer.touch.background";
1589                         action: SIGNAL_EMIT "selected" "edje";
1590                 }
1591                 program{
1592                         name: "box.button.1.touch.down";
1593                         signal: "mouse,clicked,1";
1594                         source: "object.layer.touch.button.1";
1595                         action: SIGNAL_EMIT "button_1" "edje";
1596                 }
1597                 program{
1598                         name: "box.button.close.1";
1599                         signal: "mouse,down,1";
1600                         source: "object.button.close";
1601                         script {
1602                                 if (get_int(g_is_close_button_disabled) == 0) {
1603                                         set_state(PART:"object.image.button.close", "pressed", 0.0);
1604                                 }
1605                         }
1606                 }
1607                 program{
1608                         name: "box.button.close.2";
1609                         signal: "mouse,up,1";
1610                         source: "object.button.close";
1611                         script {
1612                                 set_state(PART:"object.image.button.close", "normal", 0.0);
1613                         }
1614                 }
1615                 program{
1616                         name: "box.button.close.3";
1617                         signal: "mouse,clicked,1";
1618                         source: "object.button.close";
1619                         script {
1620                                 if (get_int(g_is_close_button_disabled) == 0) {
1621                                         set_state(PART:"object.image.button.close", "normal", 0.0);
1622                                         emit("deleted", "edje");
1623                                 }
1624                         }
1625                 }
1626                 program{
1627                         name: "box.button.close.4";
1628                         signal: "disabled";
1629                         source: "object.button.close";
1630                         script {
1631                                 set_state(PART:"object.image.button.close", "disabled", 0.0);
1632                                 set_int(g_is_close_button_disabled, 1);
1633                         }
1634                 }
1635                 program{
1636                         name: "box.show.icon.bg";
1637                         signal: "box.show.icon.bg";
1638                         source: "box.prog";
1639                         action: STATE_SET "show" 0.0;
1640                         target: "object.icon.bg";
1641                         target: "object.layer.touch.button.1";
1642                 }
1643                 program{
1644                         name: "box.hide.icon.bg";
1645                         signal: "box.hide.icon.bg";
1646                         source: "box.prog";
1647                         action: STATE_SET "hide" 0.0;
1648                         target: "object.icon.bg";
1649                         target: "object.layer.touch.button.1";
1650                 }
1651                 program{
1652                         name: "box.show.icon.sub.bg";
1653                         signal: "box.show.sub.bg";
1654                         source: "box.prog";
1655                         action: STATE_SET "show" 0.0;
1656                         target: "object.icon.sub.bg";
1657                 }
1658                 program{
1659                         name: "box.hide.icon.sub.bg";
1660                         signal: "box.hide.sub.bg";
1661                         source: "box.prog";
1662                         action: STATE_SET "hide" 0.0;
1663                         target: "object.icon.sub.bg";
1664                 }
1665                 program{
1666                         name: "box.count.1";
1667                         signal: "box.count.1";
1668                         source: "box.prog";
1669                         action: STATE_SET "count1" 0.0;
1670                         target: "rect.text.count";
1671                 }
1672                 program{
1673                         name: "box.count.2";
1674                         signal: "box.count.2";
1675                         source: "box.prog";
1676                         action: STATE_SET "count2" 0.0;
1677                         target: "rect.text.count";
1678                 }
1679                 program{
1680                         name: "box.count.3";
1681                         signal: "box.count.3";
1682                         source: "box.prog";
1683                         action: STATE_SET "count3" 0.0;
1684                         target: "rect.text.count";
1685                 }
1686                 program{
1687                         name: "box.count.4";
1688                         signal: "box.count.4";
1689                         source: "box.prog";
1690                         action: STATE_SET "count4" 0.0;
1691                         target: "rect.text.count";
1692                 }
1693                 program{
1694                         name: "box.count.5";
1695                         signal: "box.count.5";
1696                         source: "box.prog";
1697                         action: STATE_SET "count5" 0.0;
1698                         target: "rect.text.count";
1699                 }
1700                 MAKE_PART_SHOW_PROGRAM("object.icon.background")
1701                 MAKE_PART_SHOW_PROGRAM("object.icon")
1702                 MAKE_PART_SHOW_PROGRAM("object.icon.sub")
1703                 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.title")
1704                 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.contents")
1705                 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.contents.short")
1706                 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.contents.multiline")
1707                 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.count")
1708                 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.info.1")
1709                 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.info.1.short")
1710                 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.info.1.multiline")
1711                 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.info.sub.1")
1712                 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.info.2")
1713                 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.info.2.short")
1714                 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.info.sub.2")
1715         }
1716 }
1717
1718
1719 group {
1720         name: "quickpanel/notibox/thumbnail";
1721
1722         script {
1723                 public g_is_close_button_disabled;
1724                 public g_is_show_dim_bg;
1725
1726                 public init_variables() {
1727                         set_int(g_is_close_button_disabled, 0);
1728                         set_int(g_is_show_dim_bg, 0);
1729                 }
1730         }
1731
1732         parts {
1733                 part {
1734                         name: "background";
1735                         type: RECT;
1736                         scale: 1;
1737                         description {
1738                                 state: "default" 0.0;
1739                                 min: BOX_WIDTH_P BOX_HEIGHT_P;
1740                                 color: BOX_COLOR_BG;
1741                                 align: 0.0 0.0;
1742                         }
1743                         description {
1744                                 state: "portrait" 0.0;
1745                                 inherit: "default" 0.0;
1746                         }
1747                         description {
1748                                 state: "landscape" 0.0;
1749                                 inherit: "default" 0.0;
1750                                 min: BOX_WIDTH_L BOX_HEIGHT_L;
1751                         }
1752                 }
1753
1754                 //section layout for margin
1755
1756                 part {
1757                         name: "margin.left";
1758                         type: RECT;
1759                         scale: 1;
1760                         description {
1761                                 state: "default" 0.0;
1762                                 min: BOX_MARGIN_TEXT_H 0;
1763                                 rel1 {
1764                                         relative: 0.0 0.0;
1765                                 }
1766                                 rel2 {
1767                                         relative: 0.0 1.0;
1768                                 }
1769                                 align: 0.0 0.0;
1770 #ifdef DEBUG
1771                                 color: 0 0 255 255;
1772 #else
1773                                 visible:0;
1774 #endif
1775                         }
1776                 }
1777                 part {
1778                         name: "margin.right";
1779                         type: RECT;
1780                         scale: 1;
1781                         description {
1782                                 state: "default" 0.0;
1783                                 min: BOX_MARGIN_TEXT_H 0;
1784                                 rel1 {
1785                                         relative: 1.0 0.0;
1786                                 }
1787                                 rel2 {
1788                                         relative: 1.0 1.0;
1789                                 }
1790                                 align: 1.0 0.0;
1791 #ifdef DEBUG
1792                                 color: 0 0 255 255;
1793 #else
1794                                 visible:0;
1795 #endif
1796                         }
1797                 }
1798                 part {
1799                         name: "margin.left.thumnail";
1800                         type: RECT;
1801                         scale: 1;
1802                         description {
1803                                 state: "default" 0.0;
1804                                 min: 15 0;
1805                                 rel1 {
1806                                         relative: 0.0 0.0;
1807                                 }
1808                                 rel2 {
1809                                         relative: 0.0 1.0;
1810                                 }
1811                                 align: 0.0 0.0;
1812 #ifdef DEBUG
1813                                 color: 25 0 60 255;
1814 #else
1815                                 visible:0;
1816 #endif
1817                         }
1818                         description {
1819                                 state: "portrait" 0.0;
1820                                 inherit: "default" 0.0;
1821                         }
1822                         description {
1823                                 state: "landscape" 0.0;
1824                                 inherit: "default" 0.0;
1825                                 min: 14 0;
1826                         }
1827                 }
1828                 part {
1829                         name: "margin.right.thumnail";
1830                         type: RECT;
1831                         scale: 1;
1832                         description {
1833                                 state: "default" 0.0;
1834                                 min: 15 0;
1835                                 rel1 {
1836                                         relative: 1.0 0.0;
1837                                 }
1838                                 rel2 {
1839                                         relative: 1.0 1.0;
1840                                 }
1841                                 align: 1.0 0.0;
1842 #ifdef DEBUG
1843                                 color: 25 0 60 255;
1844 #else
1845                                 visible:0;
1846 #endif
1847                         }
1848                         description {
1849                                 state: "portrait" 0.0;
1850                                 inherit: "default" 0.0;
1851                         }
1852                         description {
1853                                 state: "landscape" 0.0;
1854                                 inherit: "default" 0.0;
1855                                 min: 14 0;
1856                         }
1857                 }
1858                 part {
1859                         name: "margin.right.icon";
1860                         type: RECT;
1861                         scale: 1;
1862                         description {
1863                                 state: "default" 0.0;
1864                                 min: 6 0;
1865                                 rel1 {
1866                                         relative: 1.0 0.0;
1867                                 }
1868                                 rel2 {
1869                                         relative: 1.0 1.0;
1870                                 }
1871                                 align: 1.0 0.0;
1872 #ifdef DEBUG
1873                                 color: 0 255 255 255;
1874 #else
1875                                 visible:0;
1876 #endif
1877                         }
1878                 }
1879                 part {
1880                         name: "margin.top.icon";
1881                         type: RECT;
1882                         scale: 1;
1883                         description {
1884                                 state: "default" 0.0;
1885                                 min: 0 44;
1886                                 rel1 {
1887                                         relative: 0.0 0.0;
1888                                 }
1889                                 rel2 {
1890                                         relative: 1.0 0.0;
1891                                 }
1892                                 align: 0.0 0.0;
1893 #ifdef DEBUG
1894                                 color: 255 0 255 255;
1895 #else
1896                                 visible:0;
1897 #endif
1898                         }
1899                 }
1900                 part {
1901                         name: "margin.top.text";
1902                         type: RECT;
1903                         scale: 1;
1904                         description {
1905                                 state: "default" 0.0;
1906                                 min: 0 20;
1907                                 rel1 {
1908                                         relative: 0.0 0.0;
1909                                 }
1910                                 rel2 {
1911                                         relative: 1.0 0.0;
1912                                 }
1913                                 align: 0.0 0.0;
1914 #ifdef DEBUG
1915                                 color: 0 0 255 255;
1916 #else
1917                                 visible:0;
1918 #endif
1919                         }
1920                 }
1921                 part {
1922                         name: "margin.bottom";
1923                         type: RECT;
1924                         scale: 1;
1925                         description {
1926                                 state: "default" 0.0;
1927                                 min: 0 26;
1928                                 rel1 {
1929                                         relative: 0.0 1.0;
1930                                 }
1931                                 rel2 {
1932                                         relative: 1.0 1.0;
1933                                 }
1934                                 align: 0.0 1.0;
1935 #ifdef DEBUG
1936                                 color: 0 0 255 255;
1937 #else
1938                                 visible:0;
1939 #endif
1940                         }
1941                 }
1942
1943                 //section layout for elements
1944                 //section layout for icon
1945                 part {
1946                         name: "rect.icon.bg";
1947                         type: RECT;
1948                         scale: 1;
1949                         description {
1950                                 state: "default" 0.0;
1951                                 min: 124 124;
1952                                 rel1 {
1953                                         to_x:"margin.right.icon";
1954                                         to_y:"margin.top.icon";
1955                                         relative: 0.0 1.0;
1956                                 }
1957                                 rel2 {
1958                                         to_x:"margin.right.icon";
1959                                         to_y:"margin.top.icon";
1960                                         relative: 0.0 1.0;
1961                                 }
1962                                 align: 1.0 0.0;
1963 #ifdef DEBUG
1964                                 color: 255 0 0 255;
1965 #else
1966                                 visible:0;
1967 #endif
1968                         }
1969                 }
1970                 part {
1971                         name: "rect.icon";
1972                         type: RECT;
1973                         scale: 1;
1974                         description {
1975                                 state: "default" 0.0;
1976                                 min: 124 124;
1977                                 rel1 {
1978                                         to:"rect.icon.bg";
1979                                         relative: 0.5 0.5;
1980                                 }
1981                                 rel2 {
1982                                         to:"rect.icon.bg";
1983                                         relative: 0.5 0.5;
1984                                 }
1985                                 align: 0.5 0.5;
1986 #ifdef DEBUG
1987                                 color: 205 205 255 255;
1988 #else
1989                                 visible:0;
1990 #endif
1991                         }
1992                 }
1993                 part {
1994                         name: "rect.icon.sub.padding";
1995                         type: RECT;
1996                         scale: 1;
1997                         description {
1998                                 state: "default" 0.0;
1999                                 min: 0 12;
2000                                 rel1 {
2001                                         to:"rect.icon.bg";
2002                                         relative: 0.0 1.0;
2003                                 }
2004                                 rel2 {
2005                                         to:"rect.icon.bg";
2006                                         relative: 1.0 1.0;
2007                                 }
2008                                 align: 0.0 0.0;
2009 #ifdef DEBUG
2010                                 color: 235 215 235 255;
2011 #else
2012                                 visible:0;
2013 #endif
2014                         }
2015                 }
2016                 part {
2017                         name: "rect.icon.sub";
2018                         type: RECT;
2019                         scale: 1;
2020                         description {
2021                                 state: "default" 0.0;
2022                                 min: 56 56;
2023                                 rel1 {
2024                                         to:"rect.icon.sub.padding";
2025                                         relative: 1.0 1.0;
2026                                 }
2027                                 rel2 {
2028                                         to:"rect.icon.sub.padding";
2029                                         relative: 1.0 1.0;
2030                                 }
2031                                 align: 1.0 1.0;
2032 #ifdef DEBUG
2033                                 color: 255 0 100 255;
2034 #else
2035                                 visible:0;
2036 #endif
2037                         }
2038                 }
2039
2040                 //section layout for close button
2041                 part {
2042                         name: "rect.button.close";
2043                         type: RECT;
2044                         scale: 1;
2045                         description {
2046                                 state: "default" 0.0;
2047                                 min: 38 38;
2048                                 rel1 {
2049                                         relative: 1.0 0.0;
2050                                 }
2051                                 rel2 {
2052                                         relative: 1.0 0.0;
2053                                 }
2054                                 align: 1.0 0.0;
2055 #ifdef DEBUG
2056                                 color: 255 255 255 255;
2057 #else
2058                                 visible:0;
2059 #endif
2060                         }
2061                 }
2062
2063                 //section layout for texts
2064                 part {
2065                         name: "rect.text.title";
2066                         type: RECT;
2067                         scale: 1;
2068                         description {
2069                                 state: "default" 0.0;
2070                                 min: 190 189;
2071                                 max: 190 189;
2072                                 fixed: 1 1;
2073                                 rel1 {
2074                                         to_x:"margin.left";
2075                                         to_y:"margin.top.text";
2076                                         relative: 1.0 1.0;
2077                                 }
2078                                 rel2 {
2079                                         to_x:"rect.icon.bg";
2080                                         to_y:"margin.top.text";
2081                                         relative: 0.0 1.0;
2082                                 }
2083                                 align: 0.0 0.0;
2084 #ifdef DEBUG
2085                                 color: 100 100 100 255;
2086 #else
2087                                 visible:0;
2088 #endif
2089                         }
2090                         description {
2091                                 state: "portrait" 0.0;
2092                                 inherit: "default" 0.0;
2093                         }
2094                         description {
2095                                 state: "landscape" 0.0;
2096                                 inherit: "default" 0.0;
2097                                 min: 260 189;
2098                                 max: 260 189;
2099                         }
2100                 }
2101
2102
2103                 part {
2104                         name: "rect.text.margin.contents";
2105                         type: RECT;
2106                         scale: 1;
2107                         description {
2108                                 state: "default" 0.0;
2109                                 min: 0 20;
2110                                 rel1 {
2111                                         to_x:"margin.left";
2112                                         to_y:"rect.thumbnail.list.1";
2113                                         relative: 1.0 0.0;
2114                                 }
2115                                 rel2 {
2116                                         to_x:"margin.right";
2117                                         to_y:"rect.thumbnail.list.1";
2118                                         relative: 0.0 0.0;
2119                                 }
2120                                 align: 0.0 1.0;
2121 #ifdef DEBUG
2122                                 color: 255 255 255 255;
2123 #else
2124                                 visible:0;
2125 #endif
2126                         }
2127                 }
2128                 part {
2129                         name: "rect.text.contents";
2130                         type: RECT;
2131                         scale: 1;
2132                         description {
2133                                 state: "default" 0.0;
2134                                 min: 0 BOX_TEXT_CONTENTS_HEIGHT;
2135                                 rel1 {
2136                                         to_x:"margin.left";
2137                                         to_y:"rect.text.margin.contents";
2138                                         relative: 1.0 0.0;
2139                                 }
2140                                 rel2 {
2141                                         to_x:"margin.right";
2142                                         to_y:"rect.text.margin.contents";
2143                                         relative: 0.0 0.0;
2144                                 }
2145                                 align: 0.0 1.0;
2146 #ifdef DEBUG
2147                                 color: 100 150 100 255;
2148 #else
2149                                 visible:0;
2150 #endif
2151                         }
2152                 }
2153                 part {
2154                         name: "rect.text.count";
2155                         type: RECT;
2156                         scale: 1;
2157                         description {
2158                                 state: "default" 0.0;
2159                                 min: 58 58;
2160                                 rel1 {
2161                                         to_x:"margin.left";
2162                                         to_y:"rect.text.margin.contents";
2163                                         relative: 1.0 0.0;
2164                                 }
2165                                 rel2 {
2166                                         to_x:"margin.left";
2167                                         to_y:"rect.text.margin.contents";
2168                                         relative: 1.0 0.0;
2169                                 }
2170                                 align: 0.0 1.0;
2171 #ifdef DEBUG
2172                                 color: 190 190 190 255;
2173 #else
2174                                 visible:0;
2175 #endif
2176                         }
2177                 }
2178                 part {
2179                         name: "rect.text.count.padding";
2180                         type: RECT;
2181                         scale: 1;
2182                         description {
2183                                 state: "default" 0.0;
2184                                 min: 10 58;
2185                                 rel1 {
2186                                         to:"rect.text.count";
2187                                         relative: 1.0 0.0;
2188                                 }
2189                                 rel2 {
2190                                         to:"rect.text.count";
2191                                         relative: 1.0 1.0;
2192                                 }
2193                                 align: 0.0 0.0;
2194 #ifdef DEBUG
2195                                 color: 0 0 0 255;
2196 #else
2197                                 visible:0;
2198 #endif
2199                         }
2200                 }
2201                 part {
2202                         name: "rect.text.contents.short";
2203                         type: RECT;
2204                         scale: 1;
2205                         description {
2206                                 state: "default" 0.0;
2207                                 min: 0 BOX_TEXT_CONTENTS_HEIGHT;
2208                                 rel1 {
2209                                         to_x:"rect.text.count.padding";
2210                                         to_y:"rect.text.margin.contents";
2211                                         relative: 1.0 0.0;
2212                                 }
2213                                 rel2 {
2214                                         to_x:"margin.right";
2215                                         to_y:"rect.text.margin.contents";
2216                                         relative: 0.0 0.0;
2217                                 }
2218                                 align: 0.0 1.0;
2219 #ifdef DEBUG
2220                                 color: 40 255 100 255;
2221 #else
2222                                 visible:0;
2223 #endif
2224                         }
2225                 }
2226
2227                 //section layout for thumbnail
2228                 part {
2229                         name: "rect.thumbnail.list.1";
2230                         type: RECT;
2231                         scale: 1;
2232                         description {
2233                                 state: "default" 0.0;
2234                                 min: 70 70;
2235                                 rel1 {
2236                                         to_x:"margin.left.thumnail";
2237                                         to_y:"margin.bottom";
2238                                         relative: 1.0 0.0;
2239                                 }
2240                                 rel2 {
2241                                         to_x:"margin.left.thumnail";
2242                                         to_y:"margin.bottom";
2243                                         relative: 1.0 0.0;
2244                                 }
2245                                 align: 0.0 1.0;
2246 #ifdef DEBUG
2247                                 color: 255 0 0 255;
2248 #else
2249                                 visible:0;
2250 #endif
2251                         }
2252                 }
2253                 part {
2254                         name: "rect.thumbnail.list.1.padding";
2255                         type: RECT;
2256                         scale: 1;
2257                         description {
2258                                 state: "default" 0.0;
2259                                 min: 10 0;
2260                                 rel1 {
2261                                         to:"rect.thumbnail.list.1";
2262                                         relative: 1.0 0.0;
2263                                 }
2264                                 rel2 {
2265                                         to:"rect.thumbnail.list.1";
2266                                         relative: 1.0 1.0;
2267                                 }
2268                                 align: 0.0 0.0;
2269 #ifdef DEBUG
2270                                 color: 0 0 0 255;
2271 #else
2272                                 visible:0;
2273 #endif
2274                         }
2275                         description {
2276                                 state: "portrait" 0.0;
2277                                 inherit: "default" 0.0;
2278                         }
2279                         description {
2280                                 state: "landscape" 0.0;
2281                                 inherit: "default" 0.0;
2282                                 min: 8 0;
2283                         }
2284                 }
2285                 part {
2286                         name: "rect.thumbnail.list.2";
2287                         type: RECT;
2288                         scale: 1;
2289                         description {
2290                                 state: "default" 0.0;
2291                                 min: 70 70;
2292                                 rel1 {
2293                                         to_x:"rect.thumbnail.list.1.padding";
2294                                         to_y:"margin.bottom";
2295                                         relative: 1.0 0.0;
2296                                 }
2297                                 rel2 {
2298                                         to_x:"rect.thumbnail.list.1.padding";
2299                                         to_y:"margin.bottom";
2300                                         relative: 1.0 0.0;
2301                                 }
2302                                 align: 0.0 1.0;
2303 #ifdef DEBUG
2304                                 color: 255 0 0 255;
2305 #else
2306                                 visible:0;
2307 #endif
2308                         }
2309                 }
2310                 part {
2311                         name: "rect.thumbnail.list.2.padding";
2312                         type: RECT;
2313                         scale: 1;
2314                         description {
2315                                 state: "default" 0.0;
2316                                 min: 10 0;
2317                                 rel1 {
2318                                         to:"rect.thumbnail.list.2";
2319                                         relative: 1.0 0.0;
2320                                 }
2321                                 rel2 {
2322                                         to:"rect.thumbnail.list.2";
2323                                         relative: 1.0 1.0;
2324                                 }
2325                                 align: 0.0 0.0;
2326 #ifdef DEBUG
2327                                 color: 0 0 0 255;
2328 #else
2329                                 visible:0;
2330 #endif
2331                         }
2332                         description {
2333                                 state: "portrait" 0.0;
2334                                 inherit: "default" 0.0;
2335                         }
2336                         description {
2337                                 state: "landscape" 0.0;
2338                                 inherit: "default" 0.0;
2339                                 min: 8 0;
2340                         }
2341                 }
2342                 part {
2343                         name: "rect.thumbnail.list.3";
2344                         type: RECT;
2345                         scale: 1;
2346                         description {
2347                                 state: "default" 0.0;
2348                                 min: 70 70;
2349                                 rel1 {
2350                                         to_x:"rect.thumbnail.list.2.padding";
2351                                         to_y:"margin.bottom";
2352                                         relative: 1.0 0.0;
2353                                 }
2354                                 rel2 {
2355                                         to_x:"rect.thumbnail.list.2.padding";
2356                                         to_y:"margin.bottom";
2357                                         relative: 1.0 0.0;
2358                                 }
2359                                 align: 0.0 1.0;
2360 #ifdef DEBUG
2361                                 color: 255 0 0 255;
2362 #else
2363                                 visible:0;
2364 #endif
2365                         }
2366                 }
2367                 part {
2368                         name: "rect.thumbnail.list.3.padding";
2369                         type: RECT;
2370                         scale: 1;
2371                         description {
2372                                 state: "default" 0.0;
2373                                 min: 10 0;
2374                                 rel1 {
2375                                         to:"rect.thumbnail.list.3";
2376                                         relative: 1.0 0.0;
2377                                 }
2378                                 rel2 {
2379                                         to:"rect.thumbnail.list.3";
2380                                         relative: 1.0 1.0;
2381                                 }
2382                                 align: 0.0 0.0;
2383 #ifdef DEBUG
2384                                 color: 0 0 0 255;
2385 #else
2386                                 visible:0;
2387 #endif
2388                         }
2389                         description {
2390                                 state: "portrait" 0.0;
2391                                 inherit: "default" 0.0;
2392                         }
2393                         description {
2394                                 state: "landscape" 0.0;
2395                                 inherit: "default" 0.0;
2396                                 min: 8 0;
2397                         }
2398                 }
2399                 part {
2400                         name: "rect.thumbnail.list.4";
2401                         type: RECT;
2402                         scale: 1;
2403                         description {
2404                                 state: "default" 0.0;
2405                                 min: 70 70;
2406                                 rel1 {
2407                                         to_x:"rect.thumbnail.list.3.padding";
2408                                         to_y:"margin.bottom";
2409                                         relative: 1.0 0.0;
2410                                 }
2411                                 rel2 {
2412                                         to_x:"rect.thumbnail.list.3.padding";
2413                                         to_y:"margin.bottom";
2414                                         relative: 1.0 0.0;
2415                                 }
2416                                 align: 0.0 1.0;
2417 #ifdef DEBUG
2418                                 color: 255 0 0 255;
2419 #else
2420                                 visible:0;
2421 #endif
2422                         }
2423                 }
2424                 part {
2425                         name: "rect.thumbnail.list.4.padding";
2426                         type: RECT;
2427                         scale: 1;
2428                         description {
2429                                 state: "default" 0.0;
2430                                 min: 10 0;
2431                                 rel1 {
2432                                         to:"rect.thumbnail.list.4";
2433                                         relative: 1.0 0.0;
2434                                 }
2435                                 rel2 {
2436                                         to:"rect.thumbnail.list.4";
2437                                         relative: 1.0 1.0;
2438                                 }
2439                                 align: 0.0 0.0;
2440 #ifdef DEBUG
2441                                 color: 0 0 0 255;
2442 #else
2443                                 visible:0;
2444 #endif
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                                 min: 8 0;
2454                         }
2455                 }
2456                 part {
2457                         name: "rect.thumbnail.list.5";
2458                         type: RECT;
2459                         scale: 1;
2460                         description {
2461                                 state: "default" 0.0;
2462                                 min: 70 70;
2463                                 rel1 {
2464                                         to_x:"rect.thumbnail.list.4.padding";
2465                                         to_y:"margin.bottom";
2466                                         relative: 1.0 0.0;
2467                                 }
2468                                 rel2 {
2469                                         to_x:"rect.thumbnail.list.4.padding";
2470                                         to_y:"margin.bottom";
2471                                         relative: 1.0 0.0;
2472                                 }
2473                                 align: 0.0 1.0;
2474 #ifdef DEBUG
2475                                 color: 255 0 0 255;
2476 #else
2477                                 visible:0;
2478 #endif
2479
2480                         }
2481                         description {
2482                                 state: "portrait" 0.0;
2483                                 inherit: "default" 0.0;
2484                         }
2485                         description {
2486                                 state: "landscape" 0.0;
2487                                 inherit: "default" 0.0;
2488                                 visible:1;
2489                         }
2490                 }
2491
2492                 part{
2493                         name: "object.icon.background";
2494                         type:SWALLOW;
2495                         scale: 1;
2496                         description {
2497                                 state: "default" 0.0;
2498                                 fixed: 0 0;
2499                                 rel1 {to: "background";}
2500                                 rel2 {to: "background";}
2501                                 visible:0;
2502                         }
2503                         description {
2504                                 state: "show" 0.0;
2505                                 inherit: "default" 0.0;
2506                                 visible:1;
2507                         }
2508                 }
2509                 part{
2510                         name: "object.icon.bg";
2511                         type:IMAGE;
2512                         scale:1;
2513                         description {
2514                                 state: "default" 0.0;
2515                                 fixed: 0 0;
2516                                 rel1 {to: "rect.icon.bg";}
2517                                 rel2 {to: "rect.icon.bg";}
2518                                 image {
2519                                         normal:"quick_icon_bg_01.png";
2520                                         border: 0 0 0 0;
2521                                         border_scale: 1;
2522                                 }
2523                         }
2524                         description {
2525                                 state: "show" 0.0;
2526                                 inherit: "default" 0.0;
2527                                 visible:1;
2528                         }
2529                         description {
2530                                 state: "hide" 0.0;
2531                                 inherit: "default" 0.0;
2532                                 visible:0;
2533                         }
2534                 }
2535                 part{
2536                         name: "object.icon.bg.dim";
2537                         type:IMAGE;
2538                         scale:1;
2539                         description {
2540                                 state: "default" 0.0;
2541                                 fixed: 0 0;
2542                                 rel1 {to: "background";}
2543                                 rel2 {to: "background";}
2544                                 image {
2545                                         normal:"quick_image_dimmed_port.png";
2546                                         border: 0 0 0 0;
2547                                         border_scale: 1;
2548                                 }
2549                                 visible:0;
2550                         }
2551                         description {
2552                                 state: "portrait" 0.0;
2553                                 inherit: "default" 0.0;
2554                                 image {
2555                                         normal:"quick_image_dimmed_port.png";
2556                                         border: 0 0 0 0;
2557                                         border_scale: 1;
2558                                 }
2559                                 visible:1;
2560                         }
2561                         description {
2562                                 state: "landscape" 0.0;
2563                                 inherit: "default" 0.0;
2564                                 image {
2565                                         normal:"quick_image_dimmed_land.png";
2566                                         border: 0 0 0 0;
2567                                         border_scale: 1;
2568                                 }
2569                                 visible:1;
2570                         }
2571                 }
2572                 part{
2573                         name: "object.icon";
2574                         type:SWALLOW;
2575                         scale: 1;
2576                         description {
2577                                 state: "default" 0.0;
2578                                 fixed: 0 0;
2579                                 rel1 {to: "rect.icon";}
2580                                 rel2 {to: "rect.icon";}
2581                                 visible:0;
2582                         }
2583                         description {
2584                                 state: "show" 0.0;
2585                                 inherit: "default" 0.0;
2586                                 visible:1;
2587                         }
2588                 }
2589                 part{
2590                         name: "object.icon.sub.bg";
2591                         type:IMAGE;
2592                         scale:1;
2593                         description {
2594                                 state: "default" 0.0;
2595                                 fixed: 0 0;
2596                                 rel1 {to: "rect.icon.sub";}
2597                                 rel2 {to: "rect.icon.sub";}
2598                                 image {
2599                                         normal:"quick_icon_bg_small.png";
2600                                         border: 0 0 0 0;
2601                                         border_scale: 1;
2602                                 }
2603                                 visible:0;
2604                         }
2605                         description {
2606                                 state: "show" 0.0;
2607                                 inherit: "default" 0.0;
2608                                 visible:1;
2609                         }
2610                         description {
2611                                 state: "hide" 0.0;
2612                                 inherit: "default" 0.0;
2613                                 visible:0;
2614                         }
2615                 }
2616                 part{
2617                         name: "object.icon.sub";
2618                         type:SWALLOW;
2619                         scale: 1;
2620                         description {
2621                                 state: "default" 0.0;
2622                                 fixed: 0 0;
2623                                 rel1 {to: "rect.icon.sub";}
2624                                 rel2 {to: "rect.icon.sub";}
2625                                 visible:0;
2626                         }
2627                         description {
2628                                 state: "show" 0.0;
2629                                 inherit: "default" 0.0;
2630                                 visible:1;
2631                         }
2632                 }
2633
2634                 //section thumbnail
2635                 part{
2636                         name: "object.thumbnail.list.1";
2637                         type:SWALLOW;
2638                         scale: 1;
2639                         description {
2640                                 state: "default" 0.0;
2641                                 fixed: 0 0;
2642                                 rel1 {to: "rect.thumbnail.list.1";}
2643                                 rel2 {to: "rect.thumbnail.list.1";}
2644                                 visible:0;
2645                         }
2646                         description {
2647                                 state: "show" 0.0;
2648                                 inherit: "default" 0.0;
2649                                 visible:1;
2650                         }
2651                 }
2652                 part{
2653                         name: "object.thumbnail.list.2";
2654                         type:SWALLOW;
2655                         scale: 1;
2656                         description {
2657                                 state: "default" 0.0;
2658                                 fixed: 0 0;
2659                                 rel1 {to: "rect.thumbnail.list.2";}
2660                                 rel2 {to: "rect.thumbnail.list.2";}
2661                                 visible:0;
2662                         }
2663                         description {
2664                                 state: "show" 0.0;
2665                                 inherit: "default" 0.0;
2666                                 visible:1;
2667                         }
2668                 }
2669                 part{
2670                         name: "object.thumbnail.list.3";
2671                         type:SWALLOW;
2672                         scale: 1;
2673                         description {
2674                                 state: "default" 0.0;
2675                                 fixed: 0 0;
2676                                 rel1 {to: "rect.thumbnail.list.3";}
2677                                 rel2 {to: "rect.thumbnail.list.3";}
2678                                 visible:0;
2679                         }
2680                         description {
2681                                 state: "show" 0.0;
2682                                 inherit: "default" 0.0;
2683                                 visible:1;
2684                         }
2685                 }
2686                 part{
2687                         name: "object.thumbnail.list.4";
2688                         type:SWALLOW;
2689                         scale: 1;
2690                         description {
2691                                 state: "default" 0.0;
2692                                 fixed: 0 0;
2693                                 rel1 {to: "rect.thumbnail.list.4";}
2694                                 rel2 {to: "rect.thumbnail.list.4";}
2695                                 visible:0;
2696                         }
2697                         description {
2698                                 state: "show" 0.0;
2699                                 inherit: "default" 0.0;
2700                                 visible:1;
2701                         }
2702                 }
2703                 part{
2704                         name: "object.thumbnail.list.5";
2705                         type:SWALLOW;
2706                         scale: 1;
2707                         description {
2708                                 state: "default" 0.0;
2709                                 fixed: 0 0;
2710                                 rel1 {to: "rect.thumbnail.list.5";}
2711                                 rel2 {to: "rect.thumbnail.list.5";}
2712                                 visible: 0;
2713                         }
2714                         description {
2715                                 state: "portrait" 0.0;
2716                                 inherit: "default" 0.0;
2717                         }
2718                         description {
2719                                 state: "landscape" 0.0;
2720                                 inherit: "default" 0.0;
2721                                 visible: 1;
2722                         }
2723                 }
2724
2725                 part {
2726                         name: "object.text.title";
2727                         scale: 1;
2728                         type: TEXTBLOCK;
2729                         multiline: 1;
2730                         description {
2731                                 state: "default" 0.0;
2732                                 rel1 {to: "rect.text.title";}
2733                                 rel2 {to: "rect.text.title";}
2734                                 text {
2735                                         style: "notibox_title";
2736                                         align: 0.0 0.0;
2737 #ifdef DEBUG_TEXT
2738                                         text: "some string of text to display";
2739 #endif
2740                                 }
2741                                 visible:0;
2742                         }
2743                         description {
2744                                 state: "show" 0.0;
2745                                 inherit: "default" 0.0;
2746                                 visible:1;
2747                         }
2748                         description {
2749                                 state: "show.effect" 0.0;
2750                                 inherit: "default" 0.0;
2751                                 text {
2752                                         style: "notibox_title_effect";
2753                                 }
2754                                 visible:1;
2755                         }
2756                 }
2757
2758                 part {
2759                         name: "object.text.contents";
2760                         scale: 1;
2761                         type: TEXT;
2762                         effect: TEXT_EFFECT;
2763                         description {
2764                                 state: "default" 0.0;
2765                                 rel1 {to: "rect.text.contents";}
2766                                 rel2 {to: "rect.text.contents";}
2767                                 color: BOX_CONTENTS_FONT_COLOR;
2768                                 text {
2769                                         font: BOX_CONTENTS_FONT;
2770                                         text_class: TEXT_CLASS_TIZEN;
2771                                         size: BOX_CONTENTS_FONT_SIZE;
2772                                         align: 0.0 0.5;
2773 #ifdef DEBUG_TEXT
2774                                         text: "some string of text to display";
2775 #endif
2776                                 }
2777                                 visible:0;
2778                         }
2779                         description {
2780                                 state: "show" 0.0;
2781                                 inherit: "default" 0.0;
2782                                 visible:1;
2783                         }
2784                         description {
2785                                 state: "show.effect" 0.0;
2786                                 inherit: "default" 0.0;
2787                                 color2: BOX_FONT_SHADOW_COLOR;
2788                                 color3: BOX_FONT_OUTLINE_COLOR;
2789                                 visible:1;
2790                         }
2791                 }
2792                 part {
2793                         name: "object.text.contents.short";
2794                         scale: 1;
2795                         type: TEXT;
2796                         effect: TEXT_EFFECT;
2797                         description {
2798                                 state: "default" 0.0;
2799                                 rel1 {to: "rect.text.contents.short";}
2800                                 rel2 {to: "rect.text.contents.short";}
2801                                 color: BOX_CONTENTS_FONT_COLOR;
2802                                 text {
2803                                         font: BOX_CONTENTS_FONT;
2804                                         text_class: TEXT_CLASS_TIZEN;
2805                                         size: BOX_CONTENTS_FONT_SIZE;
2806                                         align: 0.0 0.5;
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
2824                 part {
2825                         name: "object.text.count";
2826                         scale: 1;
2827                         type: TEXT;
2828                         effect: TEXT_EFFECT;
2829                         description {
2830                                 state: "default" 0.0;
2831                                 rel1 {to: "rect.text.count";}
2832                                 rel2 {to: "rect.text.count";}
2833                                 color: BOX_INFO_COUNT_FONT_COLOR;
2834                                 text {
2835                                         font: BOX_INFO_COUNT_FONT;
2836                                         text_class: TEXT_CLASS_TIZEN;
2837                                         size: BOX_INFO_COUNT_FONT_SIZE;
2838                                         align: 0.0 0.5;
2839 #ifdef DEBUG_TEXT
2840                                         text: "3";
2841 #endif
2842                                 }
2843                                 visible:0;
2844                         }
2845                         description {
2846                                 state: "show" 0.0;
2847                                 inherit: "default" 0.0;
2848                                 visible:1;
2849                         }
2850                         description {
2851                                 state: "show.effect" 0.0;
2852                                 inherit: "default" 0.0;
2853                                 color2: BOX_FONT_SHADOW_COLOR;
2854                                 color3: BOX_FONT_OUTLINE_COLOR;
2855                                 visible:1;
2856                         }
2857                 }
2858                 part {
2859                         name: "object.layer.touch.background";
2860                         mouse_events: 1;
2861                         repeat_events: 1;
2862                         scale: 1;
2863                         type: RECT;
2864                         description {
2865                                 state: "default" 0.0;
2866                                 rel1 {to: "background";}
2867                                 rel2 {to: "background";}
2868                                 color: 0 0 0 0;
2869                         }
2870                 }
2871                 part {
2872                         name: "object.layer.touch.button.1";
2873                         mouse_events: 1;
2874                         repeat_events: 0;
2875                         scale: 1;
2876                         type: RECT;
2877                         description {
2878                                 state: "default" 0.0;
2879                                 rel1 {
2880                                         to_x: "rect.icon";
2881                                         to_y: "object.button.close";
2882                                         relative: 0.0 1.0;
2883                                 }
2884                                 rel2 {to: "rect.icon";}
2885                                 color: 0 0 0 0;
2886                         }
2887                         description {
2888                                 state: "show" 0.0;
2889                                 inherit: "default" 0.0;
2890                                 visible:1;
2891                         }
2892                         description {
2893                                 state: "hide" 0.0;
2894                                 inherit: "default" 0.0;
2895                                 visible: 0;
2896                         }
2897                 }
2898                 part{
2899                         name: "object.button.close";
2900                         type:RECT;
2901                         scale:1;
2902                         description {
2903                                 state: "default" 0.0;
2904                                 min:100 64;
2905                                 rel1 {
2906                                         to: "rect.button.close";
2907                                         relative: 1.0 0.0;
2908                                 }
2909                                 rel2 {
2910                                         to: "rect.button.close";
2911                                         relative: 1.0 0.0;
2912                                 }
2913                                 align: 1.0 0.0;
2914                                 color: 0 0 0 0;
2915                         }
2916                 }
2917                 part{
2918                         name: "object.image.button.close";
2919                         type:IMAGE;
2920                         scale:1;
2921                         repeat_events: 1;
2922                         description {
2923                                 state: "default" 0.0;
2924                                 rel1 {to: "rect.button.close";}
2925                                 rel2 {to: "rect.button.close";}
2926                                 image {
2927                                         normal:"quick_btn_close_nor.png";
2928                                         border: 0 0 0 0;
2929                                         border_scale: 1;
2930                                 }
2931                                 align: 0.0 1.0;
2932                         }
2933                         description {
2934                                 state: "normal" 0.0;
2935                                 inherit: "default" 0.0;
2936                         }
2937                         description {
2938                                 state: "pressed" 0.0;
2939                                 inherit: "default" 0.0;
2940                                 image {
2941                                         normal:"quick_btn_close_press.png";
2942                                         border: 0 0 0 0;
2943                                         border_scale: 1;
2944                                 }
2945                                 align: 0.0 1.0;
2946                         }
2947                         description {
2948                                 state: "disabled" 0.0;
2949                                 inherit: "default" 0.0;
2950                                 image {
2951                                         normal:"quick_btn_close_dim.png";
2952                                         border: 0 0 0 0;
2953                                         border_scale: 1;
2954                                 }
2955                                 align: 0.0 1.0;
2956                         }
2957                 }
2958         }
2959
2960         programs {
2961                 program {
2962                         name: "init.layout";
2963                         signal: "load";
2964                         source: "";
2965                         in: 0.0 0.0;
2966                         script{
2967                                 init_variables();
2968                         }
2969                 }
2970                 program{
2971                         name: "box.show.dim";
2972                         signal: "box.show.dim";
2973                         source: "box.prog";
2974                         script {
2975                                 set_int(g_is_show_dim_bg, 1);
2976                         }
2977                 }
2978                 program{
2979                         name: "box.hide.dim";
2980                         signal: "box.hide.dim";
2981                         source: "box.prog";
2982                         script {
2983                                 set_int(g_is_show_dim_bg, 0);
2984                         }
2985                 }
2986                 program{
2987                         name: "box.portrait";
2988                         signal: "box.portrait";
2989                         source: "box.prog";
2990                         action: STATE_SET "portrait" 0.0;
2991                         target: "background";
2992                         target: "margin.left.thumnail";
2993                         target: "margin.right.thumnail";
2994                         target: "rect.text.title";
2995                         target: "rect.thumbnail.list.1.padding";
2996                         target: "rect.thumbnail.list.2.padding";
2997                         target: "rect.thumbnail.list.3.padding";
2998                         target: "rect.thumbnail.list.4.padding";
2999                         target: "rect.thumbnail.list.5";
3000                         target: "object.thumbnail.list.5";
3001                         after: "box.portrait.custom";
3002                 }
3003                 program{
3004                         name: "box.landscape";
3005                         signal: "box.landscape";
3006                         source: "box.prog";
3007                         action: STATE_SET "landscape" 0.0;
3008                         target: "background";
3009                         target: "margin.left.thumnail";
3010                         target: "margin.right.thumnail";
3011                         target: "rect.text.title";
3012                         target: "rect.thumbnail.list.1.padding";
3013                         target: "rect.thumbnail.list.2.padding";
3014                         target: "rect.thumbnail.list.3.padding";
3015                         target: "rect.thumbnail.list.4.padding";
3016                         target: "rect.thumbnail.list.5";
3017                         target: "object.thumbnail.list.5";
3018                         after: "box.landscape.custom";
3019                 }
3020                 program{
3021                         name: "box.portrait.custom";
3022                         source: "box.prog";
3023                         script {
3024                                 if (get_int(g_is_show_dim_bg) == 1) {
3025                                         set_state(PART:"object.icon.bg.dim", "portrait", 0.0);
3026                                 }
3027                         }
3028                 }
3029                 program{
3030                         name: "box.landscape.custom";
3031                         source: "box.prog";
3032                         script {
3033                                 if (get_int(g_is_show_dim_bg) == 1) {
3034                                         set_state(PART:"object.icon.bg.dim", "landscape", 0.0);
3035                                 }
3036                         }
3037                 }
3038                 program{
3039                         name: "box.touch.down";
3040                         signal: "mouse,clicked,1";
3041                         source: "object.layer.touch.background";
3042                         action: SIGNAL_EMIT "selected" "edje";
3043                 }
3044                 program{
3045                         name: "box.button.1.touch.down";
3046                         signal: "mouse,clicked,1";
3047                         source: "object.layer.touch.button.1";
3048                         action: SIGNAL_EMIT "button_1" "edje";
3049                 }
3050                 program{
3051                         name: "box.button.close.1";
3052                         signal: "mouse,down,1";
3053                         source: "object.button.close";
3054                         script {
3055                                 if (get_int(g_is_close_button_disabled) == 0) {
3056                                         set_state(PART:"object.image.button.close", "pressed", 0.0);
3057                                 }
3058                         }
3059                 }
3060                 program{
3061                         name: "box.button.close.2";
3062                         signal: "mouse,up,1";
3063                         source: "object.button.close";
3064                         script {
3065                                 set_state(PART:"object.image.button.close", "normal", 0.0);
3066                         }
3067                 }
3068                 program{
3069                         name: "box.button.close.3";
3070                         signal: "mouse,clicked,1";
3071                         source: "object.button.close";
3072                         script {
3073                                 if (get_int(g_is_close_button_disabled) == 0) {
3074                                         set_state(PART:"object.image.button.close", "normal", 0.0);
3075                                         emit("deleted", "edje");
3076                                 }
3077                         }
3078                 }
3079                 program{
3080                         name: "box.button.close.4";
3081                         signal: "disabled";
3082                         source: "object.button.close";
3083                         script {
3084                                 set_state(PART:"object.image.button.close", "disabled", 0.0);
3085                                 set_int(g_is_close_button_disabled, 1);
3086                         }
3087                 }
3088                 program{
3089                         name: "box.show.icon.bg";
3090                         signal: "box.show.icon.bg";
3091                         source: "box.prog";
3092                         action: STATE_SET "show" 0.0;
3093                         target: "object.icon.bg";
3094                         target: "object.layer.touch.button.1";
3095                 }
3096                 program{
3097                         name: "box.hide.icon.bg";
3098                         signal: "box.hide.icon.bg";
3099                         source: "box.prog";
3100                         action: STATE_SET "hide" 0.0;
3101                         target: "object.icon.bg";
3102                         target: "object.layer.touch.button.1";
3103                 }
3104                 program{
3105                         name: "box.show.icon.sub.bg";
3106                         signal: "box.show.sub.bg";
3107                         source: "box.prog";
3108                         action: STATE_SET "show" 0.0;
3109                         target: "object.icon.sub.bg";
3110                 }
3111                 program{
3112                         name: "box.hide.icon.sub.bg";
3113                         signal: "box.hide.sub.bg";
3114                         source: "box.prog";
3115                         action: STATE_SET "hide" 0.0;
3116                         target: "object.icon.sub.bg";
3117                 }
3118                 MAKE_PART_SHOW_PROGRAM("object.icon.background")
3119                 MAKE_PART_SHOW_PROGRAM("object.icon")
3120                 MAKE_PART_SHOW_PROGRAM("object.icon.sub")
3121                 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.title")
3122                 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.contents")
3123                 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.contents.short")
3124                 MAKE_PART_SHOW_TEXT_PROGRAM("object.text.count")
3125                 MAKE_PART_SHOW_PROGRAM("object.thumbnail.list.1")
3126                 MAKE_PART_SHOW_PROGRAM("object.thumbnail.list.2")
3127                 MAKE_PART_SHOW_PROGRAM("object.thumbnail.list.3")
3128                 MAKE_PART_SHOW_PROGRAM("object.thumbnail.list.4")
3129         }
3130 }