From 45390506dd5d979ec142f145e8105074302d7554 Mon Sep 17 00:00:00 2001 From: Uwe Kindler Date: Thu, 4 Jun 2020 20:40:23 +0200 Subject: [PATCH] Continued implementation --- src/DockContainerWidget.cpp | 2 +- src/DockManager.cpp | 17 ++++++++++++++++- src/DockManager.h | 14 +++++++++++++- 3 files changed, 30 insertions(+), 3 deletions(-) diff --git a/src/DockContainerWidget.cpp b/src/DockContainerWidget.cpp index b3525e4..920dc38 100644 --- a/src/DockContainerWidget.cpp +++ b/src/DockContainerWidget.cpp @@ -1466,7 +1466,7 @@ void CDockContainerWidget::dropFloatingWidget(CFloatingDockContainer* FloatingWi std::cout << "SingleDockWidget dropped" << std::endl; d->DockManager->emitWidgetDroppedSignals(SingleDroppedDockWidget); } - d->DockManager->endFloatingWidgetDrop(FloatingWidget); + d->DockManager->notifyFloatingWidgetDrop(FloatingWidget); } diff --git a/src/DockManager.cpp b/src/DockManager.cpp index b9b2e2d..9467992 100644 --- a/src/DockManager.cpp +++ b/src/DockManager.cpp @@ -1101,7 +1101,7 @@ void CDockManager::emitWidgetDroppedSignals(QWidget* DroppedWidget) //=========================================================================== -void CDockManager::endFloatingWidgetDrop(CFloatingDockContainer* FloatingWidget) +void CDockManager::notifyFloatingWidgetDrop(CFloatingDockContainer* FloatingWidget) { if (!FloatingWidget) { @@ -1122,6 +1122,21 @@ void CDockManager::endFloatingWidgetDrop(CFloatingDockContainer* FloatingWidget) } +//=========================================================================== +void CDockManager::notifyDockWidgetRelocation(CDockWidget* DockWidget, CDockContainerWidget* ContainerOld) +{ + +} + + + +//=========================================================================== +void CDockManager::notifyDockAreaRelocation(CDockAreaWidget* DockArea, CDockContainerWidget* ContainerOld) +{ + +} + + } // namespace ads //--------------------------------------------------------------------------- diff --git a/src/DockManager.h b/src/DockManager.h index e8b854a..6f79c73 100644 --- a/src/DockManager.h +++ b/src/DockManager.h @@ -134,7 +134,19 @@ protected: * When this function is called, all dock widgets of the FloatingWidget * are already inserted into its new position */ - void endFloatingWidgetDrop(CFloatingDockContainer* FloatingWidget); + void notifyFloatingWidgetDrop(CFloatingDockContainer* FloatingWidget); + + /** + * This function is called, if the given DockWidget has been relocated from + * the old container ContainerOld to the new container DockWidget->dockContainer() + */ + void notifyDockWidgetRelocation(CDockWidget* DockWidget, CDockContainerWidget* ContainerOld); + + /** + * This function is called, if the given DockAreahas been relocated from + * the old container ContainerOld to the new container DockArea->dockContainer() + */ + void notifyDockAreaRelocation(CDockAreaWidget* DockArea, CDockContainerWidget* ContainerOld); /** * Show the floating widgets that has been created floating