Commit Graph

761 Commits

Author SHA1 Message Date
Cedric BAIL 25f4acee01 This is a quick fix for edje match memory consuption. It is not the best
solution, but the fastest to implement without breaking edje file format.

So now, when a callback or a program don't use globbing charactere (*, ?,
[] and \), the match are put in a little rbtree instead of the big automate
matrix.

This patch could potentially break edje user, if you experience anything
strange with your edje file, please report.



SVN revision: 37577
2008-11-10 16:37:52 +00:00
Gustavo Sverzut Barbieri 1b1896ec55 for some reason this was being NULL to me.
it was crashing on group changing.



SVN revision: 37473
2008-11-05 16:08:39 +00:00
Davide Andreoli 6aaa2a7b35 * Arghh! Fix compilation... sorry
SVN revision: 37417
2008-11-02 15:02:40 +00:00
Davide Andreoli c1be5313b7 * Support text styles in edje_edit
SVN revision: 37415
2008-11-02 14:10:11 +00:00
Carsten Haitzler 68794e198b also use looptime
SVN revision: 37394
2008-11-02 02:43:43 +00:00
Carsten Haitzler 5813cfd630 leak--
SVN revision: 37262
2008-10-28 04:58:39 +00:00
Davide Andreoli ed57d68446 remove some warnings
SVN revision: 37192
2008-10-27 04:10:31 +00:00
Vincent Torri f270fdb629 arg, missing config.h and too many EXTRA_DIST
SVN revision: 37160
2008-10-26 17:23:54 +00:00
Vincent Torri 9ba3147a09 * remove edje_main.h - useless now
* forget locale.h in edje_edit


SVN revision: 37159
2008-10-26 17:21:11 +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
Vincent Torri 9d71cc15c7 autotools cleanups
* configure.ac re-organisation
 * don't compile edje binaries on windows ce
 * add doc rule to build documentation (hence gendo is removed,
   Doxyfile is moved to doc/ and edje.c.in is renamed doc/edje.dox.in)
   Next commit will fix completely the documentation
 * fix edje.pc.in


SVN revision: 37137
2008-10-26 11:55:57 +00:00
Carsten Haitzler 18c8160744 ret null - not nothing.
SVN revision: 37131
2008-10-26 11:04:53 +00:00
Gustavo Sverzut Barbieri 7f935e09c0 Set member_{add,del} to NULL.
SVN revision: 37087
2008-10-25 02:58:30 +00:00
Carsten Haitzler f14804f514 fix leak in entry anchors
SVN revision: 37083
2008-10-25 02:14:48 +00:00
Sebastian Dransfeld 71f14d8463 formatting
SVN revision: 37045
2008-10-24 07:08:08 +00:00
Carsten Haitzler 1d8a7e4dd3 allow you to get geom of anchors.
SVN revision: 37039
2008-10-24 00:44:26 +00:00
Carsten Haitzler 48f89d316a support repch - replacement char for passowrd mode. theme defines it now.
SVN revision: 37013
2008-10-23 05:38:06 +00:00
Carsten Haitzler dce5ba9fc8 use hold flags.
SVN revision: 36964
2008-10-22 11:59:59 +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
Carsten Haitzler 947b161c56 support password mode.
SVN revision: 36957
2008-10-22 08:57:49 +00:00
Carsten Haitzler 1cefba4012 fix last newline detection - dont keep adding them in!
SVN revision: 36950
2008-10-22 04:00:05 +00:00
Carsten Haitzler 154b2a5a94 printf--
SVN revision: 36905
2008-10-21 05:21:11 +00:00
Cedric BAIL ba9c2d3942 Use common eina convertion code.
SVN revision: 36841
2008-10-20 09:11:19 +00:00
Carsten Haitzler 195093cde5 fix edje smart move to update extra objs for entry.
SVN revision: 36753
2008-10-17 14:39:47 +00:00
Carsten Haitzler c74f8c820b add prototype.
SVN revision: 36743
2008-10-17 06:42:33 +00:00
Carsten Haitzler 7428272b25 and support anchors now. fix up other nigglies. very solid now.
SVN revision: 36741
2008-10-17 06:40:46 +00:00
Carsten Haitzler 560c836bef cleanup fixme's
SVN revision: 36739
2008-10-17 01:42:20 +00:00
Carsten Haitzler ad5a76df19 ok final known bug god for del. now.. anchors
SVN revision: 36738
2008-10-17 01:40:10 +00:00
Carsten Haitzler 92f5ecada5 and now make del work "more" correctly (not perfect)
SVN revision: 36734
2008-10-17 00:20:52 +00:00
Carsten Haitzler 4fb14a44c7 and fix entry some more...
SVN revision: 36733
2008-10-17 00:07:43 +00:00
Carsten Haitzler bb20ba07b4 fix insert from code to replace selection
SVN revision: 36723
2008-10-16 14:22:19 +00:00
Carsten Haitzler 0bc5d8fa1f 1 bizrre bug gone. 1 to go (random jumps to previosu format nodes on delete?)
SVN revision: 36721
2008-10-16 14:19:12 +00:00
Carsten Haitzler ab9c9c71d3 edje entry growing.
SVN revision: 36709
2008-10-16 09:17:44 +00:00
Carsten Haitzler 031c0d24ca set corsor to start on text set.
SVN revision: 36703
2008-10-16 02:11:02 +00:00
Carsten Haitzler 0b752a2143 actually use edje for selection and cursor now.
SVN revision: 36680
2008-10-15 15:15:06 +00:00
Cedric BAIL b489e1936b Switch evas_stringshare to eina_stringshare.
SVN revision: 36672
2008-10-15 14:11:11 +00:00
Carsten Haitzler af9a085880 and more entry support.
SVN revision: 36665
2008-10-15 09:58:25 +00:00
Carsten Haitzler 9c044c7904 more editing works
SVN revision: 36647
2008-10-14 04:35:17 +00:00
Cedric BAIL ab60bdaf87 Make edje depend on eina. No change in the code yet, so just fix your build system and no bug must show up.
SVN revision: 36623
2008-10-13 15:59:37 +00:00
Carsten Haitzler b5c61b17c1 and fix segv if things get key events...
SVN revision: 36615
2008-10-13 11:57:32 +00:00
Carsten Haitzler ce0d40cae7 editable textblocks... a start (definitely not there yet)
SVN revision: 36611
2008-10-13 09:19:04 +00:00
Carsten Haitzler 485e1c4218 fix drag event objects to work.
SVN revision: 36559
2008-10-10 01:46:02 +00:00
Davide Andreoli bc2268e0e0 * Support dragable parts
SVN revision: 36550
2008-10-09 14:38:22 +00:00
Davide Andreoli 8d2539445d * update TODO
SVN revision: 36539
2008-10-09 00:05:54 +00:00
Davide Andreoli 55d103da67 * ... and finally save the generated EDC back to the edje file
This means that file created with the editor can now be decompiled!!

