Cedric BAIL
e8ec9f6c50
edje: update hints after loading GROUP.
...
SVN revision: 60026
2011-06-07 07:43:32 +00:00
Cedric BAIL
993b27c50f
edje: set parent earlier.
...
SVN revision: 59996
2011-06-06 17:29:07 +00:00
Cedric BAIL
9c22d6a9e9
edje: parent link should be properly set before instantiating sub object.
...
SVN revision: 59989
2011-06-06 13:10:54 +00:00
Carsten Haitzler
66aef5074f
add use of freeze+thaw for improvement in out-there scenarios.
...
SVN revision: 59730
2011-05-27 10:32:53 +00:00
Carsten Haitzler
5829d373c9
doxy -> .h
...
SVN revision: 58478
2011-04-08 07:45:46 +00:00
Brett Nash
6894af9d5e
Edje: (trivial) Put the clipper/evas pointer in the base structure.
...
I say trivial in the sense it has no functional changes, however it's a large
patch. Recommendation from Gustavo.
SVN revision: 58080
2011-03-25 03:21:07 +00:00
Cedric BAIL
d0810de637
edje: add PROXY part.
...
example:
collections {
group {
name: "main";
parts {
part {
name: "sub1";
type: GROUP;
source: "sub1";
description {
rel1.relative: 0.5 0.5;
rel2.relative: 1.0 1.0;
}
}
part {
name: "pro2";
type: PROXY;
description {
rel1.relative: 0.0 0.5;
rel2.relative: 0.5 1.0;
source: "sub1";
color: 255 0 0 128;
map {
on: 1;
smooth: 1;
rotation {
z: 30;
}
}
}
}
}
}
group {
name: "sub1";
parts {
part {
name: "rect";
type: RECT;
description {
rel1.relative: 0.0 0.0;
rel2.relative: 0.5 0.5;
color: 255 0 0 255;
map {
on: 1;
smooth: 1;
rotation {
z: -30;
}
}
}
}
part {
name: "pro1";
type: PROXY;
description {
rel1.relative: 0.5 0.0;
rel2.relative: 1.0 0.7;
color: 128 128 0 128;
source: rect;
}
}
}
}
}
SVN revision: 57694
2011-03-11 17:46:29 +00:00
Cedric BAIL
c54cc95085
edje: fix signal comming from box/table part.
...
Thanks to the report by Jonathan "Watchwolf" Atton.
SVN revision: 57299
2011-02-24 14:41:08 +00:00
Tom Hacohen
5e33a75553
Edje: Added mirrored mode. Mirrored mode is used for UI-mirroring. It lets you mirror edje objects automatically (it also sends signals to the .edc code so you can do tweaks if you want), no need to create a special theme just for rtl layouts.
...
This is controlled by the two added API functions.
The changes in Elementary that utilize these functions will be committed soon.
SVN revision: 56635
2011-02-01 13:26:49 +00:00
Vincent Torri
c69cd7ec27
use size_t when it does not hurt
...
SVN revision: 55548
2010-12-14 06:19:30 +00:00
Iván Briano
014d9e424c
NULL out focused part when clearing the remnants of a gone Edje
...
SVN revision: 55330
2010-12-06 13:50:51 +00:00
Carsten Haitzler
4a55d2bda4
if we aren't looking for a glob... why do we go alloc a possible
...
massive pattern match thing.. if you have a LOOOOOOOOOOT of collection
entries... that can be a big set.
SVN revision: 55316
2010-12-06 07:49:00 +00:00
Carsten Haitzler
7c835c0efb
aaaah more bad cedric ... eh? :)
...
SVN revision: 53794
2010-10-23 03:51:12 +00:00
Cedric BAIL
26ba1c03e3
* edje: fix signal comming from aliased part.
...
I needed to bump minor file format version, but it will only
change behaviour for people using alias for part and they
couldn't use the signal emitted by them.
SVN revision: 53305
2010-10-12 13:26:18 +00:00
Gustavo Sverzut Barbieri
7ac13f931f
better log.
...
* lower case domain names;
* binaries use their own color (EDJE_CC_DEFAULT_LOG_COLOR)
* log messages do not take multiple lines, it's annoying. The colors
should call your attention already.
* the ever annoying "did you forgot fixed: 1 1;" message that used to
consume 3 lines is now bit more descriptive and uses a single line.
SVN revision: 53178
2010-10-08 00:24:22 +00:00
Gustavo Sverzut Barbieri
abc87fd449
Adding a transition layout animation for edje box.
...
Perform an animation when changing the layout from an edje box.
By: Otavio Pontes <otavio@profusion.mobi>
-------
Sample EDC:
{{{
collections {
group {
name: "main";
min: 500 500;
max: 500 500;
parts {
part {
name: "bg";
type: RECT;
description {
color: 255 255 255 255;
rel1 { relative: 0.0 0.0; }
rel2 { relative: 1.0 1.0; }
}
}
part {
name: "box1";
type: BOX;
description {
state: "default" 0.0;
box {
layout: vertical;
padding: 0 0;
}
rel1 {
relative: 0.0 0.0;
}
rel2 {
relative: 1.0 1.0;
}
}
description {
state: "default" 0.1;
inherit: "default" 0.0;
box {
padding: 10 10;
layout: horizontal;
}
}
description {
state: "default" 0.2;
inherit: "default" 0.0;
box {
layout: vertical;
}
rel1 {
relative: 0.0 0.0;
offset: 100 100;
}
rel2 {
relative: 1.0 1.0;
}
}
box {
items {
item {
name: "rect1";
type: GROUP;
source: "grp_rect1";
weight: 1.0 1.0;
align: -1 -1;
}
item {
name: "rect2";
type: GROUP;
source: "grp_rect2";
weight: 1.0 1.0;
align: -1 -1;
}
}
}
}
}
programs {
program {
name: "change_layout";
signal: "mouse,clicked,1";
source: "box1";
action: STATE_SET "default" 0.1;
target: "box1";
transition: LINEAR 5.0;
after: "change_back";
}
program {
name: "change_back";
action: STATE_SET "default" 0.2;
target: "box1";
transition: LINEAR 5.0;
}
}
}
group {
name: "grp_rect1";
parts {
part {
name: "r1";
type: RECT;
description {
state: "default" 0.0;
color: 255 0 0 255;
rel1 { relative: 0.0 0.0; }
rel2 { relative: 1.0 1.0; }
}
description {
state: "default" 0.1;
inherit: "default" 0.0;
color: 255 0 0 255;
}
}
}
}
group {
name: "grp_rect2";
parts {
part {
name: "r2";
type: RECT;
description {
state: "default" 0.0;
color: 0 255 0 255;
rel1 { relative: 0.0 0.0; }
rel2 { relative: 1.0 1.0; }
}
description {
state: "default" 0.1;
color: 0 0 255 255;
}
}
}
}
}
}}}
SVN revision: 52871
2010-09-29 00:28:54 +00:00
Vincent Torri
1e1bb3b6a4
Put everything in edje_private. It should fix a compilation
...
bug on Windows
SVN revision: 52736
2010-09-25 17:10:33 +00:00
Carsten Haitzler
af2651748c
int -> enum.
...
SVN revision: 52589
2010-09-22 13:27:09 +00:00
Cedric BAIL
e01c8dacc2
* edje: prevent segv due to dead relative part.
...
SVN revision: 52347
2010-09-16 15:49:56 +00:00
Lucas De Marchi
77d42e9cca
Simplify code by removing unneeded auxiliary variable
...
SVN revision: 52135
2010-09-10 11:25:26 +00:00
Lucas De Marchi
bd12ce52f7
Refactor function to return as early as possible
...
Instead of a looooooong 'if', return on the contrary.
SVN revision: 52134
2010-09-10 11:25:15 +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
Lucas De Marchi
5a8a8c9014
Convert (hopefully) all comparisons to NULL
...
Apply badzero.cocci, badnull.coci and badnull2.cocci
This should convert all cases where there's a comparison to NULL to simpler
forms. This patch applies the following transformations:
code before patch ||code after patch
===============================================================
return a == NULL; return !a;
return a != NULL; return !!a;
func(a == NULL); func(!a);
func(a != NULL); func(!!a);
b = a == NULL; b = !a;
b = a != NULL; b = !!a;
b = a == NULL ? c : d; b = !a ? c : d;
b = a != NULL ? c : d; b = a ? c : d;
other cases:
a == NULL !a
a != NULL a
SVN revision: 51487
2010-08-21 13:52:25 +00:00
Carsten Haitzler
480666910a
re-enable. valgrind happy now. hrrrm.
...
/ /
(o) (o)
..
~-~\.
SVN revision: 51110
2010-08-14 10:28:57 +00:00
Carsten Haitzler
966810eedb
ceeeeeeeeeeeeeeeeedric! :)
...
SVN revision: 51108
2010-08-14 04:03:33 +00:00
Cedric BAIL
c1436aac91
* edje: fix memory leak.
...
SVN revision: 51046
2010-08-12 15:05:56 +00:00
Cedric BAIL
2623367732
* edje: fix some memleak issue.
...
SVN revision: 51033
2010-08-12 12:58:54 +00:00
Cedric BAIL
7d69e96bfe
* edje: use mempool for Edje_Part and Edje_Part_Description_*.
...
SVN revision: 50944
2010-08-09 21:08:08 +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
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
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
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
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
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
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
c2b8feda9e
* Edje: deprecate Gradient part by displaying an error message
...
on edje file load.
WARNING: THIS CODE WILL BE GONE IF NO ONE IS WILLING TO TAKE
MAINTAINER SHIP OF IT.
SVN revision: 49946
2010-06-30 09:49:15 +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
5da985c981
* edje: add an cache for group exist test.
...
SVN revision: 49928
2010-06-28 17:18:47 +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
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
Carsten Haitzler
2049cf563c
leake! fix!
...
SVN revision: 49445
2010-06-04 06:45:46 +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
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
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
Carsten Haitzler
12012ef38a
ok tested - it. new lua disabled for now (not ready). old lua still there.
...
SVN revision: 47783
2010-04-06 11:32:09 +00:00
Carsten Haitzler
8babebf48e
an ongoing lua cleanup. existing lua is there and works for the most part.
...
but it could be much much much cleaner/better so i started a minimalist redo.
it's temporarily enabled right now. will disable soon to do in the background.
SVN revision: 47782
2010-04-06 11:26:32 +00:00
Carsten Haitzler
77a55c3fd8
aaah well... 1. fix segv with edje_match stuff is deep child cleans up
...
pattersn - ref them.
2. edje lua... beating it into shape. slowly bit by bit.
SVN revision: 47685
2010-04-02 11:05:53 +00:00