Commit Graph

150 Commits

Author SHA1 Message Date
godly.talias 7ee4a5b8b1 elm_spinner: add feature in spinner to change values while dragging relative to the speed of dragging
Summary:
Currently the values in spinner change while dragging only based on
the amount of pixels dragged, this patch will enable Spinner to change value
based on the speed of dragging so that it will be more user friendly. This
will help users to alter drag values by big amounts if dragged in a good speed.

Test Plan: test_spinner.c in elementary_test

Reviewers: raster, prince.dubey, shilpasingh, cedric

Reviewed By: cedric

Subscribers: poornima.srinivasan, rajeshps, govi

Differential Revision: https://phab.enlightenment.org/D2659

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-06-25 17:24:08 +02:00
ChunEon Park 689ef74dd6 Revert "Spinner: Add changed callback call when spinner value set."
This reverts commit 8278dff6a742c391f7c04c3de1033574d818dbb6.

This is not good for scenarios and will break the compatibility.

Thanks to David for reporting.
2015-05-29 12:32:02 +09:00
woochan lee 0301672b4b Spinner: Add changed callback call when spinner value set.
Summary:
There is a code to compare value is changed.
1256: if (sd->val == val) return;

Even value changed the value changed callback didn't called before.

Reviewers: woohyun, shilpasingh, Hermet

Reviewed By: shilpasingh, Hermet

Differential Revision: https://phab.enlightenment.org/D2560
2015-05-28 20:39:32 +09:00
Tom Hacohen 27b72840c8 Adjust usage of eo_constructor() according to recent changes. 2015-05-20 13:03:28 +01:00
Woochan Lee 4c9e2fa452 spinner: Fix entry not inactive even gets an enter key cb.
Summary:
 The entry inactive signal emitted when finish spinner value set.
but the active signal emitted after that. so it makes weird view state.

 The function 'key_action_toggle()' called twice. (for entry, spinner)
event propagate called this func twice and its make this issue.

This patch makes to ignore toggle event when entry is not visible.
T2262

Test Plan:
Run elementary_test, execute spinner widget sample.

Click the first spinner.
Input something on entry.
Press enter key.
Check the issue.

Reviewers: raster, Hermet

Subscribers: kuuko

Differential Revision: https://phab.enlightenment.org/D2411
2015-04-24 16:27:15 +09:00
Tom Hacohen 01dd3cc845 Spinner: use fabs for floating point absolute value. 2015-04-22 13:31:21 +01:00
Andrii Kroitor a3f95d2632 spinner: fix entry style in non 'button_layout' mode
Summary:
entry should receive style in both modes

@fix

Reviewers: cedric, seoz, raster, reutskiy.v.v, Sergeant_Whitespace, Hermet

Reviewed By: reutskiy.v.v, Sergeant_Whitespace

Subscribers: Sergeant_Whitespace, reutskiy.v.v

Differential Revision: https://phab.enlightenment.org/D2265
2015-04-14 11:16:41 +09:00
Lukasz Stanislawski 18bd62002b atspi: remove elm_interface_atspi_widget implementation.
elm_interface_atspi_widget object was previously used to implement
atspi features on top of elm_widget object. However such inheritance
obfuscates a design, so atspi features implementation was moved directly
into elm_widget code.
2015-04-06 10:24:58 +02:00
Carsten Haitzler d3d3cbf915 elm spinner - add backwards compat for older spinner themes
this makes spinenr work with previous themes after
adfe7fbcd3f4146d84219de7dbb5a273d89f396e commit
2015-03-05 15:14:34 +09:00
Subodh Kumar b0f969dd2a Elm_spinner focus UI, accessibility fix
Summary:
Issue: Focus was not getting transferred individually on arrow buttons and text area.
Solution: Remove the usage of image parts and text parts and replace them with buttons
so as to handle the focus transfer normally than forcibly via smart event.
hence Focus next hook and focus direction hook is implemented.

