The source code moved from the SPIN with license changed to Flora 1.1
[apps/native/home/homescreen-efl.git] / res / edje / app_grid.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 collections {
20         group {
21                 name: GROUP_APP_GRID;
22                 parts {
23                         //We want to have animations and don't take care about gengrid size from code.
24                         //Because of that we must to add a part into the layout which set the size of the elm_layout
25                         //widget properly.
26                         part {
27                                 name: PART_APP_GRID_SIZE_SETTER;
28                                 type: SWALLOW;
29                                 description {
30                                         state: "default" 0.0;
31                                         rel1 {relative: 0.0 0.0;}
32                                         rel2 {relative: 1.0 1.0;}
33                                 }
34                         }
35                         part {
36                                 name: PART_APP_GRID_BG;
37                                 type: RECT;
38                                 description {
39                                         state: "default" 0.0;
40                                         rel1 {relative: 0.0 0.0; to: PART_APP_GRID_SIZE_SETTER;}
41                                         rel2 {relative: 1.0 1.0; to: PART_APP_GRID_SIZE_SETTER;}
42                                         color: 0 0 0 45;
43                                         visible: 1;
44                                 }
45                                 description {
46                                         state: "hidden" 0.0; //Used in the folder
47                                         inherit: "default" 0.0;
48                                         visible: 0;
49                                 }
50                         }
51                         part {
52                                 name: PART_APP_GRID_EDIT_BG;
53                                 type: RECT;
54                                 description {
55                                         state: "default" 0.0;
56                                         rel1 {relative: 0.0 0.0; to: PART_APP_GRID_CONTENT;}
57                                         rel2 {relative: 1.0 1.0; to: PART_APP_GRID_CONTENT;}
58                                         color: 20 20 20 0;
59                                         visible: 1;
60                                 }
61                                 description {
62                                         state: "edit" 0.0;
63                                         inherit: "default" 0.0;
64                                         color: 20 20 20 40;
65                                 }
66                                 description {
67                                         state: "hidden" 0.0; //Used in the folder
68                                         inherit: "default" 0.0;
69                                         visible: 0;
70                                 }
71                         }
72                         part {
73                                 name: PART_APP_GRID_CONTENT;
74                                 type: SWALLOW;
75                                 description {
76                                         state: "default" 0.0;
77                                         align: 0.5 0.5;
78                                         rel1 {relative: 0.0 CONTENT_Y_MIN; to: PART_APP_GRID_SIZE_SETTER;}
79                                         rel2 {relative: 1.0 CONTENT_APP_Y_MAX; to: PART_APP_GRID_SIZE_SETTER;}
80                                 }
81                                 description {
82                                         state: "edit" 0.0;
83                                         inherit: "default" 0.0;
84                                         rel1.relative: 0.05 CONTENT_Y_MIN;
85                                         rel2.relative: 0.95 0.9;
86                                 }
87                         }
88                 }
89                 programs {
90                         program {
91                                 name: "bg_edit_mode_on";
92                                 signal: SIGNAL_EDIT_MODE_ON;
93                                 source: SIGNAL_SOURCE;
94                                 action: STATE_SET "edit" 0.0;
95                                 target: PART_APP_GRID_CONTENT;
96                                 target: PART_APP_GRID_EDIT_BG;
97                                 transition: DECELERATE ANIMATION_RESIZE_TIME;
98                         }
99                         program {
100                                 name: "bg_edit_mode_off";
101                                 signal: SIGNAL_EDIT_MODE_OFF;
102                                 source: SIGNAL_SOURCE;
103                                 action: STATE_SET "default" 0.0;
104                                 target: PART_APP_GRID_CONTENT;
105                                 target: PART_APP_GRID_EDIT_BG;
106                                 transition: DECELERATE ANIMATION_RESIZE_TIME;
107                         }
108                         program {
109                                 name: "bg_choose_mode_off";
110                                 signal: SIGNAL_CHOOSE_MODE_OFF;
111                                 source: SIGNAL_SOURCE;
112                                 action: STATE_SET "default" 0.0;
113                                 target: PART_APP_GRID_CONTENT;
114                                 transition: DECELERATE ANIMATION_RESIZE_TIME;
115                         }
116                         program {
117                                 name: "bg_choose_mode_on";
118                                 signal: SIGNAL_CHOOSE_MODE_ON;
119                                 source: SIGNAL_SOURCE;
120                                 action: STATE_SET "edit" 0.0;
121                                 target: PART_APP_GRID_CONTENT;
122                                 transition: DECELERATE ANIMATION_RESIZE_TIME;
123                         }
124                         program {
125                                 name: "bg_hidden";
126                                 signal: SIGNAL_APP_GRID_BG_HIDE;
127                                 source: SIGNAL_SOURCE;
128                                 action: STATE_SET "hidden" 0.0;
129                                 target: PART_APP_GRID_BG;
130                                 target: PART_APP_GRID_EDIT_BG;
131                         }
132                 }
133         }
134         group {
135                 name: GROUP_APP_GRID_ITEM_CONTAINER;
136                 parts {
137                         part {
138                                 name: PART_APP_GRID_ITEM;
139                                 type: SWALLOW;
140                                 description {
141                                         state: "default" 0.0;
142                                         rel1.relative: 0.0 0.0;
143                                         rel2.relative: 1.0 1.0;
144                                 }
145                         }
146                 }
147         }
148 }