Commit Graph

1030 Commits

Author SHA1 Message Date
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
Jaehyun Cho 0aef6bd397 templates: Change image file names. 2015-08-12 11:20:37 +09:00
Vincent Torri 8abd0ef514 Fix warning on Windows 64 bits 2015-07-31 16:07:57 +09:00
Vincent Torri cd7023ecc9 Use eina_environment_home_get() instead of getenv("HOME") for portability 2015-07-31 16:07:14 +09:00
ChunEon Park fedcfd3149 text_setting: one more here code refactoring.
err is enough to use.
2015-07-10 20:13:12 +09:00
ChunEon Park c25eb038b3 text_setting: code refactoring.
err is enough to use.
2015-07-10 20:10:37 +09:00
ChunEon Park 9bf1c484f7 code refactoring.
replace *edc, *edj to *input, *output
For the general editor, modify them in advance.
2015-07-04 01:18:27 +09:00
ChunEon Park 6b6f4b19c1 main: code refactoring.
don't keep temporary variable.
2015-07-03 23:01:22 +09:00
ChunEon Park 8ef03ee90c newfile: code refactoring.
return function as soon as possible.
2015-07-03 22:41:11 +09:00
ChunEon Park e9f258a839 notify file changed popup correctly.
Current implementation has logical hole that skips the notification of file changes first time.
We fix this even if it depends on the time thresholds.
New implementation will skip the file changes also but
it will only skip, if the file change is happened again under 2 seconds.
2015-07-03 20:24:05 +09:00
ChunEon Park fe2ad1f07b change Enventor_Path_Type interface.
changed names for enum value consistency.
2015-07-01 12:04:48 +09:00
ChunEon Park 92c09a0a39 ctxpopup: support dramatic updation for live view.
a little slow, but it's better than before.

added smart callback, @live_view,updated
renamed smart callback, @ctxpopup,selected -> @ctxpopup,changed
2015-07-01 01:25:04 +09:00
Mykyta Biliavskyi 9cc1fb443e Correct handling ecore key modificators.
Summary: Macro EVENT_KEY_MODIFIER_CHECK_OR_RET provide possibility  to check, if only one modifier pressed.

Reviewers: Hermet

Projects: #enventor

Differential Revision: https://phab.enlightenment.org/D2759
2015-06-26 13:49:43 +09:00
Mykyta Biliavskyi 43554348a4 Change the file save policy.
Summary:
  In case when inputted file name does not contain
  "edc" or "edj" extention, ".edc" will be added automaticaly.

  T1784

Reviewers: Hermet

Projects: #enventor

Maniphest Tasks: T1784

Differential Revision: https://phab.enlightenment.org/D2760
2015-06-26 13:44:38 +09:00
ChunEon Park 3c31b1661e tools: update tooltip message 2015-06-24 15:38:20 +09:00
Jean-Philippe Andre 83012a0a04 Editor zoom: Ctrl + wheel should work even with numlock
When checking the modifiers, only ALT, CTRL, WIN and SHIFT make
sense in this context.
2015-06-24 15:30:34 +09:00
ChunEon Park 786fef138c cancel live edit if the about is activated. 2015-06-24 15:26:00 +09:00
ChunEon Park 9342835f3d live_edit: update live edit on scrolling. 2015-06-24 15:24:32 +09:00
ChunEon Park 56816ab1f4 live edit: don't clip by symbol layout but live view.
texts/control points don't need to be clipped by symbol layout.
if the zoom level is enoughly small and there is enough space to
display the control points and text, then we can display them.
2015-06-24 15:11:44 +09:00
ChunEon Park 9615d308ec menu: fix wrong grammar 2015-06-24 14:47:27 +09:00
ChunEon Park 9c0cf02039 update warning button text.
save/yes/no -> save/discard/cancel
2015-06-24 14:43:39 +09:00
ChunEon Park ca8c53e073 revise description of live view. 2015-06-24 13:37:31 +09:00
ChunEon Park 7e31de5ce3 menu: removed tooltips from menu buttons. 2015-06-24 13:31:20 +09:00
Mykyta Biliavskyi 533994772f Fix compiler warnings.
Fix -Wuninitialized flag warnings.
2015-06-24 13:12:20 +09:00
ChunEon Park 099b87186f modify zoom behavior.
changed zoom up/down behavior only if view size is set.
it's been quitely useless zoom up/down function without any base size.
2015-06-23 21:30:26 +09:00
ChunEon Park 6d72ca9e4b live_edit: ... fix live edit scaling issue. 2015-06-23 21:29:41 +09:00
ChunEon Park 802d68ff83 config: store/recover the editor panes position. 2015-06-23 14:39:48 +09:00
ChunEon Park 9dd9e0d9eb live_edit: support zoom on live editing.
previously, it doesn't care the view zooming on live editing.
now it's working perfectly.
2015-06-23 13:14:11 +09:00
ChunEon Park 61d7acca06 live_edit: use ELM_SCALE_SIZE() for scalability. 2015-06-23 11:20:01 +09:00
ChunEon Park f7bb26e9b1 live_edit: fix focus highlight floating issue.
After selecting a live view edit item,
the item focus highlighting is remained there.
Now it's fixed by moving the focus to live view.
2015-06-23 10:28:25 +09:00
ChunEon Park 772ffe2229 live_edit: fix regression bug that introduced in 14a0e2cfd2
toggling context is corrupted but recovered again.
2015-06-22 22:50:22 +09:00
ChunEon Park 14a0e2cfd2 tools: improved ui.
add click / toggle on/off effect.
2015-06-22 22:45:40 +09:00
ChunEon Park 11e5dba045 code refactoring.
remove duplicated logics wrt function toggles.

