forked from enlightenment/efl
Add selection handlers to entry
This commit is contained in:
parent
09589956a6
commit
7c70300e1e
|
@ -1352,3 +1352,7 @@
|
|||
2013-05-16 Ryuan Choi (ryuan)
|
||||
|
||||
* Fix single line enty got multiple line when pasted multiple line.
|
||||
|
||||
2013-05-17 Thiep Ha
|
||||
|
||||
* Add selection handlers to entry.
|
||||
|
|
|
@ -68,6 +68,7 @@ Additions:
|
|||
* Add elm_layout smart callback - "language,changed".
|
||||
* The momentum animation time is changed as the amount of flick.
|
||||
* Add elm_entry smart callback - "text,set,done".
|
||||
* Add selection handlers to entry.
|
||||
|
||||
Improvements:
|
||||
|
||||
|
|
|
@ -172,6 +172,8 @@ images/cur_hi.png \
|
|||
images/cur_shad.png \
|
||||
images/cur_shine.png \
|
||||
images/cur_glow.png \
|
||||
images/handler_start.png \
|
||||
images/handler_end.png \
|
||||
images/bubble.png \
|
||||
images/bubble_3.png \
|
||||
images/bubble_shine3.png \
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 3.8 KiB |
Binary file not shown.
After Width: | Height: | Size: 3.7 KiB |
|
@ -751,7 +751,7 @@ group { name: "elm/entry/base/default";
|
|||
mouse_events: 1;
|
||||
scale: 1;
|
||||
entry_mode: EDITABLE;
|
||||
select_mode: EXPLICIT;
|
||||
select_mode: BLOCK_HANDLE;
|
||||
multiline: 1;
|
||||
source: "elm/entry/selection/default"; // selection under
|
||||
// source2: "X"; // selection over
|
||||
|
@ -759,6 +759,8 @@ group { name: "elm/entry/base/default";
|
|||
source4: "elm/entry/cursor/default"; // cursorover
|
||||
source5: "elm/entry/anchor/default"; // anchor under
|
||||
// source6: "X"; // anchor over
|
||||
source7: "elm/entry/handler/start/default";
|
||||
source8: "elm/entry/handler/end/default";
|
||||
description { state: "default" 0.0;
|
||||
/* we gotta use 0 0 here, because of scrolled entries */
|
||||
fixed: 0 0;
|
||||
|
@ -1414,4 +1416,128 @@ group { name: "elm/entry/anchor/default";
|
|||
}
|
||||
}
|
||||
}
|
||||
group { name: "elm/entry/handler/start/default";
|
||||
images {
|
||||
image: "handler_start.png" COMP;
|
||||
}
|
||||
parts {
|
||||
part { name: "bg";
|
||||
type: RECT;
|
||||
mouse_events: 0;
|
||||
scale: 1;
|
||||
description { state: "default" 0.0;
|
||||
visible: 0;
|
||||
color: 0 0 0 0;
|
||||
}
|
||||
description { state: "show" 0.0;
|
||||
inherit: "default" 0.0;
|
||||
visible: 1;
|
||||
}
|
||||
}
|
||||
part { name: "handler";
|
||||
mouse_events: 1;
|
||||
repeat_events: 0;
|
||||
scale: 1;
|
||||
description { state: "default" 0.0;
|
||||
visible: 0;
|
||||
align: 1 0;
|
||||
fixed: 1 1;
|
||||
min: 36 50;
|
||||
image {
|
||||
normal: "handler_start.png";
|
||||
}
|
||||
rel1 {
|
||||
to: "bg";
|
||||
relative: 0 1;
|
||||
}
|
||||
rel2 {
|
||||
to: "bg";
|
||||
relative: 0 1;
|
||||
}
|
||||
}
|
||||
description { state: "show" 0.0;
|
||||
inherit: "default" 0.0;
|
||||
visible: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
programs {
|
||||
program { name: "show";
|
||||
signal: "edje,handler,show";
|
||||
source: "edje";
|
||||
action: STATE_SET "show" 0.0;
|
||||
target: "bg";
|
||||
target: "handler";
|
||||
}
|
||||
program { name: "hide";
|
||||
signal: "edje,handler,hide";
|
||||
source: "edje";
|
||||
action: STATE_SET "default" 0.0;
|
||||
target: "bg";
|
||||
target: "handler";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
group { name: "elm/entry/handler/end/default";
|
||||
images {
|
||||
image: "handler_end.png" COMP;
|
||||
}
|
||||
parts {
|
||||
part { name: "bg";
|
||||
type: RECT;
|
||||
mouse_events: 0;
|
||||
scale: 1;
|
||||
description { state: "default" 0.0;
|
||||
visible: 0;
|
||||
color: 0 0 0 0;
|
||||
}
|
||||
description { state: "show" 0.0;
|
||||
inherit: "default" 0.0;
|
||||
visible: 1;
|
||||
}
|
||||
}
|
||||
part { name: "handler";
|
||||
mouse_events: 1;
|
||||
repeat_events: 0;
|
||||
scale: 1;
|
||||
description { state: "default" 0.0;
|
||||
visible: 0;
|
||||
align: 0 0;
|
||||
fixed: 1 1;
|
||||
min: 36 50;
|
||||
image {
|
||||
normal: "handler_end.png";
|
||||
}
|
||||
rel1 {
|
||||
to: "bg";
|
||||
relative: 1 1;
|
||||
}
|
||||
rel2 {
|
||||
to: "bg";
|
||||
relative: 1 1;
|
||||
}
|
||||
}
|
||||
description { state: "show" 0.0;
|
||||
inherit: "default" 0.0;
|
||||
visible: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
programs {
|
||||
program { name: "show";
|
||||
signal: "edje,handler,show";
|
||||
source: "edje";
|
||||
action: STATE_SET "show" 0.0;
|
||||
target: "bg";
|
||||
target: "handler";
|
||||
}
|
||||
program { name: "hide";
|
||||
signal: "edje,handler,hide";
|
||||
source: "edje";
|
||||
action: STATE_SET "default" 0.0;
|
||||
target: "bg";
|
||||
target: "handler";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue