Commit Graph

2071 Commits

Author SHA1 Message Date
Hermet Park 5836cc702a edc_edit: code refactoring.
just internal function name change.
2016-08-15 15:00:37 +09:00
Hermet Park 27db1e3245 edj_viewer: set highlight geometry precisely.
change the geometry of highlight to its common geometry,
not actual text area.

This change is for consistency for wireframes,
and I expect user want it.
2016-08-15 14:57:00 +09:00
Hermet Park 7656155bf3 live_edit: dismiss ctxpopup when view position is changed.
ctxpopup position won't be valid anymore if the live edit object's
 position is updated. so dismiss it.
2016-08-15 14:20:53 +09:00
Hermet Park 7f34f53864 wireframes: fix merge conflict. 2016-08-15 14:16:16 +09:00
Taehyub Kim cb47271ff6 wireframes_obj: restore resize and move callback for layout
Summary: restore resize and move callabck for layout

Test Plan:
1. launch enventor
2. open a basic edc
3. add spacer part
4. turn on wireframe
5. resize the view
6. see the result of wireframe

Reviewers: Jaehyun_Cho, NikaWhite, bowonryu, Hermet

Differential Revision: https://phab.enlightenment.org/D4216

Conflicts:
	src/lib/wireframes_obj.c
2016-08-15 14:09:45 +09:00
Hermet Park e40122daab file_browser: unset main tag at new file.
If user select a new file, then the main file will be this new one.
And then, the previous main file should lose the main tag.
2016-08-12 15:39:25 +09:00
Hermet Park b4655c371c text_setting: reset font style properly. 2016-08-12 15:09:07 +09:00
Hermet Park 8f7c61df8b live_edit: adjust text ui. 2016-08-12 12:28:41 +09:00
Bowon Ryu 498782167f live_edit: update font style and bg.
Test Plan:
1. enventor
2. add live_edit content.
3. observe content.

Reviewers: Hermet, Jaehyun_Cho, herb

Differential Revision: https://phab.enlightenment.org/D4221
2016-08-12 11:32:39 +09:00
Hermet Park a2db164533 file_tab: avoid unnecessary selection behavior.
When list item's close button is clicked, this selection is triggered
prior to the close button clicked callback.
It's useless to perform this selected callback anyway this file tab
item is gonna removed soon. But, due to the list's behavior,
it's unavoidable so we need this tricky animator.
2016-08-12 10:29:53 +09:00
Hermet Park 9d188e601e wooo.. one more eo change. 2016-08-12 10:07:10 +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
Jaehyun Cho ea4a177dcf reference: Change reference data name from md to rd.
Change reference data name to rd since rd stands for reference data.
2016-08-11 23:35:18 +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
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
Jaehyun Cho b5e27c58d6 syntax_indent: Fix not to paste string redundantly.
Previously, indentation logic produced a duplicated string if the copied
string ends with spaces.

Test Plan:
1. Open basic template.
2. Cut string right before "}" in the text view.
   (e.g. Copy from 5th line to 7th line right before "}" in basic edc.)
3. Paste the cut string.
4. See that 6th line's string is pasted redundantly.
2016-08-09 21:19:01 +09:00
Hermet Park 6f47ad19e0 multi-file: clear edj views if main item is changed.
If the main item is changed, previous edj views won't be valid anymore.
We need to clear them.
2016-08-09 01:39:56 +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 e086a6edbb ++null check 2016-08-09 00:25:43 +09:00
Hermet Park 780cf89dcc edc_editor: fix missing shortcut key updation. 2016-08-08 23:59:52 +09:00
Hermet Park b3afcc4810 file_browser: stabilizing switching main edc file function. 2016-08-08 23:58:08 +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 1fda44ae6d theme layout_setting: code refactoring.
use default state names explicitly.
2016-08-08 17:51:16 +09:00
Jaehyun Cho ee438d5fc8 file_browser: Fix memory leak. 2016-08-08 17:24:34 +09:00
Jaehyun Cho 8bcb3aa7b4 reference: Fix memory leak. 2016-08-08 16:13:22 +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 726eabd442 edj_viewer: fix a bug that scale is applied one step after.
Logically, it used previous scale factor in updating live view.
update the scale factor first then update the live view!
2016-08-06 01:58:58 +09:00
Hermet Park 001aae25d8 newfile: sort template list in alphabetical order. 2016-08-06 01:48:06 +09:00
Hermet Park a23ef99cdb template: add Mask example. 2016-08-06 01:37:18 +09:00
Taehyub Kim 4f3e016ca9 wirefrmaes_obj: update wireframe when it is animated
Summary:
when animation is working, wire frame is not updated.
so I fixed it.

