Commit Graph

155 Commits

Author SHA1 Message Date
Hermet Park f0623301d9 file_browser/file_tab: ++ multi file support implementaion 2016-06-30 16:50:20 +09:00
Hermet Park e61cfb6124 file_tab: add a partial implmentation. 2016-06-29 20:28:11 +09:00
Taehyub Kim 4100cc9131 edj_viewer: add parts outline highlight feature
Summary:
When we add a live edit item, it is convenient to be support part outline.
so I added part outline feature. It can be toggling.

@T3626

Test Plan:
1. launch enventor
2. activate parts outline item on tools
3. see the parts outline in live edit view

Reviewers: Hermet, NikaWhite, bowonryu, Jaehyun_Cho

Reviewed By: Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D4071
2016-06-28 14:20:57 +09:00
Jaehyun Cho 9d5bf61003 Rename Evas.Object to Efl.Canvas.Object.
This commit applies the following efl commit.

evas: Rename Evas.Object to Efl.Canvas.Object
2016-06-21 17:14:37 +09:00
Taehyub Kim 4f4da34c9b edc_editor: rearrange selected part to be placed in center
Summary:
When we search the word or click part in live edit view and edc navigator,
The corresponding name in text view is selected, but it is not center align.
So I make it center align when the word is selected.

@T3326

Test Plan:
1. launch enventor
2. open search window
3. input any word in script
4. click ok forward button
5. check selection part if it is placed in center
6. click a part in live edit view
7. check selection part if it is placed in center
8. click a part name in edc navigator
9. check selection part if it is placed in center

Reviewers: Hermet, Jaehyun_Cho, NikaWhite, bowonryu

Differential Revision: https://phab.enlightenment.org/D4059
2016-06-20 13:10:36 +09:00
Jaehyun Cho 9e98077d30 Fix eo compilation.
This commit applies the following efl commits.

Evas: Move smart_callbacks_descriptions to legacy
Evas: Rename smart object into Efl.Canvas.Group
2016-06-19 12:44:09 +09:00
Hermet Park 234b1926fc Revert "temporary change for release v0.9.0"
This reverts commit 847e84b12d.

enventor v0.9.0 was released.
2016-06-06 17:32:37 +09:00
Hermet Park 847e84b12d temporary change for release v0.9.0 2016-06-06 17:26:42 +09:00
Hermet Park 4da3778f80 removed redundant code 2016-06-05 13:09:52 +09:00
Jaehyun Cho 90ad03aa2e enventor: Do not highlight part during live edit mode.
Previously, part highlighting worked if part highlighting button is
clicked or enventor window moves during live edit mode.
Now, part highlighting does not work during live edit mode.

@fix T3653
2016-06-02 19:33:47 +09:00
Jaehyun Cho cd13b0f169 Revert "enventor: Do not highlight part during live edit mode."
This reverts commit 567a38d5e5.

Disable state should not control part highlight state.
2016-06-02 19:21:42 +09:00
Jaehyun Cho 567a38d5e5 enventor: Do not highlight part during live edit mode.
Previously, part highlighting worked if part highlighting button is
clicked or enventor window moves during live edit mode.
Now, part highlighting does not work during live edit mode.

@fix T3653
2016-06-02 19:05:31 +09:00
Hermet Park e16ff998b1 implementing multi editor support.
this feature will be come gradually...
2016-05-19 00:28:58 +09:00
Hermet Park 25a34493be remove redundant comments. 2016-05-18 17:46:54 +09:00
Hermet Park f36abe3d3c edc_edit: code refactoring.
font set for editor should be global.
so, take care of this in enventor object data.

This is a partial change for multiple edc editor.
2016-05-17 23:32:34 +09:00
Jaehyun Cho d299c6cde4 enventor_smart: Fix warnings. 2016-05-17 18:13:02 +09:00
Taehyub Kim afd04c7469 enventor_smart: fix mirror mode for relative_to
Summary:
When we apply mirror mode, we need to considering swap relative_to,
but exist code was not checking null pointer.
so I fixed the logic.

Test Plan:
1. Launch Enventor
2. Apply Mirror Mode
3. Insert a live edit item with relative_set setting

