Commit Graph

244 Commits

Author SHA1 Message Date
Cedric BAIL f5e69dcc73 * edje: last fix due to edje eet breakage.
SVN revision: 51086
2010-08-13 16:21:38 +00:00
Tiago Rezende Campos Falcao 00c8c7e257 Fixing Macro
Author:    Thiago Ribeiro Masaki <masaki at profusion.mobi>

SVN revision: 51055
2010-08-12 18:24:48 +00:00
Iván Briano 419268e4f8 Fix usage of data_set/get/etc in Edje_Edit
SVN revision: 51052
2010-08-12 17:49:28 +00:00
Cedric BAIL 2623367732 * edje: fix some memleak issue.
SVN revision: 51033
2010-08-12 12:58:54 +00:00
Tiago Rezende Campos Falcao 186b6905ce Changing return type of state_{add,del}. By Fidencio
Now, returning Eina_Bool instead of void, makes more sense.

Author:    Fabiano Fidencio <fidencio at profusion.mobi>

SVN revision: 51005
2010-08-11 16:23:50 +00:00
Tiago Rezende Campos Falcao 128482520c Little improvements in gen code. By Fidencio
Avoiding that "normal" field of image and "font" field of text can be wrote as
NULL by edc generate.
Moreover, avoiding that defaults values are wrote with the default edc values.
ie:
    - transition: LINEAR 0.00 (in a program)
    - size: 0 (in a text)

Author:    Fabiano Fidencio <fidencio at profusion.mobi>

SVN revision: 51004
2010-08-11 16:23:48 +00:00
Tiago Rezende Campos Falcao 7d79afff1c Updating fnt collection to according with new edje. By Fidencio
Author:    Fabiano Fidencio <fidencio at profusion.mobi>

SVN revision: 51003
2010-08-11 16:23:45 +00:00
Tiago Rezende Campos Falcao 1dd3fb5031 Updating img collection to according with new edje. By Fidencio.
Author:    Fabiano Fidencio <fidencio at profusion.mobi>

SVN revision: 51002
2010-08-11 16:23:43 +00:00
Tiago Rezende Campos Falcao acefc2a54c Fixing bad indentation in glima's commit. By Fidencio
Author:    Fabiano Fidencio <fidencio at profusion.mobi>

SVN revision: 51001
2010-08-11 16:23:40 +00:00
Iván Briano b8b8381576 No need for path in font_directory, and use the right key to store/find them
SVN revision: 50999
2010-08-11 14:24:03 +00:00
Tiago Rezende Campos Falcao 3de5ea12d5 Code generation for data block
SVN revision: 50995
2010-08-11 12:51:41 +00:00
Tiago Rezende Campos Falcao 8e66149870 Code generation for collections and parts
SVN revision: 50994
2010-08-11 12:51:39 +00:00
Tiago Rezende Campos Falcao 9a5446f29a Fix list of part types
SVN revision: 50993
2010-08-11 12:51:36 +00:00
Iván Briano 5f6515790a Properly store data values when changing them
SVN revision: 50976
2010-08-10 21:54:50 +00:00
Tiago Rezende Campos Falcao 51d0738c97 Adding checkers to data and font lists get
SVN revision: 50964
2010-08-10 14:25:10 +00:00
Iván Briano 6d01819c7f Check part types before casting descriptions
SVN revision: 50949
2010-08-09 23:09:24 +00:00
Gustavo Lima Chaves ae5a95f108 Bad malloc here.
By Helen Mae.



SVN revision: 50947
2010-08-09 22:28:53 +00:00
Cedric BAIL 9ecc1354c6 * edje: new file format.
WARNING ! WARNING ! WARNING ! WARNING !
	Old file format is not readable by edje directly. If you have old edje
	file that you want to convert, use edje_convert. Their is no way back.

	Recompile your file as soon as possible. Please report any issue you
	spot as this is a huge and needed change.



SVN revision: 50936
2010-08-09 17:34:03 +00:00
Gustavo Lima Chaves e05e8b94e5 Safeguarding alloc-ed region againt trash.
This fixes external parts' state copies.



SVN revision: 50875
2010-08-06 22:03:32 +00:00
Gustavo Lima Chaves 8ea5943de6 Bad free() at state_copy().
By Fidêncio.



SVN revision: 50874
2010-08-06 21:21:16 +00:00
Gustavo Lima Chaves bf4be4f0ec More on fixing state copies at edje edit: do not overwrite state's name and value.
SVN revision: 50873
2010-08-06 21:18:58 +00:00
Gustavo Lima Chaves 4cc5508828 Switch case usage.
By Fidêncio.



SVN revision: 50872
2010-08-06 21:16:57 +00:00
Gustavo Lima Chaves 1fb4439d36 Macro undef-ing.
Patch by Fidêncio.



SVN revision: 50871
2010-08-06 21:15:29 +00:00
Tiago Rezende Campos Falcao 5962065b2b Fix part deletion in edje_edit with new edje data
SVN revision: 50869
2010-08-06 19:16:46 +00:00
Tiago Rezende Campos Falcao a5f73d85c0 Decrement description counters in edje_collection_free_part_description_free
SVN revision: 50868
2010-08-06 19:16:43 +00:00
Cedric BAIL 0df8a2e7a8 * edje: move code around.
SVN revision: 50858
2010-08-06 11:07:47 +00:00
Cedric BAIL 24332dd3eb * edje: typo.
SVN revision: 50857
2010-08-06 08:59:51 +00:00
Gustavo Lima Chaves aebc93ba81 Oopsies at program code @ edje_edit.
Patch by Thiago Masaki.



