Commit Graph

867 Commits

Author SHA1 Message Date
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
Horms 8c554f1977 edje: include autogen.sh in distribution tar ball
autogen.sh is really ought to be included in the distribution.
For starters its used in the debian build process.


SVN revision: 33782
2008-02-18 07:48:41 +00:00
Horms 5ac42d953d Add build-dependancy on pkg-config
As aclocal may be called via autogen.sh during the Debian build process
add an explicit build dependancy on pkg-config which includes
/usr/share/aclocal/pkg.m4 which provides the PKG_CHECK_MODULES macro.


SVN revision: 33781
2008-02-18 07:44:11 +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
kaethorn b83098328e remove duplicate line.
SVN revision: 33588
2008-01-24 20:55:30 +00:00
Carsten Haitzler 033737bdd9 edje data file patches in - not fill though.
SVN revision: 33543
2008-01-21 01:03:04 +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
doursse 33d11c8035 fix typo in symlink (win32)
SVN revision: 33469
2008-01-13 09:09:42 +00:00
Davide Andreoli 06ef0d738c Update doxy style
SVN revision: 33033
2007-12-06 23:42:38 +00:00
Carsten Haitzler 0ceaf246a2 terminate strings properly?
SVN revision: 32900
2007-11-27 10:50: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 bc6caea1f9 Edje reference patch two (from dresb)
SVN revision: 32849
2007-11-23 16:43:03 +00:00
Sebastian Dransfeld a71e255ede Edje reference patch one (from dresb)
SVN revision: 32848
2007-11-23 16:40:38 +00:00
Gustavo Sverzut Barbieri ee259f860f Edje mode improvements
* Now can be compiled with "compile" function.
 * Fixed insertion of part description internals alone.
 * Add program and its internals, with key bindings.


SVN revision: 32540
2007-11-10 15:52:20 +00:00
Gustavo Sverzut Barbieri f55774883c Add edje-mode.el to EXTRA_DIST
SVN revision: 32539
2007-11-10 13:49:31 +00:00
Gustavo Sverzut Barbieri c2ced8ed31 Edje Emacs mode.
It defines the syntax highlight and some functions to help editing,
like creating parts and more.


SVN revision: 32538
2007-11-10 13:48:28 +00:00
Sebastian Dransfeld 77604c36f3 add new keyword
SVN revision: 32537
2007-11-10 13:17:23 +00:00
Carsten Haitzler c6df44802c As requested -
debian--, gendoc++


SVN revision: 32476
2007-11-07 22:56:05 +00:00
ningerso 6e83c37fe7 awk portability fix in configure.in.
SVN revision: 32473
2007-11-07 22:03:45 +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
Sebastian Dransfeld 42c5e3d2e9 Support spectr{a,um}
SVN revision: 32327
2007-11-03 12:17: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
doursse 616b9623ae Do not use deprecated syntax anymore. Check versions of autoconf
and automake to be sure that the new syntax is valid.

Please report any problem wrt that change


SVN revision: 32032
2007-10-09 20:54:50 +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
Gustavo Sverzut Barbieri 89472b5bfc Fix edje_cc/edje_decc linkage in --as-needed mode
Requested by Pavlov Konstantin.


SVN revision: 31826
2007-09-26 18:22:34 +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
Sebastian Dransfeld 5b85440817 Don't segfault on empty file.
SVN revision: 31721
2007-09-15 08:46:34 +00:00