Commit Graph

274 Commits

Author SHA1 Message Date
Carsten Haitzler c0f2f4be91 REVERT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
this breaks theme api. so NO! come back with a version that doesn't
break it.



SVN revision: 70679
2012-05-03 01:19:05 +00:00
Gustavo Lima Chaves 5869e3bd8d [Elm] Now elm win and inwin got into the new
widget hierarchy.
Win inherits directly from Elm_Widget_Smart_Class, while inwin is now
an elm layout.

Note that elm_widget_sub_object_list_get(), which was an unecessary
hack only used on win, was killed.



SVN revision: 70640
2012-05-02 16:58:56 +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
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
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 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
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
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 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 1656bc941d make sure to pass const to these funcs when getting.
SVN revision: 68156
2012-02-20 12:13:08 +00:00
Sanjeev BA 410abe34d1 Fix typos in documentation #11.
Signed-off-by: Sanjeev BA <iamsanjeev@gmail.com>

SVN revision: 67914
2012-02-14 08:50:53 +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 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 da7b8465a3 elementary/genlist - Elm_Genlist_Item -> Elm_Object_Item
SVN revision: 67370
2012-01-20 05:18:31 +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
Carsten Haitzler 745a1517d5 remove eina_pure and eina_nonnull because really.. they screw up
auto-formatting scripts and i just spent a long time fixing the
results of one. the actual value of these macros is minimal at best



SVN revision: 66680
2011-12-30 09:48:46 +00:00
Carsten Haitzler ec0bd7f73f move lots of deprecated stuff into deprecated files. need 2 right now.
SVN revision: 66679
2011-12-30 09:41:11 +00:00
Carsten Haitzler 0930fdcd52 fomatting of headers -> fixup. and documentation fixing.
SVN revision: 66667
2011-12-30 07:20:48 +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
Carsten Haitzler b8d342e49e add func for recursively finding named widgets.
SVN revision: 66589
2011-12-28 05:51:10 +00:00
Hyoyoung Chang ad04bbfc23 From: Hyoyoung Chang <hyoyoung@gmail.com>
Subject: [E-devel] [patch] elm_cnp_helper - make some cnp apis as
public EAPI

As I suggested, I made a patch for some cnp apis.
I think copying and pasting APIs are pretty mature to be public
Those are elm_selection_set, elm_selection_clear, elm_selection_get.
And adding cnp prefix for distinction from word, or char selections.

elm_selection_set    --> elm_cnp_selection_set
elm_selection_clear --> elm_cnp_selection_clear
elm_selection_get    --> elm_cnp_selection_get

And drag and drop APIs should be remained as private.
It has many flaws.




SVN revision: 66505
2011-12-26 04:08:45 +00:00
Hyoyoung Chang fe1cf81624 From: Hyoyoung Chang <hyoyoung@gmail.com>
Subject: [E-devel] [patch] elm_cnp_helper - bugfix mixing with ecore selection set apis
Date: Tue, 20 Dec 2011 18:57:25 +0900

Dear all

When ecore selection set apis(such as ecore_x_selection_clipboard_set)
used in elementary,
Some data is not pasted to elementary widgets.
It's due to mix ecore selection with elementary selection apis.

Data which by ecore doesn't have TARGETS information,
so elementary make it up with TARGETS Information for copying & pasting.

Thank you.


SVN revision: 66407
2011-12-21 03:49:53 +00:00
Hyoyoung Chang cb4aeb780e From: Hyoyoung Chang <hyoyoung@gmail.com>
Subject: [E-devel] [patch] elm_cnp_helper - add type checking for non-elm cnp datas
Date: Fri, 16 Dec 2011 17:09:37 +0900

Dear developers

elm_cnp_helper supports rich types for copying & pasting.
but it doesn't extend like x11 way.
this patch introduces to reduce mismatch for checking selection type format.
now elm can live in harmony with non-elm cnp datas

Thanks


