Merge "[Progressbar] issue image getting invisible for list progressbar. fixed."
[profile/ivi/efl-theme-tizen.git] / themes / groups / genlist / genlist_edit.edc
1 /*
2  *  Beat-theme
3  *
4  * Copyright (c) 2000 - 2010 Samsung Electronics Co., Ltd.
5  *
6  * Contact: Seokjae Jeong <seok.j.jeong@samsung.com>, Myoungwoon Roy Kim <Myoungwoon.kim@samsung.com>, Jeonghyun Yun <jh0506.yun@samsung.com>, Jaehwan Kim <jae.hwan.kim@samsung.com>, 
7  *              Chuneon Park <chuneon.park@samsung.com>, Juyung Seo <juyung.seo@samsung.com>, Woohyun Jung <wh0705.jung@samsung.com>, Myungjae Lee <mjae.lee@samsung.com>, Hyoyoung Chang <hyoyoung.chang@samsung.com>, 
8  *              Hyunsil Park <hyunsil.park@samsung.com>, Sohyun Kim <anna1014.kim@samsung.com>, Seunggyun Kim <sgyun.kim@samsung.com>
9  * 
10  * This library is free software; you can redistribute it and/or modify it under
11  * the terms of the GNU Lesser General Public License as published by the
12  * Free Software Foundation; either version 2.1 of the License, or (at your option)
13  * any later version.
14  * 
15  * This library is distributed in the hope that it will be useful, but WITHOUT ANY
16  * WARRANTY; without even the implied warranty of MERCHANTABILITY or
17  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
18  * License for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public License
21  * along with this library; if not, write to the Free Software Foundation, Inc., 51
22  * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23  *
24  */
25
26 /*         
27  * vim:ts=3
28  */        
29
30    #define EDIT_ICON_WIDTH 26
31    #define EDIT_ICON_HEIGHT 26
32    #define GENLIST_EDIT_CHECKBOX_WIDTH    EDIT_ICON_WIDTH
33    #define GENLIST_EDIT_CHECKBOX_HEIGHT   EDIT_ICON_HEIGHT
34
35    group { name: "elm/genlist/item/edit_control/default";
36       alias: "elm/genlist/item_odd/edit_control/default";
37       alias: "elm/genlist/item_compress/edit_control/default";
38       alias: "elm/genlist/item_compress_odd/edit_control/default";
39
40       data.item: "reorder" "reorder_icon";
41       data.item: "insert" "insert_icon";
42       data.item: "delete" "select_icon";
43       data.item: "del_confirm" "elm.icon.del_confirm";
44       data.item: "icon_width" 50;
45       data.item: "del_button_style" "custom/red";
46       data.item: "icons" "elm.swallow.end";
47       data.item: "rename" "elm.swallow.edit_field_1line elm.swallow.edit_field_2line";
48       
49       images {
50          image: "00_check_bg.png" COMP;
51          image: "00_check_checking.png" COMP;
52          image: "01_list_reorder_bg_above.png" COMP;
53          image: "01_list_reorder_bg_below.png" COMP;
54          image: "00_list_group_edit_field_middle.png" COMP;
55          image: "00_reorder_group_list_bg.png" COMP;
56          image: "00_list_body_bg.png" COMP;
57       }
58       parts {
59          part { name: "base";
60             type: RECT;
61             repeat_events: 1;
62             scale: 1; 
63             description { state: "default" 0.0; 
64                min: 0 70; 
65                color: 0 0 0 0;
66             }
67          }
68          BEAT_GENLIST_PART_PADDING_TOP( 0 )
69          BEAT_GENLIST_PART_PADDING_BOTTOM( 0 )
70
71          part { name: "elm.padding.left";
72             type: RECT;
73             scale: 1;
74             description { state: "default" 0.0;
75                min: 0 0;
76                fixed: 1 0;
77                visible: 0;
78                rel2.relative: 0.0 1.0;
79                align: 0.0 0.0;
80             }
81             description { state: "reorder" 0.0;
82                inherit: "default" 0.0;
83                min: 20 0;
84                fixed: 1 0;
85             }
86          }
87
88          BEAT_GENLIST_PART_PADDING_RIGHT( 10 )
89
90          part { name: "reorder_left_image";
91             clip_to: "disclip";
92             mouse_events: 1;
93             scale: 1;
94             description { state: "default" 0.0;
95                min: 15 0;
96                fixed: 1 0;
97                rel1 {
98                   relative: 1.0 1.0;
99                   to_x: "elm.padding.left";
100                   to_y: "elm.padding.top";
101                }
102                rel2 {
103                   relative: 1.0 1.0;
104                   to_x: "elm.padding.left";
105                   to_y: "elm.padding.bottom";
106                }
107                image.normal: "00_list_body_bg.png";
108             }
109             description { state: "reorder" 0.0;
110                inherit: "default" 0.0;
111                min: 15 0;
112                fixed: 1 0;
113                image.border: 0 0 13 13;
114                image.normal: "00_reorder_group_list_bg.png";
115             }
116          }
117
118          part { name: "elm.edit_bg";
119             type: RECT;
120             scale: 1;
121             description { state: "default" 0.0;
122                rel1 {
123                   relative: 1.0 1.0;
124                   to_x: "reorder_left_image";
125                   to_y: "elm.padding.top";
126                }
127                rel2 {
128                   relative: 1.0 0.0;
129                   to_y: "elm.padding.bottom";
130                }
131              color: GENLIST_PART_BG_COLOR_INC;
132             }
133          }
134
135          part { name: "check_bg";
136             clip_to: "disclip";
137             mouse_events: 1;
138             scale: 1;
139             description { state: "default" 0.0;
140                visible: 0;
141                min: 0 26;
142                fixed: 1 1;
143                align: 0.0 0.5;
144                rel1 {
145                   relative: 1.0 0.5;
146                   to_x: "reorder_left_image";
147                   to_y: "base";
148                }
149                rel2 {
150                   relative: 1.0 0.5;
151                   to_x: "reorder_left_image";
152                   to_y: "base";
153                }
154                image.normal: "00_check_bg.png";
155             }
156             description { state: "enabled" 0.0;
157                inherit: "default" 0.0;
158                visible: 1;
159                min: 26 26;
160
161             }
162          }
163
164          part { name: "check_checking";
165             clip_to: "disclip";
166             mouse_events: 1;
167             scale: 1;
168             description { state: "default" 0.0;
169                visible: 0;
170                min: 26 26;
171                fixed: 1 1;
172                align: 0.0 0.5;
173                rel1 {
174                   relative: 1.0 0.5;
175                   to_x: "reorder_left_image";
176                   to_y: "base";
177                }
178                rel2 {
179                   relative: 1.0 0.5;
180                   to_x: "reorder_left_image";
181                   to_y: "base";
182                }
183                image.normal: "00_check_checking.png";
184             }
185             description { state: "on_uncheck" 0.0;
186                inherit: "default" 0.0;
187                visible: 0;
188             }
189             description { state: "on_check" 0.0;
190                inherit: "default" 0.0;
191                visible: 1;
192             }            
193          }
194
195          part { name: "check_bg_touch_area";
196             type: RECT;
197             mouse_events: 1;
198             scale: 1;
199             description { state: "default" 0.0;
200                min: (GENLIST_EDIT_CHECKBOX_WIDTH+10) 0;
201                fixed: 1 0;
202                align: 0 0.5;
203                rel1 { relative: 0 0; to_x: "check_bg"; }
204                rel2 { relative: 0 1; to_x: "check_bg"; }
205                color: 0 0 0 0;
206             }
207          }
208
209          part { name: "original_edc";
210             clip_to: "disclip";
211             type: SWALLOW;
212             mouse_events: 1;
213             scale: 1;
214             description { state: "default" 0.0;
215                rel1 {
216                   relative: 1.0 1.0;
217                   to_x: "check_bg";
218                   to_y: "elm.padding.top";
219                }
220                rel2 {
221                   relative: 0.2 0.0;
222                   to_x: "elm.swallow.end";
223                   to_y: "elm.padding.bottom";
224                }
225             }
226           description { state: "disabled" 0.0;
227              inherit: "default" 0.0;
228              visible: 0;
229           }
230         }
231
232        part { name: "elm.swallow.end";
233           type: SWALLOW;
234           scale: 1;
235           description { state: "default" 0.0;
236              fixed: 1 0;
237              align: 1.0 0.5;
238              visible: 1;
239              rel1.to_x: "elm.padding.right";
240              rel2 {
241                 relative: 0.0  1.0;
242                 to_x: "elm.padding.right";
243              }
244           }
245           description { state: "disable" 0.0;
246              inherit: "default" 0.0;
247              visible: 0;
248           }
249        }
250
251        part { name: "elm.swallow.edit_field_bg";
252          type: IMAGE;
253          mouse_events: 1;
254          scale: 1;
255          description { state: "default" 0.0;
256             visible: 0;
257             color: 255 255 255 0;
258             rel1 {
259               relative: 1.0 0.0;
260               to_x: "check_bg";
261               offset: 0 1;
262             }
263             rel2 {
264               relative: 1.0 1.0;
265               offset: -1 -6;
266             }
267             image.border: 13 13 9 9;
268             image.normal: "00_list_group_edit_field_middle.png";
269          }
270          description { state: "enabled" 0.0;
271              inherit: "default" 0.0;
272              visible: 1;
273              color: 255 255 255 255;
274           }
275        }
276
277        part { name: "elm.swallow.edit_field_1line";
278          type: SWALLOW;
279          mouse_events: 1;
280          scale: 1;
281          description { state: "default" 0.0;
282             visible: 0;
283             rel1 {
284                relative: 1.0 0.0;
285                to_x: "check_bg";
286                offset: 0 1;
287             }
288             rel2 {
289                relative: 0.98 1.0;
290             }
291           }
292           description { state: "enabled" 0.0;
293              inherit: "default" 0.0;
294              visible: 1;
295           }
296        }
297
298        part { name: "bottom_line";
299           type: RECT;
300           clip_to: "disclip";
301           mouse_events: 0;
302           description { state: "default" 0.0;
303              min: 0 0;
304              fixed: 0 1;
305              visible: 1;
306              color: GENLIST_EDIT_PART_LINE_INC;
307              rel1 {
308                 relative: 0.0 1.0;
309                 to_x: "check_bg";
310                 offset: 0 -1;
311              }
312           }
313           description {
314               state: "hide" 0.0;
315               inherit: "default" 0.0;
316               visible: 0;
317           }
318           description {
319               state: "reorder" 0.0;
320               inherit: "default" 0.0;
321               min: 0 5;
322               fixed: 0 1;
323           }
324        }
325        part { name: "reorder_glow_above";
326           mouse_events: 0;
327           description { state: "default" 0.0;
328              visible: 0;
329              rel1.relative: 0.0 -0.3;
330              rel2.relative: 1.0 0.0;
331              image {
332                 normal: "01_list_reorder_bg_above.png";
333              }
334              fill.smooth: 0;
335           }
336           description { state: "reorder" 0.0;
337              inherit: "default" 0.0;
338              visible: 1;
339           }
340        }
341        part { name: "reorder_glow_below";
342           mouse_events: 0;
343           description { state: "default" 0.0;
344              visible: 0;
345              rel1.relative: 0.0 1.0;
346              rel2.relative: 1.0 1.3;
347              image {
348                 normal: "01_list_reorder_bg_below.png";
349              }
350              fill.smooth: 0;
351           }
352           description { state: "reorder" 0.0;
353              inherit: "default" 0.0;
354              visible: 1;
355           }
356        }
357
358        BEAT_GENLIST_PART_DISCLIP
359       }
360       programs {
361
362          // reorder signal
363          program { name: "reorder_enable";
364             signal: "elm,state,reorder_enable";
365             source: "elm";
366             action: STATE_SET "reorder" 0.0;
367             target: "reorder_left_image";
368             target: "elm.padding.left";
369             target: "bottom_line";
370          }
371          program { name: "reorder_disable";
372             signal: "elm,state,reorder_disable";
373             source: "elm";
374             action: STATE_SET "default" 0.0;
375             target: "reorder_left_image";
376             target: "elm.padding.left";
377             target: "bottom_line";
378          }
379          program { name: "reorder_enable_effect";
380             signal: "elm,state,reorder_enable_effect";
381             source: "elm";
382             action: STATE_SET "reorder" 0.0;
383             target: "reorder_left_image";
384             after: "reorder_enable_padding_effect";
385          }
386          program { name: "reorder_disable_effect";
387             signal: "elm,state,reorder_disable_effect";
388             source: "elm";
389             action: STATE_SET "default" 0.0;
390             target: "reorder_left_image";
391             after: "reorder_disable_padding_effect";
392          }
393          program { name: "reorder_enable_padding_effect";
394             source: "elm";
395             action: STATE_SET "reorder" 0.0;
396             transition: DECELERATE 0.5;
397             target: "elm.padding.left";
398             target: "bottom_line";
399          }
400          program { name: "reorder_disable_padding_effect";
401             signal: "elm,state,reorder_disable";
402             source: "elm";
403             action: STATE_SET "default" 0.0;
404             transition: DECELERATE 0.5;
405             target: "elm.padding.left";
406             target: "bottom_line";
407          }
408
409          // checkbox
410          program {
411             name:    "on_select";
412             signal:  "mouse,clicked,1";
413             source:  "check_bg_touch_area";
414             action:  SIGNAL_EMIT "elm,action,item,select" "elm";
415          }
416          program {
417             name:    "enable_select_mode";
418             signal:  "elm,state,sel,enable";
419             source:  "elm";
420             action:  STATE_SET "enabled" 0.0;
421             target:  "check_bg";
422          }
423          program {
424             name:    "disable_select_mode";
425             signal:  "elm,state,sel,disable";
426             source:  "elm";
427             action:  STATE_SET "default" 0.0;
428             target:  "check_bg";
429          }
430          program {
431             name:    "enable_select_effect_mode";
432             signal:  "elm,state,sel,enable_effect";
433             source:  "elm";
434             action:  STATE_SET "enabled" 0.0;
435             transition: DECELERATE 0.5;
436             target:  "check_bg";
437          }
438          program {
439             name:    "disable_select_effect_mode";
440             signal:  "elm,state,sel,disable_effect";
441             source:  "elm";
442             action:  STATE_SET "default" 0.0;
443             transition: DECELERATE 0.5;
444             target:  "check_bg";
445          }
446          program {
447             name:    "enable_delete";
448             signal:  "elm,state,sel_uncheck";
449             source:  "elm";
450             action:  STATE_SET "on_uncheck" 0.0;
451             target:  "check_checking";
452          }
453          program {
454             name:    "select_icon_check_mode";
455             signal:  "elm,state,sel_check";
456             source:  "elm";
457             action:  STATE_SET "on_check" 0.0;
458             target:  "check_checking";
459          }
460
461         // reorder glow
462         program {
463             name:    "show_reorder_glow";
464             signal:  "elm,action,item,reorder_start";
465             source:  "elm";
466             action:  STATE_SET "reorder" 0.0;
467             target:  "reorder_glow_above";
468             target:  "reorder_glow_below";
469         }
470         program {
471             name:    "hide_reorder_glow";
472             signal:  "elm,action,item,reorder_end";
473             source:  "elm";
474             action:  STATE_SET "default" 0.0;
475             target:  "reorder_glow_above";
476             target:  "reorder_glow_below";
477         }
478
479         // rename
480         program {
481             name:    "enable_rename_mode";
482             signal:  "elm,state,rename,enable";
483             source:  "elm";
484             action:  STATE_SET "enabled" 0.0;
485             transition: DECELERATE 0.3;
486             target:  "elm.swallow.edit_field_bg";
487             target:  "elm.swallow.edit_field_1line";
488         }
489         program {
490             name:    "disable_rename_mode";
491             signal:  "elm,state,rename,disable";
492             source:  "elm";
493             action:  STATE_SET "default" 0.0;
494             transition: DECELERATE 0.3;
495             target:  "elm.swallow.edit_field_bg";
496             target:  "elm.swallow.edit_field_1line";
497         }
498       }
499    }
500
501    group { name: "elm/genlist/item/select_all/default";
502       alias: "elm/genlist/item_odd/select_all/default";
503       alias: "elm/genlist/item_compress/select_all/default";
504       alias: "elm/genlist/item_compress_odd/select_all/default";
505
506       data.item: "stacking" "above";
507       data.item: "selectraise" "on";
508       data.item: "labels" "elm.text";
509
510       parts {
511          part { name: "base";
512             type: RECT;
513             repeat_events: 0;
514             scale: 1;
515             description { state: "default" 0.0;
516                min: 0 70;
517                color: GENLIST_PART_BG_COLOR_INC;
518             }
519          }
520
521          part { name: "bg";
522             type: RECT;
523             clip_to: "disclip";
524             repeat_events: 0;
525             mouse_events: 0;
526             description { state: "default" 0.0;
527                color: GENLIST_PART_SELECT_ALL_BG_COLOR_INC; 
528             }
529          }
530
531          BEAT_GENLIST_PART_BG_IMAGE
532          BEAT_GENLIST_PART_BOTTOM_LINE
533          BEAT_GENLIST_PART_PADDING_LEFT( 10 )
534          BEAT_GENLIST_PART_PADDING_RIGHT( 15 )
535          part { name: "elm.swallow.end";
536             clip_to: "disclip";
537             type: SWALLOW;
538             scale: 1;
539             description { state: "default" 0.0;
540                fixed: 1 0;
541                align: 1.0 0.5;
542                rel1.to_x: "elm.padding.right";
543                rel2 {
544                   relative: 0.0  1.0;
545                   to_x: "elm.padding.right";
546                }
547             }
548          }
549          part { name: "elm.text";
550             clip_to: "disclip";
551             type: TEXT;
552             mouse_events: 0;
553             scale: 1;
554             description { state: "default" 0.0;
555                rel1 {
556                   relative: 1.0  0.0;
557                   offset: 20 0;
558                   to_x: "check_bg";
559                }
560                rel2 {
561                   to_x: "elm.swallow.end";
562                   relative: 0.0  1.0;
563                   offset:   20   0;
564                }
565                color: GENLIST_PART_TEXT_COLOR_INC;
566                text {
567                   font: "SLP:style=Roman";
568                   size: 32;
569                   min: 0 1;
570                   align: 0.0 0.5;
571                   text: "Select All";
572                }
573             }
574             description { state: "selected" 0.0;
575                inherit: "default" 0.0;
576                color: 225 225 225 255;
577             }
578          }
579          part { name: "check_bg";
580             clip_to: "disclip";
581             mouse_events: 1;
582             scale: 1;
583             description { state: "default" 0.0;
584                min: 26 26;
585                fixed: 1 1;
586                align: 0.0 0.5;
587                rel1 {
588                   relative: 1.0 0.5;
589                   to_x: "elm.padding.left";
590                   to_y: "base";
591                }
592                rel2 {
593                   relative: 1.0 0.5;
594                   to_x: "elm.padding.left";
595                   to_y: "base";
596                }
597                image.normal: "00_check_bg.png";
598             }
599          }
600
601          part { name: "check_checking";
602             clip_to: "disclip";
603             mouse_events: 1;
604             scale: 1;
605             description { state: "default" 0.0;
606                visible: 0;
607                min: 26 26;
608                fixed: 1 1;
609                align: 0.0 0.5;
610                rel1 {
611                   relative: 1.0 0.5;
612                   to_x: "elm.padding.left";
613                   to_y: "base";
614                }
615                rel2 {
616                   relative: 1.0 0.5;
617                   to_x: "elm.padding.left";
618                   to_y: "base";
619                }
620                image.normal: "00_check_checking.png";
621             }
622             description { state: "on_uncheck" 0.0;
623                inherit: "default" 0.0;
624                visible: 0;
625             }
626             description { state: "on_check" 0.0;
627                inherit: "default" 0.0;
628                visible: 1;
629             }
630          }
631
632          part { name: "check_bg_touch_area";
633             type: RECT;
634             mouse_events: 1;
635             scale: 1;
636             description { state: "default" 0.0;
637                min: (GENLIST_EDIT_CHECKBOX_WIDTH+10) 0;
638                fixed: 1 0;
639                align: 0 0.5;
640                rel1 { relative: 0 0; to_x: "check_bg"; }
641                rel2 { relative: 0 1; to_x: "check_bg"; }
642                color: 0 0 0 0;
643             }
644          }
645
646          BEAT_GENLIST_PART_DISCLIP
647       }
648       programs {
649         program {
650            name:    "enable_select_check";
651            signal:  "elm,state,sel_check";
652            source:  "elm";
653            action:  STATE_SET "on_check" 0.0;
654            target:  "check_checking";
655         }   
656         program {
657            name:    "enable_select_uncheck";
658            signal:  "elm,state,sel_uncheck";
659            source:  "elm";
660            action:  STATE_SET "on_uncheck" 0.0;
661            target:  "check_checking";
662         }
663          program {
664             name:    "on_mouse_click";
665             signal:  "mouse,click,1";
666             source:  "check_bg_touch_area";
667             action:  SIGNAL_EMIT "elm,action,select,click" "elm";
668          }
669       }
670    }