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