Commit Graph

2741 Commits

Author SHA1 Message Date
WooHyun Jung cd79611626 efl_ui_calendar: apply new theme policy
Reviewers: jpeg, taxi2se

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D5578
2017-12-08 16:02:23 +09:00
Jaehyun Cho 1f1c3b9b27 efl_ui_popup: Fix class names 2017-12-08 16:02:23 +09:00
Sungtaek Hong 220fa4c178 efl_ui_popup_alert: refactor popup_alert_part
Summary: remove redundant logic for button part.

Test Plan: Run elementary_test->Efl.Ui.Popup_alert

Reviewers: jpeg, Jaehyun_Cho, woohyun

Reviewed By: Jaehyun_Cho

Subscribers: cedric, Blackmole, herb

Differential Revision: https://phab.enlightenment.org/D5577
2017-12-08 16:02:23 +09:00
Sungtaek Hong e7e375937b elm: introduce ELM_PART_OVERRIDE_PARTIAL
Summary:
ELM_PART_OVERRIDE_PARTIAL replaces ELM_PART_OVERRIDE and
ELM_PART_OVERRIDE_ONLY_ALIASES.
The difference is ELM_PART_OVERRIDE_PARTIAL calls super
ELM_PART_IMPLEMENT when subclass of part is not needed.

Test Plan:
Run elementary_test, Part Background, background part is well set.
           Run efl.ui.panes/efl.ui.flip, check content is well set.

Reviewers: jpeg, Jaehyun_Cho, woohyun

Reviewed By: Jaehyun_Cho

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D5566
2017-12-08 16:02:23 +09:00
Sungtaek Hong c12d947484 efl_ui_popup: remove unnecessary overides
Summary:
efl_ui_popup parts overrides efl_content and efl_text
         which are sometimes not needed.

Test Plan: Run elementary_test -> efl_ui_popup tests

Reviewers: jpeg, cedric, woohyun, Jaehyun_Cho

Reviewed By: Jaehyun_Cho

Subscribers: Jaehyun_Cho, Blackmole, herb

Differential Revision: https://phab.enlightenment.org/D5556
2017-12-08 16:02:23 +09:00
Woochan Lee 1588b8be0a efl_ui_spin_button: Replace legacy widgets to efl ui widgets.
Summary:
elm_button -> efl_ui_button class.

elm_entry will be changed after filter feature added.

Reviewers: Jaehyun_Cho, jpeg, woohyun

Reviewed By: Jaehyun_Cho

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D5555
2017-12-08 16:02:23 +09:00
Sungtaek Hong 5e4abdb873 efl_ui_popup: apply new theme logic for alert_scroll, alert_text 2017-12-08 16:02:22 +09:00
Sungtaek Hong 22c5f771be efl_ui_popup: apply new theme logic for efl_ui_popup 2017-12-08 16:02:22 +09:00
Sungtaek Hong 3490da0fff elm_code_widget: change efl_add to legacy_add
Summary:
elm_code_widget is legacy add, thus efl_add is not available.

Signed-off-by: Sungtaek Hong <sth253.hong@samsung.com>

Reviewers: jpeg, cedric, ajwillia.ms, woohyun

Differential Revision: https://phab.enlightenment.org/D5548
2017-12-08 16:02:22 +09:00
Sungtaek Hong 751cf2c0d0 efl_ui_widget: make Elm.Widget.theme, Elm.Widget.theme_object internal 2017-12-08 16:02:22 +09:00
Sungtaek Hong fc8cc4a9b3 efl_ui_widget: find theme just once in layout inherited widget
When a widget inherits layout in tries to set theme in group_add or in
constructor. When another widget inherits the previous widget, it sets
layout again with new klass name. This sets klass in the widget and
sets layout in super class, so that it can set layout only once.

Test Plan: Run efl_ui_widget related elementary test.

Reviewers: jpeg, cedric, woohyun, singh.amitesh

