From 0d02dd54a0ba2db825a9c4e0e8aea386976b0a37 Mon Sep 17 00:00:00 2001 From: Alex Bligh Date: Thu, 13 Jul 2006 22:03:54 +0000 Subject: [PATCH] Virtualize ProcessDockResult so people can override it to prevent docking git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40084 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/aui/framemanager.h | 3 +++ src/aui/framemanager.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/wx/aui/framemanager.h b/include/wx/aui/framemanager.h index af10d6e3db..7c4390a5eb 100644 --- a/include/wx/aui/framemanager.h +++ b/include/wx/aui/framemanager.h @@ -444,6 +444,9 @@ protected: wxDockUIPartArray& uiparts, bool spacer_only = false); + virtual bool ProcessDockResult(wxPaneInfo& target, + const wxPaneInfo& new_pos); + bool DoDrop(wxDockInfoArray& docks, wxPaneInfoArray& panes, wxPaneInfo& drop, diff --git a/src/aui/framemanager.cpp b/src/aui/framemanager.cpp index fe57440d76..88758935b8 100644 --- a/src/aui/framemanager.cpp +++ b/src/aui/framemanager.cpp @@ -2063,7 +2063,7 @@ int wxFrameManager::GetDockPixelOffset(wxPaneInfo& test) // if a dock operation is allowed, the new dock position is copied into // the target info. If the operation was allowed, the function returns true. -static bool ProcessDockResult(wxPaneInfo& target, +bool wxFrameManager::ProcessDockResult(wxPaneInfo& target, const wxPaneInfo& new_pos) { bool allowed = false; -- 2.45.2