this is the precede work for improving tools gui.
2015-06-22 18:25:48 +09:00
ChunEon Park ea715444ed remove compile warnings.
remove unused variables.
2015-06-22 15:44:22 +09:00
Mykyta Biliavskyi 02af80d3ba Hotkeys: fix work ctrl_l key with num lock.
Summary: Need to check CTRL_L and ALT_L bits in ECORE_EVENT_MODIFIER

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D2722
2015-06-22 14:49:17 +09:00
Mykyta Biliavskyi 5b3aa7ca3b Autocomplete: show list of the candidates by Ctrl+space.
Summary:
By press ctrl_l+space will be shown popup with the candidates list,
that relevant to current cursor position.
Added API enventor_object_auto_complete_list_show as public.

Reviewers: Hermet, jpeg

Maniphest Tasks: T2496

Differential Revision: https://phab.enlightenment.org/D2720
2015-06-22 14:34:52 +09:00
ChunEon Park 82d31b3418 fix the font/live zoom control issue.
When you focus on other window while you pressing the ctrl/alt key at the enventor,
the ctrl/alt key pressed context can be corrupted.

because enventor keeps the extra flag for ctrl/alt key press states.
but in the problem case, the unpress key won't be trigged.

enventor doesn't need to keep the extra flag but track the modifiers in key event.

@fix
2015-06-12 17:03:45 +09:00
ChunEon Park 5b7bdd95ba change the short-cut key usage.
previous panes toggle is triggered by ctrl + arrow keys.
But editor itself uses ctrl key for cursor move/jump.
To conserve the cursor key, we change the panes short-cut.

Thanks jpeg to report this.
2015-06-11 17:19:52 +09:00
ChunEon Park 08c9ddeecd don't clip the tooltip in tools.
i guess, since the tooltip has been changed recently,
it's behavior changed a little.
because of this, tooltip in tools got clipped outside of the viewport.

Anyhow it's fixed.

@fix
2015-06-11 16:45:09 +09:00
ChunEon Park d8bac599a7 removed template code insert feature.
now enventor supports inserting part with live view editor,
i don't think this is required in enventor anymore.
2015-06-11 16:39:26 +09:00
Mykyta Biliavskyi 59a5faf6e0 Save dialog: support save edj files.
In case when user types filename.edj binary file will be
compiled into that place, which chosen in fileselector.
2015-06-04 11:53:42 +09:00
Mykyta Biliavskyi af56cdb083 Support version fo the enventor config file.
Config data is checked on the versiob of config file.
if the version is lower than current, then don't read
the config data and instead open with default.
On enventor close, config file is rewrited with new data.
2015-06-03 22:52:19 +09:00
Mykyta Biliavskyi 59ec635813 Command arguments: add recognize output file.
If command arguments contain path to file
with ".edj" extension, this file will be used
for store output binary file.

Example:
enventor --id /path/img --fd /path/fnt input.edc output.edj
2015-06-03 16:55:23 +09:00
Mykyta Biliavskyi a247010813 Command line arguments: fix ignoring resource pathes.
If application run with command like:
enventor --id /path/images --fd /path/fonts
Pathes will be used in application.

@fix
2015-06-03 16:49:12 +09:00
Mykyta Biliavskyi 4415cdf7a9 Command line: add new arguments into command line.
Added next arguments:
-v, --version           show program version.
-c, --copyright         show copyright.
-l, --license           show license.
2015-05-27 14:43:25 +09:00
ChunEon Park ec340a1760 config_data: code refactoring.
just clean up code.
2015-05-27 14:41:40 +09:00
Mykyta Biliavskyi dee12936e3 Config: fill the paths to the resource directories from command line.
Add support multi paths for resource directories as arguments
from command line.

Now support next parameterized arguments:
--id path/ - image directory path,
--sd path/ - sound directory path,
--fd path/ - font directory path,
--dd path/ - data directory path,
--to - open template dialog.

For example:
enventor  --id path_1/ --id path_2/ --sd path_3/ --fd path_n/
2015-05-27 14:36:30 +09:00
ChunEon Park 2ccceded2f live_edit: improve grip control. 2015-05-24 19:14:59 +09:00
ChunEon Park a83556895f base_gui: + assert for easy debugging 2015-04-14 13:16:59 +09:00
Jaehyun Cho 6b21eeab0f Set default font if font name is given with NULL. 2015-03-26 22:52:55 +09:00
Jaehyun Cho 4439ca4d75 text_setting: Add font name/style settings. 2015-03-26 22:00:47 +09:00
ChunEon Park 76b56d92a2 bin/live_edit: remove unimportant message. 2015-03-01 18:55:11 +09:00
ChunEon Park 83ffef1bf3 Revert "bin/main: fix redo/undo operation issue."
This reverts commit 8f739c0edf.

eeek. this breaks entry input events.
2015-03-01 16:02:29 +09:00
ChunEon Park 8f739c0edf bin/main: fix redo/undo operation issue.
suddenly i found ecore key down/up is called twice..
i don't know reason but seems fd handler triggered this events.
this could be my system problem if your system doesn't have this,
please remove this workaround code.
2015-03-01 15:57:53 +09:00
ChunEon Park d146547b52 enventor_object_save() forcely rewrites if the file path is changed.
so app doesn't need to care it anymore.
2015-03-01 14:23:31 +09:00
ChunEon Park 3dfaf7cb61 bin/file_mgr: don't update msg if statusbar is disabled. 2015-03-01 14:11:00 +09:00
ChunEon Park 65a52d4968 bin/main: this is not intended. 2015-03-01 12:34:15 +09:00
ChunEon Park 5d779f3dc7 bin/main: code refactoring.
add a enventor common setup to remove duplication.
2015-03-01 12:30:10 +09:00
ChunEon Park b19304d4c7 Revert "text_setting: Add font name and font style settings."
This reverts commit 74e72e6234.

Conflicts:
	src/bin/text_setting.c

font change is critically buggy.
need to test more and review in detail.
2015-03-01 03:08:18 +09:00
ChunEon Park cb339befe2 bin/main: fix infinite loop case.
when user launch enventor with command line option "-to xxx.edc",
it falls in infinite loop.

now its fixed.
2015-03-01 02:37:24 +09:00
ChunEon Park f3f0c30c8a fix live view updation problem.
if file is saved as, the edj tracking would be corrupted.
later this scenario, live view won't be updated

@fix T2124
2015-03-01 02:00:19 +09:00
Jaehyun Cho cf78081977 newfile: Fix that edj is not reloaded when newly opened edc is changed.
edj was not reloaded when newly opened edc is changed since the new edc
path was not stored in conifg edc path.
2015-02-27 17:32:24 +09:00
ChunEon Park 0e885dfd04 bin/text_setting: remove unused variable. 2015-02-27 17:28:01 +09:00
ChunEon Park 5e8f437df5 fix all annoying warnings. 2015-02-27 17:26:02 +09:00
Jaehyun Cho 74e72e6234 text_setting: Add font name and font style settings. 2015-02-27 16:38:55 +09:00
ChunEon Park f7b15998d8 bin/tools: add button - redo, undo. 2015-02-26 14:39:43 +09:00
ChunEon Park b28526310f bin/tools: code refactoring.
rename to explicit name.
2015-02-26 14:23:46 +09:00
ChunEon Park 3a60e771a6 bin/tools: add save button. 2015-02-26 14:22:30 +09:00
ChunEon Park c668f54514 bin/live_edit: update info text format 2015-02-26 10:55:59 +09:00
ChunEon Park 331ad370d7 bin/live_edit: fix side effect.
align lines are always visible. it's fixed.

it's introduced from e858f46c0b
2015-02-25 22:08:52 +09:00
ChunEon Park dd91efdc3d bin/live_edit: improve ui.
reposition info text and update guide text.
2015-02-25 22:03:55 +09:00
ChunEon Park e858f46c0b bin/live_edit: increase accuration for detailed coordinates. 2015-02-25 21:50:14 +09:00
ChunEon Park 33b19c34cb bin/live_edit: code refactoring.
use enumeration instead of macro
2015-02-25 16:25:06 +09:00
ChunEon Park f21ba9c7e6 bin/live_edit: improve info text ui 2015-02-25 16:06:21 +09:00
ChunEon Park 179646e910 bin/live_edit: remove unused vars. 2015-02-25 14:14:57 +09:00
ChunEon Park ba3d067179 bin/main: cancel live edit if context is switched to. 2015-02-25 11:10:54 +09:00
ChunEon Park 0c282e559c bin/live_edit: fix the align line wrong position.
logically, the align line has the position problem.
it's position should be limited to each control positions.
2015-02-23 20:34:08 +09:00
ChunEon Park 66706fac1f bin/live_edit: improve ui.
show/hide align lines more smoothly.
2015-02-22 23:45:49 +09:00
ChunEon Park f44b41ab29 bin/live_edit: show/hide control points
show/hide control points case by case.
2015-02-22 23:35:11 +09:00
ChunEon Park ebfefc0531 bin/live_edit: improve ux.
add a assistance lines for aligning.
2015-02-22 23:14:58 +09:00
ChunEon Park 9baad134e8 bin/live_edit: insert part on user double click. 2015-02-22 22:33:04 +09:00
ChunEon Park 2386e45e92 bin/live_edit: allow backspace key to cancel the live edit mode 2015-02-22 22:26:12 +09:00
ChunEon Park 99307f2e58 bin/live_edit: remove redundant code 2015-02-22 22:25:43 +09:00
ChunEon Park 66e04b8ec1 bin/live_edit: improve usage.
add better rich control pointers.

this patch totally re-implemenet live edit function
since the draggable part has a lots of limitation to control it by user.
2015-02-22 18:27:24 +09:00
ChunEon Park b792fac1d3 bin/live_edit: code refactoring.
just change internal variable name.
no logic change.
2015-02-21 15:47:33 +09:00
ChunEon Park 4d85c59418 bin/live_edit: shorter guide message. 2015-02-20 21:58:18 +09:00
ChunEon Park 24bcf041ba bin/live_edit: fix wrong ctxpopup position.
in case of short-cut key usage,
ctxpopup was appeared wrongly.
now it's placed according to the live edit buton.
2015-02-20 21:54:25 +09:00
ChunEon Park 2f451ba1b4 bin/live_edit: fix logic wrong.
live edit should be canceled when ctxpopup is dismissed
2015-02-20 20:53:48 +09:00
ChunEon Park 2346693c0a bin/live_edit: improve ux
change ui draggable rel1, rel2 controls.
remove info text
make outline shiny
2015-02-20 20:44:44 +09:00
ChunEon Park 4c66c8a1c4 bin/live_edit: code refactoring.
clean up the code.
2015-02-19 15:37:14 +09:00
ChunEon Park d95a66712c bin/live_edit: cancel live edit mode if ctxpopup is dismissed by user. 2015-02-19 14:51:04 +09:00
ChunEon Park fe23ef7865 bin/tools: remove redundant call.
we don't need to set focus on enventor here anyway the menu will be activated.
2015-02-19 13:06:43 +09:00
ChunEon Park ab4ddaa2fd bin/tools: code clean up.
split behaviors as possible.
2015-02-19 13:06:04 +09:00
ChunEon Park 8e0efde5b1 bin/live_edit: toggle live edit
don't activate search/goto with the live edit.
2015-02-19 13:01:47 +09:00
ChunEon Park 0ef94819a3 bin/live_edit: cast data type. 2015-02-19 12:56:27 +09:00
ChunEon Park 37e425fa1b bin/live_Edit: cancel live edit when esc is pressed 2015-02-19 12:34:03 +09:00
ChunEon Park bf122beaec bin/main: code clean up.
split behaviors as possible.
2015-02-19 12:29:33 +09:00
ChunEon Park 4e6be71030 bin/live_edit: code refactoring.
just clean up code
2015-02-16 19:23:10 +09:00
ChunEon Park d040694dc2 bin/live_edit: use a ctxpopup instead of menu. 2015-02-16 19:19:33 +09:00
ChunEon Park 12b35145ae bin/live_edit: refactoring code.
Just keep the on/off info in live edit.
enventor doesn't need to keep it in config since it's mode is volatile.
2015-02-16 16:27:42 +09:00
Hermet 04c35e5d8a bin/console: add auto hiding function.
this is for better intellegent console window.

console will be hidden if any error messages are gone.
2015-02-14 18:36:00 +09:00