Tizen 2.1 base
[apps/core/preloaded/calendar.git] / data / edc / layout / inc.main.week.item.edc
1 /*
2   *
3   *  Copyright 2012  Samsung Electronics Co., Ltd
4   *
5   *  Licensed under the Flora License, Version 1.0 (the "License");
6   *  you may not use this file except in compliance with the License.
7   *  You may obtain a copy of the License at
8   *
9   *       http://floralicense.org/license/
10   *
11   *  Unless required by applicable law or agreed to in writing, software
12   *  distributed under the License is distributed on an "AS IS" BASIS,
13   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   *  See the License for the specific language governing permissions and
15   *  limitations under the License.
16   */
17
18 group { name, "main/week/more";
19
20         parts {
21                 part { name, "base";
22                         type, RECT;
23                         description {
24                                 state, "default" 0.0;
25                                 color, 0 0 0 0;
26                         }
27                 }
28
29                 part { name, "text";
30                         type, TEXT;
31                         scale, 1;
32                         description {
33                                 state, "default" 0.0;
34                                 rel1.to, "base";
35                                 rel2.to, "base";
36                                 text {
37                                         font, "SLP:style=Medium";
38                                         size, 40;
39                                         align, 0.5 0.5;
40                                         text, "...";
41                                 }
42                         }
43                 }
44         }
45 }
46
47 group { name, "main/week/1line";
48
49         images {
50                 image, CALENDAR_WEEK_ARROW_FOCUS_ICON COMP;
51                 image, CALENDAR_WEEK_ARROW_ICON COMP;
52                 image, CALENDAR_WEEK_VIEW_PRESS COMP;
53         }
54
55         parts {
56                 part { name, "base";
57                         type, RECT;
58                         description {
59                                 min, 240 20;
60                                 fixed, 1 1;
61                                 state, "default" 0.0;
62                                 color, 0 0 0 0;
63                                 visible, 1;
64                         }
65                 }
66                 part { name, "base/bg";
67                         mouse_events, 0;
68                         description {
69                                 state, "default" 0.0;
70                                 rel1.to, "base";
71                                 rel2.to, "base";
72                                 image.normal, CALENDAR_WEEK_VIEW_PRESS;
73                                 visible, 0;
74                         }
75                         description {
76                                 state, "down" 0.0;
77                                 inherit, "default" 0.0;
78                                 visible, 1;
79                         }
80                 }
81                 part { name, "icon_bg";
82                         type, RECT;
83                         scale, 1;
84                         description {
85                                 state, "default" 0.0;
86                                 min, 10 24;
87                                 fixed, 1 1;
88                                 rel1 {
89                                         relative, 0.0 0.0;
90                                         to, "base";
91                                 }
92                                 rel2 {
93                                         relative, 0.0 1.0;
94                                         to, "base";
95                                 }
96                                 align, 0.0 0.5;
97                                 color, 0 0 0 0;
98                         }
99                 }
100
101                 part { name, "icon";
102                         type, SWALLOW;
103                         scale, 1;
104                         description {
105                                 state, "default" 0.0;
106                                 min, 10 24;
107                                 fixed, 1 1;
108                                 rel1 {
109                                         relative, 0.0 0.0;
110                                         to, "icon_bg";
111                                 }
112                                 rel2 {
113                                         relative, 0.0 0.0;
114                                         to, "icon_bg";
115                                 }
116                         }
117                 }
118
119                 part { name, "text_title";
120                         type, TEXT;
121                         scale, 1;
122                         description {
123                                 state, "default" 0.0;
124                                 rel1 {
125                                         relative, 1.0 0.0;
126                                         to_x, "icon_bg"; to_y, "base";
127                                 }
128
129                                 rel2 {
130                                         relative, 1.0 0.5;
131                                         to_x, "base"; to_y, "base";
132                                 }
133                                 text {
134                                         font, "SLP:style=Medium";
135                                         size, 30;
136                                         align, 0.0 0.5;
137                                         text, "...";
138                                 }
139                                 color, 255 255 255 255;
140                         }
141                 }
142
143                 part { name, "text_location";
144                         type, TEXT;
145                         scale, 1;
146                         description {
147                                 state, "default" 0.0;
148                                 rel1 {
149                                         relative, 1.0 0.5;
150                                         to_x, "icon_bg"; to_y, "base";
151                                 }
152
153                                 rel2 {
154                                         relative, 1.0 1.0;
155                                         to_x, "base"; to_y, "base";
156                                 }
157                                 text {
158                                         font, "SLP:style=Medium";
159                                         size, 22;
160                                         align, 0.0 0.5;
161                                         text, "...";
162                                 }
163                                 color, 240 240 240 255;
164                         }
165                 }
166                 programs {
167                         program { name, "base/down";
168                                 signal, "mouse,down,1";
169                                 source, "base";
170                                 action, STATE_SET "down" 0.0;
171                                 target, "base/bg";
172                         }
173                         program { name, "base/up";
174                                 signal, "mouse,up,1";
175                                 source, "base";
176                                 action, STATE_SET "default" 0.0;
177                                 target, "base/bg";
178                         }
179                 }
180         }
181 }
182
183 group { name, "landscape/main/week/1line";
184
185         images {
186                 image, CALENDAR_WEEK_ARROW_FOCUS_ICON COMP;
187                 image, CALENDAR_WEEK_ARROW_ICON COMP;
188                 image, CALENDAR_WEEK_VIEW_PRESS COMP;
189         }
190
191         parts {
192                 part { name, "base";
193                         type, RECT;
194                         description {
195                                 min, 240 50;
196                                 fixed, 1 1;
197                                 state, "default" 0.0;
198                                 color, 0 0 0 0;
199                                 visible, 1;
200                         }
201                 }
202                 part { name, "base/bg";
203                         mouse_events, 0;
204                         description {
205                                 state, "default" 0.0;
206                                 rel1.to, "base";
207                                 rel2.to, "base";
208                                 image.normal, CALENDAR_WEEK_VIEW_PRESS;
209                                 visible, 0;
210                         }
211                         description {
212                                 state, "down" 0.0;
213                                 inherit, "default" 0.0;
214                                 visible, 1;
215                         }
216                 }
217                 part { name, "icon_bg";
218                         type, RECT;
219                         scale, 1;
220                         description {
221                                 state, "default" 0.0;
222                                 min, 10 24;
223                                 fixed, 1 1;
224                                 rel1 {
225                                         relative, 0.0 0.0;
226                                         to, "base";
227                                 }
228                                 rel2 {
229                                         relative, 0.0 1.0;
230                                         to, "base";
231                                 }
232                                 align, 0.0 0.5;
233                                 color, 0 0 0 0;
234                         }
235                 }
236
237                 part { name, "icon";
238                         type, SWALLOW;
239                         scale, 1;
240                         description {
241                                 state, "default" 0.0;
242                                 min, 10 24;
243                                 fixed, 1 1;
244                                 rel1 {
245                                         relative, 0.0 0.0;
246                                         to, "icon_bg";
247                                 }
248                                 rel2 {
249                                         relative, 0.0 0.0;
250                                         to, "icon_bg";
251                                 }
252                         }
253                 }
254
255                 part { name, "text_title";
256                         type, TEXT;
257                         scale, 1;
258                         description {
259                                 state, "default" 0.0;
260                                 rel1 {
261                                         relative, 1.0 0.0;
262                                         to_x, "icon_bg"; to_y, "base";
263                                 }
264
265                                 rel2 {
266                                         relative, 1.0 0.5;
267                                         to_x, "base"; to_y, "base";
268                                 }
269                                 text {
270                                         font, "SLP:style=Medium";
271                                         size, 30;
272                                         align, 0.0 0.5;
273                                         text, "...";
274                                 }
275                                 color, 255 255 255 255;
276                         }
277                 }
278
279                 part { name, "text_location";
280                         type, TEXT;
281                         scale, 1;
282                         description {
283                                 state, "default" 0.0;
284                                 rel1 {
285                                         relative, 1.0 0.5;
286                                         to_x, "icon_bg"; to_y, "base";
287                                 }
288
289                                 rel2 {
290                                         relative, 1.0 1.0;
291                                         to_x, "base"; to_y, "base";
292                                 }
293                                 text {
294                                         font, "SLP:style=Medium";
295                                         size, 22;
296                                         align, 0.0 0.5;
297                                         text, "...";
298                                 }
299                                 color, 240 240 240 255;
300                         }
301                 }
302                 programs {
303                         program { name, "base/down";
304                                 signal, "mouse,down,1";
305                                 source, "base";
306                                 action, STATE_SET "down" 0.0;
307                                 target, "base/bg";
308                         }
309                         program { name, "base/up";
310                                 signal, "mouse,up,1";
311                                 source, "base";
312                                 action, STATE_SET "default" 0.0;
313                                 target, "base/bg";
314                         }
315                 }
316         }
317 }
318