2 * Copyright (c) 2009-2015 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
19 #include "quickpanel_def.h"
20 #include "color_classes.edc"
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"
30 #define QUICKPANEL_FOCUS_OBJECT(NAME, TO_1, TO_2)\
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; }\
46 inherit: "default" 0.0;\
51 inherit: "default" 0.0;\
56 #define QUICKPANEL_FOCUS_OBJECT_WITH_OFFSET(NAME, TO_1, TO_2, OFFSET_X, OFFSET_Y)\
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; }\
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;
83 name: "quickpanel/root";
88 public init_variables() {
89 set_int(g_is_portrait, 1);
100 state: "default" 0.0;
111 state: "default" 0.0;
121 normal: "core_theme_bg_01.png";
127 name: "qp.base.rect.datetime";
131 state: "default" 0.0;
146 name: "qp.base.datetime.swallow";
150 state: "default" 0.0;
153 to: "qp.base.rect.datetime";
156 to: "qp.base.rect.datetime";
162 name: "qp.root.swallow";
166 state: "default" 0.0;
170 to_y: "qp.base.datetime.swallow";
175 to_y: "qp.handler.bg";
182 name: "qp.handler.bg";
186 state: "default" 0.0;
198 normal:"handler_bg.#.png";
201 color_class: "W0113";
204 state: "pressed" 0.0;
206 color_class: "W0113P";
212 name: "qp.handler.effect";
216 state: "default" 0.0;
227 normal:"handler_bg_ef.#.png";
230 color_class: "AO007L2";
236 name: "qp.handler.button";
240 state: "default" 0.0;
255 normal:"handler_btn_02.png";
259 color_class: "AO007L1";
263 state: "text.show" 0.0;
268 state: "text.hide" 0.0;
276 name: "qp.handler.text";
280 state: "default" 0.0;
294 font : "Tizen:style=Regular";
296 text_class : "Tizen";
298 color_class: "AO007L1";
303 state: "text.show" 0.0;
309 state: "text.hide" 0.0;
331 source: "qp.handler.text";
332 action: STATE_SET "text.show" 0.0;
333 target: "qp.handler.button";
334 target: "qp.handler.text";
339 source: "qp.handler.text";
340 action: STATE_SET "text.hide" 0.0;
341 target: "qp.handler.button";
342 target: "qp.handler.text";
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";
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";
362 name: "quickpanel/base";
370 state: "default" 0.0;
373 state: "portrait" 0.0;
374 inherit: "default" 0.0;
377 state: "landscape" 0.0;
378 inherit: "default" 0.0;
382 name: "qp.base.rect.setting";
386 state: "default" 0.0;
401 inherit: "default" 0.0;
405 inherit: "default" 0.0;
411 name: "qp.base.setting.swallow";
415 state: "default" 0.0;
418 to: "qp.base.rect.setting";
421 to: "qp.base.rect.setting";
427 name: "background.touch";
432 state: "default" 0.0;
434 min: 0 QP_SETTING_SEPERATOR_H;
436 to_y:"qp.base.setting.swallow";
446 state: "enable_voice_icon" 0.0;
449 to_y:"qp.base.setting.swallow";
456 name: "qp.base.list.swallow";
462 state: "default" 0.0;
465 to_y:"qp.base.setting.swallow";
481 action: STATE_SET "portrait" 0.0;
482 target: "background";
488 action: STATE_SET "landscape" 0.0;
489 target: "background";
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";
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";
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";
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";
522 name: "background.touch";
523 action: SIGNAL_EMIT "close.quickpanel" "";
524 signal: "mouse,down,1";
525 source: "background";
530 #include "quickpanel_setting.edc"
531 #include "quickpanel_datetime.edc"
532 #include "quickpanel_brightness.edc"
533 #include "quickpanel_minictrl.edc"
534 #include "quickpanel_noti_section.edc"
535 #include "quickpanel_listitem_noti.edc"
536 #include "quickpanel_listitem_ongoing.edc"
537 #include "quickpanel_animated_icon.edc"
538 #include "quickpanel_images.edc"