SVN revision: 66367
2011-12-20 08:37:26 +00:00
Mike Blumenkrantz 608d52ba61 missed some things with my tooltip api break
SVN revision: 65917
2011-12-05 17:14:07 +00:00
Mike Blumenkrantz 890a378db7 API BREAK
elm_XXX_tooltip_size_restrict_disable() -> elm_XXX_tooltip_window_mode_set()
elm_XXX_tooltip_size_restrict_disabled_get() -> elm_XXX_tooltip_window_mode_get()


SVN revision: 65909
2011-12-05 15:25:09 +00:00
ChunEon Park 63d9164a36 elementray - +2 APIs
elm_object_item_disabled_set/get 



SVN revision: 65324
2011-11-17 01:58:03 +00:00
Mike Blumenkrantz 88bbad2635 add VIEW() and WIDGET() macros for use with Elm_Widget_Items to create more consistency, reduce typing, and increase readability
VIEW(X) = X->base.view (visible evas object)
  WIDGET(X) = X->base.widget (owner widget)

also a demo of the oxford comma for seoz


SVN revision: 64220
2011-10-21 01:08:01 +00:00
Mike Blumenkrantz 4ad1c5f0db create and use ELM_WIDGET_ITEM for elm widget structs to ensure location/name
SVN revision: 64218
2011-10-21 00:45:19 +00:00
Iván Briano 057a00829c Get us some nice auto translation scheme
First things first, I'm not sure I'm setting the right variable on
the setlocale() call, so someone more knowledgeable can look at it and fix it.

How this works, you say? Just like elm_object_text_part_set(), except now it
will pass the string given through dgettext() with the given domain (NULL
means it uses whatever the app set with textdomain()), and when changing
language with elm_language_set(), it will re-set the strings with a new
translation.



SVN revision: 64179
2011-10-19 14:17:14 +00:00
Cedric BAIL 6d9e3d69be elementary: check against NULL widget also.
SVN revision: 64175
2011-10-19 12:15:41 +00:00
ChunEon Park d946ca77cc elementary - removed ELM_CAST macro
SVN revision: 64138
2011-10-18 00:25:52 +00:00
ChunEon Park 0368cf0de6 Elementary/elm_widget - removed useless macros.
SVN revision: 63939
2011-10-10 06:10:34 +00:00
Daniel Juyung Seo 93eed9dd9a elm: Removed trailing whitespaces.
SVN revision: 63512
2011-09-21 10:37:23 +00:00
ChunEon Park 0e7f321153 elementary/widget - added one missing stuff.
SVN revision: 63467
2011-09-19 04:59:43 +00:00
ChunEon Park a1f1eb1689 elementary/elm_object_item - added signal emit func.
SVN revision: 63424
2011-09-16 02:10:07 +00:00
Mike Blumenkrantz c705290b44 make ELM_CHECK_WIDTYPE & co macros useful. would you believe this macro came from my first ever code patch :D
SVN revision: 63334
2011-09-12 02:06:27 +00:00
Tom Hacohen e36e207812 Elm tooltip: Added checks if the object passed is an elm object.
SVN revision: 62919
2011-08-28 14:12:38 +00:00
Carsten Haitzler 27d751a236 and now add custom access info for items too and clean up nicely.
SVN revision: 62734
2011-08-24 06:39:29 +00:00
Carsten Haitzler dbb4cbed93 and now do toolbar - showing how to add access stuff to items in a
widget



SVN revision: 62733
2011-08-24 06:29:13 +00:00
Carsten Haitzler 04cfa6a54f make access hilight follow object around and vanish it target is
hidden or deleted.



SVN revision: 62714
2011-08-23 08:46:01 +00:00
Carsten Haitzler ee218406b0 add visual feedback on accessibility mouseover too
SVN revision: 62713
2011-08-23 07:44:49 +00:00
Carsten Haitzler 3d52581f0e and start on allowing modified behavior when in access mode. ie turn
it on and off. just settable by env var and config file for now.



