Go to the documentation of this file.
33 #include <QStackedLayout>
35 #include <QScrollArea>
36 #include <QWheelEvent>
38 #include <QPushButton>
42 #include <QXmlStreamWriter>
103 Widget->setParent(
nullptr);
132 LayoutItem->widget()->setParent(
nullptr);
164 bool reenableUpdates =
false;
167 if (parent && parent->updatesEnabled())
169 reenableUpdates =
true;
170 parent->setUpdatesEnabled(
false);
176 LayoutItem->widget()->setParent(
nullptr);
191 parent->setUpdatesEnabled(
true);
352 if (
_this->isHidden())
373 d->
Layout =
new QBoxLayout(QBoxLayout::TopToBottom);
374 d->
Layout->setContentsMargins(0, 0, 0, 0);
405 return internal::findParent<CDockContainerWidget*>(
this);
426 d->
tabBar()->blockSignals(
true);
428 d->
tabBar()->blockSignals(
false);
451 ADS_PRINT(
"CDockAreaWidget::removeDockWidget");
462 if (NextOpenDockWidget)
475 FloatingDockContainer->hide();
476 FloatingDockContainer->deleteLater();
492 if (TopLevelDockWidget)
497 #if (ADS_DEBUG_LEVEL > 0)
509 auto Splitter = internal::findParent<CDockSplitter*>(
this);
532 FloatingWidget->hide();
540 ADS_PRINT(
"CDockAreaWidget::onTabCloseRequested " << Index);
557 if (CurrentIndex < 0)
595 if (index < 0 || index > (TabBar->count() - 1))
597 qWarning() << Q_FUNC_INFO <<
"Invalid index" <<
index;
603 if (cw == nw && !nw->isHidden())
609 TabBar->setCurrentIndex(
index);
651 return DockWidgetList;
682 return DockWidgetList;
718 ADS_PRINT(
"CDockAreaWidget::reorderDockWidget");
722 ADS_PRINT(
"Invalid index for tab movement" << fromIndex << toIndex);
780 s.writeStartElement(
"Area");
783 QString
Name = CurrentDockWidget ? CurrentDockWidget->objectName() :
"";
784 s.writeAttribute(
"Current",
Name);
789 s.writeAttribute(
"AllowedAreas", QString::number(
d->
AllowedAreas, 16));
794 s.writeAttribute(
"Flags", QString::number(
d->
Flags, 16));
797 <<
" Current: " <<
Name);
810 if (OpenDockWidgets.count() > 1 || (OpenDockWidgets.count() == 1 && OpenDockWidgets[0] !=
DockWidget))
815 NextDockWidget = OpenDockWidgets[OpenDockWidgets.count() - 2];
819 int NextIndex = OpenDockWidgets.indexOf(
DockWidget) + 1;
820 NextDockWidget = OpenDockWidgets[NextIndex];
823 return NextDockWidget;
868 Super::setVisible(Visible);
900 auto ChangedFlags =
d->
Flags ^ Flags;
933 OpenDockWidgets[0]->closeDockWidgetInternal();
Declaration of CDockSplitter.
void markTabsMenuOutdated()
void removeWidget(QWidget *Widget)
@ HideSingleCentralWidgetTitleBar
CDockWidget * centralWidget() const
@ AlwaysShowTabs
If this option is enabled, the tab of a dock widget is always displayed - even if it is the only visi...
Declaration of CFloatingDockContainer class.
void removeTab(CDockWidgetTab *Tab)
CDockAreaLayout(QBoxLayout *ParentLayout)
Declaration of CDockAreaTabBar class.
virtual CDockAreaTitleBar * createDockAreaTitleBar(CDockAreaWidget *DockArea) const
static const DockWidgetAreas DefaultAllowedAreas
const CDockComponentsFactory * componentsFactory()
QWidget * m_CurrentWidget
QList< QWidget * > m_Widgets
Declaration of DockComponentsFactory.
void dockAreaCreated(ads::CDockAreaWidget *DockArea)
Declaration of CDockAreaTitleBar class.
static const char *const INDEX_PROPERTY
void setCurrentIndex(int index)
void updateDockWidgetActionsButtons()
void insertTab(int Index, CDockWidgetTab *Tab)
void tabBarClicked(int index)
void hideEmptyParentSplitters(CDockSplitter *FirstParentSplitter)
virtual void setVisible(bool Visible) override
QWidget * widget(int index) const
Declaration of CDockManager class.
int indexOf(QWidget *w) const
void insertWidget(int index, QWidget *Widget)
CDockAreaTabBar * tabBar() const
QBoxLayout * m_ParentLayout
void tabMoved(int from, int to)
QAbstractButton * button(TitleBarButton which) const
void tabCloseRequested(int index)
static const char *const ACTION_PROPERTY
static bool testConfigFlag(eConfigFlag Flag)
QWidget * currentWidget() const
CDockAreaLayout DockAreaLayout
void setFlag(T &Flags, typename T::enum_type flag, bool on=true)
plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:44