Commit Graph

225 Commits

Author SHA1 Message Date
Iván Briano efccbe07e8 Make someone else assume responsibility when Elementary is not the father.
SVN revision: 47479
2010-03-26 05:44:30 +00:00
Iván Briano 679b233813 _elm_log_dom is not available outside of libelementary.so and EAPIfying it doesn't sound like a good idea. So let's just have another variable named like it in the externals module so we can reuse the log macros defined in elm_priv.h
SVN revision: 47468
2010-03-26 05:20:30 +00:00
Gustavo Sverzut Barbieri 439a3bd492 Proxy Elementary widget signals to Edje.
Add support to automatic proxy events from Elementary to Edje using
callbacks described with Evas_Smart_Cb_Description and set to
Evas_Smart_Class or per-instance with
evas_object_smart_callbacks_descriptions_set().

Right now elm_widget is not subclassable, so there is no way to define
class signals, just instance signals.

Just doing it for button, lots of widgets to do... If you can help,
please follow the process:

  * see example at src/lib/elm_button.c, copy it.

  * read your widget documentation at Elementary.h

  * grep for evas_object_smart_callback_call(), see if they are all
    documented in Elementary.h, or if there are some missing. Fix Elementary.h

  * paste and change based on fixed Elementary.h My recommendation is
    to create "static const char []" variables and replace all
    evas_object_smart_callback_call() with that, to force sync.


With callback descriptions pre-defined and using the same pointer with
a custom variation evas_object_smart_callback_call_ptr() we may later
optimize signal calling heavily, removing the requirement to call
eina_stringshare_add()/eina_stringshare_del() and also not mixing all
the callbacks in teh same list, instead having an array for defined
signals, and a list from there.  These optimizations are not in, but
they are easily added later without breaking the API/ABI.




SVN revision: 47461
2010-03-26 00:58:14 +00:00
Gustavo Sverzut Barbieri ed5cb0e7f3 Simplify state_set and just apply values that were explicitly set.
SVN revision: 47458
2010-03-25 20:17:34 +00:00
Gustavo Sverzut Barbieri d1d996f13d Port to new Edje EXTERNAL API goodies!
Now it is possible to change labels and lots of other parameters
directly through Edje's API.

BIG FAT NOTE: this is a convenience that comes with a reasonable
    price. If you have hot paths, like loops, then avoid calling this
    and use the object directly. This functions add a cost to check
    edje, then find the part, then get the type, then get the
    param_set/param_get methods, then calling it, then finding the
    parameters using strcmp(), then checking the type and just then it
    will call the actual method. So whenever possible, just call the
    method directly.

Due the reasoning of the "big fat note" I'm adding this inside edje
externals only. The code would be almost the same to expose it in
Elementary.h as elm_widget_property_set/get, but then I know people
would misuse it... actually this kind of stuff could be easily ported
to Evas smart object, but then abuse and slowness will hunt us
foreveeeeer...




SVN revision: 47457
2010-03-25 18:10:25 +00:00
Tiago Rezende Campos Falcao 97ae653c9f Externals Make Scrolled Entry Editable. By Kubo
Author:    Raphael Kubo da Costa <kubo at profusion.mobi>

SVN revision: 47400
2010-03-23 19:48:40 +00:00
Gustavo Sverzut Barbieri 45fb5c7947 Edje EXTERNAL should use as parent the first elm_widget so focus chain
is correct.

This patch should fix issues with multiple entries not being able to
focus, if not, let me know.




SVN revision: 47375
2010-03-22 21:38:32 +00:00
Iván Briano 1f9f880037 Don't set text in entries for now. It has big issues with state changes.
SVN revision: 45704
2010-01-29 15:16:22 +00:00
Tiago Rezende Campos Falcao 435abed395 Adding Module Name to Externals
SVN revision: 45566
2010-01-25 20:30:39 +00:00
Iván Briano 6f6ebbfaa6 Remove unused variable and don't create icons if there's no icon set
SVN revision: 45564
2010-01-25 19:56:45 +00:00
Iván Briano 66d310cf5b Fix typo and prototype
SVN revision: 45559
2010-01-25 18:52:05 +00:00
Gustavo Lima Chaves 500a0ffdd7 Adding more size hints to external object's icons.
Patch by Fabiano Fidêncio.



SVN revision: 45553
2010-01-25 14:24:15 +00:00
Iván Briano 507a2cde73 Icons for available externals, how exciting.
SVN revision: 45449
2010-01-22 20:07:47 +00:00
Gustavo Sverzut Barbieri fb539794d1 Icon parser check if it was successfuly set and if not deletes the icon.
that's the end of that ugly space in editje button.



SVN revision: 44589
2009-12-20 00:28:02 +00:00
Iván Briano d2d403453a formatting
SVN revision: 44448
2009-12-14 18:30:32 +00:00
Iván Briano bcc4b4db54 Scrolled entry, first step.
This is a compound widget that puts an entry inside a scroller,
so the user doesn't have to manage that stuff. Still needs some
more exposure of the scroller stuff and probably some automatizations.


SVN revision: 44349
2009-12-11 05:57:53 +00:00
Iván Briano 86a11a7b6e use bool type where it makes sense
SVN revision: 44310
2009-12-09 06:53:37 +00:00
Iván Briano 68f9598c49 reenable parameters
SVN revision: 44304
2009-12-09 05:22:38 +00:00
Iván Briano bf5af093fa style, better parsing, some parameter names changed
SVN revision: 44302
2009-12-09 04:37:48 +00:00
Iván Briano 0c8c726601 use correct types for parameters
SVN revision: 44297
2009-12-09 02:37:20 +00:00
Carsten Haitzler e4a50fc013 disable - compile errors - NAN for those macros!
SVN revision: 44278
2009-12-08 13:53:38 +00:00
Iván Briano 3d6a80c5f8 Rename some parametes, use defaults, use info
SVN revision: 44274
2009-12-08 05:53:12 +00:00
Iván Briano 02cb10c6e5 State is not a common parameter
patch by Fabiano Fidencio


SVN revision: 44273
2009-12-08 04:57:39 +00:00
Iván Briano 5e7c1eb4db use right name for the module
SVN revision: 44270
2009-12-08 01:35:15 +00:00
Tiago Rezende Campos Falcao edf7f2e22e Elementary edje external modules
Widgets: Button, Check, Radio, Slider, Toggle

SVN revision: 44207
2009-12-06 01:22:54 +00:00