Commit Graph

71 Commits

Author SHA1 Message Date
Hermet Park 22fc5a96e5 edc_parser: fix wrong value.
base_scale shouldn't be zero.
2016-05-01 22:07:42 +09:00
Hermet Park d38facff7f edc_editor: fix a broken ctxpopup image relay behavior.
Next image word selection was broken.
so, the selection was a little twisted.
It seems something has been changed in entry.
Anyhow, it's fixed in enventor side. :(

@fix T3258
2016-04-26 23:41:40 +09:00
Taehyub Kim 3b038768f5 template: improve adding template of image resource do not duplicate
Summary:
when we insert image template or live view item,
the template code of image resource will be duplicated.
so, I added the code checking template image resource not to be duplicate

Test Plan:
1. launch enventor
2. add image part twice using ctrl + t or live view item
3. see the images block has an ENVENTOR_EMBEDDED_LOGO.png

Reviewers: Hermet, Jaehyun_Cho, NikaWhite

Differential Revision: https://phab.enlightenment.org/D3851
2016-04-01 16:33:34 +09:00
Hermet Park 55987e5774 edc_parser: fix one more memory leak. 2016-03-07 23:26:00 +09:00
Hermet Park f760fd4144 edc_parser: go away memory leaks! 2016-03-07 23:22:22 +09:00
Hermet Park 442c22e28a edc_parser: remove memory leak. 2016-03-07 22:30:16 +09:00
Hermet Park ea3d989d70 edc_parser: remove unnecessary code. 2016-03-07 21:50:30 +09:00
Hermet Park 665bcb9b55 edc_parser: fix typo. 2016-03-07 20:47:24 +09:00
Hermet Park 6280b1e680 Revert "edc_parser: check null for code safety"
This reverts commit ed5c01209d.
2016-03-07 20:45:11 +09:00
taehyub ed5c01209d edc_parser: check null for code safety
Summary:
check null for code safety

@fix

Reviewers: Jaehyun_Cho, NikaWhite, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D3776
2016-03-07 20:44:23 +09:00
Hermet Park 6d2b4a01b4 remove unused compile warnings. 2016-03-05 11:27:24 +09:00
Mykyta Biliavskyi 01431db641 Parser: recognize keyword with context.
Uses the autocomplete context parser for recognizing keywords
with the same names in different contexts. For example:
the attributes "min" and "max" for a description context
should be integer values in range from 0 to 1000; but for a
"text" context those attributes should be boolean.

Curently add recognition for a "min" and "max" attributes in the "text" content.

@fix T2712
2016-02-29 18:12:19 +09:00
Mykyta Biliavskyi 726cd500a6 Edc parser: fix memory leak.
Function elm_entry_markup_to_utf8 returned malloc'ed buffer and
it should be freed.
2016-02-19 10:09:27 +09:00
Yongheon, Shin 22579bec50 Add keyword feature for base_scale
Summary: When selecting with double-click on base_scale variable, add keyword

Reviewers: Jaehyun_Cho

Subscribers: Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D3633
2016-02-02 18:09:44 +09:00
taehyub 24e012812f edc_parser: move update cb into bracket_thread_end
Summary:
move update cb into bracket_thread_end.
it can cause runtime error when the bracket thread is canceled.

@fix

Reviewers: Hermet, Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D3636
2016-02-02 17:39:06 +09:00
Hermet Park e381643026 edc_parser: fix build break.
it's a just typo.
2016-01-29 16:10:51 +09:00
Hermet Park 49ee620131 Fix template code inserting.
This is a side effect of this commit e984d2bb4e

@T3107
2016-01-28 19:36:21 +09:00
Jaehyun Cho e984d2bb4e template: Fix incorrect template insertion inside LazEDC block
Since LazEDC block types were not recognized for template insertion,
inserted template type inside LazEDC block was not correct.
(e.g. inside desc { })
Now LazEDC block types are considered for template insertion by Ctrl+T.
2016-01-27 15:14:27 +09:00
Hermet Park 14daddac74 code refactoring.
revise bracket logics which was newly introduced.
2016-01-27 14:27:49 +09:00
taehyub ed7e655add edc_editor: add pair of bracket highlighting feature
Summary: when mouse cursor on bracket which are '{', '}', the bracket is highlighted with its pair.

Reviewers: Jaehyun_Cho, Hermet

Reviewed By: Hermet

Subscribers: herb, NikaWhite, Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D3588
2016-01-27 13:01:53 +09:00
Jaehyun Cho 0c15bde219 edc_parser: Fix to allocate correct size of memory for string.
Allocate one more char memory for the last null character of the string.
This commit fixes the commit 335575eb84.
2016-01-22 21:21:12 +09:00
Jaehyun Cho 521d12f4cb edc_parser: Fix array count of aspect_preference. 2016-01-21 19:00:31 +09:00
Jaehyun Cho 5c170bc5a4 edc_parser: Fix to remove unsupported in EDC.
NONE for program action is removed since it is not supported in EDC.
2016-01-21 18:47:57 +09:00
Hermet Park ad1dfd99c4 refactoring code.
rename an internal function name.
previous one was so ambigious.
2016-01-08 12:03:39 +09:00
Hermet Park ecff37f1b5 remove redundant code. 2016-01-08 11:48:12 +09:00
Jaehyun Cho 5120c20d84 Parse macro only if EDC is modified and group name is searched.
Previously, macro was parsed when EDC was changed.
This caused performance issue.
Now, macro is parsed only if EDC is changed and group name is searched.
2016-01-06 13:28:54 +09:00
Jaehyun Cho 335575eb84 Support to use macro as a group name.
Previously, group name was recognized with double quotation marks("").
This makes defined macro cannot be used as a group name.
Now, defined macro is parsed and listed. Macro group name is recognized
from the defined macro list.
2016-01-04 20:23:36 +09:00
Hermet Park 9ddf6e49c3 fix the part flickering issue.
This problem comes out with a third scenario,
which is, if user uses a ctxpopup slider to change the attributions
of the more than first part state.

