Commit Graph

693 Commits

Author SHA1 Message Date
ChunEon Park 858c2f3001 panes: removed unused. 2014-08-10 17:53:15 +09:00
ChunEon Park 0660e4904a panes: code refactoring.
migrate global variables to structure.
2014-08-10 17:51:02 +09:00
ChunEon Park 7a771f79e2 console: implemented basic infra 2014-08-10 17:46:14 +09:00
ChunEon Park ac1430ded0 build: build with ecore_exe and notify errors. 2014-08-09 20:03:06 +09:00
ChunEon Park 3eeec96897 ctxpopup: free the resource after use 2014-08-09 14:39:09 +09:00
ChunEon Park 64f7cccd5f template: code refactoring.
spllit out the template functions from edc_editor.
2014-08-09 14:29:51 +09:00
ChunEon Park 56c33ba6aa edc_editor: request edc file mapping all in reading. 2014-08-08 19:59:40 +09:00
Mykyta Biliavskyi 0486a03074 menu: Update window title on creation empty project.
Summary:
empty file creation changes window title.
Sets filepath into title. @fix

Reviewers: Hermet

Reviewed By: Hermet

Projects: #enventor

Differential Revision: https://phab.enlightenment.org/D1287
2014-08-08 18:45:36 +09:00
ChunEon Park 5944f3d4c1 statusbar: improve layout.
improve structure to be customizable.
also, this removes the annoying padding at the end of the group name.
2014-08-08 17:32:46 +09:00
ChunEon Park 072a088a73 menu: adjust some messages. 2014-08-07 23:01:32 +09:00
ChunEon Park 89a65c680c template: refactoring.
revise the code.
2014-08-07 22:32:27 +09:00
Kateryna Fesyna 7d24fc8a3c [EDC-Editor] Make template of parts to use unique names on insertion
Summary:
To create templates with unique name the counter of created parts is added to the Configure Data.
The line with the name of the part is placed in separate template because it is the same for each part template.

Reviewers: Hermet

Projects: #enventor

Differential Revision: https://phab.enlightenment.org/D1278
2014-08-07 21:59:51 +09:00
Mykyta Biliavskyi e9950a2869 redoundo: dismiss text selection after redo/undo action.
Summary: after apply diff from undo/redo queue any text selection in the entry will be dismissed. Fixes T1483  @fix

Reviewers: Hermet

Reviewed By: Hermet

Subscribers: kfesyna

Projects: #enventor

Maniphest Tasks: T1483

Differential Revision: https://phab.enlightenment.org/D1285
2014-08-07 21:58:48 +09:00
Mykyta Biliavskyi 717ad0148e menu: Fix change window title.
Summary: When file saved with new name -  changes title of main window. @fix

Reviewers: Hermet

Projects: #enventor

Differential Revision: https://phab.enlightenment.org/D1286
2014-08-07 21:57:44 +09:00
ChunEon Park e804f00371 edc_editor: update file path on title exactly. 2014-08-07 21:55:13 +09:00
ChunEon Park 48bff46168 edc_parser: support action slider for color2, color3 keywords. 2014-08-07 16:01:59 +09:00
Mykyta Biliavskyi de98785cc4 redoundo: fix cursor position after redo action.
Summary: cursor set after inserted symbol(or string) and shifted left after delete. @fix

Reviewers: Hermet

Reviewed By: Hermet

Projects: #enventor

Differential Revision: https://phab.enlightenment.org/D1284
2014-08-07 15:36:45 +09:00
Mykyta Biliavskyi 8067dfe916 redoundo: fix cursor position after undo action.
Summary: cursor sets after inserted symbol(or string) and shifted left after delete. @fix

Reviewers: Hermet

Reviewed By: Hermet

Projects: #enventor

Differential Revision: https://phab.enlightenment.org/D1283
2014-08-07 15:28:38 +09:00
Mykyta Biliavskyi 911341c30b edc_editor: fix segfault on last character undo.
Summary:
In case when undone character(s) in entry, was call updating syntax highlight. If entry is empty, then pointer of text  didn't cleared and it was cause segfault in evas_textblock module.
@fix Fixes T1480

Reviewers: Hermet

Subscribers: kfesyna

Projects: #enventor

Maniphest Tasks: T1480

Differential Revision: https://phab.enlightenment.org/D1272
2014-08-07 15:25:26 +09:00
ChunEon Park 925bc6f06e fix shadow, unused build warnings. 2014-08-06 18:02:54 +09:00
Mykyta Biliavskyi 414e604273 indent: enhanced integration with Redo/Undo module.
Summary: in case when was adding or deleting line, will sent changing whitespaces (add/delete) from module "indent"  into undo/redo module. Fixes T1481 @fix

Reviewers: Hermet

Subscribers: kfesyna

Projects: #enventor

Maniphest Tasks: T1481

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

Conflicts:

	src/bin/indent.c
2014-08-06 17:17:34 +09:00
ChunEon Park ce373ec81f indent: code refactoring.
apply simpler code.
2014-08-06 16:56:53 +09:00
ChunEon Park 0919238358 indent: free the used memory. 2014-08-06 16:52:05 +09:00
Mykyta Biliavskyi 8880e402a4 edc_editor: Fix template text range for undo/redo feature.
Summary: fixed take start position of pasted templates. Fixes T1484 @fix.

Reviewers: Hermet

Subscribers: kfesyna

Projects: #enventor

Maniphest Tasks: T1484

