Adjust the code to the TM-1 device.
[apps/native/home/homescreen-efl.git] / res / edje / home.edc
1 /*
2  * Copyright 2012  Samsung Electronics Co., Ltd
3  *
4  * Licensed under the Flora License, Version 1.1 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://floralicense.org/license/
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #include "../../inc/conf.h"
18
19 images {
20         image: "../images/home_button_bg.png" COMP;
21         image: "../images/home_icon_home.png" COMP;
22         image: "../images/home_icon_menu.png" COMP;
23         image: "../images/all_apps_icon_menu.png" COMP;
24         image: "../images/home_icon_reorder.png" COMP;
25 }
26
27 collections {
28         group {
29                 name: "home_ly";
30                 parts {
31                         part {
32                                 name: "bg_spacer";
33                                 type: SPACER;
34                                 scale: 0;
35                                 description {
36                                         state: "default" 0.0;
37                                         rel1.relative: 0.0 0.0;
38                                         rel2.relative: 1.0 1.0;
39                                         /*
40                                         * This is temporary fix due to strange elm_box bechaviour in the index swallow.
41                                         * Box has dynamic size which affects whole layout.
42                                         */
43                                         min: 720 1280;
44                                         max: 720 1280;
45                                 }
46                         }
47                         part {
48                                 name: "content";
49                                 type: SWALLOW;
50                                 mouse_events: 1;
51                                 repeat_events: 1;
52                                 scale: 0;
53                                 description {
54                                         state: "default" 0.0;
55                                         rel1.relative: 0.0 0.0/*HOME_WGT_MIN_Y*/;
56                                         rel2.relative: 1.0 1.0/*HOME_WGT_MAX_Y*/;
57                                 }
58                         }
59
60                         /*======================CHOOSER CAPTION=========================*/
61                         part {
62                                 name: "chooser_caption";
63                                 type: SPACER;
64                                 scale: 0;
65                                 description {
66                                         state: "default" 0.0;
67                                         rel1.relative: 0.0 HOME_CHOOSER_CAPTION_Y_MIN;
68                                         rel2.relative: 1.0 HOME_CHOOSER_CAPTION_Y_MAX;
69                                 }
70                         }
71                         part {
72                                 name: PART_CHOOSER_CAPTION_MIDDLE_LABEL;
73                                 type: TEXT;
74                                 scale: 1;
75                                 description
76                                 {
77                                         state: "default" 0.0;
78                                         visible: 0;
79                                         color: 255 255 255 255;
80                                         text
81                                         {
82                                                 align: 0.5 0.90;
83                                                 text:"999 selected";
84                                                 size: 36;
85                                         }
86                                         rel1
87                                         {
88                                                 relative: 0.30 0.0;
89                                                 to: "chooser_caption";
90                                         }
91                                         rel2
92                                         {
93                                                 relative: 0.70 1.0;
94                                                 to: "chooser_caption";
95                                         }
96                                 }
97                                 description {
98                                         state: "chooser_activated" 0.0;
99                                         inherit: "default" 0.0;
100                                         visible: 1;
101                                 }
102                          }
103                          part {
104                                 name: PART_CHOOSER_CAPTION_LEFT_LABEL;
105                                 type: TEXT;
106                                 scale: 1;
107                                 description
108                                 {
109                                         color: 255 255 255 255;
110                                         state: "default" 0.0;
111                                         visible: 0;
112                                         text
113                                         {
114                                                 align: 0.25 0.90;
115                                                 size: 28;
116                                                 text: "CANCEL";
117                                         }
118                                         rel1
119                                         {
120                                                 relative: 0.0 0.0;
121                                                 to: "chooser_caption";
122                                         }
123                                         rel2
124                                         {
125                                                 relative: 0.33 1.0;
126                                                 to: "chooser_caption";
127                                         }
128                                 }
129                                 description {
130                                         state: "chooser_activated" 0.0;
131                                         inherit: "default" 0.0;
132                                         visible: 1;
133                                 }
134                          }
135                          part {
136                                 name: "chooser_caption_left_clickable_space";
137                                 type: RECT;
138                                 mouse_events: 1;
139                                 scale: 0;
140                                 description
141                                 {
142                                         state: "default" 0.0;
143                                         color: 0 0 0 0;
144                                         visible: 0;
145                                         rel1
146                                         {
147                                                 to: "chooser_caption_left_label";
148                                                 relative: 0.0 0.0;
149                                         }
150                                         rel2
151                                         {
152                                                 to: "chooser_caption_left_label";
153                                                 relative: 1.0 1.0;
154                                         }
155                                 }
156                                 description {
157                                         state: "chooser_activated" 0.0;
158                                         inherit: "default" 0.0;
159                                         visible: 1;
160                                 }
161                         }
162                         part {
163                                 name: PART_CHOOSER_CAPTION_RIGHT_LABEL;
164                                 type: TEXT;
165                                 scale: 1;
166                                 description
167                                 {
168                                         state: "default" 0.0;
169                                         visible: 0;
170                                         color: 255 255 255 255;
171                                         text
172                                         {
173                                                 align: (1.0 - 0.25) 0.90;
174                                                 size: 28;
175                                                 text: "DONE";
176                                         }
177                                         rel1
178                                         {
179                                                 relative: 0.66 0.0;
180                                                 to: "chooser_caption";
181                                         }
182                                         rel2
183                                         {
184                                                 relative: 1.0 1.0;
185                                                 to: "chooser_caption";
186                                         }
187                                 }
188                                 description {
189                                         state: "chooser_activated" 0.0;
190                                         inherit: "default" 0.0;
191                                         visible: 1;
192                                 }
193                         }
194                         part {
195                                 name: "chooser_caption_right_clickable_space";
196                                 type: RECT;
197                                 mouse_events: 1;
198                                 scale: 0;
199                                 description
200                                 {
201                                         state: "default" 0.0;
202                                         visible: 0;
203                                         color: 0 0 0 0;
204                                         rel1
205                                         {
206                                                 to: "chooser_caption_right_label";
207                                                 relative: 0.0 0.0;
208                                         }
209                                         rel2
210                                         {
211                                                 to: "chooser_caption_right_label";
212                                                 relative: 1.0 1.0;
213                                         }
214                                 }
215                                 description {
216                                         state: "chooser_activated" 0.0;
217                                         inherit: "default" 0.0;
218                                         visible: 1;
219                                 }
220                         }
221
222                         /*==================== BUTTON : MENU IMPLEMENATION ===============*/
223                         part {
224                                 name: "menu_btn";
225                                 type: SPACER;
226                                 scale: 0;
227                                 description {
228                                         state: "default" 0.0;
229                                         rel1.relative: HOME_MENU_BTN_X_MIN HOME_BTNS_Y_MIN;
230                                         rel2.relative: HOME_MENU_BTN_X_MAX HOME_BTNS_Y_MAX;
231                                 }
232                         }
233                         part {
234                                 name: "menu_btn_bg";
235                                 type: IMAGE;
236                                 scale: 0;
237                                 description {
238                                         state: "default" 0.0;
239                                         rel1 { relative: 0.0 0.0; to: "menu_btn"; }
240                                         rel2 { relative: 1.0 1.0; to: "menu_btn"; }
241                                         color: 0 0 0 40;
242                                         visible: 1;
243                                         image {
244                                                 normal: "../images/home_button_bg.png";
245                                         }
246                                 }
247                                 description {
248                                         state: "press" 0.0;
249                                         inherit: "default" 0.0;
250                                         color: 255 255 255 40;
251                                 }
252                                 description {
253                                         state: "chooser_activated" 0.0;
254                                         visible: 0;
255                                 }
256                                 description
257                                 {
258                                         state: "all_apps_view_state" 0.0;
259                                         inherit: "default" 0.0;
260                                 }
261                                 description
262                                 {
263                                         state: "home_view_state" 0.0;
264                                         inherit: "default" 0.0;
265                                 }
266                                 description
267                                 {
268                                         state: "all_apps_edit_state" 0.0;
269                                         inherit: "default" 0.0;
270                                         visible: 0;
271                                 }
272                         }
273                         part {
274                                 name: "home_view_menu_icon";
275                                 type: IMAGE;
276                                 mouse_events: 0;
277                                 repeat_events: 1;
278                                 scale: 0;
279                                 description
280                                 {
281                                         state: "default" 0.0;
282                                         rel1 { relative: 0.27 0.1; to: "menu_btn"; }
283                                         rel2 { relative: 0.73 0.9; to: "menu_btn"; }
284                                         color: 255 255 255 255;
285                                         visible: 1;
286                                         image
287                                         {
288                                                 normal: "../images/home_icon_menu.png";
289                                         }
290                                 }
291                                 description
292                                 {
293                                         state: "all_apps_view_state" 0.0;
294                                         inherit: "default" 0.0;
295                                         color: 255 255 255 0;
296                                 }
297                                 description
298                                 {
299                                         state: "home_view_state" 0.0;
300                                         inherit: "default" 0.0;
301                                 }
302                                 description
303                                 {
304                                         state: "all_apps_edit_state" 0.0;
305                                         inherit: "all_apps_view_state" 0.0;
306                                         visible: 0;
307                                 }
308                         }
309                         part
310                         {
311                                 name: "all_apps_view_menu_icon";
312                                 type: IMAGE;
313                                 mouse_events: 0;
314                                 repeat_events: 1;
315                                 scale: 0;
316                                 description
317                                 {
318                                         state: "default" 0.0;
319                                         rel1 { relative: 0.27 0.1; to: "menu_btn"; }
320                                         rel2 { relative: 0.73 0.9; to: "menu_btn"; }
321                                         color: 255 255 255 0;
322                                         visible: 1;
323                                         image
324                                         {
325                                                 normal: "../images/all_apps_icon_menu.png";
326                                         }
327                                 }
328                                 description
329                                 {
330                                         state: "chooser_activated" 0.0;
331                                         visible: 0;
332                                 }
333                                 description
334                                 {
335                                         state: "all_apps_view_state" 0.0;
336                                         inherit: "default" 0.0;
337                                         color: 255 255 255 255;
338                                 }
339                                 description
340                                 {
341                                         state: "home_view_state" 0.0;
342                                         inherit: "default" 0.0;
343                                 }
344                                 description
345                                 {
346                                         state: "all_apps_edit_state" 0.0;
347                                         inherit: "all_apps_view_state" 0.0;
348                                         visible: 0;
349                                 }
350                         }
351
352                         /*==================== BUTTON : HOME ICON IMPLEMENTATION ===============*/
353                         part {
354                                 name: "home";
355                                 type: SPACER;
356                                 scale: 0;
357                                 description {
358                                         state: "default" 0.0;
359                                         rel1.relative: HOME_HOME_BTN_X_MIN HOME_BTNS_Y_MIN;
360                                         rel2.relative: HOME_HOME_BTN_X_MAX HOME_BTNS_Y_MAX;
361                                 }
362                         }
363                         part {
364                                 name: "home_btn_bg";
365                                 type: IMAGE;
366                                 scale: 0;
367                                 description {
368                                         state: "default" 0.0;
369                                         rel1 { relative: 0.0 0.0; to: "home"; }
370                                         rel2 { relative: 1.0 1.0; to: "home"; }
371                                         color: 0 0 0 40;
372                                         visible: 1;
373                                         image {
374                                                 normal: "../images/home_button_bg.png";
375                                         }
376                                 }
377                                 description {
378                                         state: "press" 0.0;
379                                         inherit: "default" 0.0;
380                                         color: 255 255 255 40;
381                                 }
382                                 description {
383                                         state: "chooser_activated" 0.0;
384                                         visible: 0;
385                                 }
386                                 description
387                                 {
388                                         state: "all_apps_view_state" 0.0;
389                                         inherit: "default" 0.0;
390                                 }
391                                 description
392                                 {
393                                         state: "home_view_state" 0.0;
394                                         inherit: "default" 0.0;
395                                 }
396                                 description
397                                 {
398                                         state: "all_apps_edit_state" 0.0;
399                                         inherit: "default" 0.0;
400                                         visible: 0;
401                                 }
402                         }
403                         part
404                         {
405                                 name: "home_view_home_icon";
406                                 type: IMAGE;
407                                 mouse_events: 0;
408                                 repeat_events: 1;
409                                 scale: 0;
410                                 description
411                                 {
412                                         state: "default" 0.0;
413                                         rel1 { relative: 0.27 0.1; to: "home"; }
414                                         rel2 { relative: 0.73 0.9; to: "home"; }
415                                         color: 255 255 255 255;
416                                         visible: 1;
417                                         image
418                                         {
419                                                 normal: "../images/home_icon_reorder.png";
420                                         }
421                                 }
422                                 description
423                                 {
424                                         state: "chooser_activated" 0.0;
425                                         visible: 0;
426                                 }
427                                 description
428                                 {
429                                         state: "all_apps_view_state" 0.0;
430                                         inherit: "default" 0.0;
431                                         color: 255 255 255 0;
432                                 }
433                                 description
434                                 {
435                                         state: "home_view_state" 0.0;
436                                         inherit: "default" 0.0;
437                                 }
438                                 description
439                                 {
440                                         state: "all_apps_edit_state" 0.0;
441                                         inherit: "all_apps_view_state" 0.0;
442                                         visible: 0;
443                                 }
444                         }
445
446                         part
447                         {
448                                 name: "all_apps_view_home_icon";
449                                 type: IMAGE;
450                                 mouse_events: 0;
451                                 repeat_events: 1;
452                                 scale: 0;
453                                 description
454                                 {
455                                         state: "default" 0.0;
456                                         rel1 { relative: 0.27 0.1; to: "home"; }
457                                         rel2 { relative: 0.73 0.9; to: "home"; }
458                                         color: 255 255 255 0;
459                                         visible: 1;
460                                         image
461                                         {
462                                                 normal: "../images/home_icon_home.png";
463                                         }
464                                 }
465                                 description
466                                 {
467                                         state: "chooser_activated" 0.0;
468                                         visible: 0;
469                                 }
470                                 description
471                                 {
472                                         state: "all_apps_view_state" 0.0;
473                                         inherit: "default" 0.0;
474                                         color: 255 255 255 255;
475                                 }
476                                 description
477                                 {
478                                         state: "home_view_state" 0.0;
479                                         inherit: "default" 0.0;
480                                         color: 255 255 255 0;
481                                 }
482                                 description
483                                 {
484                                         state: "all_apps_edit_state" 0.0;
485                                         inherit: "all_apps_view_state" 0.0;
486                                         visible: 0;
487                                 }
488                         }
489
490                         /*==================== DYNAMIC INDEX: ===============*/
491                         part {
492                                 name: PART_INDEX;
493                                 type: SWALLOW;
494                                 scale: 0;
495                                 description {
496                                         state: "default" 0.0;
497                                         rel1.relative: HOME_PG_INDEX_X_MIN HOME_BTNS_Y_MIN;
498                                         rel2.relative: HOME_PG_INDEX_X_MAX HOME_BTNS_Y_MAX;
499                                 }
500                         }
501                         part {
502                                 name: PART_NEXT_PAGE_INDICE;
503                                 type: RECT;
504                                 scale: 0;
505                                 description {
506                                         state: "default" 0.0;
507                                         color: 20 20 100 100;
508                                         rel1.relative: INDICE_NEXT_PAGE_X_MIN HOME_WGT_MIN_Y;
509                                         rel2.relative: INDICE_NEXT_PAGE_X_MAX HOME_WGT_EDIT_MAX_Y;
510                                         visible: 0;
511                                 }
512                                 description {
513                                         state: "visible" 0.0;
514                                         inherit: "default" 0.0;
515                                         visible: 1;
516                                 }
517                         }
518                         part {
519                                 name: PART_PREV_PAGE_INDICE;
520                                 type: RECT;
521                                 scale: 0;
522                                 description {
523                                         state: "default" 0.0;
524                                         color: 20 20 100 100;
525                                         rel1.relative: INDICE_PREV_PAGE_X_MIN HOME_WGT_MIN_Y;
526                                         rel2.relative: INDICE_PREV_PAGE_X_MAX HOME_WGT_EDIT_MAX_Y;
527                                         visible: 0;
528                                 }
529                                 description {
530                                         state: "visible" 0.0;
531                                         inherit: "default" 0.0;
532                                         visible: 1;
533                                 }
534                         }
535                         part {
536                                 name: PART_EVENT_BLOCKER;
537                                 type: RECT;
538                                 mouse_events:  1;
539                                 repeat_events: 0;
540                                 description {
541                                         state: "default" 0.0;
542                                         visible: 0;
543                                         rel1 {relative: 0.0 0.0; to: "bg_spacer";}
544                                         rel2 {relative: 1.0 1.0; to: "bg_spacer";}
545                                         color: 0 0 0 0;
546                                 }
547                                 description {
548                                         state: "blocked" 0.0;
549                                         inherit: "default" 0.0;
550                                         visible: 1;
551                                 }
552                         }
553                 }
554                 /*============== PROGRAMS TO OPERATE ON bottom buttons =============*/
555                 programs {
556                         program {
557                                 name: "menu_btn_down";
558                                 signal: "mouse,down,1";
559                                 source: "menu_btn_bg";
560                                 action: STATE_SET "press" 0.0;
561                                 target: "menu_btn_bg";
562                                 transition: DECELERATE 0.1;
563                         }
564                         program {
565                                 name: "menu_btn_up";
566                                 signal: "mouse,up,1";
567                                 source: "menu_btn_bg";
568                                 action: STATE_SET "default" 0.0;
569                                 target: "menu_btn_bg";
570                                 transition: DECELERATE 0.1;
571                         }
572                         program {
573                                 name: "menu_btn_click";
574                                 signal: "mouse,clicked,1";
575                                 source: "menu_btn_bg";
576                                 action: SIGNAL_EMIT SIGNAL_MENU_BTN_CLICKED SIGNAL_SOURCE;
577                         }
578                         program {
579                                 name: "home_btn_down";
580                                 signal: "mouse,down,1";
581                                 source: "home_btn_bg";
582                                 action: STATE_SET "press" 0.0;
583                                 target: "home_btn_bg";
584                                 transition: DECELERATE 0.1;
585                         }
586                         program {
587                                 name: "home_btn_up";
588                                 signal: "mouse,up,1";
589                                 source: "home_btn_bg";
590                                 action: STATE_SET "default" 0.0;
591                                 target: "home_btn_bg";
592                                 transition: DECELERATE 0.1;
593                         }
594                         program {
595                                 name: "home_btn_click";
596                                 signal: "mouse,clicked,1";
597                                 source: "home_btn_bg";
598                                 action: SIGNAL_EMIT SIGNAL_HOME_BTN_CLICKED SIGNAL_SOURCE;
599                         }
600                         program
601                         {
602                                 name: "menu_icon_home_view_state_set";
603                                 signal: SIGNAL_BOTTOM_BUTTONS_HOME_STATE_SET;
604                                 source: SIGNAL_SOURCE;
605                                 action: STATE_SET "home_view_state" 0.0;
606                                 target: "home_view_menu_icon";
607                                 target: "all_apps_view_menu_icon";
608                                 target: "home_view_home_icon";
609                                 target: "all_apps_view_home_icon";
610                                 target: "menu_btn_bg";
611                                 target: "home_btn_bg";
612                                 transition: LINEAR 0.3;
613                         }
614                         program
615                         {
616                                 name: "menu_icon_all_apps_view_state_set";
617                                 signal: SIGNAL_BOTTOM_BUTTONS_ALL_APPS_STATE_SET;
618                                 source: SIGNAL_SOURCE;
619                                 action: STATE_SET "all_apps_view_state" 0.0;
620                                 target: "home_view_menu_icon";
621                                 target: "all_apps_view_menu_icon";
622                                 target: "home_view_home_icon";
623                                 target: "all_apps_view_home_icon";
624                                 target: "menu_btn_bg";
625                                 target: "home_btn_bg";
626                                 transition: LINEAR 0.3;
627                         }
628                         program
629                         {
630                                 name: "menu_icon_all_apps_edit_state_set";
631                                 signal: SIGNAL_BOTTOM_BUTTONS_ALL_APPS_EDIT_STATE_SET;
632                                 source: SIGNAL_SOURCE;
633                                 action: STATE_SET "all_apps_edit_state" 0.0;
634                                 target: "home_view_menu_icon";
635                                 target: "all_apps_view_menu_icon";
636                                 target: "home_view_home_icon";
637                                 target: "all_apps_view_home_icon";
638                                 target: "menu_btn_bg";
639                                 target: "home_btn_bg";
640                         }
641
642                         /*============== PROGRAMS TO OPERATE ON CHOOSER CAPTION =============*/
643                         program {
644                                 name: "chooser_caption_activate";
645                                 signal: SIGNAL_CHOOSER_CAPTION_ACTIVATE;
646                                 source: SIGNAL_SOURCE;
647                                 action: STATE_SET "chooser_activated" 0.0;
648                                 target: "chooser_caption_middle_label";
649                                 target: "chooser_caption_left_label";
650                                 target: "chooser_caption_left_clickable_space";
651                                 target: "chooser_caption_right_label";
652                                 target: "chooser_caption_right_clickable_space";
653                                 target: "all_apps_view_menu_icon";
654                                 target: "menu_btn_bg";
655                                 target: "home_btn_bg";
656                                 target: "all_apps_view_home_icon";
657                         }
658                         program {
659                                 name: "chooser_caption_deactivate";
660                                 signal: SIGNAL_CHOOSER_CAPTION_DEACTIVATE;
661                                 source: SIGNAL_SOURCE;
662                                 action: STATE_SET "default" 0.0;
663                                 target: "chooser_caption_middle_label";
664                                 target: "chooser_caption_left_label";
665                                 target: "chooser_caption_left_clickable_space";
666                                 target: "chooser_caption_right_label";
667                                 target: "chooser_caption_right_clickable_space";
668                                 target: "menu_btn_bg";
669                                 target: "all_apps_view_menu_icon";
670                                 target: "home_btn_bg";
671                                 target: "all_apps_view_home_icon";
672                         }
673                         /*============= PROGRAMS TO OPERATOE ON INDICES =====================*/
674                         program {
675                                 name: "next_page_indice_show";
676                                 signal: SIGNAL_NEXT_PAGE_INDICE_SHOW;
677                                 source: SIGNAL_SOURCE;
678                                 action: STATE_SET "visible" 0.0;
679                                 target: PART_NEXT_PAGE_INDICE;
680                         }
681                         program {
682                                 name: "prev_page_indice_show";
683                                 signal: SIGNAL_PREV_PAGE_INDICE_SHOW;
684                                 source: SIGNAL_SOURCE;
685                                 action: STATE_SET "visible" 0.0;
686                                 target: PART_PREV_PAGE_INDICE;
687                         }
688                         program {
689                                 name: "indice_off_program";
690                                 signal: SIGNAL_INDICE_HIDE;
691                                 source: SIGNAL_SOURCE;
692                                 action: STATE_SET "default" 0.0;
693                                 target: PART_PREV_PAGE_INDICE;
694                                 target: PART_NEXT_PAGE_INDICE;
695                         }
696                         program {
697                                 name: "block_events";
698                                 signal: SIGNAL_BLOCK_EVENTS;
699                                 source: SIGNAL_SOURCE;
700                                 action: STATE_SET "blocked" 0.0;
701                                 target: PART_EVENT_BLOCKER;
702                         }
703                         program {
704                                 name: "unblock_events";
705                                 signal: SIGNAL_UNBLOCK_EVENTS;
706                                 source: SIGNAL_SOURCE;
707                                 action: STATE_SET "default" 0.0;
708                                 target: PART_EVENT_BLOCKER;
709                                 in: 0.1 0.0;
710                         }
711                 }
712         }
713 }