Command to auto-show/hide all palettes #563

Closed
benstahl opened this Issue Nov 14, 2013 · 5 comments

Comments

Projects
None yet
3 participants
@benstahl

Similar to the Adobe apps (which use the Tab key), press a key and all palettes, tool bar, and status bar disappear, leaving you with a large "clean" view of your tile map grid. Press again and the palettes re-appear. Not sure whether the "clean" map view should re-position itself to center itself up in the new space (but I suggest yes).

@bjorn

This comment has been minimized.

Show comment
Hide comment
@bjorn

bjorn Nov 15, 2013

Owner

Right, that would definitely be nice.

Owner

bjorn commented Nov 15, 2013

Right, that would definitely be nice.

@bjorn bjorn changed the title from Feature request: command to auto-show/hide all palettes to Command to auto-show/hide all palettes Sep 26, 2015

@bjorn bjorn added the feature label Sep 26, 2015

@bjorn bjorn added the usability label Mar 28, 2017

@erem2k

This comment has been minimized.

Show comment
Hide comment
@erem2k

erem2k Mar 29, 2017

Contributor

Looks quite straightforward, anything else other than is adding shortcut performing this action needs to be done here?

Contributor

erem2k commented Mar 29, 2017

Looks quite straightforward, anything else other than is adding shortcut performing this action needs to be done here?

@bjorn

This comment has been minimized.

Show comment
Hide comment
@bjorn

bjorn Mar 29, 2017

Owner

@erem2k I guess the action should be visible in the menu somewhere, it could go together with View -> Full Screen (F11).

The main implementation work is probably to remember which docks were visible and to restore this state when the shortcut is used again. It could be done either manually or using QMainWindow::restoreState, not sure what will work better. Also it needs to be considered what should be done when the user has manually restored some docks, or maybe that should be disallowed. Disallowing is probably easiest (though I'm not sure how that would be done), because care should also be taken that when entering the mode and then closing Tiled, that you can still reopen Tiled either in regular mode, or still in "distraction free" mode and able to switch back to regular mode.

When in doubt about the behavior I tend to also look at other applications that already have similar functionality. They have usually already struggled with the same questions.

Owner

bjorn commented Mar 29, 2017

@erem2k I guess the action should be visible in the menu somewhere, it could go together with View -> Full Screen (F11).

The main implementation work is probably to remember which docks were visible and to restore this state when the shortcut is used again. It could be done either manually or using QMainWindow::restoreState, not sure what will work better. Also it needs to be considered what should be done when the user has manually restored some docks, or maybe that should be disallowed. Disallowing is probably easiest (though I'm not sure how that would be done), because care should also be taken that when entering the mode and then closing Tiled, that you can still reopen Tiled either in regular mode, or still in "distraction free" mode and able to switch back to regular mode.

When in doubt about the behavior I tend to also look at other applications that already have similar functionality. They have usually already struggled with the same questions.

@erem2k

This comment has been minimized.

Show comment
Hide comment
@erem2k

erem2k Mar 30, 2017

Contributor

@bjorn

it could go together with View -> Full Screen (F11).

Yup, will stuff it there. What hotkey is it supposed to use, Tab like suggested?

Also it needs to be considered what should be done when the user has manually restored some docks, or maybe that should be disallowed

In Adobe apps, restoring docks is possible during "view" mode, and they remain after interface is turned back on again in addition to docks that were originally hidden. If dock had multiple tabs, was active and had tab open during "interface" mode and was restored during "view", the tab active in "view" mode remains, sort of expand and replace behavior. If app is closed while in "view", it opens back in "interface" mode - think I'll go with that idea

Contributor

erem2k commented Mar 30, 2017

@bjorn

it could go together with View -> Full Screen (F11).

Yup, will stuff it there. What hotkey is it supposed to use, Tab like suggested?

Also it needs to be considered what should be done when the user has manually restored some docks, or maybe that should be disallowed

In Adobe apps, restoring docks is possible during "view" mode, and they remain after interface is turned back on again in addition to docks that were originally hidden. If dock had multiple tabs, was active and had tab open during "interface" mode and was restored during "view", the tab active in "view" mode remains, sort of expand and replace behavior. If app is closed while in "view", it opens back in "interface" mode - think I'll go with that idea

@bjorn

This comment has been minimized.

Show comment
Hide comment
@bjorn

bjorn Mar 30, 2017

Owner

Yup, will stuff it there. What hotkey is it supposed to use, Tab like suggested?

Yes, I think Tab key and in general the behavior in Adobe apps will work fine.

Owner

bjorn commented Mar 30, 2017

Yup, will stuff it there. What hotkey is it supposed to use, Tab like suggested?

Yes, I think Tab key and in general the behavior in Adobe apps will work fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment