Commit Graph

51 Commits

Author SHA1 Message Date
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
Mykyta Biliavskyi d18b1afdc2 Update part state in dependence of the cursor position.
Added ability to switch part state on live view, when
cursor located inside the "description" subblock of part.
In case when cursor move out from "description" block,
default state of part will be displayed.
2015-05-27 14:47:40 +09:00
ChunEon Park ae963003bb Revert " Update part state in dependence of the cursor position."
This reverts commit 165c955bee.

it's not intended patch. reverted.
2015-05-24 18:29:38 +09:00
ChunEon Park 165c955bee Update part state in dependence of the cursor position.
Summary:
Added ability to switch part state on live view, when cursor located inside the "description" subblock of part.
In case when cursor move out from "description" block, default state of part will be displayed.

Reviewers: Hermet, Jaehyun_Cho

Projects: #enventor

Differential Revision: https://phab.enlightenment.org/D2499
2015-05-22 22:24:34 +09:00
ChunEon Park c129316a64 lib/edc_parser: fix invalid memory access.
after parser data is freed, cur name thread which is still alive can access to parser data.
to resolve this, thread data has a  parser data pointer.
2015-03-01 18:41:00 +09:00
ChunEon Park cdab9f0a5d clean up code for supporting dllexport in win32. 2015-02-28 15:13:23 +09:00
ChunEon Park 96d4919a6b enable ENVENTOR BETA API in configure. 2015-02-28 14:50:17 +09:00
Michelle Legrand 05a848fddd lib: add export/import for libraries on Windows
Summary: Exporting/Importing Enventor dll for Win32.

Differential Revision: https://phab.enlightenment.org/D2040
2015-02-28 14:33:18 +09:00
ChunEon Park 5e8f437df5 fix all annoying warnings. 2015-02-27 17:26:02 +09:00
Jaehyun Cho fe48ac5af7 edc_parser: Fix to enable inserting templates by live edit.
The problem that template is not inserted by live edit was caused by the wrong
double quotation marks parser.
The double quotation marks are written as "&quote;" in entry markup format and
they are written as "\"" in utf8 format.
Previously, only "&quote;" was used to parse double quotation marks.
Now, "&quote;" is used in entry markup format and "\"" is used in utf8 format
to parse double quotation marks.
2015-02-12 22:42:33 +09:00
Jaehyun Cho af1dc2f23d edc_parser: Fix to show double quotation marks(")
Change the markup for double quotation marks from "\"" to "&quot;".
2015-01-16 17:56:26 +09:00
ChunEon Park caeec62fdb lib/edc_parser: add more candidate popup keywords 2014-12-23 18:24:14 +09:00
Jaehyun Cho da3cff83d9 edc_parser: Support property keywords of "transition".
Summary:
Support property keywords of "transition" in program.
         @feature

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D1792
2014-12-19 15:46:11 +09:00
Jaehyun Cho ea2918130f edc_parser: Support a new candidate keyword "signal".
Summary:
Support a new candidate keyword "signal" in program.
@feature

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D1791
2014-12-19 15:43:50 +09:00
Jaehyun Cho 528389b95c ctxpopup: Support toggle candidate.
Summary:
Support toggle candidate.
         @feature

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D1789
2014-12-19 14:36:49 +09:00
Jaehyun Cho 48e56a4c4c ctxpopup: Change slider candidate style to contain type and entry.
Summary:
Change slider candidate style to contain value type and entry.
@feature

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D1743
2014-12-16 09:08:15 +09:00
Jaehyun Cho f05dca3a22 Change the way of activating candidate ctxpopup.
Summary:
Change the way of activating candidate ctxpopup.
         @feature

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D1729
2014-12-09 11:09:36 +09:00
ChunEon Park 2029a8ae45 lib/edc_parser: add a candidate item, "cubic_bezier"
@feature
2014-12-04 19:31:08 +09:00
Jaehyun Cho 62cf8910ff bin/auto_comp: Support auto_comp and color for keywords in item.
Summary:
Support auto_comp and color for keywords aspect_mode, position, prefer, span, spread, weight.

Reviewers: Hermet

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

@fix
2014-12-03 11:59:22 +09:00
Jaehyun Cho f19f89f777 edc_parser: Fix max value of mouse_events from 1000 to 1
Summary:
Fix max value of mouse_events from 1000 to 1
         @fix

Reviewers: Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D1727
2014-12-03 11:56:25 +09:00
Jaehyun Cho d9b91b0e67 edc_parser: Fix keyword name from "align" to "align:"
Summary:
edc_parser: Fix keyword name from "align" to "align:"

@fix

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D1702
2014-11-26 21:23:29 +09:00