Commit Graph

1049 Commits

Author SHA1 Message Date
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
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 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 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 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
Hermet Park d84e1b11b6 text_setting: remove redundant code.
That code is totally useless at the moment.
I belive color palette will be introduced in enventor soon.
2016-02-16 21:46:51 +09:00
Hermet Park 86d07222f6 Revert "indent: Apply indentation for newly loaded edc file"
This reverts commit 66328e75f3.

This patch broke enventor :-(
please test with games/etypers/data/themes/etyers.edc
2016-02-13 03:32:29 +09:00
Hermet Park 4f9b9807cb Revert "indent: Cover comment line and block name for insert indentation"
This reverts commit ccee4e868d.
2016-02-13 03:32:02 +09:00
Jaehyun Cho ccee4e868d indent: Cover comment line and block name for insert indentation
Lexeme for insert indentation ends with comment line as well.
So a new line is inserted after comment line.
Lexeme for insert indentation does not end with '{' if block name is
written after the bracket.
So a new line is not inserted between '{' and block name.
2016-02-12 21:39:57 +09:00
Jaehyun Cho 66328e75f3 indent: Apply indentation for newly loaded edc file
Auto indentation is applied when an edc file is newly loaded.
2016-02-12 21:39:51 +09:00
taehyub e5bbb91914 console.c: error log redirecting when double click in console box
Summary:
When there are some errors in the edc, console box shows the error logs.
I added error log redirecting feature to find error word in the edc script.
Now, We just double click the console box to find error logs.

Test Plan:
  1. make some errors
  2. press ctrl + s
  3. do mouse double click in console box
  4. see the selection region of error word in edc script

Reviewers: Jaehyun_Cho, Hermet

Differential Revision: https://phab.enlightenment.org/D3652
2016-02-12 19:13:43 +09:00
Hermet Park 4710a53a94 main: remove unnecessary call
ELM_MAIN() calls elm_shutdown().
2016-02-11 22:07:10 +09:00
Hermet Park 7250db0b10 edc_editor: optimize bracket logic.
we don't need to apply bracket everytime.
Previously brackets didn't applied and current brackets are no valid either
then skip to apply bracket highlighting function.
2016-02-11 14:57:50 +09:00
taehyub 7811da09b0 Add bracket highlight function in thread function
Summary:
Add bracket highlight function in thread function.
It cause the entry scroller moving when scroller bar is unpressed.

@T3145

Reviewers: Hermet, Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D3671
2016-02-11 14:50:13 +09:00
Hermet Park fe41adaa28 support a guide text for editor ctxpopup.
introduce a new smart callback "ctxpopup,activated"

@feature
2016-02-09 17:51:11 +09:00
Hermet Park ab0dab409c stats: add a function to resize a live view.
previously, editor ctxpopup had inc/dec buttons to control values elaboratly.
I removed them because user could control them using mouse wheel.

I believe it's cleaner and nicer ui for enventor.

@feature
2016-02-09 17:19:23 +09:00
Hermet Park c5c352c917 ui: improve editor ctxpopup function.
allow +/- buttons' autorepeat functions.
2016-02-09 15:41:30 +09:00
Hermet Park ab8dc5f3ed ui: improve editor ctxpopup.
remove a entry in the editor ctxpopup.
we don't need to display entry anymore
since the changes is simulteniously applied into the editor text.
2016-02-09 15:32:42 +09:00
Hermet Park 9fda7d3407 improve ux: change editor ctxpopup direction order.
Come to think of it, up/down direction of ctxpopup is more comfortable
to watch the values updation while modifying the values in ctxpopup.
2016-02-09 02:07:44 +09:00