X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2ef752932bd40c566f0ea003f78e48a00c8295a9..11ec0dcea243f7ce1cbe7d33bfd9cd0e2f6d9083:/wxPython/src/gtk/xrc_wrap.cpp?ds=sidebyside diff --git a/wxPython/src/gtk/xrc_wrap.cpp b/wxPython/src/gtk/xrc_wrap.cpp index 4d6954217a..23b58b0d5b 100644 --- a/wxPython/src/gtk/xrc_wrap.cpp +++ b/wxPython/src/gtk/xrc_wrap.cpp @@ -472,7 +472,7 @@ public: wxObject* GetParent() { return m_parent; } wxObject* GetInstance() { return m_instance; } wxWindow* GetParentAsWindow() { return m_parentAsWindow; } - wxWindow* GetInstanceAsWindow() { return m_instanceAsWindow; } +// wxWindow* GetInstanceAsWindow() { return m_instanceAsWindow; } // turn some protected methods into public via delegation @@ -501,7 +501,7 @@ public: int GetStyle(const wxString& param = wxT("style"), int defaults = 0) { return wxXmlResourceHandler::GetStyle(param, defaults); } - wxString GetText(const wxString& param, bool translate = True) + wxString GetText(const wxString& param, bool translate = true) { return wxXmlResourceHandler::GetText(param, translate); } int GetID() @@ -510,7 +510,7 @@ public: wxString GetName() { return wxXmlResourceHandler::GetName(); } - bool GetBool(const wxString& param, bool defaultv = False) + bool GetBool(const wxString& param, bool defaultv = false) { return wxXmlResourceHandler::GetBool(param, defaultv); } long GetLong( const wxString& param, long defaultv = 0 ) @@ -544,7 +544,7 @@ public: void SetupWindow(wxWindow *wnd) { wxXmlResourceHandler::SetupWindow(wnd); } - void CreateChildren(wxObject *parent, bool this_hnd_only = False) + void CreateChildren(wxObject *parent, bool this_hnd_only = false) { wxXmlResourceHandler::CreateChildren(parent, this_hnd_only); } void CreateChildrenPrivately(wxObject *parent, wxXmlNode *rootnode = NULL) @@ -783,7 +783,7 @@ static PyObject *_wrap_new_XmlResource(PyObject *, PyObject *args, PyObject *kwa wxString *arg1 = 0 ; int arg2 = (int) wxXRC_USE_LOCALE ; wxXmlResource *result; - bool temp1 = False ; + bool temp1 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char *kwnames[] = { @@ -794,7 +794,7 @@ static PyObject *_wrap_new_XmlResource(PyObject *, PyObject *args, PyObject *kwa { arg1 = wxString_in_helper(obj0); if (arg1 == NULL) SWIG_fail; - temp1 = True; + temp1 = true; } if (obj1) { arg2 = (int)SWIG_As_int(obj1); @@ -880,7 +880,7 @@ static PyObject *_wrap_XmlResource_Load(PyObject *, PyObject *args, PyObject *kw wxXmlResource *arg1 = (wxXmlResource *) 0 ; wxString *arg2 = 0 ; bool result; - bool temp2 = False ; + bool temp2 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char *kwnames[] = { @@ -893,7 +893,7 @@ static PyObject *_wrap_XmlResource_Load(PyObject *, PyObject *args, PyObject *kw { arg2 = wxString_in_helper(obj1); if (arg2 == NULL) SWIG_fail; - temp2 = True; + temp2 = true; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -924,7 +924,7 @@ static PyObject *_wrap_XmlResource_LoadFromString(PyObject *, PyObject *args, Py wxXmlResource *arg1 = (wxXmlResource *) 0 ; wxString *arg2 = 0 ; bool result; - bool temp2 = False ; + bool temp2 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char *kwnames[] = { @@ -937,7 +937,7 @@ static PyObject *_wrap_XmlResource_LoadFromString(PyObject *, PyObject *args, Py { arg2 = wxString_in_helper(obj1); if (arg2 == NULL) SWIG_fail; - temp2 = True; + temp2 = true; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -1101,7 +1101,7 @@ static PyObject *_wrap_XmlResource_LoadMenu(PyObject *, PyObject *args, PyObject wxXmlResource *arg1 = (wxXmlResource *) 0 ; wxString *arg2 = 0 ; wxMenu *result; - bool temp2 = False ; + bool temp2 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char *kwnames[] = { @@ -1114,7 +1114,7 @@ static PyObject *_wrap_XmlResource_LoadMenu(PyObject *, PyObject *args, PyObject { arg2 = wxString_in_helper(obj1); if (arg2 == NULL) SWIG_fail; - temp2 = True; + temp2 = true; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -1145,7 +1145,7 @@ static PyObject *_wrap_XmlResource_LoadMenuBar(PyObject *, PyObject *args, PyObj wxXmlResource *arg1 = (wxXmlResource *) 0 ; wxString *arg2 = 0 ; wxMenuBar *result; - bool temp2 = False ; + bool temp2 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char *kwnames[] = { @@ -1158,7 +1158,7 @@ static PyObject *_wrap_XmlResource_LoadMenuBar(PyObject *, PyObject *args, PyObj { arg2 = wxString_in_helper(obj1); if (arg2 == NULL) SWIG_fail; - temp2 = True; + temp2 = true; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -1190,7 +1190,7 @@ static PyObject *_wrap_XmlResource_LoadMenuBarOnFrame(PyObject *, PyObject *args wxWindow *arg2 = (wxWindow *) 0 ; wxString *arg3 = 0 ; wxMenuBar *result; - bool temp3 = False ; + bool temp3 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; @@ -1206,7 +1206,7 @@ static PyObject *_wrap_XmlResource_LoadMenuBarOnFrame(PyObject *, PyObject *args { arg3 = wxString_in_helper(obj2); if (arg3 == NULL) SWIG_fail; - temp3 = True; + temp3 = true; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -1238,7 +1238,7 @@ static PyObject *_wrap_XmlResource_LoadToolBar(PyObject *, PyObject *args, PyObj wxWindow *arg2 = (wxWindow *) 0 ; wxString *arg3 = 0 ; wxToolBar *result; - bool temp3 = False ; + bool temp3 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; @@ -1254,7 +1254,7 @@ static PyObject *_wrap_XmlResource_LoadToolBar(PyObject *, PyObject *args, PyObj { arg3 = wxString_in_helper(obj2); if (arg3 == NULL) SWIG_fail; - temp3 = True; + temp3 = true; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -1286,7 +1286,7 @@ static PyObject *_wrap_XmlResource_LoadDialog(PyObject *, PyObject *args, PyObje wxWindow *arg2 = (wxWindow *) 0 ; wxString *arg3 = 0 ; wxDialog *result; - bool temp3 = False ; + bool temp3 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; @@ -1302,7 +1302,7 @@ static PyObject *_wrap_XmlResource_LoadDialog(PyObject *, PyObject *args, PyObje { arg3 = wxString_in_helper(obj2); if (arg3 == NULL) SWIG_fail; - temp3 = True; + temp3 = true; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -1335,7 +1335,7 @@ static PyObject *_wrap_XmlResource_LoadOnDialog(PyObject *, PyObject *args, PyOb wxWindow *arg3 = (wxWindow *) 0 ; wxString *arg4 = 0 ; bool result; - bool temp4 = False ; + bool temp4 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; @@ -1354,7 +1354,7 @@ static PyObject *_wrap_XmlResource_LoadOnDialog(PyObject *, PyObject *args, PyOb { arg4 = wxString_in_helper(obj3); if (arg4 == NULL) SWIG_fail; - temp4 = True; + temp4 = true; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -1386,7 +1386,7 @@ static PyObject *_wrap_XmlResource_LoadPanel(PyObject *, PyObject *args, PyObjec wxWindow *arg2 = (wxWindow *) 0 ; wxString *arg3 = 0 ; wxPanel *result; - bool temp3 = False ; + bool temp3 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; @@ -1402,7 +1402,7 @@ static PyObject *_wrap_XmlResource_LoadPanel(PyObject *, PyObject *args, PyObjec { arg3 = wxString_in_helper(obj2); if (arg3 == NULL) SWIG_fail; - temp3 = True; + temp3 = true; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -1435,7 +1435,7 @@ static PyObject *_wrap_XmlResource_LoadOnPanel(PyObject *, PyObject *args, PyObj wxWindow *arg3 = (wxWindow *) 0 ; wxString *arg4 = 0 ; bool result; - bool temp4 = False ; + bool temp4 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; @@ -1454,7 +1454,7 @@ static PyObject *_wrap_XmlResource_LoadOnPanel(PyObject *, PyObject *args, PyObj { arg4 = wxString_in_helper(obj3); if (arg4 == NULL) SWIG_fail; - temp4 = True; + temp4 = true; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -1486,7 +1486,7 @@ static PyObject *_wrap_XmlResource_LoadFrame(PyObject *, PyObject *args, PyObjec wxWindow *arg2 = (wxWindow *) 0 ; wxString *arg3 = 0 ; wxFrame *result; - bool temp3 = False ; + bool temp3 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; @@ -1502,7 +1502,7 @@ static PyObject *_wrap_XmlResource_LoadFrame(PyObject *, PyObject *args, PyObjec { arg3 = wxString_in_helper(obj2); if (arg3 == NULL) SWIG_fail; - temp3 = True; + temp3 = true; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -1535,7 +1535,7 @@ static PyObject *_wrap_XmlResource_LoadOnFrame(PyObject *, PyObject *args, PyObj wxWindow *arg3 = (wxWindow *) 0 ; wxString *arg4 = 0 ; bool result; - bool temp4 = False ; + bool temp4 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; @@ -1554,7 +1554,7 @@ static PyObject *_wrap_XmlResource_LoadOnFrame(PyObject *, PyObject *args, PyObj { arg4 = wxString_in_helper(obj3); if (arg4 == NULL) SWIG_fail; - temp4 = True; + temp4 = true; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -1587,8 +1587,8 @@ static PyObject *_wrap_XmlResource_LoadObject(PyObject *, PyObject *args, PyObje wxString *arg3 = 0 ; wxString *arg4 = 0 ; wxObject *result; - bool temp3 = False ; - bool temp4 = False ; + bool temp3 = false ; + bool temp4 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; @@ -1605,12 +1605,12 @@ static PyObject *_wrap_XmlResource_LoadObject(PyObject *, PyObject *args, PyObje { arg3 = wxString_in_helper(obj2); if (arg3 == NULL) SWIG_fail; - temp3 = True; + temp3 = true; } { arg4 = wxString_in_helper(obj3); if (arg4 == NULL) SWIG_fail; - temp4 = True; + temp4 = true; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -1652,8 +1652,8 @@ static PyObject *_wrap_XmlResource_LoadOnObject(PyObject *, PyObject *args, PyOb wxString *arg4 = 0 ; wxString *arg5 = 0 ; bool result; - bool temp4 = False ; - bool temp5 = False ; + bool temp4 = false ; + bool temp5 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; @@ -1673,12 +1673,12 @@ static PyObject *_wrap_XmlResource_LoadOnObject(PyObject *, PyObject *args, PyOb { arg4 = wxString_in_helper(obj3); if (arg4 == NULL) SWIG_fail; - temp4 = True; + temp4 = true; } { arg5 = wxString_in_helper(obj4); if (arg5 == NULL) SWIG_fail; - temp5 = True; + temp5 = true; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -1717,7 +1717,7 @@ static PyObject *_wrap_XmlResource_LoadBitmap(PyObject *, PyObject *args, PyObje wxXmlResource *arg1 = (wxXmlResource *) 0 ; wxString *arg2 = 0 ; wxBitmap result; - bool temp2 = False ; + bool temp2 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char *kwnames[] = { @@ -1730,7 +1730,7 @@ static PyObject *_wrap_XmlResource_LoadBitmap(PyObject *, PyObject *args, PyObje { arg2 = wxString_in_helper(obj1); if (arg2 == NULL) SWIG_fail; - temp2 = True; + temp2 = true; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -1763,7 +1763,7 @@ static PyObject *_wrap_XmlResource_LoadIcon(PyObject *, PyObject *args, PyObject wxXmlResource *arg1 = (wxXmlResource *) 0 ; wxString *arg2 = 0 ; wxIcon result; - bool temp2 = False ; + bool temp2 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char *kwnames[] = { @@ -1776,7 +1776,7 @@ static PyObject *_wrap_XmlResource_LoadIcon(PyObject *, PyObject *args, PyObject { arg2 = wxString_in_helper(obj1); if (arg2 == NULL) SWIG_fail; - temp2 = True; + temp2 = true; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -1811,7 +1811,7 @@ static PyObject *_wrap_XmlResource_AttachUnknownControl(PyObject *, PyObject *ar wxWindow *arg3 = (wxWindow *) 0 ; wxWindow *arg4 = (wxWindow *) NULL ; bool result; - bool temp2 = False ; + bool temp2 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; @@ -1826,7 +1826,7 @@ static PyObject *_wrap_XmlResource_AttachUnknownControl(PyObject *, PyObject *ar { arg2 = wxString_in_helper(obj1); if (arg2 == NULL) SWIG_fail; - temp2 = True; + temp2 = true; } if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; @@ -1862,7 +1862,7 @@ static PyObject *_wrap_XmlResource_GetXRCID(PyObject *, PyObject *args, PyObject PyObject *resultobj; wxString *arg1 = 0 ; int result; - bool temp1 = False ; + bool temp1 = false ; PyObject * obj0 = 0 ; char *kwnames[] = { (char *) "str_id", NULL @@ -1872,7 +1872,7 @@ static PyObject *_wrap_XmlResource_GetXRCID(PyObject *, PyObject *args, PyObject { arg1 = wxString_in_helper(obj0); if (arg1 == NULL) SWIG_fail; - temp1 = True; + temp1 = true; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -2142,8 +2142,8 @@ static PyObject *_wrap_new_XmlProperty(PyObject *, PyObject *args, PyObject *kwa wxString *arg2 = (wxString *) &arg2_defvalue ; wxXmlProperty *arg3 = (wxXmlProperty *) NULL ; wxXmlProperty *result; - bool temp1 = False ; - bool temp2 = False ; + bool temp1 = false ; + bool temp2 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; @@ -2156,14 +2156,14 @@ static PyObject *_wrap_new_XmlProperty(PyObject *, PyObject *args, PyObject *kwa { arg1 = wxString_in_helper(obj0); if (arg1 == NULL) SWIG_fail; - temp1 = True; + temp1 = true; } } if (obj1) { { arg2 = wxString_in_helper(obj1); if (arg2 == NULL) SWIG_fail; - temp2 = True; + temp2 = true; } } if (obj2) { @@ -2294,7 +2294,7 @@ static PyObject *_wrap_XmlProperty_SetName(PyObject *, PyObject *args, PyObject PyObject *resultobj; wxXmlProperty *arg1 = (wxXmlProperty *) 0 ; wxString *arg2 = 0 ; - bool temp2 = False ; + bool temp2 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char *kwnames[] = { @@ -2307,7 +2307,7 @@ static PyObject *_wrap_XmlProperty_SetName(PyObject *, PyObject *args, PyObject { arg2 = wxString_in_helper(obj1); if (arg2 == NULL) SWIG_fail; - temp2 = True; + temp2 = true; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -2335,7 +2335,7 @@ static PyObject *_wrap_XmlProperty_SetValue(PyObject *, PyObject *args, PyObject PyObject *resultobj; wxXmlProperty *arg1 = (wxXmlProperty *) 0 ; wxString *arg2 = 0 ; - bool temp2 = False ; + bool temp2 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char *kwnames[] = { @@ -2348,7 +2348,7 @@ static PyObject *_wrap_XmlProperty_SetValue(PyObject *, PyObject *args, PyObject { arg2 = wxString_in_helper(obj1); if (arg2 == NULL) SWIG_fail; - temp2 = True; + temp2 = true; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -2419,8 +2419,8 @@ static PyObject *_wrap_new_XmlNode(PyObject *, PyObject *args, PyObject *kwargs) wxXmlProperty *arg5 = (wxXmlProperty *) NULL ; wxXmlNode *arg6 = (wxXmlNode *) NULL ; wxXmlNode *result; - bool temp3 = False ; - bool temp4 = False ; + bool temp3 = false ; + bool temp4 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; @@ -2444,14 +2444,14 @@ static PyObject *_wrap_new_XmlNode(PyObject *, PyObject *args, PyObject *kwargs) { arg3 = wxString_in_helper(obj2); if (arg3 == NULL) SWIG_fail; - temp3 = True; + temp3 = true; } } if (obj3) { { arg4 = wxString_in_helper(obj3); if (arg4 == NULL) SWIG_fail; - temp4 = True; + temp4 = true; } } if (obj4) { @@ -2524,8 +2524,8 @@ static PyObject *_wrap_new_XmlNodeEasy(PyObject *, PyObject *args, PyObject *kwa wxString const &arg3_defvalue = wxPyEmptyString ; wxString *arg3 = (wxString *) &arg3_defvalue ; wxXmlNode *result; - bool temp2 = False ; - bool temp3 = False ; + bool temp2 = false ; + bool temp3 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; @@ -2539,13 +2539,13 @@ static PyObject *_wrap_new_XmlNodeEasy(PyObject *, PyObject *args, PyObject *kwa { arg2 = wxString_in_helper(obj1); if (arg2 == NULL) SWIG_fail; - temp2 = True; + temp2 = true; } if (obj2) { { arg3 = wxString_in_helper(obj2); if (arg3 == NULL) SWIG_fail; - temp3 = True; + temp3 = true; } } { @@ -2706,8 +2706,8 @@ static PyObject *_wrap_XmlNode_AddPropertyName(PyObject *, PyObject *args, PyObj wxXmlNode *arg1 = (wxXmlNode *) 0 ; wxString *arg2 = 0 ; wxString *arg3 = 0 ; - bool temp2 = False ; - bool temp3 = False ; + bool temp2 = false ; + bool temp3 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; @@ -2721,12 +2721,12 @@ static PyObject *_wrap_XmlNode_AddPropertyName(PyObject *, PyObject *args, PyObj { arg2 = wxString_in_helper(obj1); if (arg2 == NULL) SWIG_fail; - temp2 = True; + temp2 = true; } { arg3 = wxString_in_helper(obj2); if (arg3 == NULL) SWIG_fail; - temp3 = True; + temp3 = true; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -2763,7 +2763,7 @@ static PyObject *_wrap_XmlNode_DeleteProperty(PyObject *, PyObject *args, PyObje wxXmlNode *arg1 = (wxXmlNode *) 0 ; wxString *arg2 = 0 ; bool result; - bool temp2 = False ; + bool temp2 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char *kwnames[] = { @@ -2776,7 +2776,7 @@ static PyObject *_wrap_XmlNode_DeleteProperty(PyObject *, PyObject *args, PyObje { arg2 = wxString_in_helper(obj1); if (arg2 == NULL) SWIG_fail; - temp2 = True; + temp2 = true; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -3002,8 +3002,8 @@ static PyObject *_wrap_XmlNode_GetPropVal(PyObject *, PyObject *args, PyObject * wxString *arg2 = 0 ; wxString *arg3 = 0 ; wxString result; - bool temp2 = False ; - bool temp3 = False ; + bool temp2 = false ; + bool temp3 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; @@ -3017,12 +3017,12 @@ static PyObject *_wrap_XmlNode_GetPropVal(PyObject *, PyObject *args, PyObject * { arg2 = wxString_in_helper(obj1); if (arg2 == NULL) SWIG_fail; - temp2 = True; + temp2 = true; } { arg3 = wxString_in_helper(obj2); if (arg3 == NULL) SWIG_fail; - temp3 = True; + temp3 = true; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -3065,7 +3065,7 @@ static PyObject *_wrap_XmlNode_HasProp(PyObject *, PyObject *args, PyObject *kwa wxXmlNode *arg1 = (wxXmlNode *) 0 ; wxString *arg2 = 0 ; bool result; - bool temp2 = False ; + bool temp2 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char *kwnames[] = { @@ -3078,7 +3078,7 @@ static PyObject *_wrap_XmlNode_HasProp(PyObject *, PyObject *args, PyObject *kwa { arg2 = wxString_in_helper(obj1); if (arg2 == NULL) SWIG_fail; - temp2 = True; + temp2 = true; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -3137,7 +3137,7 @@ static PyObject *_wrap_XmlNode_SetName(PyObject *, PyObject *args, PyObject *kwa PyObject *resultobj; wxXmlNode *arg1 = (wxXmlNode *) 0 ; wxString *arg2 = 0 ; - bool temp2 = False ; + bool temp2 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char *kwnames[] = { @@ -3150,7 +3150,7 @@ static PyObject *_wrap_XmlNode_SetName(PyObject *, PyObject *args, PyObject *kwa { arg2 = wxString_in_helper(obj1); if (arg2 == NULL) SWIG_fail; - temp2 = True; + temp2 = true; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -3178,7 +3178,7 @@ static PyObject *_wrap_XmlNode_SetContent(PyObject *, PyObject *args, PyObject * PyObject *resultobj; wxXmlNode *arg1 = (wxXmlNode *) 0 ; wxString *arg2 = 0 ; - bool temp2 = False ; + bool temp2 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char *kwnames[] = { @@ -3191,7 +3191,7 @@ static PyObject *_wrap_XmlNode_SetContent(PyObject *, PyObject *args, PyObject * { arg2 = wxString_in_helper(obj1); if (arg2 == NULL) SWIG_fail; - temp2 = True; + temp2 = true; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -3344,8 +3344,8 @@ static PyObject *_wrap_new_XmlDocument(PyObject *, PyObject *args, PyObject *kwa wxString const &arg2_defvalue = wxPyUTF8String ; wxString *arg2 = (wxString *) &arg2_defvalue ; wxXmlDocument *result; - bool temp1 = False ; - bool temp2 = False ; + bool temp1 = false ; + bool temp2 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char *kwnames[] = { @@ -3356,13 +3356,13 @@ static PyObject *_wrap_new_XmlDocument(PyObject *, PyObject *args, PyObject *kwa { arg1 = wxString_in_helper(obj0); if (arg1 == NULL) SWIG_fail; - temp1 = True; + temp1 = true; } if (obj1) { { arg2 = wxString_in_helper(obj1); if (arg2 == NULL) SWIG_fail; - temp2 = True; + temp2 = true; } } { @@ -3403,7 +3403,7 @@ static PyObject *_wrap_new_XmlDocumentFromStream(PyObject *, PyObject *args, PyO wxXmlDocument *result; wxPyInputStream *temp1 ; bool created1 ; - bool temp2 = False ; + bool temp2 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char *kwnames[] = { @@ -3414,22 +3414,22 @@ static PyObject *_wrap_new_XmlDocumentFromStream(PyObject *, PyObject *args, PyO { if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { arg1 = temp1->m_wxis; - created1 = False; + created1 = false; } else { PyErr_Clear(); // clear the failure of the wxPyConvert above - arg1 = wxPyCBInputStream_create(obj0, False); + arg1 = wxPyCBInputStream_create(obj0, false); if (arg1 == NULL) { PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); SWIG_fail; } - created1 = True; + created1 = true; } } if (obj1) { { arg2 = wxString_in_helper(obj1); if (arg2 == NULL) SWIG_fail; - temp2 = True; + temp2 = true; } } { @@ -3516,8 +3516,8 @@ static PyObject *_wrap_XmlDocument_Load(PyObject *, PyObject *args, PyObject *kw wxString const &arg3_defvalue = wxPyUTF8String ; wxString *arg3 = (wxString *) &arg3_defvalue ; bool result; - bool temp2 = False ; - bool temp3 = False ; + bool temp2 = false ; + bool temp3 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; @@ -3531,13 +3531,13 @@ static PyObject *_wrap_XmlDocument_Load(PyObject *, PyObject *args, PyObject *kw { arg2 = wxString_in_helper(obj1); if (arg2 == NULL) SWIG_fail; - temp2 = True; + temp2 = true; } if (obj2) { { arg3 = wxString_in_helper(obj2); if (arg3 == NULL) SWIG_fail; - temp3 = True; + temp3 = true; } } { @@ -3581,7 +3581,7 @@ static PyObject *_wrap_XmlDocument_LoadFromStream(PyObject *, PyObject *args, Py bool result; wxPyInputStream *temp2 ; bool created2 ; - bool temp3 = False ; + bool temp3 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; @@ -3595,22 +3595,22 @@ static PyObject *_wrap_XmlDocument_LoadFromStream(PyObject *, PyObject *args, Py { if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { arg2 = temp2->m_wxis; - created2 = False; + created2 = false; } else { PyErr_Clear(); // clear the failure of the wxPyConvert above - arg2 = wxPyCBInputStream_create(obj1, False); + arg2 = wxPyCBInputStream_create(obj1, false); if (arg2 == NULL) { PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); SWIG_fail; } - created2 = True; + created2 = true; } } if (obj2) { { arg3 = wxString_in_helper(obj2); if (arg3 == NULL) SWIG_fail; - temp3 = True; + temp3 = true; } } { @@ -3650,7 +3650,7 @@ static PyObject *_wrap_XmlDocument_Save(PyObject *, PyObject *args, PyObject *kw wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; wxString *arg2 = 0 ; bool result; - bool temp2 = False ; + bool temp2 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char *kwnames[] = { @@ -3663,7 +3663,7 @@ static PyObject *_wrap_XmlDocument_Save(PyObject *, PyObject *args, PyObject *kw { arg2 = wxString_in_helper(obj1); if (arg2 == NULL) SWIG_fail; - temp2 = True; + temp2 = true; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -3877,7 +3877,7 @@ static PyObject *_wrap_XmlDocument_SetVersion(PyObject *, PyObject *args, PyObje PyObject *resultobj; wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; wxString *arg2 = 0 ; - bool temp2 = False ; + bool temp2 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char *kwnames[] = { @@ -3890,7 +3890,7 @@ static PyObject *_wrap_XmlDocument_SetVersion(PyObject *, PyObject *args, PyObje { arg2 = wxString_in_helper(obj1); if (arg2 == NULL) SWIG_fail; - temp2 = True; + temp2 = true; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -3918,7 +3918,7 @@ static PyObject *_wrap_XmlDocument_SetFileEncoding(PyObject *, PyObject *args, P PyObject *resultobj; wxXmlDocument *arg1 = (wxXmlDocument *) 0 ; wxString *arg2 = 0 ; - bool temp2 = False ; + bool temp2 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char *kwnames[] = { @@ -3931,7 +3931,7 @@ static PyObject *_wrap_XmlDocument_SetFileEncoding(PyObject *, PyObject *args, P { arg2 = wxString_in_helper(obj1); if (arg2 == NULL) SWIG_fail; - temp2 = True; + temp2 = true; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -4252,41 +4252,13 @@ static PyObject *_wrap_XmlResourceHandler_GetParentAsWindow(PyObject *, PyObject } -static PyObject *_wrap_XmlResourceHandler_GetInstanceAsWindow(PyObject *, PyObject *args, PyObject *kwargs) { - PyObject *resultobj; - wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; - wxWindow *result; - PyObject * obj0 = 0 ; - char *kwnames[] = { - (char *) "self", NULL - }; - - if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:XmlResourceHandler_GetInstanceAsWindow",kwnames,&obj0)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyXmlResourceHandler, - SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; - { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (wxWindow *)(arg1)->GetInstanceAsWindow(); - - wxPyEndAllowThreads(__tstate); - if (PyErr_Occurred()) SWIG_fail; - } - { - resultobj = wxPyMake_wxObject(result, 0); - } - return resultobj; - fail: - return NULL; -} - - static PyObject *_wrap_XmlResourceHandler_IsOfClass(PyObject *, PyObject *args, PyObject *kwargs) { PyObject *resultobj; wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; wxXmlNode *arg2 = (wxXmlNode *) 0 ; wxString *arg3 = 0 ; bool result; - bool temp3 = False ; + bool temp3 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; @@ -4302,7 +4274,7 @@ static PyObject *_wrap_XmlResourceHandler_IsOfClass(PyObject *, PyObject *args, { arg3 = wxString_in_helper(obj2); if (arg3 == NULL) SWIG_fail; - temp3 = True; + temp3 = true; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -4369,7 +4341,7 @@ static PyObject *_wrap_XmlResourceHandler_HasParam(PyObject *, PyObject *args, P wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; wxString *arg2 = 0 ; bool result; - bool temp2 = False ; + bool temp2 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char *kwnames[] = { @@ -4382,7 +4354,7 @@ static PyObject *_wrap_XmlResourceHandler_HasParam(PyObject *, PyObject *args, P { arg2 = wxString_in_helper(obj1); if (arg2 == NULL) SWIG_fail; - temp2 = True; + temp2 = true; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -4413,7 +4385,7 @@ static PyObject *_wrap_XmlResourceHandler_GetParamNode(PyObject *, PyObject *arg wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; wxString *arg2 = 0 ; wxXmlNode *result; - bool temp2 = False ; + bool temp2 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char *kwnames[] = { @@ -4426,7 +4398,7 @@ static PyObject *_wrap_XmlResourceHandler_GetParamNode(PyObject *, PyObject *arg { arg2 = wxString_in_helper(obj1); if (arg2 == NULL) SWIG_fail; - temp2 = True; + temp2 = true; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -4455,7 +4427,7 @@ static PyObject *_wrap_XmlResourceHandler_GetParamValue(PyObject *, PyObject *ar wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; wxString *arg2 = 0 ; wxString result; - bool temp2 = False ; + bool temp2 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char *kwnames[] = { @@ -4468,7 +4440,7 @@ static PyObject *_wrap_XmlResourceHandler_GetParamValue(PyObject *, PyObject *ar { arg2 = wxString_in_helper(obj1); if (arg2 == NULL) SWIG_fail; - temp2 = True; + temp2 = true; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -4503,7 +4475,7 @@ static PyObject *_wrap_XmlResourceHandler_AddStyle(PyObject *, PyObject *args, P wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; wxString *arg2 = 0 ; int arg3 ; - bool temp2 = False ; + bool temp2 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; @@ -4517,7 +4489,7 @@ static PyObject *_wrap_XmlResourceHandler_AddStyle(PyObject *, PyObject *args, P { arg2 = wxString_in_helper(obj1); if (arg2 == NULL) SWIG_fail; - temp2 = True; + temp2 = true; } arg3 = (int)SWIG_As_int(obj2); if (PyErr_Occurred()) SWIG_fail; @@ -4575,7 +4547,7 @@ static PyObject *_wrap_XmlResourceHandler_GetStyle(PyObject *, PyObject *args, P wxString *arg2 = (wxString *) &arg2_defvalue ; int arg3 = (int) 0 ; int result; - bool temp2 = False ; + bool temp2 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; @@ -4590,7 +4562,7 @@ static PyObject *_wrap_XmlResourceHandler_GetStyle(PyObject *, PyObject *args, P { arg2 = wxString_in_helper(obj1); if (arg2 == NULL) SWIG_fail; - temp2 = True; + temp2 = true; } } if (obj2) { @@ -4623,9 +4595,9 @@ static PyObject *_wrap_XmlResourceHandler_GetText(PyObject *, PyObject *args, Py PyObject *resultobj; wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; wxString *arg2 = 0 ; - bool arg3 = (bool) True ; + bool arg3 = (bool) true ; wxString result; - bool temp2 = False ; + bool temp2 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; @@ -4639,7 +4611,7 @@ static PyObject *_wrap_XmlResourceHandler_GetText(PyObject *, PyObject *args, Py { arg2 = wxString_in_helper(obj1); if (arg2 == NULL) SWIG_fail; - temp2 = True; + temp2 = true; } if (obj2) { arg3 = (bool)SWIG_As_bool(obj2); @@ -4735,9 +4707,9 @@ static PyObject *_wrap_XmlResourceHandler_GetBool(PyObject *, PyObject *args, Py PyObject *resultobj; wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; wxString *arg2 = 0 ; - bool arg3 = (bool) False ; + bool arg3 = (bool) false ; bool result; - bool temp2 = False ; + bool temp2 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; @@ -4751,7 +4723,7 @@ static PyObject *_wrap_XmlResourceHandler_GetBool(PyObject *, PyObject *args, Py { arg2 = wxString_in_helper(obj1); if (arg2 == NULL) SWIG_fail; - temp2 = True; + temp2 = true; } if (obj2) { arg3 = (bool)SWIG_As_bool(obj2); @@ -4787,7 +4759,7 @@ static PyObject *_wrap_XmlResourceHandler_GetLong(PyObject *, PyObject *args, Py wxString *arg2 = 0 ; long arg3 = (long) 0 ; long result; - bool temp2 = False ; + bool temp2 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; @@ -4801,7 +4773,7 @@ static PyObject *_wrap_XmlResourceHandler_GetLong(PyObject *, PyObject *args, Py { arg2 = wxString_in_helper(obj1); if (arg2 == NULL) SWIG_fail; - temp2 = True; + temp2 = true; } if (obj2) { arg3 = (long)SWIG_As_long(obj2); @@ -4834,7 +4806,7 @@ static PyObject *_wrap_XmlResourceHandler_GetColour(PyObject *, PyObject *args, wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; wxString *arg2 = 0 ; wxColour result; - bool temp2 = False ; + bool temp2 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char *kwnames[] = { @@ -4847,7 +4819,7 @@ static PyObject *_wrap_XmlResourceHandler_GetColour(PyObject *, PyObject *args, { arg2 = wxString_in_helper(obj1); if (arg2 == NULL) SWIG_fail; - temp2 = True; + temp2 = true; } { PyThreadState* __tstate = wxPyBeginAllowThreads(); @@ -4881,7 +4853,7 @@ static PyObject *_wrap_XmlResourceHandler_GetSize(PyObject *, PyObject *args, Py wxString const &arg2_defvalue = wxPySizeString ; wxString *arg2 = (wxString *) &arg2_defvalue ; wxSize result; - bool temp2 = False ; + bool temp2 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char *kwnames[] = { @@ -4895,7 +4867,7 @@ static PyObject *_wrap_XmlResourceHandler_GetSize(PyObject *, PyObject *args, Py { arg2 = wxString_in_helper(obj1); if (arg2 == NULL) SWIG_fail; - temp2 = True; + temp2 = true; } } { @@ -4930,7 +4902,7 @@ static PyObject *_wrap_XmlResourceHandler_GetPosition(PyObject *, PyObject *args wxString const &arg2_defvalue = wxPyPosString ; wxString *arg2 = (wxString *) &arg2_defvalue ; wxPoint result; - bool temp2 = False ; + bool temp2 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char *kwnames[] = { @@ -4944,7 +4916,7 @@ static PyObject *_wrap_XmlResourceHandler_GetPosition(PyObject *, PyObject *args { arg2 = wxString_in_helper(obj1); if (arg2 == NULL) SWIG_fail; - temp2 = True; + temp2 = true; } } { @@ -4979,7 +4951,7 @@ static PyObject *_wrap_XmlResourceHandler_GetDimension(PyObject *, PyObject *arg wxString *arg2 = 0 ; int arg3 = (int) 0 ; int result; - bool temp2 = False ; + bool temp2 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; @@ -4993,7 +4965,7 @@ static PyObject *_wrap_XmlResourceHandler_GetDimension(PyObject *, PyObject *arg { arg2 = wxString_in_helper(obj1); if (arg2 == NULL) SWIG_fail; - temp2 = True; + temp2 = true; } if (obj2) { arg3 = (int)SWIG_As_int(obj2); @@ -5030,7 +5002,7 @@ static PyObject *_wrap_XmlResourceHandler_GetBitmap(PyObject *, PyObject *args, wxArtClient *arg3 = (wxArtClient *) &arg3_defvalue ; wxSize arg4 = (wxSize) wxDefaultSize ; wxBitmap result; - bool temp2 = False ; + bool temp2 = false ; wxSize *argp4 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -5047,7 +5019,7 @@ static PyObject *_wrap_XmlResourceHandler_GetBitmap(PyObject *, PyObject *args, { arg2 = wxString_in_helper(obj1); if (arg2 == NULL) SWIG_fail; - temp2 = True; + temp2 = true; } } if (obj2) { @@ -5099,7 +5071,7 @@ static PyObject *_wrap_XmlResourceHandler_GetIcon(PyObject *, PyObject *args, Py wxArtClient *arg3 = (wxArtClient *) &arg3_defvalue ; wxSize arg4 = (wxSize) wxDefaultSize ; wxIcon result; - bool temp2 = False ; + bool temp2 = false ; wxSize *argp4 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; @@ -5116,7 +5088,7 @@ static PyObject *_wrap_XmlResourceHandler_GetIcon(PyObject *, PyObject *args, Py { arg2 = wxString_in_helper(obj1); if (arg2 == NULL) SWIG_fail; - temp2 = True; + temp2 = true; } } if (obj2) { @@ -5165,7 +5137,7 @@ static PyObject *_wrap_XmlResourceHandler_GetFont(PyObject *, PyObject *args, Py wxString const &arg2_defvalue = wxPyFontString ; wxString *arg2 = (wxString *) &arg2_defvalue ; wxFont result; - bool temp2 = False ; + bool temp2 = false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; char *kwnames[] = { @@ -5179,7 +5151,7 @@ static PyObject *_wrap_XmlResourceHandler_GetFont(PyObject *, PyObject *args, Py { arg2 = wxString_in_helper(obj1); if (arg2 == NULL) SWIG_fail; - temp2 = True; + temp2 = true; } } { @@ -5241,7 +5213,7 @@ static PyObject *_wrap_XmlResourceHandler_CreateChildren(PyObject *, PyObject *a PyObject *resultobj; wxPyXmlResourceHandler *arg1 = (wxPyXmlResourceHandler *) 0 ; wxObject *arg2 = (wxObject *) 0 ; - bool arg3 = (bool) False ; + bool arg3 = (bool) false ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; @@ -5482,7 +5454,6 @@ static PyMethodDef SwigMethods[] = { { (char *)"XmlResourceHandler_GetParent", (PyCFunction) _wrap_XmlResourceHandler_GetParent, METH_VARARGS | METH_KEYWORDS, NULL }, { (char *)"XmlResourceHandler_GetInstance", (PyCFunction) _wrap_XmlResourceHandler_GetInstance, METH_VARARGS | METH_KEYWORDS, NULL }, { (char *)"XmlResourceHandler_GetParentAsWindow", (PyCFunction) _wrap_XmlResourceHandler_GetParentAsWindow, METH_VARARGS | METH_KEYWORDS, NULL }, - { (char *)"XmlResourceHandler_GetInstanceAsWindow", (PyCFunction) _wrap_XmlResourceHandler_GetInstanceAsWindow, METH_VARARGS | METH_KEYWORDS, NULL }, { (char *)"XmlResourceHandler_IsOfClass", (PyCFunction) _wrap_XmlResourceHandler_IsOfClass, METH_VARARGS | METH_KEYWORDS, NULL }, { (char *)"XmlResourceHandler_GetNodeContent", (PyCFunction) _wrap_XmlResourceHandler_GetNodeContent, METH_VARARGS | METH_KEYWORDS, NULL }, { (char *)"XmlResourceHandler_HasParam", (PyCFunction) _wrap_XmlResourceHandler_HasParam, METH_VARARGS | METH_KEYWORDS, NULL },