tizen 2.4 release
[apps/home/quickpanel.git] / data / quickpanel.edc
1 /*
2  * Copyright (c) 2009-2015 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (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://www.apache.org/licenses/LICENSE-2.0
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
18
19 #include "quickpanel_def.h"
20 #include "color_classes.edc"
21
22 #define QP_SETTING_H    221
23 #define QP_SETTING_SEPERATOR_H 0
24 #define QP_SETTING_SEPERATOR_COLOR "AO007"
25 #define QP_HANDLER_COLOR "AO010"
26 #define QP_HANDLER_PRESS_COLOR "AO010S"
27
28
29
30 #define QUICKPANEL_FOCUS_OBJECT(NAME, TO_1, TO_2)\
31                         part {\
32                                 name: NAME;\
33                                 type: SWALLOW;\
34                                 scale: 1;\
35                                 mouse_events: 1;\
36                                 repeat_events: 1;\
37                                 description {\
38                                         state: "default" 0.0;\
39                                         rel1 { relative: 0.0 0.00; to, TO_1; }\
40                                         rel2 { relative: 1.0 1.00; to, TO_2; }\
41                                         fixed: 1 1;\
42                                         visible: 1;\
43                                 }\
44                                 description {\
45                                         state: "show" 0.0;\
46                                         inherit: "default" 0.0;\
47                                         visible: 1;\
48                                 }\
49                                 description {\
50                                         state: "hide" 0.0;\
51                                         inherit: "default" 0.0;\
52                                         visible: 0;\
53                                 }\
54                         }\
55
56 #define QUICKPANEL_FOCUS_OBJECT_WITH_OFFSET(NAME, TO_1, TO_2, OFFSET_X, OFFSET_Y)\
57                         part {\
58                                 name: NAME;\
59                                 type: SWALLOW;\
60                                 scale: 1;\
61                                 mouse_events: 1;\
62                                 repeat_events: 1;\
63                                 description {\
64                                         state: "default" 0.0;\
65                                         rel1 { relative: 0.0 0.00; to, TO_1; offset: -OFFSET_X -OFFSET_Y;}\
66                                         rel2 { relative: 1.0 1.00; to, TO_2; offset: +OFFSET_X +OFFSET_Y; }\
67                                         fixed: 1 1;\
68                                         visible: 1;\
69                                 }\
70                         }\
71
72 images
73 {
74         image: "handler_bg.#.png" COMP;
75         image: "handler_bg_ef.#.png" COMP;
76         image: "handler_btn_02.png" COMP;
77         image: "core_theme_bg_01.png" COMP;
78 }
79
80 collections {
81         base_scale: 1.8;
82         group {
83                 name: "quickpanel/root";
84
85                 script {
86                         public g_is_portrait;
87
88                         public init_variables() {
89                                 set_int(g_is_portrait, 1);
90                         }
91                 }
92
93                 parts {
94                         part {
95                                 name: "base";
96                                 type: RECT;
97                                 scale: 1;
98                                 mouse_events: 1;
99                                 description {
100                                         state: "default" 0.0;
101                                         visible: 1;
102                                 }
103                         }
104
105
106                         part {
107                                 name: "background";
108                                 type: IMAGE;
109                                 scale: 1;
110                                 description {
111                                         state: "default" 0.0;
112                                         fixed: 1 1;
113                                         align: 0.5 0.5;
114                                         rel1 {
115                                                 to: "base";
116                                         }
117                                         rel2 {
118                                                 to: "base";
119                                         }
120                                         image {
121                                                 normal: "core_theme_bg_01.png";
122                                         }
123                                 }
124                         }
125
126                         part{
127                                 name: "qp.base.rect.datetime";
128                                 type:SPACER;
129                                 scale:1;
130                                 description {
131                                         state: "default" 0.0;
132                                         fixed: 0 1;
133                                         min: 0 QP_DATE_H;
134                                         rel1 {
135                                                 relative: 0.0 0.0;
136                                                 to: "background";
137                                         }
138                                         rel2 {
139                                                 relative: 1.0 0.0;
140                                                 to: "background";
141                                         }
142                                         align: 0.0 0.0;
143                                 }
144                         }
145                         part{
146                                 name: "qp.base.datetime.swallow";
147                                 type:SWALLOW;
148                                 scale: 1;
149                                 description {
150                                         state: "default" 0.0;
151                                         fixed: 0 1;
152                                         rel1 {
153                                                 to: "qp.base.rect.datetime";
154                                         }
155                                         rel2 {
156                                                 to: "qp.base.rect.datetime";
157                                         }
158                                         align: 0.0 0.0;
159                                 }
160                         }
161                         part{
162                                 name: "qp.root.swallow";
163                                 type:SWALLOW;
164                                 scale: 1;
165                                 description {
166                                         state: "default" 0.0;
167                                         rel1 {
168                                                 relative: 0.0 1.0;
169                                                 to_x: "background";
170                                                 to_y: "qp.base.datetime.swallow";
171                                         }
172                                         rel2 {
173                                                 relative: 1.0 0.0;
174                                                 to_x: "background";
175                                                 to_y: "qp.handler.bg";
176                                         }
177                                         align: 0.0 0.0;
178                                 }
179                         }
180                         part
181                         {
182                                 name: "qp.handler.bg";
183                                 type:IMAGE;
184                                 scale:1;
185                                 description {
186                                         state: "default" 0.0;
187                                         fixed: 0 1;
188                                         min: 0 QP_HANDLE_H;
189                                         rel1 {
190                                                 relative: 0.0 1.0;
191                                                 to: "background";
192                                         }
193                                         rel2 {
194                                                 relative: 1.0 1.0;
195                                                 to: "background";
196                                         }
197                                         image {
198                                                 normal:"handler_bg.#.png";
199                                         }
200                                         align: 0.0 1.0;
201                                         color_class: "W0113";
202                                 }
203                                 description {
204                                         state: "pressed" 0.0;
205                                         inherit: "default";
206                                         color_class: "W0113P";
207                                 }
208                         }
209
210                         part
211                         {
212                                 name: "qp.handler.effect";
213                                 type:IMAGE;
214                                 scale:1;
215                                 description {
216                                         state: "default" 0.0;
217
218                                         rel1 {
219                                                 relative: 0.0 0.0;
220                                                 to: "qp.handler.bg";
221                                         }
222                                         rel2 {
223                                                 relative: 1.0 1.0;
224                                                 to: "qp.handler.bg";
225                                         }
226                                         image {
227                                                 normal:"handler_bg_ef.#.png";
228                                         }
229                                         align: 0.0 1.0;
230                                         color_class: "AO007L2";
231                                 }
232                         }
233
234                         part
235                         {
236                                 name: "qp.handler.button";
237                                 type:IMAGE;
238                                 scale:1;
239                                 description {
240                                         state: "default" 0.0;
241                                         min: 50 50;
242                                         max: 50 50;
243                                         fixed: 1 1;
244                                         rel1
245                                         {
246                                                 relative: 0.5 0.0;
247                                                 to: "qp.handler.bg";
248                                         }
249                                         rel2
250                                         {
251                                                 relative: 0.5 1.0;
252                                                 to: "qp.handler.bg";
253                                         }
254                                         image {
255                                                 normal:"handler_btn_02.png";
256                                         }
257
258                                         align: 0.5 0.5;
259                                         color_class: "AO007L1";
260                                         visible: 1;
261                                 }
262                                 description {
263                                         state: "text.show" 0.0;
264                                         inherit: "default";
265                                         visible: 0;
266                                 }
267                                 description {
268                                         state: "text.hide" 0.0;
269                                         inherit: "default";
270                                         visible: 1;
271                                 }
272                         }
273
274                         part
275                         {
276                                 name: "qp.handler.text";
277                                 type:TEXT;
278                                 scale:1;
279                                 description {
280                                         state: "default" 0.0;
281                                         fixed: 0 1;
282                                         min: 0 QP_HANDLE_H;
283                                         align: 0.5 0.5;
284                                         rel1 {
285                                                 relative: 0.0 0.0;
286                                                 to: "qp.handler.bg";
287                                         }
288                                         rel2 {
289                                                 relative: 1.0 1.0;
290                                                 to: "qp.handler.bg";
291                                         }
292
293                                         text {
294                                                 font : "Tizen:style=Regular";
295                                                 size : 25;
296                                                 text_class : "Tizen";
297                                         }
298                                         color_class: "AO007L1";
299                                         visible: 1;
300                                 }
301                                 description
302                                 {
303                                         state: "text.show" 0.0;
304                                         inherit: "default";
305                                         visible: 1;
306                                 }
307                                 description
308                                 {
309                                         state: "text.hide" 0.0;
310                                         inherit: "default";
311                                         visible: 0;
312                                 }
313                         }
314                 }
315
316                 programs
317                 {
318                         program
319                         {
320                                 name: "init.layout";
321                                 signal: "load";
322                                 source: "";
323                                 in: 0.0 0.0;
324                                 script{
325                                         init_variables();
326                                 }
327                         }
328                         program {
329                                 name: "text.show";
330                                 signal: "show";
331                                 source: "qp.handler.text";
332                                 action: STATE_SET "text.show" 0.0;
333                                 target: "qp.handler.button";
334                                 target: "qp.handler.text";
335                         }
336                         program {
337                                 name: "text.hide";
338                                 signal: "hide";
339                                 source: "qp.handler.text";
340                                 action: STATE_SET "text.hide" 0.0;
341                                 target: "qp.handler.button";
342                                 target: "qp.handler.text";
343                         }
344                         program {
345                                 name: "handler.press";
346                                 signal: "mouse,down,1";
347                                 source: "qp.handler.bg";
348                                 action: STATE_SET "pressed" 0.0;
349                                 target: "qp.handler.bg";
350                         }
351                         program {
352                                 name: "handler.release";
353                                 signal: "mouse,up,1";
354                                 source: "qp.handler.bg";
355                                 action: STATE_SET "default" 0.0;
356                                 target: "qp.handler.bg";
357                         }
358                 }
359         }
360
361         group {
362                 name: "quickpanel/base";
363                 parts {
364                         part {
365                                 name: "background";
366                                 type: SPACER;
367                                 scale: 1;
368                                 mouse_events: 1;
369                                 description {
370                                         state: "default" 0.0;
371                                 }
372                                 description {
373                                         state: "portrait" 0.0;
374                                         inherit: "default" 0.0;
375                                 }
376                                 description {
377                                         state: "landscape" 0.0;
378                                         inherit: "default" 0.0;
379                                 }
380                         }
381                         part{
382                                 name: "qp.base.rect.setting";
383                                 type:SPACER;
384                                 scale:1;
385                                 description {
386                                         state: "default" 0.0;
387                                         fixed: 0 1;
388                                         min: 0 QP_SETTING_H;
389                                         rel1 {
390                                                 relative: 0.0 0.0;
391                                                 to: "background";
392                                         }
393                                         rel2 {
394                                                 relative: 1.0 0.0;
395                                                 to: "background";
396                                         }
397                                         align: 0.0 0.0;
398                                 }
399                                 description {
400                                         state: "show" 0.0;
401                                         inherit: "default" 0.0;
402                                 }
403                                 description {
404                                         state: "hide" 0.0;
405                                         inherit: "default" 0.0;
406                                         min: 0 0;
407                                         max: 0 0;
408                                 }
409                         }
410                         part{
411                                 name: "qp.base.setting.swallow";
412                                 type:SWALLOW;
413                                 scale: 1;
414                                 description {
415                                         state: "default" 0.0;
416                                         fixed: 0 1;
417                                         rel1 {
418                                                 to: "qp.base.rect.setting";
419                                         }
420                                         rel2 {
421                                                 to: "qp.base.rect.setting";
422                                         }
423                                         align: 0.0 0.0;
424                                 }
425                         }
426                         part {
427                                 name: "background.touch";
428                                 type: SWALLOW;
429                                 scale: 1;
430                                 mouse_events:1;
431                                 description {
432                                         state: "default" 0.0;
433                                         fixed: 0 0;
434                                         min: 0 QP_SETTING_SEPERATOR_H;
435                                         rel1 {
436                                                 to_y:"qp.base.setting.swallow";
437                                                 relative: 0.0 1.0;
438                                         }
439                                         rel2 {
440                                                 to_y:"background";
441                                                 relative: 1.0 1.0;
442                                         }
443                                         align: 0.0 0.0;
444                                 }
445                                 description {
446                                         state: "enable_voice_icon" 0.0;
447                                         inherit: "default";
448                                         rel1 {
449                                                 to_y:"qp.base.setting.swallow";
450                                                 relative: 0.0 1.0;
451                                                 offset : 0 110;
452                                         }
453                                 }
454                         }
455                         part {
456                                 name: "qp.base.list.swallow";
457                                 type: SWALLOW;
458                                 scale: 1;
459                                 repeat_events: 1;
460                                 mouse_events:1;
461                                 description {
462                                         state: "default" 0.0;
463                                         fixed: 0 0;
464                                         rel1 {
465                                                 to_y:"qp.base.setting.swallow";
466                                                 relative: 0.0 1.0;
467                                         }
468                                         rel2 {
469                                                 to_y:"background";
470                                                 relative: 1.0 1.0;
471                                         }
472                                         align: 0.0 0.0;
473                                 }
474                         }
475                 }
476                 programs {
477                         program{
478                                 name: "portrait";
479                                 signal: "portrait";
480                                 source: "prog";
481                                 action: STATE_SET "portrait" 0.0;
482                                 target: "background";
483                         }
484                         program{
485                                 name: "landscape";
486                                 signal: "landscape";
487                                 source: "prog";
488                                 action: STATE_SET "landscape" 0.0;
489                                 target: "background";
490                         }
491                         program {
492                                 name: "setting.show";
493                                 action: STATE_SET "show" 0.0;
494                                 signal: "quickpanel.setting.show";
495                                 source: "quickpanel.prog";
496                                 target: "qp.base.rect.setting";
497                                 target: "qp.base.setting.swallow";
498                         }
499                         program {
500                                 name: "setting.hide";
501                                 action: STATE_SET "hide" 0.0;
502                                 signal: "quickpanel.setting.hide";
503                                 source: "quickpanel.prog";
504                                 target: "qp.base.rect.setting";
505                                 target: "qp.base.setting.swallow";
506                         }
507                         program {
508                                 name: "voice_icon.show";
509                                 action: STATE_SET "enable_voice_icon" 0.0;
510                                 signal: "voice_icon.show";
511                                 source: "quickpanel.prog";
512                                 target: "background.touch";
513                         }
514                         program {
515                                 name: "voice_icon.hide";
516                                 action: STATE_SET "default" 0.0;
517                                 signal: "voice_icon.hide";
518                                 source: "quickpanel.prog";
519                                 target: "background.touch";
520                         }
521                         program {
522                                 name: "background.touch";
523                                 action: SIGNAL_EMIT "close.quickpanel" "";
524                                 signal: "mouse,down,1";
525                                 source: "background";
526                         }
527                 }
528         }
529
530 #include "quickpanel_setting.edc"
531 #include "quickpanel_page_edit.edc"
532 #include "quickpanel_datetime.edc"
533 #include "quickpanel_brightness.edc"
534 #include "quickpanel_minictrl.edc"
535 #include "quickpanel_noti_section.edc"
536 #include "quickpanel_notibox.edc"
537 #include "quickpanel_listitem_noti.edc"
538 #include "quickpanel_listitem_noti_legacy.edc"
539 #include "quickpanel_listitem_ongoing.edc"
540 #include "quickpanel_animated_icon.edc"
541 #include "quickpanel_images.edc"
542 }