In this case, the edj will be reloaded if the attributions are changed.
But still the cursor would be inside of the state,
so the state preview will be switched to the default,
then it turns out a sort of a flickering issue.

@T2969
2016-01-01 23:39:11 +09:00
Mykyta Biliavskyi ec8e664873 Edc parser: improve cur_state_thread_blocking function.
Added recognize "parts" block. This make easyest to
understand cases like this: keyword "image" is part type name or
it is image description.

@fix T2964
2015-12-23 17:01:57 +09:00
Mykyta Biliavskyi 47134c410d Parser: rework parser_collections_block_pos_get function.
Make parser recognize the resource blocks (images, styles, etc)
This function uses for getting the insert position of the resource
block.

@fix T2740
2015-12-23 11:23:37 +09:00
Jean-Philippe Andre c998307b9b add SOURCE aspect_preference 2015-10-29 14:44:56 +09:00
Mykyta Biliavskyi 4ddc93b231 Candidates list: add attributes rel*.to_x/y.
@fix T2500
2015-09-22 15:46:02 +00:00
Jaehyun Cho 0600579464 edc_parser: Fix compile error. 2015-09-17 16:04:30 +09:00
Mykyta Biliavskyi e011f68951 Parser: enhance quality of parsing the part state names.
Summary:
added ability parsing different cases of usage
"description" and "desc" keywords.
Now support descriptions without names - those states
will be defined as "default". For keyword "description"
attribute "state" non mandatory.
Examples of support syntax:
 desc {"state_name";}
 desc {image.normal: "img";}  <- "default" 0.0;
 description {state: "state_name"; ...}
 description {"state_name";...}
 description {image.normal: "img";} <- "default" 0.0;

@fix T2680

Reviewers: Hermet

Maniphest Tasks: T2680

Differential Revision: https://phab.enlightenment.org/D2969
2015-09-17 14:19:01 +00:00
Mykyta Biliavskyi 9647ca44d2 edc_parser: recognize keyword "offset" as changeable value.
Summary:
Keyword "offset" added into list of arguments.
This attribute is represented by two spinners with range
-100..100. "offset" is used inside "relative" and "fill"
blocks

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D3027
2015-09-14 14:22:25 +00:00
Mykyta Biliavskyi cd062d9564 Edc parser: recognize description block without state name.
Summary:
In cases when keyword "description" is used without
state name(it mean that state will have "default" 0.0 name) -
parser is fail to recognize correct name of that description and
all others that placed below.
This make impossible to switching between groups and part descriptions,
that placed below description without state name.
@fix

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D2954
2015-08-20 11:19:15 +09:00
Jaehyun Cho 0aef6bd397 templates: Change image file names. 2015-08-12 11:20:37 +09:00
ChunEon Park 115bad9bb5 edc_parser: generate default time for transition 2015-07-02 21:47:29 +09:00
ChunEon Park 8678084b8f edc_parser: remove the generated code '0.0' at the end of state.
0.0 is generally unused but annoying to users.
2015-07-02 21:42:18 +09:00
ChunEon Park b654fee78a ctxpopup: remove a space in the generated code just around ';' 2015-07-02 21:39:15 +09:00
ChunEon Park 22f990960f edc_parser: remove redundant code. 2015-07-01 10:03:06 +09:00
ChunEon Park e990da6de2 update for more lazy edc style. 2015-06-30 20:23:29 +09:00
ChunEon Park 8c8cca1495 edc_parser: support proxy, textblock 2015-06-30 16:15:54 +09:00
ChunEon Park 7521f45a1e edc_parser: support new syntax keywords.
desc, swallow, group, spacer, text, image, rect..
2015-06-30 15:50:25 +09:00
ChunEon Park 11513e0568 remove unused functions. 2015-06-30 15:26:07 +09:00
ChunEon Park 3a081788c8 edc_parser: code refactoring.
1. rename internal variable.
2. remove static string length variables.
2015-06-30 15:23:11 +09:00
Mykyta Biliavskyi c7cd1ee563 Fix -Wint-to-pointer-cast compiler warning in ctxpopup.c 2015-06-24 13:21:34 +09:00
ChunEon Park 55b3a1c4b1 --compiler warning.
shit, avoid unused compiler warning by trick.
2015-06-23 08:25:29 +09:00
Mykyta Biliavskyi ee415fa135 Parser: recognize comments in code.
Summary:
For cur_state_get in parser module and context_lexem_get in
auto complete module add abiliti to recognize commented lines.

fix T2482

Reviewers: Hermet, Jaehyun, jpeg

Reviewed By: jpeg

Maniphest Tasks: T2482

Differential Revision: https://phab.enlightenment.org/D2677
2015-06-16 13:38:06 +09:00
Mykyta Biliavskyi 31d07e5590 Edc parser: correct detection of current description.
Summary:
Added check, if the entry cursor is go out of the description
block, will be returned NULL description_name.

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D2681
2015-06-15 14:09:42 +09:00