But make attention because not every feature of edje is supported.
This means that (if you modify an existing file) you will lost some feature
while saving; like MACRO, inherit values, comments in the EDC code and some 
other smallies.
But if you have created the file with the editor all will be edje_decc well.

SVN revision: 36537
2008-10-09 00:04:18 +00:00
Davide Andreoli 7cef5ad68c * Support image_border_middle
SVN revision: 36506
2008-10-07 21:13:27 +00:00
Davide Andreoli 0ad6672332 * Add support for text Ellipsis and Fit
SVN revision: 36502
2008-10-07 16:01:56 +00:00
Davide Andreoli 270e803fb6 * More work on edc export... quite finished now :)
* Add gradient angle support to edje_edit
 * Some small doxy 

SVN revision: 36500
2008-10-07 14:11:11 +00:00
Carsten Haitzler 58841dae63 edje uses size min/max and aspect hints in evas - old extern blah calls
compatible and use the evas hints internally.



SVN revision: 36439
2008-10-05 03:37:37 +00:00
Davide Andreoli 33e0b66891 * more work on edc export
SVN revision: 36412
2008-10-03 00:20:19 +00:00
Carsten Haitzler 8aed008df3 fix a jitter with text fit if fit region tiny!
SVN revision: 36389
2008-10-02 04:01:54 +00:00
Davide Andreoli 8e041f819a * And also export color_classes when saving edc
SVN revision: 36300
2008-09-28 22:45:47 +00:00
Davide Andreoli 3161a3bcb9 * implement edje_edit_state_color_class_get/set
SVN revision: 36298
2008-09-28 22:23:43 +00:00
Davide Andreoli 1e6847bb21 * make color classes editable
SVN revision: 36295
2008-09-28 18:44:19 +00:00
Davide Andreoli 0815143253 * add the ability to rename a \'data\' object
* initial color_class support

SVN revision: 36281
2008-09-27 21:29:55 +00:00
Davide Andreoli e823ef746e * more work on edc export (thanks dieb)
SVN revision: 36189
2008-09-23 17:47:31 +00:00
Carsten Haitzler 0a0d491cc3 disabel start/stop emits for programs - there is a good point that they are
largely useless.



SVN revision: 36064
2008-09-18 01:48:17 +00:00
Gustavo Sverzut Barbieri fb44db2211 Revert edje_smart_calculate_v4_r2, it breaks e17 shelf resize.
Not ready yet, reverting...



SVN revision: 36031
2008-09-17 01:50:16 +00:00
Gustavo Sverzut Barbieri d044a0245a More svn:ignore
SVN revision: 36026
2008-09-16 19:44:20 +00:00
Davide Andreoli 3a441393b7 * Expose state visible flag
SVN revision: 36023
2008-09-16 19:01:37 +00:00
Davide Andreoli bae73a2b60 * Add top level data editing functions
* Also change edje_cache.c to don\'t free the data list when creating the data_cache 

SVN revision: 35987
2008-09-14 22:30:15 +00:00
Cedric BAIL 5811041053 This patch reduce the usage of memset by edje_match function.
I did test this patch since three month in my apps and in E, and I didn't
notice anything going wrong with it. If you experience strange bug with
matching please report them.



