X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0122b7e3fcfd78f879470053c91a60e3c66537a3..6d26dc89c5e7a421f4f8807728928eee91aa5f7e:/wxPython/src/mdi.i diff --git a/wxPython/src/mdi.i b/wxPython/src/mdi.i index 36041b4538..7c17fcea71 100644 --- a/wxPython/src/mdi.i +++ b/wxPython/src/mdi.i @@ -32,6 +32,24 @@ //---------------------------------------------------------------------- +%{ + // Put some wx default wxChar* values into wxStrings. + DECLARE_DEF_STRING(FrameNameStr); +%} + +//---------------------------------------------------------------------- + +const int IDM_WINDOWTILE = 4001; +const int IDM_WINDOWTILEHOR = 4001; +const int IDM_WINDOWCASCADE = 4002; +const int IDM_WINDOWICONS = 4003; +const int IDM_WINDOWNEXT = 4004; +const int IDM_WINDOWTILEVERT = 4005; +const int wxFIRST_MDI_CHILD = 4100; +const int wxLAST_MDI_CHILD = 4600; + + + class wxMDIParentFrame : public wxFrame { public: wxMDIParentFrame(wxWindow *parent, @@ -40,7 +58,7 @@ public: const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL, - const char* name = "frame"); + const wxString& name = wxPyFrameNameStr); %name(wxPreMDIParentFrame)wxMDIParentFrame(); bool Create(wxWindow *parent, @@ -49,10 +67,10 @@ public: const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL, - const char* name = "frame"); + const wxString& name = wxPyFrameNameStr); %pragma(python) addtomethod = "__init__:self._setOORInfo(self)" - %pragma(python) addtomethod = "wxPreMDIParentFrame:val._setOORInfo(self)" + %pragma(python) addtomethod = "wxPreMDIParentFrame:val._setOORInfo(val)" void ActivateNext(); void ActivatePrevious(); @@ -84,7 +102,7 @@ public: const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE, - const char* name = "frame"); + const wxString& name = wxPyFrameNameStr); %name(wxPreMDIChildFrame)wxMDIChildFrame(); bool Create(wxMDIParentFrame* parent, @@ -93,10 +111,10 @@ public: const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE, - const char* name = "frame"); + const wxString& name = wxPyFrameNameStr); %pragma(python) addtomethod = "__init__:self._setOORInfo(self)" - %pragma(python) addtomethod = "wxPreMDIChildFrame:val._setOORInfo(self)" + %pragma(python) addtomethod = "wxPreMDIChildFrame:val._setOORInfo(val)" void Activate(); void Maximize(bool maximize); @@ -115,7 +133,7 @@ public: bool Create(wxMDIParentFrame* parent, long style = 0); %pragma(python) addtomethod = "__init__:self._setOORInfo(self)" - %pragma(python) addtomethod = "wxPreMDIClientWindow:val._setOORInfo(self)" + %pragma(python) addtomethod = "wxPreMDIClientWindow:val._setOORInfo(val)" }; //---------------------------------------------------------------------------