SVN revision: 62591
2011-08-19 14:39:27 +00:00
Carsten Haitzler a3592b4da6 and now add a "clicked" say... when u click.
SVN revision: 62587
2011-08-19 11:47:30 +00:00
Carsten Haitzler 430e7463f5 this is... the beginning of accessibility supportin elm. it's direct
as in elm manages it itself - all it needs is a module to send text
to. one is provided here that just execs espeak and handles a stream
of things for it to say. this is only a start and is still being
fleshed out.



SVN revision: 62585
2011-08-19 11:07:42 +00:00
Mike Blumenkrantz 49ab1fb009 clean up some of this horrific function pointer debacle
SVN revision: 62322
2011-08-10 23:43:50 +00:00
Daniel Juyung Seo b8e186dcad elm: Refactoring. Removed trailing whitespaces and fixed indentation.
SVN revision: 62281
2011-08-10 04:35:31 +00:00
WooHyun Jung bda792c39a elementary : elm_win didn't be focused/unfocused following the focus
state of its ecore_evas.


SVN revision: 62235
2011-08-09 08:36:02 +00:00
Carsten Haitzler 465ca66ed3 we really should focus when we release mouse AND on_hold is... NOT
set. happy happy joy joy.



SVN revision: 62197
2011-08-08 10:32:32 +00:00
Tom Hacohen 6c47d15666 Elm entry: Fixed 'Paste' to only show if there clipboard isn't empty.
SVN revision: 62193
2011-08-08 07:51:02 +00:00
WooHyun Jung 85351c10c5 elementary : Focus movement is possible with arrow keys. You can check
this feature in elementary_test -> focus. 


SVN revision: 62125
2011-08-05 08:25:07 +00:00
ChunEon Park 646f514d34 elementary/elm_widget - patched by hyoyoung.chang@samsung.com
[E-devel] [patch] elm_widget - elm_widget_type_unregister

Dear developers.

This patch is adding a api to elm_widget.
In elm_widget, there is an api to register widget type to elementary's own
list.
However it doesn't provide unregister api.
So I made this patch.

Most of case, it's not needed. But in some case, it's useful.
(such as elm objects in DSO, if a DSO unloaded, registered widtype is
invalidated)

Thank you



SVN revision: 62099
2011-08-04 17:10:17 +00:00
ChunEon Park c2736b1e8b elementary/elm_widget - removed white space.
SVN revision: 62096
2011-08-04 15:37:34 +00:00
ChunEon Park d16f2e9938 elementary/elm_widget - implemented elm_wiget_item_content_set_hook_set series.
SVN revision: 62095
2011-08-04 15:15:40 +00:00
ChunEon Park e97d8d28ff elementary/elm_widget - oops. recorvered a missing struct and added a macro to verify elm_object_item
SVN revision: 62084
2011-08-04 08:52:49 +00:00
ChunEon Park 44dd8c0765 elementary/elm_widget - added a casting macro
SVN revision: 62082
2011-08-04 08:15:12 +00:00
ChunEon Park 4f559a7cdb elementary/elm_widget_item - wrapped the elm_widget_item with elm_object_item
But wonder, is it really needed the auto casting macros?

Why user not just use the elm_widget_item directly
and make their item data structures dangled to elm_widget_item just like smart object?



SVN revision: 62079
2011-08-04 05:06:02 +00:00
ChunEon Park bcd5e510b7 elementary - just renamed paramenter names for consistency.
SVN revision: 62053
2011-08-03 12:27:57 +00:00
ChunEon Park f14c66d340 elementary/elm_object_item - modified for consistency (naming, macros)
SVN revision: 62050
2011-08-03 11:55:24 +00:00
ChunEon Park 1acea3d138 elementary/common - exported Elm_Object_Item type and a few common item APIs.
SVN revision: 62047
2011-08-03 09:34:00 +00:00
Carsten Haitzler 4f64dc8441 fix re-focusing of widgets once inlined window is focus. kind of
tricky requiring a 2nd shadowed parent.



