summaryrefslogtreecommitdiff
path: root/src/bin/edje (follow)
AgeCommit message (Collapse)Author
2015-10-12edje: use eina_environment_tmp_get() instead of the TMPDIR env variableVincent Torri
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-10-12edje_cc: fix segfault when a program attempts to play a non-registered soundJean Guyomarc'h
Summary: When an edje program attempted to play a sound that was not registered (e.g. in a sounds{} block), edje_cc would segfault instead of throwing an error. @fix Reviewers: cedric Reviewed By: cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D3171 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-10-09Edje cc handlers: Fix memory leak and possible crash.Tom Hacohen
Due to a misplaced semicolon, EINA_LIST_FREE was doing nothing and only the last part was freed if there was one, and probably a crash if there wasn't. This shows again that having statements without {} is dangerous. We need to force {} and add a lint rule, or at the very least, add a rule to put the ; in a new line (like clang warns about by default anyway). @fix
2015-10-07EDC Doc: Some fixesJean-Philippe Andre
We need to move this doc to the wiki and complete it :)
2015-10-02edje_cc: Fix inheritance of "no_render" flagJean-Philippe Andre
@fix
2015-10-02edje_cc: Add "render" keyword for lazEDCJean-Philippe Andre
Since @zmike also thought this could be useful, let's add it.
2015-10-01edje_cc: Add "norender;" as lazEDC for "no_render: 1;"Jean-Philippe Andre
2015-10-01edje_cc: Allow PROXY as clipper (clip_to and desc.clip_to)Jean-Philippe Andre
This arbitrary limitation can now be lifted since masking is well supported (ie. clip_to can point to an IMAGE rather than a RECT). @feature
2015-10-01edje_cc: Check default state as wellJean-Philippe Andre
Strangely only the other states were checked for errors. Errors include: - no name for state, or "description with missing state" - invalid clip_to Also improve the error message a bit
2015-10-01Edje: Add filter support to SNAPSHOT partsJean-Philippe Andre
This makes SNAPSHOT a part type on it own, combining the common and filter subtypes. This means it is now possible to set an evas filter on a SNAPSHOT object, just like for TEXT, IMAGE and PROXY. @feature
2015-10-01Edje: Add support for filters to PROXY partsJean-Philippe Andre
Same syntax as for IMAGE and TEXT: description.filter
2015-10-01Edje: Fix filters for IMAGE parts inherited statesJean-Philippe Andre
2015-10-01Edje: Move internal struct filter around (refactor)Jean-Philippe Andre
2015-10-01edje_cc: Fix TEXT part validation for aliased partsJean-Philippe Andre
Not 100% sure of this fix but it "works". This is just compile-time safety checking code after all, so it won't impact any existing application. This fixes commit d4444bf7a0e368097bec555. Tested with empc. Thanks @zmike for the report and test case.
2015-09-21efl - edje_cc - fix double close of embryo script fd's to tmp filesCarsten Haitzler (Rasterman)
@fix thanks to 김낙경 <nakkyong.kim@samsung.com> for pointing this out. indeed fclose() closes the fd adopted by fdopen(). it doesn't dup it. so we double-closed. it seems this never caused an issue until now. this should fix it.
2015-09-08Edje_cc: check value for text.source attribute.Mykyta Biliavskyi
Summary: Add additional check for description.text.source and description.text.text_source attributes in TEXT part. For cases when as source uses non TEXT/TEXTBLOCK part serialization process should be stopped. This will cause segmentation fault on runtime. (see edje_text.c line 251) Reviewers: Hermet, raster, cedric, jpeg Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D3026 Signed-off-by: Jean-Philippe Andre <jp.andre@samsung.com>
2015-09-04edje_cc: remove executable bit from source fileStefan Schmidt
2015-08-26edje_cc_out: Fix edje_cc compile error with script on Windows.Jaehyun Cho
On Windows, PATH_MAX is 260 and PATH_MAX is used as string buffer size in edje_cc compile. This causes edje_cc compile error when the edc file contains "script" keyword and the length of file paths is relatively long. To resolve this problem, change the string buffer size in edje_cc compile. @fix
2015-08-25small typo in docs, mounse is mouseThanatermesis
2015-08-06edje: add a SNAPSHOT part in EDC.Cedric BAIL
2015-08-04Evas canvas3d: Move evas 3d types to evas_types.eotOleksandr Shcherbina
Summary: Move evas_canvas3d types from Evas_Eo.h to evas_types.eot Change enum constatnt for vertex_arrtib, material_attrib, blend_func Correct namespace for Evas.Real type Reviewers: cedric, tasn Reviewed By: tasn Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2734
2015-07-28edje_cc: fix dereference before null checkjiin.moon
Summary: Fix Coverity issue which reports a dereference before null check. The enc_info can not has NULL point because _edje_multisense_encode api calls exit() in case of failure Reviewers: Hermet, Jaehyun, cedric Reviewed By: cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2794 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-07-03Edje_Player: disable code unused on Windows.Vincent Torri
2015-07-01Edje: Embed verbatim scripts for Efl.Gfx.FiltersJean-Philippe Andre
This is now like the other embedded scripts, where a verbatim string is parsed. The syntax is now: filters { filter { name: "filter0"; file: "filter.lua"; } filter { name: "filter1"; script { blend {} } } filter.file: "file.lua"; // name is "file.lua" } Thanks @raster for the quick review.
2015-06-30doc: Fixup EDC documentation about filters & examplesJean-Philippe Andre
2015-06-30Edje: Replace index() by strchr()Jean-Philippe Andre
Thanks vtorri for pointing out the build break on windows and that index() is deprecated.
2015-06-30Edje: Add proper filters section in the EDJ fileJean-Philippe Andre
Don't [ab]use the file data section for filter scripts, instead create a proper section for them. The rest of the behaviour stays the same.
2015-06-30doc: EDC reference: Add specific doc for group.dataJean-Philippe Andre
Group.data does not support "file", only "item". This doc explains that. Should Group.Data support file instead?
2015-06-30Edje: Use array instead of hash for filters dataJean-Philippe Andre
Yeah that was totally overkill and pure laziness on my side. Despite having the EO API for the filters still in beta, I want to the EDC API and EDJ binary formats to stay compatible, so let's get it right before the release :)
2015-06-25edje_cc: Fix dereference before null checkChris Michael
Summary: Fix Coverity CID1302700 which reports a dereference before null check. Basically, it is safe to call free() with a possible NULL value so we can remove the 'if' check here. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-06-25edje_cc: Fix dereference null return valueChris Michael
Summary: Fix Coverity CID1308232 which reports that we may be passing NULL to strcmp here as the function _parse_param_get May return NULL. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-06-25edje_cc: Fix formattingChris Michael
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-06-25edje: add "mask_flags" instruction for "part" blockJee-Yong Um
Summary: Elementary widgets dealing with Evas Events usually mask event_flags with EVAS_EVENT_FLAG_ON_HOLD, to show that this event is already handled. However, widget like Elm_Button, it does not handle EVAS_CALLBACK_MOUSE_DOWN directly, but it handles Edje_Signal instead, so there's no chance to mask event_flags. Developers can block event propagation by putting rectangle the very last part of EDC, but this instruction can help the case making elementary widget with only Edje_Signal handling. This is not required essentially, so please check the necessity of this function. Reviewers: Hermet, cedric Reviewed By: cedric Subscribers: cedric, Hermet Differential Revision: https://phab.enlightenment.org/D2764 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-06-25Edje & evas filters: Add extra data from EDC to Lua programJean-Philippe Andre
This also supports color classes (really rough implementation for now, but the API should remain stable). @feature
2015-06-25Edje: Move filter desc to common descJean-Philippe Andre
This will be shared between IMAGE and TEXT. In the future it can also be shared with PROXY and TEXTBLOCK.
2015-06-25Edje/evas filters: Use EDJ data sections to store filters codeJean-Philippe Andre
Use the file data {item, file} block to embed filters code. It can become especially useful to keep the filters as separated Lua files, that will be embedded in the final edj file. @feature
2015-06-25Edje/evas filters: Add filter.source supportJean-Philippe Andre
This should preserve ABI stability with earlier versions of edje_cc while still providing more advanced control over proxy bindings for evas filters from EDC. Also fix proxy binding for filters. @feature
2015-06-25Edje/evas filters: Quick renaming of evas filters related stuffJean-Philippe Andre
2015-06-22edje: add support to control the transition time of edje animation globally.jiin.moon
Summary: Add the transition scale flag and the transtion scale value. This flag can be change using "transition_scale_enable" in edje program. If flag is true, the transition scale value affect the transition speed of edje The transition scale value can be change by elm_config. @feature Test Plan: elementary_config Reviewers: Hermet, cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2287 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-06-17evas: change interface evas_3d to evas_canvas3dOleksandr Shcherbina
Summary: Regard to https://phab.enlightenment.org/T2479 it is need for right generation Eolian files Reviewers: cedric Subscribers: cedric, tasn Differential Revision: https://phab.enlightenment.org/D2711 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-06-16Edje: Add doc in edcref for description.clip_toJean-Philippe Andre
Thanks Dave for pointing this out.
2015-06-15Evas: Add "no-render" flag for proxy sources & clippersJean-Philippe Andre
Those objects should never be rendered on the canvas, even if they are visible. On the other hand, they need to be rendered in mask or proxy surfaces. note: this patch includes some extra whitespaces changes :( @feature
2015-06-15Edje: Add clip as a property of a part descriptionJean-Philippe Andre
Since masking, for performance and themeing reasons, it becomes interesting to be able to switch clippers on the fly. In particular, switching from an IMAGE mask to a standard RECT clipper can save a lot of power when masking is not required. This new flag "description.clip_to" will behave a bit like a mix of rel.to and visible: - It points to a part by name, just like part.clip_to. This will override the clipper set by the part, or override the default clipper. - Like "visible", it can not be interpolated between two values, so it will switch only at the end of a transition. - By default there is no clip override, which means Edje will fallback to the part's clipper, if any, or the base (group's) clipper. NOTE: - Since a clipper that does not clip anything becomes a standard object, it is visible and rendered. This will in 99.999% cases not be the intended behaviour. Currently we can simply use a transparent RECT in order to always have something clipped by the clipper, but this is a hack and this will trigger rendering of masks in their surfaces even when they are not actually used. Ideally, there should be a flag indicating to Edje & Evas that an object should be considered a clipper in all situations, and never be rendered on screen. TODO: - Support Edje Edit - Add Embryo & Lua functions - Add support in edje_convert - Add Edje/Evas flag to mark objects as "no_render" @feature
2015-06-11edje: Remove unused variableChris Michael
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-06-11edje: add po file support in edc translation.katpavalli
Summary: Implementation to support .po files in edc for translation Test Plan: Test Code to test this implementation is done as part of efl/src/examples/edje/edje-text.c and efl/src/examples/edje/text.edc edje_cc -md . text.edc && gcc -o edje-text edje-text.c `pkg-config --libs --cflags ecore-evas edje evas ecore eo` ./edje-text 1) Click On the text "Click here" The language gets changed. Reviewers: shilpasingh, cedric Reviewed By: shilpasingh, cedric Subscribers: cedric, rajeshps, govi, poornima.srinivasan Differential Revision: https://phab.enlightenment.org/D2573 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-05-29edje: edje_cc_parse should check pair of parens.Nak-Gyeong Kim
Summary: Fix parens bug. ((x + y)-z) is OK. ((x + y) - z) is NOT OK. This patch can cover this case. @fix Signed-off-by: Nak-Gyeong Kim <nakkyong.kim@samsung.com> Test Plan: Test in edc. ((x + y)-z) is OK. ((x + y) - z) is NOT OK. This patch can cover this case. If parens are not paired, it will notify. Reviewers: raster, Hermet, cedric Subscribers: kimcinoo, jaehwan Differential Revision: https://phab.enlightenment.org/D2554 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-05-27edje: fix memory leak detected by prevent static analyser.jiin.moon
Summary: Modified codes according to prevent result The im will be freed by data_image_preload_done api. But if image load error happen, never call that api @fix Test Plan: prevent tool Reviewers: Jaehyun, Hermet, cedric Reviewed By: cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2565 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-05-19edje: switch Evas_3D color to use Edje_Color.perepelits.m
Summary: Changes float on uchar as we do in other place for color component Reviewers: raster, Hermet, cedric Reviewed By: cedric Subscribers: cedric, artem.popov Differential Revision: https://phab.enlightenment.org/D2528 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-05-14edje: fix back edje_watch.Cedric BAIL
@fix Thanks Thanatermesis for reporting the issue.
2015-05-14edje: support translation on static strings in edc.katpavalli
Summary: Internationalisation of the static text specified as part of the edc is implemented. Problem: Static text when specified in the edc, remains unchanged when the system language is changed. Solution: Language support is provided even for the static strings in the edc. Test Plan: Test code to test this implementation is done as part of efl/src/examples/edje/edje-text.c and efl/src/examples/edje/text.edc Compile the code with the below command edje_cc -md <dir path>/efl/src/examples/edje/ text.edc && gcc -o edje-text edje-text.c `pkg-config --libs --cflags ecore-evas edje evas ecore` ./edje-text 1) change the language of the system using the command export LANGUAGE=hi ./edje.text Not the text Loading gets displayed in hindi language 2) change the language of the system using the command export LANGUAGE=ta ./edje.text Not the text Loading gets displayed in tamil language 3) change the language of the system using the command export LANGUAGE=en ./edje.text Not the text Loading gets displayed in english language As the number of .mo files in the /edje folder can be increased, those many languages can be supported Reviewers: cedric, shilpasingh Reviewed By: shilpasingh Subscribers: cedric, rajeshps, govi, poornima.srinivasan Differential Revision: https://phab.enlightenment.org/D2336 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>