Commit Graph

453 Commits

Author SHA1 Message Date
WooHyun Jung ef0d15b4c4 elm_win: Fix wrong animation of focus highlight.
When focus is changed, focus highlight animation should be started
from the original position of focus highlight object. Not from the
previous focused object's position.
2014-03-20 14:14:20 +09:00
Daniel Zaoui e2206a1a22 Eolian: Integration of Elm Widget 2014-03-17 09:03:56 +02:00
Carsten Haitzler badb1ae200 fix pulg/socket/inline to work again 2014-03-09 21:18:25 +09:00
Carsten Haitzler 382fb3b444 oops. printf-- 2014-03-09 14:37:29 +09:00
Carsten Haitzler 202ce6046b make actual accel preference work without diplay system set 2014-03-09 14:28:37 +09:00
Daniel Juyung Seo 7e35760942 focus: Added focus highlight clip disable feature.
focus highlight is clipped by the clipper of focus target object.
But many of the times, this clipping looks weird so I made this
configurable.

This fixes T1056 but as this fix was done by adding a new feature, this
patch would not be backported.

@feature
2014-03-09 03:39:23 +09:00
Carsten Haitzler 1fbdf7cae0 win - add accel preference option to elm windows
@feature - this adds the ability to hint what engine acceleration to
use that is specific per display system.
2014-03-09 01:22:33 +09:00
Carsten Haitzler e7fc7c23ce win - improve window engine choosing code to be simpler and support display
this isn't a feature or a bug fix - it's a code logic improvement that
also uses an ELM_DISPLAY environment variablew to choose a specific
engine list, and still uses ELM_ENGINE and preferred engine. this
makes it easy to add new api to prefer accel or not etc.
2014-03-09 00:49:33 +09:00
Carsten Haitzler cea2027c75 warning-- if building without x for elm 2014-03-08 23:54:34 +09:00
Carsten Haitzler 3cdeccc324 wtf? returning an _X_ window should not return a win32 window handle!
remove the return of a win32 window handle in getting an x window
handle. wrong wrong wrong!
2014-03-08 23:44:04 +09:00
Daniel Juyung Seo 8c5ccaf780 win: Set correct parameter for focus highlight job.
Special thanks to Hosang Kim for the report.
2014-03-07 20:34:44 +09:00
Daniel Juyung Seo 45444cf98c win: Removed unnecessary internal wrapping function. 2014-03-07 03:32:01 +09:00
Amitesh Singh 38ac88d9d5 list: focus highlight is handled by item theme.
Summary:
Problem: list theme (elm/list/base/default) is an alias of scroller
base theme (elm/scroller/base/default) in which focus_highlight is set to "on".
Solution: Now focus highlight in_theme is set by list item theme.

Test Plan: elementary_test->"List Focus"

Reviewers: seoz, woohyun

Reviewed By: seoz

CC: nirajkr

Differential Revision: https://phab.enlightenment.org/D572
2014-02-26 01:27:05 +09:00
Amitesh Singh 069a3de27d list: implemented widget item focus feature.
@feature

Summary:

  #    Added "item,focused" and "item,unfocused" smart callbacks.
  # Added elm_object_focused_item_get() in elm_widget
  # Added elm_object_item_focus_set and elm_object_item_focus_get() APIs for
  # Added one argument in existing _focus_highlight_geometry_get(...,is_next)
  This is required to find out previous and current widget item.
  # Added a elm_win function _focus_highlight_start() which starts the focus

Test Plan: elementary_test->List Focus , List Horizontal Focus

Reviewers: seoz, woohyun

Reviewers Comments: SeoZ - there are some known bugs. we will actively
fix them in a near future.

CC: nirajkr

