Commit Graph

158 Commits

Author SHA1 Message Date
Mykyta Biliavskyi 3940a0e58e Edc editor: highlight error line number. 2015-12-24 09:08:44 +09:00
Mykyta Biliavskyi 9863ea304c Edje viewer: Jump to code of current clicked part.
When user click a part in the live view,
the entry cursor jumps to the corresponded part line.

Need additional attention for the invisible parts. Swallow
and spacer parts primitives created after edje-layout. And this
causes situation when this primitives is placed above other
parts.

T2179
2015-12-22 09:25:53 +09:00
Mykyta Biliavskyi 6aea530622 Text settings: Add analysis typed text for redoundo feature.
Added cases:
    Analyse auto indention for new lines. It mean, that redo/undo
            line creation will finished by one step.
    Analyse input symbols speed. In case when user writes somethenigi
            and takes a short delay (by default 0.8sec)
            between written symbols - redo/undo action will use this delay
            as point to create new node in redo/undo queue.
    Analyse input symbols on a "words". Ongoing alphabetic symbols
            between nonalphabetic symbols known as
            "word". Redo/undo action will use for a step a whole "word".

In text setting added addition toggle named "Smart undo/redo".
By default this feature is disabled.

Todo: make this feature work with auto intendation.

Prortotype here: https://phab.enlightenment.org/D1288
2015-12-10 10:53:12 +09:00
Mykyta Biliavskyi d22bfdba37 Ctxpopup: block the input values from ctxpopup if it already deleted.
When compilation error happens - the currently open ctxpopup
will be closed.
@fix T2542
2015-09-22 10:36:09 +00:00
Mykyta Biliavskyi ba45d8689e Edc Editor: after dismissing candidate list, cursor is moved at the end of attribute.
After choose or hide the candidate, the entry cursor
is moved to the end of attribute string ';'. It is more natural
way, than was previously, when cursor was placed before ':'.
2015-09-16 09:50:08 +00:00
Mykyta Biliavskyi c8fdf43e9a Fix compilation warnings for enventor library. 2015-09-15 17:39:51 +00:00
Mykyta Biliavskyi 17c4e71fc1 Edc_editor: fix compile warning and clear code.
Reveret "Edc_editor: after insert candidate,
move cursor to end of attribute", because it cause
wrong behaviour.
Clear code, make selection in entry by elm_entry_selection_set.
2015-09-14 17:39:47 +00:00
Mykyta Biliavskyi 19fdca4376 Static analyze: "Value stored to 'var' during its initialization is never read"
Summary:
Fix clang static analyzer warning.
@fix

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D3045
2015-09-14 15:36:17 +00:00
Mykyta Biliavskyi 78392731d4 Edc_editor: after insert candidate, move cursor to end of attribute,
Summary:
This is correct behaviour for cursor placement
after inserting candidate into edc code. Previously
cursor was placed before ':'.

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D3044
2015-09-14 15:34:41 +00:00
Mykyta Biliavskyi 1955c96144 Ctxpopup: dismiss ctxpopup after the candidate chosen.
Summary:
Add the elm_ctxpopup_dismiss call inside the
candidate select callback function.
Delete unused function ctxpopup_candidate_selected_cb.

Test Plan:
change  rel1.to param using candidate list.
After select candidate - ctxpopup should be dismissed.

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D3043
2015-09-14 15:25:36 +00:00
Mykyta Biliavskyi ae2d88fa76 Edc_editor: remove "cursor,changed,manual" callback.
Summary:
For the initiate synchronizing cursor position
and the live view object was moved edit_view_sync into
callback function for "cursor,changed" entry signal.
It is neccessary, because keys "Page up" and "Page down"
didn't initiate the signal "cursor,changed,manual".

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D3034
2015-09-14 14:34:42 +00:00
Mykyta Biliavskyi 1fd611f4b6 Edc_editor: enhance enventor_object_text insert API.
Summary:
added edit_text_insert function, that
shared for public use as enventor_object_text_insert
This API provide functionality for text insert with
support correct text replacement and redo/undo
feature support.

