Tae-Hwan Kim
a9aec7a43e
[Widget] Prevent widget item API calls while item is deleting except data_get API call. The data by data_set is user_data. So it can be needed inside deleting function trace.
...
Reviewers: raster, cedric, Hermet, seoz
Reviewed By: raster
Differential Revision: https://phab.enlightenment.org/D525
2014-02-07 18:09:46 +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
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
WooHyun Jung
cbb946ee99
elm_widget: Fixed some codes about focus custom chain.
...
- When appending an object to the focus custom chain,
event callback about deletion should be added.
- When a widget is deleted, its focus custom chain should be
managed correctly.
2014-01-22 16:24:25 +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
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
Carsten Haitzler
939313e194
elm widget - skip null list entires in focus list
2014-01-14 22:48:28 +09:00
Tom Hacohen
b01433ff47
Widget: Don't check if it's the correct class everywhere.
...
ELM_WIDGET_DATA_GET was checking it was the correct class. This is
stupid and wrong (and makes tools rightfully complain) because these
functions are implementations of that class anyway, so that would never
be false.
Functions that outside facing (that is, not called from eo_do) should
use API_ENTRY.
2014-01-06 15:07:16 +00:00
Daniel Juyung Seo
fd5c046dfe
elm: Changed __UNUSED__ to EINA_UNUSED.
2014-01-06 23:33:57 +09:00
WooHyun Jung
fa8ca01128
widget: Fix a bug in elm_widget_newest_focus_order_get.
...
When elm_widget_newest_focus_order_get is called with can_focus_only,
only focusable objects should be the candidates for newest focused object.
But there are cases that unfocusable object add +1 to newest_focus_order.
2014-01-03 20:02:30 +09:00
ChunEon Park
8b6ef9aaac
elementary/widget - don't call theme_set() until base widget is not created yet.
...
On the widget creation time, we should not set the theme in the widget infra.
This will cause the corruption of the theme_hook working since the widget is not setup yet.
Also the theme_set() will be applied twice each widget will set the themes right after base widget is created.
2014-01-03 14:38:27 +09:00
Jaehyun Cho
432a018916
[elm_widget] Fix not to load theme for mirroring if smart data is not set
...
Summary: Do not load widget theme for mirroring if smart data creation is not finished.
Reviewers: Hermet, raster
Reviewed By: raster
CC: seoz
Differential Revision: https://phab.enlightenment.org/D428
2013-12-31 20:33:51 +09:00
Yakov Goldberg
e93a38c966
widget, spinner: typo in elm_widget_focus_set()
2013-12-31 11:16:35 +02:00
Yakov Goldberg
21da50f601
widget: remove unused return parameter in elm_wdg_orientation_set()
2013-12-30 11:16:19 +02:00
ami
afa4398ce2
[elm_object_item] - Added elm_object_item_style_set/elm_object_item_style_get().
...
Reviewers: seoz, raster
CC: aryarockstar, nirajkr, chinmaya061
Differential Revision: https://phab.enlightenment.org/D373
2013-12-27 20:00:04 +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
440c2ce083
elm_widget: added internal documentation about elm_widget_sub_object_add() and elm_widget_sub_object_parent_add().
2013-12-20 19:08:38 +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
8a7de8df34
elm_widget.c: fixed formatting while reading the code.
2013-11-30 15:28:44 +09:00
ChunEon Park
2afb6e40ac
elementary - added a warning for elm_widget_item_track().
2013-11-18 13:15:56 +09:00
Yakov Goldberg
656fd97988
widget: typo in Eo OP_ID name
2013-11-17 13:23:17 +02:00
ChunEon Park
f9edf8901d
elementary/scroller - don't focus region show if the scroller is disabled.
2013-11-07 22:34:57 +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
Ryuan Choi
11b568a35b
elm_widget.c: Fixed warning while scrolling elementary_test using arrow
...
Summary: Checked whether object which direction pointed is NULL before getting it's data
Reviewers: seoz, raster
Reviewed By: raster
Differential Revision: https://phab.enlightenment.org/D95
2013-11-04 21:14:46 +09:00
Jaehyun Cho
3f2415fff8
[elm_widget] Enable not to add resize object to or delete resize object from smart member when the resize object is set.
...
Summary: Currently if the third argument of elm_widget_resize_object_set, 'Eina_Bool sub_obj', indicates whether a resize object is added to/deleted from the sub object or not. This commit makes the third argument, 'sub_obj', also indicate whether a resize object is added to/deleted from the smart member or not.
Reviewers: Hermet, seoz
Reviewed By: seoz
CC: seoz
Differential Revision: https://phab.enlightenment.org/D268
2013-10-18 19:52:56 +09:00
Jaehyun Cho
db2d711d64
[elm_widget] Enable not to add resize object to or delete resize object from sub object when the resize object is set.
...
Summary: Add one more argument, 'Eina_Bool sub_object' to elm_widget_resize_object_set. If the argument, 'sub_object' is set as EINA_TRUE, the new resize object is added to the sub object and the previous resize object is deleted from the sub object.
Reviewers: Hermet, seoz
CC: Jaehyun_Cho, seoz, raster
Differential Revision: https://phab.enlightenment.org/D265
2013-10-17 01:19:40 +09:00
Daniel Juyung Seo
6397761c6a
elm_test: Fixed formatting. tab to space.
...
Changed tab to space before working on the code.
Kinda surprised by the number of tabs we had.
2013-10-14 19:12:32 +09:00
Daniel Juyung Seo
e756f97dae
elm: Longwaited trailing white space removal. Clean elm up!
2013-09-30 22:15:01 +09:00
Cedric Bail
f2b0d4568d
elementary: cast an uintptr_t when pushing stuff into a pointer.
2013-09-26 16:35:11 +09:00
Cedric Bail
fa2ce3c547
elm_widget: fix widget signal callback memory leak.
...
Thanks to bluezery D228 for pointing out the issue.
2013-09-25 16:41:12 +09:00
Cedric Bail
29af5e1e43
elementary: update to new eo_parent_get/set API.
2013-09-25 13:34:27 +09:00
Daniel Juyung Seo
9785020b1f
elm_widget.c: added comments for very confusable code.
2013-09-25 03:36:03 +09:00
Michael Bouchaud
6374a9cf59
elementary: oops, missing this check
2013-09-18 16:21:10 +02:00
Michael Bouchaud
91848c5b43
elementary: add a way to add some custom part text and save it for Elm_Object_Item
2013-09-18 16:21:10 +02:00
Chris Michael
873cd93da4
No need for a cast here as 'obj' is already Eo when passed in.
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-09-17 07:43:39 +01:00
Chris Michael
ae9392ab09
Remove __UNUSED__ from function declaration where parameter is
...
actually used.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-09-17 07:43:39 +01:00
ChunEon Park
f426e08982
elementary/elm_object_item - delete the track objects when genlist/gengrid items are unrealized.
2013-09-13 14:19:41 +09:00
ChunEon Park
ebe767bf51
elementary - Actually this code is useless. there track object will be always NULL.
2013-09-12 23:37:00 +09:00
ChunEon Park
5957b118de
elementary - introduces 3 apis elm_object_item_track/untrack/track_get().
2013-09-12 23:24:02 +09:00
ChunEon Park
9f34119498
elementary - revert ddc3cf80ce0a50a9161fcb212d3414f5d7b5898c
...
We have a plan to add more proper API.
2013-09-12 14:13:59 +09:00
Shinwoo Kim
3359ff5be5
[access] unfocusable object could have highlight
2013-09-10 14:22:21 +09:00
Shinwoo Kim
34de4d619d
[access] enhancement - refine function name to _elm_access_auto_highlight_set from _elm_access_read_mode_set
2013-09-10 14:01:50 +09:00
Cedric Bail
7733e8d25a
elementary: use zero allocation walk.
2013-09-05 17:17:05 +09:00
ChunEon Park
b67b72f710
elementary/widget - introduce elm_object_item_object_get().
...
We've countered application's requirements multiple times to they have the object handle from the elm_object_item.
Now we introduce it for their convenient but they should use it carefully.
2013-09-02 17:20:36 +09:00
Tae-Hwan Kim
360613d19e
elm_widget.c: fix bug to remove edje signal correctly.
2013-08-25 00:40:45 +09:00
ChunEon Park
5fd81d8849
elementry/widget - Improve performance in applying widget theme.
...
It prevents applying themes more strictly if it tries to apply same theme.
This increases the performance hugely in case that user applies a specific theme to the window object.
2013-08-22 17:00:36 +09:00
WooHyun Jung
5c49ccfb24
elementary/elm_widget.c : When there is no resize object, widget object itself should get evas focus when it steals elementary focus.
2013-08-06 18:14:44 +09:00
Shinwoo Kim
c47ef1b7fe
[access] use proper name _elm_access_info_get(); not _elm_access_object_get(); to get access information
2013-07-31 12:57:49 +09:00
ChunEon Park
04b47eb74d
elementary/widget - fix the insane NULL set in translated string list.
...
Thanks JackDanielZ for catching this issue.
2013-07-24 13:02:39 +09:00
ChunEon Park
fff2f05bb1
elementary/widget - use eina_inlist in transate data to improve memory access / allocations.
2013-07-17 15:05:40 +09:00
WooHyun Jung
27d51db839
We can change the focusable state of elm_layout by calling elm_object_focus_allow_set from application side.
2013-07-11 17:47:25 +09:00
Shinwoo Kim
e35f12deaa
[access] add elm_access_highlight_next_set, export elm_widget_focus_region_show
2013-07-06 14:41:00 +09:00
Jaehwan Kim
a9bd591af9
In case of scroll in scroll, the child scroller have to bounce if parents don't have a bounce.
2013-06-18 16:28:06 +09:00
Daniel Juyung Seo
253e6369e4
elm_widget.c: handle focus fail case.
2013-06-09 16:54:00 +09:00
Daniel Juyung Seo
8bfdbd2ba6
elm: all the focusable widget now emits "focused" and "unfocused" smart callbacks.
...
1. documentations, NEWS, and ChangeLog will be updated later after some more test.
2. need to check entry.
2013-06-07 01:13:37 +09:00
Daniel Juyung Seo
d0d4afd590
elm: refactoring. no printf in the library. use eina log instead.
2013-06-05 14:40:03 +09:00
Daniel Juyung Seo
55a14655a2
elm_widget.c: formatting fix.
...
I am surprised that one space can annoy me.
2013-05-29 00:38:11 +09:00
ChunEon Park
71bee6ddeb
elementary/widget - plase update display mode whenever sub object is set
2013-05-24 18:34:37 +09:00
ChunEon Park
86f7d566c6
elementary/widget - removed elm_widgetdisplay_mode_get().
...
since INHERIT_MODE is removed and it' doesn't need to care here anymore.
2013-05-24 18:25:16 +09:00
WooHyun Jung
a603b93252
Revert commit:3654d6e28137cfaf72444d5c5e26b651fabac89e. When stealing focus from another widget, Checking visibility of parent widget is wrong :(
2013-05-08 21:08:44 +09:00
WooHyun Jung
0b88a969c1
elementary/elm_widget : Fixed wrong logic when setting parent's child_can_focus as EINA_TRUE.
2013-05-07 20:41:32 +09:00
Daniel Juyung Seo
503e6ecfc5
elm_widget.c: fixed comments.
2013-05-07 19:40:04 +09:00
WooHyun Jung
8058042b6e
elementary/elm_widget : Focus cannot be stolen when one of parents is invisible or disabled.
2013-05-07 19:15:44 +09: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
Ryuan Choi
5685b1607b
elm cursor: theme_search means opposition to engine_only.
...
theme_search_enabled API was introduced instead of engine_only API,
but the meaning is opposition.
2013-05-01 16:39:51 +09:00
Shinwoo Kim
63e74f695b
[focus] update child_can_focus on parent, when an widget becomes focusable
2013-04-25 14:59:39 +09:00
Jaehwan Kim
5153124045
Add 'if' statement for safety
2013-04-23 19:23:16 +09:00
ChunEon Park
c81bda1077
elementary/widget item - and add elm_object_item_domain_part_text_translatable_set().
2013-04-23 17:11:28 +09:00
Jaehwan Kim
9ad338cdfa
Fix the scrolled entry in scroller is located wrong position when the cursor is changed.
...
It is a scroller in scroller. In this case, it moved twice.
2013-04-23 17:03:03 +09:00
ChunEon Park
3e981041c6
elementary/widget - missed new apis eo descriptions.
2013-04-23 16:56:06 +09:00
ChunEon Park
e95af92756
elementary/widget - added elm_object_part_text_translatble_set()
2013-04-23 16:49:49 +09:00
Daniel Juyung Seo
f8bc84d439
elm: fixed documentation + fixed formatting.
2013-04-03 21:26:04 +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
Daniel Juyung Seo
615d05bfe5
elm: removed unnecessary multi blank lines.
2013-04-03 10:45:15 +09:00
ChunEon Park
1d3d93741a
elementary/widget - use Eina_Stringshare explicitly.
2013-04-01 20:50:25 +09:00
WooHyun Jung
45388e4581
elementary/focus : Add four more focus direftions. ELM_FOCUS_UP, ELM_FOCUS_DOWN, ELM_FOCUS_RIGHT, and ELM_FOCUS_LEFT. These are for supporting elm_object_focus_next with four directions. And I added elm_object_focus_next_object_set(get). By setting focus next object manually, developer can set its own first candidate of focus next. Lastly I added elm_object_focused_object_get, for easy finding of current focused object in one object sub-tree.
2013-03-23 09:36:21 +09:00
Tom Hacohen
d75cb616da
Change usage of eo_do_super to the new prototype.
2013-03-18 16:15:12 +00:00
WooHyun Jung
9cf2ef0752
elementary/elm_widget : Modifed the type of parameter to const Evas_Object*.
2013-03-11 22:20:20 +09:00
Daniel Juyung Seo
78c042cdbe
elm *.c: fixed formatting with EINA_LIST_FREE.
...
EINA_LIST_FREE (xxx) -> EINA_LIST_FREE(xxx)
2013-03-09 13:23:42 +09:00
WooHyun Jung
f6a73beb76
Add elm_widget_newest_focus_order_get function for fixing a bug in elm_win. After elm_win is created, if there is no manual focus setting, only elm_win should get focus when focus state is changed.
2013-03-08 16:23:34 +09:00
ChunEon Park
30ce1cf732
elementary/widget - added elm_object_item_signal_callback_add(), elm_object_item_signal_callback_del()
2013-03-06 21:33:13 +09:00
ChunEon Park
9c743a6097
elementary/widget - and should return when failed _elm_theme_object_set();
2013-03-03 13:04:23 +09:00
ChunEon Park
5b6458423b
elementary/widget - return correct value in theme_object_set()
...
becase of this, elm_layout_theme_set() and hoversel were broken.
2013-03-03 13:01:22 +09:00
ChunEon Park
2204559573
elementary/widget - use eo
2013-02-26 17:42:34 +09:00
ChunEon Park
74559f5547
elementary/widget,theme - simpler code.
2013-02-26 13:46:27 +09:00
ChunEon Park
fb472f97b1
elementary - only support sending signals when orientation mode is changed.
...
it's enough right now.
need to consider more about theme change.
2013-02-26 13:26:22 +09:00
ChunEon Park
73bd086b53
elementary/widget - missed return there.
...
thanks glima for spotting it.
SVN revision: 84270
2013-02-21 03:42:04 +00:00
ChunEon Park
0a71cd2727
elementary/widget - revised orientation mode code.
...
now if applying the orientation style is failed, it tries to apply the original style. if it fails again then default theme.
also it fixed a logic error when theme changed is happened.
It will try to apply the original style if the orientation style is invalid on theme changing.
SVN revision: 84082
2013-02-19 08:22:15 +00:00
ChunEon Park
0d5a0dc6e6
elemenatry/widget - --printf
...
SVN revision: 84036
2013-02-18 05:15:53 +00:00
ChunEon Park
ade43adfd9
elementary/widgets - if the orient mode is changed, apply a default only if the style doesn't applied anything. other wise, use the preivouse one.
...
SVN revision: 84034
2013-02-18 05:13:58 +00:00
Cedric BAIL
1aaa6e41e1
elementary: as previously stated sizeof (long) != sizeof (void*)
...
SVN revision: 84014
2013-02-17 03:53:02 +00:00
ChunEon Park
500fa3f34b
elementary/widget - ++FIXME
...
SVN revision: 83991
2013-02-16 13:54:52 +00:00
ChunEon Park
844b5805ff
elementary/widget - don't handle tthe resize objects in widget infrastructure. Acutally these resize objects are sub objects so we don't need to care them separately. This caused overhead in some cases(ie, theme change)
...
SVN revision: 83990
2013-02-16 13:39:59 +00:00
ChunEon Park
9256895f98
elementary/widget, naviframe, popup, label, button
...
let elm_wdg_orientation_set() have return value and call the elm_wdg_theme() inside.
since every widgets tend to do same task with smart_theme() when it's orient mode is changed.
SVN revision: 83981
2013-02-16 11:11:25 +00:00
ChunEon Park
1004d5c062
elementary/widget - null conditional check
...
SVN revision: 83956
2013-02-15 14:04:06 +00:00
ChunEon Park
cf2d0c9d6d
elementary/widget - Apply current orientation mode styles. if it doesn't have, then apply the default.
...
Also whenever orientation mode is changed, the widget itself has orient signals.
SVN revision: 83945
2013-02-15 11:06:19 +00:00