Signed-off by: Subodh Kumar<s7158.kumar@samsung.com>
Signed-off by: Shilpa Singh<shilpa.singh@samsung.com>

Test Plan:
Use keyboard keys on spinner and test focus transfer, enable accessibility and test
accessibility.

Reviewers: woohyun, Hermet, shilpasingh, raster, seoz

Reviewed By: shilpasingh, raster

Subscribers: stefan_schmidt, raster, rajeshps, govi

Differential Revision: https://phab.enlightenment.org/D1911
2015-03-04 16:03:30 +09:00
Daniel Juyung Seo 263801f018 elm: Remove redundant finger size adjustment.
This is a successor of a54da8aab.
2015-02-23 08:43:47 +09:00
Shinwoo Kim e649486e58 [spinner] use strncmp, not strcmp to support styles starting with vertical
Summary: Use strncpm, not strcmp to support styles starting with vertical

Test Plan: Define spinner style which has 'vertcial' as a prefix

Reviewers: raster, cedric, seoz, woohyun, jaehwan, Hermet, jpeg

Subscribers: seoz

Differential Revision: https://phab.enlightenment.org/D1839
2015-01-08 18:54:30 +09:00
Lukasz Stanislawski 2ca1f8a75a atspi: properly include at-spi headers.
Summary:
Change requested by TAsn. Previuosly AT-SPI headers were kept private
and included directly into elementary source code. From now on,
AT-SPI headers can be included from Elementary.h public header, however
will be marked as beta APIs.

Commit includes following changes:
* include all atspi headers into new elm_interfaces.h header.
* marking all at-spi interfaces methods/properties as @protected.
* wrap all common headers with EFL_BETA_API_SUPPORT.
* make some common APIs visible in lib, by adding EAPI attribute
  (if someone decides to use beta APIs).

Test Plan: out-off tree build with gcc, g++

Reviewers: tasn

Reviewed By: tasn

Subscribers: seoz, q66, kuuko

Maniphest Tasks: T1721

Differential Revision: https://phab.enlightenment.org/D1528
2014-10-17 16:57:26 +01:00
Tom Hacohen 7629c147eb Eo related: Change according to recent changes in eo_add().
For more info check out a7560dbc61 in
the EFL tree.
2014-09-25 17:39:34 +01:00
Lukasz Stanislawski 09b9ef0bc0 atspi: expose more actions through atspi bus.
Summary:
Main purpose of exposing widget actions and keyboard shortcuts
is to allow accessibility clients to implement alternative methods
of GUI navigation.

Reviewers: z.kosinski

Reviewed By: z.kosinski

Subscribers: seoz

Differential Revision: https://phab.enlightenment.org/D1227
2014-07-25 11:58:16 +02:00
Zbigniew Kosinski d22bf48eb8 atspi: value interface implementation for elm_spinner
Reviewers: stanluk

Differential Revision: https://phab.enlightenment.org/D1122
2014-07-25 10:13:15 +02:00
Zbigniew Kosinski 9ce23f0004 atspi:Set roles for widgets
Reviewers: stanluk, m.jagiello, raster

Differential Revision: https://phab.enlightenment.org/D930
2014-06-11 11:07:16 +09:00
Tom Hacohen efa41c7d75 Elm: Update code to use the new class names generated by eolian. 2014-06-03 11:54:44 +01:00
Carsten Haitzler 6bcd3957ca elm spiner - fix flag read to also use the right field 2014-05-26 18:03:44 +09:00
Carsten Haitzler b38fed55aa elm spinner - fix invalid struct modification when wheel event 2014-05-26 18:01:45 +09:00
Daniel Juyung Seo c1613811e7 spinner: Fixed broken focus movement by direction key.
This was broken by c9755bd3c828bcd2453a50542331b201089a7160.
2014-04-18 04:25:43 +09:00
Jaeun Choi 099fbbc79f spinner: apply key binding
Summary: This patch applies key binding to elm_spinner.

Test Plan: None