SVN revision: 35945
2008-09-11 11:20:42 +00:00
Cedric BAIL fd5de88682 Only update Evas_Object geometry when they are visible. This should prevent
them from being put in the evas_render_update phase.

I did extensively test this patch since a few month and didn't notice any
bug with it in my apps, nor in E. But please report anything that goes wrong
for you after this version.



SVN revision: 35944
2008-09-11 11:18:33 +00:00
Cedric BAIL 35fca3f9dd Replace big serie of if, with a cleaner switch.
SVN revision: 35943
2008-09-11 11:15:39 +00:00
Cedric BAIL 060f30aa6e Make EDJE_PROGRAM_CACHE configurable with autotools (with small fix for make it run again).
SVN revision: 35942
2008-09-11 11:14:39 +00:00
Carsten Haitzler aaa724d23c ok still doesnt work - FASTFREEZE shoudl work.. but dont.
SVN revision: 35925
2008-09-10 07:17:24 +00:00
Carsten Haitzler 673efdedd5 fix scaling on edje_scale - works with smnall sizes now too. problem is
really i was chasing a freeze/thaw problem. something is up.



SVN revision: 35922
2008-09-10 06:39:57 +00:00
Gustavo Sverzut Barbieri 0a75de51f0 Revert edje calculate optimizations.
Edje is tricky, it's event processing is too weird and Cedric's
changes to make it work are not working as expected. Edje freezes
itself while processing signals, but in mouse down cb it forces
recalculate, which seems was previously ignored, but now they are not.

We should look at how to fix this and then re-apply this patch.



SVN revision: 35908
2008-09-09 23:41:42 +00:00
Carsten Haitzler 23e2c9e035 support an edje scaling factor. parts can selectively say "yes.. scale me!"
:)... this allows e etc. to adapt to massivelyt different dpi screens with
slickness that even svg can't get to... why? you scale just what NEEDS
scaling (text, button sizes, and other limiting elements). other bits like
borders, padding etc. can remain pixel-perfect and thus the look is amazing.
pixel-perfect drawing with scalable adapting.



SVN revision: 35895
2008-09-09 14:13:34 +00:00
Gustavo Sverzut Barbieri 58a49c2f69 Add calculate callback to Evas_Smart_Class.
Some people is using it for some time now without problems, so I'm
adding it to SVN to get some broader use. Remember to recompile ALL
libraries that depend on Evas as it will change the
EVAS_SMART_CLASS_VERSION and old classes will fail to load.

This will also change Edje so it will postpone _edje_recalc() to
render time, calculate() callback, however some methods will force
early recalculation.



SVN revision: 35860
2008-09-07 01:25:49 +00:00
Cedric BAIL dec2f04734 Actually call eet_init/eet_shutdown and fix another potential memory leak.
SVN revision: 35615
2008-08-22 14:32:25 +00:00
Gustavo Sverzut Barbieri d428d6ec1d Add some consts to Edje's API.
Some methods do no change object internal state and can be marked as
read only. In parallel have infamous edje_object_part_object_get() to
return a read-only object, so it's even more clear that one should not
touch this object state (either a cast or a compiler warning if you do
that!)


SVN revision: 35485
2008-08-14 18:21:27 +00:00
Gustavo Sverzut Barbieri dbe1ac5aca Fix warnings about Edje's usage of Eet_Data_Descriptor_Class.
Couple of casts to shut up gcc.


SVN revision: 35484
2008-08-14 18:10:26 +00:00
Gustavo Sverzut Barbieri a85c8a5f2b Fix name incoherency: rename Edje->part to group.
It is very confusing to have "part" there and in the methods call,
because we want the group name, not part.


SVN revision: 35483
2008-08-14 18:04:43 +00:00
Carsten Haitzler e84a969a69 fix string len problem
SVN revision: 35305
2008-08-02 01:33:39 +00:00
Davide Andreoli e87f1f0aca * work in progress for generate edc. thanks to dieb
SVN revision: 35261
2008-07-30 22:41:04 +00:00
Davide Andreoli cc645d82fe * create gradient using "use_rel = 1"
* remove some debug
 * fix some returns


SVN revision: 35116
2008-07-15 01:03:24 +00:00
Davide Andreoli 04249c53e6 * withspaces and similar
SVN revision: 35097
2008-07-13 14:29:18 +00:00
Davide Andreoli 092f491d09 * remove spectra_id functions in favor of standard 'get/set-by-name' functions
SVN revision: 35096
2008-07-13 14:18:17 +00:00
Davide Andreoli 464c92eece * fix compiler warnings
SVN revision: 35095
2008-07-13 13:55:43 +00:00
Davide Andreoli a8a954e525 * Added spectra API
* Added gradient API
 * Added fill API
 * Some small doxy fix


SVN revision: 35075
2008-07-12 12:48:35 +00:00
Gustavo Sverzut Barbieri 0db98a4d3f We need to force signed chars when we need the signal.
The type "char" is not defined to have a sign or not, for performance
issue some platforms (ie: ARM) define it as unsigned. If we need to
rely on the sign, must say so.


