Commit Graph

122 Commits

Author SHA1 Message Date
Cedric BAIL 7df0e78a6f * edje: during removal the removed list is modified.
SVN revision: 48207
2010-04-21 16:36:55 +00:00
Iván Briano 661e7e8be2 Update references to groups when renaming or deleting one from the file.
Patch by Thiago Masaki


SVN revision: 48188
2010-04-20 22:12:15 +00:00
Iván Briano 1c63337989 Add after_del() function
SVN revision: 48177
2010-04-20 19:57:17 +00:00
Tiago Rezende Campos Falcao a3333361f5 Dont need recalc params in external description in part_recalc.
Others types, like TEXT/TEXTBLOCK/SWALLOW/GROUP (others?), are similar to Externals. And may can recalc some properties only in description_apply, not on every call to part_recalc.

Some generic boolean properties, like "visible", can be moved to description_appy too.

SVN revision: 48144
2010-04-19 20:37:35 +00:00
Tiago Rezende Campos Falcao abc78c3d9a Use external_params_set to update params
SVN revision: 48143
2010-04-19 20:37:32 +00:00
Tiago Rezende Campos Falcao 1cfae12558 Use eina.strbuf to generate the source code. Cedric suggestion
SVN revision: 47878
2010-04-09 16:05:17 +00:00
Tiago Rezende Campos Falcao e99f2e77cb Check source generation in save
SVN revision: 47842
2010-04-08 19:37:22 +00:00
Iván Briano 3c61844af1 Make the Edje Smart inheritable.
Pretty much moving some things around and extending the smart class
to allow overloading some common functions. Edje_Edit will make use
of this.


SVN revision: 47841
2010-04-08 19:21:54 +00:00
Iván Briano 1c53021214 Edje_Edit: Big Fat API Break.
All state functions now receive the value as a double, separate from
the state name.
Getting the list of states from the part still returns a list of strings
with everything together, but we'll change that soon too.


SVN revision: 47811
2010-04-07 17:04:49 +00:00
Tiago Rezende Campos Falcao 209a4ce236 Return FALSE when save fail
SVN revision: 47787
2010-04-06 18:18:53 +00:00
Gustavo Sverzut Barbieri f10ffca9c4 handle cases without default values and add missing functions.
SVN revision: 47640
2010-04-01 03:48:07 +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
Iván Briano a5c6fd883d More safety removing stuff from lists
SVN revision: 47554
2010-03-29 07:13:35 +00:00
Iván Briano 202d3765cf Use safe macros to walk the lists when we may remove something from it
SVN revision: 47553
2010-03-29 07:03:36 +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
Tiago Rezende Campos Falcao ee58900290 Fix wrong names below<->above
SVN revision: 47446
2010-03-25 16:41:46 +00:00
Iván Briano 3f1e51e008 Dirty copy/paste to delete individual targets from a program
SVN revision: 47444
2010-03-25 11:19:46 +00:00
Tiago Rezende Campos Falcao 6556fa5273 above and below get
SVN revision: 47435
2010-03-24 19:21:03 +00:00
Gustavo Lima Chaves 2571227fc4 Sorry for assuming o bool return on that function.
Thanks for pointing out, JaMa.



SVN revision: 46893
2010-03-05 17:31:29 +00:00
Cedric BAIL fc20b4541e * edje: Use fixed point for tween too.
SVN revision: 46429
2010-02-24 15:37:16 +00:00
Cedric BAIL 51de26862a * edje: Add more focus event in edje. A start for a focus layout work.
SVN revision: 46389
2010-02-23 13:39:19 +00:00
Cedric BAIL e4ee012951 * edje: Change filter_state to filter and give the possibility to
filter from another part than the event source.



SVN revision: 46316
2010-02-19 18:30:46 +00:00
Iván Briano 0b816d85e6 Forgot to copy image id
SVN revision: 46273
2010-02-18 14:05:58 +00:00
Gustavo Lima Chaves 50c346b37a The former test was giving false positives.
SVN revision: 46113
2010-02-12 14:00:31 +00:00
Gustavo Lima Chaves 62d9d8bc92 Preventing former strdup()-ed string to be eina_string_del()-ted.
SVN revision: 46053
2010-02-10 17:18:34 +00:00
Cedric BAIL 397b718cf1 * edje: Add filter_state to program.
Patch from "Tristan <blunderer@gmail.com>".


