Commit Graph

1474 Commits

Author SHA1 Message Date
Jaehyun Cho cf92ba7a67 edc_parse: Check more cases to update EDC info correctly.
"#if", "#endif", and "#define" cases are checked to update EDC
information correctly.

This fixes commit 2fc82c79d3
2016-07-22 19:24:33 +09:00
Jaehyun Cho 7def9a7865 edc_parser: Fix to parse "#define" expression correctly.
Update pointer after parsing "#define" expression.
Parse other expressions after parsing "#define" expression.
2016-07-22 19:09:00 +09:00
Jaehyun Cho b8beb179be edc_parser: Parse utf8 text instead of markup text. 2016-07-22 19:00:12 +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
Jaehyun Cho 8b8aa1fdfe edc_parser: Fix to move pointer correctly. 2016-07-22 15:06:24 +09:00
Jaehyun Cho 7331eb0390 edc_parser: Fix to use "\n" instead of <br/> on parsing utf8. 2016-07-22 15:06:23 +09:00
Jaehyun Cho 9edd41ac45 edc_parser: Replace char* to const char*.
Replace char* to const char* because the string is not modified.
2016-07-22 15:02:28 +09:00
Jaehyun Cho 2fc82c79d3 Revert "Support to use macro as a group name."
This reverts commit 335575eb84

Although using macro as a group name is not a common usage, but it takes
a lot of efforts to maintain and implement new features based on this.
2016-07-22 14:32:26 +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
Thiep Ha 5d1cec3e7b correct returned value of focus_get function.
Function eventor_object_focus_get needs to return
Eina_Bool value.
2016-07-22 11:49:26 +09:00
Hermet Park d0f6bb2e36 syntax_color: improve macro keywords.
Set macro colors to the end of a strcuture,
if the define continues to the next lines with line wrapping.
2016-07-21 21:48:21 +09:00
Hermet Park f18efb732a edc_parser: fix typos. 2016-07-21 21:03:59 +09:00
Hermet Park 32bcf8b985 multi-file: allow to open an empty file. 2016-07-21 20:59:54 +09:00
Hermet Park eda850d9db multi-file: support edc navigator. 2016-07-21 20:53:13 +09:00
Hermet Park 505ea04e28 edc_editor: removed unused var. 2016-07-21 17:31:17 +09:00
Taehyub Kim 5ddaa8dbe5 live_edit: add more condition for min size of live edit item
Summary:
In case of the live edit item has min size without relative to part,
the size of the item should not be changed.
To cover this case, I added more condition

Test Plan:
1. launch envnetor
2. click a live edit item on tools
3. check the fixed option without "relative to" setting
4. insert the item with mouse double click
5. see the min size of the item while the view size is changing

Reviewers: Jaehyun_Cho, NikaWhite, bowonryu, Hermet

Differential Revision: https://phab.enlightenment.org/D4173
2016-07-21 17:25:11 +09:00
Hermet Park 7d88c580e1 goto: fix the go to window closing issue.
When go to window is unfocused, window is closed.
Though this behavior was intended, the functionality was not quite nice.
Even this caused a weired behavior(bug) on windows that,
go to window was closed when it's minimized.

So get rid of this policy!

