|
|
A KAction that hides and shows the various bars of a main window. This action hides and shows the menubar, toolbars and statusbar of a KMainWindow. In addition, it allows applications to specify additional widgets that it should affect, so application defined bars such as sidebars can behave consistently.
| ToggleAllBarsAction ( KMainWindow *win, QObject *parent = 0, const char *name = 0 )
| ToggleAllBarsAction |
Creates a ToggleAllBarsAction that will control the bars of the specified KMainWindow.
| ToggleAllBarsAction ( QObject *parent = 0, const char *name = 0 )
| ToggleAllBarsAction |
Creates a ToggleAllBarsAction.
| KMainWindow * mainWindow ()
| mainWindow |
[const]
Returns the main window.
| bool hasHiddenBars ()
| hasHiddenBars |
[const]
Returns true iff the action has hidden the bars.
| bool hasBar ( QWidget *w )
| hasBar |
Returns true iff the specified widget has been added as a bar.
| void toggleBars ()
| toggleBars |
[slot]
Toggles the state of the bars shown by the current main window.
| void showBars ()
| showBars |
[virtual slot]
Shows any bars that were previously hidden by this action. Note that this does not affect bars that this action did not hide.
| void hideBars ()
| hideBars |
[virtual slot]
Hides any bars displayed by the main window.
| void setMainWindow ( KMainWindow *w )
| setMainWindow |
[virtual slot]
Specifies the main window to control.
| void addBar ( QWidget *w )
| addBar |
[virtual slot]
Adds a widget to the list that will be affected by the hideBars() method.
| void removeBar ( QWidget *w )
| removeBar |
[virtual slot]
Removes the widget from the list that will be affected by the hideBars() method.
| void removeBar ( QObject *w )
| removeBar |
[protected slots slot]
Used internally when a widget is destroyed to ensure we don't subsequently try to use it. This method simply checks we have a QWidget, then calls removeBar(QWidget *) to remove it from the list of bars.
| void slotActivated ()
| slotActivated |
[protected slots virtual slot]
Reimplemented to call the toggleBars() method.
Reimplemented from KAction.