Differential Revision: https://phab.enlightenment.org/D1277
2014-08-06 16:16:49 +09:00
ChunEon Park f986ac38a1 code refactoring.
specify 'void' for void arguments functions to catch up the warnings more intensively.
2014-08-05 15:32:12 +09:00
ChunEon Park ea7ba535e3 redoundo: fixed typo. 2014-08-02 18:39:05 +09:00
ChunEon Park 1a75d9f18e redoundo: remove odd line status updation call. 2014-08-02 18:33:23 +09:00
ChunEon Park bfcc188551 editor: set line number status correctly when edc is empty. 2014-08-02 18:26:14 +09:00
ChunEon Park 9da55623c7 editor: update current line status properly.
put the line updation in the line inc/dec functions to be ensure.
2014-08-02 18:15:22 +09:00
ChunEon Park dfabf9d122 goto: removed a period in the message 2014-08-02 17:58:27 +09:00
ChunEon Park 518f193d1e goto: removed an empty line. 2014-08-02 17:45:09 +09:00
ChunEon Park faa6781753 goto: allow only digits input 2014-08-02 17:40:51 +09:00
ChunEon Park 34919344e4 editor: additional descriptive messages.
display a message when no text to be redoundo.
2014-08-02 17:18:21 +09:00
ChunEon Park e81058d2f8 editor: display redo/undo message. 2014-08-02 16:59:37 +09:00
ChunEon Park 3cd276bc49 editor: update line status when text is changed. 2014-08-02 16:53:06 +09:00
ChunEon Park 950d2943a1 revise redo/undo code 2014-08-02 16:41:24 +09:00
Mykyta Biliavskyi 06695c7c55 Redo/Undo: implementation of redo/undo feature.
Summary:
Add module redoundo.c/.h.
Support:
  -    auto intend feature;
  -    autocomplete feature;
  -    code templates insert;
  -    paste text from buffer;
  -    line delete.

Control keys: Undo - **ctrl+z**; Redo - **ctrl + y**.

Need to implement:
  -    API for setting max size queue of changes.
  -    Smart algorithm for management changes.

Known issues:
 on large text(more than 1000 chars) redo, sometimes text inserted in wrong position;

Reviewers: Hermet

Subscribers: Hermet

Projects: #enventor

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

Conflicts:

	src/bin/Makefile.am
	src/bin/menu.c
	src/include/Makefile.am
	src/include/common.h
2014-08-02 14:00:55 +09:00
ChunEon Park cb0e70bff9 finished the missed code clean up.
This is an additional code change from this commit.

e592d65053
2014-07-31 22:42:15 +09:00
ChunEon Park e592d65053 code refactoring.
split setting.c out from the menu.
2014-07-30 18:10:18 +09:00
ChunEon Park cbfe14c87c refactoring code.
renamed the edc file, group names to be more clear.
2014-07-30 17:02:08 +09:00
Kateryna Fesyna eee06afa2e edc_editor: focus lose on left-arrow key is pressed
Summary:
Call elm_object_focus_allow_set() function for en_line entry to
forbid focusing it, so en_editor would not lose its focus.

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D1246
2014-07-29 16:33:22 +09:00
Jaehyun Cho 93f2148e43 enventor: Add log messages for memory allocation error
Summary: Add log messages for memory allocation error

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D1245
2014-07-28 13:42:14 +09:00
ChunEon Park 9505d24711 edc_editor - fix the vertical scroller disappear on ctrl+v
Reproduce Step:
  a. Open new empty project.
  b. Input 'collections {'
  c. Copy and paste edc text (for example elementary video.edc text) to the Enventor edit window.

Current result: vertical scroller is not shown
Expected result: vertical scroller is shown

Signed-Off-By:Kateryna Fesyna<k.fesyna@samsung.com>
2014-07-26 14:10:14 +09:00
ChunEon Park 3771fc8afb edc_editor - fix the disappear scrollable functionality.
Reproduce Step:
 a. Set font scale to 2.0;
 b. Set entry cursor to 1st position;
 c. Press Enter;
 d. Set cursor to 1st position;
 e. Press backspace;
 f. Press Del;

Current result: disappear scrollable functionality;
Expected result: delete 1st line.

Signed-Off-By:Kateryna Fesyna(k.fesyna@samsung.com)
2014-07-26 14:08:27 +09:00
ChunEon Park bdc865a84c dummy_obj - update properly when the swallow part is changed. 2014-07-19 16:03:46 +09:00
ChunEon Park 515efc710b fixed some memory leaks. 2014-07-19 15:50:40 +09:00
ChunEon Park c5d1467513 edc_parser - fixed memory leaks 2014-07-19 15:34:47 +09:00
ChunEon Park 6d0c720b20 fixed some memory leaks that detected by valgrind. 2014-07-19 15:07:25 +09:00
ChunEon Park 3d8ca8112f statusbar - enable in default 2014-07-19 14:45:07 +09:00
ChunEon Park 1430eb9741 auto_completion - adjust scale value 2014-07-19 13:56:26 +09:00
ChunEon Park 408e6fd04d template - add a new template, minimum 2014-07-19 13:55:24 +09:00
ChunEon Park e84a03968a newfile - allow enter key for selecting an item. 2014-07-19 13:39:07 +09:00
ChunEon Park 3c0f61b4aa auto_completion - fix indentation 2014-07-19 13:35:35 +09:00
ChunEon Park adae9b6fd3 introduce new feature, auto completion. 2014-07-19 13:31:08 +09:00
ChunEon Park 4db65212a7 goto,search - fix gui scalability 2014-07-15 22:59:39 +09:00
ChunEon Park 544965020c editor - increase lines by one function call. 2014-07-15 22:16:23 +09:00
ChunEon Park 01ceaa935c set focus on editor correctly.
previous menu_open_depth() is invalid bacause the menu would have close animation.
so right after closing the menu, the menu depth was invalid.

