Commit Graph

1149 Commits

Author SHA1 Message Date
Mykyta Biliavskyi 360170fd74 Localization: fix localization support.
Correct initalizing textdomain.
Use LOCALE_DIR environment variable.
Support localization in setting.c and text_setting.c files.
2015-12-10 17:30:00 +09:00
Mykyta Biliavskyi 6aea530622 Text settings: Add analysis typed text for redoundo feature.
Added cases:
    Analyse auto indention for new lines. It mean, that redo/undo
            line creation will finished by one step.
    Analyse input symbols speed. In case when user writes somethenigi
            and takes a short delay (by default 0.8sec)
            between written symbols - redo/undo action will use this delay
            as point to create new node in redo/undo queue.
    Analyse input symbols on a "words". Ongoing alphabetic symbols
            between nonalphabetic symbols known as
            "word". Redo/undo action will use for a step a whole "word".

In text setting added addition toggle named "Smart undo/redo".
By default this feature is disabled.

Todo: make this feature work with auto intendation.

Prortotype here: https://phab.enlightenment.org/D1288
2015-12-10 10:53:12 +09:00
Jaehyun Cho 2e541e722a enventor: Fix to move scroller bar to correct position for find function
enventor creates a scroller instead of using entry's scroller for text
editor. This causes that the scroller bar moves to incorrect position
when a word is selected by find function. To resolve this problem, set
entry's cursor position before setting entry's select region.
2015-12-07 17:30:05 +09:00
Mykyta Biliavskyi 4cbc3e5adc Multilanguage: add english po file.
Also added target for update po files.
2015-11-18 09:00:10 +00:00
Mykyta Biliavskyi 90f58d7c0a Multilanguage: generate template pot file. 2015-11-17 17:40:51 +00:00
Mykyta Biliavskyi c6ec131b8d Multilanguage: apply gettext macro to bin/.
Cover all strings with _() macro.
2015-11-17 17:39:22 +00:00
Mykyta Biliavskyi 2f6f020f65 Multilanguage: Add infrastructure for multilanguage support.
Added macros _(), that should be used for each string,
that will be translated to other languages.
2015-11-17 16:59:55 +00:00
Jee-Yong Um 9b2c054002 enventor: remove --eo option from eolian_helper
Summary: remove --eo option from Makefile_Eolian_Helper.am to fix build fail

Reviewers: Hermet, Jaehyun_Cho

Reviewed By: Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D3331
2015-11-16 13:01:42 +09:00
Stephen Houston b56a87b550 Enventor: Fix some grammatical/spelling issues. 2015-10-30 07:40:21 -05:00
Jean-Philippe Andre c998307b9b add SOURCE aspect_preference 2015-10-29 14:44:56 +09:00
Jean-Philippe Andre c1c3580305 hilight: add more keywords (LOSSY_ETC1,2, SOURCE) 2015-10-29 14:40:32 +09:00
Jean-Philippe Andre f1888d7be2 hilight: add a couple keywords (no_render) 2015-10-02 14:26:11 +09:00
Jaehyun Cho 4e82a3e7ca config_data: Fix to set random output file name.
Currently, output file name is the same as input file name.
This causes an issue when input files which have same names are opened
at the same time.
To resolve the above issue, output file names are set randomly.
2015-09-24 10:03:12 +09:00
Jaehyun Cho 811b10293f config_data: Remove duplicated code. 2015-09-24 08:41:02 +09:00
ChunEon Park ebe037c8a3 about: add one empty line to align form. 2015-09-22 16:36:08 +09:00
Mykyta Biliavskyi 4ddc93b231 Candidates list: add attributes rel*.to_x/y.
@fix T2500
2015-09-22 15:46:02 +00:00
Mykyta Biliavskyi d22bfdba37 Ctxpopup: block the input values from ctxpopup if it already deleted.
When compilation error happens - the currently open ctxpopup
will be closed.
@fix T2542
2015-09-22 10:36:09 +00:00
ChunEon Park b39b452b69 color: +syntax color keywords 2015-09-21 16:44:14 +09:00
Mykyta Biliavskyi a2e8ea3028 Show the save warning dialog on close unsaved file. 2015-09-18 09:36:07 +00:00
Jaehyun Cho 0600579464 edc_parser: Fix compile error. 2015-09-17 16:04:30 +09:00
Mykyta Biliavskyi e011f68951 Parser: enhance quality of parsing the part state names.
Summary:
added ability parsing different cases of usage
"description" and "desc" keywords.
Now support descriptions without names - those states
will be defined as "default". For keyword "description"
attribute "state" non mandatory.
Examples of support syntax:
 desc {"state_name";}
 desc {image.normal: "img";}  <- "default" 0.0;
 description {state: "state_name"; ...}
 description {"state_name";...}
 description {image.normal: "img";} <- "default" 0.0;

