added another AddPane() call which allows the caller to add a new window at a certain point; Hint functions are now public
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40116 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -394,6 +394,10 @@ public:
|
|||||||
|
|
||||||
bool AddPane(wxWindow* window,
|
bool AddPane(wxWindow* window,
|
||||||
const wxPaneInfo& pane_info);
|
const wxPaneInfo& pane_info);
|
||||||
|
|
||||||
|
bool AddPane(wxWindow* window,
|
||||||
|
const wxPaneInfo& pane_info,
|
||||||
|
const wxPoint& drop_pos);
|
||||||
|
|
||||||
bool AddPane(wxWindow* window,
|
bool AddPane(wxWindow* window,
|
||||||
int direction = wxLEFT,
|
int direction = wxLEFT,
|
||||||
@@ -412,6 +416,15 @@ public:
|
|||||||
|
|
||||||
void Update();
|
void Update();
|
||||||
|
|
||||||
|
|
||||||
|
public:
|
||||||
|
|
||||||
|
void DrawHintRect(wxWindow* pane_window,
|
||||||
|
const wxPoint& pt,
|
||||||
|
const wxPoint& offset);
|
||||||
|
virtual void ShowHint(const wxRect& rect);
|
||||||
|
virtual void HideHint();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
// deprecated -- please use SetManagedWindow() and
|
// deprecated -- please use SetManagedWindow() and
|
||||||
@@ -422,10 +435,8 @@ public:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
void DrawHintRect(wxWindow* pane_window,
|
|
||||||
const wxPoint& pt,
|
|
||||||
const wxPoint& offset);
|
|
||||||
|
|
||||||
|
|
||||||
void DoFrameLayout();
|
void DoFrameLayout();
|
||||||
|
|
||||||
void LayoutAddPane(wxSizer* container,
|
void LayoutAddPane(wxSizer* container,
|
||||||
@@ -472,8 +483,7 @@ protected:
|
|||||||
void GetPanePositionsAndSizes(wxDockInfo& dock,
|
void GetPanePositionsAndSizes(wxDockInfo& dock,
|
||||||
wxArrayInt& positions,
|
wxArrayInt& positions,
|
||||||
wxArrayInt& sizes);
|
wxArrayInt& sizes);
|
||||||
virtual void ShowHint(const wxRect& rect);
|
|
||||||
virtual void HideHint();
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
@@ -669,6 +669,20 @@ bool wxFrameManager::AddPane(wxWindow* window,
|
|||||||
return AddPane(window, pinfo);
|
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,
|
bool wxFrameManager::InsertPane(wxWindow* window, const wxPaneInfo& pane_info,
|
||||||
int insert_level)
|
int insert_level)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user