Commit Graph

1597 Commits

Author SHA1 Message Date
Jaehyun Cho c3709b5435 main: Do not overwrite existing EDC with template code.
If existing EDC is opened with -t option, then it is not allowed.

@fix T3745
2016-06-01 22:55:04 +09:00
Hermet Park ad16037c4d renamed about to help.
Come to think of it, About func is more than About.

Help is better name for it.
2016-06-01 22:52:13 +09:00
Hermet Park c410db3b92 main: print help usage with standand output. 2016-06-01 22:44:14 +09:00
Hermet Park 69c85269ce tools: free used eina_list. 2016-05-31 20:12:26 +09:00
Jaehyun Cho b769398911 template: Fix to insert template code to the correct place.
Previously, template code was inserted before the closing bracket.
Now, template code is inserted after the closing bracket.

Test Plan
1. Open basic.edc.
2. Put mouse cursor the end of the line 18.
3. Press Ctrl + t to insert template code of image part.
2016-05-31 14:25:33 +09:00
Jaehyun Cho 1dd3d5c465 template: Fix line count of textblock part inserted in live edit mode.
Previously, line count was not correct after textblock part is inserted
in live edit mode.
Now, line count is correctly calculated after textblock part is inserted
in live edit mode.

Test Plan
1. Insert textblock part in live edit mode.
2. Check max line number.
2016-05-31 14:12:21 +09:00
Hermet Park 98d9cf4cb0 live_edit: fix the logic to support fixed size.
previous logic was corrupted at some point.
2016-05-29 01:41:52 +09:00
Hermet Park d88a2121e1 live_edit: revise previous patch.
Actually, previous patch is not make sense..
fixed width and height should work exclusively.
2016-05-28 19:42:11 +09:00
Taehyub Kim e30aca010e live_edit: make live edit item fixed when width and height are fixed
Summary:
live_edit: when the live edit item's width and height are fixed,
                  the size of live edit item should be fixed.

Test Plan:
1. launch enventor
2. click a live edit item
3. check all of fixed options
4. do not set relative_to options
5. insert the live edit item to the live view
6. check the inserted item's size whether it is fixed or not

Reviewers: Hermet, Jaehyun_Cho, NikaWhite

Differential Revision: https://phab.enlightenment.org/D3976
2016-05-28 19:38:59 +09:00
Hermet Park 3a6d844df2 live_edit: update message. 2016-05-28 19:37:31 +09:00
Taehyub Kim 0e7fd59874 live_edit: add toggle key for enabling and disabling auto align
Summary: add control toggle key for enabling and disabling auto align

Test Plan:
1. launch enventor
2. click a live edit item using toolbar item
3. move the item to the another part
4. press control key when the item is close to the another part
5. check auto align function whether it is disabled or not

Reviewers: Jaehyun_Cho, NikaWhite, Hermet

Differential Revision: https://phab.enlightenment.org/D3931
2016-05-28 19:33:56 +09:00
Hermet Park 4725daefd3 setting: polish gui. 2016-05-26 02:29:04 +09:00
Hermet Park 431c055a8f replace enventor embedded image. 2016-05-26 01:59:42 +09:00
Jaehyun Cho 2d2bb9e3a5 text_setting: Show current font name.
Previously, current font name was not visible because scroller of font
name did not move to the current font name list item.
Now, current font name is visible.
2016-05-25 23:53:56 +09:00
Jaehyun Cho 75206cd36d setting: Reorganize items.
Remove setting items which are already in toolbar area.
Reorganize items in text setting.
2016-05-25 23:53:55 +09:00
Hermet Park fe4cc81da1 updated about 2016-05-25 02:34:00 +09:00
Hermet Park 3f317692cb about: redesign about page. 2016-05-25 02:20:51 +09:00
Hermet Park 3a8320e42d edc_parser: code refactoring.
factorize depth.
2016-05-24 12:03:13 +09:00
Bowon Ryu cc538a8508 edc_parser&autocomp: Fix double click issue on WindowsOS
Summary:
Enventor window stops responding on double clicking "min" on Windows.
Because of approaching the index in which the cur_context doesn't exist, the crash happens.
*cur_context[] in parser_attribute_get() edc_parser.c

Test Plan:
1. launch enventor on Windows
2. add image using live edit
3. double click "min" on editor

@TSAM-3524

Reviewers: Jaehyun_Cho, Hermet

Differential Revision: https://phab.enlightenment.org/D3972
2016-05-24 11:58:35 +09:00
Hermet Park c77cfc6499 fix eo compilation.
Still eo syntax is unstable, enventor keeps updating its usage.
2016-05-24 11:57:31 +09:00
Hermet Park 9e8dce3db8 live_edit: revise previous patch 6fb471d8d4.
redesign ui and clear code.
2016-05-23 22:12:43 +09:00
Taehyub Kim 6fb471d8d4 live_edit: add fixed width and height interface in live edit view
Summary: update fixed width and height interface to choose easier

Test Plan:
1. launch enventor
2. make live edit item by clicking live edit toolbar
3. click fixed width or fixed height check item on setting interface in live edit view
4. set relative_to property by dragging the edge of the part
5. insert the live edit item
6. check the result in text view

Reviewers: Jaehyun_Cho, NikaWhite, Hermet

Differential Revision: https://phab.enlightenment.org/D3962
2016-05-23 21:25:30 +09:00
Hermet Park ee41674954 fix broken font sizing short cut key.
now enventor object is nothing more than just eo interface.
actual contents are totally moved on items.
we use item interfaces to figure their zones for mouse wheel events.
2016-05-23 14:25:36 +09:00
Hermet Park 1768d6b388 live_edit: improve status message. 2016-05-23 13:54:53 +09:00
Taehyub Kim f0f7e2dfff live_edit: fix the live edit item moving issue
Summary:
if we move a live edit item by direction key, sometimes pixel is increased by 2 pixels.
so I modified it is increaed by 1 pixed when the scale is larger than 1.0

Test Plan:
1. launch enventor
2. click a live edit item using toolbar
3. move the live edit item by direction key
4. check the change of pixel info

@T3473

Reviewers: Jaehyun_Cho, NikaWhite, Hermet

Differential Revision: https://phab.enlightenment.org/D3946
2016-05-23 13:49:41 +09:00
Hermet Park 88286c627c live_edit: fix incorrect align line position.
because the computation doesn't considered scroller bar areas,
the position of the align liner wasn't correct.

this is now fixed.
2016-05-22 23:56:49 +09:00
Jaehyun Cho cf4c9ffb94 tools: Add template insert button.
Add template insert button in tools to let users know how to use
template insert function.
2016-05-22 23:34:42 +09:00
Jaehyun Cho 2c0378467c file_browser: Fix not to show file browser if workspace is not set. 2016-05-22 23:00:22 +09:00
Taehyub Kim 4dce517e17 live_edit: remove unnecessary code
Summary:
toolbox object is not used anyware, so I remove it

@fix

Reviewers: Hermet, Jaehyun_Cho, NikaWhite

Differential Revision: https://phab.enlightenment.org/D3964
2016-05-22 20:26:39 +09:00
Hermet Park d74f4afed0 updated about 2016-05-22 11:08:20 +09:00
Hermet Park 329d4ba1ff update help for workspace. 2016-05-22 11:00:04 +09:00
Hermet Park f47d613c30 live_edit: add edge attaching effect.
if edge of live edit object is attached to other part's,
outline can be highlighted.
2016-05-20 04:49:24 +09:00
Hermet Park 9c8d91cc18 live_edit: initialize static variables. 2016-05-20 03:05:03 +09:00
Hermet Park 259fa2eebd live_edit: code refactoring.
fix coding convention.
2016-05-20 02:51:54 +09:00
Hermet Park c32e417d5d live_edit: remove margin in the spacer image.
spacer margin should be removed from the image
because live edit needs accruate pixel control.
on the other hands, spacer button icon needs margin.

this implementation is a little tricky but i have no idea better than this.
2016-05-20 00:32:25 +09:00
Hermet Park 9ae16dce31 live_edit: fix broken behavior.
when user clicks live edit button multiple files,
it's conext is corrupted.