SVN revision: 34924
2008-06-27 03:14:57 +00:00
Sebastian Dransfeld 95693f1a1c Add return values.
SVN revision: 34866
2008-06-19 12:46:04 +00:00
Sebastian Dransfeld b55c00e17f Fix compiler warnings.
SVN revision: 34865
2008-06-19 12:39:58 +00:00
Davide Andreoli d0d0eee429 Initial work for writing edc source code
SVN revision: 34820
2008-06-14 01:13:16 +00:00
doursse c5623c01b3 reorganize header files inclusion. Fix some problems when compiling on Windows
SVN revision: 34768
2008-06-07 10:06:14 +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
doursse 653692fa28 fix autotools stuff for Windows
SVN revision: 34712
2008-05-31 06:15:41 +00:00
Carsten Haitzler 850cae173c doing some work on a test script object and actually making it work.
SVN revision: 34703
2008-05-30 15:29:39 +00:00
Carsten Haitzler 1c7b215135 printf--
SVN revision: 34702
2008-05-30 14:27:56 +00:00
Carsten Haitzler 15cd1238db start some serious work on script_only edje objects - for efficiency sake i'm
having an almost parallel codepath for script_only objects - they dont get to
use the older edje api calls for part defined objects. they will have a new
set of calls specifically for them. it's partly done - very little available
now, but will expand. lots of fixme's.


SVN revision: 34699
2008-05-30 11:20:49 +00:00
doursse 0fe68f24fc * move the declaration of variables at the begnning of the blocks
* minor formatting


SVN revision: 34695
2008-05-30 08:00:25 +00:00
Carsten Haitzler 43821d36e4 * add efreet garbage data check
* remove printfs that clutter output
* add efreet file type check - only parse regular files
* chekc mmap returns correctly for MAP_FAILED results
* edje has some stubs for adding script-only objecvts - but nothing useful
right now


SVN revision: 34689
2008-05-29 02:00:04 +00:00
Carsten Haitzler 0d624dcb94 lars get button mask call for edje embryo added
SVN revision: 34611
2008-05-19 04:38:40 +00:00
Carsten Haitzler e92406d330 patch from rafael to hook in funcs to embryo
SVN revision: 34603
2008-05-19 02:50:38 +00:00
Carsten Haitzler 14e2187305 get rid of 0 byte alloc
SVN revision: 34440
2008-05-03 05:33:26 +00:00
Carsten Haitzler dde62f1882 add another constraint-aware min calc
SVN revision: 34297
2008-04-17 10:22:57 +00:00
Carsten Haitzler 6dd6b76c0a fix valgrind warning in match code
SVN revision: 34284
2008-04-17 01:13:48 +00:00
Carsten Haitzler 0afa61a56a santiago's embryo swallow patchs.
SVN revision: 34249
2008-04-11 23:36:35 +00:00
Carsten Haitzler 0e4c0eb8ec cedric small speedups patches for edje back in - minus the ones that break
things. (0004).


SVN revision: 34234
2008-04-10 08:58:19 +00:00
Carsten Haitzler 4d54b4aaa6 adriano';s edje text fit patch
SVN revision: 34206
2008-04-06 02:08:21 +00:00
Caio Marcelo de Oliveira Filho f674fc975b Fix mouse_in/out flag checking.
If we have event_flags and they match any bit in ignore_flags, return.


SVN revision: 34185
2008-04-04 00:07:07 +00:00
Carsten Haitzler ff6fb2e3bf actually. these patches broke illume! aaak! revert.!
SVN revision: 34180
2008-04-03 19:27:53 +00:00
Carsten Haitzler 13809fe5bd oops fix logic. done.
SVN revision: 34175
2008-04-03 18:22:22 +00:00
Carsten Haitzler 48deca9592 1. cedrics patches for speedups. they breka nothing.
2. fix mouse in/out and other event flags stuff again.


SVN revision: 34174
2008-04-03 18:18:36 +00:00
Caio Marcelo de Oliveira Filho ea56c61eba Edje: adding support for ignore_flags.
Parts can choose to ignore Events with certain flags in event_flags. The default value is
to accept all events. The syntax for this is specifying in the part:

    ignore_flags: ON_HOLD;

I've tried to update Edje_Edit bits also.


