Commit Graph

183 Commits

Author SHA1 Message Date
Daniel Zaoui 7e396432ef Object Items: replace most of del_pre functions with destructor.
This change is not simple because Elementary has not been built from the
first day to work with Eo. Code had to be adapted to fit the new design.

The del_pre that have not been replaced yet can return FALSE and
prevent deletion. For these classes, code modification has to be deeper
and will be done later.
2014-11-12 12:03:58 +02:00
Daniel Zaoui ef03bc098e Object Items: remove legacy APIs.
They are now generated by Eolian.
2014-11-12 12:03:58 +02:00
Daniel Zaoui b01d01528a Object Items: remove casts that are no more needed.
It includes casts to Eo, Elm_Object_Item and to specific items data.
This belongs to the cleaning phase of the object items porting to Eo.
2014-11-12 12:03:57 +02:00
Daniel Zaoui 1db002db3a Elm Ctxpopup item: Migrate to Eo 2014-11-12 12:03:55 +02: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
Daniel Kolesa c159cb2ebc update according to Eolian syntax changes 2014-08-21 09:27:32 +01:00
Mykyta Biliavskyi 36ac3603d7 ctxpopup: Fix wrong popup size.
Summary:
In case, when ctxpopup content have larger size than parent object, (by height, width or both) was resized popup at the full width or height of parent object size.
@fix

Reviewers: raster, seoz, cedric, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D1266
2014-08-04 19:47:18 +09:00
Mykyta Biliavskyi 8b84bede4f ctxpopup: fix arrow geometry set.
Summary: edje_object_part_geometry_get - always returns 0, 0 geometry of arrow. On taking geometry directly from part - get real values. @fix

Reviewers: Hermet, cedric, seoz

Subscribers: Hermet

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-08-04 11:27:31 +02: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
Michal Jagiello bf3fe85b0d ctxpopup: Add get_items, get_last_item, get_first_item, get_next_item and get_prev_item API
Summary: API to get list of ctxpopup items and give the possibility to iterate the ctxpopup items

Reviewers: stanluk, z.kosinski, Hermet, seoz, raster

CC: Hermet, seoz

Differential Revision: https://phab.enlightenment.org/D1055
2014-07-03 13:05:28 +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
Daniel Juyung Seo af92b3e6f9 elm: call elm_widget_item_del instead of elm_object_item_del inside elementary.
This reduces only one more function call but this makes the elm code
more consistent between widgets.
2014-05-10 23:44:27 +09:00
Ryuan Choi 40a3850ee2 ctxpopup: Fixes that remains diskselector when dismissed ctxpopup of elm_datetime.
elm_object_content_unset should return child element which is unset.

Tests: elementary_test -to datetime
2014-05-09 23:02:56 +09:00
zmike 5757574678 ctxpopup should not blindly show arrows when they are not wanted by the theme
@fix
2014-04-28 11:01:20 -04:00
Daniel Zaoui 1303a6dbec Eolian: fix names for elc widgets.
Even if the file names are elc_..., the class names are supposed to be
elm_...
2014-04-22 16:39:35 +03:00
ChunEon Park 58ea3efa5d ctxpopup: dimiss ctxpopup if escape key is pressed.
rahter than just hide of the ctxpopup, dimiss will be much better for usability.
because press "Escape" is closed to "Cancel" meaning conceptually.
2014-04-17 15:51:37 +09:00
Jaeun Choi e88c793425 ctxpopup: apply key binding
Summary: This patch applies key binding to elc_ctxpopup.

Test Plan: None

Reviewers: Hermet, raster

Differential Revision: https://phab.enlightenment.org/D754
2014-04-17 15:41:50 +09:00
Jaeun Choi bde04f61e9 ctxpopup: sd->box null check and event_flag set for previous and next focus move.
Summary:
The original code was missing
- null check of sd->box
- event_flag value set
for previous and next focus move.
@fix

Test Plan: None

Reviewers: raster, seoz, Hermet