Reviewers: Hermet, raster

Differential Revision: https://phab.enlightenment.org/D752
2014-04-17 16:03:48 +09:00
Jaeun Choi f2bb1364e8 spinner: fixed odd behavior of the spinner
Summary:
when multiple key down is coming while increase/decrease the spinner values,
the speed acceleration will be reset by the new key down.

Instead, it stops the increase/decrease the spinner values behavior.

@fix

Test Plan: None

Reviewers: Hermet, raster

CC: seoz

Differential Revision: https://phab.enlightenment.org/D749
2014-04-17 11:51:51 +09:00
Jaeun Choi bdf2c672ec spinner: unified two functions with different name and same functionality
Summary:
This patch unifies two functions with different name and same functionality:
_val_inc_stop and _val_dec_stop into _spin_stop.

Test Plan: None

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D748
2014-04-16 20:58:37 +09:00
ChunEon Park 5ab6a7739f widgets - don't handle the events(key,mouse) if the object is disabled.
we can prevent to handle the widget events from the widget infra,
if the object is disabled.

conceptually, disabled object should not be interacted to user input(key, mouse)
2014-04-16 10:59:43 +09:00
Tom Hacohen 416568b1f5 spinner: Adjusted to Eo2. 2014-04-10 09:35:02 +01:00
Daniel Zaoui bd9a1c81c6 Eolian: Integration of Spinner 2014-03-31 10:23:51 +03:00
ChunEon Park bd2d8a3cea spinner: crash issue on deletion fix
Summary:
Issue: longpress timer callback if it gets called after widget deletion,  crash happens.
Solution: delete the long press timer in smart del function.
Signed-off by: Kumar Navneet (k.navneet@samsung.com)
Signed-off by: Shilpa Singh (shilpa.singh@samsung.com)

Test Plan: When we tap inc/dec fast and delete the widget immediately, crash might happen.

Reviewers: raster, seoz, Hermet

Reviewed By: Hermet

CC: govi, rajeshps

Differential Revision: https://phab.enlightenment.org/D669

@fix
2014-03-28 11:52:49 +09:00
Daniel Zaoui e2206a1a22 Eolian: Integration of Elm Widget 2014-03-17 09:03:56 +02:00
Bora Hwang 30e14a3a65 spinner: it has to be recalculated when its style is changed
Summary:
when style is set to be different one, spinner didn't update its min size.
So there was an issue that spinner has wrong position since it wasnt' check the updated size

Reviewers: Hermet, seoz

Reviewed By: seoz

CC: raster, cedric

Differential Revision: https://phab.enlightenment.org/D569
2014-02-19 14:02:44 +09:00
Jaehwan Kim db23689614 access: Add smart signal "access,changed"
It occurs that access mode is changed.
Application can add this callback for each widget.
2014-02-08 14:05:14 +09:00
WooHyun Jung 0a1179dde4 elm_layout now supports focused/unfocused smart callback
by itself for widgets that inherit layout class.
If it uses elm_widget's, smart callback will be called at the
beginning or smart_on_focus function.
2014-02-06 16:18:57 +09:00
Daniel Juyung Seo f678457eed spinner: Removed unwanted return from function _button_inc_start_cb().
This code is a leftover of 617cf8859f0f1fec5ea60fefef446b4454815554.
Now fixed!
2014-02-05 01:56:22 +09:00
Shilpa Singh d1ef22bccd spinner: After long press of inc/dec buttons, start continuously increasing/decreasing
Summary:
When inc/dec buttons are pressed, start changing value after longpress has happened on buttons and not immediately.
Signed-off by: Mohammad Irfan (mohammad.i@samsung.com)
Signed-off by: Shilpa Singh(shilpa.singh@samsung.com)

Test Plan: Long press on inc/dec buttons of spinner.

Reviewers: seoz, woohyun

CC: Hermet, jchanwook, raster