@fix T2680

Reviewers: Hermet

Maniphest Tasks: T2680

Differential Revision: https://phab.enlightenment.org/D2969
2015-09-17 14:19:01 +00:00
Mykyta Biliavskyi 27c17e9a43 Goto: close window from the toolbar.
Summary: moved the focus management  for "goto" window
from base_gui.c inside goto.c.
Added timer, that make delay between unfocus of the "goto" window
and freeing the "goto" internal structures. It is necessary because
when the "goto" window is active and pressed button on toolbar
firstly emitted the signal "unfocused" for window and then
happens button click event.

@fix T1604
2015-09-17 13:56:37 +00:00
Mykyta Biliavskyi ba45d8689e Edc Editor: after dismissing candidate list, cursor is moved at the end of attribute.
After choose or hide the candidate, the entry cursor
is moved to the end of attribute string ';'. It is more natural
way, than was previously, when cursor was placed before ':'.
2015-09-16 09:50:08 +00:00
Mykyta Biliavskyi e2cc943e77 Fix compilation warnings for enventor application. 2015-09-15 17:42:03 +00:00
Mykyta Biliavskyi c8fdf43e9a Fix compilation warnings for enventor library. 2015-09-15 17:39:51 +00:00
Mykyta Biliavskyi abe5ef0aa6 Highlight: apply disable/enable the highlight status for all groups.
The highlight feature is provided for global usage (it means,
that disabling highlighting will turn off it for ALL parts
in ALL groups). This patch add management the highlight
feature status for cases when the highlight was enabled
when one group was active and disable in another group.
2015-09-15 15:41:08 +00:00
Mykyta Biliavskyi b542071bb3 Static analyze: fix "Function call argument is an uninitialized value"
Summary:
Fix clang static analyzer warning.
@fix

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D3046
2015-09-14 17:45:04 +00:00
Mykyta Biliavskyi 17c4e71fc1 Edc_editor: fix compile warning and clear code.
Reveret "Edc_editor: after insert candidate,
move cursor to end of attribute", because it cause
wrong behaviour.
Clear code, make selection in entry by elm_entry_selection_set.
2015-09-14 17:39:47 +00:00
Mykyta Biliavskyi 19fdca4376 Static analyze: "Value stored to 'var' during its initialization is never read"
Summary:
Fix clang static analyzer warning.
@fix

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D3045
2015-09-14 15:36:17 +00:00
Mykyta Biliavskyi 78392731d4 Edc_editor: after insert candidate, move cursor to end of attribute,
Summary:
This is correct behaviour for cursor placement
after inserting candidate into edc code. Previously
cursor was placed before ':'.

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D3044
2015-09-14 15:34:41 +00:00
Mykyta Biliavskyi 1955c96144 Ctxpopup: dismiss ctxpopup after the candidate chosen.
Summary:
Add the elm_ctxpopup_dismiss call inside the
candidate select callback function.
Delete unused function ctxpopup_candidate_selected_cb.

Test Plan:
change  rel1.to param using candidate list.
After select candidate - ctxpopup should be dismissed.

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D3043
2015-09-14 15:25:36 +00:00
Mykyta Biliavskyi 778d3c4879 Autocomp: bring the selected item in candidates list.
Summary:
For cases when the autocomplete list contain
a lot of items, that  the list enables scrollbar. This make impossible
to scroll last item by Down arrows. It is happens because the
focus is not allow for elm_list widget. This patch bring
selected item manually.

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D3040
2015-09-14 14:59:40 +00:00
Mykyta Biliavskyi ae2d88fa76 Edc_editor: remove "cursor,changed,manual" callback.
Summary:
For the initiate synchronizing cursor position
and the live view object was moved edit_view_sync into
callback function for "cursor,changed" entry signal.
It is neccessary, because keys "Page up" and "Page down"
didn't initiate the signal "cursor,changed,manual".

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D3034
2015-09-14 14:34:42 +00:00
Mykyta Biliavskyi 9647ca44d2 edc_parser: recognize keyword "offset" as changeable value.
Summary:
Keyword "offset" added into list of arguments.
This attribute is represented by two spinners with range
-100..100. "offset" is used inside "relative" and "fill"
blocks

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D3027
2015-09-14 14:22:25 +00:00
Mykyta Biliavskyi 1fd611f4b6 Edc_editor: enhance enventor_object_text insert API.
Summary:
added edit_text_insert function, that
shared for public use as enventor_object_text_insert
This API provide functionality for text insert with
support correct text replacement and redo/undo
feature support.

