aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--NEWS1
-rw-r--r--data/themes/Makefile.am2
-rw-r--r--data/themes/images/handler_end.pngbin0 -> 3843 bytes
-rw-r--r--data/themes/images/handler_start.pngbin0 -> 3775 bytes
-rw-r--r--data/themes/widgets/entry.edc128
6 files changed, 134 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 3fb06bc0a..7175dae57 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/NEWS b/NEWS
index fd677732a..7b115c0d5 100644
--- a/NEWS
+++ b/NEWS
@@ -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:
diff --git a/data/themes/Makefile.am b/data/themes/Makefile.am
index 47af396db..5575508aa 100644
--- a/data/themes/Makefile.am
+++ b/data/themes/Makefile.am
@@ -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 \
diff --git a/data/themes/images/handler_end.png b/data/themes/images/handler_end.png
new file mode 100644
index 000000000..07778a0f9
--- /dev/null
+++ b/data/themes/images/handler_end.png
Binary files differ
diff --git a/data/themes/images/handler_start.png b/data/themes/images/handler_start.png
new file mode 100644
index 000000000..eb26daf11
--- /dev/null
+++ b/data/themes/images/handler_start.png
Binary files differ
diff --git a/data/themes/widgets/entry.edc b/data/themes/widgets/entry.edc
index bc5112182..238978e9e 100644
--- a/data/themes/widgets/entry.edc
+++ b/data/themes/widgets/entry.edc
@@ -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";
+ }
+ }
+}