diff options
-rw-r--r-- | doc/asciidoc/fluxbox-keys.txt | 6 | ||||
-rw-r--r-- | src/WorkspaceCmd.cc | 20 | ||||
-rw-r--r-- | src/WorkspaceCmd.hh | 10 |
3 files changed, 36 insertions, 0 deletions
diff --git a/doc/asciidoc/fluxbox-keys.txt b/doc/asciidoc/fluxbox-keys.txt index 560e94d..7d295f2 100644 --- a/doc/asciidoc/fluxbox-keys.txt +++ b/doc/asciidoc/fluxbox-keys.txt | |||
@@ -441,9 +441,15 @@ doing so. | |||
441 | *ToggleSlitAbove*:: | 441 | *ToggleSlitAbove*:: |
442 | Toggles the slit between its regular and the AboveDock layer | 442 | Toggles the slit between its regular and the AboveDock layer |
443 | 443 | ||
444 | *ToggleSlitHidden*:: | ||
445 | Toggles the slit's autohiding state (autohide doesn't have to be enabled) | ||
446 | |||
444 | *ToggleToolbarAbove*:: | 447 | *ToggleToolbarAbove*:: |
445 | Toggles the toolbar between its regular and the AboveDock layer | 448 | Toggles the toolbar between its regular and the AboveDock layer |
446 | 449 | ||
450 | *ToggleToolbarHidden*:: | ||
451 | Toggles the toolbar's autohiding state (autohide doesn't have to be enabled) | ||
452 | |||
447 | *Deiconify* 'mode' 'destination':: | 453 | *Deiconify* 'mode' 'destination':: |
448 | Deiconifies windows (or, restores from a minimized state). | 454 | Deiconifies windows (or, restores from a minimized state). |
449 | + | 455 | + |
diff --git a/src/WorkspaceCmd.cc b/src/WorkspaceCmd.cc index c2a2f8d..bdba96c 100644 --- a/src/WorkspaceCmd.cc +++ b/src/WorkspaceCmd.cc | |||
@@ -634,6 +634,16 @@ void ToggleSlitAboveCmd::execute() { | |||
634 | #endif | 634 | #endif |
635 | } | 635 | } |
636 | 636 | ||
637 | REGISTER_COMMAND(toggleslithidden, ToggleSlitHiddenCmd, void); | ||
638 | void ToggleSlitHiddenCmd::execute() { | ||
639 | #if USE_SLIT | ||
640 | if (BScreen *screen = Fluxbox::instance()->mouseScreen()) { | ||
641 | screen->slit()->toggleHidden(); | ||
642 | const_cast<FbTk::FbWindow&>(screen->slit()->window()).raise(); | ||
643 | } | ||
644 | #endif | ||
645 | } | ||
646 | |||
637 | REGISTER_COMMAND(toggletoolbarabove, ToggleToolbarAboveCmd, void); | 647 | REGISTER_COMMAND(toggletoolbarabove, ToggleToolbarAboveCmd, void); |
638 | void ToggleToolbarAboveCmd::execute() { | 648 | void ToggleToolbarAboveCmd::execute() { |
639 | #if USE_TOOLBAR | 649 | #if USE_TOOLBAR |
@@ -644,6 +654,16 @@ void ToggleToolbarAboveCmd::execute() { | |||
644 | #endif | 654 | #endif |
645 | } | 655 | } |
646 | 656 | ||
657 | REGISTER_COMMAND(toggletoolbarvisible, ToggleToolbarHiddenCmd, void); | ||
658 | void ToggleToolbarHiddenCmd::execute() { | ||
659 | #if USE_TOOLBAR | ||
660 | if (BScreen *screen = Fluxbox::instance()->mouseScreen()) { | ||
661 | screen->toolbar()->toggleHidden(); | ||
662 | const_cast<FbTk::FbWindow&>(screen->toolbar()->window()).raise(); | ||
663 | } | ||
664 | #endif | ||
665 | } | ||
666 | |||
647 | REGISTER_COMMAND(closeallwindows, CloseAllWindowsCmd, void); | 667 | REGISTER_COMMAND(closeallwindows, CloseAllWindowsCmd, void); |
648 | 668 | ||
649 | void CloseAllWindowsCmd::execute() { | 669 | void CloseAllWindowsCmd::execute() { |
diff --git a/src/WorkspaceCmd.hh b/src/WorkspaceCmd.hh index 1766b3a..ae0b577 100644 --- a/src/WorkspaceCmd.hh +++ b/src/WorkspaceCmd.hh | |||
@@ -197,11 +197,21 @@ public: | |||
197 | void execute(); | 197 | void execute(); |
198 | }; | 198 | }; |
199 | 199 | ||
200 | class ToggleSlitHiddenCmd: public FbTk::Command<void> { | ||
201 | public: | ||
202 | void execute(); | ||
203 | }; | ||
204 | |||
200 | class ToggleToolbarAboveCmd: public FbTk::Command<void> { | 205 | class ToggleToolbarAboveCmd: public FbTk::Command<void> { |
201 | public: | 206 | public: |
202 | void execute(); | 207 | void execute(); |
203 | }; | 208 | }; |
204 | 209 | ||
210 | class ToggleToolbarHiddenCmd: public FbTk::Command<void> { | ||
211 | public: | ||
212 | void execute(); | ||
213 | }; | ||
214 | |||
205 | class CloseAllWindowsCmd: public FbTk::Command<void> { | 215 | class CloseAllWindowsCmd: public FbTk::Command<void> { |
206 | public: | 216 | public: |
207 | void execute(); | 217 | void execute(); |