37 QT_FORWARD_DECLARE_CLASS(QToolBar)
38 QT_FORWARD_DECLARE_CLASS(QXmlStreamWriter)
42 struct DockWidgetPrivate;
45 class CDockContainerWidget;
46 class CDockAreaWidget;
47 class DockContainerWidgetPrivate;
48 class CFloatingDockContainer;
65 void setToolbarFloatingStyle(
bool topLevel);
96 void setToggleViewActionChecked(
bool Checked);
101 void saveState(QXmlStreamWriter& Stream)
const;
112 void flagAsUnassigned();
118 static void emitTopLevelEventForWidget(
CDockWidget* TopLevelDockWidget,
bool Floating);
125 void emitTopLevelChanged(
bool Floating);
131 void setClosedState(
bool Closed);
137 void toggleViewInternal(
bool Open);
143 bool closeDockWidgetInternal(
bool ForceClose =
false);
150 DockWidgetClosable = 0x01,
151 DockWidgetMovable = 0x02,
152 DockWidgetFloatable = 0x04,
153 DockWidgetDeleteOnClose = 0x08,
154 CustomCloseHandling = 0x10,
155 DockWidgetFocusable = 0x20,
156 DockWidgetForceCloseWithArea = 0x40,
157 DefaultDockWidgetFeatures = DockWidgetClosable | DockWidgetMovable | DockWidgetFloatable | DockWidgetFocusable,
158 AllDockWidgetFeatures = DefaultDockWidgetFeatures | DockWidgetDeleteOnClose | CustomCloseHandling,
159 DockWidgetAlwaysCloseAndDelete = DockWidgetForceCloseWithArea | DockWidgetDeleteOnClose,
160 NoDockWidgetFeatures = 0x00
162 Q_DECLARE_FLAGS(DockWidgetFeatures, DockWidgetFeature)
208 MinimumSizeHintFromContent
240 CDockWidget(
const QString &title, QWidget* parent = 0);
251 virtual QSize minimumSizeHint()
const override;
270 void setWidget(QWidget* widget, eInsertMode InsertMode = AutoScrollArea);
275 QWidget* takeWidget();
281 QWidget* widget()
const;
292 void setFeatures(DockWidgetFeatures features);
298 void setFeature(DockWidgetFeature flag,
bool on);
306 DockWidgetFeatures features()
const;
332 bool isFloating()
const;
339 bool isInFloatingContainer()
const;
344 bool isClosed()
const;
350 QAction* toggleViewAction()
const;
356 void setToggleViewActionMode(eToggleViewActionMode Mode);
363 void setMinimumSizeHintMode(eMinimumSizeHintMode Mode);
368 bool isCentralWidget()
const;
374 void setIcon(
const QIcon& Icon);
388 QToolBar* toolBar()
const;
396 QToolBar* createDefaultToolBar();
403 void setToolBar(QToolBar* ToolBar);
413 void setToolBarStyle(Qt::ToolButtonStyle Style, eState State);
419 Qt::ToolButtonStyle toolBarStyle(eState State)
const;
427 void setToolBarIconSize(
const QSize& IconSize, eState State);
433 QSize toolBarIconSize(eState State)
const;
452 #ifndef QT_NO_TOOLTIP
457 void setTabToolTip(
const QString &text);
464 bool isFullScreen()
const;
470 bool isTabbed()
const;
478 bool isCurrentTab()
const;
484 virtual bool event(QEvent *e)
override;
491 void toggleView(
bool Open =
true);
499 void setAsCurrentTab();
519 void deleteDockWidget();
524 void closeDockWidget();
538 void showFullScreen();
551 void viewToggled(
bool Open);
562 void titleChanged(
const QString& Title);
569 void topLevelChanged(
bool topLevel);
574 void closeRequested();
581 void visibilityChanged(
bool visible);
587 void featuresChanged(ads::CDockWidget::DockWidgetFeatures features);
592 #endif // DockWidgetH