SVN revision: 61989
2011-08-02 10:34:30 +00:00
WooHyun Jung 73057c35bd elementary/elm_main : Add elm_object_tree_unfocusable_set/get. This
API will set an object and its child objects to be
unfocusable/focusable.


SVN revision: 61838
2011-07-28 06:58:29 +00:00
ChunEon Park 2b8ae14cd2 elementary - added common APIs elm_object_content_set/get/unset
Now need to widgets use them. 



SVN revision: 61802
2011-07-27 09:49:14 +00:00
Mike Blumenkrantz 54f1e32c17 THE MOST ANTICIPATED COMMIT OF 2011: HUGENORMOUS TOOLTIPS!!!!!!
these bad boys are so big and pixelthirsty they can't be constrained by a regular canvas or window, they use OVERRIDE REDIRECT WINDOWS. not only that, they totally exceed the boundaries of what a reasonable function name length could be. 50 character function name limit? puh-leeze. these guys don't care what side of the screen they're even on so long as they get to wade into the thick of the action and block out each and every crappy non-efl application behind them. and that's when they're in good moods. you don't even want to know what happens when you piss these guys off.


SVN revision: 61735
2011-07-26 09:38:23 +00:00
WooHyun Jung 26d14e25c9 elementary/elm_widget : add focus_disabled_handle.
SVN revision: 61270
2011-07-12 08:22:16 +00:00
Daniel Juyung Seo a4ba91dd39 elm conform: Eina_Bool parameter is added to API
elm_widget_show_region_set to set the show region always. Earlier, the
API expects some change, to redo the job. Patch by Prince Kumar Dubey
<prince.dubey@samsung.com>

------- Original Message -------
Sender : PRINCE KUMAR DUBEY<prince.dubey@samsung.com>
Date : 2011-05-20 17:41 (GMT+09:00)
Title : [E-devel] [Patch] elm_conform patch

Hi Mr Seo,
Can you please send the attached patch of elm_conformant to EFL ope-src community.
Change Log:
Eina_Bool parameter is added to API elm_widget_show_region_set to set
the show region always. Earlier, the API expects some change, to redo the job.
This enhancement is already approved by raster in gerrit review.

Thank you.
Regards,

Prince


SVN revision: 61148
2011-07-08 07:50:36 +00:00
Tom Hacohen 4b0af66c91 Elementary: Rename elm_object_label_* -> elm_object_text_part_*.
This name is better as it also applies for entries, and not just
for labels.

SVN revision: 60975
2011-07-04 09:18:16 +00:00
Mike McCormack 75b14b3c7f elementary: Add hooks to set label get/set functions
Signed-off-by: Mike McCormack <mj.mccormack@samsung.com>

SVN revision: 60796
2011-06-29 06:41:10 +00:00
Mike McCormack 6488c3d956 elementary: Add generic label getter and setter
These need to be hooked into each widget, one by one.

Signed-off-by: Mike McCormack <mj.mccormack@samsung.com>

SVN revision: 60795
2011-06-29 06:40:59 +00:00
Daniel Juyung Seo 8c7b5da537 Elementary elm_widget: Use Eina_Bool instead of int for boolean type.
SVN revision: 58969
2011-04-27 16:12:56 +00:00
Carsten Haitzler 59f8230bb5 kbd input/fcosu works on inlined wins. wootsors
SVN revision: 58664
2011-04-14 12:47:16 +00:00
ChunEon Park cc5e358c45 elementary / widget - removed semicolon
SVN revision: 58556
2011-04-11 15:56:36 +00:00
Daniel Juyung Seo 8a108db5ab Elementary: Use pre-defined type Edje_Signal_Cb instead of describing all of its parameters.
SVN revision: 58283
2011-04-03 05:32:17 +00:00
Daniel Juyung Seo 3cc69929db Elementary elm_widget.h: Removed trailing whitespaces.
SVN revision: 58246
2011-04-01 08:05:24 +00:00
Carsten Haitzler f74c18a02e make all widgets use a standard setup macro. cuts code down and
handles null parent errors, null wd alloc, null obj create errors etc.



SVN revision: 58242
2011-04-01 06:08:02 +00:00
Daniel Juyung Seo 32778a770a Elementary magic key: Fixed typo.
SVN revision: 57001
2011-02-14 01:47:51 +00:00
Carsten Haitzler 66dbccf4c9 annoy people using elm's widget api!
SVN revision: 56987
2011-02-13 14:58:38 +00:00
Tom Hacohen 04c2eda677 Elementary ui-mirroring: move elm_widget_mirrored_* functions to elm_widget.h.
and created elm_object_mirrored wrappers for them.

SVN revision: 56893
2011-02-10 08:29:24 +00:00
Tom Hacohen 22fb070ad7 Elementary widget: Remove two functions from elm_widget.h. They are supposed to be only in Elementary.h no idea how it got to elm_widget.h
SVN revision: 56841
2011-02-09 14:41:12 +00:00
Tom Hacohen 689ff9abd5 Elementary: Added the infrastructure for ui-mirroring support.
* Added elm_mirrored_get/set to set the system mirrored mode
* Added elm_widget_mirrored/get/set to set each widget's mirrored mode.
* Added code to set the system mirrored mode from translations to elementary and added translations for all the rtl languages. (a trick to load according to locale).
* Future commits will include specific widgets mirrored mode handling.
Work by Aharon Hillel and Tom Hacohen.

SVN revision: 56673
2011-02-03 15:52:49 +00:00
Fabiano Fidêncio 0f2b624dc3 Fixed elementary/src/lib/elm_widget.h doxygen.
Fixed typos and removed unnecessary lines.

Patch by Daniel Juyung Seo (SeoZ)



SVN revision: 55787
2010-12-31 08:45:45 +00:00
3v1n0 ff67ce31fb Always check for valid evas object.
If you try to create a new widget, you must be sure that the parent
is really an evas object.

With the previous implementation it was possible to call an _add
function for an elementary widget with any non-null pointer as parent
eventually causing crashes (like with the elm_box).


SVN revision: 55521
2010-12-12 19:12:43 +00:00
Tiago Rezende Campos Falcao 31152f038c RIP elm_widget_focus_jump
The last call to this method was removed. This method broke the focus
tree and we don't need it anymore.

SVN revision: 55410
2010-12-09 13:07:45 +00:00
Tiago Rezende Campos Falcao 670ca32f20 Event Callback
SVN revision: 55061
2010-11-29 13:56:30 +00:00
Carsten Haitzler 5400a9a7f1 elm theme can be copied, referenced and theme flush tries to ONLY
flush a specific theme if told so (and only those widgets and their
children).



SVN revision: 54169
2010-11-05 08:37:31 +00:00
Bruno Dilly 7c5152ef83 Add cursor getters for elm widgets and items
SVN revision: 54164
2010-11-05 00:46:54 +00:00
Tiago Rezende Campos Falcao af5625cca4 Add test and checker to widget items
SVN revision: 54089
2010-11-02 11:26:44 +00:00
Iván Briano ea3dda3527 And let's not expose internal objects when setting signal callbacks on widgets.
SVN revision: 54004
2010-10-29 18:21:58 +00:00
Tiago Rezende Campos Falcao 1a93e760bd Coccinelle
SVN revision: 53786
2010-10-22 21:41:22 +00:00
Iván Briano 3ec77727cc Bring focused object into the visible area
There's still a little bugger that can be noticed with the Scroller 2 test
and elm_conform still needs to handle this as scroller does.


SVN revision: 53778
2010-10-22 18:29:51 +00:00
Tiago Rezende Campos Falcao ece2114120 Review type checkers in main and widget
SVN revision: 53732
2010-10-21 18:58:40 +00:00
Tiago Rezende Campos Falcao b8ac8c0e80 Added focus_direction_go entry in API.
Also, exported the focus_cycle.

SVN revision: 53659
2010-10-20 12:38:27 +00:00
Brett Nash 9b9dc594da elm_dnd: Add HTML encoding support: Callback only
SVN revision: 53559
2010-10-18 04:49:00 +00:00
Brett Nash 6bb0365d9c Add optional drop callback to elm_selection get.
SVN revision: 53557
2010-10-18 04:48:49 +00:00
Brett Nash 580c2797bb elm_cnp: Elm Drop Data is now Elm Selection data.
SVN revision: 53556
2010-10-18 04:48:44 +00:00
Brett Nash bf0fce54c8 elm_cnp: Whitespace Cleanup
SVN revision: 53555
2010-10-18 04:48:38 +00:00
Christopher Michael 2c7e5ca75f Fix typo (I believe the word is breaking) ;)
SVN revision: 53372
2010-10-13 17:50:20 +00:00
Carsten Haitzler 9ec9ce7585 typo---
SVN revision: 53351
2010-10-13 12:29:33 +00:00
Tiago Rezende Campos Falcao 9ff54ffc12 Fix event propagation in elementary.
Need set ON_HOLD, and check it.

SVN revision: 53194
2010-10-08 16:27:04 +00:00
Tiago Rezende Campos Falcao d959e612eb Adding custom chain to focus.
Added set, get, unset, prepend and append (relative or not).

Set - overwrite the custom chain
Unset - Delete the custom chain
Get- Return the custom chain
Append - append after the relative object or in the end
Prepend - prepend before the relative object or in the start

SVN revision: 53115
2010-10-06 20:24:22 +00:00
Tiago Rezende Campos Falcao ef18ffa4f4 Set const where need in focus_next_get functions set
SVN revision: 53114
2010-10-06 20:24:19 +00:00
Tiago Rezende Campos Falcao 434ed6e093 Adding elm_widget_focus_cycle method
This will cycle focus inside the sub-tree of one object.

SVN revision: 53113
2010-10-06 20:24:16 +00:00
Tiago Rezende Campos Falcao 198ca1fd95 Rename focus method from cycle to next_get
SVN revision: 53112
2010-10-06 20:24:13 +00:00
Tiago Rezende Campos Falcao c3e3585e83 Optimized Linear Focus Chain
Before, the focus_cycle try pass the focus to next, and try again if
need loop the objects. Now, the focus cycle return possible next
object and if is necessary loop or not to focus this returned object.

SVN revision: 53111
2010-10-06 20:24:09 +00:00
Tiago Rezende Campos Falcao a11d03a921 Adding method to output the elm obj tree in dot.
This Debug search all subobjects from one object and put in file all
sub-tree of elementary objects as dot language in file. After you can
use dot(from graphviz) to generate PNG, SVG,... diagram of objects.

SVN revision: 53035
2010-10-04 18:37:48 +00:00
Iván Briano 8f7c57b6c7 Little debug function. It helped already to track the scrolled_entry focus problems.
SVN revision: 52861
2010-09-28 19:35:12 +00:00
김지훈 d99918389f From: 김지훈 <imfine98@gmail.com>
I changed elementary source code related to focus functions.
Eina_Bool is used instead of integer type in those functions.



SVN revision: 52839
2010-09-28 04:28:14 +00:00
Bruno Dilly 3dd29a961c Implements a way to select if we should use ecore_evas for cursor or only engine
With this commit is now possible to not use theme's cursor (default behevior)
that could be overriding cursors defined by the engine.



SVN revision: 52761
2010-09-25 22:03:37 +00:00
Bruno Dilly 816c77b3fa Add cursor support on Elm using ecore_evas
Basically, get the group from widget theme, using the string passed to
elm_object_cursor_set, get hot spots x and y from the theme (keeps the object
and these two integers on cursor struct).
Cursor is set with ecore_evas_object_cursor_set()

Some functions to change style were added to the api.



