Commit Graph

1976 Commits

Author SHA1 Message Date
Jaehyun Cho 60c5967920 build: Fix changing working directory correctly in all OS. 2016-08-24 17:01:33 +09:00
Hermet Park 5ea2c05dec edc_editor: fix syntax color issue.
Some cases, the edc editor can't apply syntax color
when it opens a new edc file.

we can cover this scanerio by trying  syntax color logic again
until it's succeed.

@T4275
2016-08-24 16:40:18 +09:00
Hermet Park b87adfb06c live_edit: eeek typo. 2016-08-24 16:20:20 +09:00
Hermet Park cd18635424 live_edit: fix wrong rounding() usage.
Probably, It needs to overwrite the rounded value to the origins,
but it missed.
2016-08-24 16:18:04 +09:00
Hermet Park 522e843414 file_mgr: fix the crash issue.
In some senario, file mgr lost focused item
and it's invalid memorry caused a crash issue.

now it's fixed.
2016-08-24 15:59:01 +09:00
Hermet Park c45c13d8bc cleanup unused warning. 2016-08-24 12:53:11 +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
Jaehyun Cho 202fecd511 file_mgr: Do not replace current main file if it is the new main file.
Replace the current main file to a sub file if it is not the new main
file.
2016-08-24 09:43:20 +09:00
Jaehyun Cho b6d9930e0a file_mgr: Remove redundant code. 2016-08-23 23:39:58 +09:00
Jaehyun Cho 5ae577f5ea file_mgr: Fix condition.
Fix condition based on the commit,
265626a86b
2016-08-23 23:34:39 +09:00
Jaehyun Cho c17f2f3e37 build: Support relative resource paths in sub edc file.
Relative resource paths in sub edc files are based on the current working
directory.
To support relative resource paths in sub edc files, set main edc file's
directory as the working directory when edje_cc is executed.

