Commit Graph

1191 Commits

Author SHA1 Message Date
Mykyta Biliavskyi 0dfeb6c177 Autocomplete: fix segfault, caused by '.'
Summary:
When '.' typed without keyword, function context_lexem_thread
is returning NULL pointer to the lexem node. This cause segfault,
when the lexem node is used for prepare the candidates list
in candidate_list_show function.

Reviewers: Hermet

Maniphest Tasks: T2504

Differential Revision: https://phab.enlightenment.org/D2712
2015-06-17 17:02:58 +09:00
Mykyta Biliavskyi b4af164c8a Autocomplete: show list of the candidates after '.'.
Summary:
   In case, when user typed keyword and add '.' symbol, will be
   shown list of possible keywords.
   For example:
   rel1. -> will be shown list: relative, offset, to, to_x, to_y.

   Depends D2648
   @fix  T2178

Reviewers: Hermet, Jaehyun

Subscribers: jpeg

Projects: #enventor

Maniphest Tasks: T2178

Differential Revision: https://phab.enlightenment.org/D2651
2015-06-16 16:53:23 +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
ChunEon Park 97941ff378 Indent: auto indentation when code is pasted.
Summary:
if some edc code is pasted, the indentation could be corrupted.
let's make it fix automatically, even if indentation of
the pasted code is not correct, only when auto indent mode is enabled.

Reviewers: Jaehyun, Hermet

Projects: #enventor

Maniphest Tasks: T2174

Differential Revision: https://phab.enlightenment.org/D2601
2015-06-16 13:36:30 +09:00
Mykyta Biliavskyi 59d6ce59cd Autocomplete: make search context run in additional thread
Summary:
  Now parsing and actualizing context of current cursor position
  happens in additional thread.

  @fix T2467

Reviewers: Jaehyun, Hermet

Projects: #enventor

Maniphest Tasks: T2467

Differential Revision: https://phab.enlightenment.org/D2648
2015-06-16 13:29:00 +09:00
Mykyta Biliavskyi f931b5e06f autocomp.src: fix mistakes and add dependencies.
Summary:
Add suport blocks images and color_classes inside
collections block.
Fix position cursor for rel1 { to: ""; }.
Add RAW as default type for sound samples.

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D2706
2015-06-16 13:27:29 +09:00
Mykyta Biliavskyi f49cf431b7 Autocomplete: fix ability to disable functionality.
Summary:
Chack status of the flag *(autocomp_data)->enabled,
when entry "changed" callback is called.

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D2707
2015-06-16 13:22:36 +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
ChunEon Park 3ff81bce00 clean up help message. 2015-06-12 23:11:28 +09:00
ChunEon Park 82d31b3418 fix the font/live zoom control issue.
When you focus on other window while you pressing the ctrl/alt key at the enventor,
the ctrl/alt key pressed context can be corrupted.

because enventor keeps the extra flag for ctrl/alt key press states.
but in the problem case, the unpress key won't be trigged.

enventor doesn't need to keep the extra flag but track the modifiers in key event.

@fix
2015-06-12 17:03:45 +09:00
ChunEon Park 5b7bdd95ba change the short-cut key usage.
previous panes toggle is triggered by ctrl + arrow keys.
But editor itself uses ctrl key for cursor move/jump.
To conserve the cursor key, we change the panes short-cut.

Thanks jpeg to report this.
2015-06-11 17:19:52 +09:00
ChunEon Park 08c9ddeecd don't clip the tooltip in tools.
i guess, since the tooltip has been changed recently,
it's behavior changed a little.
because of this, tooltip in tools got clipped outside of the viewport.

Anyhow it's fixed.

@fix
2015-06-11 16:45:09 +09:00
ChunEon Park d8bac599a7 removed template code insert feature.
now enventor supports inserting part with live view editor,
i don't think this is required in enventor anymore.
2015-06-11 16:39:26 +09:00
Mykyta Biliavskyi 216763a925 Build: delete auto_com_code.h from library sources.
This causd fail to run "make dist" command.
2015-06-11 16:26:33 +09:00
ChunEon Park 02dca36f69 update help description. 2015-06-11 16:24:09 +09:00
Jean-Philippe Andre 69b475ce22 Add .arcconfig file for arcanist usage 2015-06-11 16:05:39 +09:00
Mykyta Biliavskyi e960a0df12 Edj viewer: support SPACER part highlighting.
In edje library SPACER doesnt have Evas_Object,
that represent part on canvas. Calculation position
and size of the SPACER highlight should be corrected.
For correcting geometry of highlight, uses current
state of scroller(that contain layout object)
and layout object.

@fix T2464
2015-06-09 16:13:27 +09:00
Mykyta Biliavskyi 4e4dd4400c Fix candidate popup positioning is wrong.
Ctxpopup will not show, if the size of
editable area is smaller, than ctxpopup wth content.

@fix T2180
2015-06-09 16:00:51 +09:00
ChunEon Park 2d9f86a30d autocomp: fix the resoucre directory path
auto_comp data is the library resource rather than application.
use the eina prefix rather then app data path.
2015-06-09 15:40:30 +09:00
Mykyta Biliavskyi 2ceb0a2b3c Autocomplete: enhance the autocomplete feature.
The hardcoded list of the strings from auto_comp_code.h is replaced by
description of the relationships between keywords.
This descriptions is stored in autocomp.src file.
Now the autocomplete feature is monitoring context of the
inputted text, and provide list of the keywords, that
relevant to current context.
For add new relationships between keywords need
only add it into autocomp.src in correct hierarchical order.
2015-06-09 15:28:49 +09:00
Jaehyun Cho 1390a1a6d5 syntax_color: add &gt;(>) and &lt;(<) keywords. 2015-06-06 03:47:06 +09:00
Mykyta Biliavskyi 148ad69c3b Use eina_prefix for generation path to resource of enventor library.
This way provide the ability to determine the runtime location
of the library.
Makes possible to use enventor library on the Windows platform.
2015-06-05 17:53:59 +09:00
Mykyta Biliavskyi 59a5faf6e0 Save dialog: support save edj files.
In case when user types filename.edj binary file will be
compiled into that place, which chosen in fileselector.
2015-06-04 11:53:42 +09:00
ChunEon Park 6854160251 setting: increase show transition duration. 2015-06-03 23:18:08 +09:00
Mykyta Biliavskyi af56cdb083 Support version fo the enventor config file.
Config data is checked on the versiob of config file.
if the version is lower than current, then don't read
the config data and instead open with default.
On enventor close, config file is rewrited with new data.
2015-06-03 22:52:19 +09:00
Mykyta Biliavskyi d6d69eb6c7 Fix generation path to theme, for enventor library.
In case when enventor library initialized by another application,
function elm_app_data_get_dir() return data dir of the parent
application.
Now on precompilation stage (automake) path to enventor theme
will be added to internal usage. It make no dependencies from
parent application.

@fix T1285
2015-06-03 22:50:31 +09:00
Mykyta Biliavskyi 00a7e03432 Update hale information.
Update --help informarion about attributes.
2015-06-03 20:09:08 +09:00
Mykyta Biliavskyi 512e12c970 Update README and ABOUT files.
Update information accordingly to usage Enventor in CLI.
2015-06-03 20:06:52 +09:00
Mykyta Biliavskyi 59ec635813 Command arguments: add recognize output file.
If command arguments contain path to file
with ".edj" extension, this file will be used
for store output binary file.

Example:
enventor --id /path/img --fd /path/fnt input.edc output.edj
2015-06-03 16:55:23 +09:00
Mykyta Biliavskyi a247010813 Command line arguments: fix ignoring resource pathes.
If application run with command like:
enventor --id /path/images --fd /path/fonts
Pathes will be used in application.

@fix
2015-06-03 16:49:12 +09:00
ChunEon Park 2dd1f7627c configure: remove undefined commands 2015-05-31 11:56:03 +09:00
ChunEon Park a59ebb43aa template: update rotation+zoom 2015-05-31 01:43:53 +09:00
ChunEon Park 0eda8b8510 color: add zoom keyword 2015-05-31 01:42:07 +09:00
ChunEon Park 34893056cf template: add group 2015-05-31 01:40:04 +09:00
ChunEon Park 3ebfc09e61 template: revise basic 2015-05-31 01:25:26 +09:00
ChunEon Park b0ce2bda44 template: add rotation+zoom 2015-05-31 01:17:51 +09:00
Mykyta Biliavskyi 9ac6faaa9e edj viewer: update live view for different groups.
This happens, because edj file is rewrited and
descriptor lost. Reload all groups each time when
edj file rewrited.

@fix T2162
2015-05-28 19:37:25 +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
Mykyta Biliavskyi 4415cdf7a9 Command line: add new arguments into command line.
Added next arguments:
-v, --version           show program version.
-c, --copyright         show copyright.
-l, --license           show license.
2015-05-27 14:43:25 +09:00
ChunEon Park ec340a1760 config_data: code refactoring.
just clean up code.
2015-05-27 14:41:40 +09:00
Mykyta Biliavskyi dee12936e3 Config: fill the paths to the resource directories from command line.
Add support multi paths for resource directories as arguments
from command line.

Now support next parameterized arguments:
--id path/ - image directory path,
--sd path/ - sound directory path,
--fd path/ - font directory path,
--dd path/ - data directory path,
--to - open template dialog.

For example:
enventor  --id path_1/ --id path_2/ --sd path_3/ --fd path_n/
2015-05-27 14:36:30 +09:00
ChunEon Park 118e86e0dd auto_comp: fix missing precise_is_inside. 2015-05-25 02:27:55 +09:00
ChunEon Park aa789b0448 edc_editor: disable the part highlight on live edit mode. 2015-05-24 19:25:37 +09:00
ChunEon Park 2ccceded2f live_edit: improve grip control. 2015-05-24 19:14:59 +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 a81a0d23ee eo: sync with eolian syntax changes. 2015-05-24 18:18:12 +09:00
ChunEon Park b59cc1022d auto_comp: fix build break.
there were typo that caused build break.
2015-05-24 18:16:30 +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 49a2a87c6f auto_comp: +precise_is_inside 2015-05-21 11:07:43 +09:00
Jaehyun Cho d66139a1aa lib/enventor: Use the new Eolian property syntax. 2015-05-09 02:51:41 +09:00