Commit Graph

88 Commits

Author SHA1 Message Date
Aharon Hillel e9f0867326 Elm glayer: Fixed zoom with mouse wheel.
Got broken with the patch applied by Hermet.

Signed-off-by: Aharon Hillel <a.hillel@partner.samsung.com>

SVN revision: 65780
2011-12-01 13:20:34 +00:00
Rajeev Ranjan 10e1220af7 elementary/gesture_layer - [E-devel] [Patch] elm_gesture_layer patc
Hi,

On behalf of Rajeev Ranjan, I am submitting the elm_gesture_layer patch.

Change Log:
a. Variable was used after freeing in function _remove_touched_device, now storing return value of eina_list_remove and then freeing pointer.
b. gesture pointer was dereferenced before checking it against NULL in function _rotate_test. Now dereferencing happens after NULL check.
c. Added NULL check for pointer before using it in function _event_process which is dereferenced in function _add_touched_device.
d. Memory leak fix in function elm_gesture_layer_add. Now using ELM_WIDGET_STANDARD_SETUP which takes care of NULL checks and freeing memory in case of failure.

Please review it.
I'd appreciate any comments on this.

Thank you,

Signed-Off-By: Rajeev Ranjan <rajeev.r@samsung.com>
Signed-Off-By: Prince Kumar Dubey <prince.dubey@samsung.com>
Signed-Off-By: ChunEon Park <hermet@hermet.pe.kr>



SVN revision: 65680
2011-11-29 09:20:31 +00:00
Aharon Hillel c7ccc374a2 Elm glayer: Set mimimun momentum for ABORT
Signed-off-by: Aharon Hillel <a.hillel@partner.samsung.com>

SVN revision: 65024
2011-11-10 16:06:09 +00:00
Aharon Hillel d42d8fff42 Elm glayer: Added doc to recent fix
Signed-off-by: Aharon Hillel <a.hillel@partner.samsung.com>

SVN revision: 64951
2011-11-08 13:09:18 +00:00
Aharon Hillel 9fe4fc1d3d Elm glayer: Fixed bug in non-continues mode.
Line and Momentum START was effected by mouse-over fix.

Signed-off-by: Aharon Hillel <a.hillel@partner.samsung.com>

SVN revision: 64950
2011-11-08 13:09:14 +00:00
Aharon Hillel 042e958aa7 Elm glayer: Fixed bug of starting line,momentum with mouse-move
Signed-off-by: Aharon Hillel <a.hillel@partner.samsung.com>

SVN revision: 64868
2011-11-07 14:31:25 +00:00
Aharon Hillel a6280661f1 Elm glayer: Fixed bug in N tap testing
Signed-off-by: Aharon Hillel <a.hillel@partner.samsung.com>

SVN revision: 64867
2011-11-07 14:31:20 +00:00
Aharon Hillel 0aadefe6b2 Elm Glayer: Removed finger count from line-info
Signed-off-by: Aharon Hillel <a.hillel@partner.samsung.com>

SVN revision: 64521
2011-10-30 10:08:05 +00:00
Aharon Hillel 170cf5fa1a Elm Glayer: Added number of fingers to Momentum Info
Signed-off-by: Aharon Hillel <a.hillel@partner.samsung.com>

SVN revision: 64520
2011-10-30 10:08:01 +00:00
Christopher Michael 96557ccea1 Elementary: Fix uninitialized variables warnings. Fix case formatting.
SVN revision: 64437
2011-10-27 15:57:14 +00:00
Tom Hacohen dd4275ad34 Elm glayer: Removed unused/wanted if and variable.
SVN revision: 64382
2011-10-25 09:51:41 +00:00
Aharon Hillel 262525a0af Elm glayer: Fixed memory leak, removed unused event list
Signed-off-by: Aharon Hillel <a.hillel@partner.samsung.com>

SVN revision: 64381
2011-10-25 09:51:38 +00:00
Aharon Hillel 28053ef455 Elm glayer: Added momentum to continues-gestures.
Womentum is now aborted and resarted as the number of fingers changes.

Signed-off-by: Aharon Hillel <a.hillel@partner.samsung.com>

SVN revision: 64380
2011-10-25 09:51:34 +00:00
Aharon Hillel 6d4a642ccf Elm Glayer: Added ABORT on move to long-tap gesture
Signed-off-by: Aharon Hillel <a.hillel@partner.samsung.com>

SVN revision: 64379
2011-10-25 09:51:30 +00:00
Aharon Hillel 7470d18743 Elm Glayer: Added multi-touch support to momentum gesture
Signed-off-by: Aharon Hillel <a.hillel@partner.samsung.com>

SVN revision: 64378
2011-10-25 09:51:22 +00:00
Tom Hacohen 408cf02a9e Elm glayer: Fix continuous gestures. SPANK SPANK Aharon.
SVN revision: 64356
2011-10-24 12:19:29 +00:00
Tom Hacohen 2b26f91dbb Elm glayer: Fixed condition based on uninit value error.
Init structure fields (pe event) to 0.
Spank spank, you can't assume the passed pointer event is initialized.

SVN revision: 64141
2011-10-18 08:58:33 +00:00
Aharon Hillel 5cd614a820 Elm Glayer: Fixed code to match convention
Signed-off-by: Aharon Hillel <a.hillel@partner.samsung.com>

