Commit Graph

141 Commits

Author SHA1 Message Date
Cedric BAIL 73ac5cdc95 * edje: remove warning due to API change in Ecore.
SVN revision: 49830
2010-06-24 16:16:50 +00:00
Iván Briano 47a7d86e5c Add scale set/get to Edje_Edit.
By: Iván Briano <ivan@profusion.mobi>



SVN revision: 49746
2010-06-18 22:08:05 +00:00
Iván Briano fe6fe835a5 Fixing verify and set problems in externals types
Edje Edit was writing the info in the struct before verify if the value
can be set. New the verify works and the old value is recover if verify
fails.

By: Fabiano Fidencio <fidencio@profusion.mobi>



SVN revision: 49745
2010-06-18 22:07:54 +00:00
Iván Briano 8a0aee6c5c Setters and getters functions to Api property of Parts and Programs
Now we can set and retrieve, name and descripition of the api
property, from Parts and Programs.

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



SVN revision: 49678
2010-06-15 01:51:46 +00:00
Fabiano Fidêncio 40563f8aef From: Fabiano Fidêncio <fidencio@profusion.mobi>
Changing return of Eina_Bool functions that were not EINA_TRUE or
EINA_FALSE in Edje.



SVN revision: 49469
2010-06-05 13:07:08 +00:00
Cedric BAIL 83e505b5c6 * edje: Add image set support.
Ease support of Freedesktop multiple size image.

	Sample:
	-------

	images {
		..
	       	set {
			name: "image_name_used";
  			image {
				image: "500x500.png" LOSSY 90;
     				size: 201 201 500 500;
  			}
  			image {
				image: "200x200.png" COMP;
     				size: 51 51 200 200;
  			}
  			image {
				image: "50x50.png" COMP;
     				size: 11 11 50 50;
  			}
  			image {
				image: "10x10.png" COMP;
     				size: 0 0 10 10;
  			}
		}
		..
	}



SVN revision: 49369
2010-06-01 13:31:07 +00:00
Tiago Rezende Campos Falcao 266ac4bd99 update mtime when save
SVN revision: 48432
2010-04-29 18:52:59 +00:00
Tiago Rezende Campos Falcao ea7c060805 Code Replication --
SVN revision: 48431
2010-04-29 18:52:55 +00:00
Iván Briano 2f9b52fb1c When changing source of a GROUP part, set/clean the swallowed_object, by Thiago Masaki
SVN revision: 48398
2010-04-28 18:40:05 +00:00
Iván Briano 53f05ae0e5 A bit more carefulness when deleting states.
SVN revision: 48352
2010-04-26 22:51:24 +00:00
Iván Briano 675bb06b45 Make program_del() a bit more straight forward while fixing the problems it had updating references.
SVN revision: 48350
2010-04-26 22:35:49 +00:00
Tiago Rezende Campos Falcao a68f8e5529 Edje_edit font_del
SVN revision: 48339
2010-04-26 18:19:49 +00:00
Tiago Rezende Campos Falcao f95de840fa Edje_edit font_add with alias
SVN revision: 48338
2010-04-26 18:19:46 +00:00
Tiago Rezende Campos Falcao 023d8d6c15 Edje_edit image_del
SVN revision: 48337
2010-04-26 18:19:43 +00:00
Tiago Rezende Campos Falcao 1c1eee2805 Edje_edit image_add review
SVN revision: 48336
2010-04-26 18:19:39 +00:00
Iván Briano 8b706a1786 Also use an edit object when generating the source.
SVN revision: 48231
2010-04-22 20:29:35 +00:00
Iván Briano 78ff22f2dc Fix infinite loop when trying to group_del and group_add when id is zero.
By Thiago Masaki


SVN revision: 48228
2010-04-22 19:09:30 +00:00
Iván Briano 812b9ef672 Un/Clip swallowed objects too when setting clipper.
SVN revision: 48225
2010-04-22 18:13:21 +00:00
Iván Briano f18163a403 Edje Edit: Now inherits the smart from Edje and has stuff of its own in there.
To use the Edje Edit API now you need to add the object to the canvas with edje_edit_object_add().
Normal edje functions will work as usual, but it's no longer possible to tamper with the standard objects internals.
Also, big reformat of Edje_Edit.h while fixing docs. Yes, monster commit.


SVN revision: 48220
2010-04-22 17:56:00 +00:00
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