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