Differential Revision: https://phab.enlightenment.org/D5473
2017-12-08 16:02:22 +09:00
Sungtaek Hong f80ab519af efl_ui_widget: use elm_widget_element_update to set subobj edc
affected widget list:
efl_ui_clock: test, ampm
efl_ui_multibuttonentry: guidetext, label, closedbutton
efl_ui_slider: popup(indicator)
efl_ui_text: scroller, handler, magnifier, cursor, selection, anchor
2017-12-08 15:57:26 +09:00
Sungtaek Hong dd4467505e efl_ui_widget: find new edc resource for efl_ui_widgets
new eo widgets(efl_ui_ prefix) finds new edc group in
data/elementary/themes/edc/efl/*.edc.
New group name is "klass/group:style" and "base" group name and
"default" style name can be omitted.

for now, separator for style is ':' but needs to be decided.
2017-12-08 15:57:26 +09:00
Sungtaek Hong cff9b1b11a efl_ui_widget: add new internal EAPI for new group name
theme_klass: set/get klass name used for resize_obj
theme_element: set/get group name used for resize_obj
theme_style: set/get style name used for resize_obj
element_update: automatically sets and apply theme for
             sub object of widget.
2017-12-08 15:57:25 +09:00
Andy Williams bdcd034af5 elm_code: Update background handling to work with transparency better 2017-12-07 23:39:49 +00:00
Andy Williams 1a5d6fa93a elm_code: Adding initial support for alpha channel 2017-12-07 23:39:49 +00:00
Jean-Philippe Andre fa786667b8 edje: Rename events according to recent rename
Ref T5315
2017-12-07 10:24:08 +09:00
Marcel Hollerbach eee6fbad78 focus: more testcases! 2017-12-06 16:10:18 +01:00
Marcel Hollerbach c1c58cfb69 efl_ui_focus_manager_calc: fix first touch setup for none regular tests
we had the issue that we stopped looping if we are a regular end. but we
need to continue until we have no rec_manager anymore.
2017-12-06 16:10:18 +01:00
Shinwoo Kim 763c634dce elm: Use EFL_UI_WIN_CLASS to check if an object is window
The EFL_ACCESS_WINDOW_INTERFACE was used to check if an object is window.
This could make sense. But it would be better to use EFL_UI_WIN_CLASS for
consistency.
2017-12-06 14:54:49 +09:00
Shinwoo Kim 6a6685ab21 elm: Fix _elm_widget_onscreen_is for window
A window is using ecore_evas geometry value for its evas_object geometry value.
The evas_output_viewport x(y) value which is used in _elm_widget_onscreen_is
is always 0. So _elm_widget_onscreen_is could return EINA_FALSE, if ecore_evas
geometry x(y) value is bigger than 0, even though a window object is on screen.
So it is not correct to compare ecore_output_viewport and evas_object geometry
for a window object. Moreover it does not make sense.
2017-12-06 14:23:44 +09:00
Amitesh Singh 54ae9cc18b edje: rename Edje.Object to Efl.Canvas.Layout 2017-12-06 13:12:29 +09:00
Marcel Hollerbach 78afa2fb84 efl_ui_focus_user/object: fix api duplication
just like the commit before, this fixes duplicated api names
2017-12-05 17:19:28 +01:00
Marcel Hollerbach baf624680d efl_ui_focus_manager: fix api duplication 2017-12-05 17:19:28 +01:00
Yeongjong Lee 93492bcc3b elm_widget: simplify _eval_registration_candidate
Test Plan: make check

Reviewers: bu5hm4n, jpeg

Reviewed By: jpeg

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D5588
2017-12-05 18:35:31 +09:00
Amitesh Singh bdc3969452 edje: rename intf Efl.Canvas.Layout_Group to Efl.Layout.Group 2017-12-05 16:18:32 +09:00
Amitesh Singh c7aa3b2f83 edje: rename intf Efl.Canvas.Layout_Calc to Efl.Layout.Calc 2017-12-05 16:18:32 +09:00
Amitesh Singh 7b3fde4d4b edje: rename intf Efl.Canvas.Layout.Signal to Efl.Layout.Signal 2017-12-05 16:18:32 +09:00
Jean-Philippe Andre 207a0cf3e3 eo: Move hacky API auto_unref to C only
This API is meant to be used by parts only, and by bindings dealing with
part objects. This patch fixes make check which got broken in the after
the previous one (cxx).
2017-12-05 15:06:34 +09:00
Jean-Philippe Andre 052d9dda44 cxx: Include edje from elementary 2017-12-05 15:01:45 +09:00
Jean-Philippe Andre c372e5e6c7 win: Allow unref until deletion
This is for bindings. I wish I could actually distinguish the use case
more (between efl_add() from C and instantiation from C++).
2017-12-05 10:15:40 +09:00
Lauro Moura 09221f8516 elm: Move legacy enums to elm_general.eot.
efl_ui_text and friends uses some enums currently defined in
elm_entry.eo. The latter is exported outside the elm public eolian eos
and never generated.

This commit moves the enums to the "transition" file elm_general.eot.
2017-12-04 15:47:52 -03:00
Stefan Schmidt 9cefba4e90 docs: fill in missing docs for efl_ui_calendar_item eo class 2017-12-04 16:34:23 +01:00
Stefan Schmidt 0d0e677431 docs: fill in missing docs for efl_ui_popup_alert eo class 2017-12-04 15:42:36 +01:00
Stefan Schmidt 5ee90bcd04 docs: fill in mising docs for efl_ui_popup_anchor class 2017-12-04 15:32:48 +01:00
Stefan Schmidt 110f1b66a6 docs: fill in mising eo file docs for efl_ui_popup 2017-12-04 15:29:43 +01:00
Amitesh Singh 10103b9b45 efl.gfx: move scale{} from efl.ui.base to efl.gfx 2017-12-04 14:38:39 +09:00
Andy Williams 756964c493 Revert "elm_code: Call parent theme_apply when we're applying"
This reverts commit 3e5e994360.
This crashes within Edi. The partial solution is not good enough.
2017-12-01 16:44:34 +00:00
Amitesh Singh ad9e36d750 focus: use elm_object_focus_get instead 2017-12-02 00:54:21 +09:00
Yeongjong Lee 9fac52134c efl_ui_spin_button: check focus state
Summary:
Because toggle_entry function control entry focus, it need to check
focus state in focus changed callback

Test Plan:
1. elementary_test - Efl.Ui.Spin.Button
2. Click the entry of spin_button

Reviewers: Jaehyun_Cho, CHAN

Reviewed By: Jaehyun_Cho

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D5569
2017-12-01 12:06:24 +09:00
Marcel Hollerbach 38b3ef1b8c elm_genlist: use the correct elm_object_focus_get function
genlist does not get focus anymore, only its children are getting them.

fix T6425
2017-11-30 20:07:52 +01:00
Marcel Hollerbach 1d7833a4b2 efl_ui_focus_composition: fix docs 2017-11-30 19:20:42 +01:00
Andy Williams 3e5e994360 elm_code: Call parent theme_apply when we're applying 2017-11-30 17:36:30 +00:00
Andy Williams c89dc4e0e4 elm_code: If showing line numbers don't resize at 10 lines.
Content will still shift at 100 but that should be less intrusive
2017-11-29 17:37:21 +00:00
Andy Williams 54d3091133 elm_code: Don't bold beginnings of lines
Fixes T6444
2017-11-29 16:17:27 +00:00
Amitesh Singh 038e492fe1 focus: fix build break after previous commit. 2017-11-29 19:46:04 +09:00
Amitesh Singh 29b47e0a07 focus: remove focus.get{} from widget.eo
This is taking care by focus manager now.
2017-11-29 19:25:14 +09:00
Jaehyun Cho 4b18e754de elm_part_helper: Change macro name for default content part 2017-11-29 13:43:21 +09:00
Chris Michael edc6ee8680 elementary: Remove set but unused variables
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2017-11-28 11:42:01 -05:00
Woochan Lee e8238522be efl_ui_spin: Support value change using mouse wheel.
Summary:
Enable value change using wheel.

(Up, Down key value change will be supported after D4933 dicussing.)

Test Plan: elementary_test efl_ui_spin test sample.

Reviewers: Jaehyun_Cho, jpeg, woohyun

Reviewed By: Jaehyun_Cho

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D5546
2017-11-28 20:03:06 +09:00
Jaehyun Cho a3ad64dcd0 efl_ui_popup: Replace Efl.Container to Efl.Content to rebase 2017-11-28 17:15:42 +09:00
Jaehyun Cho dcb7093c4c efl_ui_popup_alert: Remove expandable property for now
It needs more time to stabilize expandable property.
So the expandable property is removed for now.
The expandable property will be added later.
2017-11-28 17:15:42 +09:00
Jaehyun Cho c752d8fe6b efl_ui_popup: Make backwall efl part object of Efl.Ui.Popup 2017-11-28 17:15:42 +09:00
Jaehyun Cho 91df6723c9 efl_ui_popup: Rename bg_set with backwall_set
Since "background" is used as a basic part property, "backwall" is used
to indicate the area behind efl_ui_popup.
2017-11-28 17:15:42 +09:00
Taehyub Kim e65731b755 efl_ui_popup: add _calc_align function in sizing eval function
Summary: add _calc_align function in sizing eval function to show popup correctly.

Reviewers: Jaehyun_Cho, jpeg, cedric, thiepha, Blackmole, woohyun

Reviewed By: Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D5373
2017-11-28 17:15:42 +09:00
Taehyub Kim 8301e66d87 efl_ui_popup: add timeout signal
Summary: add the timeout signal for user notification

Reviewers: Jaehyun_Cho, jpeg, cedric, Blackmole, thiepha, woohyun

Reviewed By: Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D5372
2017-11-28 17:15:42 +09:00
Jaehyun Cho 27c0c90423 efl_ui_popup_alert: Define Clicked_Event structure 2017-11-28 17:15:42 +09:00
Jaehyun Cho a44e8cec39 efl_ui_popup: Replace group_add/del with constructor/destructor 2017-11-28 17:15:42 +09:00
Jaehyun Cho b85cebdb96 efl_ui_popup: Code refactoring to replace legacy APIs 2017-11-28 17:15:42 +09:00
JinYong Park 0928335fbc efl_ui_popup: remove parent_window_get method
Summary: remove Efl.Ui.Popup's internal method "parent_window_get"

Test Plan: elementary_test -to efluipopup

Reviewers: jpeg, Jaehyun_Cho, woohyun, herb

Reviewed By: Jaehyun_Cho

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D5363
2017-11-28 17:15:42 +09:00
JinYong Park 2b2bc50e8b efl_ui_popup: replace title_set to efl_text_set with efl_part
Summary: Replace Efl.Ui.Popup.Alert's title set method to using efl_text_set with efl_part

Test Plan: elementary_test -to efluipopupalert

Reviewers: jpeg, Jaehyun_Cho, woohyun, herb

Reviewed By: Jaehyun_Cho

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D5359
2017-11-28 17:15:42 +09:00
Taehyub Kim 8d315ce7aa efl_ui_popup: add timeout property
Summary: add timeout property

Test Plan:
1. run elementary_test -to efluipopup
2. after 3 seconds, popup will be delete

Reviewers: Jaehyun_Cho, jpeg, woohyun, thiepha, Blackmole, cedric

Reviewed By: Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D5205
2017-11-28 17:15:42 +09:00
JinYong Park c8c7ac8aae efl_ui_popup_anchor: add Efl.Ui.Popup.Anchor class
Summary:
Add initial code for Efl.Ui.Popup.Anchor class.
It supports adding anchor object to popup.

Test Plan: 1. run elementary_test -to efluipopupanchor

Reviewers: Jaehyun_Cho, thiepha, herb, jpeg, cedric, woohyun

Reviewed By: Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D5126
2017-11-28 17:15:42 +09:00
JinYong Park a7082df12b efl_ui_popup: remove unnecessary function call
Summary:
In _calc_align function, it could get align property through Efl_Ui_Popup_Data *pd directly,
but call align_get function previously.

Reviewers: Jaehyun_Cho, herb, thiepha, jpeg, cedric, woohyun

Reviewed By: Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D5207
2017-11-28 17:15:42 +09:00
Taehyub Kim f5010b7ba6 efl_ui_popup_alert_scroll: check sizing evaluation while scroller is changed
Summary: add a sizing check variable for safety of sizing evaluation when the min size of scroller is changed.

Test Plan:
1. run elementary_test
2. search the sample with "popup" keyword
3. click the Efl Ui Popup Alert Scroll sample

Reviewers: Jaehyun_Cho, jpeg, woohyun, thiepha, Blackmole, cedric

Reviewed By: Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D5204
2017-11-28 17:15:42 +09:00
JinYong Park 2e9042fae1 efl_ui_popup: remove efl_ui_popup_position_set
Summary:
Remove efl_ui_popup_position_set.
Its functionality is replaced with efl_gfx_position_set.

Test Plan:
  1. elementary_test -to efluipopup

Reviewers: Jaehyun_Cho, herb, thiepha, woohyun, jpeg, cedric

Reviewed By: Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D5129
2017-11-28 17:15:42 +09:00
JinYong Park 0365bf1e13 efl_ui_popup: use efl_data_scope_get instead of using 'self' object
Summary:
Use efl_data_scope_get to get Efl_Ui_Popup_Data structure.
There is no reason using "self" object in Efl_Ui_Popup_Data.

Reviewers: Jaehyun_Cho, herb, thiepha, woohyun, jpeg, cedric

Reviewed By: cedric

Differential Revision: https://phab.enlightenment.org/D5128
2017-11-28 17:15:42 +09:00
Taehyub Kim 3dccf133bb efl_ui_popup_alert_text: add Efl.Ui.Popup.Alert.Text Class
Summary:
Add initial code for Efl.Ui.Popup.Alert.Text Class.
It supports setting texts on the content area.

Test Plan: 1. run elementary_text -to efluipopupalerttext

Reviewers: Jaehyun_Cho, jpeg, thiepha, cedric, woohyun, Blackmole

Reviewed By: Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D5124
2017-11-28 17:15:42 +09:00
Taehyub Kim f22d40b1e6 efl_ui_popup_alert_scroll: add Efl.Ui.Popup.Alert.Scroll class
Summary:
Add initial code for Efl.Ui.Popup.Alert.Scroll Class.
It supports scrolling content.

Test Plan: 1. run elementary_test -to efluipopupalertscroll

Reviewers: Jaehyun_Cho, jpeg, thiepha, cedric, Blackmole, woohyun

Reviewed By: Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D5123
2017-11-28 17:15:42 +09:00
Taehyub Kim b1eac4c46b efl_ui_popup: cover the corner case of popup sizing evaluation
Summary: cover the corner case of popup sizing evaluation

Test Plan: 1. run elementary_test -to efluipopup

Reviewers: Jaehyun_Cho, jpeg, thiepha, Blackmole, woohyun, cedric

Reviewed By: Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D5146
2017-11-28 17:15:42 +09:00
Taehyub Kim d3a14d08b0 efl_ui_popup_alert: add Efl.Ui.Popup.Alert class
Summary:
Add initial code for Efl.Ui.Popup.Alert class.
It supports setting title and buttons.

Test Plan: 1. run elementary_test -to efluipopupalert

Reviewers: Jaehyun_Cho, jpeg, cedric, thiepha, Blackmole, woohyun

Differential Revision: https://phab.enlightenment.org/D5108
2017-11-28 17:15:42 +09:00
Taehyub Kim b38ad0971c efl_ui_popup: make popup size expandable
Summary: make popup size expandable

Reviewers: Jaehyun_Cho, jpeg, cedric, thiepha, Blackmole, woohyun

Differential Revision: https://phab.enlightenment.org/D5107
2017-11-28 17:15:42 +09:00
Taehyub Kim 0005b3105e efl_ui_popup: add align and position properties
Summary:
add align feature and position properties (center, left, right, top, bottom)
efl_ui_popup_position_set should be seperated from evas_object_move
since evas_object_move can be called internally.

Test Plan: 1. run elementary_test -to efluipopup

Reviewers: Jaehyun_Cho, jpeg, cedric, thiepha, Blackmole, woohyun

Reviewed By: Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D5105
2017-11-28 17:15:42 +09:00
JinYong Park bccd97bd62 efl_ui_popup: add bg_set and bg_repeat_events_set/get API
Summary:
add bg_set and bg_repeat_events_set/get API
bg_set enables user change popup's outside bg
bg_repeat_events_set enables popup's outside bg repeat events

Test Plan:
 1. run elementary_test -to efluipopup
 2. click outside area of popup
 3. click button in popup

Reviewers: Jaehyun_Cho, herb, thiepha, woohyun, cedric, jpeg, singh.amitesh

Reviewed By: Jaehyun_Cho

Subscribers: jpeg

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D5054
2017-11-28 17:15:42 +09:00
Taehyub Kim 996a975506 efl_ui_popup: add Efl.Ui.Popup class
Summary: add initial code for Efl.Ui.Popup class

Test Plan: 1. run elementary_test -to efluipopup

Reviewers: Jaehyun_Cho, Blackmole, thiepha, woohyun, cedric

Reviewed By: Jaehyun_Cho

Subscribers: bu5hm4n, cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D5037
2017-11-28 17:15:42 +09:00
Sungtaek Hong 8193864d7d elc_combobox: use elm_legacy_add for internal component
Summary:
elm_combobox has entry, genlist, hover as its component.
Those components should be marked as legacy during efl_add.

Test Plan:
Run elementary test.
           Run combobox test.

Reviewers: jpeg, cedric, woohyun

Differential Revision: https://phab.enlightenment.org/D5542
2017-11-28 11:47:43 +09:00
Prasoon Singh 8b0c8c2eb7 elm_entry : Added access action interface in entry.
Summary:
Added access action interface in entry. On activate action from atspi client , entry will emit click signal and input panel
would be shown.

Test Plan:
When activate action comes,  entry will emit click signal and input panel
should be shown.

Reviewers: shilpasingh, kimcinoo

Reviewed By: shilpasingh

Subscribers: cedric, jpeg, rajeshps, govi

Differential Revision: https://phab.enlightenment.org/D5544
2017-11-28 09:56:32 +09:00
Andy Williams d43fe6c16f elm_code: Reload grid colours on theme change 2017-11-27 21:23:55 +00:00
Woochan Lee eefcb49419 efl_ui_spin: Add new spin and spin_button widgets
Summary:
https://phab.enlightenment.org/T5900

Creating base class(efl_ui_spin) to support various shape of spinner.

Added button interaction widget efl_ui_spin_button inherited from efl_ui_spin.

Test Plan: Add tests in elementary_test.

Reviewers: Jaehyun_Cho, woohyun, jpeg, singh.amitesh

Subscribers: jenkins, id213sin, cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D5424
2017-11-27 19:40:31 +09:00
Pawel Aksiutowicz 59a573fabb elementary: fixed single typos in few modules
Reviewers: stanluk, lukasz.stanislawski

Reviewed By: lukasz.stanislawski

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D5534
2017-11-27 17:36:58 +09:00
Sungtaek Hong b8789e52ae efl_ui_bg: add Efl.Gfx.color_get.
Summary:
since legacy elm_bg_color_set/get is changed to efl_gfx_color_set/get,
efl_gfx_color_get also should get color of inner rect.

@fix

Test Plan:
1) run elementary test.
           2) run Bg EO API(Efl.Ui.Bg)
           3) set/unset "Bg color" check.
           4) observe printed color values.

Reviewers: jpeg, woohyun, cedric

Differential Revision: https://phab.enlightenment.org/D5429
2017-11-27 11:55:24 +09:00
Marcel Hollerbach bed67ef0d0 elm: fix legacy code
earlier elm_object_focused_object_get returned gengrid genlist toolbar
objects if a item of them is focused. This should fix that.

thank you @davemds for the report!
2017-11-26 19:47:05 +01:00
Al Poole 5abeeb980a elm_code: set the color scheme from the default edc.
This allows us to override in the application also. Work from
myself and @ajwillia.ms.
2017-11-26 12:36:42 +00:00
Carsten Haitzler 01ec011f8e elm ifrace scrollable - fix uninitialized values on scroll asjust
dragable values were invalid (not fetched) so vx/y were junk and this
was making decisions based on that. guarantee it to be 0.

@fix
2017-11-24 23:52:08 +09:00
Carsten Haitzler be6f4a870a efl ui slider - fix crashes with fmt callback data and class data
the format free cb was passed the class data (sd) as the callback data
but this was freed by the time _indi_default_format_free_cb was called
causing an invalid access. fix this by looking it up from the obj
which is probably invalid at this point...
2017-11-24 23:51:38 +09:00
Jean-Philippe Andre 7e76b1e7ef mbe: Fix invalid part handling
Only the text parts need special handling.
Ping @CHAN :)
2017-11-24 17:25:30 +09:00
Jean-Philippe Andre 1aedcdaf7a win: Fix window background EO APIs
Broken in a previous commit
2017-11-24 17:10:30 +09:00
Lukasz Stanislawski 2016bacd17 elm: add custom access state for Elm.Hover
Reviewers: jpeg

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D5523
2017-11-24 16:50:01 +09:00
Jean-Philippe Andre 9fbd9497b0 layout: Fix erroneous warnings (from earlier patch)
Oops. Bad check :)
2017-11-24 16:27:54 +09:00
Jean-Philippe Andre dee149f3aa elm_part: Mark as auto-unref before finalize
This simplifies the IMPLEMENT macro, which can now be a proper function.
Also, do not set a parent for the part object, as it's not useful and
could mess up the refcount.
2017-11-24 16:27:18 +09:00
Jean-Philippe Andre 8608e8dc70 part bg: Fix up some unnecessary complexity
See previous commit :)

Note: right now the background part has a small 3d indent which comes
from the legacy theme being used. This will be fixed soon.
2017-11-24 16:12:31 +09:00
Sungtaek Hong 3c47a4f9f9 efl_ui_layout: create efl_ui_bg when efl_part for background is called.
Reviewers: woohyun, jpeg, cedric

Subscribers: felipealmeida, cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D5151
2017-11-24 16:00:22 +09:00
Jean-Philippe Andre e9d7436fd2 widget: Add EINA_UNUSED 2017-11-24 14:36:01 +09:00
Sungtaek Hong 8f2369c5b6 efl_ui_widget: secure elm_legacy_add flag
Summary:
_elm_legacy_add goes back to EINA_FALSE after setting sd->legacy.
if constructor get called again after going back to EINA_FALSE,
sd->legacy should remain EINA_TRUE.
also, elm_legacy_add() should not be called non-elm_widget.

Test Plan:
Run elementary test->Efl.Ui.Text.Label.
Check legacy flag in _elm_theme_object_set() for efl_ui_win.
Check legacy flag for efl_ui_text after scrollable text is added.

Reviewers: jpeg, woohyun

Reviewed By: jpeg

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D5529
2017-11-24 14:32:36 +09:00
Pawel Aksiutowicz 5de4d45666 elementary: fix typos in elm_win_legacy
Reviewers: stanluk, lukasz.stanislawski, cedric

Reviewed By: cedric

Subscribers: cedric, jpeg

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
2017-11-23 15:41:43 -08:00
Pawel Aksiutowicz c3f424b896 elementary: fix typos in elm_gesture_layer
Reviewers: stanluk, lukasz.stanislawski

Subscribers: cedric, jpeg

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
2017-11-23 15:41:00 -08:00
Pawel Aksiutowicz 7108f9c0b7 elementary: fix typos in elm_atspi_bridge
Reviewers: stanluk, lukasz.stanislawski

Reviewed By: lukasz.stanislawski

Subscribers: cedric, jpeg

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
2017-11-23 15:40:22 -08:00
Lauro Moura b47dce6713 elementary: Windows requires EAPI for the legacy .eo.h
Summary:
After the reorganization of elm eos, some sources include the .eo
headers directly instead of through Elementary.h. This causes problems
on windows as the declarations won't be decorated with the dllexport
attributes.

Reviewers: cedric, felipealmeida, jpeg, vtorri

Subscribers: jenkins

Tags: #windows, #efl

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
2017-11-23 15:32:11 -08:00
Lauro Moura 0dbeb91bb9 elementary: fix compilation of elm_code test on windows
Summary:
Added some guards to avoid redefinition of functions.

Partially fixes T5866, as there is still the question whether we should
test internal functions or not, as stated by jpeg in the comments.

Reviewers: vtorri, felipealmeida, jpeg, cedric

Reviewed By: cedric

Subscribers: jenkins, cedric

Maniphest Tasks: T5866

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
2017-11-23 15:30:32 -08:00
Jean-Philippe Andre b798005e80 elm: Add hack to make test case work
Because of the way elm_code test case is written, by directly including
the C file, we end up with two symbols for the internal _elm_legacy_add
flag. This makes some test case fail (after applying a pending patch).

Solution found by Sungtaek Hong.

elm_code test case needs to be fixed. Don't include the C files
directly, testing static inlines should be done through a common .x or
something, but not by including the C file itself. This has led and will
lead to many issues.
2017-11-23 15:45:49 +09:00
Jean-Philippe Andre f702826a90 bg: Remove trailing \n in ERR message 2017-11-23 15:08:35 +09:00
Shilpa Singh a2c342270c efl_access: Add reading_info_type set/get APIs
Summary:
Information obtained by atspi client is name, role, description, state of an object.
reading_info_type_set/get APIs give control to application to decide on the information
that can be exposed.

Test Plan:
The reading info is added as an attribute of an accessible object, on query of
attribute, reading_info_type and corresponding character buffer should be given to ATSPI clients.

Reviewers: kimcinoo

Subscribers: cedric, govi, rajeshps, jpeg

Differential Revision: https://phab.enlightenment.org/D5524
2017-11-23 12:07:52 +09:00
Andy Williams 06778385f1 elm_code: don't crash on NULL scope
This could be triggerd with the cursor was not in the file
2017-11-22 19:31:19 +00:00
Al Poole 75a450f2ba efl_ui_focus_manager: remove unnecessary debugging printf. 2017-11-22 16:11:12 +00:00
Marcel Hollerbach 9fc0cafde4 efl_ui_focus_manager: fixup previous commit
i forgot to git commit --amend ... i am sorry :[
2017-11-22 14:57:57 +01:00
Marcel Hollerbach 0f8e0e2324 efl_ui_focus_manager: try to error out instead of a infinit recusrion 2017-11-22 14:45:47 +01:00
Marcel Hollerbach c745bdcb5c elm_gengrid: jump back to the last selected item on gengrid focus jump
this moves the item into selection and focus that was last focused or
selected.
2017-11-22 13:24:52 +01:00
Marcel Hollerbach 5efe5cd135 efl_ui_win: use new api
we can just call the manager to prepare itself in the direction we have,
this means we dont need this loop here.
2017-11-22 13:24:52 +01:00
Marcel Hollerbach 0d50783077 efl_ui_focus_manager: move preparing of the manager to its own api
with this some imlpementations can decide if they want to fallback to
some older focused item once they need to prepare themself for this
call.
2017-11-22 13:24:52 +01:00
Marcel Hollerbach 6264198261 elm_gengrid: respect item config 2017-11-22 13:24:52 +01:00
Marcel Hollerbach 1e96f9643e elm_gengrid: remove on_focus_update
this hook is not executed anymore, code for remembering the last focused
item will be added in the following commits.
2017-11-22 13:24:52 +01:00
Amitesh Singh 92b4ad824b Efl.Ui.Calendar: fix wrong define - again! 2017-11-22 17:14:07 +09:00
WooHyun Jung faf3fb50f9 efl_ui_calendar: fix wrong define 2017-11-22 16:54:30 +09:00
Prasoon Singh 248cb96c42 elm_genlist: Add signals to communicate drag start and stop to atspi client.
Summary:
Send signal EFL_ACCESS_STATE_ANIMATED when dragging starts and stops to atspi clients and also set EFL_ACCESS_STATE_ANIMATED
when reorder mode is enabled.

Test Plan: When reorder happens atspi client should receive object:state-changed:animated signal.

Reviewers: kimcinoo, shilpasingh

Reviewed By: shilpasingh

Subscribers: cedric, govi, rajeshps, jpeg

Differential Revision: https://phab.enlightenment.org/D5515
2017-11-22 14:17:41 +09:00
Amitesh Singh 3661f71954 elm: efl access: fix the warnings.
There were many warnings while building elm.

--->
./src/lib/elementary/efl_access.eo.h:433:55: warning: duplicate ‘const’ declaration specifier
 -Wduplicate-decl-specifier]
 EOAPI void efl_access_attribute_append(Eo *obj, const const char *key, const const char *value);
<---
2017-11-22 13:46:39 +09:00
Shilpa Singh 11292dec35 efl_access: Add attribute_append, attributes_clear APIs
Summary:
Add attribute append and attributes clear API, attributes of widget/widget_item helps in adding additional information
about the widget/widget item in the form of key-value pair.

Test Plan:
Query the attributes using atspi_accessible_get_attributes in atspi_client and an hash table consisting
of updates attributes should be returned.

Signed-Off By: Shilpa Singh <shilpa.singh@samsung.com>
Signed-Off By: Lukasz Wlazly <l.wlazly@partner.samsung.com>

Reviewers: kimcinoo, lukasz.stanislawski

Subscribers: cedric, govi, rajeshps, jpeg

Differential Revision: https://phab.enlightenment.org/D5510
2017-11-22 11:54:45 +09:00
Marcel Hollerbach 78664198bd elm_widget: remove focused unfocused events
the ones form efl.ui.focus.object are now taken.
2017-11-21 20:37:21 +01:00
Marcel Hollerbach 149d03d8f4 efl_ui_text: remove the event emits here
with the previous commit we emit the legacy events for each interface
event, and thus this event is not needed.

However, in elm_entry this means that changing editable will _not_
reemit the focus event (where i am not that sure if that is correct or
not).
2017-11-21 20:37:21 +01:00
Marcel Hollerbach 1ef8092ad0 elm_fileselector: forward focus changed from entry to fileselector
the old event is then emitted from elm_widget.c
2017-11-21 20:37:20 +01:00
Marcel Hollerbach 6b85f7dbdf elm_widget: move event emission to a callback
the callback gets triggered if the new event got triggered.
2017-11-21 20:37:20 +01:00
Marcel Hollerbach d9c584eec1 efl_ui_multibuttonentry: migrate to efl_ui_focus_object events
this merges the two two events callbacks into one
2017-11-21 20:37:20 +01:00
Marcel Hollerbach fce2e7fdb0 elm_layout: call the super for calling the events and methods
this simplifies the code
2017-11-21 20:37:20 +01:00
Marcel Hollerbach 1639a9e6bf elm_multibuttonentry: on_focus_update is not needed anymore
the widget itself never gets focus, the elements of the button are
getting them. MBE is basically just a box. The text input for the entry
is setted by elm_entry itself when it gets focus.

The legacy "focused" event is emitted somewhere seperatly.
2017-11-21 20:37:20 +01:00
Marcel Hollerbach e1ff459e1b elm_spinner: lets use the new event 2017-11-21 20:37:20 +01:00
Marcel Hollerbach a2eda0665e elm_popup: lets use the new event 2017-11-21 20:37:20 +01:00
Marcel Hollerbach da89778ee0 elm_hoversel: lets use the new event 2017-11-21 20:37:20 +01:00
Marcel Hollerbach 7fddb1ea1a elm_fileselector: lets use the new event 2017-11-21 20:37:20 +01:00
Marcel Hollerbach e8cfdb5dcd efl_ui_focus_manager_calc: keep focus history arround
this now keeps items arround even if a explicit other widget was
focused. This is usefull if we have a few logical items on the focus
stack and you remove them.
2017-11-21 16:32:27 +01:00
Marcel Hollerbach 688e7001c1 efl_ui_focus_manager_calc: remove a logical item that caused a redirect
so we dont try to focus a logical item.
2017-11-21 16:32:27 +01:00
Marcel Hollerbach a58cc75e55 efl_ui_focus_layer: rely on _manager_in_chain_set
so we dont have to set the direct by hand anymore
2017-11-21 16:32:27 +01:00
Marcel Hollerbach 8c68c85706 elm_widget: dont use the inner var for searching the top widget
you think there is only one elm_parent behind the elementary property
parent? Oh no! Elm_Notify and Elm_Popup have theire own parent fields,
and those fields are not returned when calleing elm_widget_parent_get,
they are also not given to the elm_widget implementation of
elm_widget_top_get, so a call to elm_widget_top_get stalls at elm.notify
or elm.popup.

fix T6389
2017-11-21 16:32:27 +01:00
Pawel Aksiutowicz b291d25dfc elementary: removed warning from efl_ui_win
Reviewers: stanluk, lukasz.stanislawski

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D5503
2017-11-21 11:12:45 +09:00
Derek Foreman f0f02d3386 win: make _elm_win_opaque_update check that it has a wayland window
This function will destroy non-wayland engine data, so it should
make sure it's actually operating on a wayland window.

Originally the sd->wl.win test was sufficient, but now wl.win is
present on non-wl windows to facilitate cut and paste, so we need
to check more thoroughly.
2017-11-20 12:55:48 -06:00
Pawel Aksiutowicz 36b6935304 elementary: removed warning from elm_widget
Reviewers: stanluk, lukasz.stanislawski, bu5hm4n

Reviewed By: bu5hm4n

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D5506
2017-11-20 16:13:46 +01:00
Jean-Philippe Andre eae0885e0a slider: Implement Efl.Content 2017-11-20 20:39:44 +09:00
Jean-Philippe Andre 443be32129 radio: Implement Efl.Content 2017-11-20 20:39:34 +09:00
Jean-Philippe Andre 026430578a elm: Fix minor warning (return void) 2017-11-20 20:34:17 +09:00
Jean-Philippe Andre 1c200331f1 button: Implement Efl.Content set/get/unset
This fixes make check (cxx compilation).
2017-11-20 20:22:48 +09:00
Jean-Philippe Andre 029cf28745 image: Return file+key even for edje objects 2017-11-20 20:06:01 +09:00
Jean-Philippe Andre a24d24ff6b slider: Remove bad defines from EO file 2017-11-20 19:22:15 +09:00
Jean-Philippe Andre 372bf108a7 win: Make wm_available_rotations simpler for EO
The problem with the API is that it uses an array of ints, which is not
well defined in EO. We could set an array of pointers to int, but that
would be super awkward to use.

I believe the original API has been slightly over-engineered as it was
passing an array of available rotations when in reality only 4 rotations
could be supported (0, 90, 180, 270). It seems to me that the day
arbitrary rotation needs to be allowed, another API would be required
(maybe with a range, or a single bool flag to allow anything).

I have not modified the internal code, which still uses an array (as
ecore evas uses that).

Mote: ec464939d9 removed wm_rotation_supported_get(), as well as
the preferred rotation from EO, but they could easily be added back if
needed.

Note 2: I couldn't test as desktop E doesn't support WM rotations.

Ref T5322
2017-11-20 19:02:29 +09:00
Jean-Philippe Andre dda18948ae efl: Split Efl.Container and Efl.Content
When I first implemented the Efl.Container interface I made a mistake of
mixing "single slot" content API's with "multiple children" content
API's.  This should fix that, by separating API's that are for a single
part and those that deal with a list of children.

  Efl.Content: Single slot. This will be used a lot by efl_part()
objects, and for the default content of widgets (eg. the window
content).

  Efl.Container: Multiple children. Used by lists, boxes, layouts
(edje/elm), etc...

I didn't see any class that implemented both interfaces (note: Layout
implements Container and Button implements Content, so technically
Button implements both through inheritance).

For now the eo_prefix is not changed in Efl.Container. I wonder if it
should be reset (to efl_container) or not. This would only affect the C
API.

Ref T5328
2017-11-20 19:02:09 +09:00
Marcel Hollerbach 67188ba22b efl_ui_focus_manager: emit callbacks after stack change
fix T6389
2017-11-20 09:13:08 +01:00
Marcel Hollerbach 87900a97d0 efl_ui_focus_manager_sub: remove event callback array when destructing
i forgot about that and this leads to a segfault in enlightenment, the
object then segfaults when the parent manager emits a event and then the
code tries to access the private data of a dead object.
2017-11-20 09:13:08 +01:00
Lukasz Stanislawski 2f294aeb88 elm: add "activate" action to ctxpopup items
Summary: Change-Id: I0974c3bec02a05d3d46d7cc0fd86572e32248a3b

Subscribers: jenkins, cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D5493
2017-11-20 12:03:29 +09:00
Lukasz Stanislawski 26e49ca562 elm: overload access children getter
Subscribers: jenkins, cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D5482
2017-11-20 12:03:04 +09:00
Pawel Aksiutowicz cb2ba05675 elementary: fix typos
Reviewers: stanluk, lukasz.stanislawski

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D5494
2017-11-20 11:54:52 +09:00
Marcel Hollerbach b27944da08 elm_list: use internal focus set instead of public focus set
elm_object_item_focus_set ensures that the list also gets focus, thus calling
that in _elm_list_elm_widget_on_focus_update would result in a infinite
call recursion, if setting the focus fails (for example when the object
is not visible yet, [see enlightenment for that]).

This fixes a freeze if you open lunchers config.
2017-11-19 11:08:36 +01:00
Marcel Hollerbach 56522f19ff efl_ui_focus_manager_sub: do not specify a interface as first argument
this leads in eo to the meaning that the manager.sub is giving
implementations to that interface, but leaving the ->func with NULL,
which leads on some maschines to the assumation that this is
pure_virtual, which means not composition objects will be queried, on
other maschines this will work, since there other inherits will
overwrite this entry and set ->src to NULL.

While i still dont understand why this works on some maschines and does
not on others, this is is now fixed.
2017-11-17 16:08:14 +01:00
Marcel Hollerbach b93e744e1f elm_widget: simplify code
there is now a utility function
2017-11-17 16:08:14 +01:00
Marcel Hollerbach 19cb57d914 efl_ui_focus_manager_calc: efl_wref_del deletes the wref
A happy thank you goes to the doc for leaving this trivial peace of
information undiscovered!

Followup commit will fix this
2017-11-17 16:08:14 +01:00
Marcel Hollerbach ffca5284ae efl_ui_focus_manager:do not followup if we have not changed candidate
_followup_previous_direction should only be called if there was a real
change to the redirect. In was happening that we have not changed the
focus but called _followup_previous_direction, which lead to weird focus
changes.
2017-11-17 16:08:14 +01:00
Marcel Hollerbach f8badf1c06 elm_widget: remove focus set
calling this function was not working at all, so its gone now
2017-11-17 16:08:14 +01:00
Marcel Hollerbach 84a6a329fe elementary: stop using elm_widget_focus_set 2017-11-17 16:08:14 +01:00
Marcel Hollerbach 6daff0e6f4 elm_main: checking the redirect chain is not neccessery
the manager is in or has no focused element
2017-11-17 16:08:14 +01:00
Marcel Hollerbach 1e5c894a1b elm_main: replace _elm_object_focus_set with efl_ui_focus_util_focus 2017-11-17 16:08:14 +01:00
Marcel Hollerbach 4086f18ebf efl_ui_focus_manager_calc: error if a element is not registered yet 2017-11-17 16:08:14 +01:00
Marcel Hollerbach 2e6a08737d efl_ui_focus_object: emit changed event after the flag gets set
otherwise new efl_ui_focus_object_focus_get calls could be confused.
2017-11-17 16:08:14 +01:00
Marcel Hollerbach 738cb8a2bb efl_ui_focus_util: add a util class
the util class is for common code that is just added again and again.
2017-11-17 16:08:14 +01:00
Andrii Kroitor c37226ef5e elm_genlist: fix rare segfault
Conditions:
- style is "double_label"
- the is some content for items (i.e elm_label)
- elm_genlist_filter set was once called after genlist creation with
  NULL data
- label_get callback uses elm_genlist_item_prev_get on its current item
- at least one item is added as a sub-item
- ~2 blocks of items are added afterwards
- items are added quickly while holding 'enter' on an elm_button

@fix
2017-11-17 10:16:41 +02:00
Amitesh Singh 35f3019a6d Efl.Ui.Slider: add default indicator format to %0.2f
This was broken in legacy code as well.
Thanks to @taxi2se for reporting.

elm_test -> slider -> check vertical slider

@fix
2017-11-17 14:55:51 +09:00
Amitesh Singh 19e70a8e1f Efl.Ui.Slider: replace default with on_drag in visible_mode enum.
Ref T6376
2017-11-17 14:38:32 +09:00
Amitesh Singh 651d9e94a0 Efl.Ui.Slider: add visible_mode() as an indicator part API
Ref T6376
2017-11-17 14:38:32 +09:00
Amitesh Singh 67996afbf6 Efl.Ui.Slider: make indicator_visible_mode() legacy APIs
Ref T6376
2017-11-17 14:38:32 +09:00
Amitesh Singh 77164413cd Efl.Ui.Slider: make indicator_show_on_focus/indicator_show() legacy APIs
Ref T6376
2017-11-17 14:38:32 +09:00
Shilpa Singh e58e00b08a elm_index: Index item role modify
Summary:
Modified index item role to EFL_ACCESS_ROLE_RADIO_MENU_ITEM from EFL_ACCESS_ROLE_PUSH_BUTTON
as index item should maintain its current state.

Test Plan:
Query the role of index item from atspi client, ATSPI_ROLE_RADIO_MENU_ITEM role should
be returned.

Reviewers: kimcinoo

Reviewed By: kimcinoo

Subscribers: cedric, govi, rajeshps, jpeg

Differential Revision: https://phab.enlightenment.org/D5486
2017-11-17 10:18:18 +09:00
Jean-Philippe Andre 313eb563b5 win: Rename specific APIs to avoid clashes
This renames 3 basic APIs specific to Win:
 - name
 - type
 - role

Ref T5322
2017-11-16 19:11:51 +09:00
Lukasz Stanislawski 57e0d19c45 elm: return Efl.Access.Actions only if action_area is not set
Summary:
The accessibility clients should not have a possibility
to dismiss popup in case when action area is set.

Reviewers: jpeg

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D5481
2017-11-16 18:17:49 +09:00
Shilpa Singh 54657b0a95 elm_index: Send selected signal to atspi client
Summary: When Index item is selected, notify atspi clients.

Test Plan:
when atspi mode is enabled, item selection notification
should be received by atspi client

Reviewers: kimcinoo

Subscribers: cedric, govi, rajeshps, jpeg

Differential Revision: https://phab.enlightenment.org/D5485
2017-11-16 18:17:49 +09:00
Lukasz Stanislawski 989f6c27d2 elm: enhance access name for spinner
Summary: Try to take access name from internal entry object or text button first.

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D5480
2017-11-16 12:12:04 +09:00
Lukasz Stanislawski 20c9dd1e84 elm: add Efl.Access.Value interface to progressbar
Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D5479
2017-11-16 12:05:21 +09:00
Jean-Philippe Andre e9ebe5c676 elm: Define and rename internal atspi struct in EO
This thing is used by only 2 EO APIs that are marked as @beta. I wonder
if the @beta tag or the ptr() expression made it work for eolian,
because it simply wasn't defined in EO.

I'm renaming it just so that it's more consistent with the new names
used by atspi (and EO API in general).
2017-11-16 12:00:18 +09:00
Lukasz Stanislawski c838e30a24 elm: Rename elm_interface_atspi_widget_action mixin
Reviewers: jpeg

Subscribers: jenkins, cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D5400
2017-11-16 12:00:18 +09:00
Cedric Bail 30adccd6a2 elementary: make sure that ecore shutdown match ecore init. 2017-11-15 16:29:14 -08:00
Cedric Bail babcb0f1e4 elementary: do not send a PAUSE event if not iconified. 2017-11-15 16:29:14 -08:00
Cedric Bail 1112ce2a8a ecore: should be the one triggering EFL_LOOP_EVENT_TERMINATE. 2017-11-15 16:29:14 -08:00
Cedric Bail cd1f5915d2 elementary: add an interface to enable/disable PAUSE/RESUME application state.
If you want to have EFL application behave in a more efficient way. Like dropping
memory usage or stopping unecessary network operation, this option should be on
and the application should listen on PAUSE/RESUME event on the main loop.
2017-11-15 16:28:20 -08:00
Marcel Hollerbach e3de0f994f efl_ui_calendar: set focus object protected mode
i forgot a define here and was confused by the fact that we have two
calendar widgets, sorry for that.
2017-11-15 17:38:43 +01:00
Marcel Hollerbach de084292e0 efl_ui_focus_manager: unset the redirect chain once a redirect is set
this prevents the manager from having a redirect chain while not even
beeing used by the root manager
2017-11-15 13:21:22 +01:00
Marcel Hollerbach 7e227161b9 efl_ui_focus_manager_calc: correct handle focus when redirects are set
so we dont have two focused elements
2017-11-15 13:21:22 +01:00
Marcel Hollerbach df81e2f492 efl_ui_focus_manager: ensure the manager is in focus when focus is set
this makes handling of focus easier in elementary
2017-11-15 13:21:22 +01:00
Marcel Hollerbach 07cb2d2dcd efl_ui_focus_object: document the bahaviour of the manager property 2017-11-15 13:21:22 +01:00
Marcel Hollerbach 7c9e13a550 efl_ui_focus_object: make it protected
_this_ focus set should never be called by anyone other than the
efl.ui.focus package
2017-11-15 13:21:22 +01:00
Godly T.Alias 67313bf8aa CtxPopup: Add implementation for getting focused item
Summary:
Adding the focused_item_get implementation for ctxpopup widget for
getting the focused item

Signed-off-by: Godly T.Alias <godlytalias@yahoo.co.in>

Test Plan: elm_object_focused_item_get

Reviewers: cedric, raster, prince.dubey, shilpasingh, jpeg

Reviewed By: shilpasingh

Subscribers: Jaehyun_Cho, Blackmole, jpeg, rajeshps, shilpasingh

Differential Revision: https://phab.enlightenment.org/D5474
2017-11-15 19:29:00 +09:00
Andrii Kroitor a2532b8ef0 genlist: fix state corruption of content
When using reusable content, genlist preserves old object's state and is
expecting reusable_content_get callback to change all needed properties.
But there was an inconsistency: it was silently re-enabling the old content.

@fix
2017-11-15 10:57:10 +02:00
JinYong Park d96f3bb4f3 Ctxpopup: resizing ctxpopup after its content is removed
Summary:
When ctxpopup's content is removed,
ctxpopup doesn't recalculate its size, so empty space is remaind.
To fix this problem, ctxpopup recalculate its size when content is removed.
This patch is about T6327

@fix

Test Plan:
1. run elementary_test -to ctxpopup
2. select 10st item
3. click button in ctxpopup

Reviewers: jpeg, Jaehyun_Cho, zmike

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D5462
2017-11-15 16:46:01 +09:00
Shilpa Singh 36afcf2af9 efl_ui_win.c: send bounds changed signal on window rotation
Summary:
On window rotation send bounds changed signal to inform ATSPI client
about the orientation of window

Test Plan:
In ATSPI mode, when orientation of efl window is changed, ATSPI client should
get notification

Reviewers: kimcinoo

Subscribers: cedric, govi, rajeshps, jpeg

Differential Revision: https://phab.enlightenment.org/D5469
2017-11-15 14:41:37 +09:00
Cedric Bail 07da1facaa elementary: protect from stall include.
This should be reverted before next release as this header was only
there during this release cycle.
2017-11-14 20:14:44 -08:00
Cedric Bail 88b2e28759 elementary: provide network when doing ui. 2017-11-14 20:14:01 -08:00
Cedric Bail 003d2d5823 elementary: only include Efl_Ui.h when BETA API is requested. 2017-11-14 20:13:29 -08:00
Cedric Bail 6ae1c3239e elementary: elm_widget actually rely on elm_object_item. 2017-11-14 20:12:36 -08:00
Cedric Bail 064f683458 elementary: fix typos in header inclusion rules. 2017-11-14 20:11:55 -08:00
Cedric Bail 663e31413a Revert "Revert series of patches from cedric (due to dependencies and conflicts)"
This reverts commit 2cea85db38.

Their was a typo that I made during cleanup of the patch before pushing that I didn't
notice broke some stuff. But also you may have an old efl_general.h in your elementary
directory that is now being picked instead of the one provided by the tree.
2017-11-14 20:08:09 -08:00
Carsten Haitzler 2cea85db38 Revert series of patches from cedric (due to dependencies and conflicts)
Revert "elementary: currently double declare elm_init/shutdown."
This reverts commit 44bb0c1848.
Revert "elementary: fix efl_ui_multibutton installed headers."
This reverts commit 32a213dc72.
Revert "elementary: introduce Efl_Ui.h."
This reverts commit df3d3f7334.
Revert "ecore: do not display error message on cancel."
This reverts commit 99654b7cd2.
Revert "efl: and don't forget to install the new dependencies."
This reverts commit 814ffb9b6b.
Revert "ecore: remove EFL_OBJECT_BETA as Efl_Core.h is for Efl new inerfaces."
This reverts commit 619d0f3cff.
Revert "ecore: move EAPI_MAIN from elementary to ecore."
This reverts commit e5d84da864.

as such commit e5d84da864 starts the
breaking. enlightenment, terminologya and other apps can't compile
against that efl anymore. 619d0f3cff
then makes this even worse with even more header errors and undefined
types. on top of this df3d3f7334 then
starts making elementary_test segfault when it runs. it wont even
start up.

asu such of these 7 commits in the first 4 (that are then relied on
later) 3 of these first 4 cause serious breakage. this simply is a
complete lack of testing changes, so i've rolled fl back to before
these things so it builds and works again and you can build against it.

PLEASE test these things. this looks ot me to be obviously a lack of
any testing... :(
2017-11-15 11:48:55 +09:00
Cedric BAIL 44bb0c1848 elementary: currently double declare elm_init/shutdown. 2017-11-14 16:55:49 -08:00
Cedric BAIL 32a213dc72 elementary: fix efl_ui_multibutton installed headers. 2017-11-14 16:53:16 -08:00
Cedric BAIL df3d3f7334 elementary: introduce Efl_Ui.h. 2017-11-14 16:36:17 -08:00
Cedric BAIL e5d84da864 ecore: move EAPI_MAIN from elementary to ecore. 2017-11-14 13:50:13 -08:00
Andy Williams 95b0d7ca68 elm_code: Add basic scope parsing to syntax highlighting.
This is currently displayed by showing scope in the widget gutter
2017-11-14 19:12:56 +00:00
Shilpa Singh 7e83545ab3 elc_popup.c: accessible name_get interface added
Summary: accessible name_get interface added, popup does not have default text.
What should be read for the name information should be define by popup.

Test Plan:
In atspi mode, when an AT-client such as screen-reader queries, it should return
as "Alert title(if present)/text(if present)"

Reviewers: kimcinoo

Subscribers: cedric, jpeg, govi, rajeshps

Differential Revision: https://phab.enlightenment.org/D5466
2017-11-14 15:22:36 +09:00
Jean-Philippe Andre 0c142462a1 win: Move autodel to C only
Note: this is C only, not legacy only.
The problem is that bindings will hold a strong reference to the window,
which will then die "under the rug" if autodel is enabled. This then
leads to at least ERR if not crashes.

Note:
elm_policy needs to support autodel and quit on last del only for C
applications. Bindings will require some other mechanism that doesn't
break all assumptions wrt. references.
2017-11-14 12:18:39 +09:00
Amitesh Singh 9ba451c98a Efl.Ui.Slider_Interval: remove smart data associated with class.
Its not getting used anywhere.
2017-11-14 09:54:42 +09:00
Marcel Hollerbach 63ef60402f efl_ui_win: unfocus and focus again the most upper widget
if we unfocus a window we should unfocus also the current focused
widget.

fix T6297
2017-11-13 14:21:06 +01:00
Shilpa Singh 6508b8849c elc_naviframe.c: Append title, subtitle while reading title and subtitle in naviframe.
Summary: read title along with naviframe item title and subtitle along with naviframe subtitle.

Test Plan:
In accessibility mode, when naviframe title area is focused, The  text title and subtitle should be read
out along with item's title and subtitle.

Reviewers: kimcinoo

Reviewed By: kimcinoo

Subscribers: cedric, govi, rajeshps, jpeg

Differential Revision: https://phab.enlightenment.org/D5463
2017-11-13 20:54:05 +09:00
Jean-Philippe Andre 4255c34f7a calendar: Remove invalid ref to elm enum
Thanks @JackDanielz for the report. This does not solve your actual
concern, though.
2017-11-13 18:08:57 +09:00
Lukasz Stanislawski 6505f535f6 elm: evaluate MULTISELECTABLE state for genlist and gengrid
Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D5452
2017-11-13 12:08:57 +09:00
Lukasz Stanislawski b9f31b1836 elm: set accurate access role for elm_icon
Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D5453
2017-11-13 12:08:43 +09:00
Lukasz Stanislawski 2ea179d373 elm: set accurate access role for elm_popup
Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D5454
2017-11-13 12:08:24 +09:00
Marcel Hollerbach a2a0ccf36b elm_widget_item_static_focus: do not accept the adapter as subchild
The problem here was that the adapter we have created would be
recognized as our subchild, and thus we delete our own subchild, which
is wrong. This fixes that problem and keeps the adapter alive.
2017-11-12 12:05:31 +01:00
Marcel Hollerbach b364293b0c genlist: implement item focus
this implements item-content focus for genlist. feel free to notify me
if there are any crashes or something simular.

ref T6181
2017-11-12 12:04:11 +01:00
Marcel Hollerbach d30985b4e2 elm_gengrid: do not try to bring in a NULL item 2017-11-11 20:21:56 +01:00
Marcel Hollerbach 53052abaa6 elm_widget_item: refactor logic from gengrid into seperated class 2017-11-11 20:21:56 +01:00
Marcel Hollerbach c075b7caaa elm_gengrid: improve the performance while realizing
realization is now back to the normal performance mode, the widgets are
reevalulated when composition calls for preparing
2017-11-11 20:21:56 +01:00
Marcel Hollerbach 1ff0d6462b elm_widget: add a new api for directly reevalulating widgets
usefull if the provider changes
2017-11-11 20:21:56 +01:00
Marcel Hollerbach 9f382b3371 efl_ui_focus_composition: make sure to prepare before anything else
happens

this fixes mysterical focus chain changes in gengrid
2017-11-11 20:21:56 +01:00
Marcel Hollerbach 4c4224df29 efl_ui_focus_composition: make sure to not unregister and register again
this fixes issues where a widget suddenly changes parent...
2017-11-11 20:21:56 +01:00
Al Poole 42484606d0 elm_code: add support for go syntax. 2017-11-11 13:23:12 +00:00
Cedric Bail bd83a76393 ecore: move EFL_MAIN to Efl_Core.h
This make EFL_MAIN available and working with just Ecore. For simplicity
it is available with Efl_Core.h. Ideally it should also work with Efl_Net.h
alone and finally with an Efl_Ui.h.

T6262
2017-11-09 15:13:37 -08:00
Cedric Bail 66c46f0528 elementary: allow efl_general.h to be included multiple time. 2017-11-09 15:13:37 -08:00
Cedric Bail 4d41f95106 elementary: make elm_init and elm_shutdown optional in EFL_MAIN. 2017-11-09 15:13:37 -08:00
Amitesh Singh 6c444bebcb Efl.Ui.Slider: fix documentations 2017-11-09 11:02:29 +09:00
Al Poole e63e2d7e21 elm_code_widget: keep track of visibility.
Keep track of visibility and ensure the cursor can never be
filled when hidden. This should finally end any issue with the
cursor and visibility with the new focus system. Didn't see this
previously until working on Edi's bottom panes which caused redraw
on resize of the widgets.

@fix
2017-11-09 00:55:36 +00:00
Andy Williams d5dbcdabd1 eo: Rename efl_ref_get to efl_ref_count 2017-11-08 09:30:42 +00:00
Carsten Haitzler 2a5267d416 unbreak efl so e works again.... after cedric
we cant go iterating the mainloop before the current point. if someone
set up handlers but hasnt configured the things those handles use yet
as they dont expect them to be used until the mainloop is started...
thenthings break. we cant change this assumption without breaking
things.
2017-11-08 16:32:52 +09:00
Jean-Philippe Andre c308498a9d win: Fix alpha windows
Fixes T6334
2017-11-08 16:17:29 +09:00
Pawel Aksiutowicz e2ad1469a5 focus: Some typos for efl_ui_focus_manager fixed
Reviewers: stanluk, lukasz.stanislawski

Subscribers: lukasz.stanislawski, cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D5433
2017-11-08 15:16:04 +09:00
Cedric BAIL 50cc85f426 elementary: fix quicklaunch support. 2017-11-07 16:08:39 -08:00
Cedric BAIL e32dd07c9d elementary: refactor and clean efl_quicklaunch_prepare. 2017-11-07 16:08:39 -08:00
Cedric BAIL d171cf9639 elementary: fix ELM_MAIN macro to properly expose symbol. 2017-11-07 16:08:39 -08:00
Cedric BAIL ee65414ef6 ecore: introduce ecore_init_ex/ecore_shutdown_ex to propagate argc,argv properly. 2017-11-07 16:08:39 -08:00
Cedric BAIL dd40079185 ecore,elementary: move startup time accounting in ecore. 2017-11-07 16:08:39 -08:00
Cedric BAIL 25b6a280c0 elementary: move Efl new general purpose API to efl_general.h 2017-11-07 16:08:39 -08:00
Jean-Philippe Andre 528dfce251 slider: Export the part class
It needs to be exposed for things like c++ and others to work.
2017-11-07 22:17:04 +09:00
Jean-Philippe Andre 8aeccdb7a1 slider: Advertise indicator part in the EO file
There are 3 other indicator APIs that aren't in the part class... why?
2017-11-07 22:00:43 +09:00
Sungtaek Hong 439fbe4bcb efl_ui_radio: keep radio state when theme is changed
Summary:
during elm_widget_theme_apply() state was set to off when state is on.
@fix

Test Plan: change locale/theme when a radio is on.

Reviewers: jpeg, cedric, woohyun

Differential Revision: https://phab.enlightenment.org/D5432
2017-11-07 21:08:40 +09:00
Carsten Haitzler 784411800b elm win - note need for other display system code... 2017-11-07 17:36:57 +09:00
Amitesh Singh d6c9b37925 Efl.Ui.Slider: implement Slider.part & Ui.format functions
indicator_format_set/get & indicator_format_function_set are
now legacy APIs.
indicator format can be set by using generic Ui.Format function
e.g.
efl_ui_format_string_set(efl_part(sliderObj, "indicator"), "1.0%f");
2017-11-07 17:13:44 +09:00
Jean-Philippe Andre 80b0ef7537 elm: Fix make check (code_widget)
elm_code_widget is causing a lot of trouble as it's relying on internal
access to elementary, without being built as part of elementary.so. Many
EAPI symbols are exported that shouldn't need to be, as they are only
internals of elm.
2017-11-07 14:59:01 +09:00
Jean-Philippe Andre d39bbc1491 elm: Create legacy widgets with elm_legacy_add
This will be used to solve issues around style_set:
if the widget is legacy or pure eo we may need to select a different
style. So in the constructor we need to know whether we are legacy or
eo. Note that calling style_set in finalize only is too late as we would
lose information such as efl_text_set() called inside efl_add().
2017-11-07 14:50:31 +09:00
Jean-Philippe Andre 6cea4993e0 elm: Don't do anything before construction
Obviously ui.win is still the ugly exception.
2017-11-07 14:43:22 +09:00
Jean-Philippe Andre ee90f72a76 elm: Call efl_access_type_set after construction
I don't think it is necessary to call this before construction, and that
could instead lead to issues. It's just weird overall.
2017-11-07 14:43:22 +09:00
Carsten Haitzler 6a47c2243e efl ui win - make win centering work with multiple screens
this should fix T6323
@fix
2017-11-07 13:53:27 +09:00
Jean-Philippe Andre ccc3efd77d elm: Fix examples/tests using elementary_config
elementary_config.h should not even exist. It's been hijacked as a
private header for elementary, but all "real" configuration is stored in
efl's main config.h now.
2017-11-07 09:57:24 +09:00
Jean-Philippe Andre 9c9278cd45 cxx: Fix a few examples
- Calendar: Some examples can't be ported. Not good.
 - Toolbar: Needs the new API to be completed.
 - Clock: Crashes at runtime.

Ping @felipealmeida
2017-11-07 09:57:24 +09:00
WooHyun Jung 68b366c831 efl_ui_calendar: apply efl_ui_focus_composition 2017-11-06 16:28:29 +09:00
Andy Williams 624b960155 elm_code: Trying some markdown syntax, this is complex 2017-11-03 21:05:08 +00:00
Andy Williams 2b3e462858 elm_code: Trying some markdown syntax, this is complex 2017-11-03 21:03:58 +00:00
Daniel Kolesa 0dbbb18171 eolian: disallow ptr() on things that are already pointer-like
This disallows deeply nested pointers, you can only explicitly
ptr() on types that are strictly value types.

For a few cases where it was necessary to override this behavior,
you can use legacy(ptr(x)) as a temporary measure.
2017-11-03 15:30:10 +01:00
Chris Michael 5332f3355b efl-ui-focus-manager: Remove set but not used variable
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2017-11-02 10:05:56 -04:00
Daniel Kolesa 27929f9467 elm radio: fix build of things that don't enable eo APIs 2017-11-02 14:48:52 +01:00