From f39fddcd9e98aaa5c2d87fc7c7f3e1f36dd92105 Mon Sep 17 00:00:00 2001 From: Benjamin Williams Date: Wed, 8 Nov 2006 10:31:52 +0000 Subject: [PATCH] accessor functions for wxAuiMDIParentFrame git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43190 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/aui/tabmdi.h | 4 ++++ src/aui/tabmdi.cpp | 24 ++++++++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/include/wx/aui/tabmdi.h b/include/wx/aui/tabmdi.h index f448605382..d5c3a8ebe3 100644 --- a/include/wx/aui/tabmdi.h +++ b/include/wx/aui/tabmdi.h @@ -57,6 +57,10 @@ public: long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL, const wxString& name = wxFrameNameStr ); + void SetArtProvider(wxAuiTabArt* provider); + wxAuiTabArt* GetArtProvider(); + wxAuiNotebook* GetNotebook() const; + #if wxUSE_MENUS wxMenu* GetWindowMenu() const { return m_pWindowMenu; }; void SetWindowMenu(wxMenu* pMenu); diff --git a/src/aui/tabmdi.cpp b/src/aui/tabmdi.cpp index 572b09617c..53ecc2bf2a 100644 --- a/src/aui/tabmdi.cpp +++ b/src/aui/tabmdi.cpp @@ -114,6 +114,30 @@ bool wxAuiMDIParentFrame::Create(wxWindow *parent, return true; } + +void wxAuiMDIParentFrame::SetArtProvider(wxAuiTabArt* provider) +{ + if (m_pClientWindow) + { + m_pClientWindow->SetArtProvider(provider); + } +} + +wxAuiTabArt* wxAuiMDIParentFrame::GetArtProvider() +{ + if (!m_pClientWindow) + return NULL; + + return m_pClientWindow->GetArtProvider(); +} + +wxAuiNotebook* wxAuiMDIParentFrame::GetNotebook() const +{ + return static_cast(m_pClientWindow); +} + + + #if wxUSE_MENUS void wxAuiMDIParentFrame::SetWindowMenu(wxMenu* pMenu) { -- 2.45.2