Commit Graph

105 Commits

Author SHA1 Message Date
Carsten Haitzler 51b25f8c52 use new eina prefix finder.
SVN revision: 58850
2011-04-24 07:36:15 +00:00
Iván Briano 3f6ada804f Make edje_cc store script source snippets (only embryo now) in the generated file.
Yeah... yeah... we are on a freeze and we aren't supposed to be doing things like this, but it's not change anything other than allow edje_edit to know about scripts in order to not screw them up when modifying a file.


SVN revision: 55088
2010-11-30 15:37:20 +00:00
Leandro Pereira fcfaebe1e3 edje_cc: Bail out on descriptions without a state.
Also, don't dereference a NULL pointer on badly-formed .edj files.


SVN revision: 52931
2010-09-30 21:31:00 +00:00
Lucas De Marchi 3bec660090 Fix common misspellings
Following misspellings were fixed:

ammount->amount
arbitary->arbitrary
begining->beginning
carefull->careful
choosen->chosen
commited->committed
endig->ending
existance->existence
existant->existent
isnt->isn't
occured->occurred
postion->position
rougly->roughly
runing->running
shouldnt->shouldn't
soem->some
succesfully->successfully
succesful->successful
sucessful->successful
tranformed->transformed
usefull->useful
wehn->when
wich->which



SVN revision: 51988
2010-09-08 11:50:05 +00:00
Iván Briano b61db77029 Put fonts into the .edj file again.
SVN revision: 51684
2010-08-27 18:52:41 +00:00
Carsten Haitzler 5e36f9979b nuke old obsolete lua stuff - except edje_lua.c. let it dangle with
the actual lua code in it entirely not being compiled just as reference until
it's killed off.



SVN revision: 51622
2010-08-25 01:09:44 +00:00
Cedric BAIL b10e598f52 * edje: add back anonymous script.
SVN revision: 51617
2010-08-24 16:39:51 +00:00
Cedric BAIL 1d1a36047b * edje: remove edje_convert use in edje_cc.
SVN revision: 51134
2010-08-15 18:14:33 +00:00
Cedric BAIL c1436aac91 * edje: fix memory leak.
SVN revision: 51046
2010-08-12 15:05:56 +00:00
Cedric BAIL f3894fdd27 * edje: add some error detection.
SVN revision: 50939
2010-08-09 18:22:48 +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
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 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 30d35eb1ba * edje: start to split structure content.
SVN revision: 50279
2010-07-16 11:37:58 +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
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 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
Sebastian Dransfeld f2273a3f51 use PATH_MAX to define buffer size
in snprintf on the buffer PATH_MAX is used, so also use it to define
buffer size

SVN revision: 46729
2010-03-01 19:05:37 +00:00
Sebastian Dransfeld ef970dfb10 make clang happy
SVN revision: 45195
2010-01-15 20:01:42 +00:00
Gustavo Sverzut Barbieri a85cc11943 better error reporting for edje_cc.
Instead of saying lots of possibilities that confuse users, check the
correct one and possibly give a hint.



SVN revision: 44669
2009-12-22 23:56:11 +00:00
Cedric BAIL 018a9dad66 * edje: Use Eina_Log.
Patch from Mathieu Taillefumier.


SVN revision: 44655
2009-12-22 13:46:00 +00:00
Carsten Haitzler 4d42a6d2db warnings--
SVN revision: 44306
2009-12-09 05:46:02 +00:00
Gustavo Sverzut Barbieri d40d8d123d edje external support, part 1.
Patch by Fabiano Fidêncio <fidencio@profusion.mobi>



SVN revision: 43927
2009-11-23 15:03:19 +00:00
Vincent Torri 10b4ebc4d4 * fix some warnings
* move variable declarations at the top of the bloc

SVN revision: 43265
2009-10-25 11:40:06 +00:00
Vincent Torri d3f076e73a unused parameters --
SVN revision: 43264
2009-10-25 11:24:55 +00:00
Vincent Torri 3c48d7e6d0 * include config.h in all source files
* declare alloca before the standard headers
 * include Evil.h for the declaration of realpath in edje_cc_prefix.c

SVN revision: 43263
2009-10-25 11:19:12 +00:00
Cedric BAIL 8ea901a753 * edje: Remove some potential bug detected by llvm and gcc.
See: http://local.profusion.mobi:8081/~lfelipe/output-efl/


