Commit Graph

276 Commits

Author SHA1 Message Date
Gustavo Lima Chaves 2d60b7baba [Elm] Factoring out code for basic widget theme
smart function.



SVN revision: 70629
2012-05-02 16:57:48 +00:00
Gustavo Lima Chaves a5b79bf277 [Elm] Adapting sub_obj_{del,add}, hover and
resize objects to new schema.
sub-object-{add,del} new class functions got their bodies in.  One by
one, the old elm_widget_ namespaced calls to them got to be migrated
to the class calls.

A resize object is now a sub-object, too. This should be like that
from the start -- we share code and avoid callback duplication -- what
leaded to a plethora of bugs.



SVN revision: 70628
2012-05-02 16:57:43 +00:00
Gustavo Lima Chaves 72d6e15f93 [Elm] Creating base smart class, to be extended
properly by real widgets.
I'm also creating a *compatibility* class on top of it, which extends
the old (unique) one to its old components, so that everything goes
unnoticed for the widgets.

Next, we'll be accessing class functions for widget hooks *on the base
class*, which will be proxied back to the instance ones.

Then, one by one the widgets will be translated to a proper
hierarchical smart class parentage, making extensibility and reuse
much better.

Last, but not least, since we'll be moving these hooks to the class,
where (almost) everything is a function, let's adapt to the future --
take away the "_func" suffix from them.

NB: there is ONE hook and associated data which was kept on the base,
for now: "show_region" stuff. I did that because scrollers need that
in order to work, right now. Keep in mind, though, the scrollers will
be reworked, so that fields ought to be changed soon, too.



SVN revision: 70627
2012-05-02 16:57:38 +00:00
Gustavo Lima Chaves 29341fc22c [Elm] Renaming base smart data struct, in
preparation for the next commit.



SVN revision: 70626
2012-05-02 16:57:31 +00:00
Daniel Juyung Seo ba3c148139 elm elm_widget.c: Fixed build break. Thanks for the report Rajeev.
SVN revision: 70164
2012-04-13 06:28:43 +00:00
Daniel Juyung Seo 044bdaf657 elm: Renamed internal function about elm_object_item_part_content/text_set/unset/get.
SVN revision: 70161
2012-04-12 23:39:36 +00:00
Daniel Juyung Seo 528e743c33 elm elm_widget.c: Print error message when unsupported elm_object_item_part_content_set/unset/get and elm_object_item_part_text_set/get APIs are called.
SVN revision: 70154
2012-04-12 15:35:12 +00:00
Daniel Juyung Seo e8cad72816 elm elm_widget.c: Added elm_widget_sub_object_add() parameter
verification. Patch by Taehwan Kim <ohpowel@gmail.com>

