Commit Graph

918 Commits

Author SHA1 Message Date
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
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
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
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
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 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
Jaehyun Cho 0aef6bd397 templates: Change image file names. 2015-08-12 11:20:37 +09:00
Mykyta Biliavskyi 9c66f6fcf0 Build: marks line, that contain error in edc_editor.
Summary:
parse error messages from edje_cc, and marked
by underline the mistaken line.  In cases for messages
that does not contain line numbers, trying to parse
name of wrong parameter. Trying to searching the parsed name
in edc code, and highlight the first entity.

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D2791
2015-08-11 13:18:07 +09:00
Vincent Torri 8abd0ef514 Fix warning on Windows 64 bits 2015-07-31 16:07:57 +09:00
Vincent Torri cd7023ecc9 Use eina_environment_home_get() instead of getenv("HOME") for portability 2015-07-31 16:07:14 +09:00
ChunEon Park d5f66885ac indent: free memory correctly. 2015-07-10 23:46:24 +09:00
ChunEon Park 8ebd0d2dbf edc_editor: code refactoring.
remove direct variable access but use getter.
2015-07-10 20:46:17 +09:00
ChunEon Park fedcfd3149 text_setting: one more here code refactoring.
err is enough to use.
2015-07-10 20:13:12 +09:00
ChunEon Park c25eb038b3 text_setting: code refactoring.
err is enough to use.
2015-07-10 20:10:37 +09:00
ChunEon Park 2c4a407e65 renamed color.src -> edc.src
Reeame the color source file more specifically.
2015-07-10 20:06:49 +09:00
ChunEon Park 74ff6efbd7 syntax_color: reorder the syntax color.
apply comments color prior to tags.
2015-07-09 22:48:16 +09:00
ChunEon Park d3cfd41e14 syntax_color: support configurable syntax color count.
Previous the color table count is fixed to 6
we can make it changeable by color configurable file.

Please increase MAX_COL_NUM if it really needs.
2015-07-09 20:18:43 +09:00
ChunEon Park c188b78c06 syntax_color: improve logic.
previous code was strictly only working for edc.
relax the logic to cover more general cases.
2015-07-09 19:51:19 +09:00