now get the menu depth and set focus on the editor after closing animation is finished.
2014-07-12 17:17:18 +09:00
ChunEon Park 17db0c8e96 newfile - support double click item selection. 2014-07-12 16:14:16 +09:00
ChunEon Park 5b6785e252 edj_viewer - recover the live view feature.
Since the edje has been lost the edj file watching,
enventor implement it by it's own way.
2014-07-12 16:01:50 +09:00
ChunEon Park d216fd9c42 fixed compile warnings. 2014-07-12 14:21:02 +09:00
ChunEon Park 6d26867030 newfile - get focus as it opened. 2014-07-10 16:21:07 +09:00
ChunEon Park 70477f47a4 newfile - new feature come.
now user choose a template at new file.
2014-07-10 13:43:55 +09:00
ChunEon Park 2659e31255 menu - code refactoring.
renamed internal function.
2014-07-09 16:32:06 +09:00
ChunEon Park b2bb300c3c editor - fixed missing line feeds when reading a edc file. 2014-07-07 22:33:38 +09:00
ChunEon Park 9e3bee763e enventor - discard selection region when goto is activated. 2014-06-08 13:25:47 +09:00
ChunEon Park e1c194544c editor - recover selection region next to the syntax color applying. 2014-06-08 13:17:06 +09:00
ChunEon Park 4803251ae3 tools - fixed toolbar find/replace crash.
passed the missed argument.
2014-06-08 02:46:38 +09:00
ChunEon Park 95027e091a search - reset the current search position.
Reset search position because search requests syntax color partial apply
when it's window is unfocused. the selection region would be dismissed.
So reset.
2014-06-05 01:09:00 +09:00
ChunEon Park e0b2ed26aa search - cancel entry selection before reset the region. 2014-06-05 00:58:02 +09:00
ChunEon Park 4e8e915cbe search - fixed missing of a next word selection.
This is a side effect of partial syntax color updation.
Apply syntax color full updation if search mode is enabled.
and whenever word is replaced, repeat the syntax color full updation again.
2014-06-05 00:50:41 +09:00
ChunEon Park 0cd86f1289 editor - fix the incorrect line increase at copy & paste. 2014-06-04 22:37:00 +09:00
ChunEon Park 5f14bcbdd7 Revert "enventor - disable auto scroll mode."
This reverts commit 5fe34acc35.

Conflicts:

	src/bin/main.c
2014-06-02 16:27:54 +09:00
ChunEon Park 96f1c73338 main - enable highlight clip. 2014-06-02 13:13:09 +09:00
ChunEon Park 5fe34acc35 enventor - disable auto scroll mode.
auto scroll is not proper for the traditional editor users who may be familiar with it.
2014-06-02 13:10:47 +09:00
ChunEon Park 6f956dc9cc goto - implemented goto button callback. 2014-06-01 16:34:34 +09:00
ChunEon Park de2dedaa13 tools - added a goto item. 2014-06-01 16:13:38 +09:00
ChunEon Park 209c34caad tools - rename internal functions.
to be more descriptive names.
2014-06-01 16:01:27 +09:00
ChunEon Park fc50097f0f close child windows if setting is opened. 2014-06-01 15:55:24 +09:00
ChunEon Park ed89dd1d97 editor - calc entry forcely after textblock change 2014-06-01 15:49:40 +09:00
ChunEon Park 0cf6bf5b51 goto - added new feature, go to line 2014-06-01 15:35:54 +09:00
ChunEon Park 285c2ff530 editor - fix confiction between amp and escaped words.
When texts includes '&' symbol, it missed the character in editor.
Now the logic is considered to recognize it correctly.
2014-05-31 17:33:33 +09:00
ChunEon Park 2b40f3d578 syntax_color: adjust updation time while scroller size is beging changed. 2014-05-31 16:20:01 +09:00
ChunEon Park f559e67402 theme - removed panes buttons 2014-05-30 19:53:09 +09:00
ChunEon Park 502d53d6f1 edit - use a exist function to set the state. 2014-05-29 15:23:10 +09:00
ChunEon Park fd8ec65fe7 editor - make state change when line is deleted. 2014-05-29 15:20:39 +09:00
ChunEon Park f2ddb56c5a syntax_color - revise code to be simpler logic. 2014-05-27 17:36:25 +09:00
ChunEon Park b73103a2d7 editor - use a thread for syntax color full updation. 2014-05-27 17:17:15 +09:00
ChunEon Park dee1f3c1af editor - set syntax color text rage in experimental. 2014-05-27 16:30:09 +09:00
ChunEon Park f0afae6853 syntax_color: missed change from 67cf449fdd. 2014-05-27 13:56:22 +09:00
ChunEon Park 67cf449fdd syntax_color: improve syntax color.
apply syntax_color on whole texts if the scroll vbar is pressed.
so as if it's not on the partial text updating.

one more thing to do is,
applying multi-thread in this case to not block the user interaction.
2014-05-27 13:52:15 +09:00
ChunEon Park dc9482a42a syntax_color: apply syntax_color right now if the template code is inserted. 2014-05-27 11:23:41 +09:00
ChunEon Park a6e2f4cc23 editor - ahhh not enought.. more detail message again. 2014-05-26 23:52:19 +09:00
ChunEon Park 2b34749b8f editor - more detail message. 2014-05-26 23:50:57 +09:00
ChunEon Park 65a48e0cd8 syntax_color: use the strchr instead of strstr to find a character. 2014-05-26 23:49:02 +09:00
ChunEon Park 6104c3cd7f syntax_color: apply syntax_color on only visible text region.
it's really faster than before while editing large text.
2014-05-26 23:35:57 +09:00
ChunEon Park c6b7f30c5d syntax_color: improve logic for applying color elaborately.
Until this patch, it applied the color to subwords.
Now, it applies the color to only independet words.
2014-05-23 13:43:15 +09:00
ChunEon Park 8f9ceccee5 editor - cheating for performance.
I'm not sure this will be problem.
ut it can avoid entry_object_text_escaped_set() in Edje.
Logically that's unnecessary in this case.
2014-05-22 22:17:12 +09:00
ChunEon Park 1fb51951fe syntax_color - more simple api call as possible. 2014-05-22 19:34:06 +09:00
ChunEon Park 5fc6fce8ff syntax_color - append string only if it's valid. 2014-05-22 18:56:43 +09:00
ChunEon Park a7deebef00 syntax_color - refactoring code.
1. removed redundant code
2. split out internal function to reduce function complexity.
2014-05-22 18:52:40 +09:00
ChunEon Park fe1d934cf1 syntax_color - rename internal function. 2014-05-21 21:16:43 +09:00
ChunEon Park 4120f2c75c syntax_color - free memory as soon as possible. 2014-05-21 21:15:06 +09:00
ChunEon Park 0128690266 syntax_color - revise macro color apply logic. 2014-05-21 21:10:05 +09:00
ChunEon Park 0b1f5759f9 syntax_color - code refactoring.
moved a structure var to global
2014-05-21 10:59:43 +09:00
ChunEon Park 27b47b536e syntax_color - cutoff "()" from the macro keywords. 2014-05-21 10:50:32 +09:00
ChunEon Park 87e76c3b35 syntax_color - removed define color.
it's merged to macro color.
2014-05-21 10:36:15 +09:00
ChunEon Park 921f4b274b syntax_color - support macro color 2014-05-21 10:19:46 +09:00
ChunEon Park a9aa904b63 syntax_color - apply an additional color to strings 2014-05-20 20:09:14 +09:00
ChunEon Park 7e27aeead1 syntax_color: initialize it on the multi-thread. 2014-05-20 16:54:41 +09:00
ChunEon Park 4e015e7678 parser - use inarray instead of inlist.
Since we know the item count is constant, inarray is better than inlist.
2014-05-20 16:37:29 +09:00
ChunEon Park 2b14f9a6fc parser - use array instead of list.
Since we know the item count is constant, array is better than list.
2014-05-20 13:28:24 +09:00
ChunEon Park 81c4a9fde2 syntax_color: improved syntax_color to be configurable. 2014-05-19 01:26:47 +09:00
ChunEon Park 9595c206b8 editor - updated displaying max line if max line is changed.
when just one line is deleted or entry selection cleared,
the max line is not updated in the status bar.

now it's fixed.
2014-05-17 18:19:18 +09:00
Ryuan Choi c88e9bf9d3 Fix the crash when user passed wrong input file.
ex) enventor a/b.edc
2014-05-15 20:54:14 +09:00
ChunEon Park 1f7f52a9ea syntax_color: introduce cache buffer for syntax apply.
It avoids copying of text buffer, every syntax color apply time.
2014-05-15 17:12:37 +09:00
ChunEon Park ed8c3b2922 syntax_color - refactored syntax color apply logic.
now, it method changed to look-up table way for more equational processing in various cases.
Also, this change is a preliminary job for configurable syntax color.
2014-05-15 16:15:36 +09:00
ChunEon Park 1191f306a5 syntax_color - support more keywords 2014-05-14 19:24:52 +09:00
ChunEon Park afeb32650e editor - fix a bug that empty space is dangled in the end of lines.
while adding/removing text lines, this bug is happened.
fixed now.
2014-05-14 17:21:37 +09:00
ChunEon Park 7892ce8dd5 editor - fix buggy line number displaying.
don't be clean up line numbers even edc text is clear.
the minimum line number should be 1.
2014-05-14 15:59:49 +09:00
ChunEon Park da7a97094b edj_viewer - remove workaournd code.
I checked text ellipsis works fine now.
and this workaround code causes the view center zooming issue.
2014-05-13 18:18:28 +09:00
ChunEon Park 034d3df585 main - clean up some workaround code about entry odd character insertion.
After zmike modified that edje_entry inserts odd characters if the control key doesn't supported,
this workaround code is not required anymore.
2014-05-13 00:08:54 +09:00
ChunEon Park b653cf3b28 main - Modified font size short cut key.
Now you can change font size by using mouse wheel.

If the cursor is on the edje view, the view scale will be changed,
if the cursor on the editor, on the other hand, the font size will be changed.
2014-05-12 23:44:49 +09:00
ChunEon Park e9f59eccf6 config - downgrade config file missing message. 2014-05-12 22:59:26 +09:00
Carsten Haitzler eff12796ba show window after filling it with content - then wm can place it properly 2014-05-12 18:04:22 +09:00
ChunEon Park cf0024b02f editor - fixed incorrect handle declare. 2014-04-01 16:05:08 +09:00
ChunEon Park 869da9c8eb parser - enable "action" keyword for candidate list. 2014-03-18 19:47:15 +09:00
ChunEon Park 932befedb3 menu - slience warnings.
removed unused var.
2014-03-17 19:42:58 +09:00
ChunEon Park d97b09e696 syntax_color - support more keywords 2014-03-16 19:06:49 +09:00
ChunEon Park d183d190b4 parser - keep the code convention. 2014-03-16 18:49:54 +09:00
ChunEon Park 425fa01a69 parser - reverted not intended change. 2014-03-16 18:37:18 +09:00
ChunEon Park 119733150f parser - removed unused function. 2014-03-16 18:34:41 +09:00
ChunEon Park 07e824bb79 parser - initialize on a different thread.
since the parser initialization task is getting bigger and bigger,
do it with a separated thread to reduce enventor launching time.
2014-03-16 18:29:58 +09:00
ChunEon Park 1e43635a9b parser - support action candidates list.
commented out at this moment because of the ctxpopup sizing problem.
2014-03-16 18:13:27 +09:00
ChunEon Park 634c061e0e code clean up
use the macro for br tag.
2014-03-16 18:01:47 +09:00
ChunEon Park 512d16d1cf ctxpopup - support part state candidates list. 2014-03-16 17:55:34 +09:00
ChunEon Park 97e66a19fe editor - don't try parse the selection if the text is started with quatation mark.
there are no case that ctxpopup candidate texts have the quation mark.
we can skip unnecessary parsing as possbile.
2014-03-16 13:52:30 +09:00
ChunEon Park 59a599a3b9 parser - string check more strictly. 2014-03-16 13:40:28 +09:00
ChunEon Park c6605c58a5 code clean up.
removed missed null check.
2014-03-16 13:28:11 +09:00
ChunEon Park a25fccbd9b ctxpopup - display image if it's found in the default image path. 2014-03-16 13:21:09 +09:00
ChunEon Park 12b3582505 ctxpopup - code clean up
declare additional internal functions for readability.
2014-03-16 12:55:59 +09:00
ChunEon Park 669615475e ctxpopup - support program candidates list 2014-03-16 12:43:25 +09:00
ChunEon Park f61c99539a ctxpopup - support image candidate list. 2014-03-16 12:31:08 +09:00
ChunEon Park d3ce44efe3 parser - code clean up
sort the piece of the code by types.
2014-03-16 12:04:33 +09:00
ChunEon Park ca4d7b0ddf code clean up - missed null check remove. 2014-03-16 11:58:17 +09:00
ChunEon Park 90c71719ba code clean up
removed unnecessary null check.
2014-03-16 11:51:02 +09:00
ChunEon Park f06df61b07 code refactoring - use EINA_LIST_FREE() 2014-03-16 04:43:17 +09:00
ChunEon Park 56cab4a95c ctxpopup - support part candidates list. 2014-03-16 04:36:33 +09:00
ChunEon Park a098df0ad7 ctxpopup - code refactoring.
use the enum type for the  candidate types extension later.
2014-03-16 00:59:02 +09:00
ChunEon Park 2c98f69475 parser - removed empty lines 2014-03-15 23:49:36 +09:00
ChunEon Park 24235f4355 newfile - open a new file with command line specified file path.
Previously, the edc file is not exists that specified on the command line,
then the new file was opened with /tmp/.proto.edc

Now, the file path will be kept with user specified.
2014-03-15 17:20:42 +09:00
ChunEon Park 7919f98111 editor - fix the group switching bug.
previuosly the group switching would be done only when part highlight is enabled.

now, it tries group switching regardless of the part highlight
2014-03-15 16:23:18 +09:00
ChunEon Park 1ff1659cca code clean.
line wrap when it reaches to 80 characters.
2014-03-15 16:09:05 +09:00
ChunEon Park f43fd3d932 editor - fixed typo. 2014-03-15 15:33:45 +09:00
ChunEon Park 7a7d220fc8 editor - fixed side effect by 50a975b0ce
since the \<br\> tag appending order is changed.
these functions should be updated also.
2014-03-15 15:32:16 +09:00
ChunEon Park 27e85c6acc editor - pass the required enum value to the elm_entry_line_wrap_set() API 2014-03-15 02:53:56 +09:00
ChunEon Park 50a975b0ce editor - optimize line number appending workflow.
Before this patch, it appended each lines number text separately to the line number entry when it reads an edc.
This caused the sizing calculation for every appending.

Now it appends the line numbers to one buffer,
and set it to the line number entry when all lines are readied.

Consequently, the sizing calculation time is much reduced at the edc reading time.
2014-03-15 02:37:41 +09:00
ChunEon Park afaa70f21f editor - removed one line leftover spacing in the editor lines.
Don't apply <br> tag to end of the last line text.
This caused the one empty line spacing.

Now it's fixed.
2014-03-15 01:45:16 +09:00
ChunEon Park 654e8432c3 statusbar - Don't toggle the state when eventor is launching. 2014-03-14 18:00:47 +09:00
ChunEon Park d114f49208 this line was not intended... removed it. 2014-03-14 12:57:24 +09:00
ChunEon Park 93cecf42c2 newfile - fix that eventor couldn't open an edc on command line.
a side effect that caused by this change

5a4d2baaf3
2014-03-14 12:55:02 +09:00
ChunEon Park 7fb77f2c9f tools - use the icon groups instead of the separate icon files. 2014-03-13 13:18:25 +09:00
ChunEon Park 7ab80a9c14 status - don't display part highlight message when setting change is applied. 2014-03-13 04:12:14 +09:00
ChunEon Park 5a4d2baaf3 newfile - open real "new" template code when NEW file is requested.
previously, it doesn't open a new template code but modified one.
now it's fixed.
2014-03-13 03:54:03 +09:00
ChunEon Park 2a19e99079 parser - fix the inccorect decision to
When the user double clicks a word,
enventor parser checks whether the word is regarded to some values
that ctxpopup shows the candidates list of (for other values).

In case the user just clicks the ":" and ";"
the parser misjudges it's the values that chould be changes to other values.

Now parser avoids the both cases to do nothing.
2014-03-13 03:11:01 +09:00
ChunEon Park b9f8a09820 syntax_color - add a keyword CURRENT 2014-03-11 09:54:12 +09:00
ChunEon Park 8dcd605806 editor - now u can delete a current line with Ctrl+D 2014-03-11 00:01:23 +09:00
ChunEon Park edbf669979 enventor - on implementing line deletion. 2014-03-10 02:15:31 +09:00
ChunEon Park a8cf964d1c menu - just name change 2014-03-09 01:53:41 +09:00
ChunEon Park 8eb5e36f30 menu - recover tools status when reset button is clicked. 2014-03-09 01:26:19 +09:00
ChunEon Park 084211579f hotkeys - renames to tools
conceptually, the function is changed.
2014-03-09 01:22:54 +09:00
ChunEon Park a565c48f24 statusbar - updated statusbar
reset shortcut key from f6 to f10
refactored internal function.
2014-03-09 01:12:28 +09:00
ChunEon Park 60a74d4676 hotkeys - redesign ui.
migrate toggle key to setting menu
2014-03-09 01:05:26 +09:00
ChunEon Park c8e85f3a68 f5/f6 short cut keys had multiple functions.
caused by dc3ce7be3f
2014-03-08 22:58:08 +09:00
ChunEon Park dc3ce7be3f hotkeys - redesign ui 2014-03-08 22:55:48 +09:00
ChunEon Park cd4b4a8d04 editor - +fixme comment for future. 2014-03-08 13:30:50 +09:00
ChunEon Park c9edf14ebe search - removed duplicated code 2014-03-08 04:03:19 +09:00
ChunEon Park ce21b115e9 search - display a message if there is no text backward searched. 2014-03-08 04:01:50 +09:00
ChunEon Park f563424761 search - removed unnecessary field. 2014-03-08 03:51:10 +09:00
ChunEon Park 1c4ee73805 search - prevent crash.
Don't access string pointer if the entry doesn't have text.
2014-03-08 03:20:48 +09:00
ChunEon Park ead75fd261 search - code clean up.
simpler expression.
2014-03-08 03:19:38 +09:00
ChunEon Park 2440afc9f0 search - display current search direction. 2014-03-08 03:10:30 +09:00
ChunEon Park d93a8b2709 search - +find backward 2014-03-08 02:49:06 +09:00
ChunEon Park 455d7c0265 syntax_color - added a keyowrd "focal" 2014-03-07 12:57:20 +09:00
ChunEon Park 29144264c4 search - use "activated" smart callback instead of evas key event.
Entry provides enter key press event.
Simply enventor can use that event.
so that it doesn't need to check the key name in the event callback.

