]> git.saurik.com Git - wxWidgets.git/commitdiff
added another AddPane() call which allows the caller to add a new window at a certain...
authorBenjamin Williams <bwilliams@kirix.com>
Sun, 16 Jul 2006 10:59:16 +0000 (10:59 +0000)
committerBenjamin Williams <bwilliams@kirix.com>
Sun, 16 Jul 2006 10:59:16 +0000 (10:59 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40116 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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

index 250afd6d91485483628472cc78013cc26a9e9c55..b77df0929de6ce06eee5df032b5301d7f47b03f9 100644 (file)
@@ -394,6 +394,10 @@ public:
 
     bool AddPane(wxWindow* window,
                  const wxPaneInfo& pane_info);
+                 
+    bool AddPane(wxWindow* window,
+                 const wxPaneInfo& pane_info,
+                 const wxPoint& drop_pos);
 
     bool AddPane(wxWindow* window,
                  int direction = wxLEFT,
@@ -412,6 +416,15 @@ public:
 
     void Update();
 
+
+public:
+
+    void DrawHintRect(wxWindow* pane_window,
+                       const wxPoint& pt,
+                       const wxPoint& offset);
+    virtual void ShowHint(const wxRect& rect);
+    virtual void HideHint();
+
 public:
 
     // deprecated -- please use SetManagedWindow() and
@@ -422,10 +435,8 @@ public:
     
 protected:
 
-    void DrawHintRect(wxWindow* pane_window,
-                       const wxPoint& pt,
-                       const wxPoint& offset);
 
+    
     void DoFrameLayout();
 
     void LayoutAddPane(wxSizer* container,
@@ -472,8 +483,7 @@ protected:
     void GetPanePositionsAndSizes(wxDockInfo& dock,
                               wxArrayInt& positions,
                               wxArrayInt& sizes);
-    virtual void ShowHint(const wxRect& rect);
-    virtual void HideHint();
+
 
 public:
 
index 286df116e54e64dfe6e9f74eb9c2d7f30f6e51ef..b5cc99fa93cef11c545c2a1a9a4781807470ca79 100644 (file)
@@ -669,6 +669,20 @@ bool wxFrameManager::AddPane(wxWindow* window,
     return AddPane(window, pinfo);
 }
 
+bool wxFrameManager::AddPane(wxWindow* window,
+                             const wxPaneInfo& pane_info,
+                             const wxPoint& drop_pos)
+{
+    if (!AddPane(window, pane_info))
+        return false;
+    
+    wxPaneInfo& pane = GetPane(window);
+    
+    DoDrop(m_docks, m_panes, pane, drop_pos, wxPoint(0,0));
+    
+    return true;
+}
+
 bool wxFrameManager::InsertPane(wxWindow* window, const wxPaneInfo& pane_info,
                                 int insert_level)
 {