image: "bt_basew.png" COMP;
image: "bt_bases.png" COMP;
image: "bt_hilightw.png" COMP;
- image: "tog_base.png" COMP;
- image: "tog_dis_base.png" COMP;
+ image: "tog_base_on.png" COMP;
+ image: "tog_base_off.png" COMP;
+ image: "tog_dis_base_on.png" COMP;
+ image: "tog_dis_base_off.png" COMP;
+ }
+ script {
+ public is_rtl;
}
parts {
part { name: "bg";
}
}
part { name: "onrect";
- type: RECT;
+ type: IMAGE;
scale: 1;
clip_to: "clipper";
mouse_events: 0;
rel1.to: "button";
rel1.relative: -5.0 0.0;
rel2.to: "button";
- rel2.relative: 0.0 1.0;
- color: 0 0 0 0;
+ rel2.relative: 0.5 1.0;
+ image.normal: "tog_base_on.png";
}
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ image.normal: "tog_dis_base_on.png";
+ }
}
part { name: "offrect";
- type: RECT;
+ type: IMAGE;
scale: 1;
clip_to: "clipper";
mouse_events: 0;
description { state: "default" 0.0;
rel1.to: "button";
- rel1.relative: 1.0 0.0;
+ rel1.relative: 0.5 0.0;
rel2.to: "button";
rel2.relative: 6.0 1.0;
- color: 0 0 0 0;
- }
- }
- part { name: "togbase";
- mouse_events: 0;
- clip_to: "clipper";
- description { state: "default" 0.0;
- rel1.to: "onrect";
- rel2.to: "offrect";
- image.normal: "tog_base.png";
- }
- description { state: "disabled" 0.0;
- inherit: "default" 0.0;
- image.normal: "tog_dis_base.png";
+ image.normal: "tog_base_off.png";
}
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ image.normal: "tog_dis_base_off.png";
+ }
}
part { name: "elm.offtext";
type: TEXT;
clip_to: "clipper";
description { state: "default" 0.0;
fixed: 1 1;
- rel1.to_x: "offrect";
+ rel1.to_x: "button";
+ rel1.relative: 1.0 0.0;
rel2.to_x: "offrect";
color: 0 0 0 255;
text {
fixed: 1 1;
rel1.to_x: "onrect";
rel1.offset: 1 1;
- rel2.to_x: "onrect";
+ rel2.to_x: "button";
rel2.offset: 0 0;
+ rel2.relative: 0.0 1.0;
color: 224 224 224 255;
color3: 0 0 0 64;
text {
if (dx > 0.5)
{
set_drag(PART:"button", 1.0, 0.0);
- emit("elm,action,toggle,on", "");
}
else
{
set_drag(PART:"button", 0.0, 0.0);
- emit("elm,action,toggle,off", "");
}
+ if (((get_int(is_rtl) == 1) && (dx <= 0.5)) ||
+ (get_int(is_rtl) == 0) && (dx > 0.5)) {
+ emit("elm,action,toggle,on", "");
+ }
+ else {
+ emit("elm,action,toggle,off", "");
+ }
+
}
}
program { name: "toggle_on";
signal: "elm,state,toggle,on";
source: "elm";
script {
- set_drag(PART:"button", 100.0, 0.0);
+ new Float:drag;
+ if (get_int(is_rtl) == 0) {
+ drag = 100.0;
+ }
+ else {
+ drag = 0.0;
+ }
+ set_drag(PART:"button", drag, 0.0);
}
}
program { name: "toggle_off";
signal: "elm,state,toggle,off";
source: "elm";
script {
- set_drag(PART:"button", 0.0, 0.0);
+ new Float:drag;
+ if (get_int(is_rtl) == 0) {
+ drag = 0.0;
+ }
+ else {
+ drag = 100.0;
+ }
+ set_drag(PART:"button", drag, 0.0);
}
}
program { name: "text_show";
signal: "elm,state,disabled";
source: "elm";
action: STATE_SET "disabled" 0.0;
- target: "togbase";
target: "elm.offtext";
target: "elm.ontext";
+ target: "onrect";
+ target: "offrect";
target: "disabler";
after: "disable_text";
}
source: "elm";
action: STATE_SET "default" 0.0;
target: "disabler";
+ target: "onrect";
+ target: "offrect";
after: "enable_text";
}
program { name: "enable_text";
set_state(PART:"elm.swallow.content", "default", 0.0);
}
}
+ program { name: "to_rtl";
+ signal: "edje,state,rtl";
+ source: "edje";
+ script {
+ set_int(is_rtl, 1);
+ }
+ }
+ program { name: "to_ltr";
+ signal: "edje,state,ltr";
+ source: "edje";
+ script {
+ set_int(is_rtl, 0);
+ }
+ }
}
}
image: "bt_dis_base.png" COMP;
image: "bt_dis_hilight.png" COMP;
image: "arrow_right.png" COMP;
+ image: "arrow_left.png" COMP;
}
script {
public menu_text_visible; //0:hide (default), 1:visible
normal: "arrow_right.png";
}
}
+ description { state: "rtl" 0.0;
+ inherit: "default" 0.0;
+ image.normal: "arrow_left.png";
+ }
}
part { name: "elm.swallow.content";
type: SWALLOW;
set_int(menu_disable, 0);
}
}
+ program { name: "to_rtl";
+ signal: "edje,state,rtl";
+ source: "edje";
+ action: STATE_SET "rtl" 0.0;
+ target: "arrow";
+ }
+ program { name: "to_ltr";
+ signal: "edje,state,ltr";
+ source: "edje";
+ action: STATE_SET "default" 0.0;
+ target: "arrow";
+ }
}
}
alias: "elm/bubble/base/default";
images {
image: "bubble_3.png" COMP;
+ image: "bubble_4.png" COMP;
image: "bubble_shine3.png" COMP;
+ image: "bubble_shine4.png" COMP;
}
parts {
part { name: "event";
}
fill.smooth: 0;
}
+ description { state: "rtl" 0.0;
+ inherit: "default" 0.0;
+ image {
+ normal: "bubble_shine4.png";
+ border: 5 36 14 0;
+ }
+ }
}
}
programs {
}
fill.smooth: 0;
}
+ description { state: "rtl" 0.0;
+ inherit: "default" 0.0;
+ image {
+ normal: "bubble_shine3.png";
+ border: 36 5 14 0;
+ }
+ }
}
}
programs {
image: "bt_sm_hilight.png" COMP;
image: "ilist_1.png" COMP;
image: "ilist_item_shadow.png" COMP;
+ image: "icon_arrow_left.png" COMP;
image: "icon_arrow_right.png" COMP;
image: "icon_arrow_down.png" COMP;
}
}
image.normal: "icon_arrow_right.png";
}
+ description { state: "default" 0.1;
+ inherit: "default" 0.0;
+ image.normal: "icon_arrow_left.png";
+ }
description { state: "active" 0.0;
inherit: "default" 0.0;
image.normal: "icon_arrow_down.png";
}
+ description { state: "active" 0.1;
+ inherit: "default" 0.0;
+ image.normal: "icon_arrow_down.png";
+ }
}
part { name: "elm.swallow.icon";
clip_to: "disclip";
name: "go_expanded";
signal: "elm,state,expanded";
source: "elm";
- action: STATE_SET "active" 0.0;
- target: "arrow";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"arrow", st, 30, vl);
+ set_state(PART:"arrow", "active", vl);
+ }
}
program {
name: "go_contracted";
signal: "elm,state,contracted";
source: "elm";
- action: STATE_SET "default" 0.0;
- target: "arrow";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"arrow", st, 30, vl);
+ set_state(PART:"arrow", "default", vl);
+ }
+ }
+ program { name: "to_rtl";
+ signal: "edje,state,rtl";
+ source: "edje";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"arrow", st, 30, vl);
+ if (vl == 0.0) {
+ set_state(PART:"arrow", st, 0.1);
+ }
+ }
+ }
+ program { name: "to_ltr";
+ signal: "edje,state,ltr";
+ source: "edje";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"arrow", st, 30, vl);
+ if (vl == 0.1) {
+ set_state(PART:"arrow", st, 0.0);
+ }
+ }
}
}
}
image: "bt_sm_hilight.png" COMP;
image: "ilist_1.png" COMP;
image: "ilist_item_shadow.png" COMP;
+ image: "icon_arrow_left.png" COMP;
image: "icon_arrow_right.png" COMP;
image: "icon_arrow_down.png" COMP;
}
}
image.normal: "icon_arrow_right.png";
}
+ description { state: "default" 0.1;
+ inherit: "default" 0.0;
+ image.normal: "icon_arrow_left.png";
+ }
description { state: "active" 0.0;
inherit: "default" 0.0;
image.normal: "icon_arrow_down.png";
}
+ description { state: "active" 0.1;
+ inherit: "default" 0.0;
+ image.normal: "icon_arrow_down.png";
+ }
}
part { name: "elm.swallow.icon";
clip_to: "disclip";
name: "go_expanded";
signal: "elm,state,expanded";
source: "elm";
- action: STATE_SET "active" 0.0;
- target: "arrow";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"arrow", st, 30, vl);
+ set_state(PART:"arrow", "active", vl);
+ }
}
program {
name: "go_contracted";
signal: "elm,state,contracted";
source: "elm";
- action: STATE_SET "default" 0.0;
- target: "arrow";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"arrow", st, 30, vl);
+ set_state(PART:"arrow", "default", vl);
+ }
+ }
+ program { name: "to_rtl";
+ signal: "edje,state,rtl";
+ source: "edje";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"arrow", st, 30, vl);
+ if (vl == 0.0) {
+ set_state(PART:"arrow", st, 0.1);
+ }
+ }
+ }
+ program { name: "to_ltr";
+ signal: "edje,state,ltr";
+ source: "edje";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"arrow", st, 30, vl);
+ if (vl == 0.1) {
+ set_state(PART:"arrow", st, 0.0);
+ }
+ }
}
}
}
image: "bt_sm_shine.png" COMP;
image: "bt_sm_hilight.png" COMP;
image: "ilist_2.png" COMP;
+ image: "icon_arrow_left.png" COMP;
image: "icon_arrow_right.png" COMP;
image: "icon_arrow_down.png" COMP;
}
}
image.normal: "icon_arrow_right.png";
}
+ description { state: "default" 0.1;
+ inherit: "default" 0.0;
+ image.normal: "icon_arrow_left.png";
+ }
description { state: "active" 0.0;
inherit: "default" 0.0;
image.normal: "icon_arrow_down.png";
}
+ description { state: "active" 0.1;
+ inherit: "default" 0.0;
+ image.normal: "icon_arrow_down.png";
+ }
}
part { name: "elm.swallow.icon";
clip_to: "disclip";
name: "go_expanded";
signal: "elm,state,expanded";
source: "elm";
- action: STATE_SET "active" 0.0;
- target: "arrow";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"arrow", st, 30, vl);
+ set_state(PART:"arrow", "active", vl);
+ }
}
program {
name: "go_contracted";
signal: "elm,state,contracted";
source: "elm";
- action: STATE_SET "default" 0.0;
- target: "arrow";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"arrow", st, 30, vl);
+ set_state(PART:"arrow", "default", vl);
+ }
+ }
+ program { name: "to_rtl";
+ signal: "edje,state,rtl";
+ source: "edje";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"arrow", st, 30, vl);
+ if (vl == 0.0) {
+ set_state(PART:"arrow", st, 0.1);
+ }
+ }
+ }
+ program { name: "to_ltr";
+ signal: "edje,state,ltr";
+ source: "edje";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"arrow", st, 30, vl);
+ if (vl == 0.1) {
+ set_state(PART:"arrow", st, 0.0);
+ }
+ }
}
}
}
image: "bt_sm_shine.png" COMP;
image: "bt_sm_hilight.png" COMP;
image: "ilist_2.png" COMP;
+ image: "icon_arrow_left.png" COMP;
image: "icon_arrow_right.png" COMP;
image: "icon_arrow_down.png" COMP;
}
}
image.normal: "icon_arrow_right.png";
}
+ description { state: "default" 0.1;
+ inherit: "default" 0.0;
+ image.normal: "icon_arrow_left.png";
+ }
description { state: "active" 0.0;
inherit: "default" 0.0;
image.normal: "icon_arrow_down.png";
}
+ description { state: "active" 0.1;
+ inherit: "default" 0.0;
+ image.normal: "icon_arrow_down.png";
+ }
}
part { name: "elm.swallow.icon";
clip_to: "disclip";
name: "go_expanded";
signal: "elm,state,expanded";
source: "elm";
- action: STATE_SET "active" 0.0;
- target: "arrow";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"arrow", st, 30, vl);
+ set_state(PART:"arrow", "active", vl);
+ }
}
program {
name: "go_contracted";
signal: "elm,state,contracted";
source: "elm";
- action: STATE_SET "default" 0.0;
- target: "arrow";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"arrow", st, 30, vl);
+ set_state(PART:"arrow", "default", vl);
+ }
+ }
+ program { name: "to_rtl";
+ signal: "edje,state,rtl";
+ source: "edje";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"arrow", st, 30, vl);
+ if (vl == 0.0) {
+ set_state(PART:"arrow", st, 0.1);
+ }
+ }
+ }
+ program { name: "to_ltr";
+ signal: "edje,state,ltr";
+ source: "edje";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"arrow", st, 30, vl);
+ if (vl == 0.1) {
+ set_state(PART:"arrow", st, 0.0);
+ }
+ }
}
}
}
aspect_preference: BOTH;
image.normal: "sp_bt_l.png";
}
+ description { state: "rtl" 0.0;
+ inherit: "default" 0.0;
+ image.normal: "sp_bt_r.png";
+ }
}
part { name: "right_bt_icon";
repeat_events: 1;
aspect_preference: BOTH;
image.normal: "sp_bt_r.png";
}
+ description { state: "rtl" 0.0;
+ inherit: "default" 0.0;
+ image.normal: "sp_bt_l.png";
+ }
}
part { name: "elm.text";
type: TEXT;
source: "button_events";
action: SIGNAL_EMIT "elm,action,entry,toggle" "";
}
+ program { name: "to_rtl";
+ signal: "edje,state,rtl";
+ source: "edje";
+ action: STATE_SET "rtl" 0.0;
+ target: "right_bt_icon";
+ target: "left_bt_icon";
+ }
+ program { name: "to_ltr";
+ signal: "edje,state,ltr";
+ source: "edje";
+ action: STATE_SET "default" 0.0;
+ target: "right_bt_icon";
+ target: "left_bt_icon";
+ }
}
}
}
rel2 {
to: "base";
- relative: 1.0 1.0;
- offset: -5 -5;
+ relative: 0.5 1.0;
+ offset: -1 -1;
}
color: 0 0 0 128;
text {
size: 10;
min: 1 1;
// min: 0 1;
- align: 0.0 0.5;
+ align: 0.5 0.5;
}
}
description { state: "active" 0.0;
}
rel2 {
to: "base";
- relative: 1.0 1.0;
- offset: -5 -5;
+ relative: 0.5 1.0;
+ offset: -1 -1;
}
color: 0 0 0 128;
text {
size: 10;
min: 1 1;
// min: 0 1;
- align: 0.0 0.5;
+ align: 0.5 0.5;
}
}
description { state: "active" 0.0;
image.middle: SOLID;
fill.smooth: 0;
}
+ description { state: "rtl" 0.0;
+ inherit: "default" 0.0;
+ image {
+ normal: "bubble_4.png";
+ border: 11 36 18 9;
+ }
+ }
}
part { name: "elm.swallow.content";
type: SWALLOW;
fixed: 1 1;
}
+ description { state: "default" 0.1;
+ inherit: "default" 0.0;
+ image.normal: "arrow_left.png";
+ }
description { state: "anim_1" 0.0;
inherit: "default" 0.0;
color: 255 255 255 200;
rel1.offset: (45/2 + 10) -45/2;
rel2.offset: (45/2 +10) 45/2;
}
+ description { state: "anim_1" 0.1;
+ inherit: "default" 0.0;
+ image.normal: "arrow_left.png";
+ color: 255 255 255 200;
+ rel1.offset: (45/2 + 10) -45/2;
+ rel2.offset: (45/2 +10) 45/2;
+ }
description { state: "anim_2" 0.0;
inherit: "default" 0.0;
color: 255 255 255 0;
rel1.offset: (45/2 + 20) -45/2;
rel2.offset: (45/2 + 20) 45/2;
}
+ description { state: "anim_2" 0.1;
+ inherit: "default" 0.0;
+ image.normal: "arrow_left.png";
+ color: 255 255 255 0;
+ rel1.offset: (45/2 + 20) -45/2;
+ rel2.offset: (45/2 + 20) 45/2;
+ }
}
part {
name: "arrow_left";
fixed: 1 1;
}
+ description { state: "default" 0.1;
+ inherit: "default" 0.0;
+ image.normal: "arrow_right.png";
+ }
description { state: "anim_1" 0.0;
inherit: "default" 0.0;
color: 255 255 255 200;
rel1.offset: (-45/2 - 10) -45/2;
rel2.offset: (-45/2 - 10) 45/2;
}
+ description { state: "anim_1" 0.1;
+ inherit: "default" 0.0;
+ image.normal: "arrow_right.png";
+ color: 255 255 255 200;
+ rel1.offset: (-45/2 - 10) -45/2;
+ rel2.offset: (-45/2 - 10) 45/2;
+ }
description { state: "anim_2" 0.0;
inherit: "default" 0.0;
color: 255 255 255 0;
rel1.offset: (-45/2 - 20) -45/2;
rel2.offset: (-45/2 - 20) 45/2;
}
+ description { state: "anim_2" 0.1;
+ inherit: "default" 0.0;
+ image.normal: "arrow_right.png";
+ color: 255 255 255 0;
+ rel1.offset: (-45/2 - 20) -45/2;
+ rel2.offset: (-45/2 - 20) 45/2;
+ }
}
}
//arrows animation
program {
name: "arrow_anim_start";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"arrow_left", st, 30, vl);
+ if (vl == 0.0) {
+ run_program(PROGRAM:"arrow_anim_start_ltr");
+ }
+ else {
+ run_program(PROGRAM:"arrow_anim_start_rtl");
+ }
+ }
+ }
+ program {
+ name: "arrow_anim_stop";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"arrow_left", st, 30, vl);
+ if (vl == 0.0) {
+ run_program(PROGRAM:"arrow_anim_stop_ltr");
+ }
+ else {
+ run_program(PROGRAM:"arrow_anim_stop_rtl");
+ }
+ }
+ }
+
+ program {
+ name: "arrow_anim_start_ltr";
action: STATE_SET "anim_1" 0.0;
target: "arrow_right";
target: "arrow_left";
transition: LINEAR 0.6;
- after: "arrow_anim_1";
+ after: "arrow_anim_1_ltr";
}
program {
- name: "arrow_anim_1";
+ name: "arrow_anim_1_ltr";
action: STATE_SET "anim_2" 0.0;
target: "arrow_right";
target: "arrow_left";
transition: LINEAR 0.6;
- after: "arrow_anim_2";
+ after: "arrow_anim_2_ltr";
}
program {
- name: "arrow_anim_2";
+ name: "arrow_anim_2_ltr";
action: STATE_SET "default" 0.0;
target: "arrow_right";
target: "arrow_left";
- after: "arrow_anim_start";
+ after: "arrow_anim_start_ltr";
}
program {
- name: "arrow_anim_stop";
+ name: "arrow_anim_stop_ltr";
action: ACTION_STOP;
- target: "arrow_anim_start";
- target: "arrow_anim_1";
- target: "arrow_anim_2";
- after: "arrow_anim_stop_1";
+ target: "arrow_anim_start_ltr";
+ target: "arrow_anim_1_ltr";
+ target: "arrow_anim_2_ltr";
+ after: "arrow_anim_stop_1_ltr";
}
program {
- name: "arrow_anim_stop_1";
+ name: "arrow_anim_stop_1_ltr";
action: STATE_SET "default" 0.0;
target: "arrow_right";
target: "arrow_left";
transition: DECELERATE 0.4;
}
+ program {
+ name: "arrow_anim_start_rtl";
+ action: STATE_SET "anim_1" 0.1;
+ target: "arrow_right";
+ target: "arrow_left";
+ transition: LINEAR 0.6;
+ after: "arrow_anim_1_rtl";
+ }
+ program {
+ name: "arrow_anim_1_rtl";
+ action: STATE_SET "anim_2" 0.1;
+ target: "arrow_right";
+ target: "arrow_left";
+ transition: LINEAR 0.6;
+ after: "arrow_anim_2_rtl";
+ }
+ program {
+ name: "arrow_anim_2_rtl";
+ action: STATE_SET "default" 0.1;
+ target: "arrow_right";
+ target: "arrow_left";
+ after: "arrow_anim_start_rtl";
+ }
+ program {
+ name: "arrow_anim_stop_rtl";
+ action: ACTION_STOP;
+ target: "arrow_anim_start_rtl";
+ target: "arrow_anim_1_rtl";
+ target: "arrow_anim_2_rtl";
+ after: "arrow_anim_stop_1_rtl";
+ }
+ program {
+ name: "arrow_anim_stop_1_rtl";
+ action: STATE_SET "default" 0.1;
+ target: "arrow_right";
+ target: "arrow_left";
+ transition: DECELERATE 0.4;
+ }
+ program { name: "to_rtl";
+ signal: "edje,state,rtl";
+ source: "edje";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"arrow_left", st, 30, vl);
+ if (vl == 0.0) {
+ set_state(PART:"arrow_left", st, 0.1);
+ }
+ get_state(PART:"arrow_right", st, 30, vl);
+ if (vl == 0.0) {
+ set_state(PART:"arrow_right", st, 0.1);
+ }
+ }
+ }
+ program { name: "to_ltr";
+ signal: "edje,state,ltr";
+ source: "edje";
+ script {
+ new st[31];
+ new Float:vl;
+ get_state(PART:"arrow_left", st, 30, vl);
+ if (vl == 0.1) {
+ set_state(PART:"arrow_left", st, 0.0);
+ }
+ get_state(PART:"arrow_right", st, 30, vl);
+ if (vl == 0.1) {
+ set_state(PART:"arrow_right", st, 0.0);
+ }
+ }
+ }
}
}
max: 16 16;
image.normal: "sp_bt_l.png";
}
+ description { state: "rtl" 0.0;
+ inherit: "default" 0.0;
+ image.normal: "sp_bt_r.png";
+ }
}
part { name: "right_bt_icon";
repeat_events: 1;
max: 16 16;
image.normal: "sp_bt_r.png";
}
+ description { state: "rtl" 0.0;
+ inherit: "default" 0.0;
+ image.normal: "sp_bt_l.png";
+ }
}
part { name: "month_text";
type: TEXT;
transition: DECELERATE 0.5;
target: "right_over3";
}
+ program { name: "to_rtl";
+ signal: "edje,state,rtl";
+ source: "edje";
+ action: STATE_SET "rtl" 0.0;
+ target: "right_bt_icon";
+ target: "left_bt_icon";
+ }
+ program { name: "to_ltr";
+ signal: "edje,state,ltr";
+ source: "edje";
+ action: STATE_SET "default" 0.0;
+ target: "right_bt_icon";
+ target: "left_bt_icon";
+ }
}
}