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