Commit Graph

48 Commits

Author SHA1 Message Date
Jaehyun Cho 5ae577f5ea file_mgr: Fix condition.
Fix condition based on the commit,
265626a86b
2016-08-23 23:34:39 +09:00
Hermet Park 265626a86b fix a invalid memoray access.
The focused_item could be invalid if the enventor item is removed before seting it null.
Also, the previous warning is no more invalid because
it was introduced by unsafe threads workers that was already fixed before.
2016-08-19 16:24:16 +09:00
Hermet Park eca29287ab file_mgr: support file back tracking feature.
Now, press F4 opens the previous file back.
2016-08-15 16:49:35 +09:00
Hermet Park 65267ba2fd file tab: stablizing file switching behavior.
There are still corner case bugs.

one is issued by unsafe thread working
and the other one is group switching.

fixed all in all.
2016-08-12 04:00:17 +09:00
Hermet Park cd70d4e0fa fix a regression bug.
we found a template won't work on enventor launch.
fix it by opening even the same input file.
2016-08-11 20:09:15 +09:00
Jean-Philippe Andre 3af6ede5e5 clang: Fix warnings and compilation errors
enventor wouldn't compile with clang. Also, it would print
a lot of warnings.
2016-08-10 15:17:41 +09:00
Hermet Park 64b88b4147 file_mgr: avoid unnecessary item focus. 2016-08-09 01:10:27 +09:00
Hermet Park a281963ba1 sanitize compare file pathes.
let's have a full pathes for enventor items.
then we don't need to call ecore_file_realpath() at every accesses.
2016-08-09 01:02:46 +09:00
Hermet Park b3afcc4810 file_browser: stabilizing switching main edc file function. 2016-08-08 23:58:08 +09:00
Hermet Park 4212c9fa98 Limit to an unique enventor instance.
Now, Enventor allows only one enventor instance.
This is sort of a limited way, but it would be better while enventor supports
multiple file editing.

Unless it perfectly covers scenarios that overwrite editor code from other
process, Enventor will limit its process count.
2016-08-06 05:03:40 +09:00
Hermet Park b987e70045 fix memory leaks. 2016-08-04 23:48:50 +09:00
Hermet Park 4468f9283c file_mgr: compare file pathes precisely.
Actually, it needs to compare realpath for files
to confirm to newly open or not.
2016-08-01 19:28:41 +09:00
Hermet Park 0462d04c0d multi-file: support quick jump (F5)
if you press F5 on "#include xxxx" line,
Enventor will open that include file.

Conflicts:
	src/lib/edc_parser.c
2016-07-22 16:19:46 +09:00
Hermet Park cbb7caa834 file_mgr: reset contexts when file focus is moved on.
We need to reset goto, search, live edit even edc navigator context
if the selected file is switched to other.
2016-07-22 13:34:56 +09:00
Hermet Park 58a1f10608 multi-file: ++implementation.
support live edit function.
2016-07-20 18:52:45 +09:00
Hermet Park 4b8f989090 multi-file: re-implemented item grouping infra.
Changed item concept that only one item can represent the enventor object.
I'd thought multiple editors of Enventor could be active at the same time,
but it brought Enventor Lib has over-concept feature,
because Enventor App doesn't support it so far.
2016-07-07 20:34:42 +09:00
Hermet Park 6780f25ad4 multi-file: redoundo implemtation.
Still a lots of changes required... >.<
2016-07-04 15:09:26 +09:00
Hermet Park 6303afd975 multi-file: ++implementation.
+ line deletion and file saving.
2016-07-03 08:50:47 +09:00
Hermet Park e4896f1090 multi-file: ++implementation.
Now it works on search/replace.

API changes.
Below object APIs replaced with item APIs.

