X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..922ba68045d84789ab1dfceb4d1aa1b6e2c5e810:/wxPython/src/mdi.i diff --git a/wxPython/src/mdi.i b/wxPython/src/mdi.i index 6fc5ed554a..5c9d7a3b31 100644 --- a/wxPython/src/mdi.i +++ b/wxPython/src/mdi.i @@ -37,12 +37,22 @@ public: wxMDIParentFrame(wxWindow *parent, const wxWindowID id, const wxString& title, - const wxPoint& pos = wxPyDefaultPosition, - const wxSize& size = wxPyDefaultSize, + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL, const char* name = "frame"); + %name(wxPreMDIParentFrame)wxMDIParentFrame(); - %pragma(python) addtomethod = "__init__:#wx._StdFrameCallbacks(self)" + bool Create(wxWindow *parent, + const wxWindowID id, + const wxString& title, + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, + long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL, + const char* name = "frame"); + + %pragma(python) addtomethod = "__init__:self._setOORInfo(self)" + %pragma(python) addtomethod = "wxPreMDIParentFrame:val._setOORInfo(val)" void ActivateNext(); void ActivatePrevious(); @@ -55,7 +65,10 @@ public: // TODO: This isn't handled by the standard event-table system... //wxMDIClientWindow* OnCreateClient(); + #ifdef __WXMSW__ + wxMenu* GetWindowMenu(); + void SetWindowMenu(wxMenu* menu); void SetToolBar(wxToolBar* toolbar); #endif void Tile(); @@ -68,12 +81,22 @@ public: wxMDIChildFrame(wxMDIParentFrame* parent, const wxWindowID id, const wxString& title, - const wxPoint& pos = wxPyDefaultPosition, - const wxSize& size = wxPyDefaultSize, + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE, const char* name = "frame"); + %name(wxPreMDIChildFrame)wxMDIChildFrame(); - %pragma(python) addtomethod = "__init__:#wx._StdFrameCallbacks(self)" + bool Create(wxMDIParentFrame* parent, + const wxWindowID id, + const wxString& title, + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, + long style = wxDEFAULT_FRAME_STYLE, + const char* name = "frame"); + + %pragma(python) addtomethod = "__init__:self._setOORInfo(self)" + %pragma(python) addtomethod = "wxPreMDIChildFrame:val._setOORInfo(val)" void Activate(); void Maximize(bool maximize); @@ -87,8 +110,12 @@ public: class wxMDIClientWindow : public wxWindow { public: wxMDIClientWindow(wxMDIParentFrame* parent, long style = 0); - %pragma(python) addtomethod = "__init__:#wx._StdWindowCallbacks(self)" - %pragma(python) addtomethod = "__init__:#wx._StdOnScrollCallbacks(self)" + %name(wxPreMDIClientWindow)wxMDIClientWindow(); + + bool Create(wxMDIParentFrame* parent, long style = 0); + + %pragma(python) addtomethod = "__init__:self._setOORInfo(self)" + %pragma(python) addtomethod = "wxPreMDIClientWindow:val._setOORInfo(val)" }; //---------------------------------------------------------------------------