SVN revision: 34170
2008-04-01 21:33:17 +00:00
Carsten Haitzler 368f148fef use hold event and emit hold,on and hold,off
SVN revision: 34161
2008-03-31 21:38:51 +00:00
doursse 8e386e3f73 remove trailing spaces
SVN revision: 34101
2008-03-24 08:22:01 +00:00
Sebastian Dransfeld 56b68a7ba4 formatting
SVN revision: 34016
2008-03-13 19:08:14 +00:00
Sebastian Dransfeld 3340fba2fb formatting
SVN revision: 34015
2008-03-13 19:01:53 +00:00
Sebastian Dransfeld 1ca9a3d4a5 Fix compiler warnings
SVN revision: 34013
2008-03-13 16:01:35 +00:00
Sebastian Dransfeld 00065fd407 Add const
SVN revision: 34011
2008-03-13 06:38:16 +00:00
Carsten Haitzler f08234a968 improve build includes.
SVN revision: 33997
2008-03-12 16:32:35 +00:00
Sebastian Dransfeld 9c2e6dcd43 formatting
SVN revision: 33991
2008-03-12 09:48:04 +00:00
Davide Andreoli f9e5ad5282 * fixed strings free
SVN revision: 33961
2008-03-08 23:11:32 +00:00
Davide Andreoli fad0d39cdc Add the 2 missing files
SVN revision: 33947
2008-03-06 19:48:11 +00:00
Carsten Haitzler b65d63440f add cedrics dict check patch
SVN revision: 33946
2008-03-06 17:52:59 +00:00
Gustavo Sverzut Barbieri c623cbc753 Add missing escape of textblock style font.
SVN revision: 33907
2008-03-03 16:10:22 +00:00
Carsten Haitzler 68a7734f67 disable compression for now on sources - this breaks edje_decc.
we need to resolve the bug where u can't read compressed sources anymore... :/


SVN revision: 33895
2008-03-02 05:39:51 +00:00
Carsten Haitzler 8a3e188813 leak--
SVN revision: 33893
2008-03-02 02:47:36 +00:00
Carsten Haitzler 7564343804 fix segv - cant access file after its been freed...
SVN revision: 33892
2008-03-02 02:34:23 +00:00
Carsten Haitzler e076a78519 cedric's eet and edje patches to use eet dictionaries for strings.
SVN revision: 33873
2008-03-01 06:38:09 +00:00
Carsten Haitzler c3ec60a6c9 stop allowing self-feeding forever loops by adding jobs forever.
SVN revision: 33871
2008-03-01 04:59:38 +00:00
Gustavo Sverzut Barbieri 08bfdacdee Bugfix and refactor get of font based on text_class.
Edje tries to copy original style to font provided by text_class if
this have no style.

However code was supposing that text_class font always had more than
one occurrence, these separated with ',' and did not check if this is
not the case, so "e = strchr(',', tok);" was returning NULL and all
the math were using negative values.

The fix now does the proper checking, avoid one useless alloca() and
the respective copy, also doing the copies with memcpy() since sizes
are already known.

Refactory was done to make code simpler and also avoid having it
copied 3 times.


SVN revision: 33869
2008-02-29 21:43:55 +00:00
Gustavo Sverzut Barbieri da7eabb809 Just update dragable parameters if part is dragable.
SVN revision: 33867
2008-02-29 03:39:31 +00:00
Gustavo Sverzut Barbieri 621d8f73af Optimize interpolation.
Check if values actually differ before interpolating them, this will
avoid useless math for (x1 - (x1 - x2) * p) when x1 and x2 are equal.

Also don't interpolate values that doesn't make sense to the part,
like color2 and color3 for non-text.

TODO: Refactor edje part description into more object-oriented
fashion, with a struct with just the common parts followed by an union
of structs for special objects, these would contain specific bits for
each part type. This would save us a bit of memory and then we can
more easily refactor code isolating common and specific parts, making
code smaller and easier to handle.


SVN revision: 33861
2008-02-27 19:03:19 +00:00
Gustavo Sverzut Barbieri b5d880093f Avoid using anonymous for often used structs.
My last patch fixed the compile problem, but really, we should use the
same struct for things that look/work the same, like rectangle,
position, etc.

This new patch brings that change back and add some named structs
(also typedef'ed so it conforms to E naming schema).

This commit just changes the header and adds an example of
benefit. Later I'll provide a more intrusive patch that reorganize
structures to make even better use of this.


SVN revision: 33860
2008-02-27 16:03:23 +00:00
Gustavo Sverzut Barbieri 09148d57c4 Fix my introduced bug in cedric's patch.
SVN revision: 33859
2008-02-27 15:21:16 +00:00
Gustavo Sverzut Barbieri 0d9ff479d2 Avoid useless huge implicit memcpy.
The "simple" block:

   p3 = p1;

was doing an implicity memcpy() responsible for about 1% of processing
time when no animation happens.

Patch by Cedric BAIL.


SVN revision: 33858
2008-02-27 14:27:10 +00:00
Gustavo Sverzut Barbieri 9abfa8f70a Cleanup of last patches and revert my patching mistakes.
Last 2 patches were swapped, I applied them in the wrong order and
missed the rejections, my bad.

I fixed it and also did some cleanup, looks better now.


SVN revision: 33855
2008-02-26 20:12:00 +00:00
Gustavo Sverzut Barbieri c48465c86a Fix a memory leak on edje destruction.
Patch by Cedric BAIL.


SVN revision: 33854
2008-02-26 19:06:33 +00:00
Gustavo Sverzut Barbieri 30b26c0937 Cleanup for possible memory leak.
Patch by Cedric BAIL.


SVN revision: 33853
2008-02-26 18:41:44 +00:00
Gustavo Sverzut Barbieri 833e075b9a Delay patterns destruction until patterns is not used anymore.
Patch by Cedric BAIL.


SVN revision: 33850
2008-02-26 17:56:51 +00:00
Christopher Michael a77a6eb18c Fix evas_hash_foreach functions for recent evas changes.
Fix some formatting issues.


SVN revision: 33809
2008-02-22 10:42:50 +00:00
Gustavo Sverzut Barbieri 435dfe2a2a Reduce memory allocation for edje match.
Just allocate and build the match automate for callbacks and programs
only when required. On load for programs and when callbacks list has
been updated.

Patch by Cedric BAIL. (with minor fixes to use TABS where context was using)


SVN revision: 33804
2008-02-21 18:48:36 +00:00
Gustavo Sverzut Barbieri e618b1d188 Cleanup edje calc and fixes textblock "visible" use.
Patch by Cedric BAIL, with minor formating/style fixes.


SVN revision: 33803
2008-02-21 18:35:27 +00:00
Christopher Michael 6fd085f0aa Fix formatting ugliness.
Add 'const' to evas_hash_foreach functions as per recent Evas changes.


SVN revision: 33748
2008-02-15 19:30:12 +00:00
Carsten Haitzler 92e084f9ca asparagus! also pass distcheck and have common autofoo init that is
consistent for package, version etc.


SVN revision: 33602
2008-01-25 03:35:49 +00:00
Carsten Haitzler 540db93949 textblock max size option in
SVN revision: 33528
2008-01-19 01:00:14 +00:00
Sebastian Dransfeld ebe93744cf formatting
SVN revision: 33527
2008-01-19 00:24:53 +00:00
Gustavo Sverzut Barbieri 533be6581f Escape font name before writing it to fixed buffer.
Font names can contain spaces, either in the file name and the
fontconfig, so do the escape and keep words linked.

Now it's possible to have things like:
  font=Vera\\ Sans:style=Bold
and it will work. (note double \\ is required)


SVN revision: 33526
2008-01-18 20:51:03 +00:00
Carsten Haitzler 4fce4a3981 remvoe fnmatch checks
SVN revision: 33516
2008-01-18 06:38:46 +00:00
Carsten Haitzler fff9c738a2 did some tests - this seems to be faster and seems to match correctly in some
test cases i brewed up. doesnt seem to break e so far and thats a fairly
comprehensive test.


SVN revision: 33515
2008-01-18 06:34:04 +00:00
Sebastian Dransfeld 62cf45caab Don't clean up this job, ecore_job will clean it up itself.
SVN revision: 32351
2007-11-04 12:41:15 +00:00
doursse f936cbea25 * add mail in AC_INIT
* remove Makefile.in when cleaning
 * INCLUDES -> AM_CPPFLAGS
 * minor cleaning


SVN revision: 32342
2007-11-04 09:53:29 +00:00
Gustavo Sverzut Barbieri b542743d9e Fix calculation of font size when text.fit_y is set.
Before it was using a linear search with initial step proportional to
difference bettwen desired and current height, but the way it was
implemented it was giving incorrect values, for example: a text in
an animation that enlarges height was getting size_{n} < size_{n-1},
where it should be always the oposite (the sequence was like: 31, 32,
33, 34, 31, 33, 34, 35, ...).
   One way to avoid that was to recalculate "dif" based on new "th",
but it quickly drop to 1.

The current implementation now uses a binary search to find the first
size that matches the desired height and then a linear search to
search the largest font doing that (differents sizes may result in the
same height). This linear search is often an extra lookup and can be
avoided if we want just something that fits (instead of the largest).


SVN revision: 32146
2007-10-22 22:31:13 +00:00
Gustavo Sverzut Barbieri 3500a5c059 Fix calculation of maximum values for swallow parts.
Due my last change, the code was broken by edjes without a group
min/max, this happens because edje_object_size_max_get() returns
100000 for these objects, and this was being used as object maximum
size.

Current fix is a hack: just check for this value, now known as
EDJE_INF_MAX_*, but the real solution would be to return 0 (or -1) and
check for it in other parts of the code, but it's harder to get right.


SVN revision: 32123
2007-10-19 19:31:42 +00:00
Gustavo Sverzut Barbieri 8f12e90da0 Set pass_events to 0 if "mouse_events: 1".
I'm not sure this is the right thing to do, but since we're setting it
to 1 when "mouse_events: 0", it fix some problems.

Maye we shouldn't set this flag at all and let users have these
options set on clippers?


SVN revision: 32120
2007-10-19 16:07:43 +00:00
Carsten Haitzler 412d44f90f bizarre - text sources were broken - but never appeared in e - somehow they
worked. fixed.


SVN revision: 32078
2007-10-14 23:54:27 +00:00
Gustavo Sverzut Barbieri 403afe21fc Fix edje calculation of max width for swallowed parts.
If you have a SWALLOW part taking the whole window and then swallow an
object with max set using edje_extern_object_max_size_set() it will
not take effect due the comparison of ep->swallow_params.max.w < -1
(desc->max.w is -1 in this case).


SVN revision: 32029
2007-10-09 15:30:26 +00:00
doursse d6dd187899 configure improvements:
* add libtool versioning from the package version (from raster's
   management of package version)
 * replace AM_PROG_LIBTOOL(deprecated) by AC_PROG_LIBTOOL
 * remove AM_ENABLE_SHARED as shared lib is built by default
 * add AC_LIBTOOL_WIN32_DLL for libraries ported to Windows (tm)
 * remove the libtool checks of c++ and fortran compilers
 * remove PACKAGE_*_DIR from configure.in and define them in
   Makefile.am as bindir and al. are expanded in them.

please report any problem that these changes can add


SVN revision: 31999
2007-10-07 08:02:53 +00:00
Carsten Haitzler cf49928045 cedric's ecore_job_init/shtudown patches.
SVN revision: 31972
2007-10-05 05:12:38 +00:00
Carsten Haitzler c7ec01eac8 fix edje to get the current default object size as initial size data.
SVN revision: 31970
2007-10-05 04:53:17 +00:00
Carsten Haitzler b329369cf0 fix up edje to calc using the same font as the textclass.
SVN revision: 31748
2007-09-17 11:33:16 +00:00
Carsten Haitzler 7a889364ad retain text styles fron theme if they are specificed
SVN revision: 31744
2007-09-17 05:07:35 +00:00
Gustavo Sverzut Barbieri f068851044 Fix deletion of Edje with child "GROUP".
SVN revision: 31690
2007-09-12 17:42:21 +00:00
Gustavo Sverzut Barbieri 5193a28bba Fix segfault with part_recalc when no image_dir was specified.
This avoid crashes with buggy edje files: if you forget to specify
type: RECT and don't provide any "images.image" in edje, it crashes.


SVN revision: 31689
2007-09-12 15:12:07 +00:00
doursse 974152be16 remove trailingspaces
SVN revision: 31657
2007-09-08 18:31:56 +00:00
doursse c63454baea remove trailingspaces
SVN revision: 31656
2007-09-08 18:25:43 +00:00
doursse 5f24fc14bf remove trailingspaces, include correctly alloca.h
SVN revision: 31655
2007-09-08 18:21:57 +00:00
doursse 97645159f8 Ecore_X and Ecore_Fb are not used
SVN revision: 31554
2007-08-27 11:52:04 +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 b0305ccaa9 god damn.. chasing that bad mem access was tricky. found it after futzing
with edje, evas and e.


SVN revision: 31206
2007-08-07 14:20:47 +00:00
Carsten Haitzler 4b435be1ed move a chunk of stuff to use evas_smart_class_new() - evas_smart_new() will
probably die as it's already got legacy funcion methods for layer etc. stuff.


SVN revision: 31161
2007-08-04 13:12:43 +00:00
Carsten Haitzler 25acab7a37 data struct should match eet description - an enum may not be a char - it may
be an int or short or something else.


SVN revision: 31118
2007-08-02 22:48:14 +00:00
Carsten Haitzler a0d1f47563 DONT set color - bad. see comments
SVN revision: 31105
2007-08-01 14:34:10 +00:00
Gustavo Sverzut Barbieri eda1f13b33 Support for selectable pointer_mode.
Evas now support objects that do not grab mouse down event (NOGRAB) aside
with the default (AUTOGRAB). API is meant to be extensible.


SVN revision: 30950
2007-07-24 14:20:07 +00:00
Carsten Haitzler d6f9cc797e adrunko's precise event patch
SVN revision: 30939
2007-07-23 14:22:57 +00:00
Carsten Haitzler 24b62d0683 constness patches from cedric
SVN revision: 30848
2007-07-16 07:31:06 +00:00
rephorm 9c9b53bf7c yikes
SVN revision: 30782
2007-07-12 21:30:36 +00:00
Peter Wehrfritz 6e37525b54 use a lookup table
SVN revision: 30673
2007-07-08 17:52:39 +00:00
Peter Wehrfritz 256b9de930 add support for glow, far shadow and far soft shadow for text parts
SVN revision: 30629
2007-07-06 23:33:42 +00:00
Gustavo Sverzut Barbieri 973d46b643 If object is swallow, apply color changes to swallowed object. Ack by rephorm.
SVN revision: 30628
2007-07-06 23:27:33 +00:00
Gustavo Sverzut Barbieri 17f1ba629a Messages are now passed to children groups (part.type=GROUP)
SVN revision: 30625
2007-07-06 23:03:05 +00:00
rephorm 982ad090be add cedric bail's fill.type patch.
you can now include "type: TILE;" in the fill block to tile an image part at the size of its image data


SVN revision: 30624
2007-07-06 22:36:40 +00:00
Gustavo Sverzut Barbieri 28294cb592 Use a more appropriate message for files not found than 'Unknown Format'
SVN revision: 30621
2007-07-06 20:46:32 +00:00
Carsten Haitzler 0c4af24a33 save a few bytes by packing structures better... simple savings :)
SVN revision: 30486
2007-06-28 23:22:20 +00:00
Sebastian Dransfeld 0f319df781 Remove mysterious charachter.
SVN revision: 30393
2007-06-18 16:49:11 +00:00
Sebastian Dransfeld 63b22447ef Remove padding when searching for character position.
SVN revision: 30392
2007-06-18 16:48:43 +00:00
Sebastian Dransfeld 50c700d439 Remove unused variable.
SVN revision: 30365
2007-06-17 07:09:02 +00:00
rephorm d4a055585b Add GROUP Parts to edje.
These can be used to automatically swallow in another group from the same file.

