Commit Graph

428 Commits

Author SHA1 Message Date
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 32cc7c4d8b search - retouch the ui 2014-03-08 13:23:26 +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 e39f8674d3 editor - added missing function declaration. 2014-03-01 23:53:54 +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