@fix T2691

Test Plan:
Lunch Enventor. Open "Find/Replace" dialog.
Fill "Find" field with exist string and fill
"Replace with" field with any text. Press "Replace All".
Close dialog window and check how work Ctrl+Z and Ctrl+R
hotkey combinations.

Reviewers: Hermet

Maniphest Tasks: T2691

Differential Revision: https://phab.enlightenment.org/D3005
2015-09-04 15:42:43 +09:00
Mykyta Biliavskyi 08a2d9d038 Edc_editor: run programs in case if name placed on new line.
Summary:
launch programs in cases when program name is
placed not in the same paragraph with "program" keyword.
Now analyzes whole text, that placed after selected keyword,
not only text inside the same paragraph.
@fix

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D2964
2015-08-20 11:07:36 +09:00
Mykyta Biliavskyi 9c66f6fcf0 Build: marks line, that contain error in edc_editor.
Summary:
parse error messages from edje_cc, and marked
by underline the mistaken line.  In cases for messages
that does not contain line numbers, trying to parse
name of wrong parameter. Trying to searching the parsed name
in edc code, and highlight the first entity.

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D2791
2015-08-11 13:18:07 +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 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 a93933d770 edc_editor: clean up code. 2015-07-03 11:48:08 +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 fe2ad1f07b change Enventor_Path_Type interface.
changed names for enum value consistency.
2015-07-01 12:04:48 +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 d8ddce9204 clean up code.
remove duplicated function call.
2015-06-24 13:16:01 +09:00
Mykyta Biliavskyi c2d6bae122 Autoindent: fix increase line numbers.
Summary:
Function indent_insert_apply reutn count of inserted lines.
It is provide increse line numbers correctly.

@fix T2510

Reviewers: Hermet

Maniphest Tasks: T2510

Differential Revision: https://phab.enlightenment.org/D2745
2015-06-24 13:14:14 +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 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 aa789b0448 edc_editor: disable the part highlight on live edit mode. 2015-05-24 19:25:37 +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
Jaehyun Cho 6b21eeab0f Set default font if font name is given with NULL. 2015-03-26 22:52:55 +09:00
Jaehyun Cho 489d43a62a edc_editor: Add enventor_object_font_set()/get() APIs. 2015-03-26 22:00:43 +09:00
Jaehyun Cho 42f816e101 edc_editor: Fix typo. 2015-03-24 22:07:40 +09:00
Jaehyun Cho b157b5807d themes: Apply entry theme extension.
Entry theme extension is needed to change font type by text class.
2015-03-24 19:52:57 +09:00
ChunEon Park 86de812d51 lib/edc_editor: stable redo, undo
seems fd handler is broken.. (suspect ecore audio..)
so key down events happened multiple times,

here workaround code is for stable enventor.
and should be removed later.
2015-03-01 18:52:36 +09:00
ChunEon Park 5fbe04485f Revert "edc_editor: Add enventor_object_font_set()/get() APIs."
This reverts commit 220e1fe10c.

