Commit Graph

268 Commits

Author SHA1 Message Date
Avi Levin fa8f786d44 back 2015-03-16 15:55:32 +02:00
Tom Hacohen 374fa09f48 Edje epp: Fix FSF mailing address in the copyright notice.
Fixes T2157.

Thanks to spotrh for suggesting the fix.
2015-03-06 10:40:14 +00:00
jiin.moon 4673dbeb4b edje: Adding the zoom effect of map to edje
Summary:
Support zoom effect of map in edje
@feature

Reviewers: Hermet

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2068
2015-03-02 20:19:01 +09:00
Andrii Kroitor c198746b2d edje: fix windows build
Summary:
"far" and "near" are keywords on windows and can't be used as names of variables.

@fix

Reviewers: cedric, Hermet, raster, perepelits.m

Subscribers: reutskiy.v.v, cedric

Differential Revision: https://phab.enlightenment.org/D2037

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-24 13:46:45 +01:00
perepelits.m c9c659f5c2 edje: add orientation properties for Evas_3D node.
Summary: Adding of two modes of node orientation: by setting of the target name and by setting of the point to look on.

Reviewers: Hermet, raster, cedric

Subscribers: cedric, artem.popov

Differential Revision: https://phab.enlightenment.org/D2014

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-23 15:46:41 +01:00
Davide Andreoli da3f605463 Edcref: fix a mispelled property 2015-02-21 16:33:28 +01:00
perepelits.m bc584cd59b edje: add of material properties.
Summary: Filling of fields: "ambient", "diffuse", "specular", "material", "normal", "shininess" and "shade".

Reviewers: Hermet, raster, cedric

Reviewed By: cedric

Subscribers: cedric, artem.popov

Differential Revision: https://phab.enlightenment.org/D2011

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-20 16:33:21 +01:00
perepelits.m 3dda07dbce edje: add camera properties to edje_cc.
Summary: Filling of "fovy", "aspect", "near" and "far".

@feature

Reviewers: raster, Hermet, cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1988

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-20 11:31:14 +01:00
perepelits.m c0c487ac1a edje: add a block "position" for Evas_3D part (camera, light and node).
Summary: add a block "position" to fill the position field for nodes.

Reviewers: raster, Hermet, cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1977

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-17 16:31:09 +01:00
Daniel Kolesa 2b8bc02e12 edje, eeze: compiler portability (use full ternary operator) 2015-02-13 14:20:32 +00:00
Stefan Schmidt 8cbe288227 edje_cc: Avoid segfault when strcmp NULL items
Martin reported a porblem with one of the SHR project edc files after an upgrade
to 1.13. The segfault itself is easy enough to fix here but I think there might
be other problems with the edc after this segfault is gone. We will see.

Fixes T2106
2015-02-12 15:30:11 +01:00
perepelits.m 566eefd7d0 edje: add 3D models to edje_cc.
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-11 17:27:18 +01:00
perepelits.m 2e3b9ea589 edje: add of model lookups.
Summary:
I have added some methods to edje_cc_out.c to organize model lookups. The same methods already exists for images.
Also, I have removed source_type because now we don't need it in efl_file_set.

@feature

Reviewers: raster, Hermet, cedric

Reviewed By: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1886

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-09 22:03:26 +01:00
Nicolas Aguirre 71dd24a481 edje: epp - fix build of edje file in cas of recursive includes.
Amitesh Singh fixed this issue with Commit
e66e132d9d, but this commit has been reverted
recently, by a commit freeing ressources
(6d0b834a76). It's clear that we are leaking here
if we remove the free, but there is also a valgrind error when this memory is
freed. After trying to debug and understand the code of epp, i can only
propose to remove this free, we will need to include a lot of files before this
memory leak could be visible.

It is also not a real problem, the memory leak only concern the file name passed
in the include directive and epp is started per file anyway. It is unlikely to
create any real life problem and we better spend our time on more pressing matter.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-05 15:59:10 +01:00
Vitalii Vorobiov ac0b42a51a Edje: edje_cc - abort recursive Reference that is made by GROUP parts
Summary:
It is easy to create edj collections that aren't working at all and
edje_cc easily allows user to do that.
For example:
>   Having group A with GROUP part that has group B as source.
>   Having group B with GROUP part that has group A as source.
In this case edje_cc compile source code perfectly, but if user try to load
this edje as layout or use together with edje_edit it will cause unexpacted
and wrong behaviour.