clean the resource proeprly and make it work back.
2016-05-19 00:34:52 +09:00
Hermet Park e16ff998b1 implementing multi editor support.
this feature will be come gradually...
2016-05-19 00:28:58 +09:00
Jaehyun Cho b6ffc80449 edc_editor: Fix memory leak. 2016-05-18 23:02:55 +09:00
Jaehyun Cho 2fd17c1ed0 file_browser: Fix memory issues.
Fix memory leak and memory double free issues.
2016-05-18 22:08:40 +09:00
Hermet Park 25a34493be remove redundant comments. 2016-05-18 17:46:54 +09:00
Taehyub Kim 7b770ab594 statusbar: update live edit item when view is resized
Summary: update live edit item when view is resized

Test Plan:
1. add a live edit item on live view
2. resize the live view using resize item on statusbar
3. see live edit item is resing well

Reviewers: Hermet, NikaWhite, Jaehyun_Cho

Reviewed By: Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D3940
2016-05-18 00:24:53 +09:00
Hermet Park f36abe3d3c edc_edit: code refactoring.
font set for editor should be global.
so, take care of this in enventor object data.

This is a partial change for multiple edc editor.
2016-05-17 23:32:34 +09:00
Jaehyun Cho 11f5ebfd49 edc_parser: Fix warnings. 2016-05-17 18:13:03 +09:00
Jaehyun Cho d299c6cde4 enventor_smart: Fix warnings. 2016-05-17 18:13:02 +09:00
Jaehyun Cho e3b07f998e syntax_color: Fix warnings. 2016-05-17 17:40:11 +09:00
Jaehyun Cho 7f86c01a0c syntax_indent: Fix warnings. 2016-05-17 00:52:25 +09:00
Jaehyun Cho ada36237e9 template: Fix warnings. 2016-05-17 00:41:36 +09:00
Jaehyun Cho e7b8554343 main: Fix warnings. 2016-05-16 23:59:23 +09:00
Jaehyun Cho 2854c5ce9e tools: Fix warnings. 2016-05-16 23:38:34 +09:00
Jaehyun Cho 29686022e0 setting: Fix warnings. 2016-05-16 23:32:55 +09:00
Jaehyun Cho 754e629b14 live_edit: Fix warnings. 2016-05-16 23:32:50 +09:00
Taehyub Kim 6ba3339d25 template: fix the fixed condition for relative_to
Summary:
fix the fixed condifion for relative_to.
the condition was wrong, so I fixed it.

Test Plan:
1. Launch Enventor
2. Click a Live Edit Item
3. Check fixed_w and fixed_h
4. Insert the Live Edit Item

Reviewers: Hermet, Jaehyun_Cho, NikaWhite

Differential Revision: https://phab.enlightenment.org/D3943
2016-05-16 23:30:26 +09:00
Taehyub Kim afd04c7469 enventor_smart: fix mirror mode for relative_to
Summary:
When we apply mirror mode, we need to considering swap relative_to,
but exist code was not checking null pointer.
so I fixed the logic.

Test Plan:
1. Launch Enventor
2. Apply Mirror Mode
3. Insert a live edit item with relative_set setting

Reviewers: Hermet, Jaehyun_Cho, NikaWhite

Differential Revision: https://phab.enlightenment.org/D3942
2016-05-16 23:28:30 +09:00
Jaehyun Cho 9ab099dd4c edc_navigator: Fix warnings. 2016-05-16 22:55:30 +09:00
Jaehyun Cho 03ffd3a8c4 file_browser: Fix warnings. 2016-05-16 22:45:16 +09:00
Jaehyun Cho 54698e69d9 enventor: Fix eo. 2016-05-16 00:29:02 +09:00
Jaehyun Cho 5268e282d5 file_browser: Set NULL to freed data pointer to prevent double free.
To prevent double free when genlist items are expanded and contracted,
set NULL to freed data pointer.
2016-05-14 19:59:19 +09:00
Jaehyun Cho 2b40c0a170 file_browser: Fix to display refresh button only on workspace.
Previously, refresh button is displayed on all directories.
Now, refresh button is displayed only on workspace directory.
2016-05-14 19:41:35 +09:00
Hermet Park 682d95c1f0 edc_navigator: remove redundant code.
genlit fixed content the re-usage issue.
now this code it no more necessary here.
2016-05-14 19:32:35 +09:00
Hermet Park 96f1fc1c28 update a usage of namingspace for evas object smart. 2016-05-13 00:45:48 +09:00
Taehyub 5194059b40 live_edit: Add new feature about setting relative_to among the exist parts
Summary:
Add new interface feature about setting relative_to to make relationship esaily
between part and part. Now, we can make the relationship using just mouse interface.

Test Plan:
1. launch enventor
2. add live edit item using live edit toolbar
3. drag the item to the another part
4. move a control point that you want to make a relationship to the another part edge
5. and then relative_to ctxpopup is shown
6. select the relative_to item in the ctxpopup
7. insert the live edit item with double click
8. check the inserted code whether it is make relationship or not

Reviewers: Jaehyun_Cho, NikaWhite, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D3936
2016-05-11 21:57:51 +09:00
Jaehyun Cho 5dbfbd64f3 tools: Divide tools into live view tools and text editor tools.
Now tools are divided into live view tools and text editor tools based
on their functions.
Region for file browser tools and edc navigator tools is also reserved.
2016-05-10 23:19:36 +09:00
Jaehyun Cho 7a85d0bc3b live_edit: Remove unused code.
live_edit does not need trigger any more. Therefore, code related to
trigger is removed.
2016-05-10 23:19:04 +09:00
Hermet Park 5450bcdf1b file_browser: just comment fixed. 2016-05-08 04:52:33 +09:00
Hermet Park 5c21ca9ba9 file_browser: refactoring internals.
remove unnecessary edc usage.

and don't surprise even though refresh button generation is wierd.
That is about genlist bug and will be fixed there soon.
2016-05-08 04:49:55 +09:00
Hermet Park c20a47bced edc_edit: code refactoring.
toggle option for ctxpopup should be global.
so, take care of this in enventor object data.

This is a partial change for multiple edc editor.
2016-05-08 03:16:46 +09:00
Hermet Park a77f756735 edc_edit: fixed redo undo short cut keys.
there were still wrong implementation. fixed them.
2016-05-08 03:11:04 +09:00
Hermet Park 47bbaf731b edc_edit: fix broken ctrl+z, ctrl+r short-cut key events.
This was introduced from previous patches.
Now initialization point of edit_data is next to the efl lib initialization.
This broke this and now i fixed this with dispatching way.
2016-05-08 02:55:46 +09:00
Hermet Park 512e13a626 redoundo: fix invalid timer usage.
don't access freed timer.

@fix
2016-05-08 02:36:52 +09:00
Hermet Park 0b27ce5474 redoundo: code refactoring.
toggle option for redoundo should be global.
so, take care of this in enventor object data.
2016-05-08 02:34:31 +09:00
Hermet Park e36b84e53d internal changes for supporting multiple editor.
loose the dependency of edc_edit with enventor instance.
2016-05-07 23:14:45 +09:00
Hermet Park 047c9ff238 refactoring for multiple edc editor.
move editor attributes out of edc_edit.
since those attributes should be applied through editors.
2016-05-07 17:35:07 +09:00
Hermet Park ae7f3e30b3 redoundo: do coupling with edc_edit instance.
one redoundo should work with it's owner editor.

This is a refactoring for multiple edc editor.
2016-05-07 04:14:47 +09:00
Hermet Park dc916f0dfe syntax_indent: code refactoring.
1. reuse exisiting strbuf.
2. fix code convention.
3. coupling with editor entry.
2016-05-07 02:58:26 +09:00
Hermet Park fa3dc0cc3a just rename file.
indent -> syntax_indent
2016-05-07 02:32:05 +09:00
Hermet Park fa1d1fc6d7 syntax_color: reorganize internals for multiple edc editor.
place a global syntax color source to share throught editor instances.

This is a partial change for supporting multiple edc files.
2016-05-07 01:46:58 +09:00
Jaehyun Cho 1b5054c1eb file_browser: Disable functions if workspace is not set.
Workspace layout is disabled to disable functions in file browser if
workspace is not set.
2016-05-04 15:10:26 +09:00
Jaehyun Cho b34c637273 file_browser: Add file search function.
If a search word is input, then files which contain the search word in
their file names are displayed.
To show file icons clearly in search mode, file icon images of file
browser are modified.

@T3579
2016-05-04 15:10:25 +09:00
Taehyub Kim 279eea73eb live_edit: add new feature about auto align
Summary:
when we are layouting using live edit item,
It is hart to align the inserting item among the exist parts.
so add auto align feature to align easily.

Test Plan:
1. launch enventor
2. add a live item using the toolbar
3. move and resize the live item in live view
4. check the auto align function when the item near another part

Reviewers: Jaehyun_Cho, NikaWhite, Hermet

Differential Revision: https://phab.enlightenment.org/D3884
2016-05-03 16:53:07 +09:00
Jaehyun Cho cfc55700ce file_browser: Expand current directory only.
Previously, file browser expands all directory hierarchy.
Now, file browser expands current directory only.
Moreover, directory's sub file data is created when the directory is
expanded to support deep directory hierarchy.
2016-05-03 14:47:33 +09:00
Jaehyun Cho 5e4cbcfc9c file_browser: Fix crash that occurs when file does not exist.
ecore_file_exists() returns EINA_FALSE for some cases although the given
file exists. This commit is for the above malfunction cases.
2016-05-03 13:11:23 +09:00
Jaehyun Cho 037f9d4283 file_browser: Apply resource file icons.
Apply edc, image, sound, and font file icons.
2016-05-02 19:45:44 +09:00
Jaehyun Cho a176e619e6 file_browser: Support "Show All Files" function.
By default, file browser shows resource type files only such as edc,
image, sound, and font type files.
If the "Show All Files" check is on, then file browser shows all types
of files.

@T3390
2016-05-02 15:49:14 +09:00
Jaehyun Cho 48fb17f938 file_browser: Change refresh button.
Change the refresh button to an icon button and move it next to the
"Workspace".
2016-05-02 15:49:00 +09:00
Jaehyun Cho f84eeb951e file_browser: Remove "Collections EDC".
Normally collections edc is included in the workspace directory.
Therefore, "Collections EDC" item is removed from the file browser.
2016-05-02 15:48:58 +09:00
Hermet Park 084fbd4b62 add TODO for multiple file editor. 2016-05-01 22:26:12 +09:00
Hermet Park 22fc5a96e5 edc_parser: fix wrong value.
base_scale shouldn't be zero.
2016-05-01 22:07:42 +09:00
Hermet Park 6946d1f715 additional implementation for multiple edc editor.
some missing implementation from bea4735e02.
2016-05-01 22:05:20 +09:00
Hermet Park 3db7a0a7c8 remove EINA_REF
This looks quitely unnecesary. go away from here.
2016-05-01 21:21:40 +09:00
Hermet Park bea4735e02 Change Enventor API.
This is a partial change for supporting multiple edc files.

enventor_object_file_set() -> enventor_object_main_file_set()
2016-05-01 21:16:31 +09:00
Hermet Park e08cc69795 code refactoring
change declarations type of enventor object

from Evas_Object to Enventor_Object
2016-05-01 20:27:08 +09:00
Hermet Park 9c2748d95b code refactoring.
put declarations at proper positions.
2016-05-01 17:31:37 +09:00
Hermet Park c33f835836 live_edit: fix center guide text positioning problem.
This problem looks it just introduced from copy & paste...

@fix T3568
2016-04-28 22:45:20 +09:00
Jaehyun Cho 0f3740630e file_browser: Add refresh button.
When refresh button is clicked, then all directories in file browser are
updated.
2016-04-28 17:51:09 +09:00
Hermet Park 1c21a8538f status: adjust stats msg idle time.
as well as some messages.
2016-04-27 00:03:25 +09:00
Hermet Park d38facff7f edc_editor: fix a broken ctxpopup image relay behavior.
Next image word selection was broken.
so, the selection was a little twisted.
It seems something has been changed in entry.
Anyhow, it's fixed in enventor side. :(

@fix T3258
2016-04-26 23:41:40 +09:00
Hermet Park 8d109970c6 code refactoring.
sanitize duplicated error message code.
2016-04-26 23:13:42 +09:00
Hermet Park e7bc310f1b edc_editor: free used memory. 2016-04-26 22:58:46 +09:00
Hermet Park 99eee8091e ctxpopup: fix a broken ctxpopup image relay behavior.
grab keys to ensure key events.

fix @T3271
2016-04-26 22:18:05 +09:00
Hermet Park d271175953 fix unexpected close on edc navigator.
if edj view failed to load a edj, edje_edit apis will occur crashes.
we could avoid this crash in enventor side.

@fix T3510
2016-04-26 20:39:44 +09:00
Hermet Park e263ffa002 edc_navigator: removed auto contraction option.
I've tried this.
And concluded this is not necessary in point of user experience.
2016-04-25 11:50:26 +09:00
Hermet Park ce9c4ba4e5 edc_navigator: ++safety. 2016-04-23 14:06:28 +09:00
Hermet Park 2b7a8af2ce edc_navigator: fix item contents remaining bugs.
Genlist reuses the contents unintendly.
Definitely, This is a genlist bug
and it looks a side effect of resuable contents feature. :(
2016-04-23 13:53:37 +09:00
Hermet Park 6f9d51e28b edc_navigator: optimize state update logic.
don't need to flush every updation time.
we only update changed states.
2016-04-23 13:27:58 +09:00
Hermet Park a4d4fb748c edc_navigator: support stop all programs.
for this, added one more api, enventor_object_programs_stop()
2016-04-23 13:15:32 +09:00
Hermet Park 97fbb51062 edc_navigator: add play button icon. 2016-04-23 11:43:47 +09:00
Hermet Park 087538ce0c tiny optimization.
sharing enventor string names.
2016-04-23 11:30:36 +09:00
Hermet Park b2cf6c3f48 edc_navigator: support tooltip message. 2016-04-23 11:22:48 +09:00
Hermet Park 955b762ecc edc_navigator: provide a program launch button.
Now launching program by double clicking the program part in the code
is removed! This was not intuitive.
2016-04-22 19:31:07 +09:00
Hermet Park e70197ff49 edc_navigator: don't sorted insert for groups and programs.
I found a genlist has a logical error (probably).
This change avoid that error.
But even programs and groups doesn't need a sorting.
2016-04-22 18:34:02 +09:00
Jaehyun Cho fef19af88e file_browser: Refactorying code. 2016-04-22 18:27:04 +09:00
Hermet Park 0f6a9873ce edc_navigator: deselect an selected item when user focuses on editing. 2016-04-22 17:39:13 +09:00
Jaehyun Cho 12cdcc0ee3 indent: Fix to calculate indent depth after multi line comment.
Previously, if '{' and '}' appear right after multi line comment,
the indent depth for those brackets was not calculated.
Now indent depth for those brackets is calculated correctly.

Test Plan:
1. Launch enventor.
2. Insert a group template. (Ctrl + T after collections)
3. Save the modified EDC.
4. Load the modified EDC.
2016-04-22 16:27:34 +09:00
Hermet Park 386edb7ab5 edc_navigator: store/restore auto contraction mode. 2016-04-22 16:22:53 +09:00
Taehyub Kim 876903f918 template: fix the error of line position when inserting group template
Summary:
fix the error operation of group template insertion.
The line position would be broken after inserting group template.
so I fixed it.

Test Plan:
1. launch enventor
2. insert group template using Ctrl + T
3. check the line position of source code whether it is corrected or not

Reviewers: Hermet, Jaehyun_Cho, NikaWhite

Differential Revision: https://phab.enlightenment.org/D3908
2016-04-22 15:44:18 +09:00
Hermet Park 4ee083fdac edc_navigator: feature extension.
Now this function has an option for auto contraction.

User could choose one of them for their taste.
2016-04-22 15:39:24 +09:00
Hermet Park a8fd04d63f make it compileable.
up to update eo syntaxes.
2016-04-20 23:28:42 +09:00
Hermet Park c139a34f6a console: arrange default console height. 2016-04-18 16:48:17 +09:00
Taehyub Kim c1aae66795 live_edit: support direction key events for moving live edit item
Summary:
before, we cannot move the live edit item using direction key.
now we can modify it using direction key.

@T3356

Test Plan:
1. launch enventor
2. insert a live edit item
3. move the item using direction key

Reviewers: Jaehyun_Cho, NikaWhite, Hermet

Differential Revision: https://phab.enlightenment.org/D3862
2016-04-18 14:04:28 +09:00
Hermet Park 59914e5a9e setting: improve preference gui 2016-04-17 14:27:07 +09:00
Hermet Park 9da3ee6bf5 setting: adjust font style list width 2016-04-17 13:59:53 +09:00
Hermet Park b04b7dde28 setting: refactoring code.
split preference setting code from general setting.
2016-04-17 13:48:35 +09:00
Hermet Park 8f91d45ff1 setting: reorganize setting view. 2016-04-17 13:31:27 +09:00
Hermet Park e6bfbd85c9 setting: code refactoring
internal variable name change.

there are no tabbar in elementary.
2016-04-17 11:12:53 +09:00
Hermet Park 8a837c3b4a setting: code refactoring.
clean up code.

this is one step for setting extension.
2016-04-16 00:52:46 +09:00
Jaehyun Cho 2be4e6c3d3 file_browser: Show workspace directory.
File browser shows workspace directory and its sub files.
Workspace directory is set with argument "-w" and directory path.
(e.g. enventor -w ./workspace)

This commit implements T3389.
2016-04-15 21:06:45 +09:00
Jaehyun Cho ff8136dbf3 file_browser: Add file browser.
File browser shows "collections" main EDC.

This commit implements T3388.
2016-04-15 18:54:02 +09:00
Hermet Park e94c7bdc12 update text & textblock template code 2016-04-15 16:37:25 +09:00
Hermet Park 829e309692 redoundo - remove redundant code. 2016-04-13 21:53:55 +09:00
Mykyta Biliavskyi aa8dc3a8dd Undo/redo: correct work with unicode symbols.
@fix T3420
2016-04-06 15:09:09 +09:00
Jaehyun Cho ff7ca0ee79 indent: Refactoring indentation.
Fix indentation issues by refactoring indentation logic.
2016-04-04 21:03:31 +09:00
Mykyta Biliavskyi 6ab19b2b87 Redoundo: enable smart analyze for a pushed region text.
Manage text blocks, that used for autocomplete feature.
This  commit make possible to undo or redo whole block of text
including user input. For example: user types "col"
and choose "collections" from ctxpopup. In normal mode
of  undoredo module in case of undo action will be left
"col"  text. In smart mode whole block "collections" will be deleted.
2016-04-04 18:01:37 +09:00
Mykyta Biliavskyi 5c95fa6e17 Redoundo: enhance smart functions.
Add support autointendation in smart redoundo.
Undo/redo adding or deleting line  will done in one action.
2016-04-04 16:50:08 +09:00
Hermet Park 9caad87f12 add missing images part in a group template code.
@fix
2016-04-01 16:42:28 +09:00
Taehyub Kim 3b038768f5 template: improve adding template of image resource do not duplicate
Summary:
when we insert image template or live view item,
the template code of image resource will be duplicated.
so, I added the code checking template image resource not to be duplicate

Test Plan:
1. launch enventor
2. add image part twice using ctrl + t or live view item
3. see the images block has an ENVENTOR_EMBEDDED_LOGO.png

Reviewers: Hermet, Jaehyun_Cho, NikaWhite

Differential Revision: https://phab.enlightenment.org/D3851
2016-04-01 16:33:34 +09:00
Hermet Park 09bf899aed refactoring console code.
just rewrite code for readibility.

no logic change.
2016-04-01 16:21:38 +09:00
Taehyub Kim a360601aa4 console: hide unnecessary console error line
Summary:
Actually it is unnecessary error log below the first line.
so I skipped the log

Test Plan:
1. launch enventor
2. make an error
3. see the console log in single line

Reviewers: Jaehyun_Cho, NikaWhite, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D3845
2016-04-01 16:12:20 +09:00
Hermet Park a07d7c0120 reverse live edit coordinates when mirror mode is enabled.
literally, the origin of the coordinates should be reversed on the mirrored mode.
2016-03-29 20:07:46 +09:00
Taehyub Kim d4ea957246 edj_viewer: fix the residual spacer parts when mirror mode is applied
Summary:
When mirror mode is toggled, the position of spacer parts in preview is not changed.
So I added the code to update spacer parts.

@T3367

Test Plan:
1. laucnch enventor
2. added the spacer to preview
3. toggle mirror mode more than two times.
4. see the spacer parts whether it is updated or not

Reviewers: Hermet, Jaehyun_Cho, NikaWhite

Differential Revision: https://phab.enlightenment.org/D3835
2016-03-29 19:41:58 +09:00
Taehyub Kim 6b19c191ac enventor_smart: make the position of live edit item show correctly when mirror mode is applied
Summary:
when mirror mode is applied, the live edit item is added to wrong position.
so I added mirror mode checking to show correctly.

@T3368

Test Plan:
1. launcher enventor
2. enable mirror mode
3. add a live edit item to preview
4. check that the position of the item is right

Reviewers: Hermet, Jaehyun_Cho, NikaWhite

Differential Revision: https://phab.enlightenment.org/D3834
2016-03-29 19:38:54 +09:00
Mykyta Biliavskyi 7a3aff94c3 Enventor smart: create new empty file in file_set.
Fix T3275
2016-03-25 17:22:06 +09:00
Hermet Park 9ed5a70ac8 edj_viewer: refactoring mirror mode code.
simpler and nicer code.
2016-03-25 16:33:38 +09:00
taehyub 3b06354c67 update the mirror mode icon
Summary: update mirror mode icon

Test Plan:
1. launch enventor
2. see the mirror mode icon

Reviewers: Hermet, Jaehyun_Cho, NikaWhite

Differential Revision: https://phab.enlightenment.org/D3830
2016-03-25 15:18:48 +09:00
Hermet Park 5bf8018118 statusbar: adjust statusbar tooltip direction. 2016-03-25 13:45:39 +09:00
Hermet Park ccbf9d65c6 tools: arrange mirror mode tooltip direction. 2016-03-25 13:39:57 +09:00
taehyub df7a9f51f8 tools: support mirror mode
Summary: Added new toolbar item to support mirror mode

Test Plan:
1. luanch enventor
2. toggle mirror mode item of toolbar at the left-top or press ctrl + M
3. see the mirror mode working well

Reviewers: Jaehyun_Cho, NikaWhite, Hermet

Differential Revision: https://phab.enlightenment.org/D3813
2016-03-25 13:30:33 +09:00
taehyub 21ed85b72b syntax_color: improve string syntax color logic
Summary:
If we input the quotation mark("), the code under the mark are changed to gray.
so I changed the limitation from the start of quotation mark to the end of the line.

Test Plan:
1. launch enventor
2. input the quotation mark(") in the middle of the code
3. see the syntax color change range about string syntax color

Reviewers: Jaehyun_Cho, NikaWhite, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D3825
2016-03-25 13:18:06 +09:00
Jaehyun Cho 849c01410c edj_viewer: Check if edj file set is finished.
Check if edj file set is finished and do not call edje_edit functions if
edj file set is not finished.

Test Plan:
1. Open edc
2. Modify edc incorrectly (e.g. Remove semicolon)
3. Save edc
4. Open the saved edc
5. Mouse double click "target" in program.
2016-03-23 23:04:56 +09:00
Yongheon, Shin e20bca7f4f Update dummy part when removing all source code
Summary:
In my opinion, the solution can move the position of update_edj_file_internal(vd) in update_edj_file.
However, I added dummy_obj_update only above failure case of edj load.

Test Plan:
1. Run Enventor and Load basic edc file
2. Select all source code with Ctrl+A and remove them with del or backspace.
3. Check the dummy part

Reviewers: Jaehyun_Cho, Hermet

Subscribers: Jaehyun_Cho, Hermet

Differential Revision: https://phab.enlightenment.org/D3808
2016-03-22 19:04:16 +09:00
taehyub 77b342d619 template_code: remove the image's comment to look better
Summary:
improve the image's template code.
when inserting image's template code,
images block has redundant annotation.

Test Plan:
1. insert image's part using ctrl + t
2. see the images part and check the difference with before

Reviewers: Hermet, Jaehyun_Cho, NikaWhite

Differential Revision: https://phab.enlightenment.org/D3814
2016-03-22 11:01:07 +09:00
Yongheon, Shin 41a320bc89 (T3274) Fix Crash issue when removing all code in edc editor
Summary:
- When calculating the position of cursor, the code cannot get group information.
  So, if we cannot get group information including position, add blocking code.

Test Plan:
1. Open Enventor
2. Remove all code after selecting with Ctrl+a
3. Click any part in edj editor

Reviewers: Hermet, Jaehyun_Cho

Subscribers: Jaehyun_Cho, Hermet

Differential Revision: https://phab.enlightenment.org/D3804
2016-03-18 18:04:15 +09:00
Jaehyun Cho 99b9790146 live_edit: fix malfunction of key input on Windows system.
re-implement live edit key input by using key grab mechanism.
This commit is based on commit 502a826599.

@fix
2016-03-17 20:07:06 +09:00
Jaehyun Cho eb1f95d02c edc_editor: Fix to allocate memory including null character '\0'.
Without this patch, crash sometimes happens when preview part is clicked
on Windows.
2016-03-17 17:55:57 +09:00
Jaehyun Cho e940639079 indent: Check '\r' when indented code line is created on Windows.
On Windows, new line is represented as "\r\n".
Therefore, '\r' is checked when indented code line is created.
Otherwise, unnecessary newlines are inserted after indentation on
Windows.
2016-03-17 15:41:27 +09:00
Yongheon, Shin 842341bea2 [T3267] improve part name for more formal naming rule
Summary:
Current generated part name from the live edit is too unfamiliar with users.
We need to improve for more formal naming rule like,
ex) rect_xxxx
    image_xxxx
    swallow_xxxx

Test Plan:
1. Open Enventor
2. Add rect, image, swllow, text, textblock, spacer

Reviewers: Hermet, Jaehyun_Cho

Reviewed By: Jaehyun_Cho

Subscribers: Jaehyun_Cho, Hermet

Differential Revision: https://phab.enlightenment.org/D3793
2016-03-17 14:38:28 +09:00
Hermet Park d23793101b statusbar: fix view sizing issue when an invert button is clicked repeatedly.
previously, the button was available even if the inverting animation was going
on. This caused the corruption view size because of context loss.

We could avoid this issue by freezing button when transition is going on.
2016-03-16 21:27:04 +09:00
Hermet Park 18ca260c1a edc_navigator: fix the editor cursor jump issue.
Skip a group selection callback because it leads the editor cursor jump on to
the group area. But this group updation could be triggered in a various
scenario. The cursor should be jumped only when user clicked a group item
in the genlist.
2016-03-16 20:02:32 +09:00
Jaehyun Cho 227b549805 Revert "Revert "Revert "edc_editor: Support auto save to update preview."""
This reverts commit a3185bc64b.

Apply auto save in the future after resolving side effects.

Conflicts:
	src/lib/edc_editor.c
2016-03-16 11:30:41 +09:00
Jaehyun Cho 8935ac45a5 Replace elm_app_name_get() with "enventor" for Windows.
On Windows, elm_app_name_get() returns "enventor.exe".
To set "enventor" style, elm_app_name_get() is replaced with "enventor".
2016-03-14 17:19:13 +09:00
Jaehyun Cho f26e60d624 indent: Fix to paste a word at correct position.
Do not apply indentation when pasted string does not contain keywords
which cause a new line. (e.g. string not containing ';')

Test Plan:
1. Open basic.edc
2. Copy "default"
3. Paste at the same position.
2016-03-14 15:13:36 +09:00
Jaehyun Cho fa76bf2aee setting: Fix edc navigator toggle to work.
When Apply button is clicked, state of edc navigator toggle is applied.
When Reset button is clicked, state of edc navigator toggle is restored.
2016-03-14 14:15:56 +09:00
Tom Hacohen 0e03164b68 Revert "fix the build break that introduced by eo syntax change."
This reverts commit 986663f5ed.
2016-03-11 12:42:09 +00:00
Hermet Park 986663f5ed fix the build break that introduced by eo syntax change. 2016-03-11 17:38:36 +09:00
Hermet Park 498c1259eb Revert "Revert "Fix to apply Eo4.""
This reverts commit e67a1d1607.

0.8.0 was released. revert this again.
2016-03-08 16:53:27 +09:00
Hermet Park 3869e9acc8 Revert "Revert "editor: don't auto save always.""
This reverts commit aa6607c616.

0.8.0 was released. revert this again.
2016-03-08 16:53:13 +09:00
Hermet Park a3185bc64b Revert "Revert "edc_editor: Support auto save to update preview.""
This reverts commit b663d049db.

0.8.0 was released. revert this again.
2016-03-08 16:52:34 +09:00
Hermet Park 5cc7bc4770 fix makedist failure.
include missing resources.
2016-03-08 16:34:21 +09:00
Hermet Park b663d049db Revert "edc_editor: Support auto save to update preview."
This reverts commit 509b9bd628.
2016-03-08 10:17:25 +09:00
Hermet Park aa6607c616 Revert "editor: don't auto save always."
This reverts commit 3a2c08e6c5.

Revert this temporarily for release enventor 0.8.0
2016-03-08 10:16:55 +09:00
Hermet Park e67a1d1607 Revert "Fix to apply Eo4."
This reverts commit b656f774d9.

Revert this for enventor 0.8.0 release.
2016-03-08 10:16:04 +09:00
Hermet Park 8f53a8d9cf indent: free code line resource properly. 2016-03-07 23:42:10 +09:00
Hermet Park 55987e5774 edc_parser: fix one more memory leak. 2016-03-07 23:26:00 +09:00
Hermet Park f760fd4144 edc_parser: go away memory leaks! 2016-03-07 23:22:22 +09:00
Hermet Park 79f10753fe edc_editor: one more memory leak :( 2016-03-07 22:55:34 +09:00
Hermet Park ce3b32741d edc_editor: free string memory after use them. 2016-03-07 22:53:51 +09:00
Hermet Park 135af1a13f console: free memory after used it. 2016-03-07 22:41:31 +09:00
Hermet Park 8500ebbb80 indent: add a comment to be fixed. 2016-03-07 22:35:53 +09:00
Hermet Park 442c22e28a edc_parser: remove memory leak. 2016-03-07 22:30:16 +09:00
Hermet Park 9b48678c70 dummy_obj: don't allocate memory if the object is invalid. 2016-03-07 22:28:57 +09:00
Hermet Park f26a4db691 edc_editor: free string resources after it used. 2016-03-07 22:22:31 +09:00
Hermet Park c03187f3cd panes: free all transits when enventor is terminated. 2016-03-07 22:14:45 +09:00
Hermet Park ea3d989d70 edc_parser: remove unnecessary code. 2016-03-07 21:50:30 +09:00
Hermet Park 665bcb9b55 edc_parser: fix typo. 2016-03-07 20:47:24 +09:00
Hermet Park 6280b1e680 Revert "edc_parser: check null for code safety"
This reverts commit ed5c01209d.
2016-03-07 20:45:11 +09:00
taehyub ed5c01209d edc_parser: check null for code safety
Summary:
check null for code safety

@fix

Reviewers: Jaehyun_Cho, NikaWhite, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D3776
2016-03-07 20:44:23 +09:00
Jaehyun Cho 3530641830 main: Use destination length in snprintf.
Use destination length instead of source length in snprintf.
2016-03-07 20:42:35 +09:00
taehyub 651d8551a3 main: change sprintf to snprintf
Summary: change sprintf to snprintf for code safety

Reviewers: Hermet, Jaehyun_Cho, NikaWhite

Differential Revision: https://phab.enlightenment.org/D3773
2016-03-07 20:30:49 +09:00
taehyub 58f08915e9 edc_editor: change sprintf to snprintf
Summary: change sprintf to snprintf for code safety

Reviewers: Jaehyun_Cho, NikaWhite, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D3774
2016-03-07 20:30:49 +09:00
taehyub 1a0f3c7e1d config_data: change sprintf function to snprintf function
Summary:
change sprintf to snprintf for code safety

@fix

Reviewers: Hermet, NikaWhite, Jaehyun_Cho

Reviewed By: Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D3772
2016-03-07 20:22:09 +09:00
taehyub 6ad27f9fbe newfile: change sprintf function to snprintf function
Summary:
change sprintf to snprintf for code safety

@fix

Reviewers: Hermet, NikaWhite, Jaehyun_Cho

Reviewed By: Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D3771
2016-03-07 20:18:38 +09:00
Jaehyun Cho d4fec9c7d2 dummy_obj: Print error when setting swallow image is failed.
If setting swallow image from edje file is failed, then print error.
2016-03-07 20:14:02 +09:00
Jaehyun Cho cab91580fe config_data: Terminate if config init is failed.
If config init is failed, then initialization is stopped and terminated.

@fix
2016-03-07 19:56:35 +09:00
Jaehyun Cho d0ef7f8c68 setting: Check entry string before translating to integer.
@fix
2016-03-07 19:34:41 +09:00
Jaehyun Cho d64c7ca196 live_edit: Prevent memory overflow case.
Emum value Ctrl_Pt_Cnt is only used to set array size.
Therefore, Ctrl_Pt_Cnt should not be used as an index value.

@fix
2016-03-07 17:22:34 +09:00
taehyub 49fae1fe40 text_setting: fix the unsafe code of string function
Summary:
fix the unsafe code like strcat and strcpy.
it is changed to strncpy, strncat

@fix

Reviewers: Hermet, NikaWhite, Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D3761
2016-03-07 12:13:07 +09:00
taehyub 3a4e1dec9e enventor_smart: change the postfix operator to prefix operator to check next pointer
Summary:
if(!(ptr++)) code check current pointer then it is updated next pointer.
so I changed the postfix operator to prefix operator to check next pointer in the condition.

@fix

Reviewers: Jaehyun_Cho, NikaWhite, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D3762
2016-03-07 12:02:09 +09:00
Hermet Park 3f8dfe944c edj_viewer: fix a problem that live view failed to update images.
This problem scenario belongs to the image modification by an other process.
If an image size is very huge, live view possibly lost the image monitoring
because of asynchorous file handling.

Here solution is to update images repeatedly for those unexpected case.

@fix T3094
2016-03-05 13:02:18 +09:00
Hermet Park 964a31831d remove compile warnings.
1. unused variable.
2. compare signed and unsigned
3. undelcared function call.
2016-03-05 11:49:12 +09:00
Hermet Park 6428fd4ede remove compile warnings.
insert brackets to declare structure initial values clearly.
2016-03-05 11:40:18 +09:00
Hermet Park 78ec05cb0d get rid of compile warnings.
use parentheses around assignment used as truth value.
2016-03-05 11:34:46 +09:00
Hermet Park 3a43682695 remove unused compile warnings. 2016-03-05 11:31:37 +09:00
Hermet Park 6d2b4a01b4 remove unused compile warnings. 2016-03-05 11:27:24 +09:00
Hermet Park 3a2c08e6c5 editor: don't auto save always.
If save has been accomplished, we can skip a auto save.

This auto save brings enventor unexpected error highlighting twice.
2016-03-05 11:17:15 +09:00
Hermet Park 332bbeda4f editor: reset cursor position when edc is loaded.
edc editor needs to reset cursor position when a edc is newly loaded.

People granted this behavior.
2016-03-05 00:31:28 +09:00
Hermet Park 7795dbe101 editor: fix initial max line 0 issue.
Update max line correctly of the statusbar.
This fix brought Enventor_Max_Line passed away
because Enventor_Cursor_Line can be used instead.

@fix
2016-03-05 00:26:41 +09:00
taehyub c8f5d743cb goto: add null checking about the return value of elm_entry_entry_get
Summary:
there is no null checking condition,
so I added the null checking condition about the return value of elm_entry_entry_get.
@fix

Reviewers: Jaehyun_Cho, NikaWhite, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D3763
2016-03-04 23:39:35 +09:00
taehyub a512a80782 edc_editor: add null checking in error_line_num_highlight function
Summary:
in error_line_num_highlight, utf8 can be null.
so, I added null checking about it.

@fix

Reviewers: Jaehyun_Cho, NikaWhite, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D3764
2016-03-04 23:39:14 +09:00
taehyub 20b99c0d48 base_gui: fix the wrong condition
Summary:
There is a wrong condition in base_gui.c like if ((w>0) && (w>0)).
The condition compares to same rule.

@fix

Reviewers: Jaehyun_Cho, NikaWhite, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D3767
2016-03-04 23:38:41 +09:00
taehyub 04415c8d70 edc_navigator: add return value
Summary:
There is a missing return value in edc_navigator.c

Reviewers: Jaehyun_Cho, NikaWhite, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D3768
2016-03-04 23:36:27 +09:00
taehyub ad35ab32aa template: select the random name after inserting live view part
Summary:
select the random name after inserting live view part or template part.

Test Plan:
1. insert a part using Live View
2. see the selection region of random name of Live View
3. insert a templte using Ctrl + t
4. see the selection region of random name of template

@T3014

Reviewers: Hermet, Jaehyun_Cho, NikaWhite

Differential Revision: https://phab.enlightenment.org/D3743
2016-03-04 16:32:58 +09:00
taehyub 26570d64c0 template: Fix undo error by correcting cursor position
Summary:
There is a memorizing cursor in wrong position, it cause undo error.
If insert the description template, undo operation is not working correctly.

@fix

Test Plan:
1. press ctrl + t in the part, then insert description part
2. press ctrl + z, undo the code
3. see the normal operation

Reviewers: Hermet, Jaehyun_Cho, NikaWhite

Differential Revision: https://phab.enlightenment.org/D3760
2016-03-04 16:19:42 +09:00
taehyub 3cb3dfdda7 ctxpopup.c: change sprintf function to snprintf function
Summary:
change sprintf to snprintf for code safety

@fix

Reviewers: Hermet, Jaehyun_Cho, NikaWhite

Differential Revision: https://phab.enlightenment.org/D3757
2016-03-04 16:12:37 +09:00
taehyub d86d1f38ee ctxpopup.c: change strcat function to strncat function
Summary:
change strcat to strncat for code safe

@fix

Reviewers: Hermet, Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D3755
2016-03-04 16:06:20 +09:00
Jaehyun Cho 509b9bd628 edc_editor: Support auto save to update preview.
auto save function saves edc file and updates preview by using timer.
auto save timer is applied when entry is changed or redo/undo is done.
auto save timer is cancelled when candidate list or auto complete list
appears.
2016-03-04 10:32:30 +09:00
Jaehyun Cho b488c57a9c edc_editor: Fix to call "edc,modified" callback when edc is modified.
Previously, "edc,modified" callback is called only if
enventor_object_save() is called.
To call "edc,modified" callback when edc is modified, "edc,modified"
callback is called in edit_save().
2016-03-04 10:32:24 +09:00
Jaehyun Cho b656f774d9 Fix to apply Eo4.
In Eo4, eo_do, eo_do_ret, eo_do_super, eo_do_super_ret are not used.
2016-03-04 09:22:27 +09:00
Mykyta Biliavskyi fb59a491ba Indent: check last '\n' in file before convert edc source to the markup text.
This solve issue when the additional empty line was added
to the bottom of formatted text.

@fix T3128
2016-03-03 13:38:47 +09:00
Hermet Park ead1fdd6b1 edc_navigator: improve finding logic.
cursor jumps properly according to a selected item.
2016-02-29 21:32:30 +09:00
Hermet Park ff8458925e edc_navigator: 4th patch for base behavior.
add a function jumping editor cursor onto selected item.
2016-02-29 20:19:10 +09:00
Hermet Park 839b481e3c edc_navigator: fix a case that programs were not listed.
previously, program list were removed frequently.
but it should be kept for resusing.
2016-02-29 19:02:17 +09:00
Jaehyun Cho c86aa0dac6 Revert "edc_editor: optimize bracket logic."
This reverts commit 7250db0b10.

This commit causes unexpected cursor movement.
2016-02-29 18:14:26 +09:00
Mykyta Biliavskyi 01431db641 Parser: recognize keyword with context.
Uses the autocomplete context parser for recognizing keywords
with the same names in different contexts. For example:
the attributes "min" and "max" for a description context
should be integer values in range from 0 to 1000; but for a
"text" context those attributes should be boolean.

Curently add recognition for a "min" and "max" attributes in the "text" content.

@fix T2712
2016-02-29 18:12:19 +09:00
Jaehyun Cho 5ec2cb8599 template: Fix to set edc changed in template_insert().
Set edc changed in template_insert() to save template insertion.

Test Plan:
1. write a part. (e.g. rect { "rect2";)
2. insert desc template (ctrl + t)
2. close edc

When edc is closed without saving after inserting template, warning
popup should appear.
2016-02-29 17:38:53 +09:00
Jaehyun Cho b2286162a9 edc_editor: Fix to set edc changed in edit_text_insert().
Set edc changed in edit_text_insert() to save text insertion.

Test Plan:
1. open find/replace (ctrl + f)
2. write strings in "Find:" and "Replace with:"
3. push "Replace all"
4. close edc

When edc is closed without saving after replacing a string, warning
popup should appear.
2016-02-29 17:38:51 +09:00
Jaehyun Cho 5b00c94969 Revert "Show the save warning dialog on close unsaved file."
This reverts commit a2e8ea3028.

When a part is inserted by LiveEdit or modified by candidate popup, edc
file is saved automatically.

Conflicts:
	src/bin/file_mgr.c
2016-02-29 17:38:50 +09:00
Hermet Park d226cf54c2 edc_navigator: remove program list when other item types are selected. 2016-02-29 17:36:45 +09:00
Hermet Park d09c073fb0 edc_navigator: support program list 2016-02-29 17:28:25 +09:00
Hermet Park 647dbde8ca edc_navigator: 3rd patchset.
optimizing + stablizing functions.
2016-02-29 00:05:44 +09:00
Hermet Park bb09392d12 edc_navigator: 3rd patch for base navigation behavior. 2016-02-27 17:31:12 +09:00
Hermet Park 50a7b468ef edc_navigator: 2nd patch for base navigation behavior.
not completed.
2016-02-26 22:23:25 +09:00
Jaehyun Cho 69029879d8 ctxpopup: Reset candidate values by backspace key.
toggle, slider and colorselector values of candidate ctxpopup are reset
by backspace key.
2016-02-26 20:07:04 +09:00
Jaehyun Cho f96c2a92a6 ctxpopup: Refactoring to get sliders easily. 2016-02-26 19:34:07 +09:00
Jaehyun Cho 61a0effa33 ctxpopup: Refactoring to get toggles easily. 2016-02-26 19:32:00 +09:00
Hermet Park ac26094e08 ctxpopup: remove a warning.
casting 64bits data void * type correctly.
2016-02-26 16:55:26 +09:00
taehyub 27f62fc10b add color modification feature to change color easier
Summary:
To make it easier for user to modify color,
I added color modification feature such as colorselector,
color view, color inputs and priority color lists into the ctxpopup.

Test Plan:
1. click the 'color' keyword
2. see the color components of ctxpopup
3. change the color using the components

Reviewers: Jaehyun_Cho, NikaWhite, Hermet

Differential Revision: https://phab.enlightenment.org/D3726
2016-02-26 16:54:21 +09:00
Jaehyun Cho 3eb9a70024 edj_viewer: Show selected part state for newly created group.
Part state of new group is set before new group is loaded into layout.
So default part state of new group is displayed instead of selected part
state.
To fix this issue, part state of new group is set after new group is
loaded into layout.
2016-02-24 19:54:00 +09:00
Jaehyun Cho 5a9de80061 edj_viewer: Fix to highlight part for newly created group.
Part of new group is highlighted before new group is loaded into layout.
So after loading new group, part of new group is not highlighted.
To fix this issue, part of new group is highlighted after new group is
loaded into layout.
2016-02-24 19:38:40 +09:00
Jaehyun Cho 84a165c5d6 edj_viewer: Fix to call "part,clicked" callback for newly created group.
Part name list of new group is set before new group is loaded into
layout. So part name list of new group is not set and "part,clicked"
signal callback for each part is not called.
To fix this issue, part name list of new group is set after new group is
loaded into layout.
2016-02-24 19:11:25 +09:00
Jaehyun Cho 4d72aee9dd edj_viewer: Fix to show dummy swallow for newly created group.
Dummy swallow of new group is created before new group is loaded into
layout. So dummy swallow of new group is not displayed.
To fix this issue, dummy swallow is created after new group is loaded
into layout.
2016-02-24 19:11:23 +09:00
Jaehyun Cho af1591100c text_setting: Select current font name and style. 2016-02-23 22:38:13 +09:00
Hermet Park df7b31d544 fix a crash issue.
part won't be have any names.

@fix T3201
2016-02-23 21:33:11 +09:00
Hermet Park 7e7a1f02b7 rearrange a minimum size of window. 2016-02-23 20:07:05 +09:00
Jaehyun Cho 650c017df9 Revert "text_setting: Show monospaced fonts."
This feature is useful for small number of developers.
From the point of maintenance view, reverting this feature is better.

This reverts commit f391c03be0.
2016-02-23 18:59:07 +09:00
Jaehyun Cho e81fa2f350 Revert "text_setting: Change "Monospaced" to "Fixed-width"."
To revert commit f391c03be0, revert this
commit.

This reverts commit c3a8e7d03f.
2016-02-23 18:58:02 +09:00
Jaehyun Cho 1af1cca8f6 config: Set default monospaced font on Ubuntu. 2016-02-23 16:51:57 +09:00
Jaehyun Cho c3a8e7d03f text_setting: Change "Monospaced" to "Fixed-width".
Change "Monospaced" to "Fixed-width" for better understanding.
2016-02-23 14:45:32 +09:00
Mykyta Biliavskyi 2005ee095c Indent: clean code. Delete unused variables. 2016-02-23 14:30:05 +09:00
Mykyta Biliavskyi 843f6cc195 Indent: add logic to paste formatted text above or below current line.
Checking the string from start till cursor position is empty.
And in case if this range is empty - formatted text will be
inserted above the current line.
2016-02-23 14:05:33 +09:00
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
Hermet Park df3d1f9e4d status: improve button style. 2016-02-06 03:04:22 +09:00
Hermet Park 0a52422284 align the setting's view scale slider label.
This is a tricky method,
but can't control the slider label without it.
2016-02-05 20:16:11 +09:00
Hermet Park 3bb0eb04e7 remove the concept of resizable view size.
As far as I reviewed, this function is useless.
We remove it because now people can control the exact size of view.
2016-02-05 20:11:24 +09:00
Hermet Park 5ede4deb93 fix build break.
TRANSIT_TIME define was just missed.
2016-02-05 18:40:49 +09:00
Hermet Park c499de4e88 stats: inverting view size with transition. 2016-02-05 18:14:16 +09:00
Hermet Park bb81be9901 status: code refactoring.
we don't need a disabled function but just unfocusable buttons.
2016-02-05 17:58:01 +09:00
taehyub 4b82e2b945 fix the problem of selection cursor moving
Summary:
The selection cursor is moved at the frist
When clicking and moving the bracket using the mouse.
In entry_recover(), there is no selection cursor recover machanism.
So I added the selection recover logic in the function.
Now, it is fixed.

@fix
@T3099

Test Plan:
  1. click the bracket
  2. moving the cursor keeping the mouse clicking
  3. see the fixed result

Reviewers: Jaehyun_Cho, Hermet

Differential Revision: https://phab.enlightenment.org/D3641
2016-02-05 17:47:53 +09:00
Hermet Park 75345770ce add a function to invert view size. 2016-02-05 17:42:26 +09:00
Hermet Park 10c40a182c change the guide text of the fixed live view size. 2016-02-05 16:16:30 +09:00
Hermet Park 4f4fd2c792 Improve the guide text (more kindly) for the live edit. 2016-02-05 16:04:32 +09:00
Hermet Park e90df35c2c Improve a behavior of mouse wheel for live view.
Before this change, live view won't be scaled up/down with mouse wheel
unless the live view size was fixed.

Now, it automatically fixes the size of view then change the scale of view.
2016-02-05 15:57:00 +09:00
Hermet Park 924cf47060 tools - rearrange tool buttons position. 2016-02-04 21:15:29 +09:00
Hermet Park c8aa003ec3 update live edit tools 2016-02-04 21:04:33 +09:00
Hermet Park 9974c8bcb6 status: disable status when menus were enabled. 2016-02-04 15:35:38 +09:00
Hermet Park 8aac906c82 Revert "fix the problem of selection cusor moving"
This reverts commit e8ade4e64b.

This patch was not intended :(
2016-02-03 14:06:52 +09:00
Hermet Park c610bebb8d Set focus to the editor when zooming popup is dismissed.
This fixed the after focus image of the zooming popup.
2016-02-03 14:04:41 +09:00
taehyub e8ade4e64b fix the problem of selection cusor moving
Summary:
The selection cursor is moved at the frist
When clicking and moving the bracket using the mouse.
In entry_recover(), there is no selection cursor recover machanism.
So I added the selection recover logic in the function.
Now, it is fixed.

@fix
@T3099

Test Plan:
  1. click the bracket
  2. moving the cursor keeping the mouse clicking
  3. see the fixed result

Reviewers: Hermet, Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D3641
2016-02-03 10:36:12 +09:00
Yongheon, Shin 22579bec50 Add keyword feature for base_scale
Summary: When selecting with double-click on base_scale variable, add keyword

Reviewers: Jaehyun_Cho

Subscribers: Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D3633
2016-02-02 18:09:44 +09:00
taehyub be94d88921 edc_editor: remove unnecessary code
Summary:
remove unnecessary code in entry_recover function

@fix

Reviewers: Hermet, Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D3638
2016-02-02 17:46:36 +09:00
taehyub bf5e38298d edc_editor: fix bracket updateto be called one time
Summary: fix bracket update callback to be called one time

Reviewers: Hermet, Jaehyun_Cho

Reviewed By: Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D3637
2016-02-02 17:44:12 +09:00
taehyub 24e012812f edc_parser: move update cb into bracket_thread_end
Summary:
move update cb into bracket_thread_end.
it can cause runtime error when the bracket thread is canceled.

@fix

Reviewers: Hermet, Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D3636
2016-02-02 17:39:06 +09:00
Hermet Park 872a79e87d fix incorrect memory allocation.
eina_inarray copies it's element memory when it have them.
we don't need to allocate element memory dynamically to push into it.

@fix
2016-02-02 16:38:51 +09:00
taehyub f2cc727146 make group, description and program tempalte code compilable
Summary: make group, description and program tempalte code compilable

Test Plan:
1. insert template code using ctrl + t
2. see the name of the template and checkt the compile error.

Reviewers: Jaehyun_Cho, Hermet

Subscribers: NikaWhite

Differential Revision: https://phab.enlightenment.org/D3613
2016-01-29 16:41:59 +09:00
Hermet Park e381643026 edc_parser: fix build break.
it's a just typo.
2016-01-29 16:10:51 +09:00
Hermet Park 49ee620131 Fix template code inserting.
This is a side effect of this commit e984d2bb4e

@T3107
2016-01-28 19:36:21 +09:00
Jaehyun Cho e984d2bb4e template: Fix incorrect template insertion inside LazEDC block
Since LazEDC block types were not recognized for template insertion,
inserted template type inside LazEDC block was not correct.
(e.g. inside desc { })
Now LazEDC block types are considered for template insertion by Ctrl+T.
2016-01-27 15:14:27 +09:00
Hermet Park 14daddac74 code refactoring.
revise bracket logics which was newly introduced.
2016-01-27 14:27:49 +09:00
taehyub ed7e655add edc_editor: add pair of bracket highlighting feature
Summary: when mouse cursor on bracket which are '{', '}', the bracket is highlighted with its pair.

Reviewers: Jaehyun_Cho, Hermet

Reviewed By: Hermet

Subscribers: herb, NikaWhite, Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D3588
2016-01-27 13:01:53 +09:00
Hermet Park c79a0aa4e5 about - use entry_file_set() instead of direct file accessing.
This changes enventor makes much simpler to maintaining code.
Additionally, the about file should have been markup format.
Previously, it used to use markup partially so its format was ambigious.
2016-01-25 15:56:20 +09:00
Jaehyun Cho 0c15bde219 edc_parser: Fix to allocate correct size of memory for string.
Allocate one more char memory for the last null character of the string.
This commit fixes the commit 335575eb84.
2016-01-22 21:21:12 +09:00
Hermet Park 3fb96ced83 toggle on the fixed view size forcely,
when user starts to drag the slider to change the view scale.

Enventor assumes user wants a fixed view size
when they try to scale up/down the live view.
2016-01-22 21:00:48 +09:00
Hermet Park 6f4a9b2683 improve menu ui.
removed the prev button.
instead, user can toggle menu screen off, by clicking the dim area.
2016-01-22 20:47:04 +09:00
Hermet Park 4d3c94cf64 code refactoring.
goto_close(), search_close() returns a result in order that the caller decides a next behavior.
2016-01-22 20:22:46 +09:00
Hermet Park 5c23a5b661 code refactoring.
tools_close() returns a result in order that the caller decides a next behavior.
2016-01-22 19:59:37 +09:00
Hermet Park ede00648d9 code refactoring.
remove enventor reference passing. it's avaiable to be globally accessed.
2016-01-22 19:53:32 +09:00
Hermet Park b50dbe2571 code refactoring.
remove enventor reference passing. it's avaiable to be globally accessed.
2016-01-22 19:41:51 +09:00
Hermet Park 8679899045 code refactoring.
remove enventor reference passing. it's avaiable to be globally accessed.
2016-01-22 19:30:29 +09:00
Hermet Park cc2e04fe99 main: update live view scale value after setting is done.
This is a missing code from newly introduced view scale slider
350ee8c413
2016-01-22 19:07:59 +09:00
Hermet Park 4b9dd42839 set slider step size for view scale in setting.
Now slider cursor moves by 0.01.
2016-01-22 19:06:26 +09:00
Hermet Park d4115210da base_gui: remove redundant code. 2016-01-22 18:58:34 +09:00
Hermet Park 350ee8c413 add live view scale slider onto status bar.
@feature
2016-01-22 17:34:32 +09:00
Jaehyun Cho 521d12f4cb edc_parser: Fix array count of aspect_preference. 2016-01-21 19:00:31 +09:00
Jaehyun Cho 5c170bc5a4 edc_parser: Fix to remove unsupported in EDC.
NONE for program action is removed since it is not supported in EDC.
2016-01-21 18:47:57 +09:00
Jaehyun Cho 142db7a0f9 autocomp: Fix not to deallocate memory of eet data descriptor.
It does not need to reset eet data descriptor when eet file is opened
again.
2016-01-20 15:02:34 +09:00
Hermet Park d06a07b574 fix the incorrect tooltip positor for tools.
i have no idea when this bug was introduced.
But previously, it worked perfectly.

Anyhow, putting new code for fixing.
2016-01-08 15:27:50 +09:00
Hermet Park ad1dfd99c4 refactoring code.
rename an internal function name.
previous one was so ambigious.
2016-01-08 12:03:39 +09:00
Hermet Park d02d6a2679 remove an unused prototype declaration. 2016-01-08 11:49:32 +09:00
Hermet Park ecff37f1b5 remove redundant code. 2016-01-08 11:48:12 +09:00
Jaehyun Cho 5120c20d84 Parse macro only if EDC is modified and group name is searched.
Previously, macro was parsed when EDC was changed.
This caused performance issue.
Now, macro is parsed only if EDC is changed and group name is searched.
2016-01-06 13:28:54 +09:00
Jaehyun Cho 335575eb84 Support to use macro as a group name.
Previously, group name was recognized with double quotation marks("").
This makes defined macro cannot be used as a group name.
Now, defined macro is parsed and listed. Macro group name is recognized
from the defined macro list.
2016-01-04 20:23:36 +09:00
Hermet Park e3b5d85e08 ++ enventor config version 2016-01-03 15:51:38 +09:00
Hermet Park 3f7e523d39 improve a autocomplete feature.
it should not blow the string queue up.

@fix T2982
2016-01-03 03:56:25 +09:00