Add a task to copy configuration files to user's HOME dir from data dir for multi...
[platform/core/uifw/e17.git] / src / modules / illume-keyboard / e-module-illume-keyboard.edc
1 collections 
2 {
3    group 
4      {
5         images.image: "module_icon.png" COMP;
6         name: "icon";
7         max: 128 128;
8         parts 
9           {
10              part 
11                {
12                   name: "base";
13                   mouse_events: 0;
14                   description 
15                     {
16                        state: "default" 0.0;
17                        aspect: 1.0 1.0;
18                        aspect_preference: BOTH;
19                        image.normal: "module_icon.png";
20                     }
21                }
22           }
23      }
24    group { name: "e/modules/kbd/base/default";
25       images {
26          image: "k_wtgr.png" COMP;
27          image: "k_tpsh.png" COMP;
28          image: "k_tabl.png" COMP;
29          image: "k_tabr.png" COMP;
30          image: "k_tabhl.png" COMP;
31          image: "k_tabhm.png" COMP;
32          image: "k_tabhr.png" COMP;
33          image: "k_grad.png" COMP;
34 //       image: "k_ltgry.png" COMP;
35 //       image: "grill_dark_tiny_pattern.png" COMP;
36          image: "big_arrow_up.png" COMP;
37          image: "bt_basew.png" COMP;
38          image: "bt_base2.png" COMP;
39          image: "bt_hilightw.png" COMP;
40       }
41 //      data.item: "shaped" "1";
42       parts {
43          part { name: "base";
44             description { state: "default" 0.0;
45                rel1 {
46                   to_y: "compose_bg";
47                   relative: 0.0 1.0;
48                   offset: 0 0;
49                }
50                image.normal: "k_grad.png";
51                 fill {
52                    smooth: 0;
53                    size {
54                       relative: 0 1.0;
55                       offset: 36 0;
56                    }
57                 }
58             }
59          }
60 /*       
61          part { name: "base";
62             type: RECT;
63             description { state: "default" 0.0;
64                color: 51 51 51 255;
65             }
66          }
67          part { name: "grill";
68             description { state: "default" 0.0;
69                rel1 {
70                   to_y: "compose_bg";
71                   relative: 0.0 1.0;
72                   offset: 0 0;
73                }
74                image.normal: "grill_dark_tiny_pattern.png";
75                 fill {
76                    size {
77                       relative: 0 0;
78                       offset: 144 144;
79                    }
80                 }
81             }
82          }
83          part { name: "light";
84             description { state: "default" 0.0;
85                rel1.to: "grill";
86                rel2.to: "grill";
87                image.normal: "k_ltgry.png";
88                fill {
89                   smooth: 0;
90                   size {
91                      relative: 0 1.0;
92                      offset: 36 0;
93                   }
94                }
95             }
96          }
97  */
98          part { name: "compose_bg";
99             description { state: "default" 0.0;
100                image.normal: "k_wtgr.png";
101                rel2.to: "e.swallow.label";
102                rel2.offset: 1 2;
103                fill {
104                   smooth: 0;
105                   size {
106                      relative: 0 1.0;
107                      offset: 36 0;
108                   }
109                }
110             }
111          }
112          part { name: "e.text.label";
113             type: TEXT;
114             mouse_events: 0;
115             scale: 1;
116             description { state: "default" 0.0;
117                visible: 0;
118                rel1.to_x: "tl_tab";
119                rel1.relative: 1.0 0.0;
120                rel1.offset: 1 8;
121                rel2.to_x: "rt_tab";
122                rel2.relative: 0.0 0.0;
123                rel2.offset: -2 8;
124                align: 0.5 0.0;
125                fixed: 0 1;
126                text {
127                   font: "Sans";
128                   size: 10;
129                   min: 0 1;
130                }
131             }
132          }
133          part { name: "e.swallow.label";
134             type: SWALLOW;
135             description { state: "default" 0.0;
136                rel1.to: "e.text.label";
137                rel1.offset: -8 -8;
138                rel2.to: "e.text.label";
139                rel2.offset: 7 7;
140                align: 0.5 0.0;
141             }
142          }
143          part { name: "compose_sh";
144             mouse_events: 0;
145             description { state: "default" 0.0;
146                image.normal: "k_tpsh.png";
147                rel1 {
148                   to_x: "tl_tab";
149                   relative: 1.0 0.0;
150                   offset: -12 0;
151                }
152                rel2 {
153                   to_x: "rt_tab";
154                   to_y: "compose_bg";
155                   relative: 0.0 1.0;
156                   offset: 11 -1;
157                }
158                image.border: 12 12 12 12;
159                fill.smooth: 0;
160             }
161          }
162          part { name: "tl_tab";
163             mouse_events: 0;
164             description { state: "default" 0.0;
165                image.normal: "k_tabl.png";
166                image.border: 0 12 6 6;
167                fill.smooth: 0;
168                rel1.to: "lprev";
169                rel2.to: "lprev";
170                rel2.offset: 13 -1;
171             }
172          }
173          part { name: "rt_tab";
174             mouse_events: 0;
175             description { state: "default" 0.0;
176                image.normal: "k_tabr.png";
177                image.border: 12 0 6 6;
178                fill.smooth: 0;
179                rel1.to: "lnext";
180                rel1.offset: -12 0;
181                rel2.to: "lnext";
182             }
183          }
184          part { name: "lprev";
185             type: RECT;
186             description { state: "default" 0.0;
187                aspect: 1.5 1.5;
188                align: 0.0 0.5;
189                aspect_preference: VERTICAL;
190                color: 0 0 0 0;
191                rel2 {
192                   to_y: "compose_bg";
193                   relative: 0.0 1.0;
194                   offset: 0 -1;
195                }
196             }
197          }
198          part { name: "lnext";
199             type: RECT;
200             description { state: "default" 0.0;
201                aspect: 1.5 1.5;
202                align: 1.0 0.5;
203                aspect_preference: VERTICAL;
204                color: 0 0 0 0;
205                rel1 {
206                   relative: 1.0 0.0;
207                   offset: -1 0;
208                }
209                rel2 {
210                   to_y: "compose_bg";
211                   relative: 1.0 1.0;
212                   offset: -1 -1;
213                }
214             }
215          }
216          
217          part { name: "tl_tabh";
218             mouse_events: 0;
219             description { state: "default" 0.0;
220                image.normal: "k_tabhl.png";
221                image.border: 0 12 6 20;
222                fill.smooth: 0;
223                rel1.to: "tl_tab";
224                rel2.to: "tl_tab";
225                rel2.offset: -2 15;
226             }
227          }
228          part { name: "tr_tabh";
229             mouse_events: 0;
230             description { state: "default" 0.0;
231                image.normal: "k_tabhr.png";
232                image.border: 12 0 6 20;
233                fill.smooth: 0;
234                rel1.to: "rt_tab";
235                rel1.offset: 1 0;
236                rel2.to: "rt_tab";
237                rel2.offset: -1 15;
238             }
239          }
240          part { name: "t_h";
241             mouse_events: 0;
242             description { state: "default" 0.0;
243                image.normal: "k_tabhm.png";
244                fill.smooth: 0;
245                rel1 {
246                   to: "tl_tabh";
247                   relative: 1.0 1.0;
248                   offset: 0 -15;
249                }
250                rel2 {
251                   to: "tr_tabh";
252                   relative: 0.0 1.0;
253                   offset: -1 -1;
254                }
255             }
256          }
257          // dict/selection selector
258          part { name: "lprev2";
259             mouse_events: 0;
260             scale: 1;
261             description { state: "default" 0.0;
262                max: 22 22;
263                aspect: 1.39393939 1.39393939;
264                aspect_preference: BOTH;
265                image.normal: "big_arrow_up.png";
266                color: 255 255 255 255;
267                align: 0.5 0.5;
268                rel1.to: "lprev";
269                rel2.to: "lprev";
270             }
271          }
272          
273          // layout selector icon/config 
274          part { name: "button_image";
275             type: IMAGE;
276             mouse_events: 0;
277             description { state: "default" 0.0;
278                rel1.to: "lnext";
279                rel1.offset: 0 1;
280                rel2.to: "lnext";
281 rel2.offset: -4 -1;
282                image.normal: "bt_basew.png";
283                image.border: 7 7 7 7;
284                fill.smooth: 0;
285             }
286             description { state: "active" 0.0;
287                inherit: "default" 0.0;
288                image.normal: "bt_base2.png";
289                image.border: 7 7 7 7;
290                fill.smooth: 0;
291             }
292          }
293          part { name: "e.swallow.layout";
294             type: SWALLOW;
295             mouse_events: 0;
296             description { state: "default" 0.0;
297                rel1.to: "button_image";
298                rel2.to: "button_image";
299             }
300          }
301          part { name: "over";
302             type: IMAGE;
303             mouse_events: 0;
304             description { state: "default" 0.0;
305                rel1.to: "button_image";  
306                rel2.to: "button_image";
307                rel2.relative: 1.0 0.5;
308                image.normal: "bt_hilightw.png";
309                image.border: 7 7 7 0;
310                fill.smooth: 0;
311             }
312          }
313          part { name: "e.swallow.content";
314             type: SWALLOW;
315             description { state: "default" 0.0;
316                rel1 {
317                   to_y: "e.swallow.label";
318                   relative: 0.0 1.0;
319                   offset: 0 4;
320                }
321                rel2 {
322                   relative: 1.0 1.0;
323                   offset: -1 -1;
324                }
325             }
326          }
327       }
328       programs {
329          program { name: "lprev";
330             signal: "mouse,down,1";
331             source: "lprev";
332             action: SIGNAL_EMIT "e,action,do,matches" "";
333          }
334          program { name: "lnext";
335             signal: "mouse,up,1";
336             source: "lnext";
337             action: SIGNAL_EMIT "e,action,do,layouts" "";
338          }
339          program { name: "clicked";
340             signal: "mouse,down,1";
341             source: "lnext";
342             action: STATE_SET active 0.0;
343             target: "button_image";
344          }
345          program { name: "released";
346             signal: "mouse,up,1";
347             source: "lnext";
348             action: STATE_SET default 0.0;
349             target: "button_image";
350          }
351       }
352    }
353
354    group { name: "e/modules/kbd/match/word";
355       images {
356          image: "bt_basew.png" COMP;
357          image: "bt_base2.png" COMP;
358          image: "bt_hilight.png" COMP;
359          image: "bt_shine.png" COMP;
360          image: "bt_glow.png" COMP;
361 image: "bt_dis_hilight.png" COMP;
362       }
363       parts {
364          part { name: "button_image";
365             mouse_events: 1;
366             description { state: "default" 0.0;
367                rel1.to: "e.text.label";
368                rel1.offset: -3 -3;
369                rel2.to_x: "e.text.label";
370                rel2.offset: 2 2;
371                image {
372                   normal: "bt_basew.png";
373                   border: 7 7 7 7;
374                }
375                fill.smooth: 0;
376             }
377             description { state: "active" 0.0;
378                inherit: "default" 0.0;
379                image.normal: "bt_base2.png";
380             }
381          }
382          part { name: "e.text.label";
383             type: TEXT;
384             effect: SOFT_SHADOW;
385             mouse_events: 0;
386             scale: 1;
387             description { state: "default" 0.0;
388                color: 0 0 0 255;
389                color3: 0 0 0 0;
390                min: 32 0;
391                rel1 {
392                   relative: 0.0 0.0;
393                   offset:   3   3;
394                }
395                rel2 {
396                   relative: 1.0 1.0;
397                   offset:   -4  -4;
398                }
399                text {
400                   font: "Sans"; 
401                   size: 10;
402                   min: 1 1;
403                }
404             }
405             description { state: "active" 0.0;
406                inherit: "default" 0.0;
407                color: 224 224 224 255;
408                color3: 0 0 0 64;
409             }
410          }
411          part { name: "over1";
412             mouse_events: 0;
413             description { state: "default" 0.0;
414                rel1.to: "button_image";
415                rel2.to: "button_image";
416                rel2.relative: 1.0 0.5;
417                image {
418                   normal: "bt_hilight.png";
419                   border: 7 7 7 0;
420                }
421                fill.smooth: 0;
422             }
423             description { state: "disabled" 0.0;
424                inherit:  "default" 0.0;
425                image {
426                   normal: "bt_dis_hilight.png";
427                   border: 4 4 4 0;
428                }
429             }
430          }
431          part { name: "over2";
432             mouse_events: 0;
433             description { state: "default" 0.0;
434                rel1.to: "button_image";
435                rel2.to: "button_image";
436                image {
437                   normal: "bt_shine.png";
438                   border: 7 7 7 7;
439                }
440                fill.smooth: 0;
441             }
442             description { state: "disabled" 0.0;
443                inherit:  "default" 0.0;
444                visible: 0;
445             }
446          }
447          part { name: "over3";
448             mouse_events: 0;
449             description { state: "default" 0.0;
450                visible: 0;
451                color: 255 255 255 0;
452                image {
453                   normal: "bt_glow.png";
454                   border: 12 12 12 12;
455                }
456                fill.smooth : 0;
457             }
458             description { state: "clicked" 0.0;
459                inherit:  "default" 0.0;
460                visible: 1;
461                color: 255 255 255 255;
462             }
463          }
464       }
465       programs {
466          program { name: "select";
467             signal: "mouse,up,1";
468             source: "button_image";
469             action: SIGNAL_EMIT "e,action,do,select" "";
470          }
471          program { name: "default";
472             signal: "e,state,selected";
473             source: "e";
474             action: STATE_SET "active" 0.0;
475             target: "button_image";
476             target: "e.text.label";
477          }
478          program { name: "select2";
479             signal: "mouse,down,1";
480             source: "button_image";
481             action: STATE_SET "active" 0.0;
482             target: "button_image";
483             target: "e.text.label";
484          }
485          program { name: "select3";
486             signal: "mouse,up,1";
487             source: "button_image";
488             action: STATE_SET "default" 0.0;
489             target: "button_image";
490             target: "over3";
491             target: "e.text.label";
492          }
493          program { name: "select4";
494             signal: "mouse,down,1";
495             source: "button_image";
496             action: STATE_SET "clicked" 0.0;
497             target: "over3";
498          }
499       }
500    }
501
502    group { name: "e/modules/kbd/key/default";
503       images {
504          image: "bt_base2.png" COMP;
505          image: "bt_basew.png" COMP;
506          image: "bt_hilightw.png" COMP;
507          image: "bt_shine.png" COMP;
508       }
509       parts {
510          part { name: "button_image";
511             mouse_events: 0;
512             description { state: "default" 0.0;
513                rel1.to: "e.swallow.content";
514                rel1.offset: -3 -3;
515                rel2.to_x: "e.swallow.content";
516                rel2.offset: 2 2;
517                image {
518                   normal: "bt_basew.png";
519                   border: 7 7 7 7;
520                }
521                fill.smooth: 0;
522             }
523             description { state: "active" 0.0;
524                inherit: "default" 0.0;
525                image {
526                   normal: "bt_base2.png";
527                   border: 7 7 7 7;
528                }
529             }
530          }
531          part { name: "content_clip";
532             type: RECT;
533             description { state: "default" 0.0;
534                color: 0 0 0 255;
535                rel1.to: "button_image";
536                rel2.to: "button_image";
537             }
538             description { state: "active" 0.0;
539                inherit: "default" 0.0;
540                color: 255 255 255 255;
541             }
542          }
543          part {
544             name: "e.swallow.content";
545             type: SWALLOW;
546             clip_to: "content_clip";
547             mouse_events: 0;
548             description { state: "default" 0.0;
549                rel1 {
550                   relative: 0.0 0.0;
551                   offset:   3   3;
552                }
553                rel2 {
554                   relative: 1.0 1.0;
555                   offset:   -4  -4;
556                }
557             }
558             description { state: "selected" 0.0;
559                inherit: "default" 0.0;
560                rel1 {
561                   relative: -0.5 -2.0;
562                   offset:   3   3;
563                }
564                rel2 {
565                   relative: 1.5 0.0;
566                   offset:   -4  -4;
567                }
568             }
569          }
570          part { name: "e.text.label";
571             type: TEXT;
572             clip_to: "content_clip";
573             mouse_events: 0;
574             scale: 1;
575             description { state: "default" 0.0;
576                rel1.to: "e.swallow.content";
577                rel2.to: "e.swallow.content";
578                color: 255 255 255 255;
579                text {
580                   font: "Sans"; 
581                   size: 10;
582                   min: 1 1;
583                }
584             }
585             description { state: "selected" 0.0;
586                inherit: "default" 0.0;
587                text {
588                   size: 24;
589                }
590             }
591          }
592          part { name: "over1";
593             mouse_events: 0;
594             description { state: "default" 0.0;
595                rel1.to: "button_image";
596                rel2.to: "button_image";
597                rel2.relative: 1.0 0.5;
598                image {
599                   normal: "bt_hilightw.png";
600                   border: 7 7 7 0;
601                }
602                fill.smooth: 0;
603             }
604          }
605          part { name: "over2";
606             mouse_events: 1;
607             description { state: "default" 0.0;
608                rel1.to: "button_image";
609                rel2.to: "button_image";
610                image {
611                   normal: "bt_shine.png";
612                   border: 7 7 7 7;
613                }
614                fill.smooth: 0;
615             }
616             description { state: "disabled" 0.0;
617                inherit:  "default" 0.0;
618                visible: 0;
619             }
620          }
621       }
622       programs {
623          program { name: "down";
624             signal: "e,state,pressed";
625             source: "e";
626             action: STATE_SET "selected" 0.0;
627             target: "e.swallow.content";
628             target: "e.text.label";
629          }
630          program { name: "up";
631             signal: "e,state,released";
632             source: "e";
633             action: STATE_SET "default" 0.0;
634             transition: DECELERATE 0.25;
635             target: "e.swallow.content";
636             target: "e.text.label";
637          }
638          program { name: "selected";
639             signal: "e,state,selected";
640             source: "e";
641             action: STATE_SET "active" 0.0;
642             target: "button_image";
643             target: "content_clip";
644          }
645          program { name: "sunelected";
646             signal: "e,state,unselected";
647             source: "e";
648             action: STATE_SET "default" 0.0;
649             target: "button_image";
650             target: "content_clip";
651          }
652       }
653    }
654
655    group { name: "e/modules/kbd/zoomkey/default";
656       images {
657          image: "bt_base2.png" COMP;
658          image: "bt_basew.png" COMP;
659          image: "bt_hilightw.png" COMP;
660          image: "bt_shine.png" COMP;
661       }
662       parts {
663          part { name: "button_image";
664             mouse_events: 0;
665             description { state: "default" 0.0;
666                rel1.to: "e.swallow.content";
667                rel1.offset: -3 -3;
668                rel2.to: "e.swallow.content";
669                rel2.offset: 2 2;
670                image {
671                   normal: "bt_basew.png";
672                   border: 7 7 7 7;
673                }
674                fill.smooth: 0;
675             }
676             description { state: "active" 0.0;
677                inherit: "default" 0.0;
678                image {
679                   normal: "bt_base2.png";
680                   border: 7 7 7 7;
681                }
682             }
683          }
684          part { name: "content_clip";
685             type: RECT;
686             description { state: "default" 0.0;
687                color: 0 0 0 255;
688                rel1.to: "button_image";
689                rel2.to: "button_image";
690             }
691             description { state: "active" 0.0;
692                inherit: "default" 0.0;
693                color: 255 255 255 255;
694             }
695          }
696          part {
697             name: "e.swallow.content";
698             type: SWALLOW;
699             clip_to: "content_clip";
700             mouse_events: 0;
701             description { state: "default" 0.0;
702                rel1 {
703                   relative: 0.0 0.0;
704                   offset:   3   3;
705                }
706                rel2 {
707                   relative: 1.0 1.0;
708                   offset:   -4  -4;
709                }
710             }
711             description { state: "selected" 0.0;
712                inherit: "default" 0.0;
713                rel1 {
714                   relative: -0.25 -0.25;
715                   offset:   3   3;
716                }
717                rel2 {
718                   relative: 1.25 1.25;
719                   offset:   -4  -4;
720                }
721             }
722          }
723          part { name: "e.text.label";
724             type: TEXT;
725             clip_to: "content_clip";
726             mouse_events: 0;
727             scale: 1;
728             description { state: "default" 0.0;
729                rel1.to: "e.swallow.content";
730                rel2.to: "e.swallow.content";
731                color: 255 255 255 255;
732                text {
733                   font: "Sans"; 
734                   size: 40;
735                   min: 1 1;
736                }
737             }
738             description { state: "selected" 0.0;
739                inherit: "default" 0.0;
740                text {
741                   size: 60;
742                }
743             }
744          }
745          part { name: "over1";
746             mouse_events: 0;
747             description { state: "default" 0.0;
748                rel1.to: "button_image";
749                rel2.to: "button_image";
750                rel2.relative: 1.0 0.5;
751                image {
752                   normal: "bt_hilightw.png";
753                   border: 7 7 7 0;
754                }
755                fill.smooth: 0;
756             }
757          }
758          part { name: "over2";
759             mouse_events: 1;
760             description { state: "default" 0.0;
761                rel1.to: "button_image";
762                rel2.to: "button_image";
763                image {
764                   normal: "bt_shine.png";
765                   border: 7 7 7 7;
766                }
767                fill.smooth: 0;
768             }
769             description { state: "disabled" 0.0;
770                inherit:  "default" 0.0;
771                visible: 0;
772             }
773          }
774       }
775       programs {
776          program { name: "down";
777             signal: "e,state,pressed";
778             source: "e";
779             action: STATE_SET "selected" 0.0;
780             target: "e.swallow.content";
781             target: "e.text.label";
782          }
783          program { name: "up";
784             signal: "e,state,released";
785             source: "e";
786             action: STATE_SET "default" 0.0;
787             transition: DECELERATE 0.25;
788             target: "e.swallow.content";
789             target: "e.text.label";
790          }
791          program { name: "selected";
792             signal: "e,state,selected";
793             source: "e";
794             action: STATE_SET "active" 0.0;
795             target: "button_image";
796             target: "content_clip";
797          }
798          program { name: "sunelected";
799             signal: "e,state,unselected";
800             source: "e";
801             action: STATE_SET "default" 0.0;
802             target: "button_image";
803             target: "content_clip";
804          }
805       }
806    }
807
808    group { name: "e/modules/kbd/zoom/default";
809 //      data.item: "shaped" "1";
810 //      max: 320 320; // hmm size here should be determined some other way
811       images {
812          image: "base_bg.png" COMP;
813          image: "inset_sunk.png" COMP;
814       }
815       parts {
816          part {   name: "base";
817             mouse_events: 0;
818             description { state: "default" 0.0;
819                image.normal: "base_bg.png";
820                image.border: 2 2 2 2;
821                fill.smooth: 0;
822             }
823          }
824          part { name: "clip";
825             type: RECT;
826             mouse_events: 0;
827             description { state: "default" 0.0;
828                rel1.to: "border";
829                rel2.to: "border";
830                rel1.offset: 1 1;
831                rel2.offset: -2 -2;
832             }
833          }
834          part { name: "e.swallow.content";
835             clip_to: "clip";
836             type: SWALLOW;
837             scale: 1;
838             description { state: "default" 0.0;
839                min: 120 120;
840                max: 120 120;
841                rel1.offset: 4 4;
842                rel2.offset: -5 -5;
843             }
844          }
845          part { name: "border";
846             mouse_events: 0;
847             description { state: "default" 0.0;
848                rel1.offset: 3 3;
849                rel2.offset: -4 -4;
850                image {
851                   normal: "inset_sunk.png";
852                   border: 7 7 7 7;
853                   middle: 0;
854                }
855                fill.smooth : 0;
856             }
857          }
858       }
859    }
860
861    group { name: "e/modules/kbd/match/default";
862 //      data.item: "shaped" "1";
863       images {
864          image: "base_bg.png" COMP;
865       }
866       parts {
867          part {   name: "base";
868             mouse_events: 0;
869             description { state: "default" 0.0;
870                image.normal: "base_bg.png";
871                image.border: 2 2 2 2;
872                fill.smooth: 0;
873             }
874          }
875          part { name: "e.swallow.content";
876             type: SWALLOW;
877             description { state: "default" 0.0;
878                rel1 {
879                   relative: 0.0 0.0;
880                   offset: 4 4;
881                }
882                rel2 {
883                   relative: 1.0 1.0;
884                   offset: -5 -5;
885                }
886             }
887          }
888       }
889    }
890
891 }