thanks jihoon kim for reporting.
2014-03-07 10:15:43 +09:00
ChunEon Park 422f96b297 search - on implementing find backward. 2014-03-07 00:57:03 +09:00
ChunEon Park c77cf29ec2 menu - close search window if the warning popup is showed at enventor exit. 2014-03-07 00:46:47 +09:00
ChunEon Park 94be5e3753 search - find a next word as soon as it replaced one word. 2014-03-07 00:35:34 +09:00
ChunEon Park acaca0129c search - improve usage
replace text if user press the enter key at the replace entry.
2014-03-06 23:26:44 +09:00
ChunEon Park 29220f99d9 syntax_color - added more keyword "data, item" 2014-03-06 21:53:43 +09:00
ChunEon Park 5c76c22614 search - fix the search window size. 2014-03-05 16:33:34 +09:00
ChunEon Park 70490cec70 search - fix the replace all misbehavior.
I missed the offset of the delta length between replace and find.
it found the position of the next incorrectly.
now it's fixed.
2014-03-05 03:15:33 +09:00
ChunEon Park f6e9eb495b search - change the find/replace function.
put the find forward, find backward instead of the find, find/replace

once, you replace the word, it will find the next word automatically.
2014-03-05 03:07:28 +09:00
ChunEon Park 1c3b249c14 search - add replace all function. 2014-03-05 02:52:06 +09:00
ChunEon Park 8e8603b33f search - on implementing.
find and replace works pretty well.
still "find/replace", "replace all" is not enough.
2014-03-02 20:38:27 +09:00
ChunEon Park 5c68216676 stats/hotkeys - set invisible state as default 2014-03-02 16:57:22 +09:00
ChunEon Park 1414c92397 search - on implementing find/replace 2014-03-02 16:52:53 +09:00
ChunEon Park 052876b7d3 refactoring - removed unnecessary object show calls.
Since the edje sets the visibility of the contents according to it's own layout description
we don't need to set the content visibility additionally.
2014-03-02 14:48:58 +09:00
ChunEon Park de8164bcb9 search - on implementing. 2014-03-02 13:34:22 +09:00
ChunEon Park 24d00b6125 menu - no need entry have style set here. 2014-03-02 04:24:19 +09:00
ChunEon Park 1175060055 search - on implementing find/replace 2014-03-02 03:17:34 +09:00
Daniel Juyung Seo 373a23745e editor/search - fix build warnings as some of the codes were commented out. 2014-03-01 23:53:36 +09:00
ChunEon Park 06be86982c search - on implementing find/replace 2014-02-28 23:41:16 +09:00
ChunEon Park dd135280f6 search - implementing the gui 2014-02-28 02:45:49 +09:00
ChunEon Park 145549c201 editor - resolved recalculation edje err log message 2014-02-28 01:34:24 +09:00
ChunEon Park 4786fd67d3 editor - apply syntax color when you paste the text.
if the text was started with empty character, the syntax color won't be applied.
now it's fixed to check the string length additionally.
2014-02-28 01:07:06 +09:00
ChunEon Park 144ec65ee6 edc_editor - set the default font size to the default entry size.
now editor doesn't need to customize the entry theme.
2014-02-27 16:29:23 +09:00
ChunEon Park f16fc6e53e syntax_color - support more keywords 2014-02-26 22:24:56 +09:00
ChunEon Park fb1b4d861f search - on implementing search function. 2014-02-26 10:36:53 +09:00
ChunEon Park c8e5b4d6c4 parser - as simple code as possible. 2014-02-26 10:03:23 +09:00
ChunEon Park 2847bfe4cb hotkeys - fix the init state of the toggle button icon.
previous, toggle button is always open states
but it should follow actual config state.
2014-02-26 09:45:15 +09:00
ChunEon Park b2ed0e516c hotkeys - removed reserved slots.
they will be added later with real contents
2014-02-26 09:41:14 +09:00
ChunEon Park e93ff21211 Merge branch 'master' of git+ssh://git.enlightenment.org/tools/enventor
Conflicts:
	data/themes/default/images.edc
	data/themes/default/images/Makefile.am
2014-02-23 01:04:26 +09:00
ChunEon Park 9178443524 search - start to implement search/relace 2014-02-22 15:24:53 +09:00
ChunEon Park 5000b3c3a2 about - adjust font size from 12 -> default 2014-02-22 15:10:50 +09:00
ChunEon Park e442bc8d4c hotkeys - improve ui. apply icons 2014-02-22 15:01:07 +09:00
ChunEon Park bb22983b4b config - fix the side effect again.
caused by bd0d0008de.

the prefix should not fixed and function name is incorrect.