Differential Revision: https://phab.enlightenment.org/D532
2014-02-26 01:26:22 +09:00
Carsten Haitzler a4cbdd7c39 fix more complaints on inwin shutdown and focus stuff
this fixes the rest of T958
2014-02-18 16:15:55 +09:00
Carsten Haitzler 7201bf91ff elm win - on shutdown some objects become null during shutdown so be quiet
so don't complain so much about it - it's normal. don't use the noisy
macros to do so. this fixes much of T958
2014-02-18 15:58:57 +09:00
Daniel Juyung Seo 192a9e80e7 elm: fixed up the comments after the struct member.
It should be /**< not /*<<
2014-02-10 22:27:08 +09:00
Seunghun Lee 2f2741f981 elm_win: added the window manager rotation feature and a sample.
Summary: since to control the rotation of application windows by WM, already added related feature in Ecore_Evas. Added related API for it.

Reviewers: raster, seoz

CC: gwanglim

Differential Revision: https://phab.enlightenment.org/D542
2014-02-10 22:09:45 +09:00
Amitesh Singh 431b15cd48 focus: Added focus_highlight_geometry_get() into elm_widget.
Summary:
Currently, elm_win was handling focus_highlight geometry of widgets.
Removed elm_win_focus_highlight_geometry_get() from elm_win and now elm_widget handles focus highlight geometry.
This is required to support the focus highlight on elm widget items.

Test Plan: elementary_test -> focus

Reviewers: seoz, raster, woohyun

CC: nirajkr

Differential Revision: https://phab.enlightenment.org/D530
2014-02-09 19:56:07 +09:00
ChunEon Park b7cf4d8503 win - +null check.
we don't sure target always has clipper.
2014-02-07 14:32:04 +09:00
Jaehwan Kim bb90c9d9d0 win: Add a API, elm_win_type_get. 2014-02-06 19:28:39 +09:00
ChunEon Park c2489943a7 win - +null object checking.
it allows previous highlighted object is empty.
So it should be checked before accessing.
2014-02-06 00:16:59 +09:00
nirajkr 2a8c2f1b53 focus: Added elm_object_focus_highlight_style_get/set() to support custom focus highlight on widget
Summary: This new API will allow widget to have its own focus highlight style

Reviewers: seoz

CC: woohyun, singh.amitesh

Differential Revision: https://phab.enlightenment.org/D501
2014-02-05 19:23:34 +09:00
Daniel Juyung Seo 5771ea3b3e win: Renamed unclear internal variable name handled -> in_theme and
added comments.
2014-02-05 09:57:34 +09:00
Amitesh Singh 48dc06e1ba win: removed printf in _elm_win_focus_highlight_geometry_get()
Reviewers: seoz

Reviewed By: seoz

Differential Revision: https://phab.enlightenment.org/D516
2014-02-04 22:27:59 +09:00
Amitesh Singh cbae377ef7 focus: Added "focus_part" support on elm widget.
Summary:
Currently, focus highlight comes on the widget's geometry. Elementary does not have option to provide the focus highlight on widget's part.
This patch provides the option to provide focus highlight on the widget's part.
e.g.  data.item: "focus_part" "part";
The focus highlight would come on part's geometry instead of widget's geometry. This patch only works on widgets which uses
resize_obj.

Reviewers: seoz, woohyun

Differential Revision: https://phab.enlightenment.org/D499
2014-02-03 17:52:02 +09:00
Amitesh Singh aed0272e8c focus: Fixed focus issue that the highlight was not visible on first
click.

Summary:
Focus highlight was not visible on first click on a widget with focus_highlight enabled on the window.
This happens because on first click, the "elm,action,focus,show" signal was emitted before setting focus highlight edje object as theme object of elm window.
In this patch, moved the  _elm_win_focus_highlight_visible_set() call after focus highlight edje object set as theme object of window.
This fixes T774.

Test Plan:
elementary_test->focus then click any widget. Focus won't appear for the first time.

Reviewers: seoz, raster, woohyun

Maniphest Tasks: T774

Differential Revision: https://phab.enlightenment.org/D462
2014-01-23 14:12:53 +09:00
Daniel Juyung Seo 5353aa863c elm: Removed unnecessary null check for free. 2014-01-22 11:13:11 +09:00
Daniel Juyung Seo db5fe2581d elm: Removed unnecessary null check for evas_object_del. 2014-01-22 10:54:52 +09:00
Daniel Juyung Seo 43533a2fb9 elm: Removed unnecessary null check for eina_stringshare_del. 2014-01-22 10:54:45 +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
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 7dd5fe10af win: Check null before calling elm_widget_highlight_in_theme_get(). It
can be null.

'target' can be null when the focus in is just called.
2014-01-16 02:33:46 +09:00
Ryuan Choi 114e458f56 elm_win: Removed EE_ENGINE_COMPARE macro to reduce redundant function calls.
EE_ENGINE_COMPARE reduces typing little bit, but it makes redundant function calls
because almost callers call it more than once.
And, there is no way to check whether ecore_evas_engine_name_get is null.

This patch removed EE_ENGINE_COMPARE with small refactoring.
In addition, removed unnecessary check routines from _elm_ee_xwin_get.
2014-01-13 19:00:17 +09:00
Daniel Juyung Seo fd5c046dfe elm: Changed __UNUSED__ to EINA_UNUSED. 2014-01-06 23:33:57 +09:00
Yakov Goldberg b45b864c36 win: fix parameter order in elm_win_available_profiles_get() for consistency 2013-12-30 15:44:17 +02:00
Daniel Juyung Seo f50925d5ad win: Added internal documentation about elm_win_rotation_set and elm_win_rotation_with_resize_set().
This is for efl developers not app developers so it goes to elm_win.c
Without knowing this, it is very tricky to understand the concept of
this api.
2013-12-27 23:15:12 +09:00
Daniel Juyung Seo 43c19a1fd3 win: Added floating mode documentation and added a check for floating parameter.
The documentation is from the original floating mode commit message.
2013-12-26 14:23:29 +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 8a0159df4f elm: long waited seasonal trailing whitespaces removal!
This is a ceremony of elementary 1.8 release!
2013-12-02 19:43:46 +09:00
Rafael Antognolli a68ad7f735 elm_win/wayland: Call frame update after rotation changed.
This will update the opaque region, that was set to a different
orientation.

Fix T359.
2013-11-26 14:58:22 -02:00
Daniel Juyung Seo 16e2c0779f elm_win.c: removed build warning when there is no wayland support. 2013-11-15 21:52:19 +09:00
Chris Michael a43489f6de Make routines to get the wayland window from an ecore_evas be more
inline with their X counterparts. Also, remove some EINA_UNUSED where
parameters were being used.

The previous code to get the Ecore_Wl_Window from an Ecore_Evas did
not check to make sure the Ecore_Evas Engine was a wayland engine, and
thus elm_tests like Window Inline would spew CRIT & ERR messages from
ecore_evas about the interface.

This fixes Phab Ticket T502

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-11-15 10:16:00 +00:00
Chris Michael bd7c04e174 Fix formatting
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-11-15 10:16:00 +00: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
Carsten Haitzler 1aa3dd0ec4 unbreak wayland elm build more - use get_surface_id api 2013-11-02 11:51:50 +09:00
Chris Michael dcf38e3d20 Revert maximize support ... apparently this has already been "fixed"
... will have to look into why it does not work here propertly tho..

Revert "Fix elm client applications to support maximize properly (ie: removing"

This reverts commit 28763963bb9e26ea25ca182acc294c0a02f03ba2.
2013-11-01 07:25:15 +00:00
Chris Michael f59b6f9109 Revert this ... apparently it has already been "fixed"
Revert "Add missing EINA_UNUSED to function params."

This reverts commit 15b355a1195f0371c4e74d942ef9fcfa86a4a469.
2013-11-01 07:24:45 +00:00
Chris Michael a8b4180d7e Add missing EINA_UNUSED to function params.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-10-31 17:05:17 +00:00