enventor_object_text_get()
enventor_object_text_insert()
enventor_object_selection_get()
enventor_object_cursor_pos_get()
enventor_object_cursor_pos_set()
enventor_object_select_none()
enventor_object_select_region_set()
enventor_object_syntax_color_partial_apply()
enventor_object_syntax_color_full_apply()
2016-07-02 17:32:11 +09:00
Hermet Park 68548afdde multi-file: support the function, go to line.
removed enventor_object_max_line_get()
removed enventor_object_goto_line()
added enventor_item_max_line_get()
added enventor_item_goto_line()
2016-07-02 15:39:10 +09:00
Hermet Park 5e8d2e518d fixed all compile warning stuff. 2016-07-02 14:09:42 +09:00
Hermet Park 731d0bed5b ++secure code. 2016-07-01 18:58:26 +09:00
Hermet Park c8749390d8 file_tab: ++implementation. 2016-06-30 00:52:13 +09:00
Hermet Park 5140ab5c64 code refactoring.
add a common memory fail message routine to reduce string usage.
2016-06-29 20:41:39 +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 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 3a43682695 remove unused compile warnings. 2016-03-05 11:31:37 +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 ede00648d9 code refactoring.
remove enventor reference passing. it's avaiable to be globally accessed.
2016-01-22 19:53:32 +09:00
Mykyta Biliavskyi c6ec131b8d Multilanguage: apply gettext macro to bin/.
Cover all strings with _() macro.
2015-11-17 17:39:22 +00:00
Mykyta Biliavskyi a2e8ea3028 Show the save warning dialog on close unsaved file. 2015-09-18 09:36:07 +00: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 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 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 3dfaf7cb61 bin/file_mgr: don't update msg if statusbar is disabled. 2015-03-01 14:11:00 +09:00
ChunEon Park 3a60e771a6 bin/tools: add save button. 2015-02-26 14:22:30 +09:00
Jaehyun Cho efe9c54d37 file_mgr: Reset console messages when edc file is modified. 2015-02-13 13:42:33 +09:00
Jaehyun Cho 4fd5b2f132 common: Move <Enventor.h> to common header file of application.
Move <Enventor.h> to common.h to let application files include
<Enventor.h> and <Elementary.h> easily by including only "common.h".
2015-02-02 20:10:51 +09:00
ChunEon Park 243d6a1330 app/file_mgr: open warning box deferred way.
if envnetor opened menu or some other popups,
edc modified warning box will be delayed to the editor has focus.
2014-11-01 18:21:13 +09:00
ChunEon Park d90e2101b9 app/file_mgr, menu: fix more build errors. 2014-11-01 17:31:02 +09:00
ChunEon Park 0ad8fd8180 app/file_mgr: fix build warnings. 2014-11-01 17:23:20 +09:00
ChunEon Park 9c37b14e98 app/file_mgr: set focus properly.
Set focus on warning box if warning box is opened.
And then recover to enventor if it's closed.
2014-11-01 17:10:36 +09:00
ChunEon Park e513684d22 fix build warnings. 2014-11-01 01:15:58 +09:00
Jaehyun Cho c31f0f4f0b file_mgr: Fix T1754 (file mgr warning box is not dismissed with esc key)
Summary: Fix T1754 (file mgr warning box is not dismissed with esc key)

Reviewers: Hermet

Reviewed By: Hermet

Maniphest Tasks: T1754

Differential Revision: https://phab.enlightenment.org/D1629
2014-11-01 00:56:56 +09:00
ChunEon Park 92cad63c43 app/file_mgr: fix build warning.
fix warning that introduced by 8c68bc9981
2014-10-24 13:36:46 +09:00
ChunEon Park d6522842f3 app/file_mgr: revise warning box gui. 2014-10-24 13:35:17 +09:00
ChunEon Park 04682f7814 app/file_mgr: add a descriptive comment for maintainance. 2014-10-24 13:23:52 +09:00
Jaehyun Cho 8c68bc9981 file_mgr: Support that an edc is opened by different processes.
Summary: file_mgr: Support that an edc is opened by different processes. Open warning window to synchronize or ignore the edc changes.

Reviewers: Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D1561
2014-10-24 13:21:10 +09:00