Commit Graph

302 Commits

Author SHA1 Message Date
Hermet Park cf740c2ae1 win32: fix the build break. 2016-08-26 17:17:25 +09:00
Hermet Park caa2a39d65 win32: use a mutex to gurantee single instance app.
We found a corner case that the pc power is shut-down.
in that case lock file won't be removed and Enventor won't be
launched forever.

So use a mutex to recover this scenario additionally.
I tested all the scenarios that I can imagine,
and now it perfectly works fine!
2016-08-26 00:20:38 +09:00
Jaehyun Cho f5eb5361d2 main: Do not set default new file with template option (-t).
Template option (-t) creates a new file with the selected template.
Therefore, template option (-t) does not need to set default new file.
2016-08-24 09:51:39 +09:00
Hermet Park d3b0347ffd eeek. stupid. simple mistake. 2016-08-23 04:29:16 +09:00
Hermet Park a4952ba96e re-implement the method for guranteeing the singleton instance on win32.
I found some crash issues that enventor couldn't catch the event.
Have no idea what kinds of the crashes but probably it'd out of the signal
handling.

So re-implement the way of supporting the locking file mechanism
to use the win32 basic File functionality that gurantee removing file
when Enventor is closed in normal or abnormal, either cases.
2016-08-23 04:20:23 +09:00
Hermet Park 693baf4398 fix window os build.
SignalHandlerPointer is not defined.
We can't use it here.
2016-08-16 14:53:00 +09:00
Hermet Park 7b23d7964a removed redundant code. 2016-08-16 10:39:06 +09:00
Hermet Park b28c487980 ported crash handling for Windows OS. 2016-08-15 17:08:10 +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 4a0df5d7b5 stupid commit d58729f3bc.
we should remove the code that declared sigactions.
2016-08-11 16:17:20 +09:00
Hermet Park d58729f3bc Get rid of the lock file mecahinsm from win32 build.
It needs a portable way to support win32.
2016-08-11 15:31:36 +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 997b878fa8 file_browser: support to switch main EDC file.
F2 => set main edc
F3 => quick jump
F4 => revert quick jump (not done yet)
F5 => reference tooltip.
2016-08-08 20:25:05 +09:00
Hermet Park 534805a688 build_setting: add a main edc file path.
Support to change main edc file in build setting.
Also, Enventor will support a shortcut key to change main edc file.
2016-08-07 04:35:08 +09:00
Hermet Park c1f05cf8b8 Exit Enventor main logic normally in all cases.
exit call quits Enventor process unexpectedly,
and that made Enventor lose the lock file deletion.
2016-08-07 01:57:47 +09:00
Hermet Park c890ca73b6 file_browser, file_tab: change a default behavior.
Previously, they are disabled if the workspace is not specified.
We don't need this anymore.
Because we gonna support runtime changing for the workspace directory.
2016-08-07 01:41:47 +09:00
Hermet Park dbebb64e32 Change the enventor lock file path.
If usr's system is shutdown unexpectedly,
the lock file wont' be removed properly.

Store the lock file in the OS temporary folder
so it can be removed defintely when OS is turned off.
2016-08-07 01:30:06 +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 fd050aacf2 Support individual group view scale.
Now, groups keep their own view scale on their own contexts.
This will help user simultaneous group editing.
2016-08-03 19:35:04 +09:00
Jaehyun Cho 8878662778 main: Remove unused variables. 2016-08-03 15:56:03 +09:00
Hermet Park b4d8678595 Support individual group view size.
Now, groups keep their own view size on their own contexts.
This will help user simultaneous group editing.
2016-08-03 15:39:46 +09:00
Taehyub Kim a6b495dc9c envnetor_smart: fix the view resize callback
Summary: fix the view resize callback

Test Plan:
1. launch enventor
2. run group template
3. change the view size
4. change the group
5. change the view size
6. change the group to firxt
7. see the result

Reviewers: Hermet, NikaWhite, Jaehyun_Cho

Reviewed By: Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D4208
2016-08-02 22:49:28 +09:00
Taehyub Kim 160f672232 envnetor_smart: keep the each view size
Summary: when group is changed, view information should be updated