@fix T3922
2016-07-21 17:13:21 +09:00
Jaehyun Cho 75f33b8f98 reference: Support keyword inheritance.
Support keyword inheritance by using #inherit expression.
(e.g. #inherit "collections.group.parts.part";)
2016-07-21 10:33:29 +09:00
Jaehyun Cho 04b5206d51 reference: Fix memory leak. 2016-07-21 10:30:02 +09:00
Jaehyun Cho 493e0dc0dd reference: Remove unused internal function. 2016-07-21 09:19:14 +09:00
Jaehyun Cho 8b0f1e175e reference: Add comments about how functions work. 2016-07-21 09:15:14 +09:00
Hermet Park 1cfb9985fb file_browser: skip folder items if their names are started with .
On the linux system, A folder, which name is started with . is intended hidden folders.
So skip appending them in default.
2016-07-20 19:43:47 +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 46fc271678 file_browser: compare file names exactly.
previously, it didn't care the relative paths.
compare file names but file paths exclusively.
2016-07-20 19:12:17 +09:00
Hermet Park f98b075d1e live_edit: add exceptional case.
If the live view size hasn't been set up yet,
live edit won't be functional.

Handles the case then displays the exceptional case message.
2016-07-20 18:59:15 +09:00
Hermet Park 58a1f10608 multi-file: ++implementation.
support live edit function.
2016-07-20 18:52:45 +09:00
Jaehyun Cho a768577e6c reference: Code refactoring to expand functionality. 2016-07-20 18:29:32 +09:00
Hermet Park 63f9dc9dee live_edit: rearrange objects stack.
Previously each live edit components are messed up in stacking.
Restacked by putting wireframe, dummy objects
below live edit object, control points, align lines and texts.

This required a totally hackishy method but there are no other solution so far.

@fix T4026
2016-07-20 15:00:37 +09:00
Hermet Park a5ecd83696 live_edit: fix typo? 2016-07-20 13:48:49 +09:00
Hermet Park d883a8c715 live_edit: don't displayed over the scroller.
Set a smart parent to actual view object so the control point
and texts to be clipped properly.
2016-07-20 13:46:51 +09:00
Jaehyun Cho 773b93e792 reference: Support keyword reference in multi-file structure.
Show keyword reference of the focused item entry.
Append "collections" to parent keyword list arbitrary if the focused
item is not the main item.
2016-07-19 21:28:18 +09:00
Jaehyun Cho 44e36e8b69 reference: Fix position of keyword reference layout. 2016-07-19 21:04:40 +09:00
Hermet Park 02a50da5d6 template: fix a invalid coordinates code generation.
fix a side effect of localizing floats.

_posix_fp() uses static stringbuffer.
If this function is called multiple times in printf(),
previous buffer data will be invalid.

we are calling this for x, y twice in one func.
2016-07-19 20:18:12 +09:00
Jaehyun Cho 763d7b2669 reference: Check dot('.') grammar to identify parent keyword.
Check dot('.') grammer (e.g. image.normal) to identify parent keyword.
2016-07-19 19:50:21 +09:00
Hermet Park 50b32ef8f4 live_edit: code refactoring.
remove hackish code.
you can write code prettier!
2016-07-19 19:47:43 +09:00
Hermet Park 2d9fd3588f multi-file: close live_view properly if the file is closed.
this commit is about stablizing mult-file functionalities.
2016-07-19 19:28:22 +09:00
Jaehyun Cho 5179e31f39 file_browser: Display sorted file list based on file type. 2016-07-19 17:00:48 +09:00
Jaehyun Cho f567d51776 reference: Fix to handle one character keyword.
Fix to handle one character keyword such as "x" and "y".
2016-07-19 13:23:26 +09:00
Hermet Park 09f19b7654 multi-file: improve a use case.
hide a previous preview if a new represent file hans't any viewable group.
2016-07-17 00:40:08 +09:00
Hermet Park d85f045099 preference_setting: update tooltip message. 2016-07-15 21:12:21 +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
Hermet Park cb46ee7d14 tools: use lower-case name for consistency. 2016-07-14 20:14:12 +09:00
Hermet Park 7ebc3e8c3c live_edit: updated tooltip msg. 2016-07-14 20:04:40 +09:00
Jean Guyomarc'h e910826ade template: don't localize floats in the edje editor
Summary:
Enventor live edit would generate invalid code with
the french locale.
Indeed, french uses a comma (",") as the decimal point,
instead of the dot. With localization enabled, printf()
would automatically localized the floating point,
introducing a comma in the edje code where a dot is
expected...

To avoid this, we now enclose the floats we don't want
to be localized (use the implicit POSIX local: with a dot)
in a function that looks the current locale and replace
the decimal point with a dot.

Test Plan:
(1) Without the patch, call LC_ALL=C enventor and see live
    edit if correct.
(2) Without the patch, call LC_ALL=fr_FR.UTF-8 envetor and
    see live edit generate invalid edje code.
(3) Apply the patch, and repeat steps (1) and (2) and observe
    that both cases now success.

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D4146
2016-07-14 13:58:06 +09:00
Bowon Ryu 8e0a3d8a98 console: apply syntax color for console error message
Summary:
current error message is hard to read.
if the message has a syntax color, then it will be better.

Reviewers: Hermet, herb, Jaehyun_Cho

Reviewed By: Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D4124
2016-07-13 11:00:48 +09:00
Jaehyun Cho b570f792ff file_browser: Code refactoring to fix file search crash.
Previously, searching files in file browser causes crash.
Now, each file browser data contains genlist item and the genlist item
is also deleted when the file browser data is deallocated.
2016-07-11 21:29:58 +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 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 ace06a6d8b multi-file: itemize redo/undo functions. 2016-07-07 19:13:25 +09:00
Hermet Park 50cb8c7d42 multi-file: highlight a part on current focused item. 2016-07-07 19:06:58 +09:00