Public Member Functions | |
CDockAreaLayout (QBoxLayout *ParentLayout) | |
int | count () const |
int | currentIndex () const |
QWidget * | currentWidget () const |
QRect | geometry () const |
int | indexOf (QWidget *w) const |
void | insertWidget (int index, QWidget *Widget) |
bool | isEmpty () const |
void | removeWidget (QWidget *Widget) |
void | setCurrentIndex (int index) |
QWidget * | widget (int index) const |
Private Attributes | |
int | m_CurrentIndex = -1 |
QWidget * | m_CurrentWidget = nullptr |
QBoxLayout * | m_ParentLayout |
QList< QWidget * > | m_Widgets |
Internal dock area layout mimics stack layout but only inserts the current widget into the internal QLayout object.
Definition at line 71 of file DockAreaWidget.cpp.
|
inline |
Creates an instance with the given parent layout
Definition at line 83 of file DockAreaWidget.cpp.
|
inline |
Returns the number of widgets in this layout
Definition at line 92 of file DockAreaWidget.cpp.
|
inline |
Returns the index of the current active widget
Definition at line 198 of file DockAreaWidget.cpp.
|
inline |
Returns the current selected widget
Definition at line 147 of file DockAreaWidget.cpp.
|
inline |
Returns the geometry of the current active widget
Definition at line 230 of file DockAreaWidget.cpp.
|
inline |
Returns the index of the given widget
Definition at line 214 of file DockAreaWidget.cpp.
|
inline |
Inserts the widget at the given index position into the internal widget list
Definition at line 101 of file DockAreaWidget.cpp.
|
inline |
Returns true if there are no widgets in the layout
Definition at line 206 of file DockAreaWidget.cpp.
|
inline |
Removes the given widget from the layout
Definition at line 125 of file DockAreaWidget.cpp.
|
inline |
Activates the widget with the give index.
Definition at line 155 of file DockAreaWidget.cpp.
|
inline |
Returns the widget for the given index
Definition at line 222 of file DockAreaWidget.cpp.
|
private |
Definition at line 76 of file DockAreaWidget.cpp.
|
private |
Definition at line 77 of file DockAreaWidget.cpp.
|
private |
Definition at line 74 of file DockAreaWidget.cpp.
|
private |
Definition at line 75 of file DockAreaWidget.cpp.