SVN revision: 64129
2011-10-17 08:12:52 +00:00
Aharon Hillel ba51b99efb Elm Glayer: Fixed call of long tap reset in case reset occurs before 1st input event
Signed-off-by: Aharon Hillel <a.hillel@partner.samsung.com>

SVN revision: 64128
2011-10-17 08:12:49 +00:00
Aharon Hillel 14b0c8d207 Elm Glayer: Fixed all tap, long tap, gestures bugs
Signed-off-by: Aharon Hillel <a.hillel@partner.samsung.com>

SVN revision: 64127
2011-10-17 08:12:45 +00:00
Aharon Hillel a6083cb953 Elm Glayer: Added single tap/double click support.
Signed-off-by: Aharon Hillel <a.hillel@partner.samsung.com>

SVN revision: 63961
2011-10-10 15:47:40 +00:00
Aharon Hillel c2d58e895a Elm Glayer: Fixed many glayer issues.
zoom, rotate - Fixed continues gesture mode issues.
momentum - Fixed un relayable values returned for this gestures.
line - Fixed line continues mode issues.

Thank to Enumi Lee for reporting.

Signed-off-by: Aharon Hillel <a.hillel@partner.samsung.com>

SVN revision: 63960
2011-10-10 15:47:34 +00:00
Tom Hacohen eec24e2394 Elm_glayer: Reset ZOOM, ROTATE to function as before continues.
SVN revision: 63289
2011-09-08 10:10:41 +00:00
Aharon Hillel 429c050b46 Elm glayer: Added glayer_continues_enable setting to elm-config-file.
Signed-off-by: Aharon Hillel <a.hillel@partner.samsung.com>

SVN revision: 63287
2011-09-08 10:10:34 +00:00
Aharon Hillel cd4e0fe936 Elm glayer: Cleaned elm_gesture_layer.c.
Signed-off-by: Aharon Hillel <a.hillel@partner.samsung.com>

SVN revision: 63286
2011-09-08 10:10:30 +00:00
Aharon Hillel 510b663a4d Elm glayer: Added Continues-gesture-feature of Line, Flick, Zoom, Rotate.
TODO: Clean code (added this version to have easy way of review), and maybe add pref-var of enabling disabline continues gestures

Signed-off-by: Aharon Hillel <a.hillel@partner.samsung.com>

SVN revision: 63285
2011-09-08 10:10:27 +00:00
Mike Blumenkrantz bd9b5e6f36 alloc checks wooooooooooooo
SVN revision: 62157
2011-08-05 23:13:16 +00:00
Aharon Hillel 06a87f2348 Elm glayer: Added n-long-tap gesture
Signed-off-by: Aharon Hillel <a.hillel@partner.samsung.com>

SVN revision: 61953
2011-08-01 13:09:05 +00:00
Mike Blumenkrantz 52d5130947 POINTER ARITHMETIC WITH VOID* IS BAD.
use intptr_t. also fixes a bunch of compile warns for x86_64


SVN revision: 61841
2011-07-28 08:36:55 +00:00
Tom Hacohen 20de0f2def Elm glayer: Fixed mouse_wheel direction for wheel zoom.
Wheel up should be zoom in, not out.

SVN revision: 61648
2011-07-24 11:44:42 +00:00
Aharon Hillel 6f23cf6fdd Elm glayer: Added key grab for CTRL to finish zoom
Signed-off-by: Aharon Hillel <a.hillel@partner.samsung.com>

SVN revision: 61478
2011-07-18 11:25:54 +00:00
Tom Hacohen 948ab809c1 Elm glayer: Added glayer values to elm config.
Added tolerance related values.

Patch by Aharon Hillel.

SVN revision: 61465
2011-07-18 06:24:34 +00:00
Tom Hacohen 684d0361a4 Elm glayer: Changed some values from float to double.
Patch by Aharon Hillel.

SVN revision: 61464
2011-07-18 06:24:29 +00:00
Tom Hacohen 472df7f449 Elm glayer: Moved functions around.
This patch, and the 2 before are from Aharon Hillel.

SVN revision: 61209
2011-07-10 14:10:57 +00:00
Tom Hacohen 727a931e3c Elm glayer: Keep finger pressed states across gesture layer.
And various formatting changes.

SVN revision: 61197
2011-07-10 11:51:44 +00:00
Tom Hacohen fedc66f29f Elm glayer: Correct logging of down-fingers + removed redundant copies.
Changed way of logging touched-devices.
Moved copy-event to history-add

SVN revision: 61196
2011-07-10 11:51:40 +00:00
Tom Hacohen 260f1cf599 Elm glayer: Formatting changes and removed a redudant comment.
SVN revision: 61122
2011-07-07 15:19:23 +00:00
Tom Hacohen 74d7906e61 Elm gesture_layer: Added gesture layer widget.
Gesture layer allows detection of gestures and essentially gives the
user a unified way of getting "complex" input.
It doesn't do (by design) complex gestures like "V" or "S", instead it
does simple and fast interaction gestures like: 2-finger
pinch/rotate/lines or CTRL+Mouse_Wheel zoom and etc.
This lets people to write an application/widget regardless of the input
device used and in a nice consistent way.

Although we consider the API "good", it may change completely. I'm
committing it now so people will be able to start using it, and
hopefully give feedback.

Work by Aharon Hillel with my help.

SVN revision: 61118
2011-07-07 14:41:03 +00:00