ToolDockBaseState Class Reference
The state of a tool window's dock base (minor helper class). More...Collaboration diagram for ToolDockBaseState:

Public Member Functions | |
ToolDockBaseState (const QPtrList< QWidget > *pViews) | |
Public Attributes | |
KDockWidget * | pDockBaseWindow |
Pointer to the window which contains all tool windows (may be equal to pDockWidget). | |
QWidget * | pFirstToolWindow |
The first tool window found. | |
bool | hasDockBaseWindow |
true if there is at least one parent tool window | |
bool | dockBaseIsHidden |
true if there is a parent and it is hidden | |
bool | dockBaseIsVisible |
true if there is a parent and it is visible | |
bool | dockBaseMayBeDockBack |
true if thre is a parent tool window and it may be dock back | |
int | noViews |
number of single tool windows visible |
Detailed Description
The state of a tool window's dock base (minor helper class).For a description how tool windows are embedded into the main window see ToolWindowState.
This class takes a list of tool window , figures out who is the dock base window for them and determines various state flags for the dock base. Additionaly, it counts how many tool views of the list are visible (member noViews)
Usage
const ToolDockBaseState dockBaseState(m_outputViews); //MainWindow::m_outputViews // now you can use all of dockBaseState's contents, e. g. if (dockBaseState.hasDockBaseWindow) dockBaseState.pDockBaseWindow->... ...
Definition at line 185 of file mainwindow.cpp.
Constructor & Destructor Documentation
|
Member Data Documentation
|
true if there is a parent and it is hidden
Definition at line 192 of file mainwindow.cpp. Referenced by MainWindow::fillToolViewsMenu(), MainWindow::showAllToolWin(), MainWindow::toggleToolDockBaseState(), and ToolDockBaseState(). |
|
true if there is a parent and it is visible
Definition at line 193 of file mainwindow.cpp. Referenced by MainWindow::toggleToolDockBaseState(), ToolDockBaseState(), and MainWindow::updateActionState(). |
|
true if thre is a parent tool window and it may be dock back
Definition at line 194 of file mainwindow.cpp. Referenced by MainWindow::toggleToolDockBaseState(), and ToolDockBaseState(). |
|
true if there is at least one parent tool window
Definition at line 191 of file mainwindow.cpp. Referenced by MainWindow::fillToolViewsMenu(), and ToolDockBaseState(). |
|
number of single tool windows visible
Definition at line 195 of file mainwindow.cpp. Referenced by MainWindow::fillToolViewsMenu(), MainWindow::toggleSingleToolWin(), and ToolDockBaseState(). |
|
Pointer to the window which contains all tool windows (may be equal to pDockWidget).
Definition at line 189 of file mainwindow.cpp. Referenced by MainWindow::toggleToolDockBaseState(), and ToolDockBaseState(). |
|
The first tool window found.
Definition at line 190 of file mainwindow.cpp. Referenced by ToolDockBaseState(). |
The documentation for this class was generated from the following file:
- src/mainwindow.cpp