@fix

Reviewers: seoz, Hermet, reutskiy.v.v, cedric

Reviewed By: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1908

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-01-29 21:21:08 +01:00
Vyacheslav Reutskiy 6f7608befd Set the name for table, box items
If box or table items haven't name in the edc we generate a new
name by mask "item_0xFFFFFFFFFFFFFFFF". Item name important for
Edje_Edit.

@fix
2015-01-28 17:10:40 +00:00
Mike Blumenkrantz ae16cb648a edje_cc must error when first provided state description is not "default" 0.0
correctly @fix T1926 without breaking existing apps/syntax
2015-01-26 15:04:19 -05:00
Mike Blumenkrantz a5217c7c53 Revert "edje - edje_cc - fix wrong state lists where default is not the first"
This reverts commit 0cb33a4675.

broke existing edc syntax. SPANK SPANK SPANK!!
2015-01-26 15:04:01 -05:00
Mike Blumenkrantz 0b99f4ee05 Revert "efl - edje_cc - fix default state checks in previous commit"
This reverts commit 82014cad2c.
2015-01-26 15:03:39 -05:00
Mykyta Biliavskyi a695eee37b edje: edje_pick - fix double free eina hash iterator.
Summary:
move freeing iterator into block where it was created.
@fix

Reviewers: raster, Hermet, reutskiy.v.v, cedric

Reviewed By: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1883

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-01-20 12:55:17 +01:00
Carsten Haitzler 82014cad2c efl - edje_cc - fix default state checks in previous commit
this fixes 0cb33a4675
@fix
2015-01-12 18:01:34 +09:00
Carsten Haitzler 0cb33a4675 edje - edje_cc - fix wrong state lists where default is not the first
this fixes T1926
@fix
2015-01-12 15:55:17 +09:00
Vyacheslav Reutskiy ec1afd74fd edje: update the edc reference
Add a list of global signals that edje provide.
2015-01-09 07:51:54 +00:00
Jaeun Choi 145fe108b8 Evas masking: Add edje support
Signed-off-by: Jean-Philippe Andre <jp.andre@samsung.com>
2015-01-07 15:06:02 +09:00
ChunEon Park 382c41e42d edje: support anti_alias option
set anti_alias in part section.
default is enabled.

part { name: "test";
   type: XXX;
   anti_alias: 0;
   ...
}

@feature
2014-12-24 16:29:49 +09:00
Thiep Ha c27b511b28 edje: fix memory leak in epp
Summary:
Variable include_defaults can be allocated and
go out of scope without freeing it.

Reviewers: cedric, seoz, woohyun, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D1784
2014-12-18 09:17:03 +09:00
ChunEon Park 0f5a5fc19e edje/cpplib: fix formatting 2014-12-18 09:09:33 +09:00
Thiep Ha 6d0b834a76 edje: free allocated memory in epp
Summary: fname variable's memory is allocated but not freed.

Reviewers: cedric, seoz, woohyun, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D1785
2014-12-18 09:05:50 +09:00
Nibha Sharma 08d0137987 Logically dead code has been removed.Because width will always be less than HOST_BITS_PER_INT so else branch will never execute.
Reviewers: singh.amitesh, seoz, cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1506
2014-12-16 20:10:25 +09:00
Srivardhan Hebbar 9867fe5863 edje: Removed redundant assignement of rest_args.
Summary:
While going through the code, I found this. Thought this was just a redundant and fixed it.

@fix

Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com>

Reviewers: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1774
2014-12-12 09:14:13 -05:00
Srivardhan Hebbar 9792943910 edje: use realloc instead of malloc and memcpy.
Summary:
Replaced malloc with realloc. Removed free. Added a Error message.

Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com>

Reviewers: cedric

Reviewed By: cedric

Subscribers: devilhorns, cedric

Differential Revision: https://phab.enlightenment.org/D1766

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-12-12 04:22:54 +01:00
Srivardhan Hebbar 3c55dccb25 edge: fix memory leak and removed redundant return statement.
Summary:
The name was freed after exit, so freeing it before and also freeing in a error case. There was a return statement after exit, thought it was redundant and removed.
@fix

Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com>

Reviewers: devilhorns, cedric

Reviewed By: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1758

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-12-10 11:20:06 +01:00
ChunEon Park 959c4cec3e edje/edje_cc: don't limit the bezier cubic minium value to 0.
No need to limit the minimum value to 0.
let user have a choice.
2014-12-09 16:59:58 +09:00
ChunEon Park 0889fde94b edje/edje_cc_handler - updated internal doc. 2014-12-03 21:09:56 +09:00
Daniel Juyung Seo 2b952597c1 edje: Add more description about edc group_name. 2014-11-25 19:30:16 +09:00
Carsten Haitzler ee0eb1336b edje - remove old script_only code that used embryo (not lua)
thjis was deprecated even before efl 1.0 by never removed. lua
replaced it for script_only objects and you havent been able to
compile an edje file with script_only enabled since 1.0, so no point
having the code here.

this cleans up that code and cruft.
2014-11-25 15:09:00 +09:00
Vyacheslav Reutskiy 70f645efe9 edje_cc: update usage text
Add clatification, that for "-l license" and "-a authors" need to
specify files.
2014-11-13 17:10:59 +00:00
Vyacheslav Reutskiy 1654a12773 edje_cc: fix log message for authors write procedure.
@fix
2014-11-13 17:03:03 +00:00
Jaehwan Kim e4a1696a72 Edje: Set the min, max sizes of the image automatically.
Set the min, max sizes of the image automatically,
if it uses image set and there's no setting about min, max sizes.
This idea is originated by Jinsol Park.

@feature
2014-11-10 21:01:19 +09:00
Cedric BAIL 7b2aecff79 edje: use the right variable.
Thanks michelle_lg.
2014-10-31 10:45:28 +01:00
Cedric BAIL 62fd3c0a9b edje: fix use of eina_tmpstr_del after eina_shutdown.
atexit could call eina_tmpstr_del after the shutdown of eina leading
to the access of some random/garbage memory.

@fix
2014-10-30 00:36:49 +01:00
Stefan Schmidt cad8353d62 edje_cc_out: Do not shadow another local variable. 2014-10-29 16:07:39 +01:00
Jaehwan Kim dfdc31cae7 edje_cc_out: update the id of set images.
Before it removes unused images, it updates ids.
For the set images, it should be done.

@fix
2014-10-29 21:06:36 +09:00
Cedric BAIL 7c92d4fa7b edje: correctly destroy reference to removed part.
NOTE: I do believe their is still the possibility that a wrong program
or part may reference a dead part. Would require to check that scenario
better later.
2014-10-20 10:47:41 +02:00
Cedric BAIL 955fd1d712 edje: destroy left over reference when removing a part.
NOTE: This patch is still not complete, their is more reference, but I couldn't
find all of them yet.
2014-10-20 01:28:12 +02:00
Cedric BAIL 9d69033411 edje: actually reuse the right Part_Lookup and not a destroyed one. 2014-10-20 01:28:12 +02:00
Amitesh Singh cbb42957b7 edje_cc: fix memory leak.
Summary: Free cp->original before freeing cp.

@fix

Reviewers: cedric, seoz

Subscribers: cedric, seoz

Differential Revision: https://phab.enlightenment.org/D1496

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-09-30 17:36:41 +02:00
Cedric BAIL 0a6f26a106 edje: fix borked edje_external.
Someone fixed a CID without looking of the full use path a data, resulting
in a value being used after free and stored in edje file. Leading to a garbage
string with no meaning for those poor externals.
2014-09-23 18:05:29 +02:00
Amitesh Singh e66e132d9d Revert "edje: prevent resource leak."
Summary:
This reverts commit f6eb1f17a1.

This will result into failure of edc compilation with recursive use of include.

Reviewers: cedric, raster, seoz

Reviewed By: seoz

Subscribers: chinmaya061, cedric, seoz

Differential Revision: https://phab.enlightenment.org/D1475

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-09-23 11:08:43 +02:00
Amitesh Singh 8ebf5d49b2 epp: fix memory leak.
Reviewers: cedric, seoz

Subscribers: cedric, seoz

Differential Revision: https://phab.enlightenment.org/D1470

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-09-22 14:59:27 +02:00