@fix T2691

Test Plan:
Lunch Enventor. Open "Find/Replace" dialog.
Fill "Find" field with exist string and fill
"Replace with" field with any text. Press "Replace All".
Close dialog window and check how work Ctrl+Z and Ctrl+R
hotkey combinations.

Reviewers: Hermet

Maniphest Tasks: T2691

Differential Revision: https://phab.enlightenment.org/D3005
2015-09-04 15:42:43 +09:00
Mykyta Biliavskyi 0a64eab88b Candidate list: filter the generated program names.
Summary:
for cases when candidate list contain
names of programs, all generated names will be
ignored.
The generated name is started with: "program_0x" - template.

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D2970
2015-09-04 15:39:00 +09:00
ChunEon Park 31c0b592b3 fix eo build break.
removed docs actually it's empty.

the doc will be filled at Enventor 1.0
2015-09-04 15:37:11 +09:00
Mykyta Biliavskyi a1a9d7eae1 Autocomplete: change behavior of show candidate list.
Summary:
prevously in cases when necessary node of
the lexem tree wasn't find - was displayed the
candidate list with  the root node
candidates (collections, images, color_classes, etc).
Now the candidate list do not displayed at all.

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D2972
2015-08-31 19:14:37 +09:00
ChunEon Park d2180b235f fix broken key input in search/goto
This issue was introduced in 502a826599.

Acutally, here is an additional keygrab change.
2015-08-27 13:03:54 +09:00
Jaehyun Cho b6d17628c5 Remove eio_monitor for edc file.
Instead of using eio_monitor, build edc file in enventor_object_save().
2015-08-27 03:55:48 +09:00
ChunEon Park 502a826599 fix malfunction of key input on Windows system.
re-implement main key input by using key grab mechanism.

@fix
2015-08-27 03:49:33 +09:00
ChunEon Park 1b0fc9f4cf auto completion: fix malfunction of key input on Windows system.
re-implement auto completion key input by using key grab mechanism.

@fix
2015-08-27 00:58:01 +09:00
ChunEon Park c5ccf94fea config_data: create config home folder if it doesn't exist.
previously, user home config folder was not existed,
enventor config file won't be saved.

now, it's fixed.

@fix
2015-08-25 16:24:32 +09:00
ChunEon Park 37a029102b we don't use engine anymore. use acceleration. 2015-08-25 03:02:00 +09:00
ChunEon Park 5d8f485ecf Makefile: build compatibility on Windows
Signed-Off-By: michelle legrand <michelle.legrand@openwide.fr>
2015-08-25 00:51:35 +09:00
Mykyta Biliavskyi cd062d9564 Edc parser: recognize description block without state name.
Summary:
In cases when keyword "description" is used without
state name(it mean that state will have "default" 0.0 name) -
parser is fail to recognize correct name of that description and
all others that placed below.
This make impossible to switching between groups and part descriptions,
that placed below description without state name.
@fix

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D2954
2015-08-20 11:19:15 +09:00
Mykyta Biliavskyi c33ba546f2 Autocomplete: support images subblock inside group block.
Summary:
for cases when "group" block contain "images" subblock
autocomplete feature works wrong if cursor placed below "images"
subblock.
Added support "images" inside "group".Also added "part" to
recognized keywords.
@fix

Reviewers: Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D2955
2015-08-20 11:11:52 +09:00
Mykyta Biliavskyi 88055de59c Autocomplete: except text between quotes.
Summary:
text that placed between quotes is
excepted from recognize keywords. Previously
when inside was string like this:
'images.normal: "123.png";' the autocomplete parser
is recognize the dot, that placed inside quotes.
It is broke the searching keyword in candidates tree.

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D2958
2015-08-20 11:09:37 +09:00
Mykyta Biliavskyi 08a2d9d038 Edc_editor: run programs in case if name placed on new line.
Summary:
launch programs in cases when program name is
placed not in the same paragraph with "program" keyword.
Now analyzes whole text, that placed after selected keyword,
not only text inside the same paragraph.
@fix

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D2964
2015-08-20 11:07:36 +09:00
ChunEon Park 072bba3dc1 fix win32 porting.
specify missing dll import/export declarations for EAPIs.
2015-08-20 11:04:56 +09:00