fixed.
2014-02-18 22:48:15 +09:00
ChunEon Park bd0d0008de config - fix the side effect that paths buf weren't intialized.
it's caused by 5b69d97f8c.
2014-02-18 22:38:02 +09:00
ChunEon Park 5b69d97f8c config - use the EET_DATA_DESCRIPTOR_ADD_LIST_STRING for paths i/o
it's better simple and easy. cool!
2014-02-18 21:11:47 +09:00
ChunEon Park ec5c4242bb config - default hotkey status is on. 2014-02-18 20:34:47 +09:00
ChunEon Park b229686519 config - override the paths only those are actually existed. 2014-02-18 20:34:03 +09:00
ChunEon Park f662c73b22 statsbar - save/load the hotkey status. 2014-02-18 20:14:15 +09:00
ChunEon Park f4c8ab7558 config - reuse the function as possible. 2014-02-18 20:10:00 +09:00
ChunEon Park e1ac55873e config - just sort up the func position. (static first) 2014-02-18 20:07:30 +09:00
ChunEon Park 4fe36539b0 config - use the eet_data_descriptor for streaming data io. 2014-02-18 20:02:39 +09:00
ChunEon Park fdc0868632 stats - refactoring code.
keep the func name consistency.
2014-02-18 14:42:30 +09:00
ChunEon Park 35605d5dd9 stats - update max line number if the edc is newly readed. 2014-02-18 14:39:52 +09:00
ChunEon Park de5139f31c config - place the enventor config foler in the XDG Config Home directory. 2014-02-18 11:47:09 +09:00
ChunEon Park 32aeb3ee48 hotkeys - toggle the hotkey button icon 2014-02-18 02:13:34 +09:00
ChunEon Park 6b3bbeb65b edj_viewer - keep the current viewport in the scroller while scaling up/down 2014-02-09 12:20:51 +09:00
ChunEon Park a6c73fcbf8 support ELM_ENGINE environemnt set for gl
gl backened is often used for test.
Until resolving all values reset by elm_config_profile_set().
we added this kind of workaround code.
2014-02-07 16:58:18 +09:00
ChunEon Park a1efe811bd config - override paths if img, fnt, snd, data paths are passed from command line. 2014-02-06 20:00:16 +09:00
ChunEon Park 6577232589 edj_viewer - set the min size multiplied with scale. 2014-02-06 19:43:56 +09:00
ChunEon Park 3522d0d25e editor/statusbar - let's initialize states according to the config value. 2014-02-06 18:55:51 +09:00
ChunEon Park 2318cd081f config - there are not intended. revert them. 2014-02-06 18:22:28 +09:00
ChunEon Park d47b69099d config - save/load config to eet 2014-02-06 18:19:59 +09:00
ChunEon Park 8a104efb39 edj_viewer - update the view min value for view scrolling. 2014-02-06 01:07:10 +09:00
ChunEon Park a9376c508a edj_viewer - added workaround code for weird text ellipsis.
when the view scale is changed, text ellipsis is applied even there is much enough area to display text.
i didn't see the reason enoughly but text itself makes the size smaller in ellipsis calculation time.
2014-02-06 00:49:18 +09:00
ChunEon Park 0e7f161e9d removed void delcaration as the parameter.
It doesn't mean that i don't agree on this.
But for code consistency i removed.
2014-02-05 20:27:03 +09:00
ChunEon Park 9cd77266d0 syntax_color - ++ellipsis 2014-02-05 19:39:34 +09:00
Daniel Juyung Seo 9262556d4e enventor - fixed all the build warnings and errors from refactoring commit. 2014-02-05 09:55:38 +09:00
ChunEon Park e0672e4ae5 statusbar - refactoring.
make it singleton style.
it's clear that statusbar has only one instance.
2014-02-04 22:45:41 +09:00
ChunEon Park 9d2e70f631 panes - fixed memory double free crash.
caused by this commit. 29e4aa94c6
2014-02-04 22:23:14 +09:00
ChunEon Park d72b0756d2 edj_mgr - refactoring.
removed edj_mgr instance handling outside of the edj_mgr.
edj_mgr is also singleton instance.
don't need to handle the instant unnecessarily.
2014-02-04 22:20:40 +09:00
ChunEon Park 542e2a9075 enventor - code clean up.
hide data types as possible.
2014-02-04 21:48:06 +09:00
ChunEon Park 29e4aa94c6 panes - refactoring.
it's now singleton style.
only base gui access this panes internally.
2014-02-04 21:37:49 +09:00
ChunEon Park 13d1a9f2c8 statusbar - ellipsis group name when the string is long. 2014-02-04 19:18:43 +09:00
ChunEon Park 21e992a341 statusbar - use a exist function for setting initial cursor position. 2014-02-04 17:58:07 +09:00
ChunEon Park 79eb7b7f88 modify gui.
display file path on the window title not on the statusbar.
2014-02-04 17:55:56 +09:00
ChunEon Park afb618365a refactoring.
Added base_gui for handling basic window, layout and panes so that other files refer them.
2014-02-04 17:20:39 +09:00
Daniel Juyung Seo 34f3e57d9e enventor - fixed build warnings in build.c 2014-02-04 00:50:36 +09:00
Daniel Juyung Seo 7c5c7dd999 enventor - fixed build warnings. 2014-02-03 20:34:33 +09:00
Jihoon Kim fa85c1bf15 Use key not keyname for considering setxkbmap
ex> setxbmap -layout fr
In french layout, 'q' key will be replaced with 'a'. Therefore, key should be used instead of keyname.
2014-02-01 16:22:00 +09:00
ChunEon Park efab2b76a1 menu, config - hide internal structure type since they are private.
affected by these patchs

4fcf8eaef7
9af9369c79
2014-01-30 12:28:07 +09:00
ChunEon Park 9651c0dddd ctxpopup - rename part name for consistency. 2014-01-30 12:25:35 +09:00
ChunEon Park 3aefa8ff8a hotkeys - add a trigger button for hotkey gui enable/disable 2014-01-30 12:18:31 +09:00
ChunEon Park 0f8a545b48 menu - removed redundant code.
there is no such style since dark theme has become default.
2014-01-30 11:44:23 +09:00
ChunEon Park faf6a5f803 hotkeys - enable f5, f6 hotkeys. 2014-01-30 03:17:59 +09:00
ChunEon Park f4f65b7fc9 hotkeys - code refactoring.
removed duplicated code by using a common func.
2014-01-30 02:59:51 +09:00
ChunEon Park f16c21a0dc menu - set global menu instance as possible as soon.
we aren't sure when the global menu instance is accessed in the future.
so make it safe as possible.
2014-01-30 02:49:22 +09:00
ChunEon Park 4fcf8eaef7 config - got rid of config instance handling outside of the config_data scope.
count config as a singletone instance also.
since we won't handle multiple configs in the enventor.
2014-01-30 02:45:10 +09:00
ChunEon Park b4b5c1b112 config - refactoring.
arrange function positions from static to external in a file.
2014-01-30 02:11:21 +09:00
ChunEon Park 93a82c8882 menu - code refactoring.
removed duplicated codes bu common funcs.
2014-01-30 02:05:51 +09:00
ChunEon Park 0f873f5f17 menu - code refactoring.
arrange the functions position from static to external in a file.
2014-01-30 01:46:02 +09:00
ChunEon Park f2e4f53c59 menu - don't need to return menu instance anymore.
menu is handled globally with the singleton way.
2014-01-30 01:19:29 +09:00
ChunEon Park 9af9369c79 refactoring - got rid of menu instance handling.
count menu as a singleton instance.
since we can not image multiple menus in the enventor.