font change is critically buggy.
need to test more and review in detail.
2015-03-01 03:13:17 +09:00
ChunEon Park a22815cbfd lib: fix to not display file modification warning box.
don't display file modification warning box in launching envetor with template select menu.
2015-03-01 02:30:13 +09:00
ChunEon Park a595407460 lib/edc_editor: remove redundant code 2015-02-28 22:18:50 +09:00
ChunEon Park cdab9f0a5d clean up code for supporting dllexport in win32. 2015-02-28 15:13:23 +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
Jaehyun Cho f5d344c129 edc_editor: Fix not to set entry non-editable.
Since elm_entry_editable_set() reloads entry theme, the registered
textblock of redoundo is replaced. This causes segmentation fault when
ctxpopup is dismissed.
Although entry is editable, entry text cannot not be changed if entry
does not have focus.
2015-02-27 19:36:11 +09:00
Jaehyun Cho 220e1fe10c edc_editor: Add enventor_object_font_set()/get() APIs. 2015-02-27 16:38:46 +09:00
ChunEon Park 94fb905d65 lib/edc_editor: add 2 more apis - redo, undo. 2015-02-26 14:31:06 +09:00
Jaehyun Cho 16ad0b8958 edc_editor: Fix not to allow focus to edit layout when ctxpopup shows. 2015-02-25 15:49:14 +09:00
Jaehyun Cho 27cae3451d edc_editor: Fix not to set line entry editable. 2015-02-25 11:16:10 +09:00
ChunEon Park f059e39409 lib/edc_editor: turn off edit mode if the editor is disabled.
elementary object disable policy has been changed,
if editor disables it's layout, it's line and editor entry would be disabled also.
in this case, the text color will be changed according to disabled style.

to avoid, this, we just disable edit mode instead of disable object.
2015-02-25 10:44:21 +09:00
Jaehyun Cho 6a871e04fc Revert "edc_editor: Set default text color to line text."
This reverts commit 89bbb67032.
2015-02-24 20:33:20 +09:00
Jaehyun Cho 89bbb67032 edc_editor: Set default text color to line text.
Set #656565FF to default line text color to not change line text color
when entry is disabled.
2015-02-24 16:03:16 +09:00
Jaehyun Cho aeb4bcda16 syntax_color: Add enventor_object_syntax_color_set()/get().
Summary: Add enventor_object_syntax_color_set()/get() to support changing text color.

@feature

Reviewers: Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D1833
2015-01-05 13:27:54 +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
Jaehyun Cho cce3c96084 Fix build warning
Summary:
Fix build warning
         @fix

Reviewers: Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D1661
2014-11-14 17:31:18 +09:00
ChunEon Park 07b52da739 lib/ctxpopup: fix to close ctxpopup correctly.
image previews won't be closed since it's enabled state is incorrect.

keep up state correctly for image preview relaying.
2014-11-03 14:27:33 +09:00
ChunEon Park bc2f514d96 lib/ctxpopup: call dismiss before object is deleted. 2014-11-03 13:53:55 +09:00
ChunEon Park 936fd19e35 ctxpopup: code refactoring
clear up code.
2014-11-03 13:43:13 +09:00
Jaehyun Cho 02fb416a85 ctxpopup: Fix T1753 (ctxpopup is not closed when esc is pressed)
Summary:
Fix to dismiss ctxpopup when esc is pressed or menu is opened
@fix

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D1631
2014-11-03 12:19:33 +09:00
ChunEon Park c39f46970c lib/enventor: support focused smart callback. 2014-11-01 18:20:21 +09:00
ChunEon Park e513684d22 fix build warnings. 2014-11-01 01:15:58 +09:00
Jaehyun Cho d135e0c9ea enventor: Fix T1756 (wrong group name is displayed in status bar)
Summary: Fix to not display wrong group name in status bar with empty template.

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D1628
2014-10-31 20:48:39 +09:00
Jaehyun Cho 7f6206269e search: Fix to clear selection when find window is moved or closed.
Summary: Fix to clear selection when find window is moved or closed. Otherwise, the selection block begins from old one.

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D1581
2014-10-28 01:23:24 +09:00
Jaehyun Cho 72e28a7310 enventor: Support "edc,modified" smart callback.
Summary: Support "edc,modified" smart callback. The event_info of edc,modified smart callback indicates whether the modification is done by itself or by other process.

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D1551
2014-10-23 16:39:31 +09:00
ChunEon Park e5927b37eb library support.
current enventor apis are under beta apis.
im notice you these apis could be changed soon.
2014-09-30 23:56:16 +09:00