Parts within child groups can be referred to by a ':' separated 'full path' of
part names. Any API functions that take a part name will now accept a full path
also.

Signals emitted by child objects will be repeated up to the parents with the
source changed to be the path relative to the receiving object.  E.g in the
example below, a mouse moving over the lower light green rectangle would result
in the parent object recieving a "mouse,move" signal with source "bot:inner".

**** NEW RESTRICTION ****  part names should no longer include a ':' character.
This is not yet enforced by edje_cc, but will cause the part to be inaccessible
from the API.

Example EDC:

collections {
  group {
    name: "parent";
    parts {
      part {
        name: "top";
        type: GROUP;
        source: "child";
        description {
          state: "default" 0.0;
          rel2.relative: 1 0.5;
        }
      }
      part {
        name: "bot";
        type: GROUP;
        source: "child";
        description {
          state: "default" 0.0;
          rel1.relative: 0 0.5;
        }
      }
    }
  }
  group {
    name: "child";
    parts {
      part {
        name: "base";
        type: RECT;
        description {
          state: "default" 0.0;
          color: 160 208 8 255;
        }
      }
      part {
        name: "inner";
        type: RECT;
        description {
          state: "default" 0.0;
          rel1.offset: 10 10;
          rel2.offset: -11 -11;
          color: 210 228 76 255;
        }
      }
    }
  }
}


