summaryrefslogtreecommitdiff
path: root/mobile/widgets/panes.edc
diff options
context:
space:
mode:
Diffstat (limited to 'mobile/widgets/panes.edc')
-rw-r--r--mobile/widgets/panes.edc855
1 files changed, 855 insertions, 0 deletions
diff --git a/mobile/widgets/panes.edc b/mobile/widgets/panes.edc
new file mode 100644
index 00000000..4301e1a2
--- /dev/null
+++ b/mobile/widgets/panes.edc
@@ -0,0 +1,855 @@
+/*
+ * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * PROPRIETARY/CONFIDENTIAL
+ *
+ * This software is the confidential and proprietary information of SAMSUNG
+ * ELECTRONICS ("Confidential Information"). You agree and acknowledge that this
+ * software is owned by Samsung and you shall not disclose such Confidential
+ * Information and shall use it only in accordance with the terms of the license
+ * agreement you entered into with SAMSUNG ELECTRONICS. SAMSUNG make no
+ * representations or warranties about the suitability of the software, either
+ * express or implied, including but not limited to the implied warranties of
+ * merchantability, fitness for a particular purpose, or non-infringement.
+ * SAMSUNG shall not be liable for any damages suffered by licensee arising out
+ * of or releated to this software.
+ *
+ */
+
+ group {
+ name: "elm/panes/vertical/default";
+ images {
+ image: "00_splite_handler_bg_v.png" COMP;
+ image: "00_splite_handler_bg_press.png" COMP;
+ image: "00_splite_handler_v.png" COMP;
+ }
+ script {
+ public state_pair = 1; //0:both contents are not set, 1:both contents are set
+ }
+ parts
+ {
+ part
+ {
+ name: "whole";
+ type: RECT;
+ description
+ {
+ state: "default" 0.0;
+ visible: 0;
+ rel1.to_x: "pad_left";
+ rel2.to_x: "pad_right";
+ }
+ }
+ part {
+ name: "pad_left";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel2.relative:0.0 1.0;
+ min: PANES_STYLE_DEFAULT_PADDING_LEFT_SIZE_INC 0;
+ fixed: 1 0;
+ align: 1.0 0.5;
+ visible: 0;
+ }
+ description {
+ state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ min: 0 0;
+ }
+ }
+ part {
+ name: "pad_right";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1.relative: 1.0 0.0;
+ min: PANES_STYLE_DEFAULT_PADDING_RIGHT_SIZE_INC 0;
+ fixed: 1 0;
+ align: 0.0 0.5;
+ visible: 0;
+ }
+ description {
+ state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ min: 0 0;
+ }
+ }
+ //2 constraint
+ part {
+ name: "right_constraint";
+ type: SPACER;
+ dragable {
+ confine: "whole";
+ x: 1 1 1;
+ y: 0 0 0;
+ }
+ description {
+ state: "default" 0.0;
+ max: 0 0;
+ }
+ }
+ part {
+ name: "left_constraint";
+ type: SPACER;
+ dragable {
+ confine: "whole";
+ x: 1 1 1;
+ y: 0 0 0;
+ }
+ description {
+ state: "default" 0.0;
+ max: 0 0;
+ }
+ }
+ part {
+ name: "sub_whole";
+ type: SPACER;
+ description {
+ state: "default" 0.0;
+ rel1.relative: 1.0 0.0;
+ rel1.to_x: "left_constraint";
+ rel2.relative: 0.0 1.0;
+ rel2.to_x: "right_constraint";
+ }
+ }
+ //2 contents
+ part
+ {
+ name: "whole_left";
+ type: RECT;
+ mouse_events: 0;
+ description
+ {
+ state: "default" 0.0;
+ rel1 {
+ to_x: "pad_left";
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ to_x: "bar_bg";
+ relative: 0.0 1.0;
+ }
+ }
+ }
+ part
+ {
+ name: "elm.swallow.left";
+ type: SWALLOW;
+ clip_to: "whole_left";
+ description
+ {
+ state: "default" 0.0;
+ rel1.to: "whole_left";
+ rel2.to: "whole_left";
+ }
+ }
+ part
+ {
+ name: "whole_right";
+ type: RECT;
+ mouse_events: 0;
+ description
+ {
+ state: "default" 0.0;
+ rel1 {
+ to_x: "bar_bg";
+ relative: 1.0 0.0;
+ }
+ rel2 {
+ to_x: "pad_right";
+ relative: 0.0 1.0;
+ }
+ }
+ }
+ part
+ {
+ name: "elm.swallow.right";
+ type: SWALLOW;
+ clip_to: "whole_right";
+ description
+ {
+ state: "default" 0.0;
+ rel1.to: "whole_right";
+ rel2.to: "whole_right";
+ }
+ }
+ //BAR
+ part { name: "elm.bar";
+ type: SPACER;
+ dragable {
+ confine: "sub_whole";
+ x: 1 1 1;
+ y: 0 0 0;
+ }
+ scale: 1;
+ description { state: "default" 0.0;
+ min: PANES_STYLE_DEFAULT_MOVABLE_SIZE_INC 0;
+ fixed: 1 0;
+ rel1.relative: 0.5 0.0;
+ rel2.relative: 0.5 1.0;
+ }
+ description { state: "default" 0.1;
+ inherit: "default" 0.0;
+ min: 0 0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ min: PANES_STYLE_DEFAULT_FIXED_SIZE_INC 0;
+ }
+ description { state: "disabled" 0.1;
+ inherit: "default" 0.1;
+ }
+ }
+ part { name: "pad_bar_left";
+ type: RECT;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ min: PANES_STYLE_DEFAULT_PADDING_LEFT_SIZE_INC 0;
+ align: 0.0 0.5;
+ rel1.to_x: "elm.bar";
+ rel2 {
+ relative: 0.0 1.0;
+ to_x: "elm.bar";
+ }
+ fixed: 1 0;
+ visible: 0;
+ }
+ description {
+ state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ min: 0 0;
+ }
+ }
+ part { name: "pad_bar_right";
+ type: RECT;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ min: PANES_STYLE_DEFAULT_PADDING_RIGHT_SIZE_INC 0;
+ align: 1.0 0.5;
+ rel1 {
+ relative: 1.0 0.0;
+ to_x: "elm.bar";
+ }
+ rel2.to_x: "elm.bar";
+ fixed: 1 0;
+ visible: 0;
+ }
+ description {
+ state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ min: 0 0;
+ }
+ }
+ part { name: "bar_bg";
+ type: IMAGE;
+ dragable.events: "elm.bar";
+ description { state: "default" 0.0;
+ rel1 {
+ relative: 1.0 0.0;
+ to_x: "pad_bar_left";
+ }
+ rel2 {
+ relative: 0.0 1.0;
+ to_x: "pad_bar_right";
+ }
+ fixed: 1 0;
+ image.normal: "00_splite_handler_bg_v.png";
+ }
+ description { state: "clicked" 0.0;
+ inherit: "default" 0.0;
+ image.normal: "00_splite_handler_bg_press.png";
+ }
+ }
+ part { name:"bar_handler";
+ mouse_events: 0;
+ description { state:"default" 0.0;
+ rel1 {
+ to_x: "bar_bg";
+ relative: 0.0 0.5;
+ }
+ rel2 {
+ to_x: "bar_bg";
+ relative: 1.0 0.5;
+ }
+ fixed: 0 1;
+ min: 0 PANES_STYLE_DEFAULT_MIDDLE_SIZE_INC;
+ image.normal: "00_splite_handler_v.png";
+ }
+ description { state:"clicked" 0.0;
+ inherit: "default" 0.0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ }
+ }
+ part { name: "over2";
+ type: RECT;
+ mouse_events: 1;
+ repeat_events: 1;
+ ignore_flags: ON_HOLD;
+ description { state: "default" 0.0;
+ rel1.to_x: "bar_bg";
+ rel2.to_x: "bar_bg";
+ color: 0 0 0 0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "over3";
+ type: RECT;
+ mouse_events: 1;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ rel1.to_x: "bar_bg";
+ rel2.to_x: "bar_bg";
+ color: 0 0 0 0;
+ }
+ description { state: "clicked" 0.0;
+ inherit: "default" 0.0;
+ }
+ }
+ part { name:"bar_disabled";
+ type: RECT;
+ description { state:"default" 0.0;
+ rel1.to_x: "bar_bg";
+ rel2.to_x: "bar_bg";
+ color: 0 0 0 0;
+ visible: 0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ }
+ programs {
+ program {
+ name: "panes_pair";
+ signal: "elm,panes,pair";
+ source: "";
+ script {
+ new st[31];
+ new Float:vl;
+ set_int(state_pair, 1);
+ get_state(PART:"elm.bar", st, 30, vl);
+ set_state(PART:"elm.bar", st, 0.0);
+ set_state(PART:"pad_left", "default", 0.0);
+ set_state(PART:"pad_right", "default", 0.0);
+ set_state(PART:"pad_bar_left", "default", 0.0);
+ set_state(PART:"pad_bar_right", "default", 0.0);
+ }
+ }
+ program {
+ name: "panes_unpair";
+ signal: "elm,panes,unpair";
+ source: "";
+ script {
+ new st[31];
+ new Float:vl;
+ set_int(state_pair, 0);
+ get_state(PART:"elm.bar", st, 30, vl);
+ set_state(PART:"elm.bar", st, 0.1);
+ set_state(PART:"pad_left", "hidden", 0.0);
+ set_state(PART:"pad_right", "hidden", 0.0);
+ set_state(PART:"pad_bar_left", "hidden", 0.0);
+ set_state(PART:"pad_bar_right", "hidden", 0.0);
+ }
+ }
+ 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";
+ script {
+ set_state(PART:"bar_bg", "clicked", 0.0);
+ }
+ }
+ program {
+ name: "button_unclick";
+ signal: "mouse,up,1";
+ source: "over2";
+ action: SIGNAL_EMIT "elm,action,unpress" "";
+ after: "button_unclick_anim";
+ }
+ program {
+ name: "button_unclick_anim";
+ script {
+ set_state(PART:"bar_bg", "default", 0.0);
+ }
+ }
+ program {
+ name: "button_click2";
+ signal: "mouse,down,1";
+ source: "over3";
+ action: STATE_SET "clicked" 0.0;
+ target: "over3";
+ }
+ program {
+ name: "button_unclick2";
+ signal: "mouse,up,1";
+ source: "over3";
+ action: STATE_SET "default" 0.0;
+ transition: DECELERATE 0.5;
+ target: "over3";
+ }
+ program {
+ name: "button_unclick3";
+ signal: "mouse,up,1";
+ source: "over2";
+ action: SIGNAL_EMIT "elm,action,click" "";
+ }
+ program {
+ name: "button_down_double";
+ signal: "mouse,down,1,double";
+ source: "over3";
+ action: SIGNAL_EMIT "elm,action,click,double" "";
+ }
+ //fix the pane
+ program {
+ name: "panes_fixed";
+ signal: "elm.panes.fixed";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "elm.bar";
+ target: "bar_disabled";
+ }
+ //allow the movement by interaction
+ program {
+ name: "panes_unfixed";
+ signal: "elm.panes.unfixed";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.bar";
+ target: "bar_disabled";
+ }
+ }
+ }
+
+ group {
+ name: "elm/panes/horizontal/default";
+ images {
+ image: "00_splite_handler_bg_h.png" COMP;
+ image: "00_splite_handler_bg_press.png" COMP;
+ image: "00_splite_handler_h.png" COMP;
+ }
+ script {
+ public state_pair = 1; //0:both contents are not set, 1:both contents are set
+ }
+ parts
+ {
+ part
+ {
+ name: "whole";
+ type: RECT;
+ description
+ {
+ state: "default" 0.0;
+ visible: 0;
+ rel1.to_y: "pad_left";
+ rel2.to_y: "pad_right";
+ }
+ }
+ part {
+ name: "pad_left";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel2.relative:1.0 0.0;
+ min: 0 PANES_STYLE_DEFAULT_PADDING_LEFT_SIZE_INC;
+ fixed: 0 1;
+ align: 0.5 1.0;
+ visible: 0;
+ }
+ description {
+ state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ min: 0 0;
+ }
+ }
+ part {
+ name: "pad_right";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ rel1.relative: 0.0 1.0;
+ min: 0 PANES_STYLE_DEFAULT_PADDING_RIGHT_SIZE_INC;
+ fixed: 0 1;
+ align: 0.5 0.0;
+ visible: 0;
+ }
+ description {
+ state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ min: 0 0;
+ }
+ }
+ //2 constraint
+ part {
+ name: "right_constraint";
+ type: SPACER;
+ dragable {
+ confine: "whole";
+ x: 0 0 0;
+ y: 1 1 1;
+ }
+ description {
+ state: "default" 0.0;
+ max: 0 0;
+ }
+ }
+ part {
+ name: "left_constraint";
+ type: SPACER;
+ dragable {
+ confine: "whole";
+ x: 0 0 0;
+ y: 1 1 1;
+ }
+ description {
+ state: "default" 0.0;
+ max: 0 0;
+ }
+ }
+ part {
+ name: "sub_whole";
+ type: SPACER;
+ description {
+ state: "default" 0.0;
+ rel1.relative: 0.0 1.0;
+ rel1.to_y: "left_constraint";
+ rel2.relative: 1.0 0.0;
+ rel2.to_y: "right_constraint";
+ }
+ }
+ //2 contents
+ part
+ {
+ name: "whole_left";
+ type: RECT;
+ mouse_events: 0;
+ description
+ {
+ state: "default" 0.0;
+ rel1 {
+ to_y: "pad_left";
+ relative: 0.0 1.0;
+ }
+ rel2 {
+ to_y: "bar_bg";
+ relative: 1.0 0.0;
+ }
+ }
+ }
+ part
+ {
+ name: "elm.swallow.left";
+ type: SWALLOW;
+ clip_to: "whole_left";
+ description
+ {
+ state: "default" 0.0;
+ rel1.to: "whole_left";
+ rel2.to: "whole_left";
+ }
+ }
+ part
+ {
+ name: "whole_right";
+ type: RECT;
+ mouse_events: 0;
+ description
+ {
+ state: "default" 0.0;
+ rel1 {
+ to_y: "bar_bg";
+ relative: 0.0 1.0;
+ }
+ rel2 {
+ to_y: "pad_right";
+ relative: 1.0 0.0;
+ }
+ }
+ }
+ part
+ {
+ name: "elm.swallow.right";
+ type: SWALLOW;
+ clip_to: "whole_right";
+ description
+ {
+ state: "default" 0.0;
+ rel1.to: "whole_right";
+ rel2.to: "whole_right";
+ }
+ }
+ //BAR
+ part { name: "elm.bar";
+ type: SPACER;
+ dragable {
+ confine: "sub_whole";
+ x: 0 0 0;
+ y: 1 1 1;
+ }
+ scale: 1;
+ description { state: "default" 0.0;
+ min: 0 PANES_STYLE_DEFAULT_MOVABLE_SIZE_INC;
+ fixed: 0 1;
+ rel1.relative: 0.0 0.5;
+ rel2.relative: 1.0 0.5;
+ }
+ description { state: "default" 0.1;
+ inherit: "default" 0.0;
+ min: 0 0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ min: 0 PANES_STYLE_DEFAULT_FIXED_SIZE_INC;
+ }
+ description { state: "disabled" 0.1;
+ inherit: "default" 0.1;
+ }
+ }
+ part { name: "pad_bar_left";
+ type: RECT;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ min: 0 PANES_STYLE_DEFAULT_PADDING_LEFT_SIZE_INC;
+ align: 0.5 0.0;
+ rel1.to_y: "elm.bar";
+ rel2 {
+ relative: 1.0 0.0;
+ to_y: "elm.bar";
+ }
+ fixed: 0 1;
+ visible: 0;
+ }
+ description {
+ state: "hidden" 0.0;
+ inherit: "default" 0.0;
+ min: 0 0;
+ }
+ }
+ part { name: "pad_bar_right";
+ type: RECT;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ min: 0 PANES_STYLE_DEFAULT_PADDING_RIGHT_SIZE_INC;
+ align: 0.5 1.0;
+ rel1 {
+ relative: 0.0 1.0;
+ to_y: "elm.bar";
+ }
+ rel2.to_y: "elm.bar";
+ fixed: 0 1;
+ visible: 0;
+ }
+ description {
+ state: "visible" 0.0;
+ inherit: "default" 0.0;
+ min: 0 0;
+ }
+ }
+ part { name: "bar_bg";
+ type: IMAGE;
+ dragable.events: "elm.bar";
+ description { state: "default" 0.0;
+ rel1 {
+ relative: 0.0 1.0;
+ to_y: "pad_bar_left";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to_y: "pad_bar_right";
+ }
+ fixed: 0 1;
+ image.normal: "00_splite_handler_bg_h.png";
+ }
+ description { state: "clicked" 0.0;
+ inherit: "default" 0.0;
+ image.normal: "00_splite_handler_bg_press.png";
+ }
+ }
+ part { name:"bar_handler";
+ mouse_events: 0;
+ description { state:"default" 0.0;
+ rel1 {
+ to_y: "bar_bg";
+ relative: 0.5 0.0;
+ }
+ rel2 {
+ to_y: "bar_bg";
+ relative: 0.5 1.0;
+ }
+ fixed: 1 0;
+ min: PANES_STYLE_DEFAULT_MIDDLE_SIZE_INC 0;
+ image.normal: "00_splite_handler_h.png";
+ }
+ description { state:"clicked" 0.0;
+ inherit: "default" 0.0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ }
+ }
+ part { name: "over2";
+ type: RECT;
+ mouse_events: 1;
+ repeat_events: 1;
+ ignore_flags: ON_HOLD;
+ description { state: "default" 0.0;
+ rel1.to_y: "bar_bg";
+ rel2.to_y: "bar_bg";
+ color: 0 0 0 0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part { name: "over3";
+ type: RECT;
+ mouse_events: 1;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ rel1.to_y: "bar_bg";
+ rel2.to_y: "bar_bg";
+ color: 0 0 0 0;
+ }
+ description { state: "clicked" 0.0;
+ inherit: "default" 0.0;
+ }
+ }
+ part { name:"bar_disabled";
+ type: RECT;
+ description { state:"default" 0.0;
+ rel1.to_y: "bar_bg";
+ rel2.to_y: "bar_bg";
+ color: 0 0 0 0;
+ visible: 0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ }
+ programs {
+ program {
+ name: "panes_pair";
+ signal: "elm,panes,pair";
+ source: "";
+ script {
+ new st[31];
+ new Float:vl;
+ set_int(state_pair, 1);
+ get_state(PART:"elm.bar", st, 30, vl);
+ set_state(PART:"elm.bar", st, 0.0);
+ set_state(PART:"pad_left", "default", 0.0);
+ set_state(PART:"pad_right", "default", 0.0);
+ set_state(PART:"pad_bar_left", "default", 0.0);
+ set_state(PART:"pad_bar_right", "default", 0.0);
+ }
+ }
+ program {
+ name: "panes_unpair";
+ signal: "elm,panes,unpair";
+ source: "";
+ script {
+ new st[31];
+ new Float:vl;
+ set_int(state_pair, 0);
+ get_state(PART:"elm.bar", st, 30, vl);
+ set_state(PART:"elm.bar", st, 0.1);
+ set_state(PART:"pad_left", "hidden", 0.0);
+ set_state(PART:"pad_right", "hidden", 0.0);
+ set_state(PART:"pad_bar_left", "hidden", 0.0);
+ set_state(PART:"pad_bar_right", "hidden", 0.0);
+ }
+ }
+ 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";
+ script {
+ set_state(PART:"bar_bg", "clicked", 0.0);
+ }
+ }
+ program {
+ name: "button_unclick";
+ signal: "mouse,up,1";
+ source: "over2";
+ action: SIGNAL_EMIT "elm,action,unpress" "";
+ after: "button_unclick_anim";
+ }
+ program {
+ name: "button_unclick_anim";
+ script {
+ set_state(PART:"bar_bg", "default", 0.0);
+ }
+ }
+ program {
+ name: "button_click2";
+ signal: "mouse,down,1";
+ source: "over3";
+ action: STATE_SET "clicked" 0.0;
+ target: "over3";
+ }
+ program {
+ name: "button_unclick2";
+ signal: "mouse,up,1";
+ source: "over3";
+ action: STATE_SET "default" 0.0;
+ transition: DECELERATE 0.5;
+ target: "over3";
+ }
+ program {
+ name: "button_unclick3";
+ signal: "mouse,up,1";
+ source: "over2";
+ action: SIGNAL_EMIT "elm,action,click" "";
+ }
+ program {
+ name: "button_down_double";
+ signal: "mouse,down,1,double";
+ source: "over3";
+ action: SIGNAL_EMIT "elm,action,click,double" "";
+ }
+ //fix the pane
+ program {
+ name: "panes_fixed";
+ signal: "elm.panes.fixed";
+ source: "elm";
+ action: STATE_SET "disabled" 0.0;
+ target: "elm.bar";
+ target: "bar_disabled";
+ }
+ //allow the movement by interaction
+ program {
+ name: "panes_unfixed";
+ signal: "elm.panes.unfixed";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "elm.bar";
+ target: "bar_disabled";
+ }
+ }
+ }