/////////////////////////////////////////////////////////////////////////
group { name: "elm/entry/selection/block_handle_left";
data.item: "position" "BOTTOM";
+ data.item: "height" "40";
images {
image: "copy&paste_Icon_left.png" COMP;
image: "copy&paste_Icon_left_press.png" COMP;
+ image: "copy&paste_Icon_left_top.png" COMP;
+ image: "copy&paste_Icon_left_top_press.png" COMP;
}
parts {
part { name: "bg";
inherit: "default" 0.0;
visible: 1;
}
+ description { state: "top" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ align: 1 1;
+ image {
+ normal: "copy&paste_Icon_left_top.png";
+ }
+ }
description { state: "press" 0.0;
inherit: "default" 0.0;
visible: 1;
image {
normal: "copy&paste_Icon_left_press.png";
- border: 0 0 0 0;
+ }
+ }
+ description { state: "top_press" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ align: 1 1;
+ image {
+ normal: "copy&paste_Icon_left_top_press.png";
}
}
}
}
+ script {
+ public handler_ontop;
+ public handler_pressed;
+ }
programs {
program { name: "focused";
signal: "elm,action,focus";
action: STATE_SET "show" 0.0;
target: "handle";
target: "bg";
+ after: "unpressed";
}
program { name: "unfocused";
signal: "elm,action,unfocus";
target: "handle";
target: "bg";
}
+ program { name: "top";
+ signal: "elm,state,top";
+ source: "elm";
+ script {
+ new pressed;
+ pressed = get_int(handler_pressed);
+ set_int(handler_ontop, 1);
+ if (pressed)
+ set_state(PART:"handle", "top_press", 0.0);
+ else
+ set_state(PART:"handle", "top", 0.0);
+ }
+ }
+ program { name: "bottom";
+ signal: "elm,state,bottom";
+ source: "elm";
+ script {
+ new pressed;
+ pressed = get_int(handler_pressed);
+ set_int(handler_ontop, 0);
+ if (pressed)
+ set_state(PART:"handle", "press", 0.0);
+ else
+ set_state(PART:"handle", "show", 0.0);
+ }
+ }
program { name: "pressed";
signal: "mouse,down,1";
source: "handle";
- action: STATE_SET "press" 0.0;
- target: "handle";
+ script {
+ new pos;
+ pos = get_int(handler_ontop);
+ set_int(handler_pressed, 1);
+ if (pos)
+ set_state(PART:"handle", "top_press", 0.0);
+ else
+ set_state(PART:"handle", "press", 0.0);
+ }
}
program { name: "unpressed";
signal: "mouse,up,1";
source: "handle";
- action: STATE_SET "show" 0.0;
- target: "handle";
+ script {
+ new pos;
+ pos = get_int(handler_ontop);
+ set_int(handler_pressed, 0);
+ if (pos)
+ set_state(PART:"handle", "top", 0.0);
+ else
+ set_state(PART:"handle", "show", 0.0);
+ }
}
}
}
group { name: "elm/entry/selection/block_handle_right";
data.item: "position" "BOTH";
+ data.item: "height" "20";
images {
image: "copy&paste_Icon_right.png" COMP;
image: "copy&paste_Icon_right_press.png" COMP;
+ image: "copy&paste_Icon_right_top.png" COMP;
+ image: "copy&paste_Icon_right_top_press.png" COMP;
}
parts {
-/* part { name: "bg";
- type: RECT;
- scale: 1;
- mouse_events: 1;
- description { state: "default" 0.0;
- visible: 0;
- fixed: 1 1;
- align: 0.5 0.25;
- min: 50 80;
- color: 0 0 0 0;
- }
- description { state: "show" 0.0;
- inherit: "default" 0.0;
- visible: 1;
- }
- }*/
part { name: "handle";
mouse_events: 1;
scale: 1;
inherit: "default" 0.0;
visible: 1;
}
+ description { state: "top" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ align: 0 1;
+ image {
+ normal: "copy&paste_Icon_right_top.png";
+ }
+ }
description { state: "press" 0.0;
inherit: "default" 0.0;
visible: 1;
image {
normal: "copy&paste_Icon_right_press.png";
- border: 0 0 0 0;
+ }
+ }
+ description { state: "top_press" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ align: 0 1;
+ image {
+ normal: "copy&paste_Icon_right_top_press.png";
}
}
}
}
+ script {
+ public handler_ontop;
+ public handler_pressed;
+ }
programs {
program { name: "focused";
signal: "elm,action,focus";
source: "elm";
action: STATE_SET "show" 0.0;
target: "handle";
-// target: "bg";
+ after: "unpressed";
}
program { name: "unfocused";
signal: "elm,action,unfocus";
source: "elm";
action: STATE_SET "default" 0.0;
target: "handle";
-// target: "bg";
+ }
+ program { name: "top";
+ signal: "elm,state,top";
+ source: "elm";
+ script {
+ new pressed;
+ pressed = get_int(handler_pressed);
+ set_int(handler_ontop, 1);
+ if (pressed)
+ set_state(PART:"handle", "top_press", 0.0);
+ else
+ set_state(PART:"handle", "top", 0.0);
+ }
+ }
+ program { name: "bottom";
+ signal: "elm,state,bottom";
+ source: "elm";
+ script {
+ new pressed;
+ pressed = get_int(handler_pressed);
+ set_int(handler_ontop, 0);
+ if (pressed)
+ set_state(PART:"handle", "press", 0.0);
+ else
+ set_state(PART:"handle", "show", 0.0);
+ }
}
program { name: "pressed";
signal: "mouse,down,1";
source: "handle";
- action: STATE_SET "press" 0.0;
- target: "handle";
+ script {
+ new pos;
+ pos = get_int(handler_ontop);
+ set_int(handler_pressed, 1);
+ if (pos)
+ set_state(PART:"handle", "top_press", 0.0);
+ else
+ set_state(PART:"handle", "press", 0.0);
+ }
}
program { name: "unpressed";
signal: "mouse,up,1";
source: "handle";
- action: STATE_SET "show" 0.0;
- target: "handle";
+ script {
+ new pos;
+ pos = get_int(handler_ontop);
+ set_int(handler_pressed, 0);
+ if (pos)
+ set_state(PART:"handle", "top", 0.0);
+ else
+ set_state(PART:"handle", "show", 0.0);
+ }
}
}
}