Test Plan:
1. launch enventor
2. run group template
3. change the view size
4. change the group
5. change the view size
6. change the group to firxt
7. see the result

Reviewers: Hermet, NikaWhite, Jaehyun_Cho

Reviewed By: Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D4207
2016-08-02 22:34:15 +09:00
Hermet Park 3db26261f7 multi-file: support syntax_colors.
a# Please enter the commit message for your changes. Lines starting
2016-07-27 15:37:46 +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 449fa28899 workspace: set workspace path current path in default.
If user don't specify the workspace path,
Enventor set the workspace path to current directory path
while turning off file browser and file tab function in default.
2016-07-20 19:29:39 +09:00
Hermet Park a70270a9d9 arrange shortcut key
removed line number toggle.
f5 -> quick jump.
f6 -> reference tooltip.
2016-07-15 19:50:39 +09:00
Jaehyun Cho 710621cc9b Support keyword reference function.
Display keyword reference if F5 is pressed while cursor is on the
keyword.
2016-07-09 00:21:50 +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 b71d9d2f26 fixed missing short-cut key changes.
Introduced from 4d6e98d0f0.
2016-07-02 14:32:27 +09:00
Hermet Park fe4919db46 status: Fix a view size issue.
It wont set the view size if the statusbar were disabled.

This time, statusbar is almost mandatory function.
So, regardless of statusbar activation,
Enventor updates the view size and mouse cursor info.

@fix T3974
2016-07-02 14:21:34 +09:00
Hermet Park 5e8d2e518d fixed all compile warning stuff. 2016-07-02 14:09:42 +09:00
Hermet Park bbc8ee13ea code refactoring.
renamed from outline to wireframe.

Conceptually, here feature is close to "wireframe".
2016-07-02 13:58:27 +09:00
Hermet Park 4d6e98d0f0 reorganize shortcut keys.
-- auto indentation.
-- auto completion.
++ wireframes (ctrl + w).
2016-07-02 13:32:34 +09:00
Hermet Park 8c13d63a8e ++ multi file support. 2016-07-01 18:24:14 +09:00
Hermet Park c8749390d8 file_tab: ++implementation. 2016-06-30 00:52:13 +09:00
Hermet Park 247c1e67ae file_tab: use customed list for file tab. 2016-06-29 23:29:37 +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
Hermet Park b11d41d6c2 Remove redundant tools updation call in config change,
instead Update statusbar only here.
2016-06-27 11:48:34 +09:00
Hermet Park edda0396fa GUI: change the status usability.
Added a toggle option in setting.
and replaced the status shortcut key to F8 from F11.
Now, tools shortcut key is moved to F7.

This change is such a pre-requisition for a file tab feature.
2016-06-27 11:27:39 +09:00
Jaehyun Cho 86c531cad8 main: Fix workspace path option not to print "TYPE: STR".
ECORE_GETOPT_STORE_METAVAR_STR() prints additional information such as
"TYPE: STR".
Not to print "TYPE: STR", ECORE_GETOPT_APPEND_METAVAR() is used for
workspace path option.
2016-06-14 15:25:17 +09:00
Jaehyun Cho f889d61140 main: Remove redundant code that free ecore getopt list.
Since lists of image paths, font paths, sound paths, and data paths are
free manually, ecore_getopt_list_free() does not need to be called.
2016-06-14 15:14:13 +09:00
Jaehyun Cho 0e54be9d8e main: Fix help contents for workspace path option.
Synchronize help contents for workspace path option with other path
options.
2016-06-13 21:46:59 +09:00
Jaehyun Cho 52695c9a56 main: Fix workspace path option to work.
Workspace path option did not work because option type was changed
incorrectly.
Now the option type has been changed from list strings to one string
correctly.
2016-06-13 13:26:38 +09:00
Hermet Park 37fa2ee7e6 live_edit: dismiss relative to ctxpopup only when esc key is pressed. 2016-06-06 12:33:17 +09:00
Hermet Park a10c2a63dc adjust tooltip delay time. 2016-06-06 00:40:33 +09:00