Commit Graph

161 Commits

Author SHA1 Message Date
Bruno Dilly 8d644e43ed Implement elm_object_signal_listen and unlisten
elm_object_signal_listen add callback(s) for edje object(s) of the widget.
elm_object_signal_unlisten delete this callback.
They're general functions, and every widget should set hooks for these.

It will improve elm extension flexibility. We have already
elm_object_signal_emit to send signals for the widgets theme, adding callbacks
is an expected step.

It provides a way to support sound on widgets. For example, in the elm extension
we could emit "file_to_play", "play", and add a callback with
elm_object_signal_listen for "*", "play". The callback function could use
the signal received to request the file to be played by the backend
sound system.

Certainly we should look for a better way to provide support for sound
on edje, but for now, it does the work. And anyway, it's only a use case
for these new functions.



SVN revision: 49868
2010-06-25 22:38:32 +00:00
Carsten Haitzler 643d06dd16 aaah safety delete - nash nash nash. for you.
SVN revision: 49825
2010-06-24 02:54:03 +00:00
Iván Briano 1e173716de Fix the usage of API_ENTRY macro in the new funcion _newest_focus_order_get
By: Thiago Ribeiro Masaki <masaki@profusion.mobi>



SVN revision: 49785
2010-06-21 18:16:45 +00:00
Carsten Haitzler e8e922488e fix focus issue if child has focus and is deleted (or in this case not
- hidden) - focuse most recent focused widget.



SVN revision: 49780
2010-06-21 07:39:49 +00:00
Bruno Dilly db550353a8 Add elm_object_signal_emit
This function sends a signal to the edje object of the obj.
It's a general function, and every widget should set a hook for this.

I'm setting a hook only for the spinner now, but soon I will work on other widgets.



SVN revision: 49681
2010-06-15 14:11:13 +00:00
Fabiano Fidêncio 7746e8b514 From: Fabiano Fidêncio <fidencio@profusion.mobi>
Changing return of Eina_Bool functions that were not EINA_TRUE or
EINA_FALSE in Edje.
In Elementary too ...



SVN revision: 49470
2010-06-05 13:12:45 +00:00
Carsten Haitzler d888b71dba theme -> can specify a new theme for an object andit gets inherited. need to
add tests.



SVN revision: 48771
2010-05-12 01:03:46 +00:00
Carsten Haitzler 83286a1d84 scroller in scroller.... works! well with scrollers for now (elm_scroller).
need to fix up some other instances of use of elm_smart_scroller. it's a 1
liner.



SVN revision: 48667
2010-05-07 13:21:45 +00:00
Carsten Haitzler 27012f5b0e sorry.. elm_widget is internal. dont document it. not to be known outside of
elm. :)



SVN revision: 48535
2010-05-02 01:44:38 +00:00
Vincent Torri 86d5c41583 * remove shadow declarations
* missing initializer in Evas_Smart_Class (the data field was missing)


SVN revision: 48197
2010-04-21 07:46:03 +00:00
Boris Faure 1ca26086db elm: add lots of doc! Thanks to Mike (zmike/discomfitor)
SVN revision: 47944
2010-04-12 08:12:02 +00:00
Gustavo Sverzut Barbieri 86bf257913 fix _elm_widget_type_check() to return FALSE on failure.
SVN revision: 47497
2010-03-27 01:19:44 +00:00
Gustavo Sverzut Barbieri dbd9fcce4d Enable check of Elementary widgets and getting the first widget that
is parent of an Evas_Object.

With these in place, one can check if the given object is an elmentary
widget and query for the first widget that is parent, so we can add
them and keep focus chain correct, useful for Edje externals, patch to
follow.




SVN revision: 47374
2010-03-22 21:36:59 +00:00
Carsten Haitzler 2257453fe4 example of how to work around heirachy to go back up the tree - but wont work
for going bck down. i.e. - focus.



SVN revision: 47302
2010-03-17 01:08:39 +00:00
Carsten Haitzler 5ceae54321 fix more runtime wornings... added ELM_ERROR_ABORT! :)
SVN revision: 47195
2010-03-14 03:48:22 +00:00
Gustavo Sverzut Barbieri e01d72fe26 Use eina_stringshare_replace to avoid crashes.
By: Rafael Fonseca <rfonseca@profusion.mobi>



SVN revision: 47187
2010-03-13 21:01:26 +00:00
Vincent Torri b07e49d435 remove unused parameter in the library.
I won't do this everyday, and i won't touch the tests.


