Commit Graph

876 Commits

Author SHA1 Message Date
ChunEon Park d5f66885ac indent: free memory correctly. 2015-07-10 23:46:24 +09:00
ChunEon Park 8ebd0d2dbf edc_editor: code refactoring.
remove direct variable access but use getter.
2015-07-10 20:46:17 +09:00
ChunEon Park fedcfd3149 text_setting: one more here code refactoring.
err is enough to use.
2015-07-10 20:13:12 +09:00
ChunEon Park c25eb038b3 text_setting: code refactoring.
err is enough to use.
2015-07-10 20:10:37 +09:00
ChunEon Park 2c4a407e65 renamed color.src -> edc.src
Reeame the color source file more specifically.
2015-07-10 20:06:49 +09:00
ChunEon Park 74ff6efbd7 syntax_color: reorder the syntax color.
apply comments color prior to tags.
2015-07-09 22:48:16 +09:00
ChunEon Park d3cfd41e14 syntax_color: support configurable syntax color count.
Previous the color table count is fixed to 6
we can make it changeable by color configurable file.

Please increase MAX_COL_NUM if it really needs.
2015-07-09 20:18:43 +09:00
ChunEon Park c188b78c06 syntax_color: improve logic.
previous code was strictly only working for edc.
relax the logic to cover more general cases.
2015-07-09 19:51:19 +09:00
ChunEon Park 7e6fbfde90 ctxpopup: cutout slider updation.
we don't need to update slider changes multiple times under the animator callback.
2015-07-09 15:31:37 +09:00
ChunEon Park 9bf1c484f7 code refactoring.
replace *edc, *edj to *input, *output
For the general editor, modify them in advance.
2015-07-04 01:18:27 +09:00
ChunEon Park d2e3c6dc6b syntax_color: apply string syntax color prior to others.
even if the comments are inside of the qutoes,
the comments syntax color should not be applied.
2015-07-04 01:08:01 +09:00
ChunEon Park 6b6f4b19c1 main: code refactoring.
don't keep temporary variable.
2015-07-03 23:01:22 +09:00
ChunEon Park 8ef03ee90c newfile: code refactoring.
return function as soon as possible.
2015-07-03 22:41:11 +09:00
ChunEon Park e9f258a839 notify file changed popup correctly.
Current implementation has logical hole that skips the notification of file changes first time.
We fix this even if it depends on the time thresholds.
New implementation will skip the file changes also but
it will only skip, if the file change is happened again under 2 seconds.
2015-07-03 20:24:05 +09:00
ChunEon Park 1cc52fee57 fix to avoid popup of "file modified"
if the file is modified continously,
it couldn't catch that the file is modified by self or not.
we do avoid this by delaying the notifying event for 3 secs.
2015-07-03 19:58:20 +09:00
Mykyta Biliavskyi 6e62d994c4 Autocompletion: support multi names for the section.
Summary:
Support new *.edc syntax.
Each lexem node can have a many different names.
It useful for parts in new edc syntax (swallow {}, image {} ... )
Change "description" lexem to "desc"

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D2785
2015-07-03 11:49:11 +09:00
ChunEon Park a93933d770 edc_editor: clean up code. 2015-07-03 11:48:08 +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 976685ae10 edj_viewer: track the images and update live view whenever they were modified. 2015-07-01 16:20:28 +09:00
ChunEon Park fe2ad1f07b change Enventor_Path_Type interface.
changed names for enum value consistency.
2015-07-01 12:04:48 +09:00
ChunEon Park 1285140af4 edj_viewer: code refactoring.
remove duplicated code.
2015-07-01 11:55:04 +09:00
ChunEon Park 22f990960f edc_parser: remove redundant code. 2015-07-01 10:03:06 +09:00
ChunEon Park 92c09a0a39 ctxpopup: support dramatic updation for live view.
a little slow, but it's better than before.

