X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3c69a2ec864e94f58243500ca6d41c980b0fa4fe..56ba0394113fe3eba49632c7ad567db9e085ce12:/wxPython/src/aui.i diff --git a/wxPython/src/aui.i b/wxPython/src/aui.i index 1609c74f52..ee3dcdb88f 100755 --- a/wxPython/src/aui.i +++ b/wxPython/src/aui.i @@ -202,6 +202,11 @@ The following example shows a simple implementation that utilizes %ignore wxAuiMDIParentFrame::~wxAuiMDIParentFrame; %rename(PreAuiMDIParentFrame) wxAuiMDIParentFrame::wxAuiMDIParentFrame(); +// Ignore these for now because they need a typemap for the return value, see below. +%ignore wxAuiMDIParentFrame::GetNotebook; +%ignore wxAuiMDIParentFrame::GetActiveChild; +%ignore wxAuiMDIParentFrame::GetClientWindow; + %pythonAppend wxAuiMDIChildFrame::wxAuiMDIChildFrame "self._setOORInfo(self)"; %pythonAppend wxAuiMDIChildFrame::wxAuiMDIChildFrame() "val._setOORInfo(val)"; %ignore wxAuiMDIChildFrame::~wxAuiMDIChildFrame; @@ -213,6 +218,8 @@ The following example shows a simple implementation that utilizes %rename(PreAuiMDIClientWindow) wxAuiMDIClientWindow::wxAuiMDIClientWindow(); +%typemap(out) wxEvtHandler* { $result = wxPyMake_wxObject($1, $owner); } + //--------------------------------------------------------------------------- // Get all our defs from the REAL header files. @@ -300,6 +307,36 @@ The following example shows a simple implementation that utilizes ~wxAuiPaneButton() {} } +%extend wxAuiMDIParentFrame { + %typemap(out) wxAuiNotebook* { $result = wxPyMake_wxObject($1, $owner); } + %typemap(out) wxAuiMDIChildFrame* { $result = wxPyMake_wxObject($1, $owner); } + %typemap(out) wxAuiMDIClientWindow* { $result = wxPyMake_wxObject($1, $owner); } + + %rename(GetNotebook) _GetNotebook; + %rename(GetActiveChild) _GetActiveChild; + %rename(GetClientWindow) _GetClientWindow; + + wxAuiNotebook* _GetNotebook() const + { + return self->GetNotebook(); + } + + wxAuiMDIChildFrame* _GetActiveChild() const + { + return self->GetActiveChild(); + } + + wxAuiMDIClientWindow* _GetClientWindow() const + { + return self->GetClientWindow(); + } + + %typemap(out) wxAuiNotebook*; + %typemap(out) wxAuiMDIChildFrame*; + %typemap(out) wxAuiMDIClientWindow*; +} + + //--------------------------------------------------------------------------- %{ @@ -482,7 +519,7 @@ class wxPyAuiDockArt : public wxAuiDefaultDockArt { public: %pythonAppend wxPyAuiDockArt setCallbackInfo(PyAuiDockArt) - wxPyAuiDocArt(); + wxPyAuiDockArt(); };