Commit Graph

1323 Commits

Author SHA1 Message Date
Jaehyun Cho 650c017df9 Revert "text_setting: Show monospaced fonts."
This feature is useful for small number of developers.
From the point of maintenance view, reverting this feature is better.

This reverts commit f391c03be0.
2016-02-23 18:59:07 +09:00
Jaehyun Cho e81fa2f350 Revert "text_setting: Change "Monospaced" to "Fixed-width"."
To revert commit f391c03be0, revert this
commit.

This reverts commit c3a8e7d03f.
2016-02-23 18:58:02 +09:00
Vyacheslav Reutskiy c47e5487ee theme: add name for unnamed parts 2016-02-23 10:30:32 +02:00
Jaehyun Cho 1af1cca8f6 config: Set default monospaced font on Ubuntu. 2016-02-23 16:51:57 +09:00
Jaehyun Cho c3a8e7d03f text_setting: Change "Monospaced" to "Fixed-width".
Change "Monospaced" to "Fixed-width" for better understanding.
2016-02-23 14:45:32 +09:00
Mykyta Biliavskyi 2005ee095c Indent: clean code. Delete unused variables. 2016-02-23 14:30:05 +09:00
Mykyta Biliavskyi 843f6cc195 Indent: add logic to paste formatted text above or below current line.
Checking the string from start till cursor position is empty.
And in case if this range is empty - formatted text will be
inserted above the current line.
2016-02-23 14:05:33 +09:00
Jaehyun Cho f391c03be0 text_setting: Show monospaced fonts.
Monospaced fonts are identified by fontconfig APIs.
(i.e. Monospaced fonts have a spacing value with 100.)
Therefore, showing monospaced fonts are available only if fontconfig is
installed.
2016-02-23 12:19:12 +09:00
Jaehyun Cho 9a4c1c667c config: Set default monospaced font on Windows and OSX. 2016-02-22 22:59:05 +09:00
Hermet Park b891b071be edc_navigator: not completed. but first patch set for base layout & infra 2016-02-22 20:44:41 +09:00
Jaehyun Cho 28a622d04e config: Set monospaced font as a default font. 2016-02-22 20:27:34 +09:00
Hermet Park 313274df6e fix broken view size reset.
implementing was missing. :(
2016-02-22 19:37:38 +09:00
Mykyta Biliavskyi 02b45c0719 Redoundo: Support the real-time preview when we undo/redo the code.
When user undo or redo change, the edc file will be recompiled and the
live view will be updated. There are two flow: in case if the change is buildable
(i.e. the edc file was builded sucessfuly, when this change happened)
edc file will be recompiled. In case when change marked as unbilduable -
nothing will happen.

@T3051
2016-02-22 18:49:46 +09:00
taehyub 92fe342039 apply ELM_CNP_MODE_PLAINTEXT mode to enventor entry
Summary:
When copy & paste in markup text mode, elm_entry does not support to close markup text.
In enventor the feature cause the color changes about the pasted text.
so I applied the plain text mode to prevent color changes when some text are pasted.

Test Plan
1. copy some text
2. paste anywhere
3. see the color of the text whether there are color changes or not

Reviewers: Hermet, Jaehyun_Cho, NikaWhite

Differential Revision: https://phab.enlightenment.org/D3717
2016-02-19 18:36:26 +09:00
Mykyta Biliavskyi 57c78d0993 Edj viewer: clean the list of the part names when module terminate. 2016-02-19 17:34:17 +09:00
Hermet Park 0eacf2eb08 one more doc updation. 2016-02-19 17:32:14 +09:00
Hermet Park 956141c920 update readme/about guide. 2016-02-19 17:29:29 +09:00
Yongheon, Shin dac33a48f6 Set the cursor region of part, when selecting in live editor
Summary: Set the cusor region of part, when selecting in live editor

Test Plan:
1. Open the enventor and load a sample
           2. Select a part in live editor

Reviewers: Jaehyun_Cho, Hermet

Subscribers: Jaehyun_Cho, Hermet

Differential Revision: https://phab.enlightenment.org/D3690
2016-02-19 17:02:28 +09:00
taehyub 5fceb29b5b fix the error word select function
Summary:
removed the animator creation when mouse double click in console box.
If use animator, there can be unexpected behavior like selection region is deleted when long script is loaded.
@fix

Reviewers: Hermet, Jaehyun_Cho, NikaWhite

Differential Revision: https://phab.enlightenment.org/D3714
2016-02-19 16:10:23 +09:00
Jaehyun Cho f2bae6cc6b indent: Refactoring indent_text_create().
Utilize indent_code_lines_create() function.
2016-02-19 14:58:42 +09:00
Jaehyun Cho 3871364b10 indent: Refactoring indent_text_auto_format().
Move the module parsing codes and creating code line list to
indent_code_lines_create() function.
2016-02-19 14:34:03 +09:00
Jaehyun Cho 02a4549906 indent: Apply indentation to newly loaded edc text
When an edc text is newly loaded, the edc text is indendted if its
indentation is not correct.
The indented text creation function, indent_text_create(), utilizes
the logic of indent_text_auto_format().
2016-02-19 14:19:41 +09:00
Jaehyun Cho 26b84340fe indent: Fix not to insert a new line between '{' and block state
<Test Case>
1. Copy "description { "default";" in basic.edc.
2. Paste

<Test Result>
Previously, a new line is inserted between "description {" and
""default";".
Now, the copied text is pasted.
2016-02-19 10:42:13 +09:00
Jaehyun Cho 63bff24817 indent: Fix indentation calculation in line comment 2016-02-19 10:36:52 +09:00
Jaehyun Cho d1674c0ef0 indent: Fix indentation calculation in macro 2016-02-19 10:36:25 +09:00
Mykyta Biliavskyi 726cd500a6 Edc parser: fix memory leak.
Function elm_entry_markup_to_utf8 returned malloc'ed buffer and
it should be freed.
2016-02-19 10:09:27 +09:00
Jaehyun Cho e0daa7936a indent: Fix to paste markup symbols
Previously, utf8 is set into textblock in copy&paste.
Now, markup is set into textblock in copy&paste.

<Test Case>
1. Copy "if (A && B) set_int(num, 1);"
2. Paste

<Test Result>
Previously, "if (A " is pasted.
Now, the copied text is pasted.
2016-02-19 09:30:47 +09:00
Hermet Park 30af154860 revise previous patch code.
d929258e57.

scalable.
icon.
etc...
2016-02-19 02:52:49 +09:00
taehyub d929258e57 add back button in menu and about screen
Summary:
Summary
There is no back button in menu and about screens.
So user cannot close the screens without 'escape key'.
To make more efficient I added back button on the screens.

Test Plan:
1. press 'esc' key
2. see the back button on the screen
3. prees 'F2' key
4. see the back button on the screen

Reviewers: Jaehyun_Cho, NikaWhite, Hermet

Differential Revision: https://phab.enlightenment.org/D3705
2016-02-19 02:26:15 +09:00
Hermet Park 33b1f74e48 removed logo from about page. 2016-02-19 02:21:47 +09:00
Hermet Park 811875fd04 fix build break. 2016-02-19 02:16:47 +09:00
Mykyta Biliavskyi 269bf8b393 Edc editor: improve search the cursor position for the selected part.
In parsing the part blocks added additional check for a block type name.
This make possible to differ names of the part block and names,
that uses inside attributes, style blocks, programs and etc.

fix T2977
2016-02-18 15:37:20 +09:00
Jaehyun Cho b2282f628b indent: Fix not to process complex logic for single markup symbols 2016-02-18 02:12:41 +09:00
Hermet Park 7108c1c05e fix broken live spacer image. 2016-02-17 22:46:43 +09:00
Hermet Park 67f80c2b03 remove minimum template code.
actually, empty template code is replaced with minimum template code.
orignally, empty template code is useless.
2016-02-17 22:15:01 +09:00
Hermet Park b15e55fa6e autocomp: generate lazy style code. 2016-02-17 22:13:24 +09:00
Hermet Park 958900962e editor: remove an unnecessary comment. 2016-02-17 21:57:49 +09:00
taehyub 44935bd484 remove unnecessary selection recover logic
Summary:
selection region recovery is applied twice in entry recover.
there are selection region recovery logic before elm_entry_selection_region_set,
but we also recover using elm_entry_selection_region_set.
it is unncessary code.

@fix

Reviewers: Hermet, Jaehyun_Cho, NikaWhite

Differential Revision: https://phab.enlightenment.org/D3709
2016-02-17 21:54:36 +09:00
Jaehyun Cho f7f9770dd1 templates: Keep coding conventions in basic.edc 2016-02-17 21:39:25 +09:00
Jaehyun Cho 503afcc4c5 indent: Fix not to insert a new line within macro
Do not insert a new line after '{', '}', ';' if it is within macro.

<Test Case>
1. Copy the following in edc.
"#define FN_COL_DEFAULT 255 255 255 255; color3: 0 0 0 128"
2. Paste

<Test Result>
Previously, a new line is inserted after ';' within the macro.
Now, the same text with the copied text is pasted.
2016-02-17 21:34:48 +09:00
Jaehyun Cho dffb6ead04 indent: Keep coding convensions in indent_text_auto_format() 2016-02-17 21:34:44 +09:00
Jaehyun Cho e5aa15a1df indent: Fix to insert a new line after comment line
<Test Case>
1. Copy the following in basic.edc.
"/* TODO: Please replace embedded image files to your application image files. */
images {"
2. Paste

<Test Result>
Previously, the new line between line comment and code disappears.
Now, the new line between line comment and code is preserved.
2016-02-17 21:34:40 +09:00
Jaehyun Cho f98127a485 indent: Fix to preserve separate code lines
If copied code lines are in the separate lines, then paste those code
lines in the separate lines.

<Test Case>
1. Copy the following in edc.
"TILED_HORIZ(120)
visible: 0;"
2. Paste

<Test Result>
Previously, those code lines are pasted in the same line.
Now, those code lines are pasted in the separate lines like original
code lines.
2016-02-17 21:34:37 +09:00
Jaehyun Cho f2d889dbf7 indent: Fix not to insert a new line between '{' and block name
<Test Case>
1. Copy "group { "main";" in basic.edc.
2. Paste

<Test Result>
Previously, a new line is inserted between "group {" and ""main";".
Now, the copied text is pasted.
2016-02-17 21:34:33 +09:00
Jaehyun Cho 91ae4f1c47 indent: Fix to paste copied text not ending with '{', '}', ';'
<Test Case>
1. Copy "group { "main"; parts" in basic.edc.
2. Paste

<Test Result>
Previously, "parts" is not pasted. But now it is pasted.
2016-02-17 21:34:28 +09:00
Jaehyun Cho 0b8734f14d indent: Fix to compare string before '\0' 2016-02-17 21:34:24 +09:00
taehyub cf417f8fa4 fix the unexpected selection problem
Summary:
There is a delay for getting selection start position.
It cause the wrong selection recovery.
so I modified the selection recover logic
using the selection region of entry.

@fix

Reviewers: Hermet, Jaehyun_Cho, NikaWhite

Differential Revision: https://phab.enlightenment.org/D3680
2016-02-17 20:37:22 +09:00
Hermet Park 28e9bebcc5 console: code refactoring
make it clean.
2016-02-17 19:16:39 +09:00
taehyub 83e66e43bd focus error notification when error is occured
Summary: select error word when error is occured

Test Plan:
1. make some error in edc script
2. press ctrl + s
3. see the selection region of error word

Reviewers: Hermet, Jaehyun_Cho, NikaWhite

Differential Revision: https://phab.enlightenment.org/D3681
2016-02-17 19:07:34 +09:00
Hermet Park d388f581e5 setting: fix broken view scale entries.
this seems caused by elementary change,
92d905ffa0e9c5b2f5b01885856349a010b49ee4
2016-02-16 21:58:58 +09:00