The source code moved from the SPIN with license changed to Flora 1.1
[apps/native/home/homescreen-efl.git] / res / edje / page_edit.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 "page_edit_util.edc"
18 #include "../../inc/conf.h"
19
20 images {
21         image: "../images/btn_delete_nor.png" COMP;
22         image: "../images/btn_delete_press.png" COMP;
23         image: "../images/edit_all_page_drag.png" COMP;
24         image: "../images/edit_all_page_bg.png" COMP;
25         image: "../images/edit_all_page_create.png" COMP;
26 }
27
28 collections
29 {
30         group
31         {
32                 name: GROUP_ALL_PAGES;
33
34                 parts {
35                         part
36                         {
37                                 name: "base";
38                                 type: SPACER;
39                                 description {
40                                         state: "default" 0.0;
41                                         rel1 { relative: 0.0 0.0;}
42                                         rel2 { relative: 1.0 1.0;}
43                                 }
44                         }
45                         part
46                         {
47                                 name: "bg";
48                                 type: SWALLOW;
49                                 description
50                                 {
51                                         state: "default" 0.0;
52                                         rel1 { relative: 0.0 0.0; to:"base";}
53                                         rel2 { relative: 1.0 1.0; to:"base";}
54                                 }
55                         }
56                         part
57                         {
58                                 name: PART_LAYOUT_CONTENT;
59                                 type: SWALLOW; //gengrid swallow
60                                 description
61                                 {
62                                         state: "default" 0.0;
63                                         rel1 { relative: 0.0 0.0; to:"base";}
64                                         rel2 { relative: 1.0 1.0; to:"base";}
65                                 }
66                         }
67                 }
68         }
69
70         group {
71                 name: GROUP_GRID_ITEM;
72
73                 parts {
74                         part {
75                                 name: "base";
76                                 type: SPACER;
77                                 description {
78                                         state: "default" 0.0;
79                                         rel1 {relative: 0.0 0.0;}
80                                         rel2 {relative: 1.0 1.0;}
81                                 }
82                         }
83
84                         part {
85                                 name: PART_GRID_ITEM_CONTENT;
86                                 type: SWALLOW;
87                                 description {
88                                         state: "default" 0.0;
89                                         rel1 {relative: 0.0 0.0; to: "base";}
90                                         rel2 {relative: 1.0 1.0; to: "base";}
91                                 }
92                         }
93                 }
94         }
95
96         group
97         {
98                 name: GROUP_THUMB;
99                 parts
100                 {
101                         part
102                         {
103                                 name: "base";
104                                 type: SPACER;
105                                 description
106                                 {
107                                         state: "default" 0.0;
108                                         rel1 {relative: 0.0 0.0;}
109                                         rel2 {relative: 1.0 1.0;}
110                                 }
111                         }
112                         part
113                         {
114                                 name: "bg";
115                                 type: IMAGE;
116                                 description
117                                 {
118                                         state: "default" 0.0;
119                                         rel1 {relative: 0.0 0.0; to: PART_THUMB_CONTENT;}
120                                         rel2 {relative: 1.0 1.0; to: PART_THUMB_CONTENT;}
121                                         image {
122                                                 normal: "../images/edit_all_page_bg.png";
123                                         }
124                                 }
125                                 description
126                                 {
127                                         state: "hide" 0.0;
128                                         inherit: "default" 0.0;
129                                         visible: 0;
130                                 }
131                                 description
132                                 {
133                                         state: "reposition" 0.0;
134                                         inherit: "default";
135                                         rel1 {relative: -0.05 -0.05;}
136                                         rel2 {relative: 1.05 1.05;}
137                                         visible: 1;
138                                         image
139                                         {
140                                                 normal: "../images/edit_all_page_drag.png";
141                                         }
142                                 }
143                         }
144                         part {
145                                 name: "add_bg";
146                                 type: IMAGE;
147                                 description {
148                                         state: "default" 0.0;
149                                         rel1 {relative: 0.34 0.34; to: "bg";}
150                                         rel2 {relative: 0.67 0.67; to: "bg";}
151                                         visible: 0;
152                                         image {
153                                                 normal : "../images/edit_all_page_create.png";
154                                         }
155                                 }
156                                 description {
157                                         state: "visible" 0.0;
158                                         inherit: "default" 0.0;
159                                         visible: 1;
160                                 }
161                         }
162                         part
163                         {
164                                 name: PART_THUMB_CONTENT;
165                                 type: SWALLOW;
166                                 description
167                                 {
168                                         state: "default" 0.0;
169                                         rel1 {relative: 0.0 0.0; to: "base";}
170                                         rel2 {relative: 1.0 1.0; to: "base";}
171                                 }
172                         }
173                         part {
174                                 name: "remove_button";
175                                 type: IMAGE;
176                                 description {
177                                         state: "default" 0.0;
178                                         rel1{relative: BADGE_REL1_X BADGE_REL1_Y; to: "base";}
179                                         rel2{relative: BADGE_REL2_X BADGE_REL2_Y; to: "base";}
180                                         visible: 1;
181                                         aspect: 0.0 0.0;
182                                         aspect_preference: BOTH;
183                                         fixed: 1 1;
184                                         image {
185                                                 normal: "../images/btn_delete_nor.png";
186                                         }
187                                 }
188                                 description {
189                                         state: "pressed";
190                                         inherit: "default" 0.0;
191                                         image {
192                                                 normal: "../images/btn_delete_press.png";
193                                         }
194                                 }
195                                 description {
196                                         state: "hidden" 0.0;
197                                         inherit: "default" 0.0;
198                                         color: 255 255 255 0;
199                                         visible: 0;
200                                 }
201                         }
202                 }
203                 programs
204                 {
205                         program
206                         {
207                                 name: "bg_hide";
208                                 signal: SIGNAL_BG_HIDE;
209                                 source: "layout";
210                                 action: STATE_SET "hide" 0.0;
211                                 target: "bg";
212                         }
213                         program
214                         {
215                                 name: "bg_reposition";
216                                 signal: SIGNAL_BG_REPOSITON;
217                                 source: "layout";
218                                 action: STATE_SET "reposition" 0.0;
219                                 target: "bg";
220                                 transition: DECELERATE 0.2;
221                         }
222                         program
223                         {
224                                 name: "bg_normal";
225                                 signal: SIGNAL_BG_NORMAL;
226                                 source: "layout";
227                                 action: STATE_SET "default" 0.0;
228                                 target: "bg";
229                                 transition: DECELERATE 0.2;
230                         }
231                         program {
232                                 name: "thumbnail_clicked";
233                                 signal: "mouse,clicked,1";
234                                 source: "page_thumbnail";
235                                 action: SIGNAL_EMIT SIGNAL_THUMBNAIL_CLICKED SIGNAL_SOURCE;
236                         }
237                         program {
238                                 name: "add_icon_show";
239                                 signal: SIGNAL_ADD_ICON_SHOW;
240                                 source: "layout";
241                                 action: STATE_SET "visible" 0.0;
242                                 target: "add_bg";
243                         }
244                         program {
245                                 name: "remove_button_clicked";
246                                 signal: "mouse,clicked,1";
247                                 source: "remove_button";
248                                 action: SIGNAL_EMIT SIGNAL_REMOVE_BUTTON_CLICKED SIGNAL_SOURCE;
249                         }
250                         program {
251                                 name: "remove_button_show";
252                                 signal: SIGNAL_REMOVE_BUTTON_SHOW;
253                                 source: "layout";
254                                 action: STATE_SET "default" 0.0;
255                                 target: "remove_button";
256                                 transition: DECELERATE 0.20;
257                         }
258                         program {
259                                 name: "remove_button_hide";
260                                 signal: SIGNAL_REMOVE_BUTTON_HIDE;
261                                 source: "layout";
262                                 action: STATE_SET "hidden" 0.0;
263                                 target: "remove_button";
264                                 transition: DECELERATE 0.20;
265                         }
266                         program {
267                                 name: "remove_button_hide_instant";
268                                 signal: SIGNAL_REMOVE_BUTTON_HIDE_INSTANT;
269                                 source: "layout";
270                                 action: STATE_SET "hidden" 0.0;
271                                 target: "remove_button";
272                         }
273                         program {
274                                 name: "remove_button_mouse_down";
275                                 signal: "mouse,down,1";
276                                 source: "remove_button";
277                                 action: STATE_SET "pressed" 0.0;
278                                 target: "remove_button";
279                                 transition: DECELERATE 0.20;
280                         }
281                         program {
282                                 name: "remove_button_mouse_up";
283                                 signal: "mouse,up,1";
284                                 source: "remove_button";
285                                 action: STATE_SET "default" 0.0;
286                                 target: "remove_button";
287                                 transition: DECELERATE 0.20;
288                         }
289                 }
290         }
291 }
292