SVN revision: 50845
2010-08-05 22:08:55 +00:00
Lucas De Marchi 0a4617ae38 FORMATTING
* Remove vim modelines:
 find . -name '*.[chx]' -exec sed -i '/\/\*$/ {N;N;/ \* vim:ts/d}' \{\} \;
 find . -name '*.[chx]' -exec sed -i '/\/[\*\/] *vim:/d' \{\} \;

* Remove leading blank lines:
 find . -name '*.[cxh]' -exec sed -i '/./,$!d'

If you use vim, use this in your .vimrc:
set ts=8 sw=3 sts=8 expandtab cino=>5n-3f0^-2{2(0W1st0



SVN revision: 50816
2010-08-04 16:57:32 +00:00
Cedric BAIL c94ae93096 * edje: split programs type in different stack for later speed improvements.
SVN revision: 50810
2010-08-04 14:25:40 +00:00
Gustavo Lima Chaves 457525aa7d Fixing typo.
Patch by Fidêncio.



SVN revision: 50791
2010-08-03 22:22:31 +00:00
Gustavo Lima Chaves 50190aeb22 Fixing bad realloc usage.
By Fabiano Fidêncio.



SVN revision: 50790
2010-08-03 22:15:02 +00:00
Gustavo Lima Chaves da771758de Wrong return value here.
SVN revision: 50778
2010-08-03 18:36:42 +00:00
Gustavo Lima Chaves e378c6035d Fixing wrong memory allocations.
SVN revision: 50769
2010-08-03 16:45:37 +00:00
Cedric BAIL 74f7480e41 * edje: fix some issue during destruction of edje_part_description,
and move tweens to an array.


SVN revision: 50765
2010-08-03 12:58:31 +00:00
Christopher Michael a7049f1f16 Rename 'same named' macros.
NB - Please use different macro names in the future for stuff like this 
(ie: not the same macro name in each file) as it spits nasty compiler 
warnings when compiling w/ amalgamation.



SVN revision: 50748
2010-08-02 19:06:07 +00:00
Cedric BAIL 1ba6b50042 * edje: fix counting.
SVN revision: 50742
2010-08-02 12:41:28 +00:00
Mike Blumenkrantz 2174b972fc new can of grandma's LEEK B GON
SVN revision: 50707
2010-07-31 05:17:56 +00:00
Mike Blumenkrantz 31743ae6de comment out unused variables
SVN revision: 50705
2010-07-31 05:01:54 +00:00
Christopher Michael 55d0190185 Don't use the same macro name in each file, gives nasty compiler warnings when
using amalgamation.



SVN revision: 50696
2010-07-31 01:21:30 +00:00
Cedric BAIL c897468e7e * edje: more unitialized case handled.
SVN revision: 50685
2010-07-30 09:53:20 +00:00
Cedric BAIL 29893ac71c * edje: fix rename of a part.
SVN revision: 50684
2010-07-30 09:08:37 +00:00
Cedric BAIL 50eb17c966 * edje: fix counting.
SVN revision: 50681
2010-07-30 08:29:13 +00:00
Cedric BAIL e773bc9246 * edje: change memory layout that will become the new file format.
NOTE: I tried this change with all the apps and theme I had, but maybe
	i missed some bug. Please report any strange behaviour.


SVN revision: 50641
2010-07-29 12:02:36 +00:00
Cedric BAIL 793c66b5dc * edje: last move of properties in the right structure.
SVN revision: 50284
2010-07-16 16:00:26 +00:00
Cedric BAIL 04ffefa9e5 * edje: move image specific properties to their own structure.
SVN revision: 50282
2010-07-16 14:13:38 +00:00
Cedric BAIL 83bb52f7c9 * edje: attempt to reduce code size by using more macro.
SVN revision: 50281
2010-07-16 13:58:35 +00:00
Cedric BAIL 30d35eb1ba * edje: start to split structure content.
SVN revision: 50279
2010-07-16 11:37:58 +00:00
Lucas De Marchi 2a84379ba9 Remove unneeded code with notnull.cocci script
The notnull.cocci script from Coccinelle finds places where you check if a
variable is NULL, but it's known not to be NULL. The check can be safely
removed. For example, this code would be caught by notnull:

if (!var) return;
if (var && var->fld) { ... }

It's needless to check again if var is not NULL because if it's in fact NULL,
it would have returned on the previous "if". This commit removes all the
trivial places where this pattern happens. Another patch will be generated for
the more complex cases.


SVN revision: 50241
2010-07-14 02:05:47 +00:00
Cedric BAIL b49c2411bd * edje: when gradient meet dodo. Yes, they are gone !
SVN revision: 50223
2010-07-13 15:47:19 +00:00
Iván Briano b895f0c07f Re-convert to old format on Edje_Edit when saving
SVN revision: 50016
2010-07-03 22:50:58 +00:00
Cedric BAIL 4e30cb2411 * edje: move structure from Eina_List to array now that Eet support
them.


SVN revision: 49936
2010-06-29 13:48:03 +00:00
Cedric BAIL e17a4089df * edje: This is the first commit of a rewrite of edje file
internal representation.

	The objectiv is to simplify code, consume less CPU and memory
	without loosing feature. Please report any breakage when you
	see them. It will take a few weeks before we change the file
	layout, during that time the load time may increase.


SVN revision: 49922
2010-06-28 13:56:30 +00:00
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