Commit Graph

17 Commits

Author SHA1 Message Date
Gustavo Sverzut Barbieri fdedaedea0 fix stupid bug, my bad at copy and paste...
SVN revision: 47639
2010-04-01 03:47:04 +00:00
Gustavo Sverzut Barbieri 0b231e99ce Add CHOICES to EXTERNAL support.
Choices are useful to represent enumerations and restricted set of
elements to user. Usually this is displayed in hoversel/comboboxes.



SVN revision: 47570
2010-03-29 21:51:40 +00:00
Gustavo Sverzut Barbieri 1bb3339188 another useful function
SVN revision: 47564
2010-03-29 19:32:45 +00:00
Gustavo Sverzut Barbieri acadc5e210 export useful function.
SVN revision: 47562
2010-03-29 18:44:42 +00:00
Gustavo Sverzut Barbieri cfecbc912b Edje EXTERNAL API break, for good.
I'm now introducing a couple of goodies to make externals more useful,
they are:

 * add: extra parameter with the part name. This may be used by
   external objects to emit signals in the name of that part.

 * param_set/param_get: set parameters at runtime, given their names
   and types. This avoids requiring users to get the actual object and
   call methods. This abstraction is also good because it let one uses
   Elementary without even linking to it ;-) (this have limits, like
   complex types are not supported).  Right now this is just exposed
   to C, but goal is to have it exposed in Embryo and Lua as well.

 * translate: new method to translate previously strings that are
   specified statically, such as the parameters names.


Four new functions got added to the Edje API:

 * edje_object_part_external_object_get() so we don't have to abuse
   edje_object_part_swallow_get()

 * edje_object_part_external_param_set() and
   edje_object_part_external_param_get() that call the external type's
   functions.

 * edje_external_param_type_str() to convert types to string and
   provide nicer debugs :-)


TODO:
  * expose external_param_set()/external_param_get() to Embryo and Lua.




SVN revision: 47456
2010-03-25 18:05:42 +00:00
Gustavo Sverzut Barbieri fcb71a4b3b Edje now uses Eina_Bool where it should.
SVN revision: 46646
2010-02-28 15:57:17 +00:00
Iván Briano 005ee7f261 Move some printfs to eina_log and remove debug message
SVN revision: 44693
2009-12-23 15:26:29 +00:00
Cedric BAIL 018a9dad66 * edje: Use Eina_Log.
Patch from Mathieu Taillefumier.


SVN revision: 44655
2009-12-22 13:46:00 +00:00
Gustavo Sverzut Barbieri 598c9b339c fix warnings introduced by external parameter stuff.
Thanks to cedric by spotting those.


SVN revision: 44633
2009-12-21 16:39:24 +00:00
Iván Briano 836496c265 Add type bool to external parameters
Patch by glima


SVN revision: 44308
2009-12-09 06:51:13 +00:00
Gustavo Sverzut Barbieri 778cc70719 Edje_External_Type: break abi, add abi checker.
- add preview_get() and description_get(), breaking ABI badly.
 - add abi_version field to be fileld with EDJE_EXTERNAL_TYPE_ABI_VERSION
   and checked with edje_external_type_abi_version_get()




SVN revision: 44135
2009-12-02 21:41:28 +00:00
Gustavo Sverzut Barbieri 607de4c300 batch register/unregister of external types, faster and lighter on memory.
This is the recommended way to register a batch of types, it will not
do check (hash lookup) before adding and keys are added as "direct"
(not copied), thus lighter on memory.



SVN revision: 44102
2009-12-01 17:58:17 +00:00
Iván Briano 10434c1fc4 Parameter information for external widgets
This are used for things like editors to know what parameters
to manage for external stuff.


SVN revision: 43935
2009-11-23 20:21:22 +00:00
Iván Briano d32a84d8a4 Constness and pass object around
SVN revision: 43671
2009-11-13 18:35:19 +00:00
Sebastian Dransfeld 04326d9da1 Remove unused variables
SVN revision: 43538
2009-11-08 20:26:51 +00:00
Iván Briano 2ba79e04af Some more stuff in externals, little api change there, may change some more later.
SVN revision: 43379
2009-10-31 18:07:08 +00:00
Iván Briano b5cc9c66b0 They say missing files need to be added, they don't respawn like things in Quake
SVN revision: 43305
2009-10-27 00:55:51 +00:00