Differential Revision: https://phab.enlightenment.org/D753
2014-04-17 15:23:00 +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 2d802ca794 Ctxpopup: Adjusted to Eo2. 2014-04-10 09:34:58 +01:00
Iván Briano 02590f4877 Workaround broken popup on Terminology
As the comment in the code explains, when ctxpopup is shown, it's giving
focus to the inner list, which immediately decides to select the first
of its items, calling, in the process, its selection callback. This has
the very unfortunate, annoying and uselessly broken effect of making the
popup never showing up, and instead triggering the first action in it.

Since this behavior of "select first item on focus" seems to be the path
taken in other places, I'm letting the people that know what they want
to do about that figure out how to fix it properly.
2014-03-31 14:50:53 -03:00
Daniel Zaoui bb7822e7e2 Eolian: Integration of Ctx Popup 2014-03-20 15:19:50 +02:00
Daniel Zaoui e2206a1a22 Eolian: Integration of Elm Widget 2014-03-17 09:03:56 +02:00
Chris Michael e13f85f038 elm: Remove unused variables
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-03-06 12:42:57 +00:00
Carsten Haitzler 536101fc99 fix ctxpopup getting min size from content immediately on set
this isn't needed and will get recaulcated later when box calcs min
size and sets min size hint.

cherrypick-me @fix
2014-03-06 18:53:57 +09:00
Bora Hwang 12a6a48e72 ctxpopup: add a new api for ctxpopup which makes ctxpopup not to hide automatically
Summary:
Developer can use this API for the case when he/she wants ctxpopup not to hide
automatically when parent of ctxpopup is resized or language is changed.
Default value of "disabled" is EINA_FALSE. So if user sets "disabled" EINA_TRUE
and parent size changes, ctxpopup recalculates its size and position.
Since size of bg is set when setting parent only, it should be resized again.

Reviewers: Hermet, seoz, thiepha, raster

CC: c

Differential Revision: https://phab.enlightenment.org/D510
2014-02-09 18:11:47 +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
ChunEon Park f8d00ae0f2 elementary - override widget translation but work also the base widget's behavior.
Some widgets override the widget translation but it didn't inherit the base widget's function.
Becuase of it,The language changed won't be properly called in the widget tree.

Now it fixed it.
2014-01-23 20:20:43 +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 87b3d7d5b5 ctxpopup: Fixed typo and flourished comment. 2014-01-22 15:20:24 +09:00
Jihoon Kim 54ec084e76 fix some typos in comment and description 2014-01-22 13:20:15 +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
ChunEon Park 8f59ba7a1f elementary/ctxpopup - no need to use RESTACK callbacks anymore.
Now bg is smart member of the internal object.
let it have a behavior as the member of the smart object.
don't need to care it additionally.
2014-01-15 15:10:32 +09:00
Bora Hwang f4933dc49c ctxpopup: set smart member relationship for objects in ctxpopup
Summary:
to support mouse_down/up/move callbacks of ctxpopup,
all objects in ctxpopup should be in smart relationship with ctxpopup.
Also, with this patch, bg object and arrow object don't have to be called with
evas_object_show or evas_object_hide when ctxpopup is shown or hidden

Reviewers: Hermet, seoz, raster, thiepha

Reviewed By: seoz

Differential Revision: https://phab.enlightenment.org/D458
2014-01-15 14:42:13 +09:00
Daniel Juyung Seo 45ee408180 ctxpopup, entry: Check widget type by eo_isa not by evas_object_type
string compare.
2014-01-13 23:14:44 +09: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
Daniel Juyung Seo 6d71a23c3a elm lib: removed all the unnecessary empty lines.
being pedantic.
2013-12-15 06:18:35 +09:00
Daniel Juyung Seo 329190ce99 ctxpopup: disable content correctly on smart disable.
This is a fix of commit 1932e6713104bfe752097dab8b6902ed86b58493
2013-12-15 03:47:43 +09:00
ChunEon Park a50d31125d elementary/ctxpopup - disable the contents when they are exist. 2013-12-13 11:21:08 +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
WooHyun Jung eefe821c59 elementary/elc_ctxpopup.c : Focus-direction-go should be tried after checking focus next object. 2013-10-31 16:50:48 +09: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 8ec25b69fb elm: Added missing undefs. 2013-10-19 02:20:34 +09:00