Commit Graph

1030 Commits

Author SHA1 Message Date
Bowon Ryu 6371a5d930 edc_navigator: fix evaluation order
Summary: fix static analyzer warning

Reviewers: Hermet, Jaehyun_Cho

Reviewed By: Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D4008
2016-06-02 20:17:18 +09:00
Bowon Ryu 8ceeb8b113 live_edit: fix data type for calculate part relative
Summary: fix static analyzer warning.

Reviewers: Hermet, Jaehyun_Cho

Reviewed By: Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D4006
2016-06-02 20:15:24 +09:00
Bowon Ryu 79ee03693c goto: add NULL check
Summary: fix static analyzer warning

Reviewers: Hermet, Jaehyun_Cho

Reviewed By: Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D4005
2016-06-02 16:01:13 +09:00
Bowon Ryu 2889bf140f live_edit: remove same code
Summary: fix static analyzer warning

Reviewers: Hermet, Jaehyun_Cho

Reviewed By: Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D4004
2016-06-02 15:32:25 +09:00
Bowon Ryu 722d245929 live_edit: add return value
Summary: fix static analyzer warning

Reviewers: Hermet, Jaehyun_Cho

Reviewed By: Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D4000
2016-06-02 15:19:23 +09:00
Hermet Park 0882acfe93 edc_navigator: compare name elaborately to search the part correctly.
previous string compare is not enough find the string if there are similar ones.

now compare them in detail to correct this.

@fix T3736
2016-06-02 00:08:04 +09:00
Hermet Park 73ceae42b5 live_edit: don't highlight lines when ctrl key is pressed.
When user press the ctrl key, then part magnetic effect is always enabled.
it was introduced from missing return function value...

@fix T3741
2016-06-01 23:30:06 +09:00
Hermet Park 47fb10341c main: print warning message correctly.
that message is not about a programmers error but user's mis-usage.
That shouldn't be eina_log_error.
2016-06-01 23:22:03 +09:00
Hermet Park 4276c9479e config: set error-message-red-alert-effect configurable.
that effect is up to user's preference.
let user choose it enabled or not.
2016-06-01 23:19:21 +09:00
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
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 3f317692cb about: redesign about page. 2016-05-25 02:20:51 +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 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 2fd17c1ed0 file_browser: Fix memory issues.
Fix memory leak and memory double free issues.
2016-05-18 22:08:40 +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
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 754e629b14 live_edit: Fix warnings. 2016-05-16 23:32:50 +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 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
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
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 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 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 8d109970c6 code refactoring.
sanitize duplicated error message code.
2016-04-26 23:13:42 +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
Hermet Park 386edb7ab5 edc_navigator: store/restore auto contraction mode. 2016-04-22 16:22:53 +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
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 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 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
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
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 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 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
Hermet Park 135af1a13f console: free memory after used it. 2016-03-07 22:41:31 +09:00
Hermet Park c03187f3cd panes: free all transits when enventor is terminated. 2016-03-07 22:14:45 +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 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 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
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 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 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 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
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 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 af1591100c text_setting: Select current font name and style. 2016-02-23 22:38:13 +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
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
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
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 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
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 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 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 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
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 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
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
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
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 d35a229eab update dummy parts interfaces.
change toggle dummy swallow to dummy parts
because now dummies include spacer and swallow.
2016-01-02 14:06:59 +09:00
Hermet Park 8159192a47 close ctxpopup when warning popup is shown up.
check whether ctxpopup and close it, if window is moving on to close.

@fix T2996
2016-01-01 12:11:26 +09:00
ChunEon Park 06bc1f0226 liveedit: fix the incorrect size of object.
Conceptually, the output size of the edit object shouldn't be scaled.

@fix T2975
2016-01-01 00:37:07 +09:00
Mykyta Biliavskyi 11ae10d04f Console: reset console content on open or create new file
fix T2980
2015-12-29 12:04:23 +09:00
Mykyta Biliavskyi d1c5cebb24 Localization: add texts from setting layouts to locale. 2015-12-16 10:22:39 +09:00
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
Mykyta Biliavskyi c6ec131b8d Multilanguage: apply gettext macro to bin/.
Cover all strings with _() macro.
2015-11-17 17:39:22 +00:00
Stephen Houston b56a87b550 Enventor: Fix some grammatical/spelling issues. 2015-10-30 07:40:21 -05: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 a2e8ea3028 Show the save warning dialog on close unsaved file. 2015-09-18 09:36:07 +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 e2cc943e77 Fix compilation warnings for enventor application. 2015-09-15 17:42:03 +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
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
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 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