#define wxUSE_AUI 1
#define WXDLLIMPEXP_AUI
#define unsigned
+#define wxDEPRECATED(decl)
-// We'll let SWIG handle the function overloading for these
+
+// We'll skip making wrappers for these, they have overloads that take a
+// wxSize or wxPoint
%ignore wxPaneInfo::MaxSize(int x, int y);
%ignore wxPaneInfo::MinSize(int x, int y);
%ignore wxPaneInfo::BestSize(int x, int y);
%rename(_AddPane1) wxFrameManager::AddPane(wxWindow* window, const wxPaneInfo& pane_info);
%rename(_AddPane2) wxFrameManager::AddPane(wxWindow* window, int direction = wxLEFT,
- const wxString& caption = wxEmptyString);
+ const wxString& caption = wxEmptyString);
+%rename(AddPaneAtPos) wxFrameManager::AddPane(wxWindow* window,
+ const wxPaneInfo& pane_info,
+ const wxPoint& drop_pos);
// A typemap for the return value of wxFrameManager::GetAllPanes
%typemap(out) wxPaneInfoArray& {
}
+%nokwargs wxAuiTabContainer::SetActivePage;
+
+%pythonAppend wxAuiTabCtrl::wxAuiTabCtrl "self._setOORInfo(self)";
+
+%pythonAppend wxAuiMultiNotebook::wxAuiMultiNotebook "self._setOORInfo(self)";
+%pythonAppend wxAuiMultiNotebook::wxAuiMultiNotebook() "self._setOORInfo(self)";
+%ignore wxAuiMultiNotebook::~wxAuiMultiNotebook;
+%rename(PreAuiMultiNotebook) wxAuiMultiNotebook::wxAuiMultiNotebook();
+
//---------------------------------------------------------------------------
// Get all our defs from the REAL header files.
%include framemanager.h
%include dockart.h
%include floatpane.h
-
+%include auibook.h
//---------------------------------------------------------------------------
// Methods to inject into the FrameManager class that will sort out calls to
// the overloaded versions of GetPane and AddPane
%extend wxFrameManager {
-%pythoncode {
+ %pythoncode {
def GetPane(self, item):
"""
GetPane(self, window_or_info item) -> PaneInfo
if caption is None:
caption = ""
return self._AddPane2(window, info, caption)
-}
+ }
+
+ // For backwards compatibility
+ %pythoncode {
+ SetFrame = wx._deprecated(SetManagedWindow,
+ "SetFrame is deprecated, use `SetManagedWindow` instead.")
+ GetFrame = wx._deprecated(GetManagedWindow,
+ "GetFrame is deprecated, use `GetManagedWindow` instead.")
+ }
}
//---------------------------------------------------------------------------
%{
+// A wxDocArt lcass that knows how to forward virtuals to Python methods
class wxPyDockArt : public wxDefaultDockArt
{
wxPyDockArt() : wxDefaultDockArt() {}