fix manifest - remove unnecessary labels
[apps/core/preloaded/quickpanel.git] / data / quickpanel_listbox.edc
1 //#define DEBUG
2 //#define DEBUG_TEXT
3
4         styles {
5                 style {
6                         name: "ongoing_content_text";
7                         base: "font=Tizen:style=Roman text_class=tizen align=left valign=top font_size=28 linegap=-6 ellipsis=1.0 color=#828384FF wrap=mixed";
8                 }
9         }
10
11         group {
12                 name: "quickpanel/listitem/default";
13
14                 images {
15                         image: "quick_icon_bg_02.png" COMP;
16                 }
17
18                 script {
19                         public ctnt_shown;
20                         public ctnt_multiline_shown;
21                 }
22
23                 parts {
24                         part { name: "base";
25                                 type: RECT;
26                                 repeat_events: 1;
27                                 scale: 1;
28                                 description {
29                                         state: "default" 0.0;
30                                         min: 0 QP_THEME_LIST_ITEM_ONGOING_HEIGHT + QP_THEME_LIST_ITEM_ONGOING_SEPERATOR_HEIGHT;
31                                         max: 9999 QP_THEME_LIST_ITEM_ONGOING_HEIGHT + QP_THEME_LIST_ITEM_ONGOING_SEPERATOR_HEIGHT;
32                                         rel1 {
33                                                 relative: 0.0 0.0;
34                                         }
35                                         rel2 {
36                                                 relative: 1.0 0.0;
37                                         }
38                                         align: 0.0 0.0;
39                                         color: QP_THEME_BG_COLOR;
40                                         visible: QP_THEME_BG_VISIBILITY;
41                                 }
42                         }
43                         part { name: "bg_image";
44                                 mouse_events: 0;
45                                 description {
46                                         state: "default" 0.0;
47                                         rel1.to:"base";
48                                         rel2.to:"base";
49                                         color: QP_THEME_NOTI_BG_COLOR;
50                                 }
51                                 description {
52                                         state: "selected" 0.0;
53                                         inherit: "default" 0.0;
54                                         color: QP_THEME_NOTI_BG_COLOR;
55                                 }
56                         }
57                         part { name: "elm.padding.top";
58                                 type: RECT;
59                                 scale: 1;
60                                 description {
61                                         state: "default" 0.0;
62                                         min: 0 16 + QP_THEME_LIST_ITEM_ONGOING_SEPERATOR_HEIGHT;
63                                         fixed: 0 1;
64                                         visible: 0;
65                                         rel1.to:"base";
66                                         rel2.to:"base";
67                                         rel1.relative: 0.0 0.0;
68                                         rel2.relative: 1.0 0.0;
69                                         align: 0.0 0.0;
70                                 }
71                         }
72                         part { name: "elm.padding.top.text.contents";
73                                 type: RECT;
74                                 scale: 1;
75                                 description {
76                                         state: "default" 0.0;
77                                         min: 0 61 + QP_THEME_LIST_ITEM_ONGOING_SEPERATOR_HEIGHT;
78                                         fixed: 0 1;
79                                         visible: 0;
80                                         rel1.to:"base";
81                                         rel2.to:"base";
82                                         rel1.relative: 0.0 0.0;
83                                         rel2.relative: 1.0 0.0;
84                                         align: 0.0 0.0;
85                                 }
86                         }
87                         part { name: "elm.padding.bottom.mutiline.content";
88                                 type: RECT;
89                                 scale: 1;
90                                 description { state: "default" 0.0;
91                                         min: 0 0;
92                                         fixed: 0 1;
93                                         visible: 0;
94                                         rel1.to:"base";
95                                         rel2.to:"base";
96                                         rel1.relative: 0.0 1.0;
97                                         align: 0.0 1.0;
98                                 }
99                         }
100                         part { name: "elm.padding.bottom.time";
101                                 type: RECT;
102                                 scale: 1;
103                                 description { state: "default" 0.0;
104                                         min: 0 82;
105                                         fixed: 0 1;
106 #ifdef DEBUG
107                                         visible: 1;
108                                         color: 0 255 0 255;
109 #else
110                                         visible: 0;
111 #endif
112                                         rel1.to:"base";
113                                         rel2.to:"base";
114                                         rel1.relative: 0.0 1.0;
115                                         rel2.relative: 1.0 1.0;
116                                         align: 0.0 1.0;
117                                 }
118                         }
119                         part { name: "elm.padding.bottom.progress";
120                                 type: RECT;
121                                 scale: 1;
122                                 description { state: "default" 0.0;
123                                         min: 0 52;
124                                         fixed: 0 1;
125                                         rel1.to:"base";
126                                         rel2.to:"base";
127                                         rel1.relative: 0.0 1.0;
128                                         rel2.relative: 1.0 1.0;
129                                         align: 0.0 1.0;
130 #ifdef DEBUG
131                                         visible: 1;
132                                         color: 0 0 255 255;
133 #else
134                                         visible: 0;
135 #endif
136                                 }
137                         }
138                         part { name: "elm.padding.bottom.icon";
139                                 type: RECT;
140                                 scale: 1;
141                                 description { state: "default" 0.0;
142                                         min: 0 31;
143                                         fixed: 0 1;
144                                         rel1.to:"base";
145                                         rel2.to:"base";
146                                         rel1.relative: 0.0 1.0;
147                                         rel2.relative: 1.0 1.0;
148                                         align: 0.0 1.0;
149                                         visible: 0;
150                                 }
151                         }
152                         part { name: "elm.padding.left.bg";
153                                 type: RECT;
154                                 scale: 1;
155                                 description {
156                                         state: "default" 0.0;
157                                         min: 14 0;
158                                         fixed: 1 0;
159                                         rel1.to:"base";
160                                         rel2.to:"base";
161                                         rel1.relative: 0.0 0.0;
162                                         rel2.relative: 0.0 1.0;
163                                         align: 0.0 0.0;
164                                         color: QP_THEME_BG_COLOR;
165                                         visible: QP_THEME_BG_VISIBILITY;
166                                 }
167                         }
168                         part { name: "elm.padding.right.bg";
169                                 type: RECT;
170                                 scale: 1;
171                                 description {
172                                         state: "default" 0.0;
173                                         min: 14 0;
174                                         fixed: 1 0;
175                                         rel1.to:"base";
176                                         rel2.to:"base";
177                                         rel1.relative: 1.0 0.0;
178                                         rel2.relative: 1.0 1.0;
179                                         align: 1.0 0.0;
180                                         color: QP_THEME_BG_COLOR;
181                                         visible: QP_THEME_BG_VISIBILITY;
182                                 }
183                         }
184                         part { name: "elm.padding.top.bg";
185                                 type: RECT;
186                                 scale: 1;
187                                 description { state: "default" 0.0;
188                                         min: 0 QP_THEME_LIST_ITEM_ONGOING_SEPERATOR_HEIGHT;
189                                         fixed: 0 1;
190                                         rel1.to:"base";
191                                         rel2.to:"base";
192                                         rel1.relative: 0.0 0.0;
193                                         rel2.relative: 1.0 0.0;
194                                         align: 0.0 0.0;
195                                         color: QP_THEME_BG_COLOR;
196                                         visible: QP_THEME_BG_VISIBILITY;
197                                 }
198                         }
199                         part { name: "elm.content.bg";
200                                 type: RECT;
201                                 scale: 1;
202                                 description {
203                                         state: "default" 0.0;
204                                         rel1 {
205                                                 to_x:"elm.padding.left.bg";
206                                                 to_y:"elm.padding.top.bg";
207                                                 relative: 1.0 1.0;
208                                         }
209                                         rel2 {
210                                                 to_x:"elm.padding.right.bg";
211                                                 to_y:"base";
212                                                 relative: 0.0 1.0;
213                                         }
214                                         align: 0.0 0.0;
215                                         visible: 1;
216                                         color: QP_THEME_NOTI_BG_COLOR;
217                                 }
218                         }
219                         part { name: "elm.padding.left";
220                                 type: RECT;
221                                 scale: 1;
222                                 description {
223                                         state: "default" 0.0;
224                                         min: 28 0;
225                                         fixed: 1 0;
226                                         rel1.to:"base";
227                                         rel2.to:"base";
228                                         rel1.relative: 0.0 0.0;
229                                         rel2.relative: 0.0 1.0;
230                                         align: 0.0 0.0;
231                                         visible: 0;
232                                 }
233                         }
234                         part { name: "elm.padding.right";
235                                 type: RECT;
236                                 scale: 1;
237                                 description {
238                                         state: "default" 0.0;
239                                         min: 20 0;
240                                         fixed: 1 0;
241                                         rel1.to:"base";
242                                         rel2.to:"base";
243                                         rel1.relative: 1.0 0.0;
244                                         rel2.relative: 1.0 1.0;
245                                         align: 1.0 0.0;
246 #ifdef DEBUG
247                                         visible: 1;
248                                         color: 255 0 0 190;
249 #else
250                                         visible: 0;
251 #endif
252                                 }
253                         }
254                         part { name: "elm.rect.thumbnail";
255                                 type: RECT;
256                                 mouse_events: 0;
257                                 scale: 1;
258                                 description { state: "default" 0.0;
259                                         min: 124 124;
260                                         fixed: 1 1;
261                                         rel1 {
262                                                 relative: 0.0 0.0;
263                                                 to_x: "elm.padding.right";
264                                                 to_y: "elm.padding.bottom.icon";
265                                         }
266                                         rel2 {
267                                                 relative: 0.0 0.0;
268                                                 to_x: "elm.padding.right";
269                                                 to_y: "elm.padding.bottom.icon";
270                                         }
271                                         align: 1.0 1.0;
272                                         visible: 0;
273                                 }
274                         }
275                         part { name: "elm.thumbnail.bg";
276                                 type: IMAGE;
277                                 mouse_events: 0;
278                                 scale: 1;
279                                 description {
280                                         state: "default" 0.0;
281                                         fixed: 0 0;
282                                         rel1 {to: "elm.rect.thumbnail";}
283                                         rel2 {to: "elm.rect.thumbnail";}
284                                         image {
285                                                 normal:"quick_icon_bg_02.png";
286                                                 border: 0 0 0 0;
287                                                 border_scale: 1;
288                                         }
289                                 }
290                         }
291                         part { name: "elm.swallow.thumbnail";
292                                 type: SWALLOW;
293                                 mouse_events: 0;
294                                 scale: 1;
295                                 description { state: "default" 0.0;
296                                         fixed: 1 1;
297                                         rel1 {
298                                                 to: "elm.rect.thumbnail";
299                                         }
300                                         rel2 {
301                                                 to: "elm.rect.thumbnail";
302                                         }
303                                         align: 0.5 0.5;
304                                 }
305                         }
306                         part { name: "elm.swallow.icon";
307                                 type: SWALLOW;
308                                 mouse_events: 0;
309                                 scale: 1;
310                                 description { state: "default" 0.0;
311                                         min: 40 40;
312                                         fixed: 1 1;
313                                         rel1 {
314                                                 relative: 1.0 1.0;
315                                                 to: "elm.rect.thumbnail";
316                                         }
317                                         rel2 {
318                                                 relative: 1.0 1.0;
319                                                 to: "elm.rect.thumbnail";
320                                         }
321                                         align: 1.0 1.0;
322                                 }
323                         }
324                         part { name: "elm.padding.right.slider.bounder";
325                                 type: RECT;
326                                 scale: 1;
327                                 description { state: "default" 0.0;
328                                         min: 202 0;
329                                         fixed: 1 0;
330                                         rel1 {
331                                                 relative: 0.0 0.0;
332                                                 to_x: "elm.padding.right";
333                                         }
334                                         rel2 {
335                                                 relative: 0.0 1.0;
336                                                 to_x: "elm.padding.right";
337                                         }
338                                         visible: 0;
339                                         align: 1.0 0.0;
340                                 }
341                         }
342                         part { name: "elm.padding.right.text.bounder";
343                                 type: RECT;
344                                 scale: 1;
345                                 description { state: "default" 0.0;
346                                         min: 144 0;
347                                         fixed: 1 0;
348                                         rel1 {
349                                                 relative: 0.0 0.0;
350                                                 to_x: "elm.padding.right";
351                                         }
352                                         rel2 {
353                                                 relative: 0.0 1.0;
354                                                 to_x: "elm.padding.right";
355                                         }
356                                         visible: 0;
357                                         align: 1.0 0.0;
358                                 }
359                         }
360                         part { name: "elm.text.title";
361                                 type: TEXT;
362                                 mouse_events: 0;
363                                 scale: 1;
364                                 description { state: "default" 0.0;
365                                         min: 0 36;
366                                         align: 0.0 0.0;
367                                         fixed: 0 1;
368                                         rel1 {
369                                                 relative: 1.0 1.0;
370                                                 to_x: "elm.padding.left";
371                                                 to_y: "elm.padding.top";
372                                         }
373                                         rel2 {
374                                                 relative: 0.0 1.0;
375                                                 to_x: "elm.padding.right.text.bounder";
376                                                 to_y: "elm.padding.top";
377                                         }
378                                         color: 248 246 239 255;
379                                         text {
380                                                 font: "Tizen:style=Regular";
381                                                 text_class: "tizen";
382                                                 size: 32;
383                                                 fit: 0 1;
384                                                 ellipsis: 0.0;
385                                                 align: 0.0 0.5;
386                                                 size_range: 34 44;
387                                         }
388                                 }
389                                 description { state: "selected" 0.0;
390                                         inherit: "default" 0.0;
391                                         color: 248 246 239 255;
392                                 }
393                         }
394                         part { name: "elm.text.time";
395                                 type: TEXT;
396                                 mouse_events: 0;
397                                 scale: 1;
398                                 description { state: "default" 0.0;
399                                         fixed: 0 1;
400                                         min: 0 28;
401                                         align: 0.0 1.0;
402                                         rel1 {
403                                                 relative: 1.0 0.0;
404                                                 to_x: "elm.padding.left";
405                                                 to_y: "elm.padding.bottom.time";
406                                         }
407                                         rel2 {
408                                                 relative: 0.0 0.0;
409                                                 to_x: "elm.padding.right.slider.bounder";
410                                                 to_y: "elm.padding.bottom.time";
411                                         }
412                                         color: 255 255 255 255;
413                                         text {
414                                                 font: "Tizen:style=Medium";
415                                                 text_class: "tizen";
416                                                 size: 28;
417                                                 align: 1.0 0.0;
418                                         }
419                                 }
420                                 description { state: "selected" 0.0;
421                                         inherit: "default" 0.0;
422                                         color: 255 255 255 255;
423                                 }
424                         }
425                         part { name: "elm.rect.content";
426                                 type: RECT;
427                                 mouse_events: 0;
428                                 scale: 1;
429                                 description { state: "default" 0.0;
430                                         align: 0.0 0.0;
431                                         min: 0 28;
432                                         fixed: 0 1;
433                                         rel1 {
434                                                 relative: 1.0 1.0;
435                                                 to_x: "elm.padding.left";
436                                                 to_y: "elm.padding.top.text.contents";
437                                         }
438                                         rel2 {
439                                                 relative: 0.0 1.0;
440                                                 to_x: "elm.padding.right.text.bounder";
441                                                 to_y: "elm.padding.top.text.contents";
442                                         }
443                                         visible: 0;
444                                 }
445                         }
446                         part { name: "elm.text.content";
447                                 type: TEXT;
448                                 mouse_events: 0;
449                                 scale: 1;
450                                 description { state: "default" 0.0;
451                                         align: 0.0 0.0;
452                                         fixed: 0 1;
453                                         rel1 {
454                                                 to: "elm.rect.content";
455                                         }
456                                         rel2 {
457                                                 to: "elm.rect.content";
458                                         }
459                                         color: 130 131 132 255;
460                                         text {
461                                                 font: "Tizen:style=Roman";
462                                                 text_class: "tizen";
463                                                 size: 28;
464                                                 fit: 0 1;
465                                                 ellipsis: 0.0;
466                                                 size_range: 26 30;
467                                                 align: 0.0 0.5;
468                                         }
469                                         visible: 0;
470                                 }
471                                 description { state: "show" 0.0;
472                                         inherit: "default" 0.0;
473                                         visible: 1;
474                                 }
475                                 description { state: "selected" 0.0;
476                                         inherit: "default" 0.0;
477                                         color: 130 131 132 255;
478                                         visible: 1;
479                                 }
480                         }
481                         part { name: "elm.rect.content.multiline";
482                                 type: RECT;
483                                 mouse_events: 0;
484                                 scale: 1;
485                                 description { state: "default" 0.0;
486                                         align: 0.0 0.0;
487                                         min: 0 0;
488                                         fixed: 1 1;
489                                         rel1 {
490                                                 relative: 1.0 1.0;
491                                                 to_x: "elm.padding.left";
492                                                 to_y: "elm.text.title";
493                                         }
494                                         rel2 {
495                                                 relative: 0.0 0.0;
496                                                 to_x: "elm.padding.right.text.bounder";
497                                                 to_y: "elm.padding.bottom.mutiline.content";
498                                         }
499                                         visible: 0;
500                                 }
501                         }
502                         part { name: "elm.text.content.multiline";
503                                 type: TEXTBLOCK;
504                                 mouse_events: 0;
505                                 scale: 1;
506                                 description { state: "default" 0.0;
507                                         align: 0.0 0.0;
508                                         fixed: 1 1;
509                                         rel1 {
510                                                 to: "elm.rect.content.multiline";
511                                         }
512                                         rel2 {
513                                                 to: "elm.rect.content.multiline";
514                                         }
515                                         text {
516                                                         style: "ongoing_content_text";
517                                                         align: 0.0 0.0;
518                                                         fit: 0 0;
519                                         }
520                                         visible:0;
521                                 }
522                                 description { state: "show" 0.0;
523                                         inherit: "default" 0.0;
524                                         visible:1;
525                                 }
526                                 description { state: "selected" 0.0;
527                                         inherit: "default" 0.0;
528                                         color: 130 131 132 255;
529                                         visible: 1;
530                                 }
531                         }
532                         part { name: "elm.box.progress";
533                                 type: BOX;
534                                 mouse_events: 0;
535                                 scale: 1;
536                                 description { state: "default" 0.0;
537                                         min: 0 20;
538                                         fixed: 0 1;
539                                         align: 0.0 1.0;
540                                         rel1 {
541                                                 relative: 1.0 0.0;
542                                                 to_x: "elm.padding.left";
543                                                 to_y: "elm.padding.bottom.progress";
544                                         }
545                                         rel2 {
546                                                 relative: 0.0 0.0;
547                                                 to_x: "elm.padding.right.slider.bounder";
548                                                 to_y: "elm.padding.bottom.progress";
549                                         }
550 #ifdef DEBUG
551                                         visible: 1;
552                                         color: 100 100 100 200;
553 #else
554                                         visible: 0;
555 #endif
556                                 }
557                         }
558                         part { name: "elm.swallow.progress";
559                                 type: SWALLOW;
560                                 mouse_events: 0;
561                                 scale: 1;
562                                 description { state: "default" 0.0;
563                                         rel1 {
564                                                 to: "elm.box.progress";
565                                         }
566                                         rel2 {
567                                                 to: "elm.box.progress";
568                                         }
569                                         align: 0.0 0.0;
570                                 }
571                         }
572                         part {
573                                 name: "object.layer.touch.background";
574                                 mouse_events: 1;
575                                 repeat_events: 1;
576                                 scale: 1;
577                                 type: RECT;
578                                 description {
579                                         state: "default" 0.0;
580                                         rel1 {to: "base";}
581                                         rel2 {to: "base";}
582                                         color: 0 0 0 0;
583                                 }
584                         }
585                         part {
586                                 name: "accessibility";
587                                 type: RECT;
588                                 mouse_events: 1;
589                                 repeat_events: 1;
590                                 scale: 1;
591                                 description {
592                                         state: "default" 0.0;
593                                         rel1 {
594                                                 to: "elm.content.bg";
595                                         }
596                                         rel2 {
597                                                 to: "elm.content.bg";
598                                         }
599                                         color: QP_ACCESSIBILITY_TEST_COLOR;
600                                         visible: 1;
601                                 }
602                         }
603                 }
604
605                 programs {
606                         program{
607                                 name: "listbox.touch.down";
608                                 signal: "mouse,clicked,1";
609                                 source: "object.layer.touch.background";
610                                 action: SIGNAL_EMIT "selected" "edje";
611                         }
612                         program { name: "show_content";
613                                 signal: "elm,state,elm.text.content,active";
614                                 source: "elm";
615                                 script {
616                                         set_state(PART:"elm.text.content", "show", 0.0);
617                                         set_int(ctnt_shown, 1);
618                                 }
619                         }
620                         program { name: "show_content_multiline";
621                                 signal: "elm,state,elm.text.content.multiline,active";
622                                 source: "elm";
623                                 script {
624                                         set_state(PART:"elm.text.content.multiline", "show", 0.0);
625                                         set_int(ctnt_multiline_shown, 1);
626                                 }
627                         }
628                 }
629         }