SVN revision: 47093
2010-03-09 17:51:30 +00:00
Carsten Haitzler f3034c8196 more members for newer struct - init to null.
SVN revision: 47092
2010-03-09 16:56:31 +00:00
Carsten Haitzler 6792e2db2c warning fix 1. :)
SVN revision: 47074
2010-03-09 07:30:48 +00:00
Carsten Haitzler 91e01aa86e patch from discomfitor <- check type of widget on api call and return if not
the right type



SVN revision: 47073
2010-03-09 06:15:39 +00:00
Gustavo Sverzut Barbieri 818032a68f elm_layout: deferred sizing_eval to calculate (pre-render) phase.
This plays well with edje's own deferred calculations. Usually size
hints are set on children and edje will flag itself as dirty, but real
calculations are deferred to "calculate" phase before rendering.

For now this unbreaks elm_layout with contents... but other types such
as GROUP, BOX and TABLE remain broken: when they change their internal
state (ie: child object is packed into box or table), this will not
trigger elm_layout.

That said, we need a better solution. Maybe ask edje to emit signals
when one of its children change hints (it already listen to this
anyway), in this case elm_layout should listen to those instead of
connecting directly to objects given through elm_layout_content_set().



SVN revision: 43752
2009-11-17 16:32:45 +00:00
Gustavo Sverzut Barbieri 16fec09332 nasty bug, die die dieeeeeeeeeeeeee
took me some time to spot the problem was in the nasty typo... :-(



SVN revision: 43681
2009-11-13 22:18:43 +00:00
Jonathan Atton 7be1d94aa2 Elm: use evas_object_event_callback_del_full() everywhere and improve elm_notify
SVN revision: 43217
2009-10-22 22:10:23 +00:00
Carsten Haitzler 07dee04e84 dont grab focus if widget cant focus.
SVN revision: 43197
2009-10-22 12:04:55 +00:00
Christopher Michael 8eab5228ea Remove unused variables.
Formatting.



SVN revision: 43144
2009-10-18 06:03:03 +00:00
Carsten Haitzler 82540069b8 fix scale_get(). thanks marco
SVN revision: 43010
2009-10-11 05:43:42 +00:00
Jonathan Atton 82a9eb4bc5 elementary, new widget: slideshow. See elementary_test
SVN revision: 42660
2009-09-23 22:56:47 +00:00
Carsten Haitzler fa8fac0c23 comments.
SVN revision: 42339
2009-09-08 04:41:36 +00:00
Christopher Michael 158f95cd37 Simplier check for disabled state.
SVN revision: 42022
2009-08-26 16:52:53 +00:00
Vincent Torri e2be9d2b24 remove trailing spaces
SVN revision: 41261
2009-07-07 06:46:51 +00:00
Gustavo Sverzut Barbieri 324514d258 report global scale if none is set.
If there is no parent or no scale set we should report the global
value, not try to get from the existent parent that would fail the
API_ENTRY and thus return 1.0.



SVN revision: 41022
2009-06-12 22:55:06 +00:00
Carsten Haitzler 26b4f340b6 actually give widgets type name strings and set parent by default
SVN revision: 40618
2009-05-13 12:21:52 +00:00
Carsten Haitzler f1bd3ad572 use style generic call in test and fix up freeing of style string.
SVN revision: 40320
2009-04-23 04:10:43 +00:00
Carsten Haitzler 73f3de55f4 patch from victor to make styles generic - not all widgets support them
tho... but calls to set style are now. old calls are left in place, but
likely will be phased out.



SVN revision: 40317
2009-04-23 04:03:27 +00:00
Carsten Haitzler 16a328cba1 and make entry work nicely by freezing/holding scrolling (hold == different
scroll mode).



SVN revision: 39601
2009-03-20 15:08:33 +00:00
Carsten Haitzler 2685a2feef oopsie thanks to hendrik!
SVN revision: 39513
2009-03-17 00:37:02 +00:00
Gustavo Sverzut Barbieri d7829ccd3c use EINA_LIST_FREE()
This macro helps releasing a list of elements in efficient and safe way.



SVN revision: 39217
2009-02-25 20:18:38 +00:00
Gustavo Sverzut Barbieri d1d91b99df Move eina list iterations to EINA_LIST_FOREACH variants.
By using these macros we can avoid errors and if we need to change
things, we do just in the macro definitions.



SVN revision: 39216
2009-02-25 19:50:45 +00:00
Gustavo Sverzut Barbieri 2e62b41b1b major warning + cast cleanup.
* casts: remove internal "Item" and use "Elm_XXXX_Item" for carousel,
   list, genlist and toolbar.

 * warning: fix const on lots of getter apis, the object should be
   const, and not the return! Of course lists that are returned and
   are not supposed to be modified are still returned as const, but
   maybe we should return iterators!

 * list/genlist: fix selected_set() to be a bit (marginally)
   faster. Do not operate if state has not changed and if it did
   changed we're sure we're not in the object->selected list.




SVN revision: 39208
2009-02-25 15:54:26 +00:00
Carsten Haitzler 1d36bea662 use new fill mode, fix bug in object tracking and deletion - nasty one. more
genlist work too.



SVN revision: 39021
2009-02-15 02:53:56 +00:00
Carsten Haitzler 986fcca059 allow for all widgets.objects to have different scaling factors.
add tests for these
add tests for inheriting scaling factor from parent
fix test app to use list now instead of box+buttons (cleaner)



SVN revision: 38909
2009-02-03 05:09:03 +00:00
Carsten Haitzler 9287f01020 fix other focus walking issues
SVN revision: 38368
2008-12-31 00:43:06 +00:00
Carsten Haitzler f05d05fc0e better kbd focus handling and inwin is there.
SVN revision: 38357
2008-12-30 16:19:46 +00:00
Carsten Haitzler b3be933103 remove some aborts
SVN revision: 38315
2008-12-24 05:04:33 +00:00
Carsten Haitzler 793b34f2f9 fix some dynamic object deletion for sub-objects. fix some theme stuff too
for popout hover.



SVN revision: 37818
2008-11-27 05:41:13 +00:00
Carsten Haitzler 8e9f6b8fbc more todo items done/added
SVN revision: 37702
2008-11-18 10:11:57 +00:00
Carsten Haitzler 1917ae7240 make use of the signal propagatin to child objects for cursors etc. and so
indicate focus with a cursor.



SVN revision: 37689
2008-11-17 05:58:21 +00:00
Carsten Haitzler ee7131de29 and make elm auto-scale much better on the fly - not perfect... but not to
shabby. also in theory should cover theme changes on the fly... haven't tested.



SVN revision: 37662
2008-11-15 13:58:50 +00:00
Carsten Haitzler 08c021a0c6 handle changes in scaling... a bit...
SVN revision: 37654
2008-11-15 06:09:04 +00:00
Gustavo Sverzut Barbieri 66ba6e635a Set member_{add,del} to NULL.
SVN revision: 37086
2008-10-25 02:57:03 +00:00
Carsten Haitzler 6f493e0ee1 so much more - valgrind complaints fixed in many places, leaks
and anchorblock/view are working...



SVN revision: 37081
2008-10-25 02:11:06 +00:00
Cedric BAIL 2d9ac9118b Remove Evas list from elementary.
SVN revision: 36979
2008-10-22 14:11:59 +00:00
Carsten Haitzler f6c143674f and now focus works right! excellent.
SVN revision: 36969
2008-10-22 12:08:39 +00:00
Carsten Haitzler fc392751dc use hold flags
SVN revision: 36965
2008-10-22 12:00:16 +00:00
Carsten Haitzler a3ad00322f and support password mode and proper focus on click
SVN revision: 36958
2008-10-22 08:58:56 +00:00
Carsten Haitzler ab493a0d00 and now entry is pretty much done (no hooks to x copy/paste selections etc.
but for now that's ok)



SVN revision: 36754
2008-10-17 14:40:54 +00:00
Carsten Haitzler c78abf03be 1. fix scale property fetch
2. add hover object - beginning to work. will be used to pop up menus/options
etc.



SVN revision: 36515
2008-10-08 06:38:20 +00:00
Carsten Haitzler e8bfcbd777 remvoe minw/h from widget - not needed anymore. ad hovers placeholder
SVN revision: 36499
2008-10-07 12:58:08 +00:00
Carsten Haitzler 2eee18b46f fix sub object tracking. add layout object (untested)
SVN revision: 36491
2008-10-07 06:55:11 +00:00
Carsten Haitzler e8ef0d8bab new elm api - more evas liek and evas/edje freindly. i can mvoe forward now.
SVN revision: 36487
2008-10-07 01:23:49 +00:00
Carsten Haitzler 51123a3452 elementary becomes its own tree/lib/test binary
SVN revision: 36343
2008-09-30 06:58:56 +00:00