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
This commit is contained in:
Alex Bligh
2006-07-13 22:03:54 +00:00
parent 5d9dedfe38
commit 0d02dd54a0
2 changed files with 4 additions and 1 deletions

View File

@@ -444,6 +444,9 @@ protected:
wxDockUIPartArray& uiparts, wxDockUIPartArray& uiparts,
bool spacer_only = false); bool spacer_only = false);
virtual bool ProcessDockResult(wxPaneInfo& target,
const wxPaneInfo& new_pos);
bool DoDrop(wxDockInfoArray& docks, bool DoDrop(wxDockInfoArray& docks,
wxPaneInfoArray& panes, wxPaneInfoArray& panes,
wxPaneInfo& drop, wxPaneInfo& drop,

View File

@@ -2063,7 +2063,7 @@ int wxFrameManager::GetDockPixelOffset(wxPaneInfo& test)
// if a dock operation is allowed, the new dock position is copied into // 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. // 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) const wxPaneInfo& new_pos)
{ {
bool allowed = false; bool allowed = false;