Commit Graph

171 Commits

Author SHA1 Message Date
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 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 9d55fab418 entry: wrong viewport value calculation issue fix
Summary:
Issue: As entire scroller edje co-ordinates was being taken instead of the actual viewport value,
if in scroller edje more parts are added apart from just "elm.swallow.content", then the viewport value
set will be wrong. hence the selection handlers will not hide when they have to hide.

solution: Instead of taking scroller edje's geometry, get the actual viewport values.
To get viewport x,y a new scrollable interface is also added.

signed-off by: Shilpa Singh <shilpa.singh@samsung.com>

@fix

Test Plan: Selection handlers have to hide correctly when the text is scrolled in a scrolled entry, if the scroller edc of entry has more parts added other than elm.swallow.content, then when we scroll the selection handlers are not hidden correctly.

Reviewers: jaehwan, woohyun, seoz, Hermet, raster

CC: govi, rajeshps, thiepha

Differential Revision: https://phab.enlightenment.org/D674
2014-04-21 12:31:49 +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
Daniel Juyung Seo 11ad4e125d scroller: Initialized some internal variables.
This fixes coverity CID 1199657, 1199622, 1199621, 1199620.

@fix
2014-04-13 01:58:43 +09:00
Tom Hacohen a7c5d02257 Adjust code to use the slightly different Eo2 API.
With Eo2 you can return values directly without the need to use a pointer
(use the C return).

For example:
eo_do(obj, elm_object_text_get(&text));
becomes:
eo_do(obj, text = elm_object_text_get());

@feature
2014-04-10 09:49:22 +01:00
Tom Hacohen cbf43225f1 scroller: Adjusted to Eo2. 2014-04-10 09:35:02 +01:00
Jaeun Choi 624b278c44 scroller: apply key binding
Summary: This patch applies key binding to elm_scroller.

Test Plan: elementary_test > Scroller > check key events

Reviewers: Hermet, raster