Reviewers: Hermet, Jaehyun_Cho, NikaWhite

Differential Revision: https://phab.enlightenment.org/D3942
2016-05-16 23:28:30 +09:00
Taehyub 5194059b40 live_edit: Add new feature about setting relative_to among the exist parts
Summary:
Add new interface feature about setting relative_to to make relationship esaily
between part and part. Now, we can make the relationship using just mouse interface.

Test Plan:
1. launch enventor
2. add live edit item using live edit toolbar
3. drag the item to the another part
4. move a control point that you want to make a relationship to the another part edge
5. and then relative_to ctxpopup is shown
6. select the relative_to item in the ctxpopup
7. insert the live edit item with double click
8. check the inserted code whether it is make relationship or not

Reviewers: Jaehyun_Cho, NikaWhite, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D3936
2016-05-11 21:57:51 +09:00
Hermet Park c20a47bced edc_edit: code refactoring.
toggle option for ctxpopup should be global.
so, take care of this in enventor object data.

This is a partial change for multiple edc editor.
2016-05-08 03:16:46 +09:00
Hermet Park a77f756735 edc_edit: fixed redo undo short cut keys.
there were still wrong implementation. fixed them.
2016-05-08 03:11:04 +09:00
Hermet Park 47bbaf731b edc_edit: fix broken ctrl+z, ctrl+r short-cut key events.
This was introduced from previous patches.
Now initialization point of edit_data is next to the efl lib initialization.
This broke this and now i fixed this with dispatching way.
2016-05-08 02:55:46 +09:00
Hermet Park 0b27ce5474 redoundo: code refactoring.
toggle option for redoundo should be global.
so, take care of this in enventor object data.
2016-05-08 02:34:31 +09:00
Hermet Park e36b84e53d internal changes for supporting multiple editor.
loose the dependency of edc_edit with enventor instance.
2016-05-07 23:14:45 +09:00
Hermet Park 047c9ff238 refactoring for multiple edc editor.
move editor attributes out of edc_edit.
since those attributes should be applied through editors.
2016-05-07 17:35:07 +09:00
Hermet Park ae7f3e30b3 redoundo: do coupling with edc_edit instance.
one redoundo should work with it's owner editor.

This is a refactoring for multiple edc editor.
2016-05-07 04:14:47 +09:00
Hermet Park 084fbd4b62 add TODO for multiple file editor. 2016-05-01 22:26:12 +09:00
Hermet Park 6946d1f715 additional implementation for multiple edc editor.
some missing implementation from bea4735e02.
2016-05-01 22:05:20 +09:00
Hermet Park 3db7a0a7c8 remove EINA_REF
This looks quitely unnecesary. go away from here.
2016-05-01 21:21:40 +09:00
Hermet Park bea4735e02 Change Enventor API.
This is a partial change for supporting multiple edc files.

enventor_object_file_set() -> enventor_object_main_file_set()
2016-05-01 21:16:31 +09:00
Hermet Park e08cc69795 code refactoring
change declarations type of enventor object

from Evas_Object to Enventor_Object
2016-05-01 20:27:08 +09:00
Hermet Park a4d4fb748c edc_navigator: support stop all programs.
for this, added one more api, enventor_object_programs_stop()
2016-04-23 13:15:32 +09:00
Hermet Park 955b762ecc edc_navigator: provide a program launch button.
Now launching program by double clicking the program part in the code
is removed! This was not intuitive.
2016-04-22 19:31:07 +09:00
Taehyub Kim 6b19c191ac enventor_smart: make the position of live edit item show correctly when mirror mode is applied
Summary:
when mirror mode is applied, the live edit item is added to wrong position.
so I added mirror mode checking to show correctly.

@T3368

Test Plan:
1. launcher enventor
2. enable mirror mode
3. add a live edit item to preview
4. check that the position of the item is right

Reviewers: Hermet, Jaehyun_Cho, NikaWhite

Differential Revision: https://phab.enlightenment.org/D3834
2016-03-29 19:38:54 +09:00
Mykyta Biliavskyi 7a3aff94c3 Enventor smart: create new empty file in file_set.
Fix T3275
2016-03-25 17:22:06 +09:00
Hermet Park 9ed5a70ac8 edj_viewer: refactoring mirror mode code.
simpler and nicer code.
2016-03-25 16:33:38 +09:00
taehyub df7a9f51f8 tools: support mirror mode
Summary: Added new toolbar item to support mirror mode

