Commit Graph

33 Commits

Author SHA1 Message Date
Andy Williams 75c1d42e55 mainview: Don't promote a tab immediately before closing it 2017-11-19 11:43:58 +00:00
Al Poole d1052de44b mainview_panel: fix focus issue and panel closing.
This fixes an issue with focus and also makes closing panels
and tabs much friendlier to the user.
2017-11-05 00:46:51 +00:00
Al Poole 4dc1cdf8ce mainview: add support for the new EFL focus subsystem. 2017-10-28 20:53:30 +01:00
Al Poole 7a5083c790 mainview: Add support for split-panes.
This adds the ability to edit multiple regions of the same
file at the same time. The views are synchronised. This
also adds a complementary function allowing us to get panel
from path name. We use this for focus sanity with our
additional split views.
2017-10-10 23:29:17 +01:00
Andy Williams 08547bbd3a Add translation support
Fixes T5901
2017-09-11 21:06:22 +01:00
Al Poole 3b1e7d0288 popups: refactor popups.
Some of these looked pretty duff. Have tried to make them
more consistent and nicer.
2017-09-11 18:54:02 +01:00
Al Poole 65477c7d46 widgets: Use consistent text style across widgets in the application.
Make changes to text style along with some miminal word changes and
fixes.
2017-09-02 22:48:57 +01:00
Al Poole 5eaf4e3be2 mainview: also select filepanel on tab focus.
This was bad by me. Found an example with an image. Both instances
are necessary for uniform behaviour. Sorry.
2017-09-02 11:54:40 +01:00
Al Poole 514e472cd1 filepanek: set the filepanel focus on editor focus.
Tab selection will focus the editor. This fixes occasions
when clicking between panels. So the filepanel focus is
uniform. Should have thought of doing it this way before.
2017-09-02 11:47:18 +01:00
Al Poole 782ef16427 mainview_panel: remove unnecessary cast.
Edi_Mainview_Item pointer does not need to be cast.
2017-09-01 20:42:41 +01:00
Al Poole 7f1dfbb26e filepanel: add method to select by path and select upon tab promotion.
When a file is focussed in it's panel and tab the file is also selected
in the filepanel. Another visual indicator of current focus and
synchronises behaviour of tab selection and filepanel selection.
2017-09-01 20:16:19 +01:00
Al Poole 2731c4bb75 mainview: clicking on tabs or filename will focus the editor entry.
Remove focus from tab item as it was stopping us from focussing the
editor entry. This change keeps track of cursors upon item change
and will focus (if possible) the entry. In essence, less clicks!
Clicking tabs or a file in the file panel has the same result.
2017-09-01 18:49:38 +01:00
Al Poole 97e324654c mainview: ensure only one instance of file is open across tabs and panels.
This change will ensure only one item can be opened at once across all
panels.
2017-09-01 13:53:27 +01:00
Al Poole 9ea0ba05c3 scm stash: on stash don't refresh all panels, let user decide on focus.
Removed the call to mainview_refresh_all which means after stashing
of changes the user can decide to reload the file contents when
focussing the editor.
2017-08-30 23:55:34 +01:00
Al Poole 1ed7c297cb mainview_panel: do safe checks before accessing panel->current->view
Reviewers: ajwillia.ms

Differential Revision: https://phab.enlightenment.org/D5149
2017-08-30 22:19:07 +01:00
Al Poole 8925c72adf editor: unset focus on tab change.
Summary: This seems to fix the multiple cursors between underlying tabs.

Reviewers: ajwillia.ms

Differential Revision: https://phab.enlightenment.org/D5148
2017-08-30 22:11:44 +01:00
Al Poole 7e173bd2c5 mainview_panel: fix panel focus on click of empty panel.
Summary: @fix T5904

Test Plan:
# Open a Project
# Use the menu option and create 5 empty panels by pressing it 4 times.
# click on a panel in any order and then select files.

Reviewers: ajwillia.ms

Reviewed By: ajwillia.ms

Maniphest Tasks: T5904

Differential Revision: https://phab.enlightenment.org/D5133
2017-08-28 14:04:33 +01:00
Al Poole 61b79e7ed6 mainview: unrecognise mime popup UI improvements.
Summary: See http://www.enlightenment.org/ss/e-599c3eeac02540.00312412.jpg

Reviewers: ajwillia.ms

Reviewed By: ajwillia.ms

Differential Revision: https://phab.enlightenment.org/D5121
2017-08-26 16:15:09 +01:00
Al Poole e35c4ba3af windows: make windows work properly and autosave properly.
Reviewers: ajwillia.ms

Reviewed By: ajwillia.ms

Differential Revision: https://phab.enlightenment.org/D5116
2017-08-22 12:38:56 +01:00
Andy Williams a004aeae6b Fix possible crashes in windowed editor 2017-08-21 17:26:26 +01:00
Al Poole fe2714ea7e editor: handle file modifications properly.
Reviewers: ajwillia.ms

Reviewed By: ajwillia.ms

Differential Revision: https://phab.enlightenment.org/D5114
2017-08-21 17:18:02 +01:00
Al Poole 5454d06721 mainview: add separators between panels.
Reviewers: ajwillia.ms

Reviewed By: ajwillia.ms

Differential Revision: https://phab.enlightenment.org/D5110
2017-08-18 23:25:39 +01:00
Andy Williams 7a8119af60 ui: fix cancel of goto popup 2017-08-12 18:00:58 +01:00
Al Poole bcd0909ca9 mainview: add method for testing if mainview is empty.
Summary: Also add checks to some GUI functions that crash Edi if there is no panel with no items.

Reviewers: ajwillia.ms

Reviewed By: ajwillia.ms

Differential Revision: https://phab.enlightenment.org/D5083
2017-08-12 17:51:05 +01:00
Andy Williams d4d37a82ea scm: Fix refreshing of panels on stash
refresh_all now remembers the right panel
2017-08-09 14:04:52 +01:00
Andy Williams 1bf88c4730 refactoring mainview panel freeing and docs 2017-08-09 12:46:20 +01:00
Andy Williams f4ef9bb35c mainview: Fix potential segvs from D5052 2017-08-09 12:28:20 +01:00
Al Poole 3586ac9cc0 mainview: Always open in first panel.
Summary: This patch ensures "open file in panel" will open in first mainview if no file exists in the primary mainview. Otherwise business-as-usual.

Reviewers: ajwillia.ms

Reviewed By: ajwillia.ms

Differential Revision: https://phab.enlightenment.org/D5040
2017-07-25 22:32:14 +01:00
Al Poole 2386b51a60 mainview_panels: on close tab focus on existing tab and always keep one mainview panel.
Summary: This fixes crashes when closing tabs/panel and losing focus.

Reviewers: ajwillia.ms

Reviewed By: ajwillia.ms

Differential Revision: https://phab.enlightenment.org/D5038
2017-07-25 14:26:16 +01:00
Andy Williams 9d0db1a1a5 config: Save the current tab of each panel
This needed a refactor to do properly so your open tabs
will be forgotten, sorry :(
2017-07-24 23:28:48 +01:00
Andy Williams 804d14cef3 panels: Track focus of editors when we're changing panel 2017-07-24 18:27:45 +01:00
Andy Williams a437b5202a config: Be less notification-happy when saving
Let's not force all our editors to reload when we don't have to!
2017-07-24 13:22:19 +01:00
Al Poole be333dee6f add open files in new tab.
Summary: focus chanegs on click of tab in panel. closing last tab closes panel. Exit and open remembers tabs. etc.

Reviewers: ajwillia.ms

Reviewed By: ajwillia.ms

Differential Revision: https://phab.enlightenment.org/D5034
2017-07-23 22:02:24 +01:00