SVN revision: 46048
2010-02-10 15:07:17 +00:00
Gustavo Lima Chaves f61a15fba9 Group-level data edc blocks manipulation API for Edje_Edit.
SVN revision: 45903
2010-02-05 16:39:06 +00:00
Tiago Rezende Campos Falcao 2ab186175e Save font filename in eet. By Masaki
Author:    Thiago Ribeiro Masaki <masaki at profusion.mobi>

SVN revision: 45869
2010-02-04 14:34:06 +00:00
Iván Briano e3554033a7 Edje_Edit API break.
Change group_del() to receive the name of the group to be deleted, and
change the function to not delete a group currently loaded. This causes
problems at the time of deleting the Evas_Object.
Also changed a bit the save() function and added save_all(), which saves
every group loaded, not only the one set to the object. This is mainly so
at the time of deleting a group, we can save the whole file and thus avoid
it getting out of sync with references if a group is deleted and the file
not saved afterwards.


SVN revision: 45720
2010-01-29 20:44:34 +00:00
Iván Briano dbba97152d Don't allow recursive clipping
SVN revision: 45672
2010-01-28 20:44:03 +00:00
Tiago Rezende Campos Falcao b4e731abf7 Removing "GENERATE EDC SOURCE" print
SVN revision: 45659
2010-01-28 11:20:14 +00:00
Tiago Rezende Campos Falcao 4a34a3dd77 Fix group add references
SVN revision: 45647
2010-01-27 20:43:44 +00:00
Iván Briano 54c7294476 Move variable declarations to the top of the function and don't leak when saving files.
SVN revision: 45640
2010-01-27 20:10:57 +00:00
Iván Briano 5e3f56bafc Avoid crashing if there was no clipper set.
Oh, and the two exciting icon patches were by Fabiano Fidencio


SVN revision: 45453
2010-01-22 20:21:46 +00:00
Gustavo Lima Chaves 2cca9e9b62 Fixing program addition on edje_edit: data was missing for the globs.
On regressions, please contact me.



SVN revision: 45340
2010-01-19 20:14:14 +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 6ade2a3f68 Show and hide clipper as needed
SVN revision: 44445
2009-12-14 17:38:45 +00:00
Iván Briano bcf0748744 Show newly created part. Fixes some problems adding external parts in editje
SVN revision: 44442
2009-12-14 17:17:40 +00:00
Cedric BAIL b32c9a3eae * edje: Add Fixed Point Math support to Edje.
You can try it by passing --enable-fixed-point to the configure. It
	will produce an ABI/API compatible Edje library that use internally
	Eina_F32p32 instead of double. It will load Eina_F32p32 instead of
	double from eet file (thanks to eet ability to convert them on the
	fly), so edje file are compatible between fixed point and floating
	point version.

	This patch touch almost all internal calc of Edje, I did test it with
	elementary_test, enlightenment and all my test apps, but it could
	certainly break some of your preferred Edje file. If you see any
	unexpected behaviour please report them to me as soon as possible.

	Note: For devs, I put few macros in edje_private.h that should now
	be used when doing calc in Edje, please use them so that Fixed Point
	doesn't break in the futur.


SVN revision: 44323
2009-12-09 15:44:54 +00:00
Carsten Haitzler 4d42a6d2db warnings--
SVN revision: 44306
2009-12-09 05:46:02 +00:00
Cedric BAIL 7117431ed6 * edje-edit: Don't forget to initialize list to NULL.
SVN revision: 44188
2009-12-04 16:34:35 +00:00
Iván Briano c0a9b68eeb actually add stuff to the list
SVN revision: 44067
2009-11-30 20:06:26 +00:00
Iván Briano da589aaae7 restack swallowed objects too
SVN revision: 44030
2009-11-27 20:34:43 +00:00
Iván Briano 407c62cb7f Update object when external parameters are set
SVN revision: 44021
2009-11-27 17:57:35 +00:00
Iván Briano 45a07d458e Delete internal object when external part is removed
SVN revision: 44007
2009-11-26 18:03:40 +00:00
Iván Briano 2ea026ea3a create external in the right place
SVN revision: 44006
2009-11-26 17:38:43 +00:00
Iván Briano 828b281904 externals {} in edje_edit, source generation and add module to the external_Type api to keep track of who registers what
SVN revision: 44003
2009-11-26 17:01:31 +00:00
Iván Briano 612f005cef More macros and default values por external parameters.
Add external parts in edje_edit


SVN revision: 43977
2009-11-25 17:00:53 +00:00
Iván Briano 44a8c218f0 Edje_Edit
- Watch for non-shared strings when copying states
 - Get/Set external parameters


SVN revision: 43757
2009-11-18 00:27:49 +00:00