now code is getting simpler.
2014-01-30 01:15:33 +09:00
ChunEon Park 39fb929aeb fix build break -- oops missed files.
added them all.
2014-01-29 22:29:45 +09:00
ChunEon Park 4542644e81 implementing hotkey menu 2014-01-29 22:28:02 +09:00
ChunEon Park 3024ee6cca refactoring - removed menu_opened variable from the main.
it's duplicated variable to require sync.
menu itself keeps the menu_open status.
2014-01-29 21:56:29 +09:00
ChunEon Park 92ed6d5e65 keep the current view scale even if new views are come. 2014-01-29 15:42:30 +09:00
ChunEon Park 98e6664c13 don't say any message if the scale value is not changed. 2014-01-29 15:08:44 +09:00
ChunEon Park 6ab7716874 apply gui to set the view scale in the option menu. 2014-01-28 15:22:26 +09:00
ChunEon Park 867c6bf2ed support view scale factor change.
use ctrl + mouse wheel up/down
2014-01-27 01:21:02 +09:00
ChunEon Park 967644fb2c improve panes left/right button gui. 2014-01-26 04:14:42 +09:00
ChunEon Park d404e197be enventor - more syntax color keywords 2013-12-31 11:29:47 +09:00
ChunEon Park f753843dc4 enventor - more syntax color keyword support. 2013-12-27 20:04:02 +09:00
Daniel Juyung Seo eaf349394d enventor - use eina_stringshare_refplace instead of
eina_stringshare_replace in case of both strings are stringshared.

Thanks to zmike.
2013-12-13 03:04:57 +09:00
Daniel Juyung Seo 27cb2ab4e7 enventor - use eina_stringshare_replace instead of eina_stringshare_add
+ del.
2013-12-13 02:30:44 +09:00
Ryuan Choi 234e37c519 Store last accessed path of load/save dialog to revisit next time.
Summary:
There are some use cases.
User may re-open dialog when wrong file are selected.
And user may want to save edc file which he loaded and modified.

Reviewers: Hermet

Reviewed By: Hermet

CC: seoz

Differential Revision: https://phab.enlightenment.org/D353
2013-12-12 21:54:39 +09:00
Cedric BAIL f4e52b15de autotools: update to simplified quicklaunch build. 2013-12-11 15:21:38 +09:00
ChunEon Park cafa7052de enventor - enable auto indentation 2013-11-28 12:58:34 +09:00
ChunEon Park f821df405a enventor - add a syntax color word. 2013-11-23 19:34:15 +09:00
ChunEon Park cfbfc6ee2f enventor - support color syntax "rotation" 2013-11-11 09:33:18 +09:00
ChunEon Park c4467b2d37 Revert "enventor - no more workaround code. it works now...?"
This reverts commit 27530e9d2d.

no, still it has the problem. when you insert the template code,
the cursor will be set to 0 position.
2013-10-20 02:26:52 +09:00
ChunEon Park 27530e9d2d enventor - no more workaround code. it works now...? 2013-10-19 00:28:50 +09:00
ChunEon Park 6b37c2b9de enventor - increase lines less 1 when insert template code.
since it doens't considered the current empty line, it increases the lines much more than 1.
2013-10-19 00:09:15 +09:00
ChunEon Park 4915eb89d0 enventor - fix the invalid object access.
don't delete callbacks if it failed to find new part object.
2013-10-18 23:50:46 +09:00
ChunEon Park 2d26f4ec5a enventor - update ctxpoup style along with dark theme. 2013-10-18 18:23:47 +09:00
ChunEon Park 2f474818af enventor - elaborate syntax color. 2013-10-18 17:01:51 +09:00
ChunEon Park 6f06d145e7 enventor - update the status of the cursor position correctly.
status of the cursor position should be updated whenever cursor is changed regardless of it's mechanism.
2013-10-18 14:58:40 +09:00
ChunEon Park 303bd779e1 enventor - no more support theme change.
now enventor works only on the dark theme based.
2013-10-18 13:41:47 +09:00
ChunEon Park 585755f100 enventor - fix the crash whenever u rename the group.
the envetor tried to create a new group layout whenever the group name is changed.

In the end, the layouts count is getting increased unnecessarily if user are renaming the group.

Now it only creates a new group layout after user saved the edc.
2013-10-15 02:30:36 +09:00
ChunEon Park 61711996f0 enventor - removed redundant code. 2013-10-15 01:25:33 +09:00
ChunEon Park 420c912188 enventor - optimize cursor updation.
don't try to update line number if the line number is same at the request time.
2013-10-14 13:23:57 +09:00
ChunEon Park 2382c61f79 enventor - disable auto indentation temporarily since it's unstable yet. 2013-10-10 22:59:51 +09:00
ChunEon Park 868cdd0eaa enventor - fix the dummy swallow object to be removed directly when swallow part is removed. 2013-10-08 00:02:05 +09:00
ChunEon Park 23bbac8eb9 enventor - removed a comment which is no more valid. 2013-10-06 21:27:37 +09:00
ChunEon Park 3203b77a90 enventor - removed redundant code. 2013-10-04 10:48:17 +09:00
ChunEon Park c250e5d8be enventor - code refactoring. removed duplicated lines. 2013-10-04 02:24:29 +09:00
ChunEon Park cfd507a792 enventor - more safe code. 2013-10-04 00:44:21 +09:00
ChunEon Park 4b39769738 enventor - fix invalid memoary allocation. 2013-10-04 00:28:27 +09:00