]> git.saurik.com Git - wxWidgets.git/commitdiff
Virtualize ProcessDockResult so people can override it to prevent docking
authorAlex Bligh <alex@alex.org.uk>
Thu, 13 Jul 2006 22:03:54 +0000 (22:03 +0000)
committerAlex Bligh <alex@alex.org.uk>
Thu, 13 Jul 2006 22:03:54 +0000 (22:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40084 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/aui/framemanager.h
src/aui/framemanager.cpp

index af10d6e3db04d4dda5324aed78816470b20c3fce..7c4390a5eb751740dbf6ec2355fb17df4d8bc4a2 100644 (file)
@@ -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,
index fe57440d76813b36281616e32286276048a7e195..88758935b89b07385e3684db46aefdb43be8b092 100644 (file)
@@ -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;