SVN revision: 52760
2010-09-25 22:01:19 +00:00
Tiago Rezende Campos Falcao 113ad55d2e Focus Linear Chain for some Widgets
Containers implemented (and with test):
* Win
* Box
* Scroller
* Layout
* Panel

SVN revision: 52686
2010-09-24 14:47:59 +00:00
Tiago Rezende Campos Falcao 66d585a905 Elm_widget_can_focus only return if can have focus.
If want the old comportament, use elm_widget_can_focus_receive_get()

SVN revision: 52684
2010-09-24 14:47:52 +00:00
Vincent Torri 9076f964c9 spelling
SVN revision: 52668
2010-09-24 05:29:42 +00:00
Iván Briano 7255d69dc1 Highlight in theme wins over generic object
Still needs stuff done in themes and widgets code to make it functional.
It will start coming tomorrow morning. (My morning)



SVN revision: 52608
2010-09-22 22:33:57 +00:00
Tiago Rezende Campos Falcao ba4e1c944e Elementary event propagation to widget parents
The Elm Widgets aren't disposed exactly as trees of Evas Objects, so
need store widget parents separated from Evas Smart Object parents.

The Evas propagation events don't satisfy all use cases. Like managing
events in elm_win or try if one parent manage the event before manage
it.

In this, I add hook to each widget manage their interested events or
from their child.

SVN revision: 52527
2010-09-21 02:02:24 +00:00
Iván Briano 6879d7fdad Begins highlight on focused object.
There's still work to do here, particularly in the theme, but it has
something nice and fun to see the code working.
The idea behind this:
Window tracks focused object and sends the highlight object(s) to it. These
are simple edje objects, one on top, one below the focused widget for nice
effects. Widgets can choose to ignore the highlight and this will be sent to
the parent object, if it doesn't ignore it as well.
About the bottom object, it doesn't work now. For the most part, focused
widget will always be a member of some smart object, so stacking won't work
and the desired effect is nowhere to be seen. This will be worked out later.
To be done now:
 - Let the theme for a widget define its own highlight, disabling if needed
 the standard one for those objects.
 - Needed base in code to allow animations when switching focus. All in theme.
 - Properly test all widgets and fix some things that will most likely work
 in weird ways, given the nature of Evas/Edje and how Elementary makes use
 of them.
 - Forgot the rest, stay tuned, test, report, give ideas, plant a tree.

Work started by glima, continued with some refactors by me when he
decided he needed vacations.


SVN revision: 52524
2010-09-20 22:18:58 +00:00
김지훈 d5b8d09591 From: 김지훈 <imfine98@gmail.com>
Subject: patch for indentation and using enum in elementary

I send the patch for elementary.
In this patch, I fixed the indentation of Elementary.h.in.
In addition, I use EINA_TRUE or EINA_FALSE instead of 1 or 0.
EVAS_HINT_EXPAND and EVA_HINT_FILL is used instead of 1.0 and -1.0.
Thanks.



SVN revision: 52447
2010-09-19 02:30:14 +00:00
Bruno Dilly 66e512552f Add support on Elm to customized cursors
Widgets can have customized cursors setting it with elm_object_cursor_set.
Widget's item can use elm_X_item_cursor_set to set a different cursor
for each item.
It will work only if HAVE_ELEMENTARY_X for now, but support for themeable
cursors is planned.



SVN revision: 52382
2010-09-17 18:24:10 +00:00
Brett Nash 9b8e54d3b1 Move cnp/dnd -> elm_widget. Officially Experimental for apps.
Expect to see changes in the very short term future for the CNP/DND code.
It will break etc etc etc.

SVN revision: 52359
2010-09-17 05:39:04 +00:00
Carsten Haitzler baa8b34b6e comments match correct code.
SVN revision: 52241
2010-09-14 11:56:48 +00:00
Carsten Haitzler 68f5b4119b oooh big cleanup. internal elm widget api cleaned up a bit.
SVN revision: 52178
2010-09-13 07:56:23 +00:00