added smart callback, @live_view,updated
renamed smart callback, @ctxpopup,selected -> @ctxpopup,changed
2015-07-01 01:25:04 +09:00
ChunEon Park e990da6de2 update for more lazy edc style. 2015-06-30 20:23:29 +09:00
ChunEon Park 796e1bffe1 edj_viewer: call the "live_view,loaded" at proper time.
previously, the signal can be called even live view is not loaded yet.

@fix
2015-06-30 19:49:04 +09:00
ChunEon Park aa962ba179 update edj as soon as possible.
checks the new edj per every frame if it failed to load.
2015-06-30 18:24:24 +09:00
ChunEon Park 12fc464bd9 template: update live edit generation code for new edc syntax. 2015-06-30 16:46:34 +09:00
ChunEon Park 533dc32dec template_code: updated to new style of edc. 2015-06-30 16:28:16 +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 9cc1fb443e Correct handling ecore key modificators.
Summary: Macro EVENT_KEY_MODIFIER_CHECK_OR_RET provide possibility  to check, if only one modifier pressed.

Reviewers: Hermet

Projects: #enventor

Differential Revision: https://phab.enlightenment.org/D2759
2015-06-26 13:49:43 +09:00
Mykyta Biliavskyi 43554348a4 Change the file save policy.
Summary:
  In case when inputted file name does not contain
  "edc" or "edj" extention, ".edc" will be added automaticaly.

  T1784

Reviewers: Hermet

Projects: #enventor

Maniphest Tasks: T1784

Differential Revision: https://phab.enlightenment.org/D2760
2015-06-26 13:44:38 +09:00
Mykyta Biliavskyi a310bbd9a4 Ctxpopup hide on focus out.
Summary:
On keypress up or down button doesn't need
to allow focus to the ctxpopup.

@fix T2522

Reviewers: Hermet

Maniphest Tasks: T2522

Differential Revision: https://phab.enlightenment.org/D2765
2015-06-26 13:39:20 +09:00
ChunEon Park 460e6dc97b updatd command line help message. 2015-06-24 15:50:20 +09:00
ChunEon Park 3c31b1661e tools: update tooltip message 2015-06-24 15:38:20 +09:00
Jean-Philippe Andre 83012a0a04 Editor zoom: Ctrl + wheel should work even with numlock
When checking the modifiers, only ALT, CTRL, WIN and SHIFT make
sense in this context.
2015-06-24 15:30:34 +09:00
ChunEon Park 786fef138c cancel live edit if the about is activated. 2015-06-24 15:26:00 +09:00
ChunEon Park 9342835f3d live_edit: update live edit on scrolling. 2015-06-24 15:24:32 +09:00
ChunEon Park 56816ab1f4 live edit: don't clip by symbol layout but live view.
texts/control points don't need to be clipped by symbol layout.
if the zoom level is enoughly small and there is enough space to
display the control points and text, then we can display them.
2015-06-24 15:11:44 +09:00
ChunEon Park 2a7ebec75b edj_viewer: fix wrong spacer highlight position.
spacer position just need to relative to the it's layout.
this is much simpler way to support zooming as well as it's nature behavior.
2015-06-24 15:06:48 +09:00
ChunEon Park 9615d308ec menu: fix wrong grammar 2015-06-24 14:47:27 +09:00
ChunEon Park 9c0cf02039 update warning button text.
save/yes/no -> save/discard/cancel
2015-06-24 14:43:39 +09:00
ChunEon Park 8d51516705 adjust live view zoom range
0.5 ~ 5.0 -> 0.1 ~ 10.0
2015-06-24 14:35:14 +09:00
ChunEon Park e45efbf381 auto_comp: fix crash at auto comp.
increase stack buffer size to afford more huge size of edc text.
and handle exceptional case for lack of stack size.
2015-06-24 14:06:32 +09:00
ChunEon Park ca8c53e073 revise description of live view. 2015-06-24 13:37:31 +09:00
ChunEon Park 7e31de5ce3 menu: removed tooltips from menu buttons. 2015-06-24 13:31:20 +09:00