SVN revision: 42930
2009-10-07 10:55:48 +00:00
Vincent Torri 1029babb26 remove debug
SVN revision: 42057
2009-08-28 05:49:40 +00:00
Vincent Torri 2a8d44f5a0 allow the user to chose in which directory the temporary file
will be created. The logic is the following:

 * if the environment variable TMPDIR is set, use its value
 * if it is not set, take the directory passed with the
   -td option (see edje_cc help)
 * otherwise on Windows use a temporary dir and on other
   platform, use /tmp


SVN revision: 41978
2009-08-25 17:25:23 +00:00
Cedric BAIL 6c7f8ce84c * edje: Remove warning, mainly due to lua merge.
SVN revision: 41838
2009-08-17 11:32:56 +00:00
Hanspeter Portner da75132793 From: "Hanspeter Portner" <ventosus@airpost.net>
This concerns Ticket #109: Add Lua support for Edje

It adds Lua as scripting facility to Edje, letting Embryo untouched.
It should be easier to use and be more flexible than Embryo, imho ;-)

---
The patch
---

Lua 5.1 is used in sandboxed mode. Lua byte code is not
platform/architecture independent, Lua code is saved as text in the Edje
container and parsed at load time, therefore.

The patch goes in two directions

1) Analogous to Embryo for scripting logic, messaging and custom states.
The same things are implemented as in Embryo:

    - messaging from and to C
        - manual creation of timers, animators, pollers for custom events /
            animations
                - manual manipulation of Edje parts by means of the public
                    edje_object_part_* and internal functions and custom states
                    
                        -> those routines are actually implemented as Lua
bindings to
    functions in Edje.h and Ecore.h
        -> the implementation is done in an object oriented way, so that the
            interface gives the feel of an object description language, pretty
                similar to EDC itself
                    -> combining custom states and custom animators allows
for fancy
    animations and transitions, e.g circular/spline translations or
        complex/conditional transitions, etc.
            -> this is just the same as Embryo does, but implemented in Lua, so
                nothing new here, actually
                
                2) Dynamic object creation and manipulation
                
                    - this interface stems from the 'script_only' objects in
Edje. Those
    objects are a kind of scriptable Edje counterparts to Evas_Smart
        objects. The infrastructure for Embryo is already there, but has
            never been used
                - I added this in Lua and added some first bindings to
experiment
    with
        - I thought it would be useful to allow for a limited dynamic
            creation of ui parts
                - We can create instances of groups from within the same Edje
                    container and use them just like the main Edje object as
stated in
    1)
        - And there are some stand-alone bindings to dynamically create
            Evas_Image, Evas_Table, Evas_Line, Evas_Polygon as examples
            
                -> this may be useful to decouple the program from the ui
even more,
    to be able to do things that have to be done in the program itself
        atm, but actually belong to the user interface, but need dynamic
            creation of objects or complex interactions
                -> those objects are manipulated manually with Lua bindings
to the
    corresponding edje_object_* and evas_object_* functions
    
    ---
    Discussion points
    ---
    
    Both stuff in 1) & 2) is functioning, but needs testing, feedback,
    improvements, ...
    
    Stuff in 1) can already fully replace Embryo scripting with Lua
    scripting. There still is space for improvements/additions, though.
    
    Of the stuff in 2), I think it may only make sense to add the dynamic
    creation of groups defined in the same Edje container.  Dynamic creation
    of other Evas_Objects makes not much sense, as most of them can already
    be used as Edje parts and be manipulated with custom states (apart from
    polygons and lines) and it would make the whole theming potentially more
    programing-like and much more susceptible for errors, etc.
    
    Would this be useful, or drop it all?
    
    The scripting should be there just for logic, conditionals, custom
    states and animations, not for a whole dynamic canvas, imho.
    
    There is a patch around with EXTERNAL Edje parts. Seems to be a better,
    faster, more secure way to extend Edje with custom objects.
    
    There would be the possibility of precompiling Lua code at compile time
    (edje_cc) for faster loading, but we would have to patch and run our own
    Lua version.
    The Lua parser is pretty fast, though, and using
    byte-converted/endianness-swapped byte-code does only pay off for Lua
    chunks of some kilo lines.
    Byte code also occupies much more space than text in the final Edje
    container, as it includes debug symbols.
    
    ---
    
    Cedric and Vincent told me, that the plan was to replace Embryo totally
    by Lua before the official release of Edje at the end of the year? So it
    would make sense to bring Lua to svn soon and look how it fits in, test,
    debug, adapt it further to the themers needs, decide on its final shape,
    GATHER SOME PEOPLE TO HELP ;-)
    
    ---
    
    The Lua enhanced Edje is in sync with svn and can be get directly here
       git clone git://repo.or.cz/edje_lua.git
          cd edje_lua
             git checkout -b lua_patch origin/lua_patch
             
             or apply the attached patch
             
             There are also some examples to show the usage of the things
