Commit Graph

1002 Commits

Author SHA1 Message Date
ChunEon Park ea715444ed remove compile warnings.
remove unused variables.
2015-06-22 15:44:22 +09:00
Mykyta Biliavskyi 9f47246074 Autocomplete: fix memory leak on autocomplete terminate.
Summary: Tree structure of lexems didn't freed, when feature terminating.

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D2727
2015-06-22 14:51:18 +09:00
Mykyta Biliavskyi 02af80d3ba Hotkeys: fix work ctrl_l key with num lock.
Summary: Need to check CTRL_L and ALT_L bits in ECORE_EVENT_MODIFIER

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D2722
2015-06-22 14:49:17 +09:00
Mykyta Biliavskyi 7020fec1f3 Autocomplete: fix memory leak.
Summary:
When context_lexem_thread_cb is canceled - possible, that
td->utf8 memory, that allocated at context_lexem_get
didn't freed.

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D2726
2015-06-22 14:45:54 +09:00
Mykyta Biliavskyi 5b3aa7ca3b Autocomplete: show list of the candidates by Ctrl+space.
Summary:
By press ctrl_l+space will be shown popup with the candidates list,
that relevant to current cursor position.
Added API enventor_object_auto_complete_list_show as public.

Reviewers: Hermet, jpeg

Maniphest Tasks: T2496

Differential Revision: https://phab.enlightenment.org/D2720
2015-06-22 14:34:52 +09:00
ChunEon Park d1e7eed0fb recover the autocomplete backspace key issue.
before change this, backspace is not working for auto complete,
so user can't cancel the popup.

this change is reverted to the old one code (118e86e0dd)
2015-06-22 14:20:14 +09:00
Mykyta Biliavskyi 9e81a5f263 Autocomplete: fix behaviour of the Backspace.
Summary:
For case when the list of candidates is shown after typing
'.', "backspace" didn't work. It happens because the queue was
already cleared, when the user press "backspace". But at the
same time list of the candidates is presented and shown.

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D2714
2015-06-22 14:09:14 +09:00
ChunEon Park 339298a01b auto_comp: + exeptional case.
just in case non - tooltip items.
2015-06-22 14:05:27 +09:00
Mykyta Biliavskyi 708923f8ff Autopcomp: select first item in candidates list.
Reviewers: Hermet

Maniphest Tasks: T2495

Differential Revision: https://phab.enlightenment.org/D2719
2015-06-22 13:59:50 +09:00
Mykyta Biliavskyi 1877830e70 Autocomp: sort autocomp to alphabet order.
Reviewers: Hermet

Maniphest Tasks: T2495

Differential Revision: https://phab.enlightenment.org/D2718
2015-06-22 13:55:36 +09:00
ChunEon Park 46a8114c89 template: update basic. 2015-06-18 08:48:22 +09:00
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