[genlist_edit.edc] change edit mode edc
[profile/ivi/efl-theme-tizen.git] / themes / groups / genlist / genlist_edit.edc
1 /*
2  *  NBeat-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    group { name: "elm/genlist/item/edit_default/default";
31       alias: "elm/genlist/item_odd/edit_default/default";
32       alias: "elm/genlist/item_compress/edit_default/default";
33       alias: "elm/genlist/item_compress_odd/edit_default/default";
34
35       data.item: "edit_icons" "elm.edit.icon.1 elm.edit.icon.2";
36       data.item: "icon_width" 60;
37       
38       images {
39          image: "01_list_reorder_bg_above.png" COMP;
40          image: "01_list_reorder_bg_below.png" COMP;
41       }
42       parts {
43          part { name: "base";
44             type: RECT;
45             repeat_events: 1;
46             scale: 1; 
47             description { state: "default" 0.0; 
48                min: 0 70; 
49                color: 0 0 0 0;
50             }
51          }
52          BEAT_GENLIST_PART_PADDING_TOP( 0 )
53          BEAT_GENLIST_PART_PADDING_BOTTOM( 0 )
54          BEAT_GENLIST_PART_PADDING_RIGHT( 10 )
55
56          part { name: "elm.padding.reorder";
57             type: RECT;
58             scale: 1;
59             description { state: "default" 0.0;
60                min: 0 0;
61                fixed: 1 0;
62                visible: 0;
63                rel2.relative: 0.0 1.0;
64                align: 0.0 0.0;
65             }
66             description { state: "reorder" 0.0;
67                inherit: "default" 0.0;
68                min: 20 0;
69                fixed: 1 0;
70             }
71          }
72          part { name: "elm.edit_bg";
73             type: RECT;
74             scale: 1;
75             description { state: "default" 0.0;
76                rel1 {
77                   relative: 1.0 1.0;
78                   to_x: "elm.padding.reorder";
79                   to_y: "elm.padding.top";
80                }
81                rel2 {
82                   relative: 1.0 0.0;
83                   to_y: "elm.padding.bottom";
84                }
85              color: GENLIST_PART_BG_COLOR_INC;
86             }
87          }
88          part { name: "elm.padding.icon1.left";
89             type: RECT;
90             scale: 1;
91             description { state: "default" 0.0;
92                min: 10 0;
93                fixed: 1 0;
94                visible: 0;
95                rel1 {
96                   relative: 1.0 0.0;
97                   to_x: "elm.padding.reorder";
98                }
99                rel2.to_x: "elm.padding.reorder";
100                align: 0.0 0.0;
101             }
102          }
103
104         part { name: "elm.edit.icon.1";
105             clip_to: "disclip";
106             type: SWALLOW;
107             scale: 1;
108             description { state: "default" 0.0;
109                min: 26 26;
110                max: 26 26;
111                fixed: 1 1;
112                align: 0.0 0.5;
113                rel1 {
114                   relative: 1.0 1.0;
115                   offset: 0 0;
116                   to_x: "elm.padding.icon1.left";
117                   to_y: "elm.padding.top";
118                }
119                rel2 {
120                   relative: 1.0 0.0;
121                   offset: 0 0;
122                   to_x: "elm.padding.icon1.left";
123                   to_y: "elm.padding.bottom";
124                }
125             }
126          }
127          
128          part { name: "elm.padding.icon1.right";
129             type: RECT;
130             scale: 1;
131             description { state: "default" 0.0;
132                min: 10 0;
133                fixed: 1 0;
134                visible: 0;
135                rel1 {
136                   relative: 1.0 0.0;
137                   to_x: "elm.edit.icon.1";
138                }
139                rel2.to_x: "elm.edit.icon.1";
140                align: 0.0 0.0;
141             }
142          }
143
144          part { name: "original_edc";
145             clip_to: "disclip";
146             type: SWALLOW;
147             mouse_events: 1;
148             scale: 1;
149             description { state: "default" 0.0;
150                rel1 {
151                   relative: 1.0 1.0;
152                   to_x: "elm.padding.icon1.right";
153                   to_y: "elm.padding.top";
154                }
155                rel2 {
156                   relative: 0.2 0.0;
157                   to_x: "elm.edit.icon.2";
158                   to_y: "elm.padding.bottom";
159                }
160             }
161           description { state: "disabled" 0.0;
162              inherit: "default" 0.0;
163              visible: 0;
164           }
165           description { state: "renamed" 0.0;
166              inherit: "default" 0.0;
167                rel1 {
168                   relative: 0.0 1.0;
169                   to_x: "elm.padding.icon1.left";
170                   to_y: "elm.padding.top";
171                }
172                rel2 {
173                   relative: 1.3 0.0;
174                   to_x: "elm.padding.right";
175                   to_y: "elm.padding.bottom";
176                }
177             }
178          }
179
180        part { name: "elm.edit.icon.2";
181           clip_to: "disclip";
182           type: SWALLOW;
183           scale: 1;
184           description { state: "default" 0.0;
185              fixed: 1 0;
186              align: 1.0 0.5;
187              visible: 1;
188              rel1.to_x: "elm.padding.right";
189              rel2 {
190                 relative: 0.0  1.0;
191                 to_x: "elm.padding.right";
192              }
193           }
194           description { state: "disabled" 0.0;
195              inherit: "default" 0.0;
196              visible: 0;
197           }
198        }
199
200        part { name: "bottom_line";
201           type: RECT;
202           clip_to: "disclip";
203           mouse_events: 0;
204           description { state: "default" 0.0;
205              min: 0 0;
206              fixed: 0 1;
207              visible: 1;
208              color: GENLIST_PART_BOTTOM_LINE_INC;
209              rel1 {
210                 relative: 0.0 1.0;
211                 to_x: "elm.edit_bg";
212                 offset: 0 -1;
213              }
214           }
215           description {
216               state: "hide" 0.0;
217               inherit: "default" 0.0;
218               visible: 0;
219           }
220           description {
221               state: "reorder" 0.0;
222               inherit: "default" 0.0;
223               min: 0 5;
224               fixed: 0 1;
225           }
226        }
227        part { name: "reorder_glow_above";
228           mouse_events: 0;
229           description { state: "default" 0.0;
230              visible: 0;
231              rel1.relative: 0.0 -0.3;
232              rel2.relative: 1.0 0.0;
233              image {
234                 normal: "01_list_reorder_bg_above.png";
235              }
236              fill.smooth: 0;
237           }
238           description { state: "reorder" 0.0;
239              inherit: "default" 0.0;
240              visible: 1;
241           }
242        }
243        part { name: "reorder_glow_below";
244           mouse_events: 0;
245           description { state: "default" 0.0;
246              visible: 0;
247              rel1.relative: 0.0 1.0;
248              rel2.relative: 1.0 1.3;
249              image {
250                 normal: "01_list_reorder_bg_below.png";
251              }
252              fill.smooth: 0;
253           }
254           description { state: "reorder" 0.0;
255              inherit: "default" 0.0;
256              visible: 1;
257           }
258        }
259        BEAT_GENLIST_PART_DISCLIP
260       }
261       programs {
262          program { name: "go_disabled";
263             signal: "elm,state,disabled";
264             source: "elm";
265             action: STATE_SET "disabled" 0.0;
266             target: "disclip";
267          }
268          program { name: "go_enabled";
269             signal: "elm,state,enabled";
270             source: "elm";
271             action: STATE_SET "default" 0.0;
272             target: "disclip";
273          }
274
275          // reorder signal
276          program { name: "reorder_enable";
277             signal: "elm,state,reorder_enable";
278             source: "elm";
279             action: STATE_SET "reorder" 0.0;
280             target: "elm.padding.reorder";
281             target: "bottom_line";
282          }
283          program { name: "reorder_disable";
284             signal: "elm,state,reorder_disable";
285             source: "elm";
286             action: STATE_SET "default" 0.0;
287             target: "elm.padding.reorder";
288             target: "bottom_line";
289          }
290
291          program { name: "reorder_enable_effect";
292             signal: "elm,state,reorder_enable_effect";
293             source: "elm";
294             action: STATE_SET "reorder" 0.0;
295             transition: DECELERATE 0.5;
296             target: "elm.padding.reorder";
297             target: "bottom_line";
298           }
299          program { name: "reorder_disable_effect";
300             signal: "elm,state,reorder_disable_effect";
301             source: "elm";
302             action: STATE_SET "default" 0.0;
303             transition: DECELERATE 0.5;
304             target: "elm.padding.reorder";
305             target: "bottom_line";            
306           }
307         // reorder glow
308         program {
309             name:    "show_reorder_glow";
310             signal:  "elm,action,item,reorder_start";
311             source:  "elm";
312             action:  STATE_SET "reorder" 0.0;
313             target:  "reorder_glow_above";
314             target:  "reorder_glow_below";
315         }
316         program {
317             name:    "hide_reorder_glow";
318             signal:  "elm,action,item,reorder_end";
319             source:  "elm";
320             action:  STATE_SET "default" 0.0;
321             target:  "reorder_glow_above";
322             target:  "reorder_glow_below";
323         }
324
325         // rename
326         program {
327             name:    "enable_rename_mode";
328             signal:  "elm,state,rename,enabled";
329             source:  "elm";
330             action:  STATE_SET "disabled" 0.0;
331             target:  "elm.edit.icon.2";
332             after:   "enable_rename_mode_next";
333         }
334         program {
335             name:    "enable_rename_mode_next";
336             action:  STATE_SET "renamed" 0.0;
337 //            transition: DECELERATE 0.5;
338             target:  "original_edc";
339         }
340         program {
341             name:    "disable_rename_mode";
342             signal:  "elm,state,rename,disabled";
343             source:  "elm";
344             action:  STATE_SET "default" 0.0;
345 //            transition: DECELERATE 0.5;
346             target:  "original_edc";
347             target:  "elm.edit.icon.2";
348         }
349       }
350    }
351
352   group { name: "elm/genlist/item/select_all/default";
353       alias: "elm/genlist/item_odd/select_all/default";
354       alias: "elm/genlist/item_compress/select_all/default";
355       alias: "elm/genlist/item_compress_odd/select_all/default";
356
357       data.item: "stacking" "above";
358       data.item: "selectraise" "on";
359       data.item: "labels" "elm.text";
360       data.item: "icons" "elm.icon";
361       images {
362          image: "00_list_bar_press_1x80.png" COMP;
363       }
364       parts {
365          part { name: "base";
366             type: RECT;
367             repeat_events: 0;
368             scale: 1;
369             description { state: "default" 0.0;
370                min: 0 70;
371                color: 239 237 230 255;
372             }
373          }
374          part { name: "bg";
375             type: RECT;
376             clip_to: "disclip";
377             repeat_events: 0;
378             mouse_events: 0;
379             description { state: "default" 0.0; 
380                color: 239 237 230 255;
381             }
382          }
383          BEAT_GENLIST_PART_BG_IMAGE
384          BEAT_GENLIST_PART_BOTTOM_LINE
385          BEAT_GENLIST_PART_PADDING_TOP( 15 )
386          BEAT_GENLIST_PART_PADDING_BOTTOM( 15 )
387          BEAT_GENLIST_PART_PADDING_LEFT( 15 )
388          BEAT_GENLIST_PART_PADDING_RIGHT( 15 )
389
390          part { name: "elm.padding.icon.right";
391             type: RECT;
392             scale: 1;
393             description { state: "default" 0.0;
394                min: 15 0;
395                fixed: 1 0;
396                visible: 0;
397                rel1 {
398                   relative: 1.0 0.0;
399                   to_x: "elm.icon";
400                }
401                rel2.to_x: "elm.icon";
402                align: 0.0 0.0;
403             }
404          }
405          part { name: "elm.icon";
406             clip_to: "disclip";
407             type: SWALLOW;
408             scale: 1;
409             description { state: "default" 0.0;
410                min: 50 50;
411                max: 50 50;
412                fixed: 1 1;
413                align: 0.0 0.0;
414                rel1 {
415                   relative: 1.0 1.0;
416                   offset: 0 0;
417                   to_x: "elm.padding.left";
418                   to_y: "elm.padding.top";
419                }
420                rel2 {
421                   relative: 1.0 0.0;
422                   offset: 0 0;
423                   to_x: "elm.padding.left";
424                   to_y: "elm.padding.bottom";
425                }
426             }
427          }
428          part { name: "elm.text";
429             clip_to: "disclip";
430             type: TEXT;
431             mouse_events: 0;
432             scale: 1;
433             description { state: "default" 0.0;
434                align: 0.0 0.0;
435                rel1 {
436                   relative: 1.0 1.0;
437                   offset: 0 0;
438                   to_x: "elm.padding.icon.right";
439                   to_y: "elm.padding.top";
440                }
441                rel2 {
442                   relative: 0.0 0.0;
443                   offset: 0 0;
444                   to_x: "elm.padding.right";
445                   to_y: "elm.padding.bottom";
446                }
447                color: GENLIST_PART_TEXT_COLOR_INC;
448                text {
449                   font: "SLP:style=Roman";
450                   size: 32;
451                   min: 0 1;
452                   align: 0.0 0.5;
453                }
454             }
455             description { state: "selected" 0.0;
456                inherit: "default" 0.0;
457                color: GENLIST_PART_TEXT_SELECTED_COLOR_INC;
458             }
459          }
460        BEAT_GENLIST_PART_DISCLIP
461       }
462       programs {
463          program { name: "go_active";
464             signal: "elm,state,selected";
465             source: "elm";
466             action: STATE_SET "selected" 0.0;
467             target: "bg_image";
468             target: "elm.text";
469          }
470          program { name: "go_passive";
471             signal: "elm,state,unselected";
472             source: "elm";
473             action: STATE_SET "default" 0.0;
474             target: "bg_image";
475             target: "elm.text";
476             transition: LINEAR 0.1;
477          }
478          program { name: "go_disabled";
479             signal: "elm,state,disabled";
480             source: "elm";
481             action: STATE_SET "disabled" 0.0;
482             target: "disclip";
483          }
484          program { name: "go_enabled";
485             signal: "elm,state,enabled";
486             source: "elm";
487             action: STATE_SET "default" 0.0;
488             target: "disclip";
489          }
490       }
491    }