Test Plan:
1. luanch enventor
2. toggle mirror mode item of toolbar at the left-top or press ctrl + M
3. see the mirror mode working well

Reviewers: Jaehyun_Cho, NikaWhite, Hermet

Differential Revision: https://phab.enlightenment.org/D3813
2016-03-25 13:30:33 +09:00
Tom Hacohen 0e03164b68 Revert "fix the build break that introduced by eo syntax change."
This reverts commit 986663f5ed.
2016-03-11 12:42:09 +00:00
Hermet Park 986663f5ed fix the build break that introduced by eo syntax change. 2016-03-11 17:38:36 +09:00
Hermet Park 498c1259eb Revert "Revert "Fix to apply Eo4.""
This reverts commit e67a1d1607.

0.8.0 was released. revert this again.
2016-03-08 16:53:27 +09:00
Hermet Park e67a1d1607 Revert "Fix to apply Eo4."
This reverts commit b656f774d9.

Revert this for enventor 0.8.0 release.
2016-03-08 10:16:04 +09:00
taehyub 3a4e1dec9e enventor_smart: change the postfix operator to prefix operator to check next pointer
Summary:
if(!(ptr++)) code check current pointer then it is updated next pointer.
so I changed the postfix operator to prefix operator to check next pointer in the condition.

@fix

Reviewers: Jaehyun_Cho, NikaWhite, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D3762
2016-03-07 12:02:09 +09:00
Jaehyun Cho b488c57a9c edc_editor: Fix to call "edc,modified" callback when edc is modified.
Previously, "edc,modified" callback is called only if
enventor_object_save() is called.
To call "edc,modified" callback when edc is modified, "edc,modified"
callback is called in edit_save().
2016-03-04 10:32:24 +09:00
Jaehyun Cho b656f774d9 Fix to apply Eo4.
In Eo4, eo_do, eo_do_ret, eo_do_super, eo_do_super_ret are not used.
2016-03-04 09:22:27 +09:00
Jaehyun Cho 5b00c94969 Revert "Show the save warning dialog on close unsaved file."
This reverts commit a2e8ea3028.

When a part is inserted by LiveEdit or modified by candidate popup, edc
file is saved automatically.

Conflicts:
	src/bin/file_mgr.c
2016-02-29 17:38:50 +09:00
Hermet Park d09c073fb0 edc_navigator: support program list 2016-02-29 17:28:25 +09:00
Hermet Park bb09392d12 edc_navigator: 3rd patch for base navigation behavior. 2016-02-27 17:31:12 +09:00
Hermet Park 50a7b468ef edc_navigator: 2nd patch for base navigation behavior.
not completed.
2016-02-26 22:23:25 +09:00
Mykyta Biliavskyi 02b45c0719 Redoundo: Support the real-time preview when we undo/redo the code.
When user undo or redo change, the edc file will be recompiled and the
live view will be updated. There are two flow: in case if the change is buildable
(i.e. the edc file was builded sucessfuly, when this change happened)
edc file will be recompiled. In case when change marked as unbilduable -
nothing will happen.

@T3051
2016-02-22 18:49:46 +09:00
Hermet Park fe41adaa28 support a guide text for editor ctxpopup.
introduce a new smart callback "ctxpopup,activated"

@feature
2016-02-09 17:51:11 +09:00
Hermet Park f3d5cc942a fix invaild memory read.
previously, entry_move_cb could be called after autocomp is terminated
this logic slightly change them.
2016-01-02 22:26:57 +09:00
Hermet Park d35a229eab update dummy parts interfaces.
change toggle dummy swallow to dummy parts
because now dummies include spacer and swallow.
2016-01-02 14:06:59 +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
Hermet Park b78bf1efe5 don't jump part cursor when enventor object is disabled. 2016-01-01 01:12:48 +09:00
Mykyta Biliavskyi bce72d3f44 Error notification: dismiss ctxpopup when error happen.
Callback build_err_noti_cb uses for reset the error state.
Dismiss context popup with attribute values in
case when the error happened.
2015-12-29 18:15:12 +09:00
Mykyta Biliavskyi a40b144128 Build: reset error notification before each build.
fix T2972
2015-12-29 11:34:59 +09:00
Mykyta Biliavskyi e264bc5f95 Error highlight: fix highlight errors inside the first line.
Fix T2970
2015-12-29 10:33:36 +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
Jaehyun Cho 2e541e722a enventor: Fix to move scroller bar to correct position for find function
enventor creates a scroller instead of using entry's scroller for text
editor. This causes that the scroller bar moves to incorrect position
when a word is selected by find function. To resolve this problem, set
entry's cursor position before setting entry's select region.
2015-12-07 17:30:05 +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 a2e8ea3028 Show the save warning dialog on close unsaved file. 2015-09-18 09:36:07 +00:00
Mykyta Biliavskyi c8fdf43e9a Fix compilation warnings for enventor library. 2015-09-15 17:39:51 +00:00
Mykyta Biliavskyi abe5ef0aa6 Highlight: apply disable/enable the highlight status for all groups.
The highlight feature is provided for global usage (it means,
that disabling highlighting will turn off it for ALL parts
in ALL groups). This patch add management the highlight
feature status for cases when the highlight was enabled
when one group was active and disable in another group.
2015-09-15 15:41:08 +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
Jaehyun Cho b6d17628c5 Remove eio_monitor for edc file.
Instead of using eio_monitor, build edc file in enventor_object_save().
2015-08-27 03:55:48 +09:00
ChunEon Park 1b0fc9f4cf auto completion: fix malfunction of key input on Windows system.
re-implement auto completion key input by using key grab mechanism.

@fix
2015-08-27 00:58:01 +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 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
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 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 6e7e18b12b auto_comp: close popup if the line is deleted.
@fix.
2015-06-23 10:21:22 +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
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
ChunEon Park a81a0d23ee eo: sync with eolian syntax changes. 2015-05-24 18:18:12 +09:00
Jaehyun Cho 489d43a62a edc_editor: Add enventor_object_font_set()/get() APIs. 2015-03-26 22:00:43 +09:00
ChunEon Park 94447b0ccc remove redundant code.
it was for compatible for enventor v0.5.0 release.
now we are on development stage.
2015-03-02 14:49:51 +09:00
ChunEon Park 57a2f1e377 lib: fix to monitoring new empty file.
"empty" in the template as well as empty input file in the command line, were not tracked by enventor
so live view couldnt be updated.

now it's fixed.
2015-03-01 14:34:03 +09:00
ChunEon Park d146547b52 enventor_object_save() forcely rewrites if the file path is changed.
so app doesn't need to care it anymore.
2015-03-01 14:23:31 +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 f3f0c30c8a fix live view updation problem.
if file is saved as, the edj tracking would be corrupted.
later this scenario, live view won't be updated

@fix T2124
2015-03-01 02:00:19 +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
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
ChunEon Park a87332c72e update for eo_do_ret()
api call change complied with unstable eo.
2015-02-26 10:47:51 +09:00
Hermet 04c35e5d8a bin/console: add auto hiding function.
this is for better intellegent console window.

console will be hidden if any error messages are gone.
2015-02-14 18:36:00 +09:00
ChunEon Park 43b3b77e04 lib: add enventor_object_cursor_pos_set to public API
Reviewers: Hermet

Projects: #enventor

Differential Revision: https://phab.enlightenment.org/D1894
2015-01-26 13:27:46 +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 a4227ef9a4 setting: Add size configuration of Live View
Summary:
Add size configuration of Live View
@feature

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D1667
2014-11-25 21:08:29 +09:00
Jaehyun Cho 98a9eca6c5 live_edit: Fix T1785 to restore live edit
Summary:
Fix T1785 to restore live edit
         @fix

Reviewers: Hermet

Maniphest Tasks: T1785

Differential Revision: https://phab.enlightenment.org/D1650
2014-11-12 16:44:19 +09:00
ChunEon Park ff7caeae42 lib/enventor: fix typo 2014-11-03 15:33:15 +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