X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c3c1cebed3db1aa23fec3aa9f97777f647f0cdce..cc9efb9be731d6827981fb8ddacf60bf1382b31c:/utils/wxPython/src/gtk/mdi.cpp?ds=inline diff --git a/utils/wxPython/src/gtk/mdi.cpp b/utils/wxPython/src/gtk/mdi.cpp index 3ccfd726e0..97967b0bf2 100644 --- a/utils/wxPython/src/gtk/mdi.cpp +++ b/utils/wxPython/src/gtk/mdi.cpp @@ -169,7 +169,7 @@ static PyObject *_wrap_new_wxMDIParentFrame(PyObject *self, PyObject *args) { PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); return NULL; } - _arg2 = new wxString(PyString_AsString(_obj2)); + _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); } if (_argc3) { if (SWIG_GetPtr(_argc3,(void **) &_arg3,"_wxPoint_p")) { @@ -183,8 +183,12 @@ static PyObject *_wrap_new_wxMDIParentFrame(PyObject *self, PyObject *args) { return NULL; } } - _result = (wxMDIParentFrame *)new_wxMDIParentFrame(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); - SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIParentFrame_p"); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (wxMDIParentFrame *)new_wxMDIParentFrame(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIParentFrame_p"); _resultobj = Py_BuildValue("s",_ptemp); { if (_obj2) @@ -208,8 +212,12 @@ static PyObject *_wrap_wxMDIParentFrame_ActivateNext(PyObject *self, PyObject *a return NULL; } } - wxMDIParentFrame_ActivateNext(_arg0); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxMDIParentFrame_ActivateNext(_arg0); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -229,8 +237,12 @@ static PyObject *_wrap_wxMDIParentFrame_ActivatePrevious(PyObject *self, PyObjec return NULL; } } - wxMDIParentFrame_ActivatePrevious(_arg0); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxMDIParentFrame_ActivatePrevious(_arg0); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -250,8 +262,12 @@ static PyObject *_wrap_wxMDIParentFrame_ArrangeIcons(PyObject *self, PyObject *a return NULL; } } - wxMDIParentFrame_ArrangeIcons(_arg0); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxMDIParentFrame_ArrangeIcons(_arg0); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -271,8 +287,12 @@ static PyObject *_wrap_wxMDIParentFrame_Cascade(PyObject *self, PyObject *args) return NULL; } } - wxMDIParentFrame_Cascade(_arg0); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxMDIParentFrame_Cascade(_arg0); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -294,8 +314,12 @@ static PyObject *_wrap_wxMDIParentFrame_GetActiveChild(PyObject *self, PyObject return NULL; } } - _result = (wxMDIChildFrame *)wxMDIParentFrame_GetActiveChild(_arg0); - SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIChildFrame_p"); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (wxMDIChildFrame *)wxMDIParentFrame_GetActiveChild(_arg0); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIChildFrame_p"); _resultobj = Py_BuildValue("s",_ptemp); return _resultobj; } @@ -317,8 +341,12 @@ static PyObject *_wrap_wxMDIParentFrame_GetClientWindow(PyObject *self, PyObject return NULL; } } - _result = (wxMDIClientWindow *)wxMDIParentFrame_GetClientWindow(_arg0); - SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIClientWindow_p"); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (wxMDIClientWindow *)wxMDIParentFrame_GetClientWindow(_arg0); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIClientWindow_p"); _resultobj = Py_BuildValue("s",_ptemp); return _resultobj; } @@ -340,8 +368,12 @@ static PyObject *_wrap_wxMDIParentFrame_GetToolBar(PyObject *self, PyObject *arg return NULL; } } - _result = (wxWindow *)wxMDIParentFrame_GetToolBar(_arg0); - SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (wxWindow *)wxMDIParentFrame_GetToolBar(_arg0); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); _resultobj = Py_BuildValue("s",_ptemp); return _resultobj; } @@ -361,8 +393,12 @@ static PyObject *_wrap_wxMDIParentFrame_Tile(PyObject *self, PyObject *args) { return NULL; } } - wxMDIParentFrame_Tile(_arg0); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxMDIParentFrame_Tile(_arg0); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -422,7 +458,7 @@ static PyObject *_wrap_new_wxMDIChildFrame(PyObject *self, PyObject *args) { PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); return NULL; } - _arg2 = new wxString(PyString_AsString(_obj2)); + _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); } if (_argc3) { if (SWIG_GetPtr(_argc3,(void **) &_arg3,"_wxPoint_p")) { @@ -436,8 +472,12 @@ static PyObject *_wrap_new_wxMDIChildFrame(PyObject *self, PyObject *args) { return NULL; } } - _result = (wxMDIChildFrame *)new_wxMDIChildFrame(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); - SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIChildFrame_p"); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (wxMDIChildFrame *)new_wxMDIChildFrame(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIChildFrame_p"); _resultobj = Py_BuildValue("s",_ptemp); { if (_obj2) @@ -461,20 +501,26 @@ static PyObject *_wrap_wxMDIChildFrame_Activate(PyObject *self, PyObject *args) return NULL; } } - wxMDIChildFrame_Activate(_arg0); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxMDIChildFrame_Activate(_arg0); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } -#define wxMDIChildFrame_Maximize(_swigobj) (_swigobj->Maximize()) +#define wxMDIChildFrame_Maximize(_swigobj,_swigarg0) (_swigobj->Maximize(_swigarg0)) static PyObject *_wrap_wxMDIChildFrame_Maximize(PyObject *self, PyObject *args) { PyObject * _resultobj; wxMDIChildFrame * _arg0; + bool _arg1; char * _argc0 = 0; + int tempbool1; self = self; - if(!PyArg_ParseTuple(args,"s:wxMDIChildFrame_Maximize",&_argc0)) + if(!PyArg_ParseTuple(args,"si:wxMDIChildFrame_Maximize",&_argc0,&tempbool1)) return NULL; if (_argc0) { if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxMDIChildFrame_p")) { @@ -482,8 +528,13 @@ static PyObject *_wrap_wxMDIChildFrame_Maximize(PyObject *self, PyObject *args) return NULL; } } - wxMDIChildFrame_Maximize(_arg0); - Py_INCREF(Py_None); + _arg1 = (bool ) tempbool1; +{ + wxPy_BEGIN_ALLOW_THREADS; + wxMDIChildFrame_Maximize(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -503,8 +554,12 @@ static PyObject *_wrap_wxMDIChildFrame_Restore(PyObject *self, PyObject *args) { return NULL; } } - wxMDIChildFrame_Restore(_arg0); - Py_INCREF(Py_None); +{ + wxPy_BEGIN_ALLOW_THREADS; + wxMDIChildFrame_Restore(_arg0); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); _resultobj = Py_None; return _resultobj; } @@ -543,8 +598,12 @@ static PyObject *_wrap_new_wxMDIClientWindow(PyObject *self, PyObject *args) { return NULL; } } - _result = (wxMDIClientWindow *)new_wxMDIClientWindow(_arg0,_arg1); - SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIClientWindow_p"); +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (wxMDIClientWindow *)new_wxMDIClientWindow(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (char *) _result,"_wxMDIClientWindow_p"); _resultobj = Py_BuildValue("s",_ptemp); return _resultobj; } @@ -584,6 +643,13 @@ SWIGEXPORT(void,initmdic)() { SWIG_RegisterMapping("_class_wxActivateEvent","_wxActivateEvent",0); SWIG_RegisterMapping("_signed_long","_long",0); SWIG_RegisterMapping("_wxMenuEvent","_class_wxMenuEvent",0); + SWIG_RegisterMapping("_wxPrintQuality","_int",0); + SWIG_RegisterMapping("_wxPrintQuality","_signed_int",0); + SWIG_RegisterMapping("_wxPrintQuality","_unsigned_int",0); + SWIG_RegisterMapping("_wxPrintQuality","_wxWindowID",0); + SWIG_RegisterMapping("_wxPrintQuality","_uint",0); + SWIG_RegisterMapping("_wxPrintQuality","_EBool",0); + SWIG_RegisterMapping("_wxPrintQuality","_size_t",0); SWIG_RegisterMapping("_class_wxRegionIterator","_wxRegionIterator",0); SWIG_RegisterMapping("_class_wxMenuBar","_wxMenuBar",0); SWIG_RegisterMapping("_class_wxEvtHandler","_class_wxMDIClientWindow",SwigwxMDIClientWindowTowxEvtHandler); @@ -596,7 +662,7 @@ SWIGEXPORT(void,initmdic)() { SWIG_RegisterMapping("_wxPaintEvent","_class_wxPaintEvent",0); SWIG_RegisterMapping("_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0); SWIG_RegisterMapping("_wxCursor","_class_wxCursor",0); - SWIG_RegisterMapping("_wxToolTip","_class_wxToolTip",0); + SWIG_RegisterMapping("_wxNotifyEvent","_class_wxNotifyEvent",0); SWIG_RegisterMapping("_wxMask","_class_wxMask",0); SWIG_RegisterMapping("_wxPyMenu","_class_wxPyMenu",0); SWIG_RegisterMapping("_wxPen","_class_wxPen",0); @@ -615,6 +681,11 @@ SWIGEXPORT(void,initmdic)() { SWIG_RegisterMapping("_class_wxGauge","_wxGauge",0); SWIG_RegisterMapping("_wxDC","_class_wxDC",0); SWIG_RegisterMapping("_wxSpinEvent","_class_wxSpinEvent",0); + SWIG_RegisterMapping("_size_t","_wxPrintQuality",0); + SWIG_RegisterMapping("_size_t","_unsigned_int",0); + SWIG_RegisterMapping("_size_t","_int",0); + SWIG_RegisterMapping("_size_t","_wxWindowID",0); + SWIG_RegisterMapping("_size_t","_uint",0); SWIG_RegisterMapping("_class_wxRealPoint","_wxRealPoint",0); SWIG_RegisterMapping("_class_wxMenuItem","_wxMenuItem",0); SWIG_RegisterMapping("_class_wxPaintEvent","_wxPaintEvent",0); @@ -624,8 +695,8 @@ SWIGEXPORT(void,initmdic)() { SWIG_RegisterMapping("_wxPanel","_class_wxPanel",0); SWIG_RegisterMapping("_wxInitDialogEvent","_class_wxInitDialogEvent",0); SWIG_RegisterMapping("_wxCheckBox","_class_wxCheckBox",0); + SWIG_RegisterMapping("_wxPyEvent","_class_wxPyEvent",0); SWIG_RegisterMapping("_wxTextCtrl","_class_wxTextCtrl",0); - SWIG_RegisterMapping("_class_wxToolTip","_wxToolTip",0); SWIG_RegisterMapping("_class_wxMask","_wxMask",0); SWIG_RegisterMapping("_class_wxKeyEvent","_wxKeyEvent",0); SWIG_RegisterMapping("_wxColour","_class_wxColour",0); @@ -633,9 +704,12 @@ SWIGEXPORT(void,initmdic)() { SWIG_RegisterMapping("_wxIdleEvent","_class_wxIdleEvent",0); SWIG_RegisterMapping("_class_wxUpdateUIEvent","_wxUpdateUIEvent",0); SWIG_RegisterMapping("_wxToolBar","_class_wxToolBar",0); + SWIG_RegisterMapping("_wxStaticLine","_class_wxStaticLine",0); SWIG_RegisterMapping("_wxBrush","_class_wxBrush",0); SWIG_RegisterMapping("_wxMiniFrame","_class_wxMiniFrame",0); SWIG_RegisterMapping("_wxShowEvent","_class_wxShowEvent",0); + SWIG_RegisterMapping("_uint","_wxPrintQuality",0); + SWIG_RegisterMapping("_uint","_size_t",0); SWIG_RegisterMapping("_uint","_unsigned_int",0); SWIG_RegisterMapping("_uint","_int",0); SWIG_RegisterMapping("_uint","_wxWindowID",0); @@ -654,11 +728,15 @@ SWIGEXPORT(void,initmdic)() { SWIG_RegisterMapping("_wxSpinButton","_class_wxSpinButton",0); SWIG_RegisterMapping("_wxToolBarTool","_class_wxToolBarTool",0); SWIG_RegisterMapping("_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0); + SWIG_RegisterMapping("_class_wxNotifyEvent","_wxNotifyEvent",0); + SWIG_RegisterMapping("_class_wxPyEvent","_wxPyEvent",0); SWIG_RegisterMapping("_class_wxIconizeEvent","_wxIconizeEvent",0); SWIG_RegisterMapping("_class_wxStaticBitmap","_wxStaticBitmap",0); SWIG_RegisterMapping("_wxMDIChildFrame","_class_wxMDIChildFrame",0); SWIG_RegisterMapping("_class_wxToolBar","_wxToolBar",0); + SWIG_RegisterMapping("_class_wxStaticLine","_wxStaticLine",0); SWIG_RegisterMapping("_wxScrollEvent","_class_wxScrollEvent",0); + SWIG_RegisterMapping("_EBool","_wxPrintQuality",0); SWIG_RegisterMapping("_EBool","_signed_int",0); SWIG_RegisterMapping("_EBool","_int",0); SWIG_RegisterMapping("_EBool","_wxWindowID",0); @@ -681,6 +759,7 @@ SWIGEXPORT(void,initmdic)() { SWIG_RegisterMapping("_class_wxCheckBox","_wxCheckBox",0); SWIG_RegisterMapping("_wxComboBox","_class_wxComboBox",0); SWIG_RegisterMapping("_wxRadioButton","_class_wxRadioButton",0); + SWIG_RegisterMapping("_signed_int","_wxPrintQuality",0); SWIG_RegisterMapping("_signed_int","_EBool",0); SWIG_RegisterMapping("_signed_int","_wxWindowID",0); SWIG_RegisterMapping("_signed_int","_int",0); @@ -731,6 +810,8 @@ SWIGEXPORT(void,initmdic)() { SWIG_RegisterMapping("_class_wxMenu","_wxMenu",0); SWIG_RegisterMapping("_wxControl","_class_wxControl",0); SWIG_RegisterMapping("_class_wxListBox","_wxListBox",0); + SWIG_RegisterMapping("_unsigned_int","_wxPrintQuality",0); + SWIG_RegisterMapping("_unsigned_int","_size_t",0); SWIG_RegisterMapping("_unsigned_int","_uint",0); SWIG_RegisterMapping("_unsigned_int","_wxWindowID",0); SWIG_RegisterMapping("_unsigned_int","_int",0); @@ -753,11 +834,15 @@ SWIGEXPORT(void,initmdic)() { SWIG_RegisterMapping("_wxFrame","_class_wxMDIParentFrame",SwigwxMDIParentFrameTowxFrame); SWIG_RegisterMapping("_wxFrame","_wxMDIParentFrame",SwigwxMDIParentFrameTowxFrame); SWIG_RegisterMapping("_wxFrame","_class_wxFrame",0); + SWIG_RegisterMapping("_wxWindowID","_wxPrintQuality",0); + SWIG_RegisterMapping("_wxWindowID","_size_t",0); SWIG_RegisterMapping("_wxWindowID","_EBool",0); SWIG_RegisterMapping("_wxWindowID","_uint",0); SWIG_RegisterMapping("_wxWindowID","_int",0); SWIG_RegisterMapping("_wxWindowID","_signed_int",0); SWIG_RegisterMapping("_wxWindowID","_unsigned_int",0); + SWIG_RegisterMapping("_int","_wxPrintQuality",0); + SWIG_RegisterMapping("_int","_size_t",0); SWIG_RegisterMapping("_int","_EBool",0); SWIG_RegisterMapping("_int","_uint",0); SWIG_RegisterMapping("_int","_wxWindowID",0);