On Tue, Apr 10, 2012 at 5:37 PM, Bluezery <ohpowel@gmail.com> wrote:
> Hello,
>
> Currently, elm_widget_sub_object_add() does not check if obj and sobj
> are same object.
> Actually it is a user problem if user add object itself as it's sub
object.
> But I think that this checking is needed and it is better to give
> error logs to users.  Because it causes infinite loop and it is hart
> to debugging.  :(
>
> Thanks.

SVN revision: 69995
2012-04-10 09:47:19 +00:00
ChunEon Park c35d5ac903 elementary/win - [E-devel] [Patch][Elementary] Patch for elm_win to fix the focus chain issue in case of a widget added as a normal sub-object, not a resizable object
Current Issue:
Currently when we add a widget to window as a sub-object, e.g.
elm_notify_add(win) which internally calls elm_widget_sub_object_add
then the focus chain using <TAB> includes only
the first focusable subitem of the widget, not all.
Whereas with elm_win_resize_object_add, it works fine and cycles to
all focusable sub-items of the widget.

Reason:
The reason is that we are appending sub-object to the list in
elm_win which is used for focus chain, only in case of
elm_win_resize_object_add.

Change Description:
Added a new API: EAPI Eina_List
*elm_widget_sub_object_list_get(const Evas_Object *obj);
This API returns the list of sub-objects of an elementary widget
(sd->subobjs) where sd is Smart_Data pointer obtainted using
elm_widget_smart_data_get(obj).
We have used this API in elm_win for focus_next_hook implementation.

Signed-Off-By: RAJEEV RANJAN<rajeev.r>@samsumg.com>



SVN revision: 69943
2012-04-06 06:19:16 +00:00
ChunEon Park cc12f6fc83 elementary/widget - let the child unset the clip on smart_member_del
SVN revision: 69903
2012-04-03 14:29:38 +00:00
ChunEon Park ee803ccfd8 elementary/widget - removed item smart callback internal infra.
Not exposed and not used anywhere.

We don't recommend to apply this.



SVN revision: 69889
2012-04-03 07:30:11 +00:00
Carsten Haitzler 2101792842 fix next calgrind bitch. yay!
SVN revision: 69737
2012-03-29 09:54:21 +00:00
ChunEon Park 0519f0178d elementary/widget - fixed to update the some status -color, clip, visibitliy- even if the memebers are added later.
SVN revision: 69701
2012-03-28 10:03:45 +00:00
Daniel Juyung Seo 7908a77ad8 elm: Fixed formatting.
SVN revision: 69700
2012-03-28 09:02:22 +00:00
WooHyun Jung d1840b22a8 elementary/elm_widget : When adding a sub-object, top_win_focused flag
of parent object should be set for all sub-objects in the tree.   


SVN revision: 69523
2012-03-20 08:42:23 +00:00
Gustavo Lima Chaves e008bd0e5e [Elm] No reason to call theming on !elm object.
SVN revision: 69249
2012-03-12 13:58:19 +00:00
Gustavo Lima Chaves fb2bcea0d0 [Elm] Document obj signal callaback del properly.
Specify which data ptr it returns better. Also forbid uninitialized
var. access there.



SVN revision: 69021
2012-03-07 19:43:23 +00:00
ChunEon Park af38b11e5a elementary - renamed elm_fonts.h to elm_font.h
SVN revision: 68968
2012-03-07 15:09:05 +00:00
Gustavo Lima Chaves feef00175c [Elm] This is meant to be used on the future, as I said.
SVN revision: 68853
2012-03-06 21:56:32 +00:00
Gustavo Lima Chaves 2ecf3ee605 [Elm] Forgotten detail on refactor.
SVN revision: 68850
2012-03-06 21:46:47 +00:00
Gustavo Lima Chaves edd17756d4 [Elm] More on elm error codes on theming.
SVN revision: 68845
2012-03-06 19:06:02 +00:00
Gustavo Lima Chaves ee95a473cf [Elm] Just being future-proof on some methods: error val on return.
SVN revision: 68844
2012-03-06 18:39:53 +00:00
Carsten Haitzler 7a5a301a63 rename a whole host of config-related functions to be elm_config_*
now. yes - no deprecation. no time to do that.



SVN revision: 68810
2012-03-06 12:04:25 +00:00
Daniel Juyung Seo 480c61f20a elm: Formatting. No spacing after casting.
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>

SVN revision: 68807
2012-03-06 11:51:42 +00:00
Sanjeev BA 05780e9b14 Deprecate elm_object_cursor_engine_only_set/get.
Signed-off-by: Sanjeev BA <as2902.b@samsung.com>

SVN revision: 68683
2012-03-05 09:15:04 +00:00
ChunEon Park b42f6a38a3 elementary/widget - modified to check delete_me inside MACRO.
SVN revision: 68387
2012-02-24 06:53:03 +00:00
ChunEon Park 9536b08c36 elementary/elm_object_item - added smart callback feature.
SVN revision: 68377
2012-02-24 04:31:03 +00:00
Carsten Haitzler f4e71c7abf hermet's code didnt create a bug.. it brought out an existing bug...
FIX!



SVN revision: 68298
2012-02-23 04:20:30 +00:00
Carsten Haitzler bb664dc971 if u deprecate a func in .h - also do it in .c!
SVN revision: 68297
2012-02-23 04:11:04 +00:00
Carsten Haitzler af5309f0a2 no space affter cast
SVN revision: 68296
2012-02-23 04:09:43 +00:00
Carsten Haitzler 0d93e97822 can_focus ne3eds to be actually set - not just tested against
SVN revision: 68295
2012-02-23 04:09:05 +00:00
ChunEon Park ed5c8799f5 elementary/focus - reviewed done!
SVN revision: 68218
2012-02-21 12:36:54 +00:00
Carsten Haitzler 549b50e5ec oops return the focus order no matter what
SVN revision: 68212
2012-02-21 10:55:30 +00:00
Carsten Haitzler 628927d3d4 use focus order to determine if window never focused before instead of
show count. fixes focus problems in elm tests for entries



SVN revision: 68211
2012-02-21 10:54:46 +00:00
Carsten Haitzler 14d2ad43e6 fix up some missing checks.
SVN revision: 68158
2012-02-20 12:23:46 +00:00
Carsten Haitzler 80f5f7ec1d missing EAPI
SVN revision: 68157
2012-02-20 12:17:45 +00:00
Carsten Haitzler 1656bc941d make sure to pass const to these funcs when getting.
SVN revision: 68156
2012-02-20 12:13:08 +00:00
ChunEon Park 991bed89dc elementary/widget - improve coding convention
SVN revision: 67968
2012-02-15 09:02:07 +00:00
ChunEon Park b3af72d606 elementary/widget - fixed to prevent infinite loop.
Now, if user passes the parent object of obj as the sub object, 
then it reverses the obj - subobj relationship.



SVN revision: 67823
2012-02-10 12:29:04 +00:00
ChunEon Park 4c6d88b090 elementary/widget - sorry. I didn't intend this.
SVN revision: 67669
2012-02-01 05:24:59 +00:00
ChunEon Park 4ea4e28f15 elementary/widget - just removed macros duplicated impl.
SVN revision: 67666
2012-02-01 03:07:53 +00:00
ChunEon Park 40e51b5fea elementary/gengrid - deprecated elm_gengrid_item_del()
please use elm_object_item_del() instead



SVN revision: 67621
2012-01-31 03:03:17 +00:00
ChunEon Park fcc6192848 elementary - modified item_del_pre_hook function prototype.
Now it returns the bool value to free the widget item.

Some widget items(i,e genlist) should not be deleted directly when elm_object_item_del is called.
So, if the pre_hook function returns EINA_FALSE, then the widget item will not be deleted.



SVN revision: 67565
2012-01-27 11:56:14 +00:00
ChunEon Park 56a881bd35 elementary/menu, ctxpopup, index, segment_control, diskselector, multibuttonentry, toolbar, naviframe, slideshow, hoversel, filpselector - deprecated xxxx_item_del() APIs.
But instead,  made to use the elm_object_item_del() APIs
for this, elm_widget_item needed to provide elm_widget_item_del_pre_hook.




SVN revision: 67010
2012-01-10 05:02:11 +00:00
ChunEon Park 0f8b78cdd5 elementary - renamed internal callback function
elm_widget_item_disabled_set_hook_set -> elm_widget_item_disabled_hook_set



SVN revision: 67007
2012-01-10 01:00:23 +00:00
ChunEon Park 594430c470 elementary/widget - just renamed internally.
SVN revision: 67006
2012-01-10 00:33:51 +00:00
ChunEon Park aac0e16d03 elementary/widget - +del_pre_hook
now elm_object_item_del is exposed to users, 
this callback is used for widgets to use internally.



SVN revision: 67004
2012-01-10 00:02:58 +00:00
ChunEon Park 923fe0cef6 elementary/widget - modified like freeze_pop.
SVN revision: 66986
2012-01-09 07:03:28 +00:00
Kim Shinwoo 78abd8f634 elementary/widget
Re: [E-devel] [Patch] elc_ctxpopup, using elm_smart_scroller_freeze_set() not elm_object_scroll_freeze_push(), pop()

Signed-Off-By: Kim Shinwoo <kimcinoo.efl@gmail.com>



SVN revision: 66985
2012-01-09 06:59:33 +00:00
Carsten Haitzler 1713de6106 add recursie object find function - it will only look at elm children
not go into edje objects et.c and hunt their children too. should be
more efficient than evas's recursive name finder.



SVN revision: 66591
2011-12-28 06:01:31 +00:00