Differential Revision: https://phab.enlightenment.org/D365
2014-02-05 01:43:10 +09:00
ChunEon Park dbacb2fef9 elementary - send signal "language,changed" with one way in the widget.
Call the smart callback in the widget infra so that each widget don't need to hook the smart_translate only for the smart call.

This makes reducing duplicated code and supporting language,chagned from all widgets.
2014-01-23 19:30:34 +09:00
ChunEon Park aebdcff513 elementary - use the focused/unfocused string in widget defined.
Now, it will share the strings so that reduce the binary size also user uses it in one way.
2014-01-23 17:27:17 +09:00
Daniel Juyung Seo 3eb9e6b4cf spinner: Uncomment ctype.h inclusion because isspace is used.
It looks like ctype.h is included in some other headers by luck but it
is recommended to explicitly include the necessary header.
Confirmed by glima as he commented this out.
2014-01-23 01:31:53 +09:00
Daniel Juyung Seo ac00267206 spinner: Internal code clean up for spinner.
- Used macro for constant.
- Changed timer name to be more descriptive.
- Added descriptions about timers.
2014-01-23 01:31:53 +09:00
Daniel Juyung Seo a4f3074f9c elm: Removed unnecessary null check for ecore_timer_del,
ecore_animator_del, and ecore_job_del.

As all efl public free apis get null as valid parameter, we do not need
to check null. I also removed some null check for other free apis which
were right next to timer/animator/job del. After this job code got
cleaner.
2014-01-21 23:18:16 +09:00
Daniel Juyung Seo 5d45fc195f spinner: Create an internal entry when it is really needed.
Do not create the internal entry on smart add. Create that when it is
needed with editable mode.
2014-01-21 22:12:53 +09:00
Daniel Juyung Seo 8253767035 spinner: Toggle entry on Enter and space key. 2014-01-21 21:59:41 +09:00
Yakov Goldberg 3379c124df all widgets: change Eo API for "elm_widget_theme()" to "theme_apply"
There are elm_widget_theme/theme_set/theme_get functions.
    In Eolian these functions will be described as "theme" method and
    "theme" property. There is clash here.
    So add suffix "_apply" to Eo API for "elm_widget_theme".
2014-01-21 11:08:29 +02:00
Daniel Juyung Seo fd5c046dfe elm: Changed __UNUSED__ to EINA_UNUSED. 2014-01-06 23:33:57 +09:00
Yakov Goldberg e93a38c966 widget, spinner: typo in elm_widget_focus_set() 2013-12-31 11:16:35 +02:00
Jihoon Kim bfda643041 spinner: add NULL check 2013-12-31 11:38:46 +09:00
Daniel Juyung Seo e63dd3110a elm: Unified eina critical manro to CRI.
Being annoyed by different types of eina critical macros - CRI, CRIT,
 CRITICAL -, I concluded to unify them to one. Discussed on IRC and
 finally, CRI was chosen to meet the consistency with other macros -
 ERR, WRN, INF, DBG - in terms of the number of characters.
If there is any missing bits, please let me know.
2013-12-26 13:03:55 +09:00
Daniel Juyung Seo dd4c8afac0 elm_spinner.c: fix mouse spin never stop issue with mouse wheel with spinner widget.
Do not use a timer when the wheel is used to spin the spinner.
This fixes T604.
Special thanks JP for reporting.
2013-12-05 15:53:32 +09:00
Daniel Juyung Seo 2921e851e1 elm_spinner.c: support mouse wheel in spinner.
Spinner didn't work with mouse wheel which is a bug.
This fixes T587.
2013-11-28 17:07:44 +09:00
Daniel Juyung Seo 88a8c46af3 ctxpopup, player, slideshow, spinner, toolbar, video: internal refactoring of smart event routines.
Now most of smart events codes look consistent.
2013-11-13 10:29:30 +09:00
Tom Hacohen 2f1e1554e5 Changed Eo class names to be consistent.
All the class names are now of the format: Elm_Type_Subtype_Extra
2013-11-07 11:44:22 +00:00