Test Plan:
1. Create "main.edc" in "./edc/" directory.
2. Create "sub.edc" in "./edc/sub/" directory.
3. Create "icon.png" in "./edc/image/" directory.
4. "main.edc" includes "sub.edc". (i.e. #include "./sub/sub.edc")
5. "sub.edc" uses "icon.png".
   (i.e. images.image: "./image/icon.png" COMP;)
6. Open "main.edc" in the current working directory.
   (i.e. enventor -w ./edc ./edc/main.edc -i ./edc/image)
2016-08-23 21:42:13 +09:00
Hermet Park 13fa36376c file_tab: bring in item when it's selected. 2016-08-23 09:33:23 +09:00
Hermet Park 63f3fae337 edj_viewer: fix the invalid size of part highlight for the text part.
My previous patch made a side effect that part highting size
wont be correct for the text part.

For now, disable the logic.
2016-08-23 09:07:40 +09:00
Hermet Park 30c32488e0 live_edit: multiply base_scale to the live edit object.
Previously, live edit object doesn't have base scale value
so text and textblock size is incorrect.

Now, its fixed.
2016-08-23 08:53:37 +09:00
Hermet Park 1e5ae3db45 stablize unstable worker threads.
Still there are unsafe thread functions that access invalid memory.
fix all of them.
2016-08-23 08:05:14 +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 3c2a31a8ff git rid of unnessary logic.
Previously, generated views were to terminated if the edj path is changed,
but it's not quite useful at any scenarios.

User may want to change just the edj output path without any input resources
changes.
2016-08-23 01:52:42 +09:00
Hermet Park 6c5edd4e34 theme: fix the wrong layout.
Tools should be overlaid on the content.
Previously, console was over the tools layer but it's wrong.
2016-08-23 01:07:50 +09:00
Hermet Park 0ffbb836c7 file_tab: bring in selected item properly.
When an item is newly added or selected, it should be brought in the view.
2016-08-22 22:52:37 +09:00
Hermet Park ddb4a44147 autocomp: add snapshot part. 2016-08-22 22:37:18 +09:00
Hermet Park 0633ff5ec9 syntax keyword: add "snapshot" keyword. 2016-08-22 22:35:28 +09:00
Jaehyun Cho 0f4b53b57a live_edit: Apply base scale in live edit.
When a part is added in live edit, base scale is applied to the minimum
size of the part.
2016-08-22 18:44:46 +09:00
Jaehyun Cho c4a02f9d05 Revert "live_edit: Apply base scale in live edit."
This reverts commit 05d92ed1c3.
2016-08-22 17:56:36 +09:00
Jaehyun Cho 1bc328d6de reference: Add keyword "base_scale". 2016-08-22 17:52:20 +09:00
Jaehyun Cho 9138b6be75 autocomp: Add keyword "base_scale". 2016-08-22 17:52:19 +09:00
Jaehyun Cho 05d92ed1c3 live_edit: Apply base scale in live edit.
When a part is added in live edit, base scale is applied to the part.
2016-08-22 01:34:22 +09:00
Jaehyun Cho 231ffaa7e1 lib: Add enventor_object_base_scale_get(). 2016-08-19 18:28:48 +09:00
Jaehyun Cho 675990ad3f live_edit: Apply round-off to view size and min size calculation.
To compute accurate view size and min size, apply round-off to view size
and min size calculation.
2016-08-19 18:28:47 +09:00
Jaehyun Cho 5126538a87 live_edit: Fix to reduce round-off error.
Round off values in the end to reduce round-off error.
2016-08-19 18:28:45 +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
Bowon Ryu c5a606e090 file_tab: update themes.
Summary:
update icon,
close button re-location.

Test Plan:
1. launch enventor with multi-file supports.
2. add items to file_tab
3. observe file_tab items.

Reviewers: Hermet, Jaehyun_Cho, herb

Differential Revision: https://phab.enlightenment.org/D4243
2016-08-19 13:05:34 +09:00
Taehyub Kim 6d109cf27a file_tab: add 'bring in' feature for the item out of file tab
Summary:
when the item of file tab which is in out of file tab view needs to be shown,
It should be moved into the file tab view

Test Plan:
1. launch enventor with multi-file supports
2. add item fully to the file tab
3. click next arrow in file tab and move the selection item
4. when selection item reached end of file tab
5. check the next item which is out of file tab view comes into the file tab view

Reviewers: Hermet, Jaehyun_Cho, NikaWhite, bowonryu

Differential Revision: https://phab.enlightenment.org/D4242
2016-08-19 12:59:06 +09:00
Hermet Park ec0d43a307 console: return function as soon as possible. 2016-08-19 12:57:39 +09:00
Taehyub Kim f0ab0ec9a9 edc_parser: move the functions in utils which are find_part and find_group to the edc_parser
Summary:
move hte functions in utils which are find_part and find_group to the edc_parser
since it is right way

Test Plan:
1. launch enventor
2. move cursor on part name in text view
3. press F3 key
4. check it works well

Reviewers: Jaehyun_Cho, NikaWhite, bowonryu, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D4240
2016-08-19 12:56:21 +09:00
Taehyub Kim 644d004f93 console: fix the selection function of console error message
Summary:
fix the selection function of console error message,
it was behavior broken since there is markup text in console message.
so I fixed it work well.

Test Plan:
1. launch enventor
2. make some error in text view
3. save
4. check the selection region in text view

Reviewers: Hermet, Jaehyun_Cho, NikaWhite, bowonryu

Differential Revision: https://phab.enlightenment.org/D4239
2016-08-19 12:52:31 +09:00
Taehyub Kim 74938a0f66 syntax_color: add NULL checking in macro_apply
Summary:
add NULL checking in macro_apply
@fix

Reviewers: Jaehyun_Cho, NikaWhite, bowonryu, Hermet

Differential Revision: https://phab.enlightenment.org/D4237
2016-08-18 17:06:23 +09:00
Hermet Park b5b39617f2 edj_viewer: don't update views if they were deactivated.
This fixes the wireframe issue that deactivated views' wireframes are appeared
when the file is updated.

This is only happened if edc collections is consisted with multiple edc files.
If edj file is updated, all generated views will be updated.
and wireframes will be also updated and appeared.

but we don't need to update the deactivated views even if the edj is
updated. we could this with an activated boolean and this will be much
optimized way for many generated views.
2016-08-18 00:27:56 +09:00
Hermet Park fa929055a2 edj_mgr: reduce the edj view caching time to 5 min. 2016-08-17 23:44:58 +09:00
Hermet Park 3d610f1898 theme: just modify the file permission.
keep the file permission consistency.
2016-08-17 23:30:17 +09:00
Hermet Park 026728b042 enable file browser, file tab in default.
set initalize base window size.
2016-08-17 22:53:14 +09:00
Taehyub Kim 6dbe2bc4e6 statusbar: disable focus for resize slider bar
Summary: disable focus for resize slider bar

Test Plan:
1. launch enventor
2. show resize ctxpopup using status bar
3. check the focus is disable

Reviewers: Hermet, Jaehyun_Cho, NikaWhite, bowonryu

Differential Revision: https://phab.enlightenment.org/D4232
2016-08-17 22:30:39 +09:00
Taehyub Kim 7e1a4c00a7 edc_editor: add NULL checking in edit_cursor_double_clicked_cb
Summary:
add NULL checking in edit_cursor_double_clicked_cb
@fix

Reviewers: Jaehyun_Cho, NikaWhite, bowonryu, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D4234
2016-08-17 22:29:31 +09:00
Taehyub Kim 950734d000 auto_comp: apply strncpy in context_lexem_thread_cb
Summary:
apply strncpy in context_lexem_thread_cb
@fix

Reviewers: Jaehyun_Cho, NikaWhite, bowonryu, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D4236
2016-08-17 22:28:16 +09:00
Taehyub Kim a47b12bd53 syntax_color: add NULL checking in macro_key_push function
Summary: add NULL checking in macro_key_push function

Reviewers: Jaehyun_Cho, bowonryu, NikaWhite, Hermet

Reviewed By: NikaWhite, Hermet

Differential Revision: https://phab.enlightenment.org/D4235
2016-08-17 22:22:53 +09:00
Taehyub Kim 1665ac9ba6 enventor_smart: add NULL checking
Summary:
add NULL checking in syntax_color_set and syntax_color_get API
@fix

Reviewers: Jaehyun_Cho, NikaWhite, bowonryu, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D4233
2016-08-17 22:21:16 +09:00
Jaehyun Cho e646da1ee0 search: Move "Next" button to the right of "Previous" button. 2016-08-17 15:39:37 +09:00
Taehyub Kim bc5a7b3c36 edc_editor: support to jump to the part define
Summary: add the new feature to jump to the part define

Test Plan:
1. launch enventor
2. click mouse right button on "relative to" part name in text view
3. check selection is on the part define

Reviewers: Hermet, NikaWhite, bowonryu, Jaehyun_Cho

Reviewed By: Jaehyun_Cho

Tags: #enventor

Differential Revision: https://phab.enlightenment.org/D4167
2016-08-16 22:00:01 +09:00
Hermet Park 4b22c006b1 edj_viewer: ++safety.
add a null check.
2016-08-16 17:28:54 +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