SVN revision: 30087
2007-05-27 05:28:07 +00:00
rephorm e954849ee1 Remove part list, using table everywhere instead
SVN revision: 30085
2007-05-26 23:57:21 +00:00
rephorm 8a17d1986e only clear and re-apply gradients when the spectrum actually changes
SVN revision: 30065
2007-05-24 04:34:41 +00:00
rephorm 65ec1b5633 if requested scroll size is less than min, use min size.
SVN revision: 30064
2007-05-24 03:41:04 +00:00
Carsten Haitzler 002d09cc7d asparagus - pass distcheck.
SVN revision: 29865
2007-05-05 15:14:17 +00:00
Stafford Mitchell Horne 61bda22a70 Add negative font size handling in text_classes
* negative size is a multiplier for the origianl size
 i.e. : -100 = 1.0x;  -120 = 1.2x


SVN revision: 29835
2007-05-03 23:15:09 +00:00
rephorm 766c1990c4 docs
SVN revision: 29523
2007-04-15 04:24:07 +00:00
rephorm 10696fd213 some more docs
SVN revision: 29522
2007-04-15 04:05:41 +00:00
rephorm 9bb90d5319 expand a few docs
SVN revision: 29521
2007-04-15 03:19:35 +00:00
Sebastian Dransfeld 2bc0592a68 - Formatting.
- Remove old code.


SVN revision: 29380
2007-04-05 15:54:16 +00:00
moom 4c75d05f16 * Correctly unswallow a swallowed-object when an Edje-object is deleted.
Otherwise, they may be a segv when you call edje_extern_object_*() on a
previously-swallowed object.


SVN revision: 29373
2007-04-05 12:49:48 +00:00
Carsten Haitzler a9daf7dd89 cedric's patches.
SVN revision: 29353
2007-04-04 13:25:55 +00:00
Carsten Haitzler e0b17ee4ee 1. removed mosue_events 0 on swallows - as this now changes behavior. normalise
2. gustavo's patch.


SVN revision: 29352
2007-04-04 12:51:51 +00:00
Carsten Haitzler 7512a58ace swallow parent recalc etc. in.
SVN revision: 29351
2007-04-04 12:46:44 +00:00
tilman 731a6622f9 fixed some const char*/char* confusion.
SVN revision: 29279
2007-03-31 10:33:24 +00:00
tilman fd9cf44c7e remove an unused variable
SVN revision: 29278
2007-03-31 10:32:48 +00:00
Carsten Haitzler 6d5551939d tilman's edje font metrics patch
SVN revision: 29266
2007-03-30 23:39:41 +00:00
Sebastian Dransfeld e06c5c75f6 Reset job incase the user reset's edje.
SVN revision: 29087
2007-03-25 07:10:48 +00:00
Sebastian Dransfeld 787f3095d2 Can't and shouldn't delete job on shutdown. The job handler might not get
called and ecore will free the memory anyway.


SVN revision: 29021
2007-03-24 16:48:51 +00:00
Sebastian Dransfeld 9dbcb5c3ee Remove debug comments.
SVN revision: 29016
2007-03-24 16:05:43 +00:00