Test Plan:
1. launch enventor.
2. run animation template
3. see the result about update of wireframe

Reviewers: Jaehyun_Cho, NikaWhite, Hermet

Differential Revision: https://phab.enlightenment.org/D4214
2016-08-05 17:01:48 +09:00
Hermet Park b663b04096 edc_editor: add missing null out. 2016-08-05 16:34:20 +09:00
Hermet Park b987e70045 fix memory leaks. 2016-08-04 23:48:50 +09:00
Hermet Park 1901cd4699 auto_comp: this is the last thread safe code.
there is a quite complex case that non-thread safe code
that may occur crash or wrong behavior of enventor.

just improve the thread safe code to avoid the situation.
2016-08-04 23:25:52 +09:00
Hermet Park 13305c77af auto_comp: ++safe code
don't free auto comp instance if its internal thread is working.
2016-08-04 22:57:24 +09:00
Hermet Park 86b9124e53 syntax_color: ++ safe code.
don't free color instance if its internal thread is working.
2016-08-04 20:54:21 +09:00
Hermet Park 1a9d5dcba7 edc_editor: one more thread safe code.
This patch is another same fix to e24efc9c7e.
2016-08-04 20:45:42 +09:00
Hermet Park e6e81c29d5 correct memory free order. 2016-08-04 20:20:00 +09:00
Jaehyun Cho a4b07dad96 edc_editor: Fix to remove focus highlight on template selection button.
This patch is temporary patch to remove focus highlight on template
selection button of new file open. (enventor -t)
Without this patch, en_edit cannot get focus because its visibility is
set with false.
2016-08-04 20:14:40 +09:00
Hermet Park e24efc9c7e edc_parser: fix the memory corruption.
just realized that ecore_thread_cancel() wont call the thread cancel function instantly.
and this broke parser sequences that memory corruption.

Fix that situation to not write invalid memory.
2016-08-04 19:52:29 +09:00
Hermet Park b25d5dffa8 lib: thread optimization.
get out of threads if they are canceled.
threads don't need to perform their logic totally.
2016-08-04 19:25:18 +09:00
Hermet Park c5f59c63b8 edc_editor: fix a potential error.
Terminate redoundo instance after edc editor private resources are removed.
Redoundo has a entry delete callback, and it frees the redoundo private memory there.

But, if a redoundo instance is removed before entry delete callback is called,
invalid memory access will be happened.

Acutally this's broken memory.

So prevent this scenario by correcting function call order.

@fix
2016-08-04 19:10:21 +09:00
Bowon Ryu 4b693973b0 help: bug fix. entry scroller doesn't reset.
Test Plan:
1. enventor
2. press F1
3. select list item (shortcut keys)
4. scroll down
5. back
6. select list item (shortcut keys)
7. observe scroller's position

Reviewers: Hermet, Jaehyun_Cho, herb

Differential Revision: https://phab.enlightenment.org/D4213
2016-08-04 17:35:20 +09:00
Hermet Park fb4c8b70a8 edj_viewer: safety code.
+ null check
2016-08-03 19:55:58 +09:00