Commit Graph

1394 Commits

Author SHA1 Message Date
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
Christopher Michael e79367d7a8 Fix typo.
SVN revision: 52759
2010-09-25 22:01:18 +00:00
Christopher Michael d5cb2b88f8 Add function to return the children of an elm_box.
SVN revision: 52753
2010-09-25 21:39:29 +00:00
Carsten Haitzler 0b14b5b021 workaround for now :(
SVN revision: 52735
2010-09-25 14:57:34 +00:00
Carsten Haitzler 24b01d329c fix clip artifact that elm_config shows up with flip.
SVN revision: 52732
2010-09-25 12:41:06 +00:00
Christopher Michael eff81910e4 Fix typo.
SVN revision: 52711
2010-09-25 03:17:19 +00:00
Gustavo Sverzut Barbieri 09a19aaa68 test focus brokenness.
Raster, if possible give it a try as it seems that most of the focus
steal and clear is your code and maybe you have a clue of what is
happening. For instance I have no clue why that global focus_order
counter that always grows.

This test is now exposing various problems, some of them is what bug
us in Editje, some is what eve's url bar, etc:

  - press "Give focus to scrolled entry", then press it again. See
    that the scrolled entry looses its focus, although we're giving it
    focus? This is related to the object loosing focus but not
    detecting it, thus the next elm_widget_focus_steal() will just
    ignore it and say "you already have focus, do nothing!"

  - start pressing "TAB", after a full iteration, the next iteration
    just goes up to the last item. If you keep doing that, at some
    point the TAB will just not work anymore.  If you change PARENT
    from "bx" to "win", then it does not happen. But adding to "bx"
    would be the correct thing to do (more logical structure)




SVN revision: 52709
2010-09-25 00:06:32 +00:00
Tiago Rezende Campos Falcao 42fab88a0e Focus test win is now resizeable
SVN revision: 52693
2010-09-24 16:46:59 +00:00
Iván Briano 4b75917e42 Begone! Evil trailing spaces from hell!
SVN revision: 52692
2010-09-24 16:41:25 +00:00
Tiago Rezende Campos Falcao 9d310ab6d2 Removing warnings in elm_tests.
Most of the errors referred to the cast from int to void* in x86_64.
This need conversion to long, as intermediate.

Some calls to elm_widget not exposed API were changed to their similar
at elm_object API.

Elm_Photo never call "drop" smart callback, but i leave the callback
in tests.

And others API methods are included in Elementary.h

Now elementary build with -Wall -Werror in x86_64.

SVN revision: 52691
2010-09-24 14:48:15 +00:00
Tiago Rezende Campos Falcao 8730c19ec2 Removing warning in elm_config.
Added one hack to dont warning about unused _status_config.
Elm_config isn't done and we may want to use this code.

SVN revision: 52690
2010-09-24 14:48:12 +00:00
Tiago Rezende Campos Falcao 1efda55a6c Removing warnings in els_icon.c
Enum value will be treated in next switch.

SVN revision: 52689
2010-09-24 14:48:09 +00:00
Tiago Rezende Campos Falcao 0d7a14174f Removing warnings in scrolled_entry and scroller
Adding NULL as return value.

SVN revision: 52688
2010-09-24 14:48:06 +00:00
Tiago Rezende Campos Falcao d147b3213e Remove warning from elm_index.c
Can't access directly Elm_Widget_Item struct.

SVN revision: 52687
2010-09-24 14:48:03 +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 4743f7f5b5 Modify elm_win to receive events
When no objects have focus, elm_win need get it.

SVN revision: 52685
2010-09-24 14:47:55 +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
Iván Briano b5c09ac8e2 Put the simple focus highlight on scrolled entry too
SVN revision: 52681
2010-09-24 13:01:17 +00:00
Vincent Torri 9076f964c9 spelling
SVN revision: 52668
2010-09-24 05:29:42 +00:00
Carsten Haitzler d81485068a make theme browser in elm config util actually work. add api's needed.
it's simple. only allows 1 level of theme. would need an advanced
dialog to allow:

theme1:theme2:theme3:theme4... etc.

also no browsing for themes - just whats instaleld n system and user
dirs atm.



SVN revision: 52667
2010-09-24 05:11:33 +00:00
Leandro Pereira 8c4df25efe [Elementary] For icon/end elements, use swallow parts in the scroller theme instead of an Elm_Box.
This defines a new theme group for elm_scrolled_entry:
"elm/scroller/entry/$THEME".  Themes that wants to support the icon/end
feature in scrolled entry should implement parts "elm.swallow.icon" and
"elm.swallow.end".  Black&White theme has been changed, Effeniht changes
to come on a later commit.



SVN revision: 52657
2010-09-23 22:30:47 +00:00
Iván Briano c9a4a09aaa Scroller now checks if its theme has a highlight for focus, and if so, sets the necessary flags for it to work.
Also, a not really nice highlight for the scroller theme, but I am no artists and it shows the feature working.


SVN revision: 52650
2010-09-23 19:43:50 +00:00
Nicolas Aguirre ae44befb75 Implement elm_gengrid_item_show and elm_gengrid_item_bring.
These two functions mimic what is already done in gengrid object.
* elm_gengrid_item_show : scroll immediatly to the item
* elm_gengrid_item_bring : scroll with an animation to the item



SVN revision: 52620
2010-09-23 06:33:50 +00:00
Carsten Haitzler e80c09063a aaargh! fix config init. broke scaling!
SVN revision: 52619
2010-09-23 02:55:51 +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
Leandro Pereira 51f9a38521 [Elementary] Implement get/unset for icon/end properties of scrolled_entry.
(Suggestion by glima)


SVN revision: 52603
2010-09-22 19:15:38 +00:00
Leandro Pereira 8c7e3016e1 [Elementary] Add icon/end objects to the scrolled entry.
SVN revision: 52602
2010-09-22 18:25:35 +00:00
Tiago Rezende Campos Falcao 2aa5e5313f Button animate when click with keyboard
Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

SVN revision: 52601
2010-09-22 17:45:53 +00:00
Tiago Rezende Campos Falcao fc4a19b171 Listen Space/Return in some widgets
widgets:
* button
* check
* file selector button
* hoversel
* radio
* toggle

Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

SVN revision: 52600
2010-09-22 17:45:49 +00:00
Tiago Rezende Campos Falcao 68c1638c16 Focus suport for some widgets
Widgets:
* check
* radio
* slider
* toggle
* spinner
* slideshow

Author:    Thiago Ribeiro Masaki <masaki@profusion.mobi>

SVN revision: 52599
2010-09-22 17:45:46 +00:00
Tiago Rezende Campos Falcao 2bc6b517c3 Complete some widgets with activate_hook
widgets:
* button
* check
* file selector button
* hoversel
* radio

Author:    Helen Fornazier <helen.fornazier@profusion.mobi>

SVN revision: 52598
2010-09-22 17:45:43 +00:00
Brett Nash 12324ed54e Better temporary handling for CNP.
SVN revision: 52563
2010-09-22 04:42:41 +00:00
Brett Nash 6dcb79a037 Vcard send.
SVN revision: 52562
2010-09-22 04:42:36 +00:00
Otávio Pontes 498de7e94d From: Otávio Pontes <otavio@profusion.mobi>
Subject: Re: [E-devel] Transition Layout for elm_box

There are 2 simple problems with the committed code. First, it would
be better to locate the struct _Elm_Box_Transition in elm_box.c
instead of Elementary.h.in, because users should create it with
elm_box_transition_new and changing its contents can be dangerous. And
second, in struct _Transition_Animation_Data, I declared 4 coordinate
variables as int, instead of using Evas_Coords.
I am sending both patches attached.



SVN revision: 52560
2010-09-22 00:33:17 +00:00
Christopher Michael 31a6482f50 Minor formatting fix.
SVN revision: 52556
2010-09-21 20:09:29 +00:00
Gustavo Lima Chaves 79de9a1792 Fix reverting focus to the previous widget.
There's currently in Elementary a way for widgets that die to revert
    focus to whoever had it first, but it was broken in some cases.




SVN revision: 52550
2010-09-21 18:55:32 +00:00
Iván Briano 8b390a9665 Creating a transition layout for elm_box.
This layout is used to perform an animation when changing layouts in box

    by Otavio Pontes <otavio@profusion.mobi>



SVN revision: 52542
2010-09-21 14:06:29 +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
Iván Briano 66707ffab4 Fix typo, we want the parent, not some random data
SVN revision: 52506
2010-09-20 19:54:48 +00:00
Lucas De Marchi 6e219c81bf Fix typos
"he->the" where appropriate



SVN revision: 52493
2010-09-20 17:09:13 +00:00
Chidambar Zinnoury 15869dae53 elementary: image orientation seems to work quite nicely, so let's enable it.
SVN revision: 52466
2010-09-19 17:36:26 +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
Gustavo Sverzut Barbieri 99a4bcfef4 elm_entry has ELM_CURSOR_XTERM by default.
SVN revision: 52388
2010-09-17 22:28:29 +00:00
Iván Briano 4b90f34b10 Avoid losing the reference to the parent object
Calling resize_object_del() when a resize_object died calls
elm_widget_sub_object_del(), which sets the parent of the (now dead)
widget to NULL. The problem is that this breaks some of the
stuff done in the smart_del() method in the smart class for widgets,
like reverting focus to whoever held it previously.



SVN revision: 52387
2010-09-17 22:10:04 +00:00
Bruno Dilly 41ed17c0de Create some tests for elm cursor
Covering widgets and widget's items


SVN revision: 52383
2010-09-17 18:26:04 +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
Gustavo Sverzut Barbieri 902819723b Fix tests to use the void *data instead of const...
SVN revision: 52374
2010-09-17 16:34:59 +00:00
Gustavo Sverzut Barbieri 53cbc881c8 Missing "const void *data" -> "void *data" in the API
SVN revision: 52373
2010-09-17 16:34:11 +00:00
Gustavo Sverzut Barbieri c4d40c7183 Constant void data is pretty useless in item callback contexts.
the callbacks are supposed to freely modify their data, as it is their
context (ie: python/js object, row from database, etc.



SVN revision: 52372
2010-09-17 16:21:34 +00:00