Differential Revision: https://phab.enlightenment.org/D711
2014-04-10 17:10:00 +09:00
Daniel Zaoui c76581ca44 Eolian: Integration of Scroller 2014-03-31 09:08:42 +03:00
ChunEon Park f28c0a5259 scroller content type is not always widget. 2014-03-22 14:40:48 +09:00
Daniel Juyung Seo 77dfd41b76 scroller: Fixed wrong widget call to non-widget object.
content can be a non-widget object.
2014-03-20 02:13:03 +09:00
Daniel Zaoui 7460467419 Eolian: Integration of Scrollable Interface 2014-03-18 08:14:44 +02:00
Daniel Zaoui e2206a1a22 Eolian: Integration of Elm Widget 2014-03-17 09:03:56 +02: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
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 db5fe2581d elm: Removed unnecessary null check for evas_object_del. 2014-01-22 10:54:52 +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
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
Tom Hacohen 877abee7fe Elm scroller: prevent usage of uninitialized vars as reported by valgrind.
This improves the terminology crash rate a bit.
2013-11-28 16:33:46 +00:00
Tom Hacohen be207937f5 Elm scroller: _movement_block_get fix return val on error.
It was returning ELM_SCROLLER_SINGLE_DIRECTION_NONE instead of
ELM_SCROLLER_MOVEMENT_NO_BLOCK.
Looks like a c&p error.
2013-11-28 16:17:15 +00:00
WooHyun Jung 2920eda9e5 elementary/elm_scroller.c : For checking focus next object, focus_direcion_get function should be changed to focus_next_get function. If there is no focus next object, focus_direction_get will be executed by focus_next_get. 2013-11-21 10:13:40 +09:00
Daniel Juyung Seo a480745321 scroller, slider: fixed wrong changed I made by 6a683df1598a4c3293a33765cc60dd
I caused by c&p bug.
Special thanks to stefan and coverity.
This fixes coverity CID 1128353 and 1128354.
2013-11-15 22:51:10 +09:00
Daniel Juyung Seo b75a880c6c button,inwin,radio,scroller,slider: Do not call smart_activate when the widget is disabled. 2013-11-08 21:49:52 +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
Daniel Juyung Seo d22076681b elm: Fixed formatting about smart_event check for code consistency.
- Made it look clearer.
- Removed unnecessary local variables.
- Keep the code sequence consistent.
2013-10-28 23:30:12 +09:00
Daniel Juyung Seo c40fbd89b8 elm: Use ELM_LAYOUT_DATA_GET convenient macro instead of calling eo_data_scope_get(obj, ELM_OBJ_LAYOUT_CLASS). 2013-10-05 17:29:13 +09:00
Daniel Juyung Seo 6b101a10f1 elm_scroller.c: adopted ELM_WIDGET_DATA_GET_OR_RETURN macro. 2013-10-05 17:15:27 +09:00
Cedric Bail 29af5e1e43 elementary: update to new eo_parent_get/set API. 2013-09-25 13:34:27 +09:00
ChunEon Park d461a8be05 elementary/widgets - set parents before widget constructs their body.
This avoids unnecessary multiple setups when obj and subobj has connected.
2013-08-27 14:19:19 +09:00
Carsten Haitzler 59e8bc5a35 Fix elm to use key not keyname (so xmodmap works) 2013-07-31 15:16:41 +09:00
Ryuan Choi 2ecff945b9 scroller: ELM_PRIV_XXX_SIGNALS adoption for scroller
Refactored signal declarations since b430c07ca1f1.
2013-07-16 08:11:52 +09:00
Jaehwan Kim d418b27b96 Add the elm_scrollable_interface_content_viewport_resize_cb_set.
When the viewport is resized, the enrolled function is called.
2013-06-30 14:42:34 +09:00
Daniel Juyung Seo 6cf684f02a elm: added more "focused" and "unfocused" documentations.
genlist, hover, index, list, map, photocam, progressbar, radio, scroller, slider, slideshow, spinner, toolbar, win.
2013-06-10 14:13:55 +09:00
Daniel Zaoui a40bed2a38 Elementary: Fix scroller APIs to be usable by all the widgets using the
scrollable interface.
2013-05-24 16:31:25 +03:00
Gustavo Lima Chaves d8be9d6cf1 Scroller can me made to snap to pages on scrolling now. 2013-05-17 15:37:37 -03:00
Flavio Ceolin d53cc519ff Welcome a new smart callback for scrollables -- page,changed. 2013-05-15 18:57:15 -03:00
cabelitos 52597125f7 Adding a new scroller API, to block its movements (by user input).
With this new API the user can block movements on X axis, Y Axis or
both. I was left with no option but to come up with this, side by side
with elm_object_scroll_freeze_push(), elm_object_scroll_hold_push()
and elm_object_scroll_lock_x_set() (or
elm_object_scroll_lock_y_set()), once all of these will act on *parent
and/or child* widgets too, making those useless for any pratical use
of scroll blocking. Here's a sane, new option, enjoy it.
2013-05-10 11:07:10 -03:00
Cedric Bail c929b33052 elementary: properly sanitize headers order. 2013-05-03 16:07:06 +09:00
Daniel Zaoui 187d6bf8de Elementary: replace eo_data_get for objects data referencing. 2013-05-01 11:04:09 +03:00
Daniel Juyung Seo 1ef3efd3e4 Revert "elm_scroller.c: merged two eo_do calls into one to get the benefit of eo."
setter and getter should not be used at one eo_do() calls.

This reverts commit a05909cee056ef181abb6c0705b51d842cc4c991.
2013-04-17 22:50:41 +09:00
Daniel Juyung Seo e0a78ef26f elm_scroller.c: merged two eo_do calls into one to get the benefit of eo. 2013-04-17 14:16:57 +09:00
Jaehwan Kim 87fc1389b9 Add the API elm_scroller_single_direction_set/get.
This sets how the content is scrolled.
2013-04-10 20:06:41 +09:00
Jaehwan Kim 85849217f9 Add the API elm_scroller_page_scroll_limit_set/get.
It sets the maxium of the movable page at flicking.
2013-04-06 13:09:59 +09:00
Daniel Juyung Seo 74b3eed5fd elm: print the error message inside elm_widget_sub_object_add().
1. Do not need to print the same error message from all the widget codes.
2. Even though elm_widget_sub_object_add() can be used internally, there should be no error message at all.
   Elm devs should fix it beforehand.
   So it looks ok to print the error message in elm_widget_sub_object_add() to force elm devs to fix it.
3. Got additional code cleanups.
2013-04-03 11:28:53 +09:00
Tom Hacohen d75cb616da Change usage of eo_do_super to the new prototype. 2013-03-18 16:15:12 +00:00
Jaehwan Kim 5f8af66123 Add the smart signals in scroller. "scroll,left", "scroll,right", "scroll,up", "scroll,down". 2013-03-15 18:53:17 +09:00