mentioned
above
    - showcase.edj: shows usage of custom animators, custom states,
        messaging and the script_only object
            - test.edj: test cases of script usage and bindings (custom states,
                custom transitions, tween_states, animators, timers,
object_parts),
    but most of it are experimental script_only objects
    
    http://didgmo.sourceforge.net/showcase.edj
    http://didgmo.sourceforge.net/test.edj
    
    The source of showcase.edc is attached, too, to just have a glimpse at
    Lua inside of EDC
    
    ---
    
    So, what do you guys think?
    
    Thanks and sry for the looong mail, hehe ;-)



SVN revision: 41802
2009-08-16 02:34:02 +00:00
Cedric BAIL 6ab6dbca0d * edje: Remove snprintf("%i") for an eina itoa.
NOTE: When you just want to convert from an int to a string,
	better use eina for that.



SVN revision: 39213
2009-02-25 17:08:17 +00:00
Vincent Torri 812f1e185f add alloca declaration
SVN revision: 38977
2009-02-09 06:33:26 +00:00
Iván Briano 7f3dfc66f2 And finally, edje table goes in
SVN revision: 38204
2008-12-18 02:43:20 +00:00
Gustavo Sverzut Barbieri 2f8f874b20 Shut up a bunch of warnings and fix some real errors.
SVN revision: 37954
2008-12-06 03:08:17 +00:00
Iván Briano 0ee4d07727 Edje Box in. Have fun with it.
SVN revision: 37783
2008-11-24 05:15:15 +00:00
Vincent Torri 0d8b00fdeb * move standard header files to source files
* remove gendoc


SVN revision: 37158
2008-10-26 17:18:19 +00:00
Cedric BAIL fa66dbf40a Remove Evas list from Edje and use Eina instead.
SVN revision: 36961
2008-10-22 11:34:42 +00:00
Caio Marcelo de Oliveira Filho 0d378996c8 edje_cc_out.c: Create an error_and_abort() function and use it.
SVN revision: 35596
2008-08-21 03:58:11 +00:00
Caio Marcelo de Oliveira Filho 5d229801fd edje_cc_out.c: Splitting data_write_scripts() in smaller pieces.
Now we have one function for creating the script file and another for
compiling it.  Also tried to avoid lots of nesting by checking for
error conditions early and returning (or aborting).  Avoided messing
with the code logic.

SVN revision: 35595
2008-08-21 03:57:56 +00:00
Caio Marcelo de Oliveira Filho e2d17e6ddf edje_cc_out.c: Removing unused function declaration and definition.
SVN revision: 35594
2008-08-21 03:57:39 +00:00
Caio Marcelo de Oliveira Filho f2a0a0f216 edje_cc_out.c: Split data_write() in a bunch of smaller functions.
Just moved the code pieces from data_write(), which was huge, to
static functions.  Also made minor cleanups, initializing variables
during declaration.

SVN revision: 35593
2008-08-21 03:57:20 +00:00
doursse 074765d3aa open files in binary mode, to fix problems on Windows. Fix a constness
SVN revision: 34931
2008-06-28 09:11:48 +00:00
doursse 0cdcab6a5c forget to remove 2 calls
SVN revision: 34762
2008-06-06 18:52:19 +00:00
doursse 82fee3d58c evilize edje. Link against ecore_file only when needed. PATH_MAX and not MAX_PATH. Minor other fixes.
SVN revision: 34761
2008-06-06 18:31:49 +00:00
Carsten Haitzler 0afa61a56a santiago's embryo swallow patchs.
SVN revision: 34249
2008-04-11 23:36:35 +00:00
doursse 5b257881d7 update win32 port : use correct temp dir value and correct open function according to the compiler
SVN revision: 32882
2007-11-25 16:22:58 +00:00
Sebastian Dransfeld 5b85440817 Don't segfault on empty file.
SVN revision: 31721
2007-09-15 08:46:34 +00:00
doursse 2e7692e45e make edje binaries compile and allow the creation of the edje shared lib on windows. Remove some trailing spaces
SVN revision: 31517
2007-08-26 12:54:51 +00:00
Carsten Haitzler 902b6c40bb formattign and allocs...
SVN revision: 30925
2007-07-21 05:06:39 +00:00