Classes | |
class | DockableTabCollection |
class | TabDragIndicator |
struct | DockableTabInfo |
class | DockableTabStyle |
class | DefaultDockableTabStyle |
class | DockableTabBar |
class | DockableTabBarWithCornerWidget |
class | DockableTabWidget |
class | SplitTabWidget |
Enumerations | |
enum | DockableTabInteractionState { NoTabInteraction , MouseOverTab , MouseOverCloseButton , CloseButtonPressActive , CloseButtonPressInactive } |
class DockableTabCollection |
Public Member Functions | |
void | registerContainer (DockableTabWidget *widget) |
void | unregisterContainer (DockableTabWidget *widget) |
const std::set< DockableTabWidget * > & | containers () const |
void DockableTabCollection::registerContainer | ( | DockableTabWidget * | widget | ) |
void DockableTabCollection::unregisterContainer | ( | DockableTabWidget * | widget | ) |
|
inline |
class TabDragIndicator |
Public Member Functions | |
TabDragIndicator (QPixmap pixmap, QSize size, QPoint pt, QPoint offset, bool newWindow) | |
void | moveToMouse (QPoint pt) |
QPixmap | pixmap () const |
QSize | size () const |
QPoint | offset () const |
Protected Member Functions | |
virtual QSize | sizeHint () const override |
virtual QSize | minimumSizeHint () const override |
virtual void | paintEvent (QPaintEvent *event) override |
TabDragIndicator::TabDragIndicator | ( | QPixmap | pixmap, |
QSize | size, | ||
QPoint | pt, | ||
QPoint | offset, | ||
bool | newWindow | ||
) |
void TabDragIndicator::moveToMouse | ( | QPoint | pt | ) |
|
inline |
|
inline |
|
inline |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
struct DockableTabInfo |
class DockableTabStyle |
Public Member Functions | |
virtual | ~DockableTabStyle () |
virtual QSize | sizeForTab (const QWidget *widget, const DockableTabInfo &info, int idx, int count, int active) const |
virtual QRect | closeButtonRect (const QWidget *widget, const DockableTabInfo &info, int idx, int count, int active) const |
virtual QRect | closeIconRect (const QWidget *widget, const DockableTabInfo &info, int idx, int count, int active) const |
virtual void | paintTab (const QWidget *widget, QStylePainter &p, const DockableTabInfo &info, int idx, int count, int active, DockableTabInteractionState state, const QRect &rect) const |
virtual void | paintBase (const QWidget *widget, QStylePainter &p, const QRect &rect, const QRect &activeRect) const |
virtual DockableTabStyle * | duplicate () |
|
inlinevirtual |
|
virtual |
Reimplemented in GlobalAreaTabStyle, and DefaultDockableTabStyle.
|
virtual |
Reimplemented in GlobalAreaTabStyle, and DefaultDockableTabStyle.
|
virtual |
Reimplemented in GlobalAreaTabStyle, and DefaultDockableTabStyle.
|
virtual |
Reimplemented in GlobalAreaTabStyle, and DefaultDockableTabStyle.
|
virtual |
Reimplemented in DefaultDockableTabStyle.
|
virtual |
Reimplemented in GlobalAreaTabStyle, and DefaultDockableTabStyle.
class DefaultDockableTabStyle |
Public Member Functions | |
virtual QSize | sizeForTab (const QWidget *widget, const DockableTabInfo &info, int idx, int count, int active) const override |
virtual QRect | closeButtonRect (const QWidget *widget, const DockableTabInfo &info, int idx, int count, int active) const override |
virtual QRect | closeIconRect (const QWidget *widget, const DockableTabInfo &info, int idx, int count, int active) const override |
virtual void | paintTab (const QWidget *widget, QStylePainter &p, const DockableTabInfo &info, int idx, int count, int active, DockableTabInteractionState state, const QRect &rect) const override |
virtual void | paintBase (const QWidget *widget, QStylePainter &p, const QRect &rect, const QRect &activeRect) const override |
virtual DockableTabStyle * | duplicate () override |
Public Member Functions inherited from DockableTabStyle | |
virtual | ~DockableTabStyle () |
virtual QSize | sizeForTab (const QWidget *widget, const DockableTabInfo &info, int idx, int count, int active) const |
virtual QRect | closeButtonRect (const QWidget *widget, const DockableTabInfo &info, int idx, int count, int active) const |
virtual QRect | closeIconRect (const QWidget *widget, const DockableTabInfo &info, int idx, int count, int active) const |
virtual void | paintTab (const QWidget *widget, QStylePainter &p, const DockableTabInfo &info, int idx, int count, int active, DockableTabInteractionState state, const QRect &rect) const |
virtual void | paintBase (const QWidget *widget, QStylePainter &p, const QRect &rect, const QRect &activeRect) const |
virtual DockableTabStyle * | duplicate () |
|
overridevirtual |
Reimplemented from DockableTabStyle.
|
overridevirtual |
Reimplemented from DockableTabStyle.
|
overridevirtual |
Reimplemented from DockableTabStyle.
|
overridevirtual |
Reimplemented from DockableTabStyle.
|
overridevirtual |
Reimplemented from DockableTabStyle.
|
overridevirtual |
Reimplemented from DockableTabStyle.
class DockableTabBar |
Signals | |
void | currentChanged (int idx) |
void | tabCloseRequested (int idx) |
void | tabMoved (int oldIdx, int newIdx) |
void | newWindowForTab (int idx, QRect rectHint) |
void | reparentTab (int oldIdx, DockableTabWidget *target, int newIdx) |
void | splitTab (int idx, Qt::Edge edge) |
Public Member Functions | |
DockableTabBar (DockableTabCollection *collection) | |
virtual | ~DockableTabBar () |
int | addTab (const QString &title) |
int | insertTab (int idx, const QString &title) |
void | removeTab (int idx) |
void | setCurrentIndex (int idx) |
void | setTabText (int idx, const QString &title) |
void | setTabToolTip (int idx, const QString &toolTip) |
void | setTabModifiedIndicator (int idx, bool indicator) |
void | setCanCloseTab (int idx, bool canClose) |
void | setCanCreateNewWindow (bool canCreate) |
void | setCanSplit (bool canSplit) |
int | count () const |
int | currentIndex () const |
int | tabAt (const QPoint &pt) |
QRect | tabRect (int idx) |
QString | tabText (int idx) |
QString | tabToolTip (int idx) |
bool | tabModifiedIndicator (int idx) |
bool | canCloseTab (int idx) |
bool | canCreateNewWindow () |
bool | canSplit () |
void | ensureCurrentTabVisible () |
DockableTabStyle * | tabStyle () const |
void | setTabStyle (DockableTabStyle *style) |
Protected Member Functions | |
virtual QSize | sizeHint () const override |
virtual QSize | minimumSizeHint () const override |
virtual void | paintEvent (QPaintEvent *event) override |
virtual void | enterEvent (QEnterEvent *event) override |
virtual void | leaveEvent (QEvent *event) override |
virtual void | mouseMoveEvent (QMouseEvent *event) override |
virtual void | mousePressEvent (QMouseEvent *event) override |
virtual void | mouseReleaseEvent (QMouseEvent *event) override |
virtual void | resizeEvent (QResizeEvent *event) override |
virtual void | wheelEvent (QWheelEvent *event) override |
DockableTabBar::DockableTabBar | ( | DockableTabCollection * | collection | ) |
|
virtual |
int DockableTabBar::addTab | ( | const QString & | title | ) |
int DockableTabBar::insertTab | ( | int | idx, |
const QString & | title | ||
) |
void DockableTabBar::removeTab | ( | int | idx | ) |
void DockableTabBar::setCurrentIndex | ( | int | idx | ) |
void DockableTabBar::setTabText | ( | int | idx, |
const QString & | title | ||
) |
void DockableTabBar::setTabToolTip | ( | int | idx, |
const QString & | toolTip | ||
) |
void DockableTabBar::setTabModifiedIndicator | ( | int | idx, |
bool | indicator | ||
) |
void DockableTabBar::setCanCloseTab | ( | int | idx, |
bool | canClose | ||
) |
void DockableTabBar::setCanCreateNewWindow | ( | bool | canCreate | ) |
void DockableTabBar::setCanSplit | ( | bool | canSplit | ) |
int DockableTabBar::count | ( | ) | const |
int DockableTabBar::currentIndex | ( | ) | const |
int DockableTabBar::tabAt | ( | const QPoint & | pt | ) |
QRect DockableTabBar::tabRect | ( | int | idx | ) |
QString DockableTabBar::tabText | ( | int | idx | ) |
QString DockableTabBar::tabToolTip | ( | int | idx | ) |
bool DockableTabBar::tabModifiedIndicator | ( | int | idx | ) |
bool DockableTabBar::canCloseTab | ( | int | idx | ) |
bool DockableTabBar::canCreateNewWindow | ( | ) |
bool DockableTabBar::canSplit | ( | ) |
void DockableTabBar::ensureCurrentTabVisible | ( | ) |
|
inline |
void DockableTabBar::setTabStyle | ( | DockableTabStyle * | style | ) |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
class DockableTabBarWithCornerWidget |
Public Member Functions | |
DockableTabBarWithCornerWidget (DockableTabBar *bar) | |
DockableTabBar * | tabBar () const |
void | setCornerWidget (QWidget *widget, Qt::Corner corner=Qt::TopRightCorner, bool expanding=false) |
Qt::Corner | corner () const |
QWidget * | cornerWidget () const |
Protected Member Functions | |
virtual void | paintEvent (QPaintEvent *event) override |
DockableTabBarWithCornerWidget::DockableTabBarWithCornerWidget | ( | DockableTabBar * | bar | ) |
|
overrideprotectedvirtual |
|
inline |
void DockableTabBarWithCornerWidget::setCornerWidget | ( | QWidget * | widget, |
Qt::Corner | corner = Qt::TopRightCorner , |
||
bool | expanding = false |
||
) |
|
inline |
|
inline |
class DockableTabWidget |
Signals | |
void | tabCloseRequested (int idx) |
void | currentChanged (int idx) |
void | tabMoved (int oldIdx, int newIdx) |
void | newWindowForTab (int idx, QRect rectHint) |
void | tabRemovedForReparent (int oldIdx, QWidget *widget, DockableTabWidget *target, int newIdx) |
void | tabAddedForReparent (int idx, DockableTabWidget *source) |
void | splitTab (int idx, Qt::Edge edge) |
Public Member Functions | |
DockableTabWidget (DockableTabCollection *collection, DockableTabBar *bar=nullptr) | |
int | addTab (QWidget *widget, const QString &title) |
int | insertTab (int idx, QWidget *widget, const QString &title) |
void | removeTab (int idx) |
int | count () |
int | currentIndex () |
QWidget * | currentWidget () |
QWidget * | widget (int idx) |
DockableTabBar * | tabBar () const |
QStackedWidget * | container () const |
DockableTabCollection * | collection () const |
QString | tabText (int idx) |
bool | tabModifiedIndicator (int idx) |
bool | canCloseTab (int idx) |
bool | canCreateNewWindow () |
bool | canSplit () |
int | indexOf (QWidget *widget) |
void | setCurrentIndex (int idx) |
void | setTabText (int idx, const QString &title) |
void | setTabToolTip (int idx, const QString &toolTip) |
void | setTabModifiedIndicator (int idx, bool indicator) |
void | setCanCloseTab (int idx, bool canClose) |
void | setCanCreateNewWindow (bool canCreate) |
void | setCanSplit (bool canSplit) |
void | setCornerWidget (QWidget *widget, Qt::Corner corner=Qt::TopRightCorner, bool expanding=false) |
Qt::Corner | corner () const |
QWidget * | cornerWidget () const |
DockableTabStyle * | tabStyle () const |
void | setTabStyle (DockableTabStyle *style) |
virtual QSize | sizeHint () const override |
DockableTabWidget::DockableTabWidget | ( | DockableTabCollection * | collection, |
DockableTabBar * | bar = nullptr |
||
) |
int DockableTabWidget::addTab | ( | QWidget * | widget, |
const QString & | title | ||
) |
int DockableTabWidget::insertTab | ( | int | idx, |
QWidget * | widget, | ||
const QString & | title | ||
) |
void DockableTabWidget::removeTab | ( | int | idx | ) |
int DockableTabWidget::count | ( | ) |
int DockableTabWidget::currentIndex | ( | ) |
QWidget * DockableTabWidget::currentWidget | ( | ) |
QWidget * DockableTabWidget::widget | ( | int | idx | ) |
|
inline |
|
inline |
|
inline |
QString DockableTabWidget::tabText | ( | int | idx | ) |
bool DockableTabWidget::tabModifiedIndicator | ( | int | idx | ) |
bool DockableTabWidget::canCloseTab | ( | int | idx | ) |
bool DockableTabWidget::canCreateNewWindow | ( | ) |
bool DockableTabWidget::canSplit | ( | ) |
int DockableTabWidget::indexOf | ( | QWidget * | widget | ) |
void DockableTabWidget::setCurrentIndex | ( | int | idx | ) |
void DockableTabWidget::setTabText | ( | int | idx, |
const QString & | title | ||
) |
void DockableTabWidget::setTabToolTip | ( | int | idx, |
const QString & | toolTip | ||
) |
void DockableTabWidget::setTabModifiedIndicator | ( | int | idx, |
bool | indicator | ||
) |
void DockableTabWidget::setCanCloseTab | ( | int | idx, |
bool | canClose | ||
) |
void DockableTabWidget::setCanCreateNewWindow | ( | bool | canCreate | ) |
void DockableTabWidget::setCanSplit | ( | bool | canSplit | ) |
void DockableTabWidget::setCornerWidget | ( | QWidget * | widget, |
Qt::Corner | corner = Qt::TopRightCorner , |
||
bool | expanding = false |
||
) |
Qt::Corner DockableTabWidget::corner | ( | ) | const |
QWidget * DockableTabWidget::cornerWidget | ( | ) | const |
|
inline |
void DockableTabWidget::setTabStyle | ( | DockableTabStyle * | style | ) |
|
overridevirtual |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
class SplitTabWidget |
Signals | |
void | tabClosed (QWidget *widget) |
void | currentChanged (QWidget *widget) |
void | layoutChanged () |
void | splitSizeChanged () |
Public Member Functions | |
SplitTabWidget (DockableTabCollection *collection) | |
void | addTab (QWidget *widget, const QString &title) |
bool | removeTab (QWidget *widget) |
void | setCanCloseTab (QWidget *widget, bool canClose) |
void | enumerateTabs (const std::function< void(QWidget *)> &func) |
void | selectWidget (QWidget *widget) |
bool | isWidgetVisible (QWidget *widget) |
bool | closeTab (QWidget *widget) |
void | setTabStyle (DockableTabStyle *style) |
void | setCornerWidget (QWidget *widget, Qt::Corner corner=Qt::TopRightCorner, bool expanding=false) |
QString | savedLayoutString () const |
void | restoreLayoutString (const QString &layout) |
SplitTabWidget::SplitTabWidget | ( | DockableTabCollection * | collection | ) |
void SplitTabWidget::addTab | ( | QWidget * | widget, |
const QString & | title | ||
) |
bool SplitTabWidget::removeTab | ( | QWidget * | widget | ) |
void SplitTabWidget::setCanCloseTab | ( | QWidget * | widget, |
bool | canClose | ||
) |
void SplitTabWidget::enumerateTabs | ( | const std::function< void(QWidget *)> & | func | ) |
void SplitTabWidget::selectWidget | ( | QWidget * | widget | ) |
bool SplitTabWidget::isWidgetVisible | ( | QWidget * | widget | ) |
bool SplitTabWidget::closeTab | ( | QWidget * | widget | ) |
void SplitTabWidget::setTabStyle | ( | DockableTabStyle * | style | ) |
void SplitTabWidget::setCornerWidget | ( | QWidget * | widget, |
Qt::Corner | corner = Qt::TopRightCorner , |
||
bool | expanding = false |
||
) |
QString SplitTabWidget::savedLayoutString | ( | ) | const |
void SplitTabWidget::restoreLayoutString | ( | const QString & | layout | ) |
|
signal |
|
signal |
|
signal |
|
signal |