/*
- * Copyright 2012 Samsung Electronics Co., Ltd
+ * Copyright (c) 2009-2015 Samsung Electronics Co., Ltd All Rights Reserved
*
- * Licensed under the Flora License, Version 1.1 (the "License");
+ * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://floralicense.org/license/
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+ *
*/
+
#include "quickpanel_def.h"
collections {
- #include "quickpanel_theme_element.edc"
-
- styles {
- style {
- name: "button_text";
- base: "font=Tizen:style=Regular text_class=tizen align=center font_size=28 color=#FFFFFFFF ellipsis=0.0 wrap=mixed";
- }
- }
-
-#define NOTI_BUTTON_STATE_ENABLED 0
-#define NOTI_BUTTON_STATE_DISABLED 1
-
- group { name: "elm/button/base/quickpanel_standard";
- images {
- image: "quick_standard_btn_press.png" COMP;
- image: "quick_standard_btn_nor.png" COMP;
- }
+ base_scale: 1.8;
- script {
- public button_state = NOTI_BUTTON_STATE_ENABLED;
- }
- parts {
- part { name: "button_image";
- type: IMAGE;
- mouse_events: 1;
- scale: 1;
- description {
- state: "default" 0.0;
- min: 145 59;
- fixed: 1 1;
- rel1 {
- relative: 0.0 0.0;
- }
- rel2 {
- relative: 1.0 1.0;
- }
- image {
- normal: "quick_standard_btn_nor.png";
- border: 10 10 0 0;
- }
- }
- description { state: "clicked" 0.0;
- inherit: "default" 0.0;
- image {
- normal: "quick_standard_btn_press.png";
- border: 10 10 0 0;
- }
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- }
- description { state: "focused" 0.0;
- inherit: "default" 0.0;
- }
- }
- part { name: "elm.text.rect";
- type: RECT;
- mouse_events: 0;
- scale: 1;
- description { state: "default" 0.0;
- visible: 0;
- fixed: 1 1;
- align: 0.5 0.5;
- rel1 {
- relative: 0.05 0.05;
- to: "button_image";
- }
- rel2 {
- relative: 0.95 0.95;
- to: "button_image";
- }
- }
- }
- part { name: "elm.text";
- type: TEXTBLOCK;
- mouse_events: 0;
- scale: 1;
- multiline: 1;
- description { state: "default" 0.0;
- visible: 0;
- fixed: 1 1;
- color: 149 148 148 255;
- rel1 {
- to: "elm.text.rect";
- }
- rel2 {
- to: "elm.text.rect";
- }
- text {
- style: "button_text";
- size: 28;
- align: 0.5 0.5;
- fit: 1 1;
- size_range: 22 28;
- }
- }
- description { state: "visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- min: 1 1;
- }
- description { state: "clicked" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- min: 1 1;
- color: 255 255 255 255;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- color: 0 0 0 128;
- }
- description { state: "disabled_visible" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- min: 1 1;
- }
- description { state: "focused" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- min: 1 1;
- color: 255 255 255 255;
- }
- }
- part { name: "over1";
- mouse_events: 0;
- description { state: "default" 0.0;
- rel2.relative: 1.0 0.5;
- }
- }
- part { name: "over2";
- mouse_events: 1;
- repeat_events: 1;
- ignore_flags: ON_HOLD;
- description { state: "default" 0.0;
- rel1.to: "button_image";
- rel2.to: "button_image";
- }
- }
- part { name: "over3";
- mouse_events: 1;
- repeat_events: 1;
- description { state: "default" 0.0;
- rel1.to: "button_image";
- rel2.to: "button_image";
- color: 0 0 0 0;
- }
- }
- part { name: "disabler";
- type: RECT;
- description { state: "default" 0.0;
- rel1.to: "button_image";
- rel2.to: "button_image";
- color: 0 0 0 0;
- visible: 0;
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }
- }
- programs {
- program { name: "button_click";
- signal: "mouse,down,1";
- source: "over2";
- action: SIGNAL_EMIT "elm,action,press" "";
- after: "button_click_anim";
- }
- program { name: "button_click_anim";
- action: STATE_SET "clicked" 0.0;
- target: "button_image";
- target: "elm.text";
- }
- program { name: "button_unpress";
- action: SIGNAL_EMIT "elm,action,unpress" "";
- }
- program { name: "button_mouseout_clicked";
- signal: "mouse,up,1";
- source: "over3";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"elm.text", st, 30, vl);
- if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
- {
- emit("elm,action,default,text,set", "");
- set_state(PART:"elm.text", "visible", 0.0);
- }
- if(get_int(button_state) != NOTI_BUTTON_STATE_DISABLED)
- {
- set_state(PART:"button_image", "default", 0.0);
- }
- }
- after: button_unpress;
- }
- program { name: "button_unclick3";
- signal: "mouse,clicked,1";
- source: "over2";
- action: SIGNAL_EMIT "elm,action,click" "";
- }
- program { name: "text_show";
- signal: "elm,state,text,visible";
- source: "elm";
- script {
- if(get_int(button_state) != NOTI_BUTTON_STATE_DISABLED)
- set_state(PART:"elm.text", "visible", 0.0);
- else
- set_state(PART:"elm.text", "disabled_visible", 0.0);
- }
- }
- program { name: "text_hide";
- signal: "elm,state,text,hidden";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "elm.text";
- }
+#define PROCESS_MEDIUM_IMAGE_WIDTH_INC 36
+#define PROCESS_MEDIUM_IMAGE_HEIGHT_INC 36
+#define PROCESS_MEDIUM_IMAGE_COLOR "AO008"
- program { name: "disable";
- signal: "elm,state,disabled";
- source: "elm";
- action: STATE_SET "disabled" 0.0;
- target: "button_image";
- target: "disabler";
- after: "disable_text";
- }
- program { name: "disable_text";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"elm.text", st, 30, vl);
- if (!strcmp(st, "visible"))
- set_state(PART:"elm.text", "disabled_visible", 0.0);
- else
- set_state(PART:"elm.text", "disabled", 0.0);
- set_int(button_state, NOTI_BUTTON_STATE_DISABLED);
- }
- }
- program { name: "enable";
- signal: "elm,state,enabled";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "button_image";
- target: "disabler";
- after: "enable_text";
- }
- program { name: "enable_text";
- script {
- new st[31];
- new Float:vl;
- get_state(PART:"elm.text", st, 30, vl);
- if (!strcmp(st, "disabled_visible"))
- set_state(PART:"elm.text", "visible", 0.0);
- else
- set_state(PART:"elm.text", "default", 0.0);
- set_int(button_state, NOTI_BUTTON_STATE_ENABLED);
- }
- }
- program { name: "focused";
- //signal: "elm,action,focus";
- //source: "elm";
- action: STATE_SET "focused" 0.0;
- target: "button_image";
- target: "elm.text";
- }
- program { name: "unfocused";
- //signal: "elm,action,unfocus";
- //source: "elm";
- action: STATE_SET "default" 0.0;
- target: "button_image";
- action: STATE_SET "visible" 0.0;
- target: "elm.text";
- }
- program { name: "reset_button_state";
- signal: "elm,action,button,reset";
- source: "elm";
- action: STATE_SET "default" 0.0;
- target: "button_image";
- }
- }
+#include "quickpanel_theme_progressbar.edc"
+#include "quickpanel_theme_slider.edc"
}