diff --git a/wxPython/contrib/stc/_stcextras.py b/wxPython/contrib/stc/_stcextras.py index 77c6a83cc0..96515ec3c5 100644 --- a/wxPython/contrib/stc/_stcextras.py +++ b/wxPython/contrib/stc/_stcextras.py @@ -1,3 +1,4 @@ # Stuff these names into the wx namespace so wxPyConstructObject can find them wx.wxStyledTextEventPtr = wxStyledTextEventPtr +wx.wxStyledTextCtrlPtr = wxStyledTextCtrlPtr diff --git a/wxPython/contrib/stc/build.cfg b/wxPython/contrib/stc/build.cfg index 12f48adb22..8d9408deef 100644 --- a/wxPython/contrib/stc/build.cfg +++ b/wxPython/contrib/stc/build.cfg @@ -27,6 +27,7 @@ SOURCES = SOURCES + [ '$(STCLOC)/contrib/src/stc/scintilla/src/ViewStyle.cxx', '$(STCLOC)/contrib/src/stc/scintilla/src/LexCPP.cxx', '$(STCLOC)/contrib/src/stc/scintilla/src/LexHTML.cxx', + '$(STCLOC)/contrib/src/stc/scintilla/src/LexLua.cxx', '$(STCLOC)/contrib/src/stc/scintilla/src/LexOthers.cxx', '$(STCLOC)/contrib/src/stc/scintilla/src/LexPerl.cxx', '$(STCLOC)/contrib/src/stc/scintilla/src/LexPython.cxx', @@ -35,6 +36,7 @@ SOURCES = SOURCES + [ '$(STCLOC)/contrib/src/stc/scintilla/src/DocumentAccessor.cxx', '$(STCLOC)/contrib/src/stc/scintilla/src/UniConversion.cxx', '$(STCLOC)/contrib/src/stc/scintilla/src/WindowAccessor.cxx', + '$(STCLOC)/contrib/src/stc/scintilla/src/PosRegExp.cxx', '$(STCLOC)/contrib/src/stc/PlatWX.cpp', '$(STCLOC)/contrib/src/stc/ScintillaWX.cpp', diff --git a/wxPython/contrib/stc/stc_.cpp b/wxPython/contrib/stc/stc_.cpp index 486a76abf2..41a7181ee9 100644 --- a/wxPython/contrib/stc/stc_.cpp +++ b/wxPython/contrib/stc/stc_.cpp @@ -186,276 +186,6 @@ static PyObject *_wrap_new_wxStyledTextCtrl(PyObject *self, PyObject *args, PyOb return _resultobj; } -#define wxStyledTextCtrl_GetText(_swigobj) (_swigobj->GetText()) -static PyObject *_wrap_wxStyledTextCtrl_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxString * _result; - wxStyledTextCtrl * _arg0; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetText",_kwnames,&_argo0)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetText. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = new wxString (wxStyledTextCtrl_GetText(_arg0)); - - wxPy_END_ALLOW_THREADS; -}{ - _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); -} -{ - delete _result; -} - return _resultobj; -} - -#define wxStyledTextCtrl_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) -static PyObject *_wrap_wxStyledTextCtrl_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - bool _result; - wxStyledTextCtrl * _arg0; - wxString * _arg1; - PyObject * _argo0 = 0; - PyObject * _obj1 = 0; - char *_kwnames[] = { "self","text", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStyledTextCtrl_SetText",_kwnames,&_argo0,&_obj1)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetText. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - if (!PyString_Check(_obj1)) { - PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); - return NULL; - } - _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); -} -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = (bool )wxStyledTextCtrl_SetText(_arg0,*_arg1); - - wxPy_END_ALLOW_THREADS; -} _resultobj = Py_BuildValue("i",_result); -{ - if (_obj1) - delete _arg1; -} - return _resultobj; -} - -#define wxStyledTextCtrl_GetLine(_swigobj,_swigarg0) (_swigobj->GetLine(_swigarg0)) -static PyObject *_wrap_wxStyledTextCtrl_GetLine(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxString * _result; - wxStyledTextCtrl * _arg0; - int _arg1; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self","line", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_GetLine",_kwnames,&_argo0,&_arg1)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetLine. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = new wxString (wxStyledTextCtrl_GetLine(_arg0,_arg1)); - - wxPy_END_ALLOW_THREADS; -}{ - _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); -} -{ - delete _result; -} - return _resultobj; -} - -#define wxStyledTextCtrl_ReplaceSelection(_swigobj,_swigarg0) (_swigobj->ReplaceSelection(_swigarg0)) -static PyObject *_wrap_wxStyledTextCtrl_ReplaceSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - wxString * _arg1; - PyObject * _argo0 = 0; - PyObject * _obj1 = 0; - char *_kwnames[] = { "self","text", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStyledTextCtrl_ReplaceSelection",_kwnames,&_argo0,&_obj1)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_ReplaceSelection. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - if (!PyString_Check(_obj1)) { - PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); - return NULL; - } - _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); -} -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_ReplaceSelection(_arg0,*_arg1); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; -{ - if (_obj1) - delete _arg1; -} - return _resultobj; -} - -#define wxStyledTextCtrl_SetReadOnly(_swigobj,_swigarg0) (_swigobj->SetReadOnly(_swigarg0)) -static PyObject *_wrap_wxStyledTextCtrl_SetReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - bool _arg1; - PyObject * _argo0 = 0; - int tempbool1; - char *_kwnames[] = { "self","readOnly", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetReadOnly",_kwnames,&_argo0,&tempbool1)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetReadOnly. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } - _arg1 = (bool ) tempbool1; -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_SetReadOnly(_arg0,_arg1); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_GetReadOnly(_swigobj) (_swigobj->GetReadOnly()) -static PyObject *_wrap_wxStyledTextCtrl_GetReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - bool _result; - wxStyledTextCtrl * _arg0; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetReadOnly",_kwnames,&_argo0)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetReadOnly. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = (bool )wxStyledTextCtrl_GetReadOnly(_arg0); - - wxPy_END_ALLOW_THREADS; -} _resultobj = Py_BuildValue("i",_result); - return _resultobj; -} - -#define wxStyledTextCtrl_GetTextRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetTextRange(_swigarg0,_swigarg1)) -static PyObject *_wrap_wxStyledTextCtrl_GetTextRange(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxString * _result; - wxStyledTextCtrl * _arg0; - int _arg1; - int _arg2; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self","startPos","endPos", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_GetTextRange",_kwnames,&_argo0,&_arg1,&_arg2)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetTextRange. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = new wxString (wxStyledTextCtrl_GetTextRange(_arg0,_arg1,_arg2)); - - wxPy_END_ALLOW_THREADS; -}{ - _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); -} -{ - delete _result; -} - return _resultobj; -} - -#define wxStyledTextCtrl_GetStyledTextRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetStyledTextRange(_swigarg0,_swigarg1)) -static PyObject *_wrap_wxStyledTextCtrl_GetStyledTextRange(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxString * _result; - wxStyledTextCtrl * _arg0; - int _arg1; - int _arg2; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self","startPos","endPos", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_GetStyledTextRange",_kwnames,&_argo0,&_arg1,&_arg2)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetStyledTextRange. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = new wxString (wxStyledTextCtrl_GetStyledTextRange(_arg0,_arg1,_arg2)); - - wxPy_END_ALLOW_THREADS; -}{ - _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); -} -{ - delete _result; -} - return _resultobj; -} - #define wxStyledTextCtrl_AddText(_swigobj,_swigarg0) (_swigobj->AddText(_swigarg0)) static PyObject *_wrap_wxStyledTextCtrl_AddText(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject * _resultobj; @@ -604,10 +334,64 @@ static PyObject *_wrap_wxStyledTextCtrl_ClearAll(PyObject *self, PyObject *args, return _resultobj; } +#define wxStyledTextCtrl_ClearDocumentStyle(_swigobj) (_swigobj->ClearDocumentStyle()) +static PyObject *_wrap_wxStyledTextCtrl_ClearDocumentStyle(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_ClearDocumentStyle",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_ClearDocumentStyle. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_ClearDocumentStyle(_arg0); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_GetLength(_swigobj) (_swigobj->GetLength()) +static PyObject *_wrap_wxStyledTextCtrl_GetLength(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + int _result; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetLength",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetLength. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxStyledTextCtrl_GetLength(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + #define wxStyledTextCtrl_GetCharAt(_swigobj,_swigarg0) (_swigobj->GetCharAt(_swigarg0)) static PyObject *_wrap_wxStyledTextCtrl_GetCharAt(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject * _resultobj; - char _result; + int _result; wxStyledTextCtrl * _arg0; int _arg1; PyObject * _argo0 = 0; @@ -625,1085 +409,13 @@ static PyObject *_wrap_wxStyledTextCtrl_GetCharAt(PyObject *self, PyObject *args } { wxPy_BEGIN_ALLOW_THREADS; - _result = (char )wxStyledTextCtrl_GetCharAt(_arg0,_arg1); - - wxPy_END_ALLOW_THREADS; -} _resultobj = Py_BuildValue("c",_result); - return _resultobj; -} - -#define wxStyledTextCtrl_GetStyleAt(_swigobj,_swigarg0) (_swigobj->GetStyleAt(_swigarg0)) -static PyObject *_wrap_wxStyledTextCtrl_GetStyleAt(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - char _result; - wxStyledTextCtrl * _arg0; - int _arg1; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self","pos", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_GetStyleAt",_kwnames,&_argo0,&_arg1)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetStyleAt. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = (char )wxStyledTextCtrl_GetStyleAt(_arg0,_arg1); - - wxPy_END_ALLOW_THREADS; -} _resultobj = Py_BuildValue("c",_result); - return _resultobj; -} - -#define wxStyledTextCtrl_SetStyleBits(_swigobj,_swigarg0) (_swigobj->SetStyleBits(_swigarg0)) -static PyObject *_wrap_wxStyledTextCtrl_SetStyleBits(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - int _arg1; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self","bits", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetStyleBits",_kwnames,&_argo0,&_arg1)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetStyleBits. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_SetStyleBits(_arg0,_arg1); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_GetStyleBits(_swigobj) (_swigobj->GetStyleBits()) -static PyObject *_wrap_wxStyledTextCtrl_GetStyleBits(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - int _result; - wxStyledTextCtrl * _arg0; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetStyleBits",_kwnames,&_argo0)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetStyleBits. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = (int )wxStyledTextCtrl_GetStyleBits(_arg0); + _result = (int )wxStyledTextCtrl_GetCharAt(_arg0,_arg1); wxPy_END_ALLOW_THREADS; } _resultobj = Py_BuildValue("i",_result); return _resultobj; } -#define wxStyledTextCtrl_Cut(_swigobj) (_swigobj->Cut()) -static PyObject *_wrap_wxStyledTextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_Cut",_kwnames,&_argo0)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_Cut. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_Cut(_arg0); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_Copy(_swigobj) (_swigobj->Copy()) -static PyObject *_wrap_wxStyledTextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_Copy",_kwnames,&_argo0)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_Copy. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_Copy(_arg0); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_Paste(_swigobj) (_swigobj->Paste()) -static PyObject *_wrap_wxStyledTextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_Paste",_kwnames,&_argo0)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_Paste. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_Paste(_arg0); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_CanPaste(_swigobj) (_swigobj->CanPaste()) -static PyObject *_wrap_wxStyledTextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - bool _result; - wxStyledTextCtrl * _arg0; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_CanPaste",_kwnames,&_argo0)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_CanPaste. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = (bool )wxStyledTextCtrl_CanPaste(_arg0); - - wxPy_END_ALLOW_THREADS; -} _resultobj = Py_BuildValue("i",_result); - return _resultobj; -} - -#define wxStyledTextCtrl_ClearClipbrd(_swigobj) (_swigobj->ClearClipbrd()) -static PyObject *_wrap_wxStyledTextCtrl_ClearClipbrd(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_ClearClipbrd",_kwnames,&_argo0)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_ClearClipbrd. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_ClearClipbrd(_arg0); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_Undo(_swigobj) (_swigobj->Undo()) -static PyObject *_wrap_wxStyledTextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_Undo",_kwnames,&_argo0)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_Undo. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_Undo(_arg0); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_CanUndo(_swigobj) (_swigobj->CanUndo()) -static PyObject *_wrap_wxStyledTextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - bool _result; - wxStyledTextCtrl * _arg0; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_CanUndo",_kwnames,&_argo0)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_CanUndo. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = (bool )wxStyledTextCtrl_CanUndo(_arg0); - - wxPy_END_ALLOW_THREADS; -} _resultobj = Py_BuildValue("i",_result); - return _resultobj; -} - -#define wxStyledTextCtrl_EmptyUndoBuffer(_swigobj) (_swigobj->EmptyUndoBuffer()) -static PyObject *_wrap_wxStyledTextCtrl_EmptyUndoBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_EmptyUndoBuffer",_kwnames,&_argo0)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_EmptyUndoBuffer. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_EmptyUndoBuffer(_arg0); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_Redo(_swigobj) (_swigobj->Redo()) -static PyObject *_wrap_wxStyledTextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_Redo",_kwnames,&_argo0)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_Redo. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_Redo(_arg0); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_CanRedo(_swigobj) (_swigobj->CanRedo()) -static PyObject *_wrap_wxStyledTextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - bool _result; - wxStyledTextCtrl * _arg0; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_CanRedo",_kwnames,&_argo0)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_CanRedo. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = (bool )wxStyledTextCtrl_CanRedo(_arg0); - - wxPy_END_ALLOW_THREADS; -} _resultobj = Py_BuildValue("i",_result); - return _resultobj; -} - -#define wxStyledTextCtrl_SetUndoCollection(_swigobj,_swigarg0) (_swigobj->SetUndoCollection(_swigarg0)) -static PyObject *_wrap_wxStyledTextCtrl_SetUndoCollection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - wxSTC_UndoType _arg1; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self","type", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetUndoCollection",_kwnames,&_argo0,&_arg1)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetUndoCollection. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_SetUndoCollection(_arg0,_arg1); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_GetUndoCollection(_swigobj) (_swigobj->GetUndoCollection()) -static PyObject *_wrap_wxStyledTextCtrl_GetUndoCollection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxSTC_UndoType _result; - wxStyledTextCtrl * _arg0; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetUndoCollection",_kwnames,&_argo0)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetUndoCollection. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = (wxSTC_UndoType )wxStyledTextCtrl_GetUndoCollection(_arg0); - - wxPy_END_ALLOW_THREADS; -} _resultobj = Py_BuildValue("i",_result); - return _resultobj; -} - -#define wxStyledTextCtrl_BeginUndoAction(_swigobj) (_swigobj->BeginUndoAction()) -static PyObject *_wrap_wxStyledTextCtrl_BeginUndoAction(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_BeginUndoAction",_kwnames,&_argo0)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_BeginUndoAction. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_BeginUndoAction(_arg0); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_EndUndoAction(_swigobj) (_swigobj->EndUndoAction()) -static PyObject *_wrap_wxStyledTextCtrl_EndUndoAction(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_EndUndoAction",_kwnames,&_argo0)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_EndUndoAction. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_EndUndoAction(_arg0); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_SetSavePoint(_swigobj) (_swigobj->SetSavePoint()) -static PyObject *_wrap_wxStyledTextCtrl_SetSavePoint(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_SetSavePoint",_kwnames,&_argo0)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetSavePoint. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_SetSavePoint(_arg0); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_GetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSelection(_swigarg0,_swigarg1)) -static PyObject *_wrap_wxStyledTextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - int * _arg1; - int temp; - int * _arg2; - int temp0; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self", NULL }; - - self = self; -{ - _arg1 = &temp; -} -{ - _arg2 = &temp0; -} - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetSelection",_kwnames,&_argo0)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetSelection. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_GetSelection(_arg0,_arg1,_arg2); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; -{ - PyObject *o; - o = PyInt_FromLong((long) (*_arg1)); - _resultobj = t_output_helper(_resultobj, o); -} -{ - PyObject *o; - o = PyInt_FromLong((long) (*_arg2)); - _resultobj = t_output_helper(_resultobj, o); -} - return _resultobj; -} - -#define wxStyledTextCtrl_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) -static PyObject *_wrap_wxStyledTextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - int _arg1; - int _arg2; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self","startPos","endPos", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_SetSelection",_kwnames,&_argo0,&_arg1,&_arg2)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetSelection. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_SetSelection(_arg0,_arg1,_arg2); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_GetSelectedText(_swigobj) (_swigobj->GetSelectedText()) -static PyObject *_wrap_wxStyledTextCtrl_GetSelectedText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxString * _result; - wxStyledTextCtrl * _arg0; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetSelectedText",_kwnames,&_argo0)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetSelectedText. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = new wxString (wxStyledTextCtrl_GetSelectedText(_arg0)); - - wxPy_END_ALLOW_THREADS; -}{ - _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); -} -{ - delete _result; -} - return _resultobj; -} - -#define wxStyledTextCtrl_HideSelection(_swigobj,_swigarg0) (_swigobj->HideSelection(_swigarg0)) -static PyObject *_wrap_wxStyledTextCtrl_HideSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - bool _arg1; - PyObject * _argo0 = 0; - int tempbool1; - char *_kwnames[] = { "self","hide", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_HideSelection",_kwnames,&_argo0,&tempbool1)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_HideSelection. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } - _arg1 = (bool ) tempbool1; -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_HideSelection(_arg0,_arg1); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_GetHideSelection(_swigobj) (_swigobj->GetHideSelection()) -static PyObject *_wrap_wxStyledTextCtrl_GetHideSelection(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - bool _result; - wxStyledTextCtrl * _arg0; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetHideSelection",_kwnames,&_argo0)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetHideSelection. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = (bool )wxStyledTextCtrl_GetHideSelection(_arg0); - - wxPy_END_ALLOW_THREADS; -} _resultobj = Py_BuildValue("i",_result); - return _resultobj; -} - -#define wxStyledTextCtrl_GetTextLength(_swigobj) (_swigobj->GetTextLength()) -static PyObject *_wrap_wxStyledTextCtrl_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - int _result; - wxStyledTextCtrl * _arg0; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetTextLength",_kwnames,&_argo0)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetTextLength. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = (int )wxStyledTextCtrl_GetTextLength(_arg0); - - wxPy_END_ALLOW_THREADS; -} _resultobj = Py_BuildValue("i",_result); - return _resultobj; -} - -#define wxStyledTextCtrl_GetFirstVisibleLine(_swigobj) (_swigobj->GetFirstVisibleLine()) -static PyObject *_wrap_wxStyledTextCtrl_GetFirstVisibleLine(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - int _result; - wxStyledTextCtrl * _arg0; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetFirstVisibleLine",_kwnames,&_argo0)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetFirstVisibleLine. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = (int )wxStyledTextCtrl_GetFirstVisibleLine(_arg0); - - wxPy_END_ALLOW_THREADS; -} _resultobj = Py_BuildValue("i",_result); - return _resultobj; -} - -#define wxStyledTextCtrl_GetModified(_swigobj) (_swigobj->GetModified()) -static PyObject *_wrap_wxStyledTextCtrl_GetModified(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - bool _result; - wxStyledTextCtrl * _arg0; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetModified",_kwnames,&_argo0)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetModified. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = (bool )wxStyledTextCtrl_GetModified(_arg0); - - wxPy_END_ALLOW_THREADS; -} _resultobj = Py_BuildValue("i",_result); - return _resultobj; -} - -#define wxStyledTextCtrl_GetLineCount(_swigobj) (_swigobj->GetLineCount()) -static PyObject *_wrap_wxStyledTextCtrl_GetLineCount(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - int _result; - wxStyledTextCtrl * _arg0; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetLineCount",_kwnames,&_argo0)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetLineCount. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = (int )wxStyledTextCtrl_GetLineCount(_arg0); - - wxPy_END_ALLOW_THREADS; -} _resultobj = Py_BuildValue("i",_result); - return _resultobj; -} - -#define wxStyledTextCtrl_GetRect(_swigobj) (_swigobj->GetRect()) -static PyObject *_wrap_wxStyledTextCtrl_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxRect * _result; - wxStyledTextCtrl * _arg0; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self", NULL }; - char _ptemp[128]; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetRect",_kwnames,&_argo0)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetRect. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = new wxRect (wxStyledTextCtrl_GetRect(_arg0)); - - wxPy_END_ALLOW_THREADS; -} SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); - _resultobj = Py_BuildValue("s",_ptemp); - return _resultobj; -} - -#define wxStyledTextCtrl_GetLineFromPos(_swigobj,_swigarg0) (_swigobj->GetLineFromPos(_swigarg0)) -static PyObject *_wrap_wxStyledTextCtrl_GetLineFromPos(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - int _result; - wxStyledTextCtrl * _arg0; - int _arg1; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self","pos", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_GetLineFromPos",_kwnames,&_argo0,&_arg1)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetLineFromPos. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = (int )wxStyledTextCtrl_GetLineFromPos(_arg0,_arg1); - - wxPy_END_ALLOW_THREADS; -} _resultobj = Py_BuildValue("i",_result); - return _resultobj; -} - -#define wxStyledTextCtrl_GetLineStartPos(_swigobj,_swigarg0) (_swigobj->GetLineStartPos(_swigarg0)) -static PyObject *_wrap_wxStyledTextCtrl_GetLineStartPos(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - int _result; - wxStyledTextCtrl * _arg0; - int _arg1; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self","line", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_GetLineStartPos",_kwnames,&_argo0,&_arg1)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetLineStartPos. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = (int )wxStyledTextCtrl_GetLineStartPos(_arg0,_arg1); - - wxPy_END_ALLOW_THREADS; -} _resultobj = Py_BuildValue("i",_result); - return _resultobj; -} - -#define wxStyledTextCtrl_GetLineLengthAtPos(_swigobj,_swigarg0) (_swigobj->GetLineLengthAtPos(_swigarg0)) -static PyObject *_wrap_wxStyledTextCtrl_GetLineLengthAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - int _result; - wxStyledTextCtrl * _arg0; - int _arg1; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self","pos", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_GetLineLengthAtPos",_kwnames,&_argo0,&_arg1)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetLineLengthAtPos. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = (int )wxStyledTextCtrl_GetLineLengthAtPos(_arg0,_arg1); - - wxPy_END_ALLOW_THREADS; -} _resultobj = Py_BuildValue("i",_result); - return _resultobj; -} - -#define wxStyledTextCtrl_GetLineLength(_swigobj,_swigarg0) (_swigobj->GetLineLength(_swigarg0)) -static PyObject *_wrap_wxStyledTextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - int _result; - wxStyledTextCtrl * _arg0; - int _arg1; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self","line", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_GetLineLength",_kwnames,&_argo0,&_arg1)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetLineLength. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = (int )wxStyledTextCtrl_GetLineLength(_arg0,_arg1); - - wxPy_END_ALLOW_THREADS; -} _resultobj = Py_BuildValue("i",_result); - return _resultobj; -} - -#define wxStyledTextCtrl_GetCurrentLineText(_swigobj,_swigarg0) (_swigobj->GetCurrentLineText(_swigarg0)) -static PyObject *_wrap_wxStyledTextCtrl_GetCurrentLineText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxString * _result; - wxStyledTextCtrl * _arg0; - int * _arg1; - int temp; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self", NULL }; - - self = self; -{ - _arg1 = &temp; -} - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetCurrentLineText",_kwnames,&_argo0)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetCurrentLineText. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = new wxString (wxStyledTextCtrl_GetCurrentLineText(_arg0,_arg1)); - - wxPy_END_ALLOW_THREADS; -}{ - _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); -} -{ - PyObject *o; - o = PyInt_FromLong((long) (*_arg1)); - _resultobj = t_output_helper(_resultobj, o); -} -{ - delete _result; -} - return _resultobj; -} - -#define wxStyledTextCtrl_GetCurrentLine(_swigobj) (_swigobj->GetCurrentLine()) -static PyObject *_wrap_wxStyledTextCtrl_GetCurrentLine(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - int _result; - wxStyledTextCtrl * _arg0; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetCurrentLine",_kwnames,&_argo0)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetCurrentLine. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = (int )wxStyledTextCtrl_GetCurrentLine(_arg0); - - wxPy_END_ALLOW_THREADS; -} _resultobj = Py_BuildValue("i",_result); - return _resultobj; -} - -#define wxStyledTextCtrl_PositionFromPoint(_swigobj,_swigarg0) (_swigobj->PositionFromPoint(_swigarg0)) -static PyObject *_wrap_wxStyledTextCtrl_PositionFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - int _result; - wxStyledTextCtrl * _arg0; - wxPoint * _arg1; - PyObject * _argo0 = 0; - wxPoint temp; - PyObject * _obj1 = 0; - char *_kwnames[] = { "self","pt", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStyledTextCtrl_PositionFromPoint",_kwnames,&_argo0,&_obj1)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_PositionFromPoint. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - _arg1 = &temp; - if (! wxPoint_helper(_obj1, &_arg1)) - return NULL; -} -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = (int )wxStyledTextCtrl_PositionFromPoint(_arg0,*_arg1); - - wxPy_END_ALLOW_THREADS; -} _resultobj = Py_BuildValue("i",_result); - return _resultobj; -} - -#define wxStyledTextCtrl_LineFromPoint(_swigobj,_swigarg0) (_swigobj->LineFromPoint(_swigarg0)) -static PyObject *_wrap_wxStyledTextCtrl_LineFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - int _result; - wxStyledTextCtrl * _arg0; - wxPoint * _arg1; - PyObject * _argo0 = 0; - wxPoint temp; - PyObject * _obj1 = 0; - char *_kwnames[] = { "self","pt", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStyledTextCtrl_LineFromPoint",_kwnames,&_argo0,&_obj1)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_LineFromPoint. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - _arg1 = &temp; - if (! wxPoint_helper(_obj1, &_arg1)) - return NULL; -} -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = (int )wxStyledTextCtrl_LineFromPoint(_arg0,*_arg1); - - wxPy_END_ALLOW_THREADS; -} _resultobj = Py_BuildValue("i",_result); - return _resultobj; -} - -#define wxStyledTextCtrl_PointFromPosition(_swigobj,_swigarg0) (_swigobj->PointFromPosition(_swigarg0)) -static PyObject *_wrap_wxStyledTextCtrl_PointFromPosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxPoint * _result; - wxStyledTextCtrl * _arg0; - int _arg1; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self","pos", NULL }; - char _ptemp[128]; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_PointFromPosition",_kwnames,&_argo0,&_arg1)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_PointFromPosition. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = new wxPoint (wxStyledTextCtrl_PointFromPosition(_arg0,_arg1)); - - wxPy_END_ALLOW_THREADS; -} SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); - _resultobj = Py_BuildValue("s",_ptemp); - return _resultobj; -} - #define wxStyledTextCtrl_GetCurrentPos(_swigobj) (_swigobj->GetCurrentPos()) static PyObject *_wrap_wxStyledTextCtrl_GetCurrentPos(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject * _resultobj; @@ -1758,6 +470,91 @@ static PyObject *_wrap_wxStyledTextCtrl_GetAnchor(PyObject *self, PyObject *args return _resultobj; } +#define wxStyledTextCtrl_GetStyleAt(_swigobj,_swigarg0) (_swigobj->GetStyleAt(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_GetStyleAt(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + int _result; + wxStyledTextCtrl * _arg0; + int _arg1; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self","pos", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_GetStyleAt",_kwnames,&_argo0,&_arg1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetStyleAt. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxStyledTextCtrl_GetStyleAt(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxStyledTextCtrl_Redo(_swigobj) (_swigobj->Redo()) +static PyObject *_wrap_wxStyledTextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_Redo",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_Redo. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_Redo(_arg0); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_SetUndoCollection(_swigobj,_swigarg0) (_swigobj->SetUndoCollection(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_SetUndoCollection(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + bool _arg1; + PyObject * _argo0 = 0; + int tempbool1; + char *_kwnames[] = { "self","collectUndo", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetUndoCollection",_kwnames,&_argo0,&tempbool1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetUndoCollection. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } + _arg1 = (bool ) tempbool1; +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_SetUndoCollection(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + #define wxStyledTextCtrl_SelectAll(_swigobj) (_swigobj->SelectAll()) static PyObject *_wrap_wxStyledTextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject * _resultobj; @@ -1785,27 +582,26 @@ static PyObject *_wrap_wxStyledTextCtrl_SelectAll(PyObject *self, PyObject *args return _resultobj; } -#define wxStyledTextCtrl_SetCurrentPosition(_swigobj,_swigarg0) (_swigobj->SetCurrentPosition(_swigarg0)) -static PyObject *_wrap_wxStyledTextCtrl_SetCurrentPosition(PyObject *self, PyObject *args, PyObject *kwargs) { +#define wxStyledTextCtrl_SetSavePoint(_swigobj) (_swigobj->SetSavePoint()) +static PyObject *_wrap_wxStyledTextCtrl_SetSavePoint(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject * _resultobj; wxStyledTextCtrl * _arg0; - int _arg1; PyObject * _argo0 = 0; - char *_kwnames[] = { "self","pos", NULL }; + char *_kwnames[] = { "self", NULL }; self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetCurrentPosition",_kwnames,&_argo0,&_arg1)) + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_SetSavePoint",_kwnames,&_argo0)) return NULL; if (_argo0) { if (_argo0 == Py_None) { _arg0 = NULL; } else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetCurrentPosition. Expected _wxStyledTextCtrl_p."); + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetSavePoint. Expected _wxStyledTextCtrl_p."); return NULL; } } { wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_SetCurrentPosition(_arg0,_arg1); + wxStyledTextCtrl_SetSavePoint(_arg0); wxPy_END_ALLOW_THREADS; } Py_INCREF(Py_None); @@ -1813,27 +609,261 @@ static PyObject *_wrap_wxStyledTextCtrl_SetCurrentPosition(PyObject *self, PyObj return _resultobj; } -#define wxStyledTextCtrl_SetAnchor(_swigobj,_swigarg0) (_swigobj->SetAnchor(_swigarg0)) -static PyObject *_wrap_wxStyledTextCtrl_SetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) { +#define wxStyledTextCtrl_GetStyledText(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetStyledText(_swigarg0,_swigarg1)) +static PyObject *_wrap_wxStyledTextCtrl_GetStyledText(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject * _resultobj; + wxString * _result; wxStyledTextCtrl * _arg0; int _arg1; + int _arg2; PyObject * _argo0 = 0; - char *_kwnames[] = { "self","pos", NULL }; + char *_kwnames[] = { "self","startPos","endPos", NULL }; self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetAnchor",_kwnames,&_argo0,&_arg1)) + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_GetStyledText",_kwnames,&_argo0,&_arg1,&_arg2)) return NULL; if (_argo0) { if (_argo0 == Py_None) { _arg0 = NULL; } else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetAnchor. Expected _wxStyledTextCtrl_p."); + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetStyledText. Expected _wxStyledTextCtrl_p."); return NULL; } } { wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_SetAnchor(_arg0,_arg1); + _result = new wxString (wxStyledTextCtrl_GetStyledText(_arg0,_arg1,_arg2)); + + wxPy_END_ALLOW_THREADS; +}{ + _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); +} +{ + delete _result; +} + return _resultobj; +} + +#define wxStyledTextCtrl_CanRedo(_swigobj) (_swigobj->CanRedo()) +static PyObject *_wrap_wxStyledTextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + bool _result; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_CanRedo",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_CanRedo. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (bool )wxStyledTextCtrl_CanRedo(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxStyledTextCtrl_MarkerLineFromHandle(_swigobj,_swigarg0) (_swigobj->MarkerLineFromHandle(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_MarkerLineFromHandle(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + int _result; + wxStyledTextCtrl * _arg0; + int _arg1; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self","handle", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_MarkerLineFromHandle",_kwnames,&_argo0,&_arg1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_MarkerLineFromHandle. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxStyledTextCtrl_MarkerLineFromHandle(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxStyledTextCtrl_MarkerDeleteHandle(_swigobj,_swigarg0) (_swigobj->MarkerDeleteHandle(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_MarkerDeleteHandle(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + int _arg1; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self","handle", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_MarkerDeleteHandle",_kwnames,&_argo0,&_arg1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_MarkerDeleteHandle. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_MarkerDeleteHandle(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_GetUndoCollection(_swigobj) (_swigobj->GetUndoCollection()) +static PyObject *_wrap_wxStyledTextCtrl_GetUndoCollection(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + bool _result; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetUndoCollection",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetUndoCollection. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (bool )wxStyledTextCtrl_GetUndoCollection(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxStyledTextCtrl_GetViewWhiteSpace(_swigobj) (_swigobj->GetViewWhiteSpace()) +static PyObject *_wrap_wxStyledTextCtrl_GetViewWhiteSpace(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + int _result; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetViewWhiteSpace",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetViewWhiteSpace. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxStyledTextCtrl_GetViewWhiteSpace(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxStyledTextCtrl_SetViewWhiteSpace(_swigobj,_swigarg0) (_swigobj->SetViewWhiteSpace(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_SetViewWhiteSpace(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + int _arg1; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self","viewWS", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetViewWhiteSpace",_kwnames,&_argo0,&_arg1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetViewWhiteSpace. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_SetViewWhiteSpace(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_PositionFromPoint(_swigobj,_swigarg0) (_swigobj->PositionFromPoint(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_PositionFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + int _result; + wxStyledTextCtrl * _arg0; + wxPoint * _arg1; + PyObject * _argo0 = 0; + wxPoint temp; + PyObject * _obj1 = 0; + char *_kwnames[] = { "self","pt", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStyledTextCtrl_PositionFromPoint",_kwnames,&_argo0,&_obj1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_PositionFromPoint. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + _arg1 = &temp; + if (! wxPoint_helper(_obj1, &_arg1)) + return NULL; +} +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxStyledTextCtrl_PositionFromPoint(_arg0,*_arg1); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxStyledTextCtrl_GotoLine(_swigobj,_swigarg0) (_swigobj->GotoLine(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_GotoLine(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + int _arg1; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self","line", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_GotoLine",_kwnames,&_argo0,&_arg1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GotoLine. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_GotoLine(_arg0,_arg1); wxPy_END_ALLOW_THREADS; } Py_INCREF(Py_None); @@ -1869,27 +899,27 @@ static PyObject *_wrap_wxStyledTextCtrl_GotoPos(PyObject *self, PyObject *args, return _resultobj; } -#define wxStyledTextCtrl_GotoLine(_swigobj,_swigarg0) (_swigobj->GotoLine(_swigarg0)) -static PyObject *_wrap_wxStyledTextCtrl_GotoLine(PyObject *self, PyObject *args, PyObject *kwargs) { +#define wxStyledTextCtrl_SetAnchor(_swigobj,_swigarg0) (_swigobj->SetAnchor(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_SetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject * _resultobj; wxStyledTextCtrl * _arg0; int _arg1; PyObject * _argo0 = 0; - char *_kwnames[] = { "self","line", NULL }; + char *_kwnames[] = { "self","posAnchor", NULL }; self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_GotoLine",_kwnames,&_argo0,&_arg1)) + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetAnchor",_kwnames,&_argo0,&_arg1)) return NULL; if (_argo0) { if (_argo0 == Py_None) { _arg0 = NULL; } else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GotoLine. Expected _wxStyledTextCtrl_p."); + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetAnchor. Expected _wxStyledTextCtrl_p."); return NULL; } } { wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_GotoLine(_arg0,_arg1); + wxStyledTextCtrl_SetAnchor(_arg0,_arg1); wxPy_END_ALLOW_THREADS; } Py_INCREF(Py_None); @@ -1897,708 +927,45 @@ static PyObject *_wrap_wxStyledTextCtrl_GotoLine(PyObject *self, PyObject *args, return _resultobj; } -#define wxStyledTextCtrl_ChangePosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->ChangePosition(_swigarg0,_swigarg1)) -static PyObject *_wrap_wxStyledTextCtrl_ChangePosition(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - int _arg1; - bool _arg2; - PyObject * _argo0 = 0; - int tempbool2; - char *_kwnames[] = { "self","delta","extendSelection", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_ChangePosition",_kwnames,&_argo0,&_arg1,&tempbool2)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_ChangePosition. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } - _arg2 = (bool ) tempbool2; -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_ChangePosition(_arg0,_arg1,_arg2); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_PageMove(_swigobj,_swigarg0,_swigarg1) (_swigobj->PageMove(_swigarg0,_swigarg1)) -static PyObject *_wrap_wxStyledTextCtrl_PageMove(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - int _arg1; - bool _arg2; - PyObject * _argo0 = 0; - int tempbool2; - char *_kwnames[] = { "self","cmdKey","extendSelection", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_PageMove",_kwnames,&_argo0,&_arg1,&tempbool2)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_PageMove. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } - _arg2 = (bool ) tempbool2; -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_PageMove(_arg0,_arg1,_arg2); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_ScrollBy(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScrollBy(_swigarg0,_swigarg1)) -static PyObject *_wrap_wxStyledTextCtrl_ScrollBy(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - int _arg1; - int _arg2; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self","columnDelta","lineDelta", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_ScrollBy",_kwnames,&_argo0,&_arg1,&_arg2)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_ScrollBy. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_ScrollBy(_arg0,_arg1,_arg2); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_ScrollToLine(_swigobj,_swigarg0) (_swigobj->ScrollToLine(_swigarg0)) -static PyObject *_wrap_wxStyledTextCtrl_ScrollToLine(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - int _arg1; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self","line", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_ScrollToLine",_kwnames,&_argo0,&_arg1)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_ScrollToLine. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_ScrollToLine(_arg0,_arg1); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_ScrollToColumn(_swigobj,_swigarg0) (_swigobj->ScrollToColumn(_swigarg0)) -static PyObject *_wrap_wxStyledTextCtrl_ScrollToColumn(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - int _arg1; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self","column", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_ScrollToColumn",_kwnames,&_argo0,&_arg1)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_ScrollToColumn. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_ScrollToColumn(_arg0,_arg1); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_EnsureCaretVisible(_swigobj) (_swigobj->EnsureCaretVisible()) -static PyObject *_wrap_wxStyledTextCtrl_EnsureCaretVisible(PyObject *self, PyObject *args, PyObject *kwargs) { +#define wxStyledTextCtrl_GetCurLine(_swigobj,_swigarg0) (_swigobj->GetCurLine(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_GetCurLine(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject * _resultobj; + wxString * _result; wxStyledTextCtrl * _arg0; + int * _arg1 = (int *) NULL; + int temp; PyObject * _argo0 = 0; char *_kwnames[] = { "self", NULL }; self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_EnsureCaretVisible",_kwnames,&_argo0)) +{ + _arg1 = &temp; +} + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetCurLine",_kwnames,&_argo0)) return NULL; if (_argo0) { if (_argo0 == Py_None) { _arg0 = NULL; } else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_EnsureCaretVisible. Expected _wxStyledTextCtrl_p."); + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetCurLine. Expected _wxStyledTextCtrl_p."); return NULL; } } { wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_EnsureCaretVisible(_arg0); + _result = new wxString (wxStyledTextCtrl_GetCurLine(_arg0,_arg1)); wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; +}{ + _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); } - -#define wxStyledTextCtrl_SetCaretPolicy(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetCaretPolicy(_swigarg0,_swigarg1)) -static PyObject *_wrap_wxStyledTextCtrl_SetCaretPolicy(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - int _arg1; - int _arg2 = (int ) 0; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self","policy","slop", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxStyledTextCtrl_SetCaretPolicy",_kwnames,&_argo0,&_arg1,&_arg2)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetCaretPolicy. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } { - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_SetCaretPolicy(_arg0,_arg1,_arg2); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; + PyObject *o; + o = PyInt_FromLong((long) (*_arg1)); + _resultobj = t_output_helper(_resultobj, o); } - -#define wxStyledTextCtrl_GetSelectionType(_swigobj) (_swigobj->GetSelectionType()) -static PyObject *_wrap_wxStyledTextCtrl_GetSelectionType(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - int _result; - wxStyledTextCtrl * _arg0; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetSelectionType",_kwnames,&_argo0)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetSelectionType. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } { - wxPy_BEGIN_ALLOW_THREADS; - _result = (int )wxStyledTextCtrl_GetSelectionType(_arg0); - - wxPy_END_ALLOW_THREADS; -} _resultobj = Py_BuildValue("i",_result); - return _resultobj; + delete _result; } - -#define wxStyledTextCtrl_GetLinesOnScreen(_swigobj) (_swigobj->GetLinesOnScreen()) -static PyObject *_wrap_wxStyledTextCtrl_GetLinesOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - int _result; - wxStyledTextCtrl * _arg0; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetLinesOnScreen",_kwnames,&_argo0)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetLinesOnScreen. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = (int )wxStyledTextCtrl_GetLinesOnScreen(_arg0); - - wxPy_END_ALLOW_THREADS; -} _resultobj = Py_BuildValue("i",_result); - return _resultobj; -} - -#define wxStyledTextCtrl_IsSelectionRectangle(_swigobj) (_swigobj->IsSelectionRectangle()) -static PyObject *_wrap_wxStyledTextCtrl_IsSelectionRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - bool _result; - wxStyledTextCtrl * _arg0; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_IsSelectionRectangle",_kwnames,&_argo0)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_IsSelectionRectangle. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = (bool )wxStyledTextCtrl_IsSelectionRectangle(_arg0); - - wxPy_END_ALLOW_THREADS; -} _resultobj = Py_BuildValue("i",_result); - return _resultobj; -} - -#define wxStyledTextCtrl_SetUseHorizontalScrollBar(_swigobj,_swigarg0) (_swigobj->SetUseHorizontalScrollBar(_swigarg0)) -static PyObject *_wrap_wxStyledTextCtrl_SetUseHorizontalScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - bool _arg1; - PyObject * _argo0 = 0; - int tempbool1; - char *_kwnames[] = { "self","use", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetUseHorizontalScrollBar",_kwnames,&_argo0,&tempbool1)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetUseHorizontalScrollBar. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } - _arg1 = (bool ) tempbool1; -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_SetUseHorizontalScrollBar(_arg0,_arg1); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_GetUseHorizontalScrollBar(_swigobj) (_swigobj->GetUseHorizontalScrollBar()) -static PyObject *_wrap_wxStyledTextCtrl_GetUseHorizontalScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - bool _result; - wxStyledTextCtrl * _arg0; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetUseHorizontalScrollBar",_kwnames,&_argo0)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetUseHorizontalScrollBar. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = (bool )wxStyledTextCtrl_GetUseHorizontalScrollBar(_arg0); - - wxPy_END_ALLOW_THREADS; -} _resultobj = Py_BuildValue("i",_result); - return _resultobj; -} - -#define wxStyledTextCtrl_FindText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->FindText(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) -static PyObject *_wrap_wxStyledTextCtrl_FindText(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - int _result; - wxStyledTextCtrl * _arg0; - int _arg1; - int _arg2; - wxString * _arg3; - bool _arg4; - bool _arg5; - PyObject * _argo0 = 0; - PyObject * _obj3 = 0; - int tempbool4; - int tempbool5; - char *_kwnames[] = { "self","minPos","maxPos","text","caseSensitive","wholeWord", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiOii:wxStyledTextCtrl_FindText",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&tempbool4,&tempbool5)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_FindText. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - if (!PyString_Check(_obj3)) { - PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); - return NULL; - } - _arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3)); -} - _arg4 = (bool ) tempbool4; - _arg5 = (bool ) tempbool5; -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = (int )wxStyledTextCtrl_FindText(_arg0,_arg1,_arg2,*_arg3,_arg4,_arg5); - - wxPy_END_ALLOW_THREADS; -} _resultobj = Py_BuildValue("i",_result); -{ - if (_obj3) - delete _arg3; -} - return _resultobj; -} - -#define wxStyledTextCtrl_SearchAnchor(_swigobj) (_swigobj->SearchAnchor()) -static PyObject *_wrap_wxStyledTextCtrl_SearchAnchor(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_SearchAnchor",_kwnames,&_argo0)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SearchAnchor. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_SearchAnchor(_arg0); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_SearchNext(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SearchNext(_swigarg0,_swigarg1,_swigarg2)) -static PyObject *_wrap_wxStyledTextCtrl_SearchNext(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - int _result; - wxStyledTextCtrl * _arg0; - wxString * _arg1; - bool _arg2; - bool _arg3; - PyObject * _argo0 = 0; - PyObject * _obj1 = 0; - int tempbool2; - int tempbool3; - char *_kwnames[] = { "self","text","caseSensitive","wholeWord", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxStyledTextCtrl_SearchNext",_kwnames,&_argo0,&_obj1,&tempbool2,&tempbool3)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SearchNext. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - if (!PyString_Check(_obj1)) { - PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); - return NULL; - } - _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); -} - _arg2 = (bool ) tempbool2; - _arg3 = (bool ) tempbool3; -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = (int )wxStyledTextCtrl_SearchNext(_arg0,*_arg1,_arg2,_arg3); - - wxPy_END_ALLOW_THREADS; -} _resultobj = Py_BuildValue("i",_result); -{ - if (_obj1) - delete _arg1; -} - return _resultobj; -} - -#define wxStyledTextCtrl_SearchPrev(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SearchPrev(_swigarg0,_swigarg1,_swigarg2)) -static PyObject *_wrap_wxStyledTextCtrl_SearchPrev(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - int _result; - wxStyledTextCtrl * _arg0; - wxString * _arg1; - bool _arg2; - bool _arg3; - PyObject * _argo0 = 0; - PyObject * _obj1 = 0; - int tempbool2; - int tempbool3; - char *_kwnames[] = { "self","text","caseSensitive","wholeWord", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxStyledTextCtrl_SearchPrev",_kwnames,&_argo0,&_obj1,&tempbool2,&tempbool3)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SearchPrev. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - if (!PyString_Check(_obj1)) { - PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); - return NULL; - } - _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); -} - _arg2 = (bool ) tempbool2; - _arg3 = (bool ) tempbool3; -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = (int )wxStyledTextCtrl_SearchPrev(_arg0,*_arg1,_arg2,_arg3); - - wxPy_END_ALLOW_THREADS; -} _resultobj = Py_BuildValue("i",_result); -{ - if (_obj1) - delete _arg1; -} - return _resultobj; -} - -#define wxStyledTextCtrl_GetViewWhitespace(_swigobj) (_swigobj->GetViewWhitespace()) -static PyObject *_wrap_wxStyledTextCtrl_GetViewWhitespace(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - bool _result; - wxStyledTextCtrl * _arg0; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetViewWhitespace",_kwnames,&_argo0)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetViewWhitespace. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = (bool )wxStyledTextCtrl_GetViewWhitespace(_arg0); - - wxPy_END_ALLOW_THREADS; -} _resultobj = Py_BuildValue("i",_result); - return _resultobj; -} - -#define wxStyledTextCtrl_SetViewWhitespace(_swigobj,_swigarg0) (_swigobj->SetViewWhitespace(_swigarg0)) -static PyObject *_wrap_wxStyledTextCtrl_SetViewWhitespace(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - bool _arg1; - PyObject * _argo0 = 0; - int tempbool1; - char *_kwnames[] = { "self","visible", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetViewWhitespace",_kwnames,&_argo0,&tempbool1)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetViewWhitespace. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } - _arg1 = (bool ) tempbool1; -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_SetViewWhitespace(_arg0,_arg1); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_GetEOLMode(_swigobj) (_swigobj->GetEOLMode()) -static PyObject *_wrap_wxStyledTextCtrl_GetEOLMode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxSTC_EOL _result; - wxStyledTextCtrl * _arg0; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetEOLMode",_kwnames,&_argo0)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetEOLMode. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = (wxSTC_EOL )wxStyledTextCtrl_GetEOLMode(_arg0); - - wxPy_END_ALLOW_THREADS; -} _resultobj = Py_BuildValue("i",_result); - return _resultobj; -} - -#define wxStyledTextCtrl_SetEOLMode(_swigobj,_swigarg0) (_swigobj->SetEOLMode(_swigarg0)) -static PyObject *_wrap_wxStyledTextCtrl_SetEOLMode(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - wxSTC_EOL _arg1; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self","mode", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetEOLMode",_kwnames,&_argo0,&_arg1)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetEOLMode. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_SetEOLMode(_arg0,_arg1); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_GetViewEOL(_swigobj) (_swigobj->GetViewEOL()) -static PyObject *_wrap_wxStyledTextCtrl_GetViewEOL(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - bool _result; - wxStyledTextCtrl * _arg0; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetViewEOL",_kwnames,&_argo0)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetViewEOL. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = (bool )wxStyledTextCtrl_GetViewEOL(_arg0); - - wxPy_END_ALLOW_THREADS; -} _resultobj = Py_BuildValue("i",_result); - return _resultobj; -} - -#define wxStyledTextCtrl_SetViewEOL(_swigobj,_swigarg0) (_swigobj->SetViewEOL(_swigarg0)) -static PyObject *_wrap_wxStyledTextCtrl_SetViewEOL(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - bool _arg1; - PyObject * _argo0 = 0; - int tempbool1; - char *_kwnames[] = { "self","visible", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetViewEOL",_kwnames,&_argo0,&tempbool1)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetViewEOL. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } - _arg1 = (bool ) tempbool1; -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_SetViewEOL(_arg0,_arg1); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_ConvertEOL(_swigobj,_swigarg0) (_swigobj->ConvertEOL(_swigarg0)) -static PyObject *_wrap_wxStyledTextCtrl_ConvertEOL(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - wxSTC_EOL _arg1; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self","mode", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_ConvertEOL",_kwnames,&_argo0,&_arg1)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_ConvertEOL. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_ConvertEOL(_arg0,_arg1); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; return _resultobj; } @@ -2629,6 +996,88 @@ static PyObject *_wrap_wxStyledTextCtrl_GetEndStyled(PyObject *self, PyObject *a return _resultobj; } +#define wxStyledTextCtrl_ConvertEOLs(_swigobj) (_swigobj->ConvertEOLs()) +static PyObject *_wrap_wxStyledTextCtrl_ConvertEOLs(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_ConvertEOLs",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_ConvertEOLs. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_ConvertEOLs(_arg0); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_GetEOLMode(_swigobj) (_swigobj->GetEOLMode()) +static PyObject *_wrap_wxStyledTextCtrl_GetEOLMode(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + int _result; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetEOLMode",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetEOLMode. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxStyledTextCtrl_GetEOLMode(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxStyledTextCtrl_SetEOLMode(_swigobj,_swigarg0) (_swigobj->SetEOLMode(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_SetEOLMode(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + int _arg1; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self","eolMode", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetEOLMode",_kwnames,&_argo0,&_arg1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetEOLMode. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_SetEOLMode(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + #define wxStyledTextCtrl_StartStyling(_swigobj,_swigarg0,_swigarg1) (_swigobj->StartStyling(_swigarg0,_swigarg1)) static PyObject *_wrap_wxStyledTextCtrl_StartStyling(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject * _resultobj; @@ -2658,8 +1107,8 @@ static PyObject *_wrap_wxStyledTextCtrl_StartStyling(PyObject *self, PyObject *a return _resultobj; } -#define wxStyledTextCtrl_SetStyleFor(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStyleFor(_swigarg0,_swigarg1)) -static PyObject *_wrap_wxStyledTextCtrl_SetStyleFor(PyObject *self, PyObject *args, PyObject *kwargs) { +#define wxStyledTextCtrl_SetStyling(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStyling(_swigarg0,_swigarg1)) +static PyObject *_wrap_wxStyledTextCtrl_SetStyling(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject * _resultobj; wxStyledTextCtrl * _arg0; int _arg1; @@ -2668,18 +1117,18 @@ static PyObject *_wrap_wxStyledTextCtrl_SetStyleFor(PyObject *self, PyObject *ar char *_kwnames[] = { "self","length","style", NULL }; self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_SetStyleFor",_kwnames,&_argo0,&_arg1,&_arg2)) + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_SetStyling",_kwnames,&_argo0,&_arg1,&_arg2)) return NULL; if (_argo0) { if (_argo0 == Py_None) { _arg0 = NULL; } else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetStyleFor. Expected _wxStyledTextCtrl_p."); + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetStyling. Expected _wxStyledTextCtrl_p."); return NULL; } } { wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_SetStyleFor(_arg0,_arg1,_arg2); + wxStyledTextCtrl_SetStyling(_arg0,_arg1,_arg2); wxPy_END_ALLOW_THREADS; } Py_INCREF(Py_None); @@ -2687,28 +1136,84 @@ static PyObject *_wrap_wxStyledTextCtrl_SetStyleFor(PyObject *self, PyObject *ar return _resultobj; } -#define wxStyledTextCtrl_SetStyleBytes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStyleBytes(_swigarg0,_swigarg1)) -static PyObject *_wrap_wxStyledTextCtrl_SetStyleBytes(PyObject *self, PyObject *args, PyObject *kwargs) { +#define wxStyledTextCtrl_GetBufferedDraw(_swigobj) (_swigobj->GetBufferedDraw()) +static PyObject *_wrap_wxStyledTextCtrl_GetBufferedDraw(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + bool _result; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetBufferedDraw",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetBufferedDraw. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (bool )wxStyledTextCtrl_GetBufferedDraw(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxStyledTextCtrl_SetBufferedDraw(_swigobj,_swigarg0) (_swigobj->SetBufferedDraw(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_SetBufferedDraw(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + bool _arg1; + PyObject * _argo0 = 0; + int tempbool1; + char *_kwnames[] = { "self","buffered", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetBufferedDraw",_kwnames,&_argo0,&tempbool1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetBufferedDraw. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } + _arg1 = (bool ) tempbool1; +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_SetBufferedDraw(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_SetTabWidth(_swigobj,_swigarg0) (_swigobj->SetTabWidth(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_SetTabWidth(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject * _resultobj; wxStyledTextCtrl * _arg0; int _arg1; - char * _arg2; PyObject * _argo0 = 0; - char *_kwnames[] = { "self","length","styleBytes", NULL }; + char *_kwnames[] = { "self","tabWidth", NULL }; self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ois:wxStyledTextCtrl_SetStyleBytes",_kwnames,&_argo0,&_arg1,&_arg2)) + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetTabWidth",_kwnames,&_argo0,&_arg1)) return NULL; if (_argo0) { if (_argo0 == Py_None) { _arg0 = NULL; } else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetStyleBytes. Expected _wxStyledTextCtrl_p."); + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetTabWidth. Expected _wxStyledTextCtrl_p."); return NULL; } } { wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_SetStyleBytes(_arg0,_arg1,_arg2); + wxStyledTextCtrl_SetTabWidth(_arg0,_arg1); wxPy_END_ALLOW_THREADS; } Py_INCREF(Py_None); @@ -2716,28 +1221,202 @@ static PyObject *_wrap_wxStyledTextCtrl_SetStyleBytes(PyObject *self, PyObject * return _resultobj; } -#define wxStyledTextCtrl_SetLineState(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLineState(_swigarg0,_swigarg1)) -static PyObject *_wrap_wxStyledTextCtrl_SetLineState(PyObject *self, PyObject *args, PyObject *kwargs) { +#define wxStyledTextCtrl_GetTabWidth(_swigobj) (_swigobj->GetTabWidth()) +static PyObject *_wrap_wxStyledTextCtrl_GetTabWidth(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + int _result; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetTabWidth",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetTabWidth. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxStyledTextCtrl_GetTabWidth(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxStyledTextCtrl_SetCodePage(_swigobj,_swigarg0) (_swigobj->SetCodePage(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_SetCodePage(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + int _arg1; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self","codePage", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetCodePage",_kwnames,&_argo0,&_arg1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetCodePage. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_SetCodePage(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_MarkerDefine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->MarkerDefine(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) +static PyObject *_wrap_wxStyledTextCtrl_MarkerDefine(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + int _arg1; + int _arg2; + wxColour * _arg3 = (wxColour *) &wxNullColour; + wxColour * _arg4 = (wxColour *) &wxNullColour; + PyObject * _argo0 = 0; + wxColour temp; + PyObject * _obj3 = 0; + wxColour temp0; + PyObject * _obj4 = 0; + char *_kwnames[] = { "self","markerNumber","markerSymbol","foreground","background", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|OO:wxStyledTextCtrl_MarkerDefine",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_MarkerDefine. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } + if (_obj3) +{ + _arg3 = &temp; + if (! wxColour_helper(_obj3, &_arg3)) + return NULL; +} + if (_obj4) +{ + _arg4 = &temp0; + if (! wxColour_helper(_obj4, &_arg4)) + return NULL; +} +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_MarkerDefine(_arg0,_arg1,_arg2,*_arg3,*_arg4); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_MarkerSetForeground(_swigobj,_swigarg0,_swigarg1) (_swigobj->MarkerSetForeground(_swigarg0,_swigarg1)) +static PyObject *_wrap_wxStyledTextCtrl_MarkerSetForeground(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + int _arg1; + wxColour * _arg2; + PyObject * _argo0 = 0; + wxColour temp; + PyObject * _obj2 = 0; + char *_kwnames[] = { "self","markerNumber","fore", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxStyledTextCtrl_MarkerSetForeground",_kwnames,&_argo0,&_arg1,&_obj2)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_MarkerSetForeground. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + _arg2 = &temp; + if (! wxColour_helper(_obj2, &_arg2)) + return NULL; +} +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_MarkerSetForeground(_arg0,_arg1,*_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_MarkerSetBackground(_swigobj,_swigarg0,_swigarg1) (_swigobj->MarkerSetBackground(_swigarg0,_swigarg1)) +static PyObject *_wrap_wxStyledTextCtrl_MarkerSetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + int _arg1; + wxColour * _arg2; + PyObject * _argo0 = 0; + wxColour temp; + PyObject * _obj2 = 0; + char *_kwnames[] = { "self","markerNumber","back", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxStyledTextCtrl_MarkerSetBackground",_kwnames,&_argo0,&_arg1,&_obj2)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_MarkerSetBackground. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + _arg2 = &temp; + if (! wxColour_helper(_obj2, &_arg2)) + return NULL; +} +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_MarkerSetBackground(_arg0,_arg1,*_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_MarkerAdd(_swigobj,_swigarg0,_swigarg1) (_swigobj->MarkerAdd(_swigarg0,_swigarg1)) +static PyObject *_wrap_wxStyledTextCtrl_MarkerAdd(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject * _resultobj; wxStyledTextCtrl * _arg0; int _arg1; int _arg2; PyObject * _argo0 = 0; - char *_kwnames[] = { "self","line","value", NULL }; + char *_kwnames[] = { "self","line","markerNumber", NULL }; self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_SetLineState",_kwnames,&_argo0,&_arg1,&_arg2)) + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_MarkerAdd",_kwnames,&_argo0,&_arg1,&_arg2)) return NULL; if (_argo0) { if (_argo0 == Py_None) { _arg0 = NULL; } else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetLineState. Expected _wxStyledTextCtrl_p."); + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_MarkerAdd. Expected _wxStyledTextCtrl_p."); return NULL; } } { wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_SetLineState(_arg0,_arg1,_arg2); + wxStyledTextCtrl_MarkerAdd(_arg0,_arg1,_arg2); wxPy_END_ALLOW_THREADS; } Py_INCREF(Py_None); @@ -2745,8 +1424,65 @@ static PyObject *_wrap_wxStyledTextCtrl_SetLineState(PyObject *self, PyObject *a return _resultobj; } -#define wxStyledTextCtrl_GetLineState(_swigobj,_swigarg0) (_swigobj->GetLineState(_swigarg0)) -static PyObject *_wrap_wxStyledTextCtrl_GetLineState(PyObject *self, PyObject *args, PyObject *kwargs) { +#define wxStyledTextCtrl_MarkerDelete(_swigobj,_swigarg0,_swigarg1) (_swigobj->MarkerDelete(_swigarg0,_swigarg1)) +static PyObject *_wrap_wxStyledTextCtrl_MarkerDelete(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + int _arg1; + int _arg2; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self","line","markerNumber", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_MarkerDelete",_kwnames,&_argo0,&_arg1,&_arg2)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_MarkerDelete. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_MarkerDelete(_arg0,_arg1,_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_MarkerDeleteAll(_swigobj,_swigarg0) (_swigobj->MarkerDeleteAll(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_MarkerDeleteAll(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + int _arg1; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self","markerNumber", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_MarkerDeleteAll",_kwnames,&_argo0,&_arg1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_MarkerDeleteAll. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_MarkerDeleteAll(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_MarkerGet(_swigobj,_swigarg0) (_swigobj->MarkerGet(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_MarkerGet(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject * _resultobj; int _result; wxStyledTextCtrl * _arg0; @@ -2755,553 +1491,79 @@ static PyObject *_wrap_wxStyledTextCtrl_GetLineState(PyObject *self, PyObject *a char *_kwnames[] = { "self","line", NULL }; self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_GetLineState",_kwnames,&_argo0,&_arg1)) + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_MarkerGet",_kwnames,&_argo0,&_arg1)) return NULL; if (_argo0) { if (_argo0 == Py_None) { _arg0 = NULL; } else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetLineState. Expected _wxStyledTextCtrl_p."); + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_MarkerGet. Expected _wxStyledTextCtrl_p."); return NULL; } } { wxPy_BEGIN_ALLOW_THREADS; - _result = (int )wxStyledTextCtrl_GetLineState(_arg0,_arg1); + _result = (int )wxStyledTextCtrl_MarkerGet(_arg0,_arg1); wxPy_END_ALLOW_THREADS; } _resultobj = Py_BuildValue("i",_result); return _resultobj; } -#define wxStyledTextCtrl_StyleClearAll(_swigobj) (_swigobj->StyleClearAll()) -static PyObject *_wrap_wxStyledTextCtrl_StyleClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_StyleClearAll",_kwnames,&_argo0)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_StyleClearAll. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_StyleClearAll(_arg0); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_StyleResetDefault(_swigobj) (_swigobj->StyleResetDefault()) -static PyObject *_wrap_wxStyledTextCtrl_StyleResetDefault(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_StyleResetDefault",_kwnames,&_argo0)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_StyleResetDefault. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_StyleResetDefault(_arg0); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_StyleSetSpec(_swigobj,_swigarg0,_swigarg1) (_swigobj->StyleSetSpec(_swigarg0,_swigarg1)) -static PyObject *_wrap_wxStyledTextCtrl_StyleSetSpec(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - int _arg1; - wxString * _arg2; - PyObject * _argo0 = 0; - PyObject * _obj2 = 0; - char *_kwnames[] = { "self","styleNum","spec", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxStyledTextCtrl_StyleSetSpec",_kwnames,&_argo0,&_arg1,&_obj2)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_StyleSetSpec. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - if (!PyString_Check(_obj2)) { - PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); - return NULL; - } - _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); -} -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_StyleSetSpec(_arg0,_arg1,*_arg2); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; -{ - if (_obj2) - delete _arg2; -} - return _resultobj; -} - -#define wxStyledTextCtrl_StyleSetForeground(_swigobj,_swigarg0,_swigarg1) (_swigobj->StyleSetForeground(_swigarg0,_swigarg1)) -static PyObject *_wrap_wxStyledTextCtrl_StyleSetForeground(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - int _arg1; - wxColour * _arg2; - PyObject * _argo0 = 0; - wxColour temp; - PyObject * _obj2 = 0; - char *_kwnames[] = { "self","styleNum","colour", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxStyledTextCtrl_StyleSetForeground",_kwnames,&_argo0,&_arg1,&_obj2)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_StyleSetForeground. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - _arg2 = &temp; - if (! wxColour_helper(_obj2, &_arg2)) - return NULL; -} -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_StyleSetForeground(_arg0,_arg1,*_arg2); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_StyleSetBackground(_swigobj,_swigarg0,_swigarg1) (_swigobj->StyleSetBackground(_swigarg0,_swigarg1)) -static PyObject *_wrap_wxStyledTextCtrl_StyleSetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - int _arg1; - wxColour * _arg2; - PyObject * _argo0 = 0; - wxColour temp; - PyObject * _obj2 = 0; - char *_kwnames[] = { "self","styleNum","colour", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxStyledTextCtrl_StyleSetBackground",_kwnames,&_argo0,&_arg1,&_obj2)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_StyleSetBackground. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - _arg2 = &temp; - if (! wxColour_helper(_obj2, &_arg2)) - return NULL; -} -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_StyleSetBackground(_arg0,_arg1,*_arg2); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_StyleSetFont(_swigobj,_swigarg0,_swigarg1) (_swigobj->StyleSetFont(_swigarg0,_swigarg1)) -static PyObject *_wrap_wxStyledTextCtrl_StyleSetFont(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - int _arg1; - wxFont * _arg2; - PyObject * _argo0 = 0; - PyObject * _argo2 = 0; - char *_kwnames[] = { "self","styleNum","font", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxStyledTextCtrl_StyleSetFont",_kwnames,&_argo0,&_arg1,&_argo2)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_StyleSetFont. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } - if (_argo2) { - if (_argo2 == Py_None) { _arg2 = NULL; } - else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxStyledTextCtrl_StyleSetFont. Expected _wxFont_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_StyleSetFont(_arg0,_arg1,*_arg2); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_StyleSetFontAttr(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->StyleSetFontAttr(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) -static PyObject *_wrap_wxStyledTextCtrl_StyleSetFontAttr(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - int _arg1; - int _arg2; - wxString * _arg3; - bool _arg4 = (bool ) FALSE; - bool _arg5 = (bool ) FALSE; - bool _arg6 = (bool ) FALSE; - PyObject * _argo0 = 0; - PyObject * _obj3 = 0; - int tempbool4 = (int) FALSE; - int tempbool5 = (int) FALSE; - int tempbool6 = (int) FALSE; - char *_kwnames[] = { "self","styleNum","size","faceName","bold","italic","underline", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|iii:wxStyledTextCtrl_StyleSetFontAttr",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&tempbool4,&tempbool5,&tempbool6)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_StyleSetFontAttr. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - if (!PyString_Check(_obj3)) { - PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); - return NULL; - } - _arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3)); -} - _arg4 = (bool ) tempbool4; - _arg5 = (bool ) tempbool5; - _arg6 = (bool ) tempbool6; -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_StyleSetFontAttr(_arg0,_arg1,_arg2,*_arg3,_arg4,_arg5,_arg6); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; -{ - if (_obj3) - delete _arg3; -} - return _resultobj; -} - -#define wxStyledTextCtrl_StyleSetBold(_swigobj,_swigarg0,_swigarg1) (_swigobj->StyleSetBold(_swigarg0,_swigarg1)) -static PyObject *_wrap_wxStyledTextCtrl_StyleSetBold(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - int _arg1; - bool _arg2; - PyObject * _argo0 = 0; - int tempbool2; - char *_kwnames[] = { "self","styleNum","bold", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_StyleSetBold",_kwnames,&_argo0,&_arg1,&tempbool2)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_StyleSetBold. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } - _arg2 = (bool ) tempbool2; -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_StyleSetBold(_arg0,_arg1,_arg2); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_StyleSetItalic(_swigobj,_swigarg0,_swigarg1) (_swigobj->StyleSetItalic(_swigarg0,_swigarg1)) -static PyObject *_wrap_wxStyledTextCtrl_StyleSetItalic(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - int _arg1; - bool _arg2; - PyObject * _argo0 = 0; - int tempbool2; - char *_kwnames[] = { "self","styleNum","italic", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_StyleSetItalic",_kwnames,&_argo0,&_arg1,&tempbool2)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_StyleSetItalic. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } - _arg2 = (bool ) tempbool2; -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_StyleSetItalic(_arg0,_arg1,_arg2); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_StyleSetFaceName(_swigobj,_swigarg0,_swigarg1) (_swigobj->StyleSetFaceName(_swigarg0,_swigarg1)) -static PyObject *_wrap_wxStyledTextCtrl_StyleSetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - int _arg1; - wxString * _arg2; - PyObject * _argo0 = 0; - PyObject * _obj2 = 0; - char *_kwnames[] = { "self","styleNum","faceName", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxStyledTextCtrl_StyleSetFaceName",_kwnames,&_argo0,&_arg1,&_obj2)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_StyleSetFaceName. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - if (!PyString_Check(_obj2)) { - PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); - return NULL; - } - _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); -} -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_StyleSetFaceName(_arg0,_arg1,*_arg2); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; -{ - if (_obj2) - delete _arg2; -} - return _resultobj; -} - -#define wxStyledTextCtrl_StyleSetSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->StyleSetSize(_swigarg0,_swigarg1)) -static PyObject *_wrap_wxStyledTextCtrl_StyleSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - int _arg1; - int _arg2; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self","styleNum","pointSize", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_StyleSetSize",_kwnames,&_argo0,&_arg1,&_arg2)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_StyleSetSize. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_StyleSetSize(_arg0,_arg1,_arg2); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_StyleSetEOLFilled(_swigobj,_swigarg0,_swigarg1) (_swigobj->StyleSetEOLFilled(_swigarg0,_swigarg1)) -static PyObject *_wrap_wxStyledTextCtrl_StyleSetEOLFilled(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - int _arg1; - bool _arg2; - PyObject * _argo0 = 0; - int tempbool2; - char *_kwnames[] = { "self","styleNum","fillEOL", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_StyleSetEOLFilled",_kwnames,&_argo0,&_arg1,&tempbool2)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_StyleSetEOLFilled. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } - _arg2 = (bool ) tempbool2; -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_StyleSetEOLFilled(_arg0,_arg1,_arg2); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_StyleSetUnderline(_swigobj,_swigarg0,_swigarg1) (_swigobj->StyleSetUnderline(_swigarg0,_swigarg1)) -static PyObject *_wrap_wxStyledTextCtrl_StyleSetUnderline(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - int _arg1; - bool _arg2; - PyObject * _argo0 = 0; - int tempbool2; - char *_kwnames[] = { "self","styleNum","underline", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_StyleSetUnderline",_kwnames,&_argo0,&_arg1,&tempbool2)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_StyleSetUnderline. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } - _arg2 = (bool ) tempbool2; -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_StyleSetUnderline(_arg0,_arg1,_arg2); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_GetLeftMargin(_swigobj) (_swigobj->GetLeftMargin()) -static PyObject *_wrap_wxStyledTextCtrl_GetLeftMargin(PyObject *self, PyObject *args, PyObject *kwargs) { +#define wxStyledTextCtrl_MarkerNext(_swigobj,_swigarg0,_swigarg1) (_swigobj->MarkerNext(_swigarg0,_swigarg1)) +static PyObject *_wrap_wxStyledTextCtrl_MarkerNext(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject * _resultobj; int _result; wxStyledTextCtrl * _arg0; + int _arg1; + int _arg2; PyObject * _argo0 = 0; - char *_kwnames[] = { "self", NULL }; + char *_kwnames[] = { "self","lineStart","markerMask", NULL }; self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetLeftMargin",_kwnames,&_argo0)) + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_MarkerNext",_kwnames,&_argo0,&_arg1,&_arg2)) return NULL; if (_argo0) { if (_argo0 == Py_None) { _arg0 = NULL; } else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetLeftMargin. Expected _wxStyledTextCtrl_p."); + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_MarkerNext. Expected _wxStyledTextCtrl_p."); return NULL; } } { wxPy_BEGIN_ALLOW_THREADS; - _result = (int )wxStyledTextCtrl_GetLeftMargin(_arg0); + _result = (int )wxStyledTextCtrl_MarkerNext(_arg0,_arg1,_arg2); wxPy_END_ALLOW_THREADS; } _resultobj = Py_BuildValue("i",_result); return _resultobj; } -#define wxStyledTextCtrl_GetRightMargin(_swigobj) (_swigobj->GetRightMargin()) -static PyObject *_wrap_wxStyledTextCtrl_GetRightMargin(PyObject *self, PyObject *args, PyObject *kwargs) { +#define wxStyledTextCtrl_MarkerPrevious(_swigobj,_swigarg0,_swigarg1) (_swigobj->MarkerPrevious(_swigarg0,_swigarg1)) +static PyObject *_wrap_wxStyledTextCtrl_MarkerPrevious(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject * _resultobj; int _result; wxStyledTextCtrl * _arg0; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetRightMargin",_kwnames,&_argo0)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetRightMargin. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = (int )wxStyledTextCtrl_GetRightMargin(_arg0); - - wxPy_END_ALLOW_THREADS; -} _resultobj = Py_BuildValue("i",_result); - return _resultobj; -} - -#define wxStyledTextCtrl_SetMargins(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMargins(_swigarg0,_swigarg1)) -static PyObject *_wrap_wxStyledTextCtrl_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; int _arg1; int _arg2; PyObject * _argo0 = 0; - char *_kwnames[] = { "self","left","right", NULL }; + char *_kwnames[] = { "self","lineStart","markerMask", NULL }; self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_SetMargins",_kwnames,&_argo0,&_arg1,&_arg2)) + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_MarkerPrevious",_kwnames,&_argo0,&_arg1,&_arg2)) return NULL; if (_argo0) { if (_argo0 == Py_None) { _arg0 = NULL; } else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetMargins. Expected _wxStyledTextCtrl_p."); + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_MarkerPrevious. Expected _wxStyledTextCtrl_p."); return NULL; } } { wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_SetMargins(_arg0,_arg1,_arg2); + _result = (int )wxStyledTextCtrl_MarkerPrevious(_arg0,_arg1,_arg2); wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -3312,7 +1574,7 @@ static PyObject *_wrap_wxStyledTextCtrl_SetMarginType(PyObject *self, PyObject * int _arg1; int _arg2; PyObject * _argo0 = 0; - char *_kwnames[] = { "self","margin","type", NULL }; + char *_kwnames[] = { "self","margin","marginType", NULL }; self = self; if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_SetMarginType",_kwnames,&_argo0,&_arg1,&_arg2)) @@ -3535,34 +1797,26 @@ static PyObject *_wrap_wxStyledTextCtrl_GetMarginSensitive(PyObject *self, PyObj return _resultobj; } -#define wxStyledTextCtrl_SetSelectionForeground(_swigobj,_swigarg0) (_swigobj->SetSelectionForeground(_swigarg0)) -static PyObject *_wrap_wxStyledTextCtrl_SetSelectionForeground(PyObject *self, PyObject *args, PyObject *kwargs) { +#define wxStyledTextCtrl_StyleClearAll(_swigobj) (_swigobj->StyleClearAll()) +static PyObject *_wrap_wxStyledTextCtrl_StyleClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject * _resultobj; wxStyledTextCtrl * _arg0; - wxColour * _arg1; PyObject * _argo0 = 0; - wxColour temp; - PyObject * _obj1 = 0; - char *_kwnames[] = { "self","colour", NULL }; + char *_kwnames[] = { "self", NULL }; self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStyledTextCtrl_SetSelectionForeground",_kwnames,&_argo0,&_obj1)) + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_StyleClearAll",_kwnames,&_argo0)) return NULL; if (_argo0) { if (_argo0 == Py_None) { _arg0 = NULL; } else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetSelectionForeground. Expected _wxStyledTextCtrl_p."); + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_StyleClearAll. Expected _wxStyledTextCtrl_p."); return NULL; } } -{ - _arg1 = &temp; - if (! wxColour_helper(_obj1, &_arg1)) - return NULL; -} { wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_SetSelectionForeground(_arg0,*_arg1); + wxStyledTextCtrl_StyleClearAll(_arg0); wxPy_END_ALLOW_THREADS; } Py_INCREF(Py_None); @@ -3570,34 +1824,368 @@ static PyObject *_wrap_wxStyledTextCtrl_SetSelectionForeground(PyObject *self, P return _resultobj; } -#define wxStyledTextCtrl_SetSelectionBackground(_swigobj,_swigarg0) (_swigobj->SetSelectionBackground(_swigarg0)) -static PyObject *_wrap_wxStyledTextCtrl_SetSelectionBackground(PyObject *self, PyObject *args, PyObject *kwargs) { +#define wxStyledTextCtrl_StyleSetForeground(_swigobj,_swigarg0,_swigarg1) (_swigobj->StyleSetForeground(_swigarg0,_swigarg1)) +static PyObject *_wrap_wxStyledTextCtrl_StyleSetForeground(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject * _resultobj; wxStyledTextCtrl * _arg0; - wxColour * _arg1; + int _arg1; + wxColour * _arg2; PyObject * _argo0 = 0; wxColour temp; - PyObject * _obj1 = 0; - char *_kwnames[] = { "self","colour", NULL }; + PyObject * _obj2 = 0; + char *_kwnames[] = { "self","style","fore", NULL }; self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStyledTextCtrl_SetSelectionBackground",_kwnames,&_argo0,&_obj1)) + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxStyledTextCtrl_StyleSetForeground",_kwnames,&_argo0,&_arg1,&_obj2)) return NULL; if (_argo0) { if (_argo0 == Py_None) { _arg0 = NULL; } else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetSelectionBackground. Expected _wxStyledTextCtrl_p."); + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_StyleSetForeground. Expected _wxStyledTextCtrl_p."); return NULL; } } { - _arg1 = &temp; - if (! wxColour_helper(_obj1, &_arg1)) + _arg2 = &temp; + if (! wxColour_helper(_obj2, &_arg2)) return NULL; } { wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_SetSelectionBackground(_arg0,*_arg1); + wxStyledTextCtrl_StyleSetForeground(_arg0,_arg1,*_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_StyleSetBackground(_swigobj,_swigarg0,_swigarg1) (_swigobj->StyleSetBackground(_swigarg0,_swigarg1)) +static PyObject *_wrap_wxStyledTextCtrl_StyleSetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + int _arg1; + wxColour * _arg2; + PyObject * _argo0 = 0; + wxColour temp; + PyObject * _obj2 = 0; + char *_kwnames[] = { "self","style","back", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxStyledTextCtrl_StyleSetBackground",_kwnames,&_argo0,&_arg1,&_obj2)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_StyleSetBackground. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + _arg2 = &temp; + if (! wxColour_helper(_obj2, &_arg2)) + return NULL; +} +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_StyleSetBackground(_arg0,_arg1,*_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_StyleSetBold(_swigobj,_swigarg0,_swigarg1) (_swigobj->StyleSetBold(_swigarg0,_swigarg1)) +static PyObject *_wrap_wxStyledTextCtrl_StyleSetBold(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + int _arg1; + bool _arg2; + PyObject * _argo0 = 0; + int tempbool2; + char *_kwnames[] = { "self","style","bold", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_StyleSetBold",_kwnames,&_argo0,&_arg1,&tempbool2)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_StyleSetBold. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } + _arg2 = (bool ) tempbool2; +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_StyleSetBold(_arg0,_arg1,_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_StyleSetItalic(_swigobj,_swigarg0,_swigarg1) (_swigobj->StyleSetItalic(_swigarg0,_swigarg1)) +static PyObject *_wrap_wxStyledTextCtrl_StyleSetItalic(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + int _arg1; + bool _arg2; + PyObject * _argo0 = 0; + int tempbool2; + char *_kwnames[] = { "self","style","italic", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_StyleSetItalic",_kwnames,&_argo0,&_arg1,&tempbool2)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_StyleSetItalic. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } + _arg2 = (bool ) tempbool2; +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_StyleSetItalic(_arg0,_arg1,_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_StyleSetSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->StyleSetSize(_swigarg0,_swigarg1)) +static PyObject *_wrap_wxStyledTextCtrl_StyleSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + int _arg1; + int _arg2; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self","style","sizePoints", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_StyleSetSize",_kwnames,&_argo0,&_arg1,&_arg2)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_StyleSetSize. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_StyleSetSize(_arg0,_arg1,_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_StyleSetFaceName(_swigobj,_swigarg0,_swigarg1) (_swigobj->StyleSetFaceName(_swigarg0,_swigarg1)) +static PyObject *_wrap_wxStyledTextCtrl_StyleSetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + int _arg1; + wxString * _arg2; + PyObject * _argo0 = 0; + PyObject * _obj2 = 0; + char *_kwnames[] = { "self","style","fontName", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxStyledTextCtrl_StyleSetFaceName",_kwnames,&_argo0,&_arg1,&_obj2)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_StyleSetFaceName. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + if (!PyString_Check(_obj2)) { + PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); + return NULL; + } + _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); +} +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_StyleSetFaceName(_arg0,_arg1,*_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; +{ + if (_obj2) + delete _arg2; +} + return _resultobj; +} + +#define wxStyledTextCtrl_StyleSetEOLFilled(_swigobj,_swigarg0,_swigarg1) (_swigobj->StyleSetEOLFilled(_swigarg0,_swigarg1)) +static PyObject *_wrap_wxStyledTextCtrl_StyleSetEOLFilled(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + int _arg1; + bool _arg2; + PyObject * _argo0 = 0; + int tempbool2; + char *_kwnames[] = { "self","style","filled", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_StyleSetEOLFilled",_kwnames,&_argo0,&_arg1,&tempbool2)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_StyleSetEOLFilled. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } + _arg2 = (bool ) tempbool2; +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_StyleSetEOLFilled(_arg0,_arg1,_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_StyleResetDefault(_swigobj) (_swigobj->StyleResetDefault()) +static PyObject *_wrap_wxStyledTextCtrl_StyleResetDefault(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_StyleResetDefault",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_StyleResetDefault. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_StyleResetDefault(_arg0); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_StyleSetUnderline(_swigobj,_swigarg0,_swigarg1) (_swigobj->StyleSetUnderline(_swigarg0,_swigarg1)) +static PyObject *_wrap_wxStyledTextCtrl_StyleSetUnderline(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + int _arg1; + bool _arg2; + PyObject * _argo0 = 0; + int tempbool2; + char *_kwnames[] = { "self","style","underline", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_StyleSetUnderline",_kwnames,&_argo0,&_arg1,&tempbool2)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_StyleSetUnderline. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } + _arg2 = (bool ) tempbool2; +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_StyleSetUnderline(_arg0,_arg1,_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_SetSelForeground(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelForeground(_swigarg0,_swigarg1)) +static PyObject *_wrap_wxStyledTextCtrl_SetSelForeground(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + bool _arg1; + wxColour * _arg2; + PyObject * _argo0 = 0; + int tempbool1; + wxColour temp; + PyObject * _obj2 = 0; + char *_kwnames[] = { "self","useSetting","fore", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxStyledTextCtrl_SetSelForeground",_kwnames,&_argo0,&tempbool1,&_obj2)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetSelForeground. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } + _arg1 = (bool ) tempbool1; +{ + _arg2 = &temp; + if (! wxColour_helper(_obj2, &_arg2)) + return NULL; +} +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_SetSelForeground(_arg0,_arg1,*_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_SetSelBackground(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelBackground(_swigarg0,_swigarg1)) +static PyObject *_wrap_wxStyledTextCtrl_SetSelBackground(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + bool _arg1; + wxColour * _arg2; + PyObject * _argo0 = 0; + int tempbool1; + wxColour temp; + PyObject * _obj2 = 0; + char *_kwnames[] = { "self","useSetting","back", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxStyledTextCtrl_SetSelBackground",_kwnames,&_argo0,&tempbool1,&_obj2)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetSelBackground. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } + _arg1 = (bool ) tempbool1; +{ + _arg2 = &temp; + if (! wxColour_helper(_obj2, &_arg2)) + return NULL; +} +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_SetSelBackground(_arg0,_arg1,*_arg2); wxPy_END_ALLOW_THREADS; } Py_INCREF(Py_None); @@ -3613,7 +2201,7 @@ static PyObject *_wrap_wxStyledTextCtrl_SetCaretForeground(PyObject *self, PyObj PyObject * _argo0 = 0; wxColour temp; PyObject * _obj1 = 0; - char *_kwnames[] = { "self","colour", NULL }; + char *_kwnames[] = { "self","fore", NULL }; self = self; if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStyledTextCtrl_SetCaretForeground",_kwnames,&_argo0,&_obj1)) @@ -3640,6 +2228,152 @@ static PyObject *_wrap_wxStyledTextCtrl_SetCaretForeground(PyObject *self, PyObj return _resultobj; } +#define wxStyledTextCtrl_CmdKeyAssign(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->CmdKeyAssign(_swigarg0,_swigarg1,_swigarg2)) +static PyObject *_wrap_wxStyledTextCtrl_CmdKeyAssign(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + int _arg1; + int _arg2; + int _arg3; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self","key","modifiers","cmd", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxStyledTextCtrl_CmdKeyAssign",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_CmdKeyAssign. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_CmdKeyAssign(_arg0,_arg1,_arg2,_arg3); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_CmdKeyClear(_swigobj,_swigarg0,_swigarg1) (_swigobj->CmdKeyClear(_swigarg0,_swigarg1)) +static PyObject *_wrap_wxStyledTextCtrl_CmdKeyClear(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + int _arg1; + int _arg2; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self","key","modifiers", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_CmdKeyClear",_kwnames,&_argo0,&_arg1,&_arg2)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_CmdKeyClear. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_CmdKeyClear(_arg0,_arg1,_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_CmdKeyClearAll(_swigobj) (_swigobj->CmdKeyClearAll()) +static PyObject *_wrap_wxStyledTextCtrl_CmdKeyClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_CmdKeyClearAll",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_CmdKeyClearAll. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_CmdKeyClearAll(_arg0); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_SetStyleBytes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetStyleBytes(_swigarg0,_swigarg1)) +static PyObject *_wrap_wxStyledTextCtrl_SetStyleBytes(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + int _arg1; + char * _arg2; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self","length","styleBytes", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ois:wxStyledTextCtrl_SetStyleBytes",_kwnames,&_argo0,&_arg1,&_arg2)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetStyleBytes. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_SetStyleBytes(_arg0,_arg1,_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_StyleSetVisible(_swigobj,_swigarg0,_swigarg1) (_swigobj->StyleSetVisible(_swigarg0,_swigarg1)) +static PyObject *_wrap_wxStyledTextCtrl_StyleSetVisible(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + int _arg1; + bool _arg2; + PyObject * _argo0 = 0; + int tempbool2; + char *_kwnames[] = { "self","style","visible", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_StyleSetVisible",_kwnames,&_argo0,&_arg1,&tempbool2)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_StyleSetVisible. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } + _arg2 = (bool ) tempbool2; +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_StyleSetVisible(_arg0,_arg1,_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + #define wxStyledTextCtrl_GetCaretPeriod(_swigobj) (_swigobj->GetCaretPeriod()) static PyObject *_wrap_wxStyledTextCtrl_GetCaretPeriod(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject * _resultobj; @@ -3673,7 +2407,7 @@ static PyObject *_wrap_wxStyledTextCtrl_SetCaretPeriod(PyObject *self, PyObject wxStyledTextCtrl * _arg0; int _arg1; PyObject * _argo0 = 0; - char *_kwnames[] = { "self","milliseconds", NULL }; + char *_kwnames[] = { "self","periodMilliseconds", NULL }; self = self; if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetCaretPeriod",_kwnames,&_argo0,&_arg1)) @@ -3695,207 +2429,6 @@ static PyObject *_wrap_wxStyledTextCtrl_SetCaretPeriod(PyObject *self, PyObject return _resultobj; } -#define wxStyledTextCtrl_SetBufferedDraw(_swigobj,_swigarg0) (_swigobj->SetBufferedDraw(_swigarg0)) -static PyObject *_wrap_wxStyledTextCtrl_SetBufferedDraw(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - bool _arg1; - PyObject * _argo0 = 0; - int tempbool1; - char *_kwnames[] = { "self","isBuffered", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetBufferedDraw",_kwnames,&_argo0,&tempbool1)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetBufferedDraw. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } - _arg1 = (bool ) tempbool1; -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_SetBufferedDraw(_arg0,_arg1); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_SetTabWidth(_swigobj,_swigarg0) (_swigobj->SetTabWidth(_swigarg0)) -static PyObject *_wrap_wxStyledTextCtrl_SetTabWidth(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - int _arg1; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self","numChars", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetTabWidth",_kwnames,&_argo0,&_arg1)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetTabWidth. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_SetTabWidth(_arg0,_arg1); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_SetIndent(_swigobj,_swigarg0) (_swigobj->SetIndent(_swigarg0)) -static PyObject *_wrap_wxStyledTextCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - int _arg1; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self","numChars", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetIndent",_kwnames,&_argo0,&_arg1)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetIndent. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_SetIndent(_arg0,_arg1); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_SetUseTabs(_swigobj,_swigarg0) (_swigobj->SetUseTabs(_swigarg0)) -static PyObject *_wrap_wxStyledTextCtrl_SetUseTabs(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - bool _arg1; - PyObject * _argo0 = 0; - int tempbool1; - char *_kwnames[] = { "self","usetabs", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetUseTabs",_kwnames,&_argo0,&tempbool1)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetUseTabs. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } - _arg1 = (bool ) tempbool1; -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_SetUseTabs(_arg0,_arg1); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_SetLineIndentation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLineIndentation(_swigarg0,_swigarg1)) -static PyObject *_wrap_wxStyledTextCtrl_SetLineIndentation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - int _arg1; - int _arg2; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self","line","indentation", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_SetLineIndentation",_kwnames,&_argo0,&_arg1,&_arg2)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetLineIndentation. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_SetLineIndentation(_arg0,_arg1,_arg2); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_GetLineIndentation(_swigobj,_swigarg0) (_swigobj->GetLineIndentation(_swigarg0)) -static PyObject *_wrap_wxStyledTextCtrl_GetLineIndentation(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - int _result; - wxStyledTextCtrl * _arg0; - int _arg1; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self","line", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_GetLineIndentation",_kwnames,&_argo0,&_arg1)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetLineIndentation. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = (int )wxStyledTextCtrl_GetLineIndentation(_arg0,_arg1); - - wxPy_END_ALLOW_THREADS; -} _resultobj = Py_BuildValue("i",_result); - return _resultobj; -} - -#define wxStyledTextCtrl_GetLineIndentationPos(_swigobj,_swigarg0) (_swigobj->GetLineIndentationPos(_swigarg0)) -static PyObject *_wrap_wxStyledTextCtrl_GetLineIndentationPos(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - int _result; - wxStyledTextCtrl * _arg0; - int _arg1; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self","line", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_GetLineIndentationPos",_kwnames,&_argo0,&_arg1)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetLineIndentationPos. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = (int )wxStyledTextCtrl_GetLineIndentationPos(_arg0,_arg1); - - wxPy_END_ALLOW_THREADS; -} _resultobj = Py_BuildValue("i",_result); - return _resultobj; -} - #define wxStyledTextCtrl_SetWordChars(_swigobj,_swigarg0) (_swigobj->SetWordChars(_swigarg0)) static PyObject *_wrap_wxStyledTextCtrl_SetWordChars(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject * _resultobj; @@ -3903,7 +2436,7 @@ static PyObject *_wrap_wxStyledTextCtrl_SetWordChars(PyObject *self, PyObject *a wxString * _arg1; PyObject * _argo0 = 0; PyObject * _obj1 = 0; - char *_kwnames[] = { "self","wordChars", NULL }; + char *_kwnames[] = { "self","characters", NULL }; self = self; if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStyledTextCtrl_SetWordChars",_kwnames,&_argo0,&_obj1)) @@ -3936,29 +2469,26 @@ static PyObject *_wrap_wxStyledTextCtrl_SetWordChars(PyObject *self, PyObject *a return _resultobj; } -#define wxStyledTextCtrl_SetUsePop(_swigobj,_swigarg0) (_swigobj->SetUsePop(_swigarg0)) -static PyObject *_wrap_wxStyledTextCtrl_SetUsePop(PyObject *self, PyObject *args, PyObject *kwargs) { +#define wxStyledTextCtrl_BeginUndoAction(_swigobj) (_swigobj->BeginUndoAction()) +static PyObject *_wrap_wxStyledTextCtrl_BeginUndoAction(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject * _resultobj; wxStyledTextCtrl * _arg0; - bool _arg1; PyObject * _argo0 = 0; - int tempbool1; - char *_kwnames[] = { "self","usepopup", NULL }; + char *_kwnames[] = { "self", NULL }; self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetUsePop",_kwnames,&_argo0,&tempbool1)) + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_BeginUndoAction",_kwnames,&_argo0)) return NULL; if (_argo0) { if (_argo0 == Py_None) { _arg0 = NULL; } else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetUsePop. Expected _wxStyledTextCtrl_p."); + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_BeginUndoAction. Expected _wxStyledTextCtrl_p."); return NULL; } } - _arg1 = (bool ) tempbool1; { wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_SetUsePop(_arg0,_arg1); + wxStyledTextCtrl_BeginUndoAction(_arg0); wxPy_END_ALLOW_THREADS; } Py_INCREF(Py_None); @@ -3966,459 +2496,26 @@ static PyObject *_wrap_wxStyledTextCtrl_SetUsePop(PyObject *self, PyObject *args return _resultobj; } -#define wxStyledTextCtrl_BraceHighlight(_swigobj,_swigarg0,_swigarg1) (_swigobj->BraceHighlight(_swigarg0,_swigarg1)) -static PyObject *_wrap_wxStyledTextCtrl_BraceHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { +#define wxStyledTextCtrl_EndUndoAction(_swigobj) (_swigobj->EndUndoAction()) +static PyObject *_wrap_wxStyledTextCtrl_EndUndoAction(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject * _resultobj; wxStyledTextCtrl * _arg0; - int _arg1; - int _arg2; PyObject * _argo0 = 0; - char *_kwnames[] = { "self","pos1","pos2", NULL }; + char *_kwnames[] = { "self", NULL }; self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_BraceHighlight",_kwnames,&_argo0,&_arg1,&_arg2)) + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_EndUndoAction",_kwnames,&_argo0)) return NULL; if (_argo0) { if (_argo0 == Py_None) { _arg0 = NULL; } else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_BraceHighlight. Expected _wxStyledTextCtrl_p."); + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_EndUndoAction. Expected _wxStyledTextCtrl_p."); return NULL; } } { wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_BraceHighlight(_arg0,_arg1,_arg2); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_BraceBadlight(_swigobj,_swigarg0) (_swigobj->BraceBadlight(_swigarg0)) -static PyObject *_wrap_wxStyledTextCtrl_BraceBadlight(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - int _arg1; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self","pos", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_BraceBadlight",_kwnames,&_argo0,&_arg1)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_BraceBadlight. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_BraceBadlight(_arg0,_arg1); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_BraceMatch(_swigobj,_swigarg0,_swigarg1) (_swigobj->BraceMatch(_swigarg0,_swigarg1)) -static PyObject *_wrap_wxStyledTextCtrl_BraceMatch(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - int _result; - wxStyledTextCtrl * _arg0; - int _arg1; - int _arg2 = (int ) 0; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self","pos","maxReStyle", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|i:wxStyledTextCtrl_BraceMatch",_kwnames,&_argo0,&_arg1,&_arg2)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_BraceMatch. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = (int )wxStyledTextCtrl_BraceMatch(_arg0,_arg1,_arg2); - - wxPy_END_ALLOW_THREADS; -} _resultobj = Py_BuildValue("i",_result); - return _resultobj; -} - -#define wxStyledTextCtrl_MarkerDefine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->MarkerDefine(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) -static PyObject *_wrap_wxStyledTextCtrl_MarkerDefine(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - int _arg1; - int _arg2; - wxColour * _arg3; - wxColour * _arg4; - PyObject * _argo0 = 0; - wxColour temp; - PyObject * _obj3 = 0; - wxColour temp0; - PyObject * _obj4 = 0; - char *_kwnames[] = { "self","markerNumber","markerSymbol","foreground","background", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiOO:wxStyledTextCtrl_MarkerDefine",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_MarkerDefine. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - _arg3 = &temp; - if (! wxColour_helper(_obj3, &_arg3)) - return NULL; -} -{ - _arg4 = &temp0; - if (! wxColour_helper(_obj4, &_arg4)) - return NULL; -} -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_MarkerDefine(_arg0,_arg1,_arg2,*_arg3,*_arg4); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_MarkerSetType(_swigobj,_swigarg0,_swigarg1) (_swigobj->MarkerSetType(_swigarg0,_swigarg1)) -static PyObject *_wrap_wxStyledTextCtrl_MarkerSetType(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - int _arg1; - int _arg2; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self","markerNumber","markerSymbol", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_MarkerSetType",_kwnames,&_argo0,&_arg1,&_arg2)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_MarkerSetType. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_MarkerSetType(_arg0,_arg1,_arg2); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_MarkerSetForeground(_swigobj,_swigarg0,_swigarg1) (_swigobj->MarkerSetForeground(_swigarg0,_swigarg1)) -static PyObject *_wrap_wxStyledTextCtrl_MarkerSetForeground(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - int _arg1; - wxColour * _arg2; - PyObject * _argo0 = 0; - wxColour temp; - PyObject * _obj2 = 0; - char *_kwnames[] = { "self","markerNumber","colour", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxStyledTextCtrl_MarkerSetForeground",_kwnames,&_argo0,&_arg1,&_obj2)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_MarkerSetForeground. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - _arg2 = &temp; - if (! wxColour_helper(_obj2, &_arg2)) - return NULL; -} -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_MarkerSetForeground(_arg0,_arg1,*_arg2); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_MarkerSetBackground(_swigobj,_swigarg0,_swigarg1) (_swigobj->MarkerSetBackground(_swigarg0,_swigarg1)) -static PyObject *_wrap_wxStyledTextCtrl_MarkerSetBackground(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - int _arg1; - wxColour * _arg2; - PyObject * _argo0 = 0; - wxColour temp; - PyObject * _obj2 = 0; - char *_kwnames[] = { "self","markerNumber","colour", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxStyledTextCtrl_MarkerSetBackground",_kwnames,&_argo0,&_arg1,&_obj2)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_MarkerSetBackground. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - _arg2 = &temp; - if (! wxColour_helper(_obj2, &_arg2)) - return NULL; -} -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_MarkerSetBackground(_arg0,_arg1,*_arg2); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_MarkerAdd(_swigobj,_swigarg0,_swigarg1) (_swigobj->MarkerAdd(_swigarg0,_swigarg1)) -static PyObject *_wrap_wxStyledTextCtrl_MarkerAdd(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - int _result; - wxStyledTextCtrl * _arg0; - int _arg1; - int _arg2; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self","line","markerNumber", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_MarkerAdd",_kwnames,&_argo0,&_arg1,&_arg2)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_MarkerAdd. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = (int )wxStyledTextCtrl_MarkerAdd(_arg0,_arg1,_arg2); - - wxPy_END_ALLOW_THREADS; -} _resultobj = Py_BuildValue("i",_result); - return _resultobj; -} - -#define wxStyledTextCtrl_MarkerDelete(_swigobj,_swigarg0,_swigarg1) (_swigobj->MarkerDelete(_swigarg0,_swigarg1)) -static PyObject *_wrap_wxStyledTextCtrl_MarkerDelete(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - int _arg1; - int _arg2; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self","line","markerNumber", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_MarkerDelete",_kwnames,&_argo0,&_arg1,&_arg2)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_MarkerDelete. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_MarkerDelete(_arg0,_arg1,_arg2); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_MarkerDeleteAll(_swigobj,_swigarg0) (_swigobj->MarkerDeleteAll(_swigarg0)) -static PyObject *_wrap_wxStyledTextCtrl_MarkerDeleteAll(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - int _arg1; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self","markerNumber", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_MarkerDeleteAll",_kwnames,&_argo0,&_arg1)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_MarkerDeleteAll. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_MarkerDeleteAll(_arg0,_arg1); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_MarkerGet(_swigobj,_swigarg0) (_swigobj->MarkerGet(_swigarg0)) -static PyObject *_wrap_wxStyledTextCtrl_MarkerGet(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - int _result; - wxStyledTextCtrl * _arg0; - int _arg1; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self","line", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_MarkerGet",_kwnames,&_argo0,&_arg1)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_MarkerGet. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = (int )wxStyledTextCtrl_MarkerGet(_arg0,_arg1); - - wxPy_END_ALLOW_THREADS; -} _resultobj = Py_BuildValue("i",_result); - return _resultobj; -} - -#define wxStyledTextCtrl_MarkerGetNextLine(_swigobj,_swigarg0,_swigarg1) (_swigobj->MarkerGetNextLine(_swigarg0,_swigarg1)) -static PyObject *_wrap_wxStyledTextCtrl_MarkerGetNextLine(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - int _result; - wxStyledTextCtrl * _arg0; - int _arg1; - int _arg2; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self","lineStart","markerMask", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_MarkerGetNextLine",_kwnames,&_argo0,&_arg1,&_arg2)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_MarkerGetNextLine. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = (int )wxStyledTextCtrl_MarkerGetNextLine(_arg0,_arg1,_arg2); - - wxPy_END_ALLOW_THREADS; -} _resultobj = Py_BuildValue("i",_result); - return _resultobj; -} - -#define wxStyledTextCtrl_MarkerGetPrevLine(_swigobj,_swigarg0,_swigarg1) (_swigobj->MarkerGetPrevLine(_swigarg0,_swigarg1)) -static PyObject *_wrap_wxStyledTextCtrl_MarkerGetPrevLine(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - int _result; - wxStyledTextCtrl * _arg0; - int _arg1; - int _arg2; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self","lineStart","markerMask", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_MarkerGetPrevLine",_kwnames,&_argo0,&_arg1,&_arg2)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_MarkerGetPrevLine. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = (int )wxStyledTextCtrl_MarkerGetPrevLine(_arg0,_arg1,_arg2); - - wxPy_END_ALLOW_THREADS; -} _resultobj = Py_BuildValue("i",_result); - return _resultobj; -} - -#define wxStyledTextCtrl_MarkerLineFromHandle(_swigobj,_swigarg0) (_swigobj->MarkerLineFromHandle(_swigarg0)) -static PyObject *_wrap_wxStyledTextCtrl_MarkerLineFromHandle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - int _result; - wxStyledTextCtrl * _arg0; - int _arg1; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self","handle", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_MarkerLineFromHandle",_kwnames,&_argo0,&_arg1)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_MarkerLineFromHandle. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = (int )wxStyledTextCtrl_MarkerLineFromHandle(_arg0,_arg1); - - wxPy_END_ALLOW_THREADS; -} _resultobj = Py_BuildValue("i",_result); - return _resultobj; -} - -#define wxStyledTextCtrl_MarkerDeleteHandle(_swigobj,_swigarg0) (_swigobj->MarkerDeleteHandle(_swigarg0)) -static PyObject *_wrap_wxStyledTextCtrl_MarkerDeleteHandle(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - int _arg1; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self","handle", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_MarkerDeleteHandle",_kwnames,&_argo0,&_arg1)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_MarkerDeleteHandle. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_MarkerDeleteHandle(_arg0,_arg1); + wxStyledTextCtrl_EndUndoAction(_arg0); wxPy_END_ALLOW_THREADS; } Py_INCREF(Py_None); @@ -4433,7 +2530,7 @@ static PyObject *_wrap_wxStyledTextCtrl_IndicatorSetStyle(PyObject *self, PyObje int _arg1; int _arg2; PyObject * _argo0 = 0; - char *_kwnames[] = { "self","indicNum","indicStyle", NULL }; + char *_kwnames[] = { "self","indic","style", NULL }; self = self; if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_IndicatorSetStyle",_kwnames,&_argo0,&_arg1,&_arg2)) @@ -4462,7 +2559,7 @@ static PyObject *_wrap_wxStyledTextCtrl_IndicatorGetStyle(PyObject *self, PyObje wxStyledTextCtrl * _arg0; int _arg1; PyObject * _argo0 = 0; - char *_kwnames[] = { "self","indicNum", NULL }; + char *_kwnames[] = { "self","indic", NULL }; self = self; if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_IndicatorGetStyle",_kwnames,&_argo0,&_arg1)) @@ -4483,8 +2580,8 @@ static PyObject *_wrap_wxStyledTextCtrl_IndicatorGetStyle(PyObject *self, PyObje return _resultobj; } -#define wxStyledTextCtrl_IndicatorSetColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->IndicatorSetColour(_swigarg0,_swigarg1)) -static PyObject *_wrap_wxStyledTextCtrl_IndicatorSetColour(PyObject *self, PyObject *args, PyObject *kwargs) { +#define wxStyledTextCtrl_IndicatorSetForeground(_swigobj,_swigarg0,_swigarg1) (_swigobj->IndicatorSetForeground(_swigarg0,_swigarg1)) +static PyObject *_wrap_wxStyledTextCtrl_IndicatorSetForeground(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject * _resultobj; wxStyledTextCtrl * _arg0; int _arg1; @@ -4492,15 +2589,15 @@ static PyObject *_wrap_wxStyledTextCtrl_IndicatorSetColour(PyObject *self, PyObj PyObject * _argo0 = 0; wxColour temp; PyObject * _obj2 = 0; - char *_kwnames[] = { "self","indicNum","colour", NULL }; + char *_kwnames[] = { "self","indic","fore", NULL }; self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxStyledTextCtrl_IndicatorSetColour",_kwnames,&_argo0,&_arg1,&_obj2)) + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxStyledTextCtrl_IndicatorSetForeground",_kwnames,&_argo0,&_arg1,&_obj2)) return NULL; if (_argo0) { if (_argo0 == Py_None) { _arg0 = NULL; } else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_IndicatorSetColour. Expected _wxStyledTextCtrl_p."); + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_IndicatorSetForeground. Expected _wxStyledTextCtrl_p."); return NULL; } } @@ -4511,7 +2608,7 @@ static PyObject *_wrap_wxStyledTextCtrl_IndicatorSetColour(PyObject *self, PyObj } { wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_IndicatorSetColour(_arg0,_arg1,*_arg2); + wxStyledTextCtrl_IndicatorSetForeground(_arg0,_arg1,*_arg2); wxPy_END_ALLOW_THREADS; } Py_INCREF(Py_None); @@ -4519,17 +2616,187 @@ static PyObject *_wrap_wxStyledTextCtrl_IndicatorSetColour(PyObject *self, PyObj return _resultobj; } -#define wxStyledTextCtrl_AutoCompShow(_swigobj,_swigarg0) (_swigobj->AutoCompShow(_swigarg0)) +#define wxStyledTextCtrl_IndicatorGetForeground(_swigobj,_swigarg0) (_swigobj->IndicatorGetForeground(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_IndicatorGetForeground(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxColour * _result; + wxStyledTextCtrl * _arg0; + int _arg1; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self","indic", NULL }; + char _ptemp[128]; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_IndicatorGetForeground",_kwnames,&_argo0,&_arg1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_IndicatorGetForeground. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = new wxColour (wxStyledTextCtrl_IndicatorGetForeground(_arg0,_arg1)); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); + _resultobj = Py_BuildValue("s",_ptemp); + return _resultobj; +} + +#define wxStyledTextCtrl_SetStyleBits(_swigobj,_swigarg0) (_swigobj->SetStyleBits(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_SetStyleBits(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + int _arg1; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self","bits", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetStyleBits",_kwnames,&_argo0,&_arg1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetStyleBits. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_SetStyleBits(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_GetStyleBits(_swigobj) (_swigobj->GetStyleBits()) +static PyObject *_wrap_wxStyledTextCtrl_GetStyleBits(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + int _result; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetStyleBits",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetStyleBits. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxStyledTextCtrl_GetStyleBits(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxStyledTextCtrl_SetLineState(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLineState(_swigarg0,_swigarg1)) +static PyObject *_wrap_wxStyledTextCtrl_SetLineState(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + int _arg1; + int _arg2; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self","line","state", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_SetLineState",_kwnames,&_argo0,&_arg1,&_arg2)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetLineState. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_SetLineState(_arg0,_arg1,_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_GetLineState(_swigobj,_swigarg0) (_swigobj->GetLineState(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_GetLineState(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + int _result; + wxStyledTextCtrl * _arg0; + int _arg1; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self","line", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_GetLineState",_kwnames,&_argo0,&_arg1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetLineState. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxStyledTextCtrl_GetLineState(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxStyledTextCtrl_GetMaxLineState(_swigobj) (_swigobj->GetMaxLineState()) +static PyObject *_wrap_wxStyledTextCtrl_GetMaxLineState(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + int _result; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetMaxLineState",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetMaxLineState. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxStyledTextCtrl_GetMaxLineState(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxStyledTextCtrl_AutoCompShow(_swigobj,_swigarg0,_swigarg1) (_swigobj->AutoCompShow(_swigarg0,_swigarg1)) static PyObject *_wrap_wxStyledTextCtrl_AutoCompShow(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject * _resultobj; wxStyledTextCtrl * _arg0; - wxString * _arg1; + int _arg1; + wxString * _arg2; PyObject * _argo0 = 0; - PyObject * _obj1 = 0; - char *_kwnames[] = { "self","listOfWords", NULL }; + PyObject * _obj2 = 0; + char *_kwnames[] = { "self","lenEntered","itemList", NULL }; self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStyledTextCtrl_AutoCompShow",_kwnames,&_argo0,&_obj1)) + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxStyledTextCtrl_AutoCompShow",_kwnames,&_argo0,&_arg1,&_obj2)) return NULL; if (_argo0) { if (_argo0 == Py_None) { _arg0 = NULL; } @@ -4539,22 +2806,22 @@ static PyObject *_wrap_wxStyledTextCtrl_AutoCompShow(PyObject *self, PyObject *a } } { - if (!PyString_Check(_obj1)) { + if (!PyString_Check(_obj2)) { PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); return NULL; } - _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); + _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); } { wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_AutoCompShow(_arg0,*_arg1); + wxStyledTextCtrl_AutoCompShow(_arg0,_arg1,*_arg2); wxPy_END_ALLOW_THREADS; } Py_INCREF(Py_None); _resultobj = Py_None; { - if (_obj1) - delete _arg1; + if (_obj2) + delete _arg2; } return _resultobj; } @@ -4613,8 +2880,8 @@ static PyObject *_wrap_wxStyledTextCtrl_AutoCompActive(PyObject *self, PyObject return _resultobj; } -#define wxStyledTextCtrl_AutoCompPosAtStart(_swigobj) (_swigobj->AutoCompPosAtStart()) -static PyObject *_wrap_wxStyledTextCtrl_AutoCompPosAtStart(PyObject *self, PyObject *args, PyObject *kwargs) { +#define wxStyledTextCtrl_AutoCompPosStart(_swigobj) (_swigobj->AutoCompPosStart()) +static PyObject *_wrap_wxStyledTextCtrl_AutoCompPosStart(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject * _resultobj; int _result; wxStyledTextCtrl * _arg0; @@ -4622,18 +2889,18 @@ static PyObject *_wrap_wxStyledTextCtrl_AutoCompPosAtStart(PyObject *self, PyObj char *_kwnames[] = { "self", NULL }; self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_AutoCompPosAtStart",_kwnames,&_argo0)) + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_AutoCompPosStart",_kwnames,&_argo0)) return NULL; if (_argo0) { if (_argo0 == Py_None) { _arg0 = NULL; } else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_AutoCompPosAtStart. Expected _wxStyledTextCtrl_p."); + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_AutoCompPosStart. Expected _wxStyledTextCtrl_p."); return NULL; } } { wxPy_BEGIN_ALLOW_THREADS; - _result = (int )wxStyledTextCtrl_AutoCompPosAtStart(_arg0); + _result = (int )wxStyledTextCtrl_AutoCompPosStart(_arg0); wxPy_END_ALLOW_THREADS; } _resultobj = Py_BuildValue("i",_result); @@ -4667,22 +2934,22 @@ static PyObject *_wrap_wxStyledTextCtrl_AutoCompComplete(PyObject *self, PyObjec return _resultobj; } -#define wxStyledTextCtrl_AutoCompStopChars(_swigobj,_swigarg0) (_swigobj->AutoCompStopChars(_swigarg0)) -static PyObject *_wrap_wxStyledTextCtrl_AutoCompStopChars(PyObject *self, PyObject *args, PyObject *kwargs) { +#define wxStyledTextCtrl_AutoCompStops(_swigobj,_swigarg0) (_swigobj->AutoCompStops(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_AutoCompStops(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject * _resultobj; wxStyledTextCtrl * _arg0; wxString * _arg1; PyObject * _argo0 = 0; PyObject * _obj1 = 0; - char *_kwnames[] = { "self","stopChars", NULL }; + char *_kwnames[] = { "self","characterSet", NULL }; self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStyledTextCtrl_AutoCompStopChars",_kwnames,&_argo0,&_obj1)) + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStyledTextCtrl_AutoCompStops",_kwnames,&_argo0,&_obj1)) return NULL; if (_argo0) { if (_argo0 == Py_None) { _arg0 = NULL; } else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_AutoCompStopChars. Expected _wxStyledTextCtrl_p."); + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_AutoCompStops. Expected _wxStyledTextCtrl_p."); return NULL; } } @@ -4695,7 +2962,7 @@ static PyObject *_wrap_wxStyledTextCtrl_AutoCompStopChars(PyObject *self, PyObje } { wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_AutoCompStopChars(_arg0,*_arg1); + wxStyledTextCtrl_AutoCompStops(_arg0,*_arg1); wxPy_END_ALLOW_THREADS; } Py_INCREF(Py_None); @@ -4711,12 +2978,12 @@ static PyObject *_wrap_wxStyledTextCtrl_AutoCompStopChars(PyObject *self, PyObje static PyObject *_wrap_wxStyledTextCtrl_AutoCompSetSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject * _resultobj; wxStyledTextCtrl * _arg0; - char _arg1; + int _arg1; PyObject * _argo0 = 0; - char *_kwnames[] = { "self","separator", NULL }; + char *_kwnames[] = { "self","separatorCharacter", NULL }; self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oc:wxStyledTextCtrl_AutoCompSetSeparator",_kwnames,&_argo0,&_arg1)) + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_AutoCompSetSeparator",_kwnames,&_argo0,&_arg1)) return NULL; if (_argo0) { if (_argo0 == Py_None) { _arg0 = NULL; } @@ -4738,7 +3005,7 @@ static PyObject *_wrap_wxStyledTextCtrl_AutoCompSetSeparator(PyObject *self, PyO #define wxStyledTextCtrl_AutoCompGetSeparator(_swigobj) (_swigobj->AutoCompGetSeparator()) static PyObject *_wrap_wxStyledTextCtrl_AutoCompGetSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject * _resultobj; - char _result; + int _result; wxStyledTextCtrl * _arg0; PyObject * _argo0 = 0; char *_kwnames[] = { "self", NULL }; @@ -4755,10 +3022,10 @@ static PyObject *_wrap_wxStyledTextCtrl_AutoCompGetSeparator(PyObject *self, PyO } { wxPy_BEGIN_ALLOW_THREADS; - _result = (char )wxStyledTextCtrl_AutoCompGetSeparator(_arg0); + _result = (int )wxStyledTextCtrl_AutoCompGetSeparator(_arg0); wxPy_END_ALLOW_THREADS; -} _resultobj = Py_BuildValue("c",_result); +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } @@ -4769,7 +3036,7 @@ static PyObject *_wrap_wxStyledTextCtrl_AutoCompSelect(PyObject *self, PyObject wxString * _arg1; PyObject * _argo0 = 0; PyObject * _obj1 = 0; - char *_kwnames[] = { "self","stringtoselect", NULL }; + char *_kwnames[] = { "self","text", NULL }; self = self; if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStyledTextCtrl_AutoCompSelect",_kwnames,&_argo0,&_obj1)) @@ -4802,6 +3069,1987 @@ static PyObject *_wrap_wxStyledTextCtrl_AutoCompSelect(PyObject *self, PyObject return _resultobj; } +#define wxStyledTextCtrl_AutoCompSetCancelAtStart(_swigobj,_swigarg0) (_swigobj->AutoCompSetCancelAtStart(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_AutoCompSetCancelAtStart(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + bool _arg1; + PyObject * _argo0 = 0; + int tempbool1; + char *_kwnames[] = { "self","cancel", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_AutoCompSetCancelAtStart",_kwnames,&_argo0,&tempbool1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_AutoCompSetCancelAtStart. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } + _arg1 = (bool ) tempbool1; +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_AutoCompSetCancelAtStart(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_AutoCompGetCancelAtStart(_swigobj) (_swigobj->AutoCompGetCancelAtStart()) +static PyObject *_wrap_wxStyledTextCtrl_AutoCompGetCancelAtStart(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + bool _result; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_AutoCompGetCancelAtStart",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_AutoCompGetCancelAtStart. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (bool )wxStyledTextCtrl_AutoCompGetCancelAtStart(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxStyledTextCtrl_AutoCompSetFillUps(_swigobj,_swigarg0) (_swigobj->AutoCompSetFillUps(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_AutoCompSetFillUps(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + wxString * _arg1; + PyObject * _argo0 = 0; + PyObject * _obj1 = 0; + char *_kwnames[] = { "self","characterSet", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStyledTextCtrl_AutoCompSetFillUps",_kwnames,&_argo0,&_obj1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_AutoCompSetFillUps. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + if (!PyString_Check(_obj1)) { + PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); + return NULL; + } + _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); +} +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_AutoCompSetFillUps(_arg0,*_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; +{ + if (_obj1) + delete _arg1; +} + return _resultobj; +} + +#define wxStyledTextCtrl_AutoCompSetChooseSingle(_swigobj,_swigarg0) (_swigobj->AutoCompSetChooseSingle(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_AutoCompSetChooseSingle(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + bool _arg1; + PyObject * _argo0 = 0; + int tempbool1; + char *_kwnames[] = { "self","chooseSingle", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_AutoCompSetChooseSingle",_kwnames,&_argo0,&tempbool1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_AutoCompSetChooseSingle. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } + _arg1 = (bool ) tempbool1; +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_AutoCompSetChooseSingle(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_AutoCompGetChooseSingle(_swigobj) (_swigobj->AutoCompGetChooseSingle()) +static PyObject *_wrap_wxStyledTextCtrl_AutoCompGetChooseSingle(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + bool _result; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_AutoCompGetChooseSingle",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_AutoCompGetChooseSingle. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (bool )wxStyledTextCtrl_AutoCompGetChooseSingle(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxStyledTextCtrl_AutoCompSetIgnoreCase(_swigobj,_swigarg0) (_swigobj->AutoCompSetIgnoreCase(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_AutoCompSetIgnoreCase(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + bool _arg1; + PyObject * _argo0 = 0; + int tempbool1; + char *_kwnames[] = { "self","ignoreCase", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_AutoCompSetIgnoreCase",_kwnames,&_argo0,&tempbool1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_AutoCompSetIgnoreCase. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } + _arg1 = (bool ) tempbool1; +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_AutoCompSetIgnoreCase(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_AutoCompGetIgnoreCase(_swigobj) (_swigobj->AutoCompGetIgnoreCase()) +static PyObject *_wrap_wxStyledTextCtrl_AutoCompGetIgnoreCase(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + bool _result; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_AutoCompGetIgnoreCase",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_AutoCompGetIgnoreCase. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (bool )wxStyledTextCtrl_AutoCompGetIgnoreCase(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxStyledTextCtrl_SetIndent(_swigobj,_swigarg0) (_swigobj->SetIndent(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + int _arg1; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self","indentSize", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetIndent",_kwnames,&_argo0,&_arg1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetIndent. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_SetIndent(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_GetIndent(_swigobj) (_swigobj->GetIndent()) +static PyObject *_wrap_wxStyledTextCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + int _result; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetIndent",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetIndent. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxStyledTextCtrl_GetIndent(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxStyledTextCtrl_SetUseTabs(_swigobj,_swigarg0) (_swigobj->SetUseTabs(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_SetUseTabs(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + bool _arg1; + PyObject * _argo0 = 0; + int tempbool1; + char *_kwnames[] = { "self","useTabs", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetUseTabs",_kwnames,&_argo0,&tempbool1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetUseTabs. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } + _arg1 = (bool ) tempbool1; +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_SetUseTabs(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_GetUseTabs(_swigobj) (_swigobj->GetUseTabs()) +static PyObject *_wrap_wxStyledTextCtrl_GetUseTabs(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + bool _result; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetUseTabs",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetUseTabs. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (bool )wxStyledTextCtrl_GetUseTabs(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxStyledTextCtrl_SetLineIndentation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLineIndentation(_swigarg0,_swigarg1)) +static PyObject *_wrap_wxStyledTextCtrl_SetLineIndentation(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + int _arg1; + int _arg2; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self","line","indentSize", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_SetLineIndentation",_kwnames,&_argo0,&_arg1,&_arg2)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetLineIndentation. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_SetLineIndentation(_arg0,_arg1,_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_GetLineIndentation(_swigobj,_swigarg0) (_swigobj->GetLineIndentation(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_GetLineIndentation(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + int _result; + wxStyledTextCtrl * _arg0; + int _arg1; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self","line", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_GetLineIndentation",_kwnames,&_argo0,&_arg1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetLineIndentation. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxStyledTextCtrl_GetLineIndentation(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxStyledTextCtrl_GetLineIndentPosition(_swigobj,_swigarg0) (_swigobj->GetLineIndentPosition(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_GetLineIndentPosition(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + int _result; + wxStyledTextCtrl * _arg0; + int _arg1; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self","line", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_GetLineIndentPosition",_kwnames,&_argo0,&_arg1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetLineIndentPosition. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxStyledTextCtrl_GetLineIndentPosition(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxStyledTextCtrl_GetColumn(_swigobj,_swigarg0) (_swigobj->GetColumn(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + int _result; + wxStyledTextCtrl * _arg0; + int _arg1; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self","pos", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_GetColumn",_kwnames,&_argo0,&_arg1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetColumn. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxStyledTextCtrl_GetColumn(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxStyledTextCtrl_SetUseHorizontalScrollBar(_swigobj,_swigarg0) (_swigobj->SetUseHorizontalScrollBar(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_SetUseHorizontalScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + bool _arg1; + PyObject * _argo0 = 0; + int tempbool1; + char *_kwnames[] = { "self","show", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetUseHorizontalScrollBar",_kwnames,&_argo0,&tempbool1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetUseHorizontalScrollBar. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } + _arg1 = (bool ) tempbool1; +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_SetUseHorizontalScrollBar(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_GetUseHorizontalScrollBar(_swigobj) (_swigobj->GetUseHorizontalScrollBar()) +static PyObject *_wrap_wxStyledTextCtrl_GetUseHorizontalScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + bool _result; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetUseHorizontalScrollBar",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetUseHorizontalScrollBar. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (bool )wxStyledTextCtrl_GetUseHorizontalScrollBar(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxStyledTextCtrl_SetIndentationGuides(_swigobj,_swigarg0) (_swigobj->SetIndentationGuides(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_SetIndentationGuides(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + bool _arg1; + PyObject * _argo0 = 0; + int tempbool1; + char *_kwnames[] = { "self","show", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetIndentationGuides",_kwnames,&_argo0,&tempbool1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetIndentationGuides. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } + _arg1 = (bool ) tempbool1; +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_SetIndentationGuides(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_GetIndentationGuides(_swigobj) (_swigobj->GetIndentationGuides()) +static PyObject *_wrap_wxStyledTextCtrl_GetIndentationGuides(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + bool _result; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetIndentationGuides",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetIndentationGuides. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (bool )wxStyledTextCtrl_GetIndentationGuides(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxStyledTextCtrl_SetHighlightGuide(_swigobj,_swigarg0) (_swigobj->SetHighlightGuide(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_SetHighlightGuide(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + int _arg1; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self","column", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetHighlightGuide",_kwnames,&_argo0,&_arg1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetHighlightGuide. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_SetHighlightGuide(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_GetHighlightGuide(_swigobj) (_swigobj->GetHighlightGuide()) +static PyObject *_wrap_wxStyledTextCtrl_GetHighlightGuide(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + int _result; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetHighlightGuide",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetHighlightGuide. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxStyledTextCtrl_GetHighlightGuide(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxStyledTextCtrl_GetLineEndPosition(_swigobj,_swigarg0) (_swigobj->GetLineEndPosition(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_GetLineEndPosition(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + int _result; + wxStyledTextCtrl * _arg0; + int _arg1; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self","line", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_GetLineEndPosition",_kwnames,&_argo0,&_arg1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetLineEndPosition. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxStyledTextCtrl_GetLineEndPosition(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxStyledTextCtrl_GetCodePage(_swigobj) (_swigobj->GetCodePage()) +static PyObject *_wrap_wxStyledTextCtrl_GetCodePage(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + int _result; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetCodePage",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetCodePage. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxStyledTextCtrl_GetCodePage(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxStyledTextCtrl_GetCaretForeground(_swigobj) (_swigobj->GetCaretForeground()) +static PyObject *_wrap_wxStyledTextCtrl_GetCaretForeground(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxColour * _result; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + char _ptemp[128]; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetCaretForeground",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetCaretForeground. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = new wxColour (wxStyledTextCtrl_GetCaretForeground(_arg0)); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); + _resultobj = Py_BuildValue("s",_ptemp); + return _resultobj; +} + +#define wxStyledTextCtrl_GetReadOnly(_swigobj) (_swigobj->GetReadOnly()) +static PyObject *_wrap_wxStyledTextCtrl_GetReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + bool _result; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetReadOnly",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetReadOnly. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (bool )wxStyledTextCtrl_GetReadOnly(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxStyledTextCtrl_SetCurrentPos(_swigobj,_swigarg0) (_swigobj->SetCurrentPos(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_SetCurrentPos(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + int _arg1; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self","pos", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetCurrentPos",_kwnames,&_argo0,&_arg1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetCurrentPos. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_SetCurrentPos(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_SetSelectionStart(_swigobj,_swigarg0) (_swigobj->SetSelectionStart(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_SetSelectionStart(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + int _arg1; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self","pos", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetSelectionStart",_kwnames,&_argo0,&_arg1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetSelectionStart. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_SetSelectionStart(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_GetSelectionStart(_swigobj) (_swigobj->GetSelectionStart()) +static PyObject *_wrap_wxStyledTextCtrl_GetSelectionStart(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + int _result; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetSelectionStart",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetSelectionStart. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxStyledTextCtrl_GetSelectionStart(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxStyledTextCtrl_SetSelectionEnd(_swigobj,_swigarg0) (_swigobj->SetSelectionEnd(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_SetSelectionEnd(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + int _arg1; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self","pos", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetSelectionEnd",_kwnames,&_argo0,&_arg1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetSelectionEnd. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_SetSelectionEnd(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_GetSelectionEnd(_swigobj) (_swigobj->GetSelectionEnd()) +static PyObject *_wrap_wxStyledTextCtrl_GetSelectionEnd(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + int _result; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetSelectionEnd",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetSelectionEnd. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxStyledTextCtrl_GetSelectionEnd(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxStyledTextCtrl_SetPrintMagnification(_swigobj,_swigarg0) (_swigobj->SetPrintMagnification(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_SetPrintMagnification(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + int _arg1; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self","magnification", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetPrintMagnification",_kwnames,&_argo0,&_arg1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetPrintMagnification. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_SetPrintMagnification(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_GetPrintMagnification(_swigobj) (_swigobj->GetPrintMagnification()) +static PyObject *_wrap_wxStyledTextCtrl_GetPrintMagnification(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + int _result; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetPrintMagnification",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetPrintMagnification. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxStyledTextCtrl_GetPrintMagnification(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxStyledTextCtrl_SetPrintColourMode(_swigobj,_swigarg0) (_swigobj->SetPrintColourMode(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_SetPrintColourMode(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + int _arg1; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self","mode", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetPrintColourMode",_kwnames,&_argo0,&_arg1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetPrintColourMode. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_SetPrintColourMode(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_GetPrintColourMode(_swigobj) (_swigobj->GetPrintColourMode()) +static PyObject *_wrap_wxStyledTextCtrl_GetPrintColourMode(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + int _result; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetPrintColourMode",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetPrintColourMode. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxStyledTextCtrl_GetPrintColourMode(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxStyledTextCtrl_FindText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->FindText(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) +static PyObject *_wrap_wxStyledTextCtrl_FindText(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + int _result; + wxStyledTextCtrl * _arg0; + int _arg1; + int _arg2; + wxString * _arg3; + bool _arg4; + bool _arg5; + PyObject * _argo0 = 0; + PyObject * _obj3 = 0; + int tempbool4; + int tempbool5; + char *_kwnames[] = { "self","minPos","maxPos","text","caseSensitive","wholeWord", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiOii:wxStyledTextCtrl_FindText",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&tempbool4,&tempbool5)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_FindText. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + if (!PyString_Check(_obj3)) { + PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); + return NULL; + } + _arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3)); +} + _arg4 = (bool ) tempbool4; + _arg5 = (bool ) tempbool5; +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxStyledTextCtrl_FindText(_arg0,_arg1,_arg2,*_arg3,_arg4,_arg5); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); +{ + if (_obj3) + delete _arg3; +} + return _resultobj; +} + +#define wxStyledTextCtrl_FormatRange(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FormatRange(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) +static PyObject *_wrap_wxStyledTextCtrl_FormatRange(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + int _result; + wxStyledTextCtrl * _arg0; + bool _arg1; + int _arg2; + int _arg3; + wxDC * _arg4; + wxDC * _arg5; + wxRect * _arg6; + wxRect * _arg7; + PyObject * _argo0 = 0; + int tempbool1; + PyObject * _argo4 = 0; + PyObject * _argo5 = 0; + wxRect temp; + PyObject * _obj6 = 0; + wxRect temp0; + PyObject * _obj7 = 0; + char *_kwnames[] = { "self","doDraw","startPos","endPos","draw","target","renderRect","pageRect", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiiOOOO:wxStyledTextCtrl_FormatRange",_kwnames,&_argo0,&tempbool1,&_arg2,&_arg3,&_argo4,&_argo5,&_obj6,&_obj7)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_FormatRange. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } + _arg1 = (bool ) tempbool1; + if (_argo4) { + if (_argo4 == Py_None) { _arg4 = NULL; } + else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxDC_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxStyledTextCtrl_FormatRange. Expected _wxDC_p."); + return NULL; + } + } + if (_argo5) { + if (_argo5 == Py_None) { _arg5 = NULL; } + else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxDC_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxStyledTextCtrl_FormatRange. Expected _wxDC_p."); + return NULL; + } + } +{ + _arg6 = &temp; + if (! wxRect_helper(_obj6, &_arg6)) + return NULL; +} +{ + _arg7 = &temp0; + if (! wxRect_helper(_obj7, &_arg7)) + return NULL; +} +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxStyledTextCtrl_FormatRange(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,*_arg6,*_arg7); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxStyledTextCtrl_GetFirstVisibleLine(_swigobj) (_swigobj->GetFirstVisibleLine()) +static PyObject *_wrap_wxStyledTextCtrl_GetFirstVisibleLine(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + int _result; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetFirstVisibleLine",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetFirstVisibleLine. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxStyledTextCtrl_GetFirstVisibleLine(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxStyledTextCtrl_GetLine(_swigobj,_swigarg0) (_swigobj->GetLine(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_GetLine(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxString * _result; + wxStyledTextCtrl * _arg0; + int _arg1; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self","line", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_GetLine",_kwnames,&_argo0,&_arg1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetLine. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = new wxString (wxStyledTextCtrl_GetLine(_arg0,_arg1)); + + wxPy_END_ALLOW_THREADS; +}{ + _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); +} +{ + delete _result; +} + return _resultobj; +} + +#define wxStyledTextCtrl_GetLineCount(_swigobj) (_swigobj->GetLineCount()) +static PyObject *_wrap_wxStyledTextCtrl_GetLineCount(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + int _result; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetLineCount",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetLineCount. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxStyledTextCtrl_GetLineCount(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxStyledTextCtrl_SetMarginLeft(_swigobj,_swigarg0) (_swigobj->SetMarginLeft(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_SetMarginLeft(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + int _arg1; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self","width", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetMarginLeft",_kwnames,&_argo0,&_arg1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetMarginLeft. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_SetMarginLeft(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_GetMarginLeft(_swigobj) (_swigobj->GetMarginLeft()) +static PyObject *_wrap_wxStyledTextCtrl_GetMarginLeft(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + int _result; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetMarginLeft",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetMarginLeft. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxStyledTextCtrl_GetMarginLeft(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxStyledTextCtrl_SetMarginRight(_swigobj,_swigarg0) (_swigobj->SetMarginRight(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_SetMarginRight(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + int _arg1; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self","width", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetMarginRight",_kwnames,&_argo0,&_arg1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetMarginRight. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_SetMarginRight(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_GetMarginRight(_swigobj) (_swigobj->GetMarginRight()) +static PyObject *_wrap_wxStyledTextCtrl_GetMarginRight(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + int _result; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetMarginRight",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetMarginRight. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxStyledTextCtrl_GetMarginRight(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxStyledTextCtrl_GetModify(_swigobj) (_swigobj->GetModify()) +static PyObject *_wrap_wxStyledTextCtrl_GetModify(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + bool _result; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetModify",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetModify. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (bool )wxStyledTextCtrl_GetModify(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxStyledTextCtrl_SetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSelection(_swigarg0,_swigarg1)) +static PyObject *_wrap_wxStyledTextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + int _arg1; + int _arg2; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self","start","end", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_SetSelection",_kwnames,&_argo0,&_arg1,&_arg2)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetSelection. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_SetSelection(_arg0,_arg1,_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_GetSelectedText(_swigobj) (_swigobj->GetSelectedText()) +static PyObject *_wrap_wxStyledTextCtrl_GetSelectedText(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxString * _result; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetSelectedText",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetSelectedText. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = new wxString (wxStyledTextCtrl_GetSelectedText(_arg0)); + + wxPy_END_ALLOW_THREADS; +}{ + _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); +} +{ + delete _result; +} + return _resultobj; +} + +#define wxStyledTextCtrl_GetTextRange(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetTextRange(_swigarg0,_swigarg1)) +static PyObject *_wrap_wxStyledTextCtrl_GetTextRange(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxString * _result; + wxStyledTextCtrl * _arg0; + int _arg1; + int _arg2; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self","startPos","endPos", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_GetTextRange",_kwnames,&_argo0,&_arg1,&_arg2)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetTextRange. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = new wxString (wxStyledTextCtrl_GetTextRange(_arg0,_arg1,_arg2)); + + wxPy_END_ALLOW_THREADS; +}{ + _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); +} +{ + delete _result; +} + return _resultobj; +} + +#define wxStyledTextCtrl_HideSelection(_swigobj,_swigarg0) (_swigobj->HideSelection(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_HideSelection(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + bool _arg1; + PyObject * _argo0 = 0; + int tempbool1; + char *_kwnames[] = { "self","normal", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_HideSelection",_kwnames,&_argo0,&tempbool1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_HideSelection. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } + _arg1 = (bool ) tempbool1; +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_HideSelection(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_LineFromPosition(_swigobj,_swigarg0) (_swigobj->LineFromPosition(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_LineFromPosition(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + int _result; + wxStyledTextCtrl * _arg0; + int _arg1; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self","pos", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_LineFromPosition",_kwnames,&_argo0,&_arg1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_LineFromPosition. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxStyledTextCtrl_LineFromPosition(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxStyledTextCtrl_PositionFromLine(_swigobj,_swigarg0) (_swigobj->PositionFromLine(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_PositionFromLine(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + int _result; + wxStyledTextCtrl * _arg0; + int _arg1; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self","line", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_PositionFromLine",_kwnames,&_argo0,&_arg1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_PositionFromLine. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxStyledTextCtrl_PositionFromLine(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxStyledTextCtrl_LineScroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->LineScroll(_swigarg0,_swigarg1)) +static PyObject *_wrap_wxStyledTextCtrl_LineScroll(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + int _arg1; + int _arg2; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self","columns","lines", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_LineScroll",_kwnames,&_argo0,&_arg1,&_arg2)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_LineScroll. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_LineScroll(_arg0,_arg1,_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_EnsureCaretVisible(_swigobj) (_swigobj->EnsureCaretVisible()) +static PyObject *_wrap_wxStyledTextCtrl_EnsureCaretVisible(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_EnsureCaretVisible",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_EnsureCaretVisible. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_EnsureCaretVisible(_arg0); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_ReplaceSelection(_swigobj,_swigarg0) (_swigobj->ReplaceSelection(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_ReplaceSelection(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + wxString * _arg1; + PyObject * _argo0 = 0; + PyObject * _obj1 = 0; + char *_kwnames[] = { "self","text", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStyledTextCtrl_ReplaceSelection",_kwnames,&_argo0,&_obj1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_ReplaceSelection. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + if (!PyString_Check(_obj1)) { + PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); + return NULL; + } + _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); +} +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_ReplaceSelection(_arg0,*_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; +{ + if (_obj1) + delete _arg1; +} + return _resultobj; +} + +#define wxStyledTextCtrl_SetReadOnly(_swigobj,_swigarg0) (_swigobj->SetReadOnly(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_SetReadOnly(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + bool _arg1; + PyObject * _argo0 = 0; + int tempbool1; + char *_kwnames[] = { "self","readOnly", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetReadOnly",_kwnames,&_argo0,&tempbool1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetReadOnly. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } + _arg1 = (bool ) tempbool1; +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_SetReadOnly(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_CanPaste(_swigobj) (_swigobj->CanPaste()) +static PyObject *_wrap_wxStyledTextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + bool _result; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_CanPaste",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_CanPaste. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (bool )wxStyledTextCtrl_CanPaste(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxStyledTextCtrl_CanUndo(_swigobj) (_swigobj->CanUndo()) +static PyObject *_wrap_wxStyledTextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + bool _result; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_CanUndo",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_CanUndo. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (bool )wxStyledTextCtrl_CanUndo(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxStyledTextCtrl_EmptyUndoBuffer(_swigobj) (_swigobj->EmptyUndoBuffer()) +static PyObject *_wrap_wxStyledTextCtrl_EmptyUndoBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_EmptyUndoBuffer",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_EmptyUndoBuffer. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_EmptyUndoBuffer(_arg0); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_Undo(_swigobj) (_swigobj->Undo()) +static PyObject *_wrap_wxStyledTextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_Undo",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_Undo. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_Undo(_arg0); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_Cut(_swigobj) (_swigobj->Cut()) +static PyObject *_wrap_wxStyledTextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_Cut",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_Cut. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_Cut(_arg0); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_Copy(_swigobj) (_swigobj->Copy()) +static PyObject *_wrap_wxStyledTextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_Copy",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_Copy. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_Copy(_arg0); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_Paste(_swigobj) (_swigobj->Paste()) +static PyObject *_wrap_wxStyledTextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_Paste",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_Paste. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_Paste(_arg0); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_Clear(_swigobj) (_swigobj->Clear()) +static PyObject *_wrap_wxStyledTextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_Clear",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_Clear. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_Clear(_arg0); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + wxString * _arg1; + PyObject * _argo0 = 0; + PyObject * _obj1 = 0; + char *_kwnames[] = { "self","text", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStyledTextCtrl_SetText",_kwnames,&_argo0,&_obj1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetText. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + if (!PyString_Check(_obj1)) { + PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); + return NULL; + } + _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); +} +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_SetText(_arg0,*_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; +{ + if (_obj1) + delete _arg1; +} + return _resultobj; +} + +#define wxStyledTextCtrl_GetText(_swigobj) (_swigobj->GetText()) +static PyObject *_wrap_wxStyledTextCtrl_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxString * _result; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetText",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetText. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = new wxString (wxStyledTextCtrl_GetText(_arg0)); + + wxPy_END_ALLOW_THREADS; +}{ + _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); +} +{ + delete _result; +} + return _resultobj; +} + +#define wxStyledTextCtrl_GetTextLength(_swigobj) (_swigobj->GetTextLength()) +static PyObject *_wrap_wxStyledTextCtrl_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + int _result; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetTextLength",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetTextLength. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxStyledTextCtrl_GetTextLength(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxStyledTextCtrl_SetOvertype(_swigobj,_swigarg0) (_swigobj->SetOvertype(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_SetOvertype(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + bool _arg1; + PyObject * _argo0 = 0; + int tempbool1; + char *_kwnames[] = { "self","overtype", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetOvertype",_kwnames,&_argo0,&tempbool1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetOvertype. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } + _arg1 = (bool ) tempbool1; +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_SetOvertype(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_GetOvertype(_swigobj) (_swigobj->GetOvertype()) +static PyObject *_wrap_wxStyledTextCtrl_GetOvertype(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + bool _result; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetOvertype",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetOvertype. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (bool )wxStyledTextCtrl_GetOvertype(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + #define wxStyledTextCtrl_CallTipShow(_swigobj,_swigarg0,_swigarg1) (_swigobj->CallTipShow(_swigarg0,_swigarg1)) static PyObject *_wrap_wxStyledTextCtrl_CallTipShow(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject * _resultobj; @@ -4810,7 +5058,7 @@ static PyObject *_wrap_wxStyledTextCtrl_CallTipShow(PyObject *self, PyObject *ar wxString * _arg2; PyObject * _argo0 = 0; PyObject * _obj2 = 0; - char *_kwnames[] = { "self","pos","text", NULL }; + char *_kwnames[] = { "self","pos","definition", NULL }; self = self; if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxStyledTextCtrl_CallTipShow",_kwnames,&_argo0,&_arg1,&_obj2)) @@ -4961,7 +5209,7 @@ static PyObject *_wrap_wxStyledTextCtrl_CallTipSetBackground(PyObject *self, PyO PyObject * _argo0 = 0; wxColour temp; PyObject * _obj1 = 0; - char *_kwnames[] = { "self","colour", NULL }; + char *_kwnames[] = { "self","back", NULL }; self = self; if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStyledTextCtrl_CallTipSetBackground",_kwnames,&_argo0,&_obj1)) @@ -4988,256 +5236,6 @@ static PyObject *_wrap_wxStyledTextCtrl_CallTipSetBackground(PyObject *self, PyO return _resultobj; } -#define wxStyledTextCtrl_CmdKeyAssign(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->CmdKeyAssign(_swigarg0,_swigarg1,_swigarg2)) -static PyObject *_wrap_wxStyledTextCtrl_CmdKeyAssign(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - int _arg1; - int _arg2; - int _arg3; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self","key","modifiers","cmd", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxStyledTextCtrl_CmdKeyAssign",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_CmdKeyAssign. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_CmdKeyAssign(_arg0,_arg1,_arg2,_arg3); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_CmdKeyClear(_swigobj,_swigarg0,_swigarg1) (_swigobj->CmdKeyClear(_swigarg0,_swigarg1)) -static PyObject *_wrap_wxStyledTextCtrl_CmdKeyClear(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - int _arg1; - int _arg2; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self","key","modifiers", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_CmdKeyClear",_kwnames,&_argo0,&_arg1,&_arg2)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_CmdKeyClear. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_CmdKeyClear(_arg0,_arg1,_arg2); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_CmdKeyClearAll(_swigobj) (_swigobj->CmdKeyClearAll()) -static PyObject *_wrap_wxStyledTextCtrl_CmdKeyClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_CmdKeyClearAll",_kwnames,&_argo0)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_CmdKeyClearAll. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_CmdKeyClearAll(_arg0); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_CmdKeyExecute(_swigobj,_swigarg0) (_swigobj->CmdKeyExecute(_swigarg0)) -static PyObject *_wrap_wxStyledTextCtrl_CmdKeyExecute(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - int _arg1; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self","cmd", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_CmdKeyExecute",_kwnames,&_argo0,&_arg1)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_CmdKeyExecute. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_CmdKeyExecute(_arg0,_arg1); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_FormatRange(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FormatRange(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) -static PyObject *_wrap_wxStyledTextCtrl_FormatRange(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - int _result; - wxStyledTextCtrl * _arg0; - bool _arg1; - int _arg2; - int _arg3; - wxDC * _arg4; - wxDC * _arg5; - wxRect * _arg6; - wxRect * _arg7; - PyObject * _argo0 = 0; - int tempbool1; - PyObject * _argo4 = 0; - PyObject * _argo5 = 0; - wxRect temp; - PyObject * _obj6 = 0; - wxRect temp0; - PyObject * _obj7 = 0; - char *_kwnames[] = { "self","doDraw","startPos","endPos","draw","target","renderRect","pageRect", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiiOOOO:wxStyledTextCtrl_FormatRange",_kwnames,&_argo0,&tempbool1,&_arg2,&_arg3,&_argo4,&_argo5,&_obj6,&_obj7)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_FormatRange. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } - _arg1 = (bool ) tempbool1; - if (_argo4) { - if (_argo4 == Py_None) { _arg4 = NULL; } - else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxDC_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxStyledTextCtrl_FormatRange. Expected _wxDC_p."); - return NULL; - } - } - if (_argo5) { - if (_argo5 == Py_None) { _arg5 = NULL; } - else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxDC_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxStyledTextCtrl_FormatRange. Expected _wxDC_p."); - return NULL; - } - } -{ - _arg6 = &temp; - if (! wxRect_helper(_obj6, &_arg6)) - return NULL; -} -{ - _arg7 = &temp0; - if (! wxRect_helper(_obj7, &_arg7)) - return NULL; -} -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = (int )wxStyledTextCtrl_FormatRange(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,*_arg6,*_arg7); - - wxPy_END_ALLOW_THREADS; -} _resultobj = Py_BuildValue("i",_result); - return _resultobj; -} - -#define wxStyledTextCtrl_GetDocument(_swigobj) (_swigobj->GetDocument()) -static PyObject *_wrap_wxStyledTextCtrl_GetDocument(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - void * _result; - wxStyledTextCtrl * _arg0; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self", NULL }; - char _ptemp[128]; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetDocument",_kwnames,&_argo0)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetDocument. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - _result = (void *)wxStyledTextCtrl_GetDocument(_arg0); - - wxPy_END_ALLOW_THREADS; -} if (_result) { - SWIG_MakePtr(_ptemp, (char *) _result,"_void_p"); - _resultobj = Py_BuildValue("s",_ptemp); - } else { - Py_INCREF(Py_None); - _resultobj = Py_None; - } - return _resultobj; -} - -#define wxStyledTextCtrl_SetDocument(_swigobj,_swigarg0) (_swigobj->SetDocument(_swigarg0)) -static PyObject *_wrap_wxStyledTextCtrl_SetDocument(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - void * _arg1; - PyObject * _argo0 = 0; - PyObject * _argo1 = 0; - char *_kwnames[] = { "self","document", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStyledTextCtrl_SetDocument",_kwnames,&_argo0,&_argo1)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetDocument. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } - if (_argo1) { - if (_argo1 == Py_None) { _arg1 = NULL; } - else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,(char *) 0 )) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStyledTextCtrl_SetDocument. Expected _void_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_SetDocument(_arg0,_arg1); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - #define wxStyledTextCtrl_VisibleFromDocLine(_swigobj,_swigarg0) (_swigobj->VisibleFromDocLine(_swigarg0)) static PyObject *_wrap_wxStyledTextCtrl_VisibleFromDocLine(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject * _resultobj; @@ -5245,7 +5243,7 @@ static PyObject *_wrap_wxStyledTextCtrl_VisibleFromDocLine(PyObject *self, PyObj wxStyledTextCtrl * _arg0; int _arg1; PyObject * _argo0 = 0; - char *_kwnames[] = { "self","docLine", NULL }; + char *_kwnames[] = { "self","line", NULL }; self = self; if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_VisibleFromDocLine",_kwnames,&_argo0,&_arg1)) @@ -5273,7 +5271,7 @@ static PyObject *_wrap_wxStyledTextCtrl_DocLineFromVisible(PyObject *self, PyObj wxStyledTextCtrl * _arg0; int _arg1; PyObject * _argo0 = 0; - char *_kwnames[] = { "self","displayLine", NULL }; + char *_kwnames[] = { "self","lineDisplay", NULL }; self = self; if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_DocLineFromVisible",_kwnames,&_argo0,&_arg1)) @@ -5297,7 +5295,6 @@ static PyObject *_wrap_wxStyledTextCtrl_DocLineFromVisible(PyObject *self, PyObj #define wxStyledTextCtrl_SetFoldLevel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetFoldLevel(_swigarg0,_swigarg1)) static PyObject *_wrap_wxStyledTextCtrl_SetFoldLevel(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject * _resultobj; - int _result; wxStyledTextCtrl * _arg0; int _arg1; int _arg2; @@ -5316,10 +5313,11 @@ static PyObject *_wrap_wxStyledTextCtrl_SetFoldLevel(PyObject *self, PyObject *a } { wxPy_BEGIN_ALLOW_THREADS; - _result = (int )wxStyledTextCtrl_SetFoldLevel(_arg0,_arg1,_arg2); + wxStyledTextCtrl_SetFoldLevel(_arg0,_arg1,_arg2); wxPy_END_ALLOW_THREADS; -} _resultobj = Py_BuildValue("i",_result); +} Py_INCREF(Py_None); + _resultobj = Py_None; return _resultobj; } @@ -5637,26 +5635,56 @@ static PyObject *_wrap_wxStyledTextCtrl_SetFoldFlags(PyObject *self, PyObject *a return _resultobj; } -#define wxStyledTextCtrl_ZoomIn(_swigobj) (_swigobj->ZoomIn()) -static PyObject *_wrap_wxStyledTextCtrl_ZoomIn(PyObject *self, PyObject *args, PyObject *kwargs) { +#define wxStyledTextCtrl_LineLength(_swigobj,_swigarg0) (_swigobj->LineLength(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_LineLength(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject * _resultobj; + int _result; wxStyledTextCtrl * _arg0; + int _arg1; PyObject * _argo0 = 0; - char *_kwnames[] = { "self", NULL }; + char *_kwnames[] = { "self","line", NULL }; self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_ZoomIn",_kwnames,&_argo0)) + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_LineLength",_kwnames,&_argo0,&_arg1)) return NULL; if (_argo0) { if (_argo0 == Py_None) { _arg0 = NULL; } else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_ZoomIn. Expected _wxStyledTextCtrl_p."); + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_LineLength. Expected _wxStyledTextCtrl_p."); return NULL; } } { wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_ZoomIn(_arg0); + _result = (int )wxStyledTextCtrl_LineLength(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxStyledTextCtrl_BraceHighlight(_swigobj,_swigarg0,_swigarg1) (_swigobj->BraceHighlight(_swigarg0,_swigarg1)) +static PyObject *_wrap_wxStyledTextCtrl_BraceHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + int _arg1; + int _arg2; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self","pos1","pos2", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_BraceHighlight",_kwnames,&_argo0,&_arg1,&_arg2)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_BraceHighlight. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_BraceHighlight(_arg0,_arg1,_arg2); wxPy_END_ALLOW_THREADS; } Py_INCREF(Py_None); @@ -5664,54 +5692,27 @@ static PyObject *_wrap_wxStyledTextCtrl_ZoomIn(PyObject *self, PyObject *args, P return _resultobj; } -#define wxStyledTextCtrl_ZoomOut(_swigobj) (_swigobj->ZoomOut()) -static PyObject *_wrap_wxStyledTextCtrl_ZoomOut(PyObject *self, PyObject *args, PyObject *kwargs) { - PyObject * _resultobj; - wxStyledTextCtrl * _arg0; - PyObject * _argo0 = 0; - char *_kwnames[] = { "self", NULL }; - - self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_ZoomOut",_kwnames,&_argo0)) - return NULL; - if (_argo0) { - if (_argo0 == Py_None) { _arg0 = NULL; } - else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_ZoomOut. Expected _wxStyledTextCtrl_p."); - return NULL; - } - } -{ - wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_ZoomOut(_arg0); - - wxPy_END_ALLOW_THREADS; -} Py_INCREF(Py_None); - _resultobj = Py_None; - return _resultobj; -} - -#define wxStyledTextCtrl_SetZoom(_swigobj,_swigarg0) (_swigobj->SetZoom(_swigarg0)) -static PyObject *_wrap_wxStyledTextCtrl_SetZoom(PyObject *self, PyObject *args, PyObject *kwargs) { +#define wxStyledTextCtrl_BraceBadLight(_swigobj,_swigarg0) (_swigobj->BraceBadLight(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_BraceBadLight(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject * _resultobj; wxStyledTextCtrl * _arg0; int _arg1; PyObject * _argo0 = 0; - char *_kwnames[] = { "self","zoom", NULL }; + char *_kwnames[] = { "self","pos", NULL }; self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetZoom",_kwnames,&_argo0,&_arg1)) + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_BraceBadLight",_kwnames,&_argo0,&_arg1)) return NULL; if (_argo0) { if (_argo0 == Py_None) { _arg0 = NULL; } else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetZoom. Expected _wxStyledTextCtrl_p."); + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_BraceBadLight. Expected _wxStyledTextCtrl_p."); return NULL; } } { wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_SetZoom(_arg0,_arg1); + wxStyledTextCtrl_BraceBadLight(_arg0,_arg1); wxPy_END_ALLOW_THREADS; } Py_INCREF(Py_None); @@ -5719,33 +5720,189 @@ static PyObject *_wrap_wxStyledTextCtrl_SetZoom(PyObject *self, PyObject *args, return _resultobj; } -#define wxStyledTextCtrl_GetZoom(_swigobj) (_swigobj->GetZoom()) -static PyObject *_wrap_wxStyledTextCtrl_GetZoom(PyObject *self, PyObject *args, PyObject *kwargs) { +#define wxStyledTextCtrl_BraceMatch(_swigobj,_swigarg0) (_swigobj->BraceMatch(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_BraceMatch(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject * _resultobj; int _result; wxStyledTextCtrl * _arg0; + int _arg1; PyObject * _argo0 = 0; - char *_kwnames[] = { "self", NULL }; + char *_kwnames[] = { "self","pos", NULL }; self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetZoom",_kwnames,&_argo0)) + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_BraceMatch",_kwnames,&_argo0,&_arg1)) return NULL; if (_argo0) { if (_argo0 == Py_None) { _arg0 = NULL; } else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetZoom. Expected _wxStyledTextCtrl_p."); + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_BraceMatch. Expected _wxStyledTextCtrl_p."); return NULL; } } { wxPy_BEGIN_ALLOW_THREADS; - _result = (int )wxStyledTextCtrl_GetZoom(_arg0); + _result = (int )wxStyledTextCtrl_BraceMatch(_arg0,_arg1); wxPy_END_ALLOW_THREADS; } _resultobj = Py_BuildValue("i",_result); return _resultobj; } +#define wxStyledTextCtrl_GetViewEOL(_swigobj) (_swigobj->GetViewEOL()) +static PyObject *_wrap_wxStyledTextCtrl_GetViewEOL(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + bool _result; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetViewEOL",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetViewEOL. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (bool )wxStyledTextCtrl_GetViewEOL(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxStyledTextCtrl_SetViewEOL(_swigobj,_swigarg0) (_swigobj->SetViewEOL(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_SetViewEOL(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + bool _arg1; + PyObject * _argo0 = 0; + int tempbool1; + char *_kwnames[] = { "self","visible", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetViewEOL",_kwnames,&_argo0,&tempbool1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetViewEOL. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } + _arg1 = (bool ) tempbool1; +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_SetViewEOL(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_GetDocPointer(_swigobj) (_swigobj->GetDocPointer()) +static PyObject *_wrap_wxStyledTextCtrl_GetDocPointer(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + void * _result; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + char _ptemp[128]; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetDocPointer",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetDocPointer. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (void *)wxStyledTextCtrl_GetDocPointer(_arg0); + + wxPy_END_ALLOW_THREADS; +} if (_result) { + SWIG_MakePtr(_ptemp, (char *) _result,"_void_p"); + _resultobj = Py_BuildValue("s",_ptemp); + } else { + Py_INCREF(Py_None); + _resultobj = Py_None; + } + return _resultobj; +} + +#define wxStyledTextCtrl_SetDocPointer(_swigobj,_swigarg0) (_swigobj->SetDocPointer(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_SetDocPointer(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + void * _arg1; + PyObject * _argo0 = 0; + PyObject * _argo1 = 0; + char *_kwnames[] = { "self","docPointer", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStyledTextCtrl_SetDocPointer",_kwnames,&_argo0,&_argo1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetDocPointer. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } + if (_argo1) { + if (_argo1 == Py_None) { _arg1 = NULL; } + else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,(char *) 0 )) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStyledTextCtrl_SetDocPointer. Expected _void_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_SetDocPointer(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_SetModEventMask(_swigobj,_swigarg0) (_swigobj->SetModEventMask(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_SetModEventMask(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + int _arg1; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self","mask", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetModEventMask",_kwnames,&_argo0,&_arg1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetModEventMask. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_SetModEventMask(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + #define wxStyledTextCtrl_GetEdgeColumn(_swigobj) (_swigobj->GetEdgeColumn()) static PyObject *_wrap_wxStyledTextCtrl_GetEdgeColumn(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject * _resultobj; @@ -5804,7 +5961,7 @@ static PyObject *_wrap_wxStyledTextCtrl_SetEdgeColumn(PyObject *self, PyObject * #define wxStyledTextCtrl_GetEdgeMode(_swigobj) (_swigobj->GetEdgeMode()) static PyObject *_wrap_wxStyledTextCtrl_GetEdgeMode(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject * _resultobj; - wxSTC_EDGE _result; + int _result; wxStyledTextCtrl * _arg0; PyObject * _argo0 = 0; char *_kwnames[] = { "self", NULL }; @@ -5821,7 +5978,7 @@ static PyObject *_wrap_wxStyledTextCtrl_GetEdgeMode(PyObject *self, PyObject *ar } { wxPy_BEGIN_ALLOW_THREADS; - _result = (wxSTC_EDGE )wxStyledTextCtrl_GetEdgeMode(_arg0); + _result = (int )wxStyledTextCtrl_GetEdgeMode(_arg0); wxPy_END_ALLOW_THREADS; } _resultobj = Py_BuildValue("i",_result); @@ -5832,7 +5989,7 @@ static PyObject *_wrap_wxStyledTextCtrl_GetEdgeMode(PyObject *self, PyObject *ar static PyObject *_wrap_wxStyledTextCtrl_SetEdgeMode(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject * _resultobj; wxStyledTextCtrl * _arg0; - wxSTC_EDGE _arg1; + int _arg1; PyObject * _argo0 = 0; char *_kwnames[] = { "self","mode", NULL }; @@ -5893,7 +6050,7 @@ static PyObject *_wrap_wxStyledTextCtrl_SetEdgeColour(PyObject *self, PyObject * PyObject * _argo0 = 0; wxColour temp; PyObject * _obj1 = 0; - char *_kwnames[] = { "self","colour", NULL }; + char *_kwnames[] = { "self","edgeColour", NULL }; self = self; if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStyledTextCtrl_SetEdgeColour",_kwnames,&_argo0,&_obj1)) @@ -5920,11 +6077,475 @@ static PyObject *_wrap_wxStyledTextCtrl_SetEdgeColour(PyObject *self, PyObject * return _resultobj; } +#define wxStyledTextCtrl_SearchAnchor(_swigobj) (_swigobj->SearchAnchor()) +static PyObject *_wrap_wxStyledTextCtrl_SearchAnchor(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_SearchAnchor",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SearchAnchor. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_SearchAnchor(_arg0); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_SearchNext(_swigobj,_swigarg0,_swigarg1) (_swigobj->SearchNext(_swigarg0,_swigarg1)) +static PyObject *_wrap_wxStyledTextCtrl_SearchNext(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + int _result; + wxStyledTextCtrl * _arg0; + int _arg1; + wxString * _arg2; + PyObject * _argo0 = 0; + PyObject * _obj2 = 0; + char *_kwnames[] = { "self","flags","text", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxStyledTextCtrl_SearchNext",_kwnames,&_argo0,&_arg1,&_obj2)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SearchNext. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + if (!PyString_Check(_obj2)) { + PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); + return NULL; + } + _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); +} +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxStyledTextCtrl_SearchNext(_arg0,_arg1,*_arg2); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); +{ + if (_obj2) + delete _arg2; +} + return _resultobj; +} + +#define wxStyledTextCtrl_SearchPrev(_swigobj,_swigarg0,_swigarg1) (_swigobj->SearchPrev(_swigarg0,_swigarg1)) +static PyObject *_wrap_wxStyledTextCtrl_SearchPrev(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + int _result; + wxStyledTextCtrl * _arg0; + int _arg1; + wxString * _arg2; + PyObject * _argo0 = 0; + PyObject * _obj2 = 0; + char *_kwnames[] = { "self","flags","text", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxStyledTextCtrl_SearchPrev",_kwnames,&_argo0,&_arg1,&_obj2)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SearchPrev. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + if (!PyString_Check(_obj2)) { + PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); + return NULL; + } + _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); +} +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxStyledTextCtrl_SearchPrev(_arg0,_arg1,*_arg2); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); +{ + if (_obj2) + delete _arg2; +} + return _resultobj; +} + +#define wxStyledTextCtrl_SetCaretPolicy(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetCaretPolicy(_swigarg0,_swigarg1)) +static PyObject *_wrap_wxStyledTextCtrl_SetCaretPolicy(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + int _arg1; + int _arg2; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self","caretPolicy","caretSlop", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_SetCaretPolicy",_kwnames,&_argo0,&_arg1,&_arg2)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetCaretPolicy. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_SetCaretPolicy(_arg0,_arg1,_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_LinesOnScreen(_swigobj) (_swigobj->LinesOnScreen()) +static PyObject *_wrap_wxStyledTextCtrl_LinesOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + int _result; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_LinesOnScreen",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_LinesOnScreen. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxStyledTextCtrl_LinesOnScreen(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxStyledTextCtrl_UsePopUp(_swigobj,_swigarg0) (_swigobj->UsePopUp(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_UsePopUp(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + bool _arg1; + PyObject * _argo0 = 0; + int tempbool1; + char *_kwnames[] = { "self","allowPopUp", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_UsePopUp",_kwnames,&_argo0,&tempbool1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_UsePopUp. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } + _arg1 = (bool ) tempbool1; +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_UsePopUp(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_SelectionIsRectangle(_swigobj) (_swigobj->SelectionIsRectangle()) +static PyObject *_wrap_wxStyledTextCtrl_SelectionIsRectangle(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + bool _result; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_SelectionIsRectangle",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SelectionIsRectangle. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (bool )wxStyledTextCtrl_SelectionIsRectangle(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxStyledTextCtrl_SetZoom(_swigobj,_swigarg0) (_swigobj->SetZoom(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_SetZoom(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + int _arg1; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self","zoom", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetZoom",_kwnames,&_argo0,&_arg1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetZoom. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_SetZoom(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_GetZoom(_swigobj) (_swigobj->GetZoom()) +static PyObject *_wrap_wxStyledTextCtrl_GetZoom(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + int _result; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetZoom",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetZoom. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxStyledTextCtrl_GetZoom(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxStyledTextCtrl_CreateDocument(_swigobj) (_swigobj->CreateDocument()) +static PyObject *_wrap_wxStyledTextCtrl_CreateDocument(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + void * _result; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + char _ptemp[128]; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_CreateDocument",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_CreateDocument. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (void *)wxStyledTextCtrl_CreateDocument(_arg0); + + wxPy_END_ALLOW_THREADS; +} if (_result) { + SWIG_MakePtr(_ptemp, (char *) _result,"_void_p"); + _resultobj = Py_BuildValue("s",_ptemp); + } else { + Py_INCREF(Py_None); + _resultobj = Py_None; + } + return _resultobj; +} + +#define wxStyledTextCtrl_AddRefDocument(_swigobj,_swigarg0) (_swigobj->AddRefDocument(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_AddRefDocument(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + void * _arg1; + PyObject * _argo0 = 0; + PyObject * _argo1 = 0; + char *_kwnames[] = { "self","docPointer", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStyledTextCtrl_AddRefDocument",_kwnames,&_argo0,&_argo1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_AddRefDocument. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } + if (_argo1) { + if (_argo1 == Py_None) { _arg1 = NULL; } + else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,(char *) 0 )) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStyledTextCtrl_AddRefDocument. Expected _void_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_AddRefDocument(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_ReleaseDocument(_swigobj,_swigarg0) (_swigobj->ReleaseDocument(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_ReleaseDocument(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + void * _arg1; + PyObject * _argo0 = 0; + PyObject * _argo1 = 0; + char *_kwnames[] = { "self","docPointer", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxStyledTextCtrl_ReleaseDocument",_kwnames,&_argo0,&_argo1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_ReleaseDocument. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } + if (_argo1) { + if (_argo1 == Py_None) { _arg1 = NULL; } + else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,(char *) 0 )) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxStyledTextCtrl_ReleaseDocument. Expected _void_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_ReleaseDocument(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_GetModEventMask(_swigobj) (_swigobj->GetModEventMask()) +static PyObject *_wrap_wxStyledTextCtrl_GetModEventMask(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + int _result; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetModEventMask",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetModEventMask. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = (int )wxStyledTextCtrl_GetModEventMask(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxStyledTextCtrl_StartRecord(_swigobj) (_swigobj->StartRecord()) +static PyObject *_wrap_wxStyledTextCtrl_StartRecord(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_StartRecord",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_StartRecord. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_StartRecord(_arg0); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_StopRecord(_swigobj) (_swigobj->StopRecord()) +static PyObject *_wrap_wxStyledTextCtrl_StopRecord(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_StopRecord",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_StopRecord. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_StopRecord(_arg0); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + #define wxStyledTextCtrl_SetLexer(_swigobj,_swigarg0) (_swigobj->SetLexer(_swigarg0)) static PyObject *_wrap_wxStyledTextCtrl_SetLexer(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject * _resultobj; wxStyledTextCtrl * _arg0; - wxSTC_LEX _arg1; + int _arg1; PyObject * _argo0 = 0; char *_kwnames[] = { "self","lexer", NULL }; @@ -5951,7 +6572,7 @@ static PyObject *_wrap_wxStyledTextCtrl_SetLexer(PyObject *self, PyObject *args, #define wxStyledTextCtrl_GetLexer(_swigobj) (_swigobj->GetLexer()) static PyObject *_wrap_wxStyledTextCtrl_GetLexer(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject * _resultobj; - wxSTC_LEX _result; + int _result; wxStyledTextCtrl * _arg0; PyObject * _argo0 = 0; char *_kwnames[] = { "self", NULL }; @@ -5968,7 +6589,7 @@ static PyObject *_wrap_wxStyledTextCtrl_GetLexer(PyObject *self, PyObject *args, } { wxPy_BEGIN_ALLOW_THREADS; - _result = (wxSTC_LEX )wxStyledTextCtrl_GetLexer(_arg0); + _result = (int )wxStyledTextCtrl_GetLexer(_arg0); wxPy_END_ALLOW_THREADS; } _resultobj = Py_BuildValue("i",_result); @@ -6057,23 +6678,23 @@ static PyObject *_wrap_wxStyledTextCtrl_SetProperty(PyObject *self, PyObject *ar return _resultobj; } -#define wxStyledTextCtrl_SetKeywords(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetKeywords(_swigarg0,_swigarg1)) -static PyObject *_wrap_wxStyledTextCtrl_SetKeywords(PyObject *self, PyObject *args, PyObject *kwargs) { +#define wxStyledTextCtrl_SetKeyWords(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetKeyWords(_swigarg0,_swigarg1)) +static PyObject *_wrap_wxStyledTextCtrl_SetKeyWords(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject * _resultobj; wxStyledTextCtrl * _arg0; int _arg1; wxString * _arg2; PyObject * _argo0 = 0; PyObject * _obj2 = 0; - char *_kwnames[] = { "self","keywordSet","keywordList", NULL }; + char *_kwnames[] = { "self","keywordSet","keyWords", NULL }; self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxStyledTextCtrl_SetKeywords",_kwnames,&_argo0,&_arg1,&_obj2)) + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxStyledTextCtrl_SetKeyWords",_kwnames,&_argo0,&_arg1,&_obj2)) return NULL; if (_argo0) { if (_argo0 == Py_None) { _arg0 = NULL; } else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetKeywords. Expected _wxStyledTextCtrl_p."); + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetKeyWords. Expected _wxStyledTextCtrl_p."); return NULL; } } @@ -6086,7 +6707,7 @@ static PyObject *_wrap_wxStyledTextCtrl_SetKeywords(PyObject *self, PyObject *ar } { wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_SetKeywords(_arg0,_arg1,*_arg2); + wxStyledTextCtrl_SetKeyWords(_arg0,_arg1,*_arg2); wxPy_END_ALLOW_THREADS; } Py_INCREF(Py_None); @@ -6098,31 +6719,293 @@ static PyObject *_wrap_wxStyledTextCtrl_SetKeywords(PyObject *self, PyObject *ar return _resultobj; } -#define wxStyledTextCtrl_SetModEventMask(_swigobj,_swigarg0) (_swigobj->SetModEventMask(_swigarg0)) -static PyObject *_wrap_wxStyledTextCtrl_SetModEventMask(PyObject *self, PyObject *args, PyObject *kwargs) { +#define wxStyledTextCtrl_GetCurrentLine(_swigobj) (_swigobj->GetCurrentLine()) +static PyObject *_wrap_wxStyledTextCtrl_GetCurrentLine(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject * _resultobj; + int _result; wxStyledTextCtrl * _arg0; - int _arg1; PyObject * _argo0 = 0; - char *_kwnames[] = { "self","mask", NULL }; + char *_kwnames[] = { "self", NULL }; self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_SetModEventMask",_kwnames,&_argo0,&_arg1)) + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetCurrentLine",_kwnames,&_argo0)) return NULL; if (_argo0) { if (_argo0 == Py_None) { _arg0 = NULL; } else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetModEventMask. Expected _wxStyledTextCtrl_p."); + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetCurrentLine. Expected _wxStyledTextCtrl_p."); return NULL; } } { wxPy_BEGIN_ALLOW_THREADS; - wxStyledTextCtrl_SetModEventMask(_arg0,_arg1); + _result = (int )wxStyledTextCtrl_GetCurrentLine(_arg0); + + wxPy_END_ALLOW_THREADS; +} _resultobj = Py_BuildValue("i",_result); + return _resultobj; +} + +#define wxStyledTextCtrl_StyleSetSpec(_swigobj,_swigarg0,_swigarg1) (_swigobj->StyleSetSpec(_swigarg0,_swigarg1)) +static PyObject *_wrap_wxStyledTextCtrl_StyleSetSpec(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + int _arg1; + wxString * _arg2; + PyObject * _argo0 = 0; + PyObject * _obj2 = 0; + char *_kwnames[] = { "self","styleNum","spec", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxStyledTextCtrl_StyleSetSpec",_kwnames,&_argo0,&_arg1,&_obj2)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_StyleSetSpec. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + if (!PyString_Check(_obj2)) { + PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); + return NULL; + } + _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); +} +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_StyleSetSpec(_arg0,_arg1,*_arg2); wxPy_END_ALLOW_THREADS; } Py_INCREF(Py_None); _resultobj = Py_None; +{ + if (_obj2) + delete _arg2; +} + return _resultobj; +} + +#define wxStyledTextCtrl_StyleSetFont(_swigobj,_swigarg0,_swigarg1) (_swigobj->StyleSetFont(_swigarg0,_swigarg1)) +static PyObject *_wrap_wxStyledTextCtrl_StyleSetFont(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + int _arg1; + wxFont * _arg2; + PyObject * _argo0 = 0; + PyObject * _argo2 = 0; + char *_kwnames[] = { "self","styleNum","font", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxStyledTextCtrl_StyleSetFont",_kwnames,&_argo0,&_arg1,&_argo2)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_StyleSetFont. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } + if (_argo2) { + if (_argo2 == Py_None) { _arg2 = NULL; } + else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxStyledTextCtrl_StyleSetFont. Expected _wxFont_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_StyleSetFont(_arg0,_arg1,*_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_StyleSetFontAttr(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->StyleSetFontAttr(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) +static PyObject *_wrap_wxStyledTextCtrl_StyleSetFontAttr(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + int _arg1; + int _arg2; + wxString * _arg3; + bool _arg4; + bool _arg5; + bool _arg6; + PyObject * _argo0 = 0; + PyObject * _obj3 = 0; + int tempbool4; + int tempbool5; + int tempbool6; + char *_kwnames[] = { "self","styleNum","size","faceName","bold","italic","underline", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiOiii:wxStyledTextCtrl_StyleSetFontAttr",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&tempbool4,&tempbool5,&tempbool6)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_StyleSetFontAttr. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + if (!PyString_Check(_obj3)) { + PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); + return NULL; + } + _arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3)); +} + _arg4 = (bool ) tempbool4; + _arg5 = (bool ) tempbool5; + _arg6 = (bool ) tempbool6; +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_StyleSetFontAttr(_arg0,_arg1,_arg2,*_arg3,_arg4,_arg5,_arg6); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; +{ + if (_obj3) + delete _arg3; +} + return _resultobj; +} + +#define wxStyledTextCtrl_CmdKeyExecute(_swigobj,_swigarg0) (_swigobj->CmdKeyExecute(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_CmdKeyExecute(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + int _arg1; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self","cmd", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_CmdKeyExecute",_kwnames,&_argo0,&_arg1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_CmdKeyExecute. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_CmdKeyExecute(_arg0,_arg1); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_SetMargins(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetMargins(_swigarg0,_swigarg1)) +static PyObject *_wrap_wxStyledTextCtrl_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + int _arg1; + int _arg2; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self","left","right", NULL }; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxStyledTextCtrl_SetMargins",_kwnames,&_argo0,&_arg1,&_arg2)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_SetMargins. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_SetMargins(_arg0,_arg1,_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; + return _resultobj; +} + +#define wxStyledTextCtrl_GetSelection(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSelection(_swigarg0,_swigarg1)) +static PyObject *_wrap_wxStyledTextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxStyledTextCtrl * _arg0; + int * _arg1; + int temp; + int * _arg2; + int temp0; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self", NULL }; + + self = self; +{ + _arg1 = &temp; +} +{ + _arg2 = &temp0; +} + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStyledTextCtrl_GetSelection",_kwnames,&_argo0)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_GetSelection. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + wxStyledTextCtrl_GetSelection(_arg0,_arg1,_arg2); + + wxPy_END_ALLOW_THREADS; +} Py_INCREF(Py_None); + _resultobj = Py_None; +{ + PyObject *o; + o = PyInt_FromLong((long) (*_arg1)); + _resultobj = t_output_helper(_resultobj, o); +} +{ + PyObject *o; + o = PyInt_FromLong((long) (*_arg2)); + _resultobj = t_output_helper(_resultobj, o); +} + return _resultobj; +} + +#define wxStyledTextCtrl_PointFromPosition(_swigobj,_swigarg0) (_swigobj->PointFromPosition(_swigarg0)) +static PyObject *_wrap_wxStyledTextCtrl_PointFromPosition(PyObject *self, PyObject *args, PyObject *kwargs) { + PyObject * _resultobj; + wxPoint * _result; + wxStyledTextCtrl * _arg0; + int _arg1; + PyObject * _argo0 = 0; + char *_kwnames[] = { "self","pos", NULL }; + char _ptemp[128]; + + self = self; + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxStyledTextCtrl_PointFromPosition",_kwnames,&_argo0,&_arg1)) + return NULL; + if (_argo0) { + if (_argo0 == Py_None) { _arg0 = NULL; } + else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStyledTextCtrl_p")) { + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStyledTextCtrl_PointFromPosition. Expected _wxStyledTextCtrl_p."); + return NULL; + } + } +{ + wxPy_BEGIN_ALLOW_THREADS; + _result = new wxPoint (wxStyledTextCtrl_PointFromPosition(_arg0,_arg1)); + + wxPy_END_ALLOW_THREADS; +} SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); + _resultobj = Py_BuildValue("s",_ptemp); return _resultobj; } @@ -7123,22 +8006,49 @@ static PyMethodDef stc_cMethods[] = { { "wxStyledTextEvent_SetPosition", (PyCFunction) _wrap_wxStyledTextEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, { "delete_wxStyledTextEvent", (PyCFunction) _wrap_delete_wxStyledTextEvent, METH_VARARGS | METH_KEYWORDS }, { "new_wxStyledTextEvent", (PyCFunction) _wrap_new_wxStyledTextEvent, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_SetModEventMask", (PyCFunction) _wrap_wxStyledTextCtrl_SetModEventMask, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_SetKeywords", (PyCFunction) _wrap_wxStyledTextCtrl_SetKeywords, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_PointFromPosition", (PyCFunction) _wrap_wxStyledTextCtrl_PointFromPosition, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_GetSelection", (PyCFunction) _wrap_wxStyledTextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_SetMargins", (PyCFunction) _wrap_wxStyledTextCtrl_SetMargins, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_CmdKeyExecute", (PyCFunction) _wrap_wxStyledTextCtrl_CmdKeyExecute, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_StyleSetFontAttr", (PyCFunction) _wrap_wxStyledTextCtrl_StyleSetFontAttr, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_StyleSetFont", (PyCFunction) _wrap_wxStyledTextCtrl_StyleSetFont, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_StyleSetSpec", (PyCFunction) _wrap_wxStyledTextCtrl_StyleSetSpec, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_GetCurrentLine", (PyCFunction) _wrap_wxStyledTextCtrl_GetCurrentLine, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_SetKeyWords", (PyCFunction) _wrap_wxStyledTextCtrl_SetKeyWords, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_SetProperty", (PyCFunction) _wrap_wxStyledTextCtrl_SetProperty, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_Colourise", (PyCFunction) _wrap_wxStyledTextCtrl_Colourise, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_GetLexer", (PyCFunction) _wrap_wxStyledTextCtrl_GetLexer, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_SetLexer", (PyCFunction) _wrap_wxStyledTextCtrl_SetLexer, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_StopRecord", (PyCFunction) _wrap_wxStyledTextCtrl_StopRecord, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_StartRecord", (PyCFunction) _wrap_wxStyledTextCtrl_StartRecord, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_GetModEventMask", (PyCFunction) _wrap_wxStyledTextCtrl_GetModEventMask, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_ReleaseDocument", (PyCFunction) _wrap_wxStyledTextCtrl_ReleaseDocument, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_AddRefDocument", (PyCFunction) _wrap_wxStyledTextCtrl_AddRefDocument, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_CreateDocument", (PyCFunction) _wrap_wxStyledTextCtrl_CreateDocument, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_GetZoom", (PyCFunction) _wrap_wxStyledTextCtrl_GetZoom, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_SetZoom", (PyCFunction) _wrap_wxStyledTextCtrl_SetZoom, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_SelectionIsRectangle", (PyCFunction) _wrap_wxStyledTextCtrl_SelectionIsRectangle, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_UsePopUp", (PyCFunction) _wrap_wxStyledTextCtrl_UsePopUp, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_LinesOnScreen", (PyCFunction) _wrap_wxStyledTextCtrl_LinesOnScreen, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_SetCaretPolicy", (PyCFunction) _wrap_wxStyledTextCtrl_SetCaretPolicy, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_SearchPrev", (PyCFunction) _wrap_wxStyledTextCtrl_SearchPrev, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_SearchNext", (PyCFunction) _wrap_wxStyledTextCtrl_SearchNext, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_SearchAnchor", (PyCFunction) _wrap_wxStyledTextCtrl_SearchAnchor, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_SetEdgeColour", (PyCFunction) _wrap_wxStyledTextCtrl_SetEdgeColour, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_GetEdgeColour", (PyCFunction) _wrap_wxStyledTextCtrl_GetEdgeColour, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_SetEdgeMode", (PyCFunction) _wrap_wxStyledTextCtrl_SetEdgeMode, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_GetEdgeMode", (PyCFunction) _wrap_wxStyledTextCtrl_GetEdgeMode, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_SetEdgeColumn", (PyCFunction) _wrap_wxStyledTextCtrl_SetEdgeColumn, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_GetEdgeColumn", (PyCFunction) _wrap_wxStyledTextCtrl_GetEdgeColumn, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_GetZoom", (PyCFunction) _wrap_wxStyledTextCtrl_GetZoom, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_SetZoom", (PyCFunction) _wrap_wxStyledTextCtrl_SetZoom, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_ZoomOut", (PyCFunction) _wrap_wxStyledTextCtrl_ZoomOut, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_ZoomIn", (PyCFunction) _wrap_wxStyledTextCtrl_ZoomIn, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_SetModEventMask", (PyCFunction) _wrap_wxStyledTextCtrl_SetModEventMask, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_SetDocPointer", (PyCFunction) _wrap_wxStyledTextCtrl_SetDocPointer, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_GetDocPointer", (PyCFunction) _wrap_wxStyledTextCtrl_GetDocPointer, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_SetViewEOL", (PyCFunction) _wrap_wxStyledTextCtrl_SetViewEOL, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_GetViewEOL", (PyCFunction) _wrap_wxStyledTextCtrl_GetViewEOL, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_BraceMatch", (PyCFunction) _wrap_wxStyledTextCtrl_BraceMatch, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_BraceBadLight", (PyCFunction) _wrap_wxStyledTextCtrl_BraceBadLight, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_BraceHighlight", (PyCFunction) _wrap_wxStyledTextCtrl_BraceHighlight, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_LineLength", (PyCFunction) _wrap_wxStyledTextCtrl_LineLength, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_SetFoldFlags", (PyCFunction) _wrap_wxStyledTextCtrl_SetFoldFlags, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_EnsureVisible", (PyCFunction) _wrap_wxStyledTextCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_ToggleFold", (PyCFunction) _wrap_wxStyledTextCtrl_ToggleFold, METH_VARARGS | METH_KEYWORDS }, @@ -7153,60 +8063,120 @@ static PyMethodDef stc_cMethods[] = { { "wxStyledTextCtrl_SetFoldLevel", (PyCFunction) _wrap_wxStyledTextCtrl_SetFoldLevel, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_DocLineFromVisible", (PyCFunction) _wrap_wxStyledTextCtrl_DocLineFromVisible, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_VisibleFromDocLine", (PyCFunction) _wrap_wxStyledTextCtrl_VisibleFromDocLine, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_SetDocument", (PyCFunction) _wrap_wxStyledTextCtrl_SetDocument, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_GetDocument", (PyCFunction) _wrap_wxStyledTextCtrl_GetDocument, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_FormatRange", (PyCFunction) _wrap_wxStyledTextCtrl_FormatRange, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_CmdKeyExecute", (PyCFunction) _wrap_wxStyledTextCtrl_CmdKeyExecute, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_CmdKeyClearAll", (PyCFunction) _wrap_wxStyledTextCtrl_CmdKeyClearAll, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_CmdKeyClear", (PyCFunction) _wrap_wxStyledTextCtrl_CmdKeyClear, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_CmdKeyAssign", (PyCFunction) _wrap_wxStyledTextCtrl_CmdKeyAssign, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_CallTipSetBackground", (PyCFunction) _wrap_wxStyledTextCtrl_CallTipSetBackground, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_CallTipSetHighlight", (PyCFunction) _wrap_wxStyledTextCtrl_CallTipSetHighlight, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_CallTipPosAtStart", (PyCFunction) _wrap_wxStyledTextCtrl_CallTipPosAtStart, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_CallTipActive", (PyCFunction) _wrap_wxStyledTextCtrl_CallTipActive, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_CallTipCancel", (PyCFunction) _wrap_wxStyledTextCtrl_CallTipCancel, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_CallTipShow", (PyCFunction) _wrap_wxStyledTextCtrl_CallTipShow, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_GetOvertype", (PyCFunction) _wrap_wxStyledTextCtrl_GetOvertype, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_SetOvertype", (PyCFunction) _wrap_wxStyledTextCtrl_SetOvertype, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_GetTextLength", (PyCFunction) _wrap_wxStyledTextCtrl_GetTextLength, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_GetText", (PyCFunction) _wrap_wxStyledTextCtrl_GetText, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_SetText", (PyCFunction) _wrap_wxStyledTextCtrl_SetText, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_Clear", (PyCFunction) _wrap_wxStyledTextCtrl_Clear, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_Paste", (PyCFunction) _wrap_wxStyledTextCtrl_Paste, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_Copy", (PyCFunction) _wrap_wxStyledTextCtrl_Copy, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_Cut", (PyCFunction) _wrap_wxStyledTextCtrl_Cut, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_Undo", (PyCFunction) _wrap_wxStyledTextCtrl_Undo, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_EmptyUndoBuffer", (PyCFunction) _wrap_wxStyledTextCtrl_EmptyUndoBuffer, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_CanUndo", (PyCFunction) _wrap_wxStyledTextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_CanPaste", (PyCFunction) _wrap_wxStyledTextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_SetReadOnly", (PyCFunction) _wrap_wxStyledTextCtrl_SetReadOnly, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_ReplaceSelection", (PyCFunction) _wrap_wxStyledTextCtrl_ReplaceSelection, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_EnsureCaretVisible", (PyCFunction) _wrap_wxStyledTextCtrl_EnsureCaretVisible, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_LineScroll", (PyCFunction) _wrap_wxStyledTextCtrl_LineScroll, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_PositionFromLine", (PyCFunction) _wrap_wxStyledTextCtrl_PositionFromLine, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_LineFromPosition", (PyCFunction) _wrap_wxStyledTextCtrl_LineFromPosition, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_HideSelection", (PyCFunction) _wrap_wxStyledTextCtrl_HideSelection, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_GetTextRange", (PyCFunction) _wrap_wxStyledTextCtrl_GetTextRange, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_GetSelectedText", (PyCFunction) _wrap_wxStyledTextCtrl_GetSelectedText, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_SetSelection", (PyCFunction) _wrap_wxStyledTextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_GetModify", (PyCFunction) _wrap_wxStyledTextCtrl_GetModify, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_GetMarginRight", (PyCFunction) _wrap_wxStyledTextCtrl_GetMarginRight, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_SetMarginRight", (PyCFunction) _wrap_wxStyledTextCtrl_SetMarginRight, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_GetMarginLeft", (PyCFunction) _wrap_wxStyledTextCtrl_GetMarginLeft, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_SetMarginLeft", (PyCFunction) _wrap_wxStyledTextCtrl_SetMarginLeft, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_GetLineCount", (PyCFunction) _wrap_wxStyledTextCtrl_GetLineCount, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_GetLine", (PyCFunction) _wrap_wxStyledTextCtrl_GetLine, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_GetFirstVisibleLine", (PyCFunction) _wrap_wxStyledTextCtrl_GetFirstVisibleLine, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_FormatRange", (PyCFunction) _wrap_wxStyledTextCtrl_FormatRange, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_FindText", (PyCFunction) _wrap_wxStyledTextCtrl_FindText, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_GetPrintColourMode", (PyCFunction) _wrap_wxStyledTextCtrl_GetPrintColourMode, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_SetPrintColourMode", (PyCFunction) _wrap_wxStyledTextCtrl_SetPrintColourMode, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_GetPrintMagnification", (PyCFunction) _wrap_wxStyledTextCtrl_GetPrintMagnification, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_SetPrintMagnification", (PyCFunction) _wrap_wxStyledTextCtrl_SetPrintMagnification, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_GetSelectionEnd", (PyCFunction) _wrap_wxStyledTextCtrl_GetSelectionEnd, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_SetSelectionEnd", (PyCFunction) _wrap_wxStyledTextCtrl_SetSelectionEnd, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_GetSelectionStart", (PyCFunction) _wrap_wxStyledTextCtrl_GetSelectionStart, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_SetSelectionStart", (PyCFunction) _wrap_wxStyledTextCtrl_SetSelectionStart, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_SetCurrentPos", (PyCFunction) _wrap_wxStyledTextCtrl_SetCurrentPos, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_GetReadOnly", (PyCFunction) _wrap_wxStyledTextCtrl_GetReadOnly, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_GetCaretForeground", (PyCFunction) _wrap_wxStyledTextCtrl_GetCaretForeground, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_GetCodePage", (PyCFunction) _wrap_wxStyledTextCtrl_GetCodePage, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_GetLineEndPosition", (PyCFunction) _wrap_wxStyledTextCtrl_GetLineEndPosition, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_GetHighlightGuide", (PyCFunction) _wrap_wxStyledTextCtrl_GetHighlightGuide, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_SetHighlightGuide", (PyCFunction) _wrap_wxStyledTextCtrl_SetHighlightGuide, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_GetIndentationGuides", (PyCFunction) _wrap_wxStyledTextCtrl_GetIndentationGuides, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_SetIndentationGuides", (PyCFunction) _wrap_wxStyledTextCtrl_SetIndentationGuides, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_GetUseHorizontalScrollBar", (PyCFunction) _wrap_wxStyledTextCtrl_GetUseHorizontalScrollBar, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_SetUseHorizontalScrollBar", (PyCFunction) _wrap_wxStyledTextCtrl_SetUseHorizontalScrollBar, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_GetColumn", (PyCFunction) _wrap_wxStyledTextCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_GetLineIndentPosition", (PyCFunction) _wrap_wxStyledTextCtrl_GetLineIndentPosition, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_GetLineIndentation", (PyCFunction) _wrap_wxStyledTextCtrl_GetLineIndentation, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_SetLineIndentation", (PyCFunction) _wrap_wxStyledTextCtrl_SetLineIndentation, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_GetUseTabs", (PyCFunction) _wrap_wxStyledTextCtrl_GetUseTabs, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_SetUseTabs", (PyCFunction) _wrap_wxStyledTextCtrl_SetUseTabs, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_GetIndent", (PyCFunction) _wrap_wxStyledTextCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_SetIndent", (PyCFunction) _wrap_wxStyledTextCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_AutoCompGetIgnoreCase", (PyCFunction) _wrap_wxStyledTextCtrl_AutoCompGetIgnoreCase, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_AutoCompSetIgnoreCase", (PyCFunction) _wrap_wxStyledTextCtrl_AutoCompSetIgnoreCase, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_AutoCompGetChooseSingle", (PyCFunction) _wrap_wxStyledTextCtrl_AutoCompGetChooseSingle, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_AutoCompSetChooseSingle", (PyCFunction) _wrap_wxStyledTextCtrl_AutoCompSetChooseSingle, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_AutoCompSetFillUps", (PyCFunction) _wrap_wxStyledTextCtrl_AutoCompSetFillUps, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_AutoCompGetCancelAtStart", (PyCFunction) _wrap_wxStyledTextCtrl_AutoCompGetCancelAtStart, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_AutoCompSetCancelAtStart", (PyCFunction) _wrap_wxStyledTextCtrl_AutoCompSetCancelAtStart, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_AutoCompSelect", (PyCFunction) _wrap_wxStyledTextCtrl_AutoCompSelect, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_AutoCompGetSeparator", (PyCFunction) _wrap_wxStyledTextCtrl_AutoCompGetSeparator, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_AutoCompSetSeparator", (PyCFunction) _wrap_wxStyledTextCtrl_AutoCompSetSeparator, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_AutoCompStopChars", (PyCFunction) _wrap_wxStyledTextCtrl_AutoCompStopChars, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_AutoCompStops", (PyCFunction) _wrap_wxStyledTextCtrl_AutoCompStops, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_AutoCompComplete", (PyCFunction) _wrap_wxStyledTextCtrl_AutoCompComplete, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_AutoCompPosAtStart", (PyCFunction) _wrap_wxStyledTextCtrl_AutoCompPosAtStart, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_AutoCompPosStart", (PyCFunction) _wrap_wxStyledTextCtrl_AutoCompPosStart, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_AutoCompActive", (PyCFunction) _wrap_wxStyledTextCtrl_AutoCompActive, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_AutoCompCancel", (PyCFunction) _wrap_wxStyledTextCtrl_AutoCompCancel, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_AutoCompShow", (PyCFunction) _wrap_wxStyledTextCtrl_AutoCompShow, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_IndicatorSetColour", (PyCFunction) _wrap_wxStyledTextCtrl_IndicatorSetColour, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_GetMaxLineState", (PyCFunction) _wrap_wxStyledTextCtrl_GetMaxLineState, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_GetLineState", (PyCFunction) _wrap_wxStyledTextCtrl_GetLineState, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_SetLineState", (PyCFunction) _wrap_wxStyledTextCtrl_SetLineState, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_GetStyleBits", (PyCFunction) _wrap_wxStyledTextCtrl_GetStyleBits, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_SetStyleBits", (PyCFunction) _wrap_wxStyledTextCtrl_SetStyleBits, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_IndicatorGetForeground", (PyCFunction) _wrap_wxStyledTextCtrl_IndicatorGetForeground, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_IndicatorSetForeground", (PyCFunction) _wrap_wxStyledTextCtrl_IndicatorSetForeground, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_IndicatorGetStyle", (PyCFunction) _wrap_wxStyledTextCtrl_IndicatorGetStyle, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_IndicatorSetStyle", (PyCFunction) _wrap_wxStyledTextCtrl_IndicatorSetStyle, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_MarkerDeleteHandle", (PyCFunction) _wrap_wxStyledTextCtrl_MarkerDeleteHandle, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_MarkerLineFromHandle", (PyCFunction) _wrap_wxStyledTextCtrl_MarkerLineFromHandle, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_MarkerGetPrevLine", (PyCFunction) _wrap_wxStyledTextCtrl_MarkerGetPrevLine, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_MarkerGetNextLine", (PyCFunction) _wrap_wxStyledTextCtrl_MarkerGetNextLine, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_MarkerGet", (PyCFunction) _wrap_wxStyledTextCtrl_MarkerGet, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_MarkerDeleteAll", (PyCFunction) _wrap_wxStyledTextCtrl_MarkerDeleteAll, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_MarkerDelete", (PyCFunction) _wrap_wxStyledTextCtrl_MarkerDelete, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_MarkerAdd", (PyCFunction) _wrap_wxStyledTextCtrl_MarkerAdd, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_MarkerSetBackground", (PyCFunction) _wrap_wxStyledTextCtrl_MarkerSetBackground, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_MarkerSetForeground", (PyCFunction) _wrap_wxStyledTextCtrl_MarkerSetForeground, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_MarkerSetType", (PyCFunction) _wrap_wxStyledTextCtrl_MarkerSetType, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_MarkerDefine", (PyCFunction) _wrap_wxStyledTextCtrl_MarkerDefine, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_BraceMatch", (PyCFunction) _wrap_wxStyledTextCtrl_BraceMatch, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_BraceBadlight", (PyCFunction) _wrap_wxStyledTextCtrl_BraceBadlight, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_BraceHighlight", (PyCFunction) _wrap_wxStyledTextCtrl_BraceHighlight, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_SetUsePop", (PyCFunction) _wrap_wxStyledTextCtrl_SetUsePop, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_EndUndoAction", (PyCFunction) _wrap_wxStyledTextCtrl_EndUndoAction, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_BeginUndoAction", (PyCFunction) _wrap_wxStyledTextCtrl_BeginUndoAction, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_SetWordChars", (PyCFunction) _wrap_wxStyledTextCtrl_SetWordChars, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_GetLineIndentationPos", (PyCFunction) _wrap_wxStyledTextCtrl_GetLineIndentationPos, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_GetLineIndentation", (PyCFunction) _wrap_wxStyledTextCtrl_GetLineIndentation, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_SetLineIndentation", (PyCFunction) _wrap_wxStyledTextCtrl_SetLineIndentation, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_SetUseTabs", (PyCFunction) _wrap_wxStyledTextCtrl_SetUseTabs, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_SetIndent", (PyCFunction) _wrap_wxStyledTextCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_SetTabWidth", (PyCFunction) _wrap_wxStyledTextCtrl_SetTabWidth, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_SetBufferedDraw", (PyCFunction) _wrap_wxStyledTextCtrl_SetBufferedDraw, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_SetCaretPeriod", (PyCFunction) _wrap_wxStyledTextCtrl_SetCaretPeriod, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_GetCaretPeriod", (PyCFunction) _wrap_wxStyledTextCtrl_GetCaretPeriod, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_StyleSetVisible", (PyCFunction) _wrap_wxStyledTextCtrl_StyleSetVisible, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_SetStyleBytes", (PyCFunction) _wrap_wxStyledTextCtrl_SetStyleBytes, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_CmdKeyClearAll", (PyCFunction) _wrap_wxStyledTextCtrl_CmdKeyClearAll, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_CmdKeyClear", (PyCFunction) _wrap_wxStyledTextCtrl_CmdKeyClear, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_CmdKeyAssign", (PyCFunction) _wrap_wxStyledTextCtrl_CmdKeyAssign, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_SetCaretForeground", (PyCFunction) _wrap_wxStyledTextCtrl_SetCaretForeground, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_SetSelectionBackground", (PyCFunction) _wrap_wxStyledTextCtrl_SetSelectionBackground, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_SetSelectionForeground", (PyCFunction) _wrap_wxStyledTextCtrl_SetSelectionForeground, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_SetSelBackground", (PyCFunction) _wrap_wxStyledTextCtrl_SetSelBackground, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_SetSelForeground", (PyCFunction) _wrap_wxStyledTextCtrl_SetSelForeground, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_StyleSetUnderline", (PyCFunction) _wrap_wxStyledTextCtrl_StyleSetUnderline, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_StyleResetDefault", (PyCFunction) _wrap_wxStyledTextCtrl_StyleResetDefault, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_StyleSetEOLFilled", (PyCFunction) _wrap_wxStyledTextCtrl_StyleSetEOLFilled, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_StyleSetFaceName", (PyCFunction) _wrap_wxStyledTextCtrl_StyleSetFaceName, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_StyleSetSize", (PyCFunction) _wrap_wxStyledTextCtrl_StyleSetSize, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_StyleSetItalic", (PyCFunction) _wrap_wxStyledTextCtrl_StyleSetItalic, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_StyleSetBold", (PyCFunction) _wrap_wxStyledTextCtrl_StyleSetBold, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_StyleSetBackground", (PyCFunction) _wrap_wxStyledTextCtrl_StyleSetBackground, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_StyleSetForeground", (PyCFunction) _wrap_wxStyledTextCtrl_StyleSetForeground, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_StyleClearAll", (PyCFunction) _wrap_wxStyledTextCtrl_StyleClearAll, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_GetMarginSensitive", (PyCFunction) _wrap_wxStyledTextCtrl_GetMarginSensitive, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_SetMarginSensitive", (PyCFunction) _wrap_wxStyledTextCtrl_SetMarginSensitive, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_GetMarginMask", (PyCFunction) _wrap_wxStyledTextCtrl_GetMarginMask, METH_VARARGS | METH_KEYWORDS }, @@ -7215,108 +8185,52 @@ static PyMethodDef stc_cMethods[] = { { "wxStyledTextCtrl_SetMarginWidth", (PyCFunction) _wrap_wxStyledTextCtrl_SetMarginWidth, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_GetMarginType", (PyCFunction) _wrap_wxStyledTextCtrl_GetMarginType, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_SetMarginType", (PyCFunction) _wrap_wxStyledTextCtrl_SetMarginType, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_SetMargins", (PyCFunction) _wrap_wxStyledTextCtrl_SetMargins, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_GetRightMargin", (PyCFunction) _wrap_wxStyledTextCtrl_GetRightMargin, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_GetLeftMargin", (PyCFunction) _wrap_wxStyledTextCtrl_GetLeftMargin, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_StyleSetUnderline", (PyCFunction) _wrap_wxStyledTextCtrl_StyleSetUnderline, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_StyleSetEOLFilled", (PyCFunction) _wrap_wxStyledTextCtrl_StyleSetEOLFilled, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_StyleSetSize", (PyCFunction) _wrap_wxStyledTextCtrl_StyleSetSize, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_StyleSetFaceName", (PyCFunction) _wrap_wxStyledTextCtrl_StyleSetFaceName, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_StyleSetItalic", (PyCFunction) _wrap_wxStyledTextCtrl_StyleSetItalic, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_StyleSetBold", (PyCFunction) _wrap_wxStyledTextCtrl_StyleSetBold, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_StyleSetFontAttr", (PyCFunction) _wrap_wxStyledTextCtrl_StyleSetFontAttr, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_StyleSetFont", (PyCFunction) _wrap_wxStyledTextCtrl_StyleSetFont, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_StyleSetBackground", (PyCFunction) _wrap_wxStyledTextCtrl_StyleSetBackground, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_StyleSetForeground", (PyCFunction) _wrap_wxStyledTextCtrl_StyleSetForeground, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_StyleSetSpec", (PyCFunction) _wrap_wxStyledTextCtrl_StyleSetSpec, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_StyleResetDefault", (PyCFunction) _wrap_wxStyledTextCtrl_StyleResetDefault, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_StyleClearAll", (PyCFunction) _wrap_wxStyledTextCtrl_StyleClearAll, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_GetLineState", (PyCFunction) _wrap_wxStyledTextCtrl_GetLineState, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_SetLineState", (PyCFunction) _wrap_wxStyledTextCtrl_SetLineState, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_SetStyleBytes", (PyCFunction) _wrap_wxStyledTextCtrl_SetStyleBytes, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_SetStyleFor", (PyCFunction) _wrap_wxStyledTextCtrl_SetStyleFor, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_MarkerPrevious", (PyCFunction) _wrap_wxStyledTextCtrl_MarkerPrevious, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_MarkerNext", (PyCFunction) _wrap_wxStyledTextCtrl_MarkerNext, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_MarkerGet", (PyCFunction) _wrap_wxStyledTextCtrl_MarkerGet, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_MarkerDeleteAll", (PyCFunction) _wrap_wxStyledTextCtrl_MarkerDeleteAll, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_MarkerDelete", (PyCFunction) _wrap_wxStyledTextCtrl_MarkerDelete, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_MarkerAdd", (PyCFunction) _wrap_wxStyledTextCtrl_MarkerAdd, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_MarkerSetBackground", (PyCFunction) _wrap_wxStyledTextCtrl_MarkerSetBackground, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_MarkerSetForeground", (PyCFunction) _wrap_wxStyledTextCtrl_MarkerSetForeground, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_MarkerDefine", (PyCFunction) _wrap_wxStyledTextCtrl_MarkerDefine, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_SetCodePage", (PyCFunction) _wrap_wxStyledTextCtrl_SetCodePage, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_GetTabWidth", (PyCFunction) _wrap_wxStyledTextCtrl_GetTabWidth, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_SetTabWidth", (PyCFunction) _wrap_wxStyledTextCtrl_SetTabWidth, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_SetBufferedDraw", (PyCFunction) _wrap_wxStyledTextCtrl_SetBufferedDraw, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_GetBufferedDraw", (PyCFunction) _wrap_wxStyledTextCtrl_GetBufferedDraw, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_SetStyling", (PyCFunction) _wrap_wxStyledTextCtrl_SetStyling, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_StartStyling", (PyCFunction) _wrap_wxStyledTextCtrl_StartStyling, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_GetEndStyled", (PyCFunction) _wrap_wxStyledTextCtrl_GetEndStyled, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_ConvertEOL", (PyCFunction) _wrap_wxStyledTextCtrl_ConvertEOL, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_SetViewEOL", (PyCFunction) _wrap_wxStyledTextCtrl_SetViewEOL, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_GetViewEOL", (PyCFunction) _wrap_wxStyledTextCtrl_GetViewEOL, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_SetEOLMode", (PyCFunction) _wrap_wxStyledTextCtrl_SetEOLMode, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_GetEOLMode", (PyCFunction) _wrap_wxStyledTextCtrl_GetEOLMode, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_SetViewWhitespace", (PyCFunction) _wrap_wxStyledTextCtrl_SetViewWhitespace, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_GetViewWhitespace", (PyCFunction) _wrap_wxStyledTextCtrl_GetViewWhitespace, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_SearchPrev", (PyCFunction) _wrap_wxStyledTextCtrl_SearchPrev, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_SearchNext", (PyCFunction) _wrap_wxStyledTextCtrl_SearchNext, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_SearchAnchor", (PyCFunction) _wrap_wxStyledTextCtrl_SearchAnchor, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_FindText", (PyCFunction) _wrap_wxStyledTextCtrl_FindText, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_GetUseHorizontalScrollBar", (PyCFunction) _wrap_wxStyledTextCtrl_GetUseHorizontalScrollBar, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_SetUseHorizontalScrollBar", (PyCFunction) _wrap_wxStyledTextCtrl_SetUseHorizontalScrollBar, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_IsSelectionRectangle", (PyCFunction) _wrap_wxStyledTextCtrl_IsSelectionRectangle, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_GetLinesOnScreen", (PyCFunction) _wrap_wxStyledTextCtrl_GetLinesOnScreen, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_GetSelectionType", (PyCFunction) _wrap_wxStyledTextCtrl_GetSelectionType, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_SetCaretPolicy", (PyCFunction) _wrap_wxStyledTextCtrl_SetCaretPolicy, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_EnsureCaretVisible", (PyCFunction) _wrap_wxStyledTextCtrl_EnsureCaretVisible, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_ScrollToColumn", (PyCFunction) _wrap_wxStyledTextCtrl_ScrollToColumn, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_ScrollToLine", (PyCFunction) _wrap_wxStyledTextCtrl_ScrollToLine, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_ScrollBy", (PyCFunction) _wrap_wxStyledTextCtrl_ScrollBy, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_PageMove", (PyCFunction) _wrap_wxStyledTextCtrl_PageMove, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_ChangePosition", (PyCFunction) _wrap_wxStyledTextCtrl_ChangePosition, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_GotoLine", (PyCFunction) _wrap_wxStyledTextCtrl_GotoLine, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_GotoPos", (PyCFunction) _wrap_wxStyledTextCtrl_GotoPos, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_ConvertEOLs", (PyCFunction) _wrap_wxStyledTextCtrl_ConvertEOLs, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_GetEndStyled", (PyCFunction) _wrap_wxStyledTextCtrl_GetEndStyled, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_GetCurLine", (PyCFunction) _wrap_wxStyledTextCtrl_GetCurLine, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_SetAnchor", (PyCFunction) _wrap_wxStyledTextCtrl_SetAnchor, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_SetCurrentPosition", (PyCFunction) _wrap_wxStyledTextCtrl_SetCurrentPosition, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_GotoPos", (PyCFunction) _wrap_wxStyledTextCtrl_GotoPos, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_GotoLine", (PyCFunction) _wrap_wxStyledTextCtrl_GotoLine, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_PositionFromPoint", (PyCFunction) _wrap_wxStyledTextCtrl_PositionFromPoint, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_SetViewWhiteSpace", (PyCFunction) _wrap_wxStyledTextCtrl_SetViewWhiteSpace, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_GetViewWhiteSpace", (PyCFunction) _wrap_wxStyledTextCtrl_GetViewWhiteSpace, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_GetUndoCollection", (PyCFunction) _wrap_wxStyledTextCtrl_GetUndoCollection, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_MarkerDeleteHandle", (PyCFunction) _wrap_wxStyledTextCtrl_MarkerDeleteHandle, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_MarkerLineFromHandle", (PyCFunction) _wrap_wxStyledTextCtrl_MarkerLineFromHandle, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_CanRedo", (PyCFunction) _wrap_wxStyledTextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_GetStyledText", (PyCFunction) _wrap_wxStyledTextCtrl_GetStyledText, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_SetSavePoint", (PyCFunction) _wrap_wxStyledTextCtrl_SetSavePoint, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_SelectAll", (PyCFunction) _wrap_wxStyledTextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_SetUndoCollection", (PyCFunction) _wrap_wxStyledTextCtrl_SetUndoCollection, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_Redo", (PyCFunction) _wrap_wxStyledTextCtrl_Redo, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_GetStyleAt", (PyCFunction) _wrap_wxStyledTextCtrl_GetStyleAt, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_GetAnchor", (PyCFunction) _wrap_wxStyledTextCtrl_GetAnchor, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_GetCurrentPos", (PyCFunction) _wrap_wxStyledTextCtrl_GetCurrentPos, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_PointFromPosition", (PyCFunction) _wrap_wxStyledTextCtrl_PointFromPosition, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_LineFromPoint", (PyCFunction) _wrap_wxStyledTextCtrl_LineFromPoint, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_PositionFromPoint", (PyCFunction) _wrap_wxStyledTextCtrl_PositionFromPoint, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_GetCurrentLine", (PyCFunction) _wrap_wxStyledTextCtrl_GetCurrentLine, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_GetCurrentLineText", (PyCFunction) _wrap_wxStyledTextCtrl_GetCurrentLineText, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_GetLineLength", (PyCFunction) _wrap_wxStyledTextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_GetLineLengthAtPos", (PyCFunction) _wrap_wxStyledTextCtrl_GetLineLengthAtPos, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_GetLineStartPos", (PyCFunction) _wrap_wxStyledTextCtrl_GetLineStartPos, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_GetLineFromPos", (PyCFunction) _wrap_wxStyledTextCtrl_GetLineFromPos, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_GetRect", (PyCFunction) _wrap_wxStyledTextCtrl_GetRect, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_GetLineCount", (PyCFunction) _wrap_wxStyledTextCtrl_GetLineCount, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_GetModified", (PyCFunction) _wrap_wxStyledTextCtrl_GetModified, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_GetFirstVisibleLine", (PyCFunction) _wrap_wxStyledTextCtrl_GetFirstVisibleLine, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_GetTextLength", (PyCFunction) _wrap_wxStyledTextCtrl_GetTextLength, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_GetHideSelection", (PyCFunction) _wrap_wxStyledTextCtrl_GetHideSelection, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_HideSelection", (PyCFunction) _wrap_wxStyledTextCtrl_HideSelection, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_GetSelectedText", (PyCFunction) _wrap_wxStyledTextCtrl_GetSelectedText, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_SetSelection", (PyCFunction) _wrap_wxStyledTextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_GetSelection", (PyCFunction) _wrap_wxStyledTextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_SetSavePoint", (PyCFunction) _wrap_wxStyledTextCtrl_SetSavePoint, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_EndUndoAction", (PyCFunction) _wrap_wxStyledTextCtrl_EndUndoAction, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_BeginUndoAction", (PyCFunction) _wrap_wxStyledTextCtrl_BeginUndoAction, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_GetUndoCollection", (PyCFunction) _wrap_wxStyledTextCtrl_GetUndoCollection, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_SetUndoCollection", (PyCFunction) _wrap_wxStyledTextCtrl_SetUndoCollection, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_CanRedo", (PyCFunction) _wrap_wxStyledTextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_Redo", (PyCFunction) _wrap_wxStyledTextCtrl_Redo, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_EmptyUndoBuffer", (PyCFunction) _wrap_wxStyledTextCtrl_EmptyUndoBuffer, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_CanUndo", (PyCFunction) _wrap_wxStyledTextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_Undo", (PyCFunction) _wrap_wxStyledTextCtrl_Undo, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_ClearClipbrd", (PyCFunction) _wrap_wxStyledTextCtrl_ClearClipbrd, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_CanPaste", (PyCFunction) _wrap_wxStyledTextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_Paste", (PyCFunction) _wrap_wxStyledTextCtrl_Paste, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_Copy", (PyCFunction) _wrap_wxStyledTextCtrl_Copy, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_Cut", (PyCFunction) _wrap_wxStyledTextCtrl_Cut, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_GetStyleBits", (PyCFunction) _wrap_wxStyledTextCtrl_GetStyleBits, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_SetStyleBits", (PyCFunction) _wrap_wxStyledTextCtrl_SetStyleBits, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_GetStyleAt", (PyCFunction) _wrap_wxStyledTextCtrl_GetStyleAt, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_GetCharAt", (PyCFunction) _wrap_wxStyledTextCtrl_GetCharAt, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_GetLength", (PyCFunction) _wrap_wxStyledTextCtrl_GetLength, METH_VARARGS | METH_KEYWORDS }, + { "wxStyledTextCtrl_ClearDocumentStyle", (PyCFunction) _wrap_wxStyledTextCtrl_ClearDocumentStyle, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_ClearAll", (PyCFunction) _wrap_wxStyledTextCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_InsertText", (PyCFunction) _wrap_wxStyledTextCtrl_InsertText, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_AddStyledText", (PyCFunction) _wrap_wxStyledTextCtrl_AddStyledText, METH_VARARGS | METH_KEYWORDS }, { "wxStyledTextCtrl_AddText", (PyCFunction) _wrap_wxStyledTextCtrl_AddText, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_GetStyledTextRange", (PyCFunction) _wrap_wxStyledTextCtrl_GetStyledTextRange, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_GetTextRange", (PyCFunction) _wrap_wxStyledTextCtrl_GetTextRange, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_GetReadOnly", (PyCFunction) _wrap_wxStyledTextCtrl_GetReadOnly, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_SetReadOnly", (PyCFunction) _wrap_wxStyledTextCtrl_SetReadOnly, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_ReplaceSelection", (PyCFunction) _wrap_wxStyledTextCtrl_ReplaceSelection, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_GetLine", (PyCFunction) _wrap_wxStyledTextCtrl_GetLine, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_SetText", (PyCFunction) _wrap_wxStyledTextCtrl_SetText, METH_VARARGS | METH_KEYWORDS }, - { "wxStyledTextCtrl_GetText", (PyCFunction) _wrap_wxStyledTextCtrl_GetText, METH_VARARGS | METH_KEYWORDS }, { "new_wxStyledTextCtrl", (PyCFunction) _wrap_new_wxStyledTextCtrl, METH_VARARGS | METH_KEYWORDS }, { NULL, NULL } }; @@ -7828,22 +8742,19 @@ SWIGEXPORT(void) initstc_c() { SWIG_globals = SWIG_newvarlink(); m = Py_InitModule("stc_c", stc_cMethods); d = PyModule_GetDict(m); - PyDict_SetItemString(d,"wxSTC_UndoCollectNone", PyInt_FromLong((long) wxSTC_UndoCollectNone)); - PyDict_SetItemString(d,"wxSTC_UndoCollectAutoStart", PyInt_FromLong((long) wxSTC_UndoCollectAutoStart)); - PyDict_SetItemString(d,"wxSTC_EOL_CRLF", PyInt_FromLong((long) wxSTC_EOL_CRLF)); - PyDict_SetItemString(d,"wxSTC_EOL_CR", PyInt_FromLong((long) wxSTC_EOL_CR)); - PyDict_SetItemString(d,"wxSTC_EOL_LF", PyInt_FromLong((long) wxSTC_EOL_LF)); - PyDict_SetItemString(d,"wxSTC_EDGE_NONE", PyInt_FromLong((long) wxSTC_EDGE_NONE)); - PyDict_SetItemString(d,"wxSTC_EDGE_LINE", PyInt_FromLong((long) wxSTC_EDGE_LINE)); - PyDict_SetItemString(d,"wxSTC_EDGE_BACKGROUND", PyInt_FromLong((long) wxSTC_EDGE_BACKGROUND)); - PyDict_SetItemString(d,"wxSTC_LEX_STYLE_MAX", PyInt_FromLong((long) 31)); - PyDict_SetItemString(d,"wxSTC_STYLE_DEFAULT", PyInt_FromLong((long) 32)); - PyDict_SetItemString(d,"wxSTC_STYLE_LINENUMBER", PyInt_FromLong((long) 33)); - PyDict_SetItemString(d,"wxSTC_STYLE_BRACELIGHT", PyInt_FromLong((long) 34)); - PyDict_SetItemString(d,"wxSTC_STYLE_BRACEBAD", PyInt_FromLong((long) 35)); - PyDict_SetItemString(d,"wxSTC_STYLE_CONTROLCHAR", PyInt_FromLong((long) 36)); - PyDict_SetItemString(d,"wxSTC_STYLE_MAX", PyInt_FromLong((long) 127)); - PyDict_SetItemString(d,"wxSTC_STYLE_MASK", PyInt_FromLong((long) 31)); + PyDict_SetItemString(d,"wxSTC_INVALID_POSITION", PyInt_FromLong((long) -1)); + PyDict_SetItemString(d,"wxSTC_START", PyInt_FromLong((long) 2000)); + PyDict_SetItemString(d,"wxSTC_OPTIONAL_START", PyInt_FromLong((long) 3000)); + PyDict_SetItemString(d,"wxSTC_LEXER_START", PyInt_FromLong((long) 4000)); + PyDict_SetItemString(d,"wxSTC_CMD_REDO", PyInt_FromLong((long) 2011)); + PyDict_SetItemString(d,"wxSTC_CMD_SELECTALL", PyInt_FromLong((long) 2013)); + PyDict_SetItemString(d,"wxSTC_WS_INVISIBLE", PyInt_FromLong((long) 0)); + PyDict_SetItemString(d,"wxSTC_WS_VISIBLEALWAYS", PyInt_FromLong((long) 1)); + PyDict_SetItemString(d,"wxSTC_WS_VISIBLEAFTERINDENT", PyInt_FromLong((long) 2)); + PyDict_SetItemString(d,"wxSTC_EOL_CRLF", PyInt_FromLong((long) 0)); + PyDict_SetItemString(d,"wxSTC_EOL_CR", PyInt_FromLong((long) 1)); + PyDict_SetItemString(d,"wxSTC_EOL_LF", PyInt_FromLong((long) 2)); + PyDict_SetItemString(d,"wxSTC_CP_UTF8", PyInt_FromLong((long) 65001)); PyDict_SetItemString(d,"wxSTC_MARKER_MAX", PyInt_FromLong((long) 31)); PyDict_SetItemString(d,"wxSTC_MARK_CIRCLE", PyInt_FromLong((long) 0)); PyDict_SetItemString(d,"wxSTC_MARK_ROUNDRECT", PyInt_FromLong((long) 1)); @@ -7856,7 +8767,34 @@ SWIGEXPORT(void) initstc_c() { PyDict_SetItemString(d,"wxSTC_MARK_PLUS", PyInt_FromLong((long) 8)); PyDict_SetItemString(d,"wxSTC_MARKNUM_FOLDER", PyInt_FromLong((long) 30)); PyDict_SetItemString(d,"wxSTC_MARKNUM_FOLDEROPEN", PyInt_FromLong((long) 31)); - PyDict_SetItemString(d,"wxSTC_MASK_FOLDERS", PyInt_FromLong((long) ((1<<(30))|(1<<(31))))); + PyDict_SetItemString(d,"wxSTC_MARGIN_SYMBOL", PyInt_FromLong((long) 0)); + PyDict_SetItemString(d,"wxSTC_MARGIN_NUMBER", PyInt_FromLong((long) 1)); + PyDict_SetItemString(d,"wxSTC_STYLE_DEFAULT", PyInt_FromLong((long) 32)); + PyDict_SetItemString(d,"wxSTC_STYLE_LINENUMBER", PyInt_FromLong((long) 33)); + PyDict_SetItemString(d,"wxSTC_STYLE_BRACELIGHT", PyInt_FromLong((long) 34)); + PyDict_SetItemString(d,"wxSTC_STYLE_BRACEBAD", PyInt_FromLong((long) 35)); + PyDict_SetItemString(d,"wxSTC_STYLE_CONTROLCHAR", PyInt_FromLong((long) 36)); + PyDict_SetItemString(d,"wxSTC_STYLE_INDENTGUIDE", PyInt_FromLong((long) 37)); + PyDict_SetItemString(d,"wxSTC_STYLE_MAX", PyInt_FromLong((long) 127)); + PyDict_SetItemString(d,"wxSTC_CHARSET_ANSI", PyInt_FromLong((long) 0)); + PyDict_SetItemString(d,"wxSTC_CHARSET_DEFAULT", PyInt_FromLong((long) 1)); + PyDict_SetItemString(d,"wxSTC_CHARSET_BALTIC", PyInt_FromLong((long) 186)); + PyDict_SetItemString(d,"wxSTC_CHARSET_CHINESEBIG5", PyInt_FromLong((long) 136)); + PyDict_SetItemString(d,"wxSTC_CHARSET_EASTEUROPE", PyInt_FromLong((long) 238)); + PyDict_SetItemString(d,"wxSTC_CHARSET_GB2312", PyInt_FromLong((long) 134)); + PyDict_SetItemString(d,"wxSTC_CHARSET_GREEK", PyInt_FromLong((long) 161)); + PyDict_SetItemString(d,"wxSTC_CHARSET_HANGUL", PyInt_FromLong((long) 129)); + PyDict_SetItemString(d,"wxSTC_CHARSET_MAC", PyInt_FromLong((long) 77)); + PyDict_SetItemString(d,"wxSTC_CHARSET_OEM", PyInt_FromLong((long) 255)); + PyDict_SetItemString(d,"wxSTC_CHARSET_RUSSIAN", PyInt_FromLong((long) 204)); + PyDict_SetItemString(d,"wxSTC_CHARSET_SHIFTJIS", PyInt_FromLong((long) 128)); + PyDict_SetItemString(d,"wxSTC_CHARSET_SYMBOL", PyInt_FromLong((long) 2)); + PyDict_SetItemString(d,"wxSTC_CHARSET_TURKISH", PyInt_FromLong((long) 162)); + PyDict_SetItemString(d,"wxSTC_CHARSET_JOHAB", PyInt_FromLong((long) 130)); + PyDict_SetItemString(d,"wxSTC_CHARSET_HEBREW", PyInt_FromLong((long) 177)); + PyDict_SetItemString(d,"wxSTC_CHARSET_ARABIC", PyInt_FromLong((long) 178)); + PyDict_SetItemString(d,"wxSTC_CHARSET_VIETNAMESE", PyInt_FromLong((long) 163)); + PyDict_SetItemString(d,"wxSTC_CHARSET_THAI", PyInt_FromLong((long) 222)); PyDict_SetItemString(d,"wxSTC_INDIC_MAX", PyInt_FromLong((long) 7)); PyDict_SetItemString(d,"wxSTC_INDIC_PLAIN", PyInt_FromLong((long) 0)); PyDict_SetItemString(d,"wxSTC_INDIC_SQUIGGLE", PyInt_FromLong((long) 1)); @@ -7866,75 +8804,293 @@ SWIGEXPORT(void) initstc_c() { PyDict_SetItemString(d,"wxSTC_INDIC0_MASK", PyInt_FromLong((long) 32)); PyDict_SetItemString(d,"wxSTC_INDIC1_MASK", PyInt_FromLong((long) 64)); PyDict_SetItemString(d,"wxSTC_INDIC2_MASK", PyInt_FromLong((long) 128)); - PyDict_SetItemString(d,"wxSTC_INDICS_MASK", PyInt_FromLong((long) ((32)|(64)|(128)))); - PyDict_SetItemString(d,"wxSTC_FOLDLEVELBASE", PyInt_FromLong((long) 0x0400)); + PyDict_SetItemString(d,"wxSTC_INDICS_MASK", PyInt_FromLong((long) 32|64|128)); + PyDict_SetItemString(d,"wxSTC_PRINT_NORMAL", PyInt_FromLong((long) 0)); + PyDict_SetItemString(d,"wxSTC_PRINT_INVERTLIGHT", PyInt_FromLong((long) 1)); + PyDict_SetItemString(d,"wxSTC_PRINT_BLACKONWHITE", PyInt_FromLong((long) 2)); + PyDict_SetItemString(d,"wxSTC_FIND_DOWN", PyInt_FromLong((long) 1)); + PyDict_SetItemString(d,"wxSTC_FIND_WHOLEWORD", PyInt_FromLong((long) 2)); + PyDict_SetItemString(d,"wxSTC_FIND_MATCHCASE", PyInt_FromLong((long) 4)); + PyDict_SetItemString(d,"wxSTC_FIND_WORDSTART", PyInt_FromLong((long) 0x00100000)); + PyDict_SetItemString(d,"wxSTC_FIND_REGEXP", PyInt_FromLong((long) 0x00200000)); + PyDict_SetItemString(d,"wxSTC_CMD_UNDO", PyInt_FromLong((long) 2176)); + PyDict_SetItemString(d,"wxSTC_CMD_CUT", PyInt_FromLong((long) 2177)); + PyDict_SetItemString(d,"wxSTC_CMD_COPY", PyInt_FromLong((long) 2178)); + PyDict_SetItemString(d,"wxSTC_CMD_PASTE", PyInt_FromLong((long) 2179)); + PyDict_SetItemString(d,"wxSTC_FOLDLEVELBASE", PyInt_FromLong((long) 0x400)); PyDict_SetItemString(d,"wxSTC_FOLDLEVELWHITEFLAG", PyInt_FromLong((long) 0x1000)); PyDict_SetItemString(d,"wxSTC_FOLDLEVELHEADERFLAG", PyInt_FromLong((long) 0x2000)); PyDict_SetItemString(d,"wxSTC_FOLDLEVELNUMBERMASK", PyInt_FromLong((long) 0x0FFF)); - PyDict_SetItemString(d,"wxSTC_CMD_LINEDOWN", PyInt_FromLong((long) wxSTC_CMD_LINEDOWN)); - PyDict_SetItemString(d,"wxSTC_CMD_LINEDOWNEXTEND", PyInt_FromLong((long) wxSTC_CMD_LINEDOWNEXTEND)); - PyDict_SetItemString(d,"wxSTC_CMD_LINEUP", PyInt_FromLong((long) wxSTC_CMD_LINEUP)); - PyDict_SetItemString(d,"wxSTC_CMD_LINEUPEXTEND", PyInt_FromLong((long) wxSTC_CMD_LINEUPEXTEND)); - PyDict_SetItemString(d,"wxSTC_CMD_CHARLEFT", PyInt_FromLong((long) wxSTC_CMD_CHARLEFT)); - PyDict_SetItemString(d,"wxSTC_CMD_CHARLEFTEXTEND", PyInt_FromLong((long) wxSTC_CMD_CHARLEFTEXTEND)); - PyDict_SetItemString(d,"wxSTC_CMD_CHARRIGHT", PyInt_FromLong((long) wxSTC_CMD_CHARRIGHT)); - PyDict_SetItemString(d,"wxSTC_CMD_CHARRIGHTEXTEND", PyInt_FromLong((long) wxSTC_CMD_CHARRIGHTEXTEND)); - PyDict_SetItemString(d,"wxSTC_CMD_WORDLEFT", PyInt_FromLong((long) wxSTC_CMD_WORDLEFT)); - PyDict_SetItemString(d,"wxSTC_CMD_WORDLEFTEXTEND", PyInt_FromLong((long) wxSTC_CMD_WORDLEFTEXTEND)); - PyDict_SetItemString(d,"wxSTC_CMD_WORDRIGHT", PyInt_FromLong((long) wxSTC_CMD_WORDRIGHT)); - PyDict_SetItemString(d,"wxSTC_CMD_WORDRIGHTEXTEND", PyInt_FromLong((long) wxSTC_CMD_WORDRIGHTEXTEND)); - PyDict_SetItemString(d,"wxSTC_CMD_HOME", PyInt_FromLong((long) wxSTC_CMD_HOME)); - PyDict_SetItemString(d,"wxSTC_CMD_HOMEEXTEND", PyInt_FromLong((long) wxSTC_CMD_HOMEEXTEND)); - PyDict_SetItemString(d,"wxSTC_CMD_LINEEND", PyInt_FromLong((long) wxSTC_CMD_LINEEND)); - PyDict_SetItemString(d,"wxSTC_CMD_LINEENDEXTEND", PyInt_FromLong((long) wxSTC_CMD_LINEENDEXTEND)); - PyDict_SetItemString(d,"wxSTC_CMD_DOCUMENTSTART", PyInt_FromLong((long) wxSTC_CMD_DOCUMENTSTART)); - PyDict_SetItemString(d,"wxSTC_CMD_DOCUMENTSTARTEXTEND", PyInt_FromLong((long) wxSTC_CMD_DOCUMENTSTARTEXTEND)); - PyDict_SetItemString(d,"wxSTC_CMD_DOCUMENTEND", PyInt_FromLong((long) wxSTC_CMD_DOCUMENTEND)); - PyDict_SetItemString(d,"wxSTC_CMD_DOCUMENTENDEXTEND", PyInt_FromLong((long) wxSTC_CMD_DOCUMENTENDEXTEND)); - PyDict_SetItemString(d,"wxSTC_CMD_PAGEUP", PyInt_FromLong((long) wxSTC_CMD_PAGEUP)); - PyDict_SetItemString(d,"wxSTC_CMD_PAGEUPEXTEND", PyInt_FromLong((long) wxSTC_CMD_PAGEUPEXTEND)); - PyDict_SetItemString(d,"wxSTC_CMD_PAGEDOWN", PyInt_FromLong((long) wxSTC_CMD_PAGEDOWN)); - PyDict_SetItemString(d,"wxSTC_CMD_PAGEDOWNEXTEND", PyInt_FromLong((long) wxSTC_CMD_PAGEDOWNEXTEND)); - PyDict_SetItemString(d,"wxSTC_CMD_EDITTOGGLEOVERTYPE", PyInt_FromLong((long) wxSTC_CMD_EDITTOGGLEOVERTYPE)); - PyDict_SetItemString(d,"wxSTC_CMD_CANCEL", PyInt_FromLong((long) wxSTC_CMD_CANCEL)); - PyDict_SetItemString(d,"wxSTC_CMD_DELETEBACK", PyInt_FromLong((long) wxSTC_CMD_DELETEBACK)); - PyDict_SetItemString(d,"wxSTC_CMD_TAB", PyInt_FromLong((long) wxSTC_CMD_TAB)); - PyDict_SetItemString(d,"wxSTC_CMD_BACKTAB", PyInt_FromLong((long) wxSTC_CMD_BACKTAB)); - PyDict_SetItemString(d,"wxSTC_CMD_NEWLINE", PyInt_FromLong((long) wxSTC_CMD_NEWLINE)); - PyDict_SetItemString(d,"wxSTC_CMD_FORMFEED", PyInt_FromLong((long) wxSTC_CMD_FORMFEED)); - PyDict_SetItemString(d,"wxSTC_CMD_VCHOME", PyInt_FromLong((long) wxSTC_CMD_VCHOME)); - PyDict_SetItemString(d,"wxSTC_CMD_VCHOMEEXTEND", PyInt_FromLong((long) wxSTC_CMD_VCHOMEEXTEND)); - PyDict_SetItemString(d,"wxSTC_CMD_ZOOMIN", PyInt_FromLong((long) wxSTC_CMD_ZOOMIN)); - PyDict_SetItemString(d,"wxSTC_CMD_ZOOMOUT", PyInt_FromLong((long) wxSTC_CMD_ZOOMOUT)); - PyDict_SetItemString(d,"wxSTC_CMD_DELWORDLEFT", PyInt_FromLong((long) wxSTC_CMD_DELWORDLEFT)); - PyDict_SetItemString(d,"wxSTC_CMD_DELWORDRIGHT", PyInt_FromLong((long) wxSTC_CMD_DELWORDRIGHT)); - PyDict_SetItemString(d,"wxSTC_CMD_LINECUT", PyInt_FromLong((long) wxSTC_CMD_LINECUT)); - PyDict_SetItemString(d,"wxSTC_CMD_LINEDELETE", PyInt_FromLong((long) wxSTC_CMD_LINEDELETE)); - PyDict_SetItemString(d,"wxSTC_CMD_LINETRANSPOSE", PyInt_FromLong((long) wxSTC_CMD_LINETRANSPOSE)); - PyDict_SetItemString(d,"wxSTC_CMD_LOWERCASE", PyInt_FromLong((long) wxSTC_CMD_LOWERCASE)); - PyDict_SetItemString(d,"wxSTC_CMD_UPPERCASE", PyInt_FromLong((long) wxSTC_CMD_UPPERCASE)); - PyDict_SetItemString(d,"wxSTC_CMD_LINESCROLLDOWN", PyInt_FromLong((long) wxSTC_CMD_LINESCROLLDOWN)); - PyDict_SetItemString(d,"wxSTC_CMD_LINESCROLLUP", PyInt_FromLong((long) wxSTC_CMD_LINESCROLLUP)); - PyDict_SetItemString(d,"wxSTC_LEX_CONTAINER", PyInt_FromLong((long) wxSTC_LEX_CONTAINER)); - PyDict_SetItemString(d,"wxSTC_LEX_NULL", PyInt_FromLong((long) wxSTC_LEX_NULL)); - PyDict_SetItemString(d,"wxSTC_LEX_PYTHON", PyInt_FromLong((long) wxSTC_LEX_PYTHON)); - PyDict_SetItemString(d,"wxSTC_LEX_CPP", PyInt_FromLong((long) wxSTC_LEX_CPP)); - PyDict_SetItemString(d,"wxSTC_LEX_HTML", PyInt_FromLong((long) wxSTC_LEX_HTML)); - PyDict_SetItemString(d,"wxSTC_LEX_XML", PyInt_FromLong((long) wxSTC_LEX_XML)); - PyDict_SetItemString(d,"wxSTC_LEX_PERL", PyInt_FromLong((long) wxSTC_LEX_PERL)); - PyDict_SetItemString(d,"wxSTC_LEX_SQL", PyInt_FromLong((long) wxSTC_LEX_SQL)); - PyDict_SetItemString(d,"wxSTC_LEX_VB", PyInt_FromLong((long) wxSTC_LEX_VB)); - PyDict_SetItemString(d,"wxSTC_LEX_PROPERTIES", PyInt_FromLong((long) wxSTC_LEX_PROPERTIES)); - PyDict_SetItemString(d,"wxSTC_LEX_ERRORLIST", PyInt_FromLong((long) wxSTC_LEX_ERRORLIST)); - PyDict_SetItemString(d,"wxSTC_LEX_MAKEFILE", PyInt_FromLong((long) wxSTC_LEX_MAKEFILE)); - PyDict_SetItemString(d,"wxSTC_LEX_BATCH", PyInt_FromLong((long) wxSTC_LEX_BATCH)); - PyDict_SetItemString(d,"wxSTC_LEX_XCODE", PyInt_FromLong((long) wxSTC_LEX_XCODE)); - PyDict_SetItemString(d,"wxSTC_LEX_LATEX", PyInt_FromLong((long) wxSTC_LEX_LATEX)); + PyDict_SetItemString(d,"wxSTC_CMD_LINEDOWN", PyInt_FromLong((long) 2300)); + PyDict_SetItemString(d,"wxSTC_CMD_LINEDOWNEXTEND", PyInt_FromLong((long) 2301)); + PyDict_SetItemString(d,"wxSTC_CMD_LINEUP", PyInt_FromLong((long) 2302)); + PyDict_SetItemString(d,"wxSTC_CMD_LINEUPEXTEND", PyInt_FromLong((long) 2303)); + PyDict_SetItemString(d,"wxSTC_CMD_CHARLEFT", PyInt_FromLong((long) 2304)); + PyDict_SetItemString(d,"wxSTC_CMD_CHARLEFTEXTEND", PyInt_FromLong((long) 2305)); + PyDict_SetItemString(d,"wxSTC_CMD_CHARRIGHT", PyInt_FromLong((long) 2306)); + PyDict_SetItemString(d,"wxSTC_CMD_CHARRIGHTEXTEND", PyInt_FromLong((long) 2307)); + PyDict_SetItemString(d,"wxSTC_CMD_WORDLEFT", PyInt_FromLong((long) 2308)); + PyDict_SetItemString(d,"wxSTC_CMD_WORDLEFTEXTEND", PyInt_FromLong((long) 2309)); + PyDict_SetItemString(d,"wxSTC_CMD_WORDRIGHT", PyInt_FromLong((long) 2310)); + PyDict_SetItemString(d,"wxSTC_CMD_WORDRIGHTEXTEND", PyInt_FromLong((long) 2311)); + PyDict_SetItemString(d,"wxSTC_CMD_HOME", PyInt_FromLong((long) 2312)); + PyDict_SetItemString(d,"wxSTC_CMD_HOMEEXTEND", PyInt_FromLong((long) 2313)); + PyDict_SetItemString(d,"wxSTC_CMD_LINEEND", PyInt_FromLong((long) 2314)); + PyDict_SetItemString(d,"wxSTC_CMD_LINEENDEXTEND", PyInt_FromLong((long) 2315)); + PyDict_SetItemString(d,"wxSTC_CMD_DOCUMENTSTART", PyInt_FromLong((long) 2316)); + PyDict_SetItemString(d,"wxSTC_CMD_DOCUMENTSTARTEXTEND", PyInt_FromLong((long) 2317)); + PyDict_SetItemString(d,"wxSTC_CMD_DOCUMENTEND", PyInt_FromLong((long) 2318)); + PyDict_SetItemString(d,"wxSTC_CMD_DOCUMENTENDEXTEND", PyInt_FromLong((long) 2319)); + PyDict_SetItemString(d,"wxSTC_CMD_PAGEUP", PyInt_FromLong((long) 2320)); + PyDict_SetItemString(d,"wxSTC_CMD_PAGEUPEXTEND", PyInt_FromLong((long) 2321)); + PyDict_SetItemString(d,"wxSTC_CMD_PAGEDOWN", PyInt_FromLong((long) 2322)); + PyDict_SetItemString(d,"wxSTC_CMD_PAGEDOWNEXTEND", PyInt_FromLong((long) 2323)); + PyDict_SetItemString(d,"wxSTC_CMD_EDITTOGGLEOVERTYPE", PyInt_FromLong((long) 2324)); + PyDict_SetItemString(d,"wxSTC_CMD_CANCEL", PyInt_FromLong((long) 2325)); + PyDict_SetItemString(d,"wxSTC_CMD_DELETEBACK", PyInt_FromLong((long) 2326)); + PyDict_SetItemString(d,"wxSTC_CMD_TAB", PyInt_FromLong((long) 2327)); + PyDict_SetItemString(d,"wxSTC_CMD_BACKTAB", PyInt_FromLong((long) 2328)); + PyDict_SetItemString(d,"wxSTC_CMD_NEWLINE", PyInt_FromLong((long) 2329)); + PyDict_SetItemString(d,"wxSTC_CMD_FORMFEED", PyInt_FromLong((long) 2330)); + PyDict_SetItemString(d,"wxSTC_CMD_VCHOME", PyInt_FromLong((long) 2331)); + PyDict_SetItemString(d,"wxSTC_CMD_VCHOMEEXTEND", PyInt_FromLong((long) 2332)); + PyDict_SetItemString(d,"wxSTC_CMD_ZOOMIN", PyInt_FromLong((long) 2333)); + PyDict_SetItemString(d,"wxSTC_CMD_ZOOMOUT", PyInt_FromLong((long) 2334)); + PyDict_SetItemString(d,"wxSTC_CMD_DELWORDLEFT", PyInt_FromLong((long) 2335)); + PyDict_SetItemString(d,"wxSTC_CMD_DELWORDRIGHT", PyInt_FromLong((long) 2336)); + PyDict_SetItemString(d,"wxSTC_CMD_LINECUT", PyInt_FromLong((long) 2337)); + PyDict_SetItemString(d,"wxSTC_CMD_LINEDELETE", PyInt_FromLong((long) 2338)); + PyDict_SetItemString(d,"wxSTC_CMD_LINETRANSPOSE", PyInt_FromLong((long) 2339)); + PyDict_SetItemString(d,"wxSTC_CMD_LOWERCASE", PyInt_FromLong((long) 2340)); + PyDict_SetItemString(d,"wxSTC_CMD_UPPERCASE", PyInt_FromLong((long) 2341)); + PyDict_SetItemString(d,"wxSTC_CMD_LINESCROLLDOWN", PyInt_FromLong((long) 2342)); + PyDict_SetItemString(d,"wxSTC_CMD_LINESCROLLUP", PyInt_FromLong((long) 2343)); + PyDict_SetItemString(d,"wxSTC_EDGE_NONE", PyInt_FromLong((long) 0)); + PyDict_SetItemString(d,"wxSTC_EDGE_LINE", PyInt_FromLong((long) 1)); + PyDict_SetItemString(d,"wxSTC_EDGE_BACKGROUND", PyInt_FromLong((long) 2)); PyDict_SetItemString(d,"wxSTC_CARET_SLOP", PyInt_FromLong((long) 0x01)); - PyDict_SetItemString(d,"WXSTC_CARET_CENTER", PyInt_FromLong((long) 0x02)); + PyDict_SetItemString(d,"wxSTC_CARET_CENTER", PyInt_FromLong((long) 0x02)); PyDict_SetItemString(d,"wxSTC_CARET_STRICT", PyInt_FromLong((long) 0x04)); - PyDict_SetItemString(d,"wxSTC_MARGIN_SYMBOL", PyInt_FromLong((long) 0)); - PyDict_SetItemString(d,"wxSTC_MARGIN_NUMBER", PyInt_FromLong((long) 1)); + PyDict_SetItemString(d,"wxSTC_MOD_INSERTTEXT", PyInt_FromLong((long) 0x1)); + PyDict_SetItemString(d,"wxSTC_MOD_DELETETEXT", PyInt_FromLong((long) 0x2)); + PyDict_SetItemString(d,"wxSTC_MOD_CHANGESTYLE", PyInt_FromLong((long) 0x4)); + PyDict_SetItemString(d,"wxSTC_MOD_CHANGEFOLD", PyInt_FromLong((long) 0x8)); + PyDict_SetItemString(d,"wxSTC_PERFORMED_USER", PyInt_FromLong((long) 0x10)); + PyDict_SetItemString(d,"wxSTC_PERFORMED_UNDO", PyInt_FromLong((long) 0x20)); + PyDict_SetItemString(d,"wxSTC_PERFORMED_REDO", PyInt_FromLong((long) 0x40)); + PyDict_SetItemString(d,"wxSTC_LASTSTEPINUNDOREDO", PyInt_FromLong((long) 0x100)); + PyDict_SetItemString(d,"wxSTC_MOD_CHANGEMARKER", PyInt_FromLong((long) 0x200)); + PyDict_SetItemString(d,"wxSTC_MOD_BEFOREINSERT", PyInt_FromLong((long) 0x400)); + PyDict_SetItemString(d,"wxSTC_MOD_BEFOREDELETE", PyInt_FromLong((long) 0x800)); + PyDict_SetItemString(d,"wxSTC_MODEVENTMASKALL", PyInt_FromLong((long) 0xF77)); + PyDict_SetItemString(d,"wxSTC_KEY_DOWN", PyInt_FromLong((long) 300)); + PyDict_SetItemString(d,"wxSTC_KEY_UP", PyInt_FromLong((long) 301)); + PyDict_SetItemString(d,"wxSTC_KEY_LEFT", PyInt_FromLong((long) 302)); + PyDict_SetItemString(d,"wxSTC_KEY_RIGHT", PyInt_FromLong((long) 303)); + PyDict_SetItemString(d,"wxSTC_KEY_HOME", PyInt_FromLong((long) 304)); + PyDict_SetItemString(d,"wxSTC_KEY_END", PyInt_FromLong((long) 305)); + PyDict_SetItemString(d,"wxSTC_KEY_PRIOR", PyInt_FromLong((long) 306)); + PyDict_SetItemString(d,"wxSTC_KEY_NEXT", PyInt_FromLong((long) 307)); + PyDict_SetItemString(d,"wxSTC_KEY_DELETE", PyInt_FromLong((long) 308)); + PyDict_SetItemString(d,"wxSTC_KEY_INSERT", PyInt_FromLong((long) 309)); + PyDict_SetItemString(d,"wxSTC_KEY_ESCAPE", PyInt_FromLong((long) 7)); + PyDict_SetItemString(d,"wxSTC_KEY_BACK", PyInt_FromLong((long) 8)); + PyDict_SetItemString(d,"wxSTC_KEY_TAB", PyInt_FromLong((long) 9)); + PyDict_SetItemString(d,"wxSTC_KEY_RETURN", PyInt_FromLong((long) 13)); + PyDict_SetItemString(d,"wxSTC_KEY_ADD", PyInt_FromLong((long) 310)); + PyDict_SetItemString(d,"wxSTC_KEY_SUBTRACT", PyInt_FromLong((long) 311)); + PyDict_SetItemString(d,"wxSTC_KEY_DIVIDE", PyInt_FromLong((long) 312)); + PyDict_SetItemString(d,"wxSTC_SCMOD_SHIFT", PyInt_FromLong((long) 1)); + PyDict_SetItemString(d,"wxSTC_SCMOD_CTRL", PyInt_FromLong((long) 2)); + PyDict_SetItemString(d,"wxSTC_SCMOD_ALT", PyInt_FromLong((long) 4)); + PyDict_SetItemString(d,"wxSTC_LEX_CONTAINER", PyInt_FromLong((long) 0)); + PyDict_SetItemString(d,"wxSTC_LEX_NULL", PyInt_FromLong((long) 1)); + PyDict_SetItemString(d,"wxSTC_LEX_PYTHON", PyInt_FromLong((long) 2)); + PyDict_SetItemString(d,"wxSTC_LEX_CPP", PyInt_FromLong((long) 3)); + PyDict_SetItemString(d,"wxSTC_LEX_HTML", PyInt_FromLong((long) 4)); + PyDict_SetItemString(d,"wxSTC_LEX_XML", PyInt_FromLong((long) 5)); + PyDict_SetItemString(d,"wxSTC_LEX_PERL", PyInt_FromLong((long) 6)); + PyDict_SetItemString(d,"wxSTC_LEX_SQL", PyInt_FromLong((long) 7)); + PyDict_SetItemString(d,"wxSTC_LEX_VB", PyInt_FromLong((long) 8)); + PyDict_SetItemString(d,"wxSTC_LEX_PROPERTIES", PyInt_FromLong((long) 9)); + PyDict_SetItemString(d,"wxSTC_LEX_ERRORLIST", PyInt_FromLong((long) 10)); + PyDict_SetItemString(d,"wxSTC_LEX_MAKEFILE", PyInt_FromLong((long) 11)); + PyDict_SetItemString(d,"wxSTC_LEX_BATCH", PyInt_FromLong((long) 12)); + PyDict_SetItemString(d,"wxSTC_LEX_XCODE", PyInt_FromLong((long) 13)); + PyDict_SetItemString(d,"wxSTC_LEX_LATEX", PyInt_FromLong((long) 14)); + PyDict_SetItemString(d,"wxSTC_LEX_LUA", PyInt_FromLong((long) 15)); + PyDict_SetItemString(d,"wxSTC_LEX_DIFF", PyInt_FromLong((long) 16)); + PyDict_SetItemString(d,"wxSTC_P_DEFAULT", PyInt_FromLong((long) 0)); + PyDict_SetItemString(d,"wxSTC_P_COMMENTLINE", PyInt_FromLong((long) 1)); + PyDict_SetItemString(d,"wxSTC_P_NUMBER", PyInt_FromLong((long) 2)); + PyDict_SetItemString(d,"wxSTC_P_STRING", PyInt_FromLong((long) 3)); + PyDict_SetItemString(d,"wxSTC_P_CHARACTER", PyInt_FromLong((long) 4)); + PyDict_SetItemString(d,"wxSTC_P_WORD", PyInt_FromLong((long) 5)); + PyDict_SetItemString(d,"wxSTC_P_TRIPLE", PyInt_FromLong((long) 6)); + PyDict_SetItemString(d,"wxSTC_P_TRIPLEDOUBLE", PyInt_FromLong((long) 7)); + PyDict_SetItemString(d,"wxSTC_P_CLASSNAME", PyInt_FromLong((long) 8)); + PyDict_SetItemString(d,"wxSTC_P_DEFNAME", PyInt_FromLong((long) 9)); + PyDict_SetItemString(d,"wxSTC_P_OPERATOR", PyInt_FromLong((long) 10)); + PyDict_SetItemString(d,"wxSTC_P_IDENTIFIER", PyInt_FromLong((long) 11)); + PyDict_SetItemString(d,"wxSTC_P_COMMENTBLOCK", PyInt_FromLong((long) 12)); + PyDict_SetItemString(d,"wxSTC_P_STRINGEOL", PyInt_FromLong((long) 13)); + PyDict_SetItemString(d,"wxSTC_C_DEFAULT", PyInt_FromLong((long) 0)); + PyDict_SetItemString(d,"wxSTC_C_COMMENT", PyInt_FromLong((long) 1)); + PyDict_SetItemString(d,"wxSTC_C_COMMENTLINE", PyInt_FromLong((long) 2)); + PyDict_SetItemString(d,"wxSTC_C_COMMENTDOC", PyInt_FromLong((long) 3)); + PyDict_SetItemString(d,"wxSTC_C_NUMBER", PyInt_FromLong((long) 4)); + PyDict_SetItemString(d,"wxSTC_C_WORD", PyInt_FromLong((long) 5)); + PyDict_SetItemString(d,"wxSTC_C_STRING", PyInt_FromLong((long) 6)); + PyDict_SetItemString(d,"wxSTC_C_CHARACTER", PyInt_FromLong((long) 7)); + PyDict_SetItemString(d,"wxSTC_C_UUID", PyInt_FromLong((long) 8)); + PyDict_SetItemString(d,"wxSTC_C_PREPROCESSOR", PyInt_FromLong((long) 9)); + PyDict_SetItemString(d,"wxSTC_C_OPERATOR", PyInt_FromLong((long) 10)); + PyDict_SetItemString(d,"wxSTC_C_IDENTIFIER", PyInt_FromLong((long) 11)); + PyDict_SetItemString(d,"wxSTC_C_STRINGEOL", PyInt_FromLong((long) 12)); + PyDict_SetItemString(d,"wxSTC_C_VERBATIM", PyInt_FromLong((long) 13)); + PyDict_SetItemString(d,"wxSTC_H_DEFAULT", PyInt_FromLong((long) 0)); + PyDict_SetItemString(d,"wxSTC_H_TAG", PyInt_FromLong((long) 1)); + PyDict_SetItemString(d,"wxSTC_H_TAGUNKNOWN", PyInt_FromLong((long) 2)); + PyDict_SetItemString(d,"wxSTC_H_ATTRIBUTE", PyInt_FromLong((long) 3)); + PyDict_SetItemString(d,"wxSTC_H_ATTRIBUTEUNKNOWN", PyInt_FromLong((long) 4)); + PyDict_SetItemString(d,"wxSTC_H_NUMBER", PyInt_FromLong((long) 5)); + PyDict_SetItemString(d,"wxSTC_H_DOUBLESTRING", PyInt_FromLong((long) 6)); + PyDict_SetItemString(d,"wxSTC_H_SINGLESTRING", PyInt_FromLong((long) 7)); + PyDict_SetItemString(d,"wxSTC_H_OTHER", PyInt_FromLong((long) 8)); + PyDict_SetItemString(d,"wxSTC_H_COMMENT", PyInt_FromLong((long) 9)); + PyDict_SetItemString(d,"wxSTC_H_ENTITY", PyInt_FromLong((long) 10)); + PyDict_SetItemString(d,"wxSTC_H_TAGEND", PyInt_FromLong((long) 11)); + PyDict_SetItemString(d,"wxSTC_H_XMLSTART", PyInt_FromLong((long) 12)); + PyDict_SetItemString(d,"wxSTC_H_XMLEND", PyInt_FromLong((long) 13)); + PyDict_SetItemString(d,"wxSTC_H_SCRIPT", PyInt_FromLong((long) 14)); + PyDict_SetItemString(d,"wxSTC_H_ASP", PyInt_FromLong((long) 15)); + PyDict_SetItemString(d,"wxSTC_H_ASPAT", PyInt_FromLong((long) 16)); + PyDict_SetItemString(d,"wxSTC_H_CDATA", PyInt_FromLong((long) 17)); + PyDict_SetItemString(d,"wxSTC_H_QUESTION", PyInt_FromLong((long) 18)); + PyDict_SetItemString(d,"wxSTC_H_VALUE", PyInt_FromLong((long) 19)); + PyDict_SetItemString(d,"wxSTC_HJ_START", PyInt_FromLong((long) 40)); + PyDict_SetItemString(d,"wxSTC_HJ_DEFAULT", PyInt_FromLong((long) 41)); + PyDict_SetItemString(d,"wxSTC_HJ_COMMENT", PyInt_FromLong((long) 42)); + PyDict_SetItemString(d,"wxSTC_HJ_COMMENTLINE", PyInt_FromLong((long) 43)); + PyDict_SetItemString(d,"wxSTC_HJ_COMMENTDOC", PyInt_FromLong((long) 44)); + PyDict_SetItemString(d,"wxSTC_HJ_NUMBER", PyInt_FromLong((long) 45)); + PyDict_SetItemString(d,"wxSTC_HJ_WORD", PyInt_FromLong((long) 46)); + PyDict_SetItemString(d,"wxSTC_HJ_KEYWORD", PyInt_FromLong((long) 47)); + PyDict_SetItemString(d,"wxSTC_HJ_DOUBLESTRING", PyInt_FromLong((long) 48)); + PyDict_SetItemString(d,"wxSTC_HJ_SINGLESTRING", PyInt_FromLong((long) 49)); + PyDict_SetItemString(d,"wxSTC_HJ_SYMBOLS", PyInt_FromLong((long) 50)); + PyDict_SetItemString(d,"wxSTC_HJ_STRINGEOL", PyInt_FromLong((long) 51)); + PyDict_SetItemString(d,"wxSTC_HJA_START", PyInt_FromLong((long) 55)); + PyDict_SetItemString(d,"wxSTC_HJA_DEFAULT", PyInt_FromLong((long) 56)); + PyDict_SetItemString(d,"wxSTC_HJA_COMMENT", PyInt_FromLong((long) 57)); + PyDict_SetItemString(d,"wxSTC_HJA_COMMENTLINE", PyInt_FromLong((long) 58)); + PyDict_SetItemString(d,"wxSTC_HJA_COMMENTDOC", PyInt_FromLong((long) 59)); + PyDict_SetItemString(d,"wxSTC_HJA_NUMBER", PyInt_FromLong((long) 60)); + PyDict_SetItemString(d,"wxSTC_HJA_WORD", PyInt_FromLong((long) 61)); + PyDict_SetItemString(d,"wxSTC_HJA_KEYWORD", PyInt_FromLong((long) 62)); + PyDict_SetItemString(d,"wxSTC_HJA_DOUBLESTRING", PyInt_FromLong((long) 63)); + PyDict_SetItemString(d,"wxSTC_HJA_SINGLESTRING", PyInt_FromLong((long) 64)); + PyDict_SetItemString(d,"wxSTC_HJA_SYMBOLS", PyInt_FromLong((long) 65)); + PyDict_SetItemString(d,"wxSTC_HJA_STRINGEOL", PyInt_FromLong((long) 66)); + PyDict_SetItemString(d,"wxSTC_HB_START", PyInt_FromLong((long) 70)); + PyDict_SetItemString(d,"wxSTC_HB_DEFAULT", PyInt_FromLong((long) 71)); + PyDict_SetItemString(d,"wxSTC_HB_COMMENTLINE", PyInt_FromLong((long) 72)); + PyDict_SetItemString(d,"wxSTC_HB_NUMBER", PyInt_FromLong((long) 73)); + PyDict_SetItemString(d,"wxSTC_HB_WORD", PyInt_FromLong((long) 74)); + PyDict_SetItemString(d,"wxSTC_HB_STRING", PyInt_FromLong((long) 75)); + PyDict_SetItemString(d,"wxSTC_HB_IDENTIFIER", PyInt_FromLong((long) 76)); + PyDict_SetItemString(d,"wxSTC_HB_STRINGEOL", PyInt_FromLong((long) 77)); + PyDict_SetItemString(d,"wxSTC_HBA_START", PyInt_FromLong((long) 80)); + PyDict_SetItemString(d,"wxSTC_HBA_DEFAULT", PyInt_FromLong((long) 81)); + PyDict_SetItemString(d,"wxSTC_HBA_COMMENTLINE", PyInt_FromLong((long) 82)); + PyDict_SetItemString(d,"wxSTC_HBA_NUMBER", PyInt_FromLong((long) 83)); + PyDict_SetItemString(d,"wxSTC_HBA_WORD", PyInt_FromLong((long) 84)); + PyDict_SetItemString(d,"wxSTC_HBA_STRING", PyInt_FromLong((long) 85)); + PyDict_SetItemString(d,"wxSTC_HBA_IDENTIFIER", PyInt_FromLong((long) 86)); + PyDict_SetItemString(d,"wxSTC_HBA_STRINGEOL", PyInt_FromLong((long) 87)); + PyDict_SetItemString(d,"wxSTC_HP_START", PyInt_FromLong((long) 90)); + PyDict_SetItemString(d,"wxSTC_HP_DEFAULT", PyInt_FromLong((long) 91)); + PyDict_SetItemString(d,"wxSTC_HP_COMMENTLINE", PyInt_FromLong((long) 92)); + PyDict_SetItemString(d,"wxSTC_HP_NUMBER", PyInt_FromLong((long) 93)); + PyDict_SetItemString(d,"wxSTC_HP_STRING", PyInt_FromLong((long) 94)); + PyDict_SetItemString(d,"wxSTC_HP_CHARACTER", PyInt_FromLong((long) 95)); + PyDict_SetItemString(d,"wxSTC_HP_WORD", PyInt_FromLong((long) 96)); + PyDict_SetItemString(d,"wxSTC_HP_TRIPLE", PyInt_FromLong((long) 97)); + PyDict_SetItemString(d,"wxSTC_HP_TRIPLEDOUBLE", PyInt_FromLong((long) 98)); + PyDict_SetItemString(d,"wxSTC_HP_CLASSNAME", PyInt_FromLong((long) 99)); + PyDict_SetItemString(d,"wxSTC_HP_DEFNAME", PyInt_FromLong((long) 100)); + PyDict_SetItemString(d,"wxSTC_HP_OPERATOR", PyInt_FromLong((long) 101)); + PyDict_SetItemString(d,"wxSTC_HP_IDENTIFIER", PyInt_FromLong((long) 102)); + PyDict_SetItemString(d,"wxSTC_HPA_START", PyInt_FromLong((long) 105)); + PyDict_SetItemString(d,"wxSTC_HPA_DEFAULT", PyInt_FromLong((long) 106)); + PyDict_SetItemString(d,"wxSTC_HPA_COMMENTLINE", PyInt_FromLong((long) 107)); + PyDict_SetItemString(d,"wxSTC_HPA_NUMBER", PyInt_FromLong((long) 108)); + PyDict_SetItemString(d,"wxSTC_HPA_STRING", PyInt_FromLong((long) 109)); + PyDict_SetItemString(d,"wxSTC_HPA_CHARACTER", PyInt_FromLong((long) 110)); + PyDict_SetItemString(d,"wxSTC_HPA_WORD", PyInt_FromLong((long) 111)); + PyDict_SetItemString(d,"wxSTC_HPA_TRIPLE", PyInt_FromLong((long) 112)); + PyDict_SetItemString(d,"wxSTC_HPA_TRIPLEDOUBLE", PyInt_FromLong((long) 113)); + PyDict_SetItemString(d,"wxSTC_HPA_CLASSNAME", PyInt_FromLong((long) 114)); + PyDict_SetItemString(d,"wxSTC_HPA_DEFNAME", PyInt_FromLong((long) 115)); + PyDict_SetItemString(d,"wxSTC_HPA_OPERATOR", PyInt_FromLong((long) 116)); + PyDict_SetItemString(d,"wxSTC_HPA_IDENTIFIER", PyInt_FromLong((long) 117)); + PyDict_SetItemString(d,"wxSTC_HPHP_DEFAULT", PyInt_FromLong((long) 118)); + PyDict_SetItemString(d,"wxSTC_HPHP_HSTRING", PyInt_FromLong((long) 119)); + PyDict_SetItemString(d,"wxSTC_HPHP_SIMPLESTRING", PyInt_FromLong((long) 120)); + PyDict_SetItemString(d,"wxSTC_HPHP_WORD", PyInt_FromLong((long) 121)); + PyDict_SetItemString(d,"wxSTC_HPHP_NUMBER", PyInt_FromLong((long) 122)); + PyDict_SetItemString(d,"wxSTC_HPHP_VARIABLE", PyInt_FromLong((long) 123)); + PyDict_SetItemString(d,"wxSTC_HPHP_COMMENT", PyInt_FromLong((long) 124)); + PyDict_SetItemString(d,"wxSTC_HPHP_COMMENTLINE", PyInt_FromLong((long) 125)); + PyDict_SetItemString(d,"wxSTC_HPHP_STRINGEOL", PyInt_FromLong((long) 126)); + PyDict_SetItemString(d,"wxSTC_PL_DEFAULT", PyInt_FromLong((long) 0)); + PyDict_SetItemString(d,"wxSTC_PL_HERE", PyInt_FromLong((long) 1)); + PyDict_SetItemString(d,"wxSTC_PL_COMMENTLINE", PyInt_FromLong((long) 2)); + PyDict_SetItemString(d,"wxSTC_PL_POD", PyInt_FromLong((long) 3)); + PyDict_SetItemString(d,"wxSTC_PL_NUMBER", PyInt_FromLong((long) 4)); + PyDict_SetItemString(d,"wxSTC_PL_WORD", PyInt_FromLong((long) 5)); + PyDict_SetItemString(d,"wxSTC_PL_STRING", PyInt_FromLong((long) 6)); + PyDict_SetItemString(d,"wxSTC_PL_CHARACTER", PyInt_FromLong((long) 7)); + PyDict_SetItemString(d,"wxSTC_PL_PUNCTUATION", PyInt_FromLong((long) 8)); + PyDict_SetItemString(d,"wxSTC_PL_PREPROCESSOR", PyInt_FromLong((long) 9)); + PyDict_SetItemString(d,"wxSTC_PL_OPERATOR", PyInt_FromLong((long) 10)); + PyDict_SetItemString(d,"wxSTC_PL_IDENTIFIER", PyInt_FromLong((long) 11)); + PyDict_SetItemString(d,"wxSTC_PL_SCALAR", PyInt_FromLong((long) 12)); + PyDict_SetItemString(d,"wxSTC_PL_ARRAY", PyInt_FromLong((long) 13)); + PyDict_SetItemString(d,"wxSTC_PL_HASH", PyInt_FromLong((long) 14)); + PyDict_SetItemString(d,"wxSTC_PL_SYMBOLTABLE", PyInt_FromLong((long) 15)); + PyDict_SetItemString(d,"wxSTC_PL_REF", PyInt_FromLong((long) 16)); + PyDict_SetItemString(d,"wxSTC_PL_REGEX", PyInt_FromLong((long) 17)); + PyDict_SetItemString(d,"wxSTC_PL_REGSUBST", PyInt_FromLong((long) 18)); + PyDict_SetItemString(d,"wxSTC_PL_LONGQUOTE", PyInt_FromLong((long) 19)); + PyDict_SetItemString(d,"wxSTC_PL_BACKTICKS", PyInt_FromLong((long) 20)); + PyDict_SetItemString(d,"wxSTC_PL_DATASECTION", PyInt_FromLong((long) 21)); + PyDict_SetItemString(d,"wxSTC_L_DEFAULT", PyInt_FromLong((long) 0)); + PyDict_SetItemString(d,"wxSTC_L_COMMAND", PyInt_FromLong((long) 1)); + PyDict_SetItemString(d,"wxSTC_L_TAG", PyInt_FromLong((long) 2)); + PyDict_SetItemString(d,"wxSTC_L_MATH", PyInt_FromLong((long) 3)); + PyDict_SetItemString(d,"wxSTC_L_COMMENT", PyInt_FromLong((long) 4)); + PyDict_SetItemString(d,"wxSTC_LUA_DEFAULT", PyInt_FromLong((long) 0)); + PyDict_SetItemString(d,"wxSTC_LUA_COMMENT", PyInt_FromLong((long) 1)); + PyDict_SetItemString(d,"wxSTC_LUA_COMMENTLINE", PyInt_FromLong((long) 2)); + PyDict_SetItemString(d,"wxSTC_LUA_COMMENTDOC", PyInt_FromLong((long) 3)); + PyDict_SetItemString(d,"wxSTC_LUA_NUMBER", PyInt_FromLong((long) 4)); + PyDict_SetItemString(d,"wxSTC_LUA_WORD", PyInt_FromLong((long) 5)); + PyDict_SetItemString(d,"wxSTC_LUA_STRING", PyInt_FromLong((long) 6)); + PyDict_SetItemString(d,"wxSTC_LUA_CHARACTER", PyInt_FromLong((long) 7)); + PyDict_SetItemString(d,"wxSTC_LUA_LITERALSTRING", PyInt_FromLong((long) 8)); + PyDict_SetItemString(d,"wxSTC_LUA_PREPROCESSOR", PyInt_FromLong((long) 9)); + PyDict_SetItemString(d,"wxSTC_LUA_OPERATOR", PyInt_FromLong((long) 10)); + PyDict_SetItemString(d,"wxSTC_LUA_IDENTIFIER", PyInt_FromLong((long) 11)); + PyDict_SetItemString(d,"wxSTC_LUA_STRINGEOL", PyInt_FromLong((long) 12)); + PyDict_SetItemString(d,"wxSTC_ERR_DEFAULT", PyInt_FromLong((long) 0)); + PyDict_SetItemString(d,"wxSTC_ERR_PYTHON", PyInt_FromLong((long) 1)); + PyDict_SetItemString(d,"wxSTC_ERR_GCC", PyInt_FromLong((long) 2)); + PyDict_SetItemString(d,"wxSTC_ERR_MS", PyInt_FromLong((long) 3)); + PyDict_SetItemString(d,"wxSTC_ERR_CMD", PyInt_FromLong((long) 4)); + PyDict_SetItemString(d,"wxSTC_ERR_BORLAND", PyInt_FromLong((long) 5)); + PyDict_SetItemString(d,"wxSTC_ERR_PERL", PyInt_FromLong((long) 6)); + PyDict_SetItemString(d,"wxSTC_MASK_FOLDERS", PyInt_FromLong((long) ((1<<(30))|(1<<(31))))); PyDict_SetItemString(d,"wxSTCNameStr", PyString_FromString("wxSTCNameStr")); PyDict_SetItemString(d,"wxEVT_STC_CHANGE", PyInt_FromLong((long) wxEVT_STC_CHANGE)); PyDict_SetItemString(d,"wxEVT_STC_STYLENEEDED", PyInt_FromLong((long) wxEVT_STC_STYLENEEDED)); @@ -7949,169 +9105,7 @@ SWIGEXPORT(void) initstc_c() { PyDict_SetItemString(d,"wxEVT_STC_MACRORECORD", PyInt_FromLong((long) wxEVT_STC_MACRORECORD)); PyDict_SetItemString(d,"wxEVT_STC_MARGINCLICK", PyInt_FromLong((long) wxEVT_STC_MARGINCLICK)); PyDict_SetItemString(d,"wxEVT_STC_NEEDSHOWN", PyInt_FromLong((long) wxEVT_STC_NEEDSHOWN)); - PyDict_SetItemString(d,"wxSTC_MOD_INSERTTEXT", PyInt_FromLong((long) 0x1)); - PyDict_SetItemString(d,"wxSTC_MOD_DELETETEXT", PyInt_FromLong((long) 0x2)); - PyDict_SetItemString(d,"wxSTC_MOD_CHANGESTYLE", PyInt_FromLong((long) 0x4)); - PyDict_SetItemString(d,"wxSTC_MOD_CHANGEFOLD", PyInt_FromLong((long) 0x8)); - PyDict_SetItemString(d,"wxSTC_PERFORMED_USER", PyInt_FromLong((long) 0x10)); - PyDict_SetItemString(d,"wxSTC_PERFORMED_UNDO", PyInt_FromLong((long) 0x20)); - PyDict_SetItemString(d,"wxSTC_PERFORMED_REDO", PyInt_FromLong((long) 0x40)); - PyDict_SetItemString(d,"wxSTC_LASTSTEPINUNDOREDO", PyInt_FromLong((long) 0x100)); - PyDict_SetItemString(d,"wxSTC_MOD_CHANGEMARKER", PyInt_FromLong((long) 0x200)); - PyDict_SetItemString(d,"wxSTC_MOD_BEFOREINSERT", PyInt_FromLong((long) 0x400)); - PyDict_SetItemString(d,"wxSTC_MOD_BEFOREDELETE", PyInt_FromLong((long) 0x800)); - PyDict_SetItemString(d,"SCLEX_CONTAINER", PyInt_FromLong((long) 0)); - PyDict_SetItemString(d,"SCLEX_NULL", PyInt_FromLong((long) 1)); - PyDict_SetItemString(d,"SCLEX_PYTHON", PyInt_FromLong((long) 2)); - PyDict_SetItemString(d,"SCLEX_CPP", PyInt_FromLong((long) 3)); - PyDict_SetItemString(d,"SCLEX_HTML", PyInt_FromLong((long) 4)); - PyDict_SetItemString(d,"SCLEX_XML", PyInt_FromLong((long) 5)); - PyDict_SetItemString(d,"SCLEX_PERL", PyInt_FromLong((long) 6)); - PyDict_SetItemString(d,"SCLEX_SQL", PyInt_FromLong((long) 7)); - PyDict_SetItemString(d,"SCLEX_VB", PyInt_FromLong((long) 8)); - PyDict_SetItemString(d,"SCLEX_PROPERTIES", PyInt_FromLong((long) 9)); - PyDict_SetItemString(d,"SCLEX_ERRORLIST", PyInt_FromLong((long) 10)); - PyDict_SetItemString(d,"SCLEX_MAKEFILE", PyInt_FromLong((long) 11)); - PyDict_SetItemString(d,"SCLEX_BATCH", PyInt_FromLong((long) 12)); - PyDict_SetItemString(d,"SCLEX_XCODE", PyInt_FromLong((long) 13)); - PyDict_SetItemString(d,"SCLEX_LATEX", PyInt_FromLong((long) 14)); - PyDict_SetItemString(d,"SCE_P_DEFAULT", PyInt_FromLong((long) 0)); - PyDict_SetItemString(d,"SCE_P_COMMENTLINE", PyInt_FromLong((long) 1)); - PyDict_SetItemString(d,"SCE_P_NUMBER", PyInt_FromLong((long) 2)); - PyDict_SetItemString(d,"SCE_P_STRING", PyInt_FromLong((long) 3)); - PyDict_SetItemString(d,"SCE_P_CHARACTER", PyInt_FromLong((long) 4)); - PyDict_SetItemString(d,"SCE_P_WORD", PyInt_FromLong((long) 5)); - PyDict_SetItemString(d,"SCE_P_TRIPLE", PyInt_FromLong((long) 6)); - PyDict_SetItemString(d,"SCE_P_TRIPLEDOUBLE", PyInt_FromLong((long) 7)); - PyDict_SetItemString(d,"SCE_P_CLASSNAME", PyInt_FromLong((long) 8)); - PyDict_SetItemString(d,"SCE_P_DEFNAME", PyInt_FromLong((long) 9)); - PyDict_SetItemString(d,"SCE_P_OPERATOR", PyInt_FromLong((long) 10)); - PyDict_SetItemString(d,"SCE_P_IDENTIFIER", PyInt_FromLong((long) 11)); - PyDict_SetItemString(d,"SCE_P_COMMENTBLOCK", PyInt_FromLong((long) 12)); - PyDict_SetItemString(d,"SCE_P_STRINGEOL", PyInt_FromLong((long) 13)); - PyDict_SetItemString(d,"SCE_C_DEFAULT", PyInt_FromLong((long) 0)); - PyDict_SetItemString(d,"SCE_C_COMMENT", PyInt_FromLong((long) 1)); - PyDict_SetItemString(d,"SCE_C_COMMENTLINE", PyInt_FromLong((long) 2)); - PyDict_SetItemString(d,"SCE_C_COMMENTDOC", PyInt_FromLong((long) 3)); - PyDict_SetItemString(d,"SCE_C_NUMBER", PyInt_FromLong((long) 4)); - PyDict_SetItemString(d,"SCE_C_WORD", PyInt_FromLong((long) 5)); - PyDict_SetItemString(d,"SCE_C_STRING", PyInt_FromLong((long) 6)); - PyDict_SetItemString(d,"SCE_C_CHARACTER", PyInt_FromLong((long) 7)); - PyDict_SetItemString(d,"SCE_C_UUID", PyInt_FromLong((long) 8)); - PyDict_SetItemString(d,"SCE_C_PREPROCESSOR", PyInt_FromLong((long) 9)); - PyDict_SetItemString(d,"SCE_C_OPERATOR", PyInt_FromLong((long) 10)); - PyDict_SetItemString(d,"SCE_C_IDENTIFIER", PyInt_FromLong((long) 11)); - PyDict_SetItemString(d,"SCE_C_STRINGEOL", PyInt_FromLong((long) 12)); - PyDict_SetItemString(d,"SCE_H_DEFAULT", PyInt_FromLong((long) 0)); - PyDict_SetItemString(d,"SCE_H_TAG", PyInt_FromLong((long) 1)); - PyDict_SetItemString(d,"SCE_H_TAGUNKNOWN", PyInt_FromLong((long) 2)); - PyDict_SetItemString(d,"SCE_H_ATTRIBUTE", PyInt_FromLong((long) 3)); - PyDict_SetItemString(d,"SCE_H_ATTRIBUTEUNKNOWN", PyInt_FromLong((long) 4)); - PyDict_SetItemString(d,"SCE_H_NUMBER", PyInt_FromLong((long) 5)); - PyDict_SetItemString(d,"SCE_H_DOUBLESTRING", PyInt_FromLong((long) 6)); - PyDict_SetItemString(d,"SCE_H_SINGLESTRING", PyInt_FromLong((long) 7)); - PyDict_SetItemString(d,"SCE_H_OTHER", PyInt_FromLong((long) 8)); - PyDict_SetItemString(d,"SCE_H_COMMENT", PyInt_FromLong((long) 9)); - PyDict_SetItemString(d,"SCE_H_ENTITY", PyInt_FromLong((long) 10)); - PyDict_SetItemString(d,"SCE_H_TAGEND", PyInt_FromLong((long) 11)); - PyDict_SetItemString(d,"SCE_H_XMLSTART", PyInt_FromLong((long) 12)); - PyDict_SetItemString(d,"SCE_H_XMLEND", PyInt_FromLong((long) 13)); - PyDict_SetItemString(d,"SCE_H_SCRIPT", PyInt_FromLong((long) 14)); - PyDict_SetItemString(d,"SCE_H_ASP", PyInt_FromLong((long) 15)); - PyDict_SetItemString(d,"SCE_H_ASPAT", PyInt_FromLong((long) 16)); - PyDict_SetItemString(d,"SCE_HJ_START", PyInt_FromLong((long) 40)); - PyDict_SetItemString(d,"SCE_HJ_DEFAULT", PyInt_FromLong((long) 41)); - PyDict_SetItemString(d,"SCE_HJ_COMMENT", PyInt_FromLong((long) 42)); - PyDict_SetItemString(d,"SCE_HJ_COMMENTLINE", PyInt_FromLong((long) 43)); - PyDict_SetItemString(d,"SCE_HJ_COMMENTDOC", PyInt_FromLong((long) 44)); - PyDict_SetItemString(d,"SCE_HJ_NUMBER", PyInt_FromLong((long) 45)); - PyDict_SetItemString(d,"SCE_HJ_WORD", PyInt_FromLong((long) 46)); - PyDict_SetItemString(d,"SCE_HJ_KEYWORD", PyInt_FromLong((long) 47)); - PyDict_SetItemString(d,"SCE_HJ_DOUBLESTRING", PyInt_FromLong((long) 48)); - PyDict_SetItemString(d,"SCE_HJ_SINGLESTRING", PyInt_FromLong((long) 49)); - PyDict_SetItemString(d,"SCE_HJ_SYMBOLS", PyInt_FromLong((long) 50)); - PyDict_SetItemString(d,"SCE_HJ_STRINGEOL", PyInt_FromLong((long) 51)); - PyDict_SetItemString(d,"SCE_HJA_START", PyInt_FromLong((long) 55)); - PyDict_SetItemString(d,"SCE_HJA_DEFAULT", PyInt_FromLong((long) 56)); - PyDict_SetItemString(d,"SCE_HJA_COMMENT", PyInt_FromLong((long) 57)); - PyDict_SetItemString(d,"SCE_HJA_COMMENTLINE", PyInt_FromLong((long) 58)); - PyDict_SetItemString(d,"SCE_HJA_COMMENTDOC", PyInt_FromLong((long) 59)); - PyDict_SetItemString(d,"SCE_HJA_NUMBER", PyInt_FromLong((long) 60)); - PyDict_SetItemString(d,"SCE_HJA_WORD", PyInt_FromLong((long) 61)); - PyDict_SetItemString(d,"SCE_HJA_KEYWORD", PyInt_FromLong((long) 62)); - PyDict_SetItemString(d,"SCE_HJA_DOUBLESTRING", PyInt_FromLong((long) 63)); - PyDict_SetItemString(d,"SCE_HJA_SINGLESTRING", PyInt_FromLong((long) 64)); - PyDict_SetItemString(d,"SCE_HJA_SYMBOLS", PyInt_FromLong((long) 65)); - PyDict_SetItemString(d,"SCE_HJA_STRINGEOL", PyInt_FromLong((long) 66)); - PyDict_SetItemString(d,"SCE_HB_START", PyInt_FromLong((long) 70)); - PyDict_SetItemString(d,"SCE_HB_DEFAULT", PyInt_FromLong((long) 71)); - PyDict_SetItemString(d,"SCE_HB_COMMENTLINE", PyInt_FromLong((long) 72)); - PyDict_SetItemString(d,"SCE_HB_NUMBER", PyInt_FromLong((long) 73)); - PyDict_SetItemString(d,"SCE_HB_WORD", PyInt_FromLong((long) 74)); - PyDict_SetItemString(d,"SCE_HB_STRING", PyInt_FromLong((long) 75)); - PyDict_SetItemString(d,"SCE_HB_IDENTIFIER", PyInt_FromLong((long) 76)); - PyDict_SetItemString(d,"SCE_HB_STRINGEOL", PyInt_FromLong((long) 77)); - PyDict_SetItemString(d,"SCE_HBA_START", PyInt_FromLong((long) 80)); - PyDict_SetItemString(d,"SCE_HBA_DEFAULT", PyInt_FromLong((long) 81)); - PyDict_SetItemString(d,"SCE_HBA_COMMENTLINE", PyInt_FromLong((long) 82)); - PyDict_SetItemString(d,"SCE_HBA_NUMBER", PyInt_FromLong((long) 83)); - PyDict_SetItemString(d,"SCE_HBA_WORD", PyInt_FromLong((long) 84)); - PyDict_SetItemString(d,"SCE_HBA_STRING", PyInt_FromLong((long) 85)); - PyDict_SetItemString(d,"SCE_HBA_IDENTIFIER", PyInt_FromLong((long) 86)); - PyDict_SetItemString(d,"SCE_HBA_STRINGEOL", PyInt_FromLong((long) 87)); - PyDict_SetItemString(d,"SCE_HP_START", PyInt_FromLong((long) 90)); - PyDict_SetItemString(d,"SCE_HP_DEFAULT", PyInt_FromLong((long) 91)); - PyDict_SetItemString(d,"SCE_HP_COMMENTLINE", PyInt_FromLong((long) 92)); - PyDict_SetItemString(d,"SCE_HP_NUMBER", PyInt_FromLong((long) 93)); - PyDict_SetItemString(d,"SCE_HP_STRING", PyInt_FromLong((long) 94)); - PyDict_SetItemString(d,"SCE_HP_CHARACTER", PyInt_FromLong((long) 95)); - PyDict_SetItemString(d,"SCE_HP_WORD", PyInt_FromLong((long) 96)); - PyDict_SetItemString(d,"SCE_HP_TRIPLE", PyInt_FromLong((long) 97)); - PyDict_SetItemString(d,"SCE_HP_TRIPLEDOUBLE", PyInt_FromLong((long) 98)); - PyDict_SetItemString(d,"SCE_HP_CLASSNAME", PyInt_FromLong((long) 99)); - PyDict_SetItemString(d,"SCE_HP_DEFNAME", PyInt_FromLong((long) 100)); - PyDict_SetItemString(d,"SCE_HP_OPERATOR", PyInt_FromLong((long) 101)); - PyDict_SetItemString(d,"SCE_HP_IDENTIFIER", PyInt_FromLong((long) 102)); - PyDict_SetItemString(d,"SCE_HPA_START", PyInt_FromLong((long) 105)); - PyDict_SetItemString(d,"SCE_HPA_DEFAULT", PyInt_FromLong((long) 106)); - PyDict_SetItemString(d,"SCE_HPA_COMMENTLINE", PyInt_FromLong((long) 107)); - PyDict_SetItemString(d,"SCE_HPA_NUMBER", PyInt_FromLong((long) 108)); - PyDict_SetItemString(d,"SCE_HPA_STRING", PyInt_FromLong((long) 109)); - PyDict_SetItemString(d,"SCE_HPA_CHARACTER", PyInt_FromLong((long) 110)); - PyDict_SetItemString(d,"SCE_HPA_WORD", PyInt_FromLong((long) 111)); - PyDict_SetItemString(d,"SCE_HPA_TRIPLE", PyInt_FromLong((long) 112)); - PyDict_SetItemString(d,"SCE_HPA_TRIPLEDOUBLE", PyInt_FromLong((long) 113)); - PyDict_SetItemString(d,"SCE_HPA_CLASSNAME", PyInt_FromLong((long) 114)); - PyDict_SetItemString(d,"SCE_HPA_DEFNAME", PyInt_FromLong((long) 115)); - PyDict_SetItemString(d,"SCE_HPA_OPERATOR", PyInt_FromLong((long) 116)); - PyDict_SetItemString(d,"SCE_HPA_IDENTIFIER", PyInt_FromLong((long) 117)); - PyDict_SetItemString(d,"SCE_PL_DEFAULT", PyInt_FromLong((long) 0)); - PyDict_SetItemString(d,"SCE_PL_HERE", PyInt_FromLong((long) 1)); - PyDict_SetItemString(d,"SCE_PL_COMMENTLINE", PyInt_FromLong((long) 2)); - PyDict_SetItemString(d,"SCE_PL_POD", PyInt_FromLong((long) 3)); - PyDict_SetItemString(d,"SCE_PL_NUMBER", PyInt_FromLong((long) 4)); - PyDict_SetItemString(d,"SCE_PL_WORD", PyInt_FromLong((long) 5)); - PyDict_SetItemString(d,"SCE_PL_STRING", PyInt_FromLong((long) 6)); - PyDict_SetItemString(d,"SCE_PL_CHARACTER", PyInt_FromLong((long) 7)); - PyDict_SetItemString(d,"SCE_PL_PUNCTUATION", PyInt_FromLong((long) 8)); - PyDict_SetItemString(d,"SCE_PL_PREPROCESSOR", PyInt_FromLong((long) 9)); - PyDict_SetItemString(d,"SCE_PL_OPERATOR", PyInt_FromLong((long) 10)); - PyDict_SetItemString(d,"SCE_PL_IDENTIFIER", PyInt_FromLong((long) 11)); - PyDict_SetItemString(d,"SCE_PL_SCALAR", PyInt_FromLong((long) 12)); - PyDict_SetItemString(d,"SCE_PL_ARRAY", PyInt_FromLong((long) 13)); - PyDict_SetItemString(d,"SCE_PL_HASH", PyInt_FromLong((long) 14)); - PyDict_SetItemString(d,"SCE_PL_SYMBOLTABLE", PyInt_FromLong((long) 15)); - PyDict_SetItemString(d,"SCE_PL_REF", PyInt_FromLong((long) 16)); - PyDict_SetItemString(d,"SCE_PL_REGEX", PyInt_FromLong((long) 17)); - PyDict_SetItemString(d,"SCE_PL_REGSUBST", PyInt_FromLong((long) 18)); - PyDict_SetItemString(d,"SCE_PL_LONGQUOTE", PyInt_FromLong((long) 19)); - PyDict_SetItemString(d,"SCE_PL_BACKTICKS", PyInt_FromLong((long) 20)); - PyDict_SetItemString(d,"SCE_PL_DATASECTION", PyInt_FromLong((long) 21)); - PyDict_SetItemString(d,"SCE_L_DEFAULT", PyInt_FromLong((long) 0)); - PyDict_SetItemString(d,"SCE_L_COMMAND", PyInt_FromLong((long) 1)); - PyDict_SetItemString(d,"SCE_L_TAG", PyInt_FromLong((long) 2)); - PyDict_SetItemString(d,"SCE_L_MATH", PyInt_FromLong((long) 3)); - PyDict_SetItemString(d,"SCE_L_COMMENT", PyInt_FromLong((long) 4)); + PyDict_SetItemString(d,"wxEVT_STC_POSCHANGED", PyInt_FromLong((long) wxEVT_STC_POSCHANGED)); wxClassInfo::CleanUpClasses(); diff --git a/wxPython/contrib/stc/stc_.i b/wxPython/contrib/stc/stc_.i index f1e3ae5c69..53d586bb9c 100644 --- a/wxPython/contrib/stc/stc_.i +++ b/wxPython/contrib/stc/stc_.i @@ -34,7 +34,7 @@ // Get all our defs from the REAL header file. %include stc.h -%include SciLexer.h +//%include SciLexer.h //---------------------------------------------------------------------- // Python functions to act like the event macros @@ -79,6 +79,9 @@ def EVT_STC_MARGINCLICK(win, id, fn): def EVT_STC_NEEDSHOWN(win, id, fn): win.Connect(id, -1, wxEVT_STC_NEEDSHOWN, fn) +def EVT_STC_POSCHANGED(win, id, fn): + win.Connect(id, -1, wxEVT_STC_POSCHANGED, fn) + " diff --git a/wxPython/contrib/stc/stc_.py b/wxPython/contrib/stc/stc_.py index 5ebb258c25..28adf75bde 100644 --- a/wxPython/contrib/stc/stc_.py +++ b/wxPython/contrib/stc/stc_.py @@ -74,36 +74,15 @@ def EVT_STC_MARGINCLICK(win, id, fn): def EVT_STC_NEEDSHOWN(win, id, fn): win.Connect(id, -1, wxEVT_STC_NEEDSHOWN, fn) +def EVT_STC_POSCHANGED(win, id, fn): + win.Connect(id, -1, wxEVT_STC_POSCHANGED, fn) + class wxStyledTextCtrlPtr(wxControlPtr): def __init__(self,this): self.this = this self.thisown = 0 - def GetText(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_GetText,(self,) + _args, _kwargs) - return val - def SetText(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_SetText,(self,) + _args, _kwargs) - return val - def GetLine(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_GetLine,(self,) + _args, _kwargs) - return val - def ReplaceSelection(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_ReplaceSelection,(self,) + _args, _kwargs) - return val - def SetReadOnly(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_SetReadOnly,(self,) + _args, _kwargs) - return val - def GetReadOnly(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_GetReadOnly,(self,) + _args, _kwargs) - return val - def GetTextRange(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_GetTextRange,(self,) + _args, _kwargs) - return val - def GetStyledTextRange(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_GetStyledTextRange,(self,) + _args, _kwargs) - return val def AddText(self, *_args, **_kwargs): val = apply(stc_c.wxStyledTextCtrl_AddText,(self,) + _args, _kwargs) return val @@ -116,196 +95,77 @@ class wxStyledTextCtrlPtr(wxControlPtr): def ClearAll(self, *_args, **_kwargs): val = apply(stc_c.wxStyledTextCtrl_ClearAll,(self,) + _args, _kwargs) return val + def ClearDocumentStyle(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_ClearDocumentStyle,(self,) + _args, _kwargs) + return val + def GetLength(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_GetLength,(self,) + _args, _kwargs) + return val def GetCharAt(self, *_args, **_kwargs): val = apply(stc_c.wxStyledTextCtrl_GetCharAt,(self,) + _args, _kwargs) return val - def GetStyleAt(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_GetStyleAt,(self,) + _args, _kwargs) - return val - def SetStyleBits(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_SetStyleBits,(self,) + _args, _kwargs) - return val - def GetStyleBits(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_GetStyleBits,(self,) + _args, _kwargs) - return val - def Cut(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_Cut,(self,) + _args, _kwargs) - return val - def Copy(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_Copy,(self,) + _args, _kwargs) - return val - def Paste(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_Paste,(self,) + _args, _kwargs) - return val - def CanPaste(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_CanPaste,(self,) + _args, _kwargs) - return val - def ClearClipbrd(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_ClearClipbrd,(self,) + _args, _kwargs) - return val - def Undo(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_Undo,(self,) + _args, _kwargs) - return val - def CanUndo(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_CanUndo,(self,) + _args, _kwargs) - return val - def EmptyUndoBuffer(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_EmptyUndoBuffer,(self,) + _args, _kwargs) - return val - def Redo(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_Redo,(self,) + _args, _kwargs) - return val - def CanRedo(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_CanRedo,(self,) + _args, _kwargs) - return val - def SetUndoCollection(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_SetUndoCollection,(self,) + _args, _kwargs) - return val - def GetUndoCollection(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_GetUndoCollection,(self,) + _args, _kwargs) - return val - def BeginUndoAction(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_BeginUndoAction,(self,) + _args, _kwargs) - return val - def EndUndoAction(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_EndUndoAction,(self,) + _args, _kwargs) - return val - def SetSavePoint(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_SetSavePoint,(self,) + _args, _kwargs) - return val - def GetSelection(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_GetSelection,(self,) + _args, _kwargs) - return val - def SetSelection(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_SetSelection,(self,) + _args, _kwargs) - return val - def GetSelectedText(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_GetSelectedText,(self,) + _args, _kwargs) - return val - def HideSelection(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_HideSelection,(self,) + _args, _kwargs) - return val - def GetHideSelection(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_GetHideSelection,(self,) + _args, _kwargs) - return val - def GetTextLength(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_GetTextLength,(self,) + _args, _kwargs) - return val - def GetFirstVisibleLine(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_GetFirstVisibleLine,(self,) + _args, _kwargs) - return val - def GetModified(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_GetModified,(self,) + _args, _kwargs) - return val - def GetLineCount(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_GetLineCount,(self,) + _args, _kwargs) - return val - def GetRect(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_GetRect,(self,) + _args, _kwargs) - if val: val = wxRectPtr(val) ; val.thisown = 1 - return val - def GetLineFromPos(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_GetLineFromPos,(self,) + _args, _kwargs) - return val - def GetLineStartPos(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_GetLineStartPos,(self,) + _args, _kwargs) - return val - def GetLineLengthAtPos(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_GetLineLengthAtPos,(self,) + _args, _kwargs) - return val - def GetLineLength(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_GetLineLength,(self,) + _args, _kwargs) - return val - def GetCurrentLineText(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_GetCurrentLineText,(self,) + _args, _kwargs) - return val - def GetCurrentLine(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_GetCurrentLine,(self,) + _args, _kwargs) - return val - def PositionFromPoint(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_PositionFromPoint,(self,) + _args, _kwargs) - return val - def LineFromPoint(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_LineFromPoint,(self,) + _args, _kwargs) - return val - def PointFromPosition(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_PointFromPosition,(self,) + _args, _kwargs) - if val: val = wxPointPtr(val) ; val.thisown = 1 - return val def GetCurrentPos(self, *_args, **_kwargs): val = apply(stc_c.wxStyledTextCtrl_GetCurrentPos,(self,) + _args, _kwargs) return val def GetAnchor(self, *_args, **_kwargs): val = apply(stc_c.wxStyledTextCtrl_GetAnchor,(self,) + _args, _kwargs) return val + def GetStyleAt(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_GetStyleAt,(self,) + _args, _kwargs) + return val + def Redo(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_Redo,(self,) + _args, _kwargs) + return val + def SetUndoCollection(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_SetUndoCollection,(self,) + _args, _kwargs) + return val def SelectAll(self, *_args, **_kwargs): val = apply(stc_c.wxStyledTextCtrl_SelectAll,(self,) + _args, _kwargs) return val - def SetCurrentPosition(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_SetCurrentPosition,(self,) + _args, _kwargs) + def SetSavePoint(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_SetSavePoint,(self,) + _args, _kwargs) return val - def SetAnchor(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_SetAnchor,(self,) + _args, _kwargs) + def GetStyledText(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_GetStyledText,(self,) + _args, _kwargs) return val - def GotoPos(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_GotoPos,(self,) + _args, _kwargs) + def CanRedo(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_CanRedo,(self,) + _args, _kwargs) + return val + def MarkerLineFromHandle(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_MarkerLineFromHandle,(self,) + _args, _kwargs) + return val + def MarkerDeleteHandle(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_MarkerDeleteHandle,(self,) + _args, _kwargs) + return val + def GetUndoCollection(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_GetUndoCollection,(self,) + _args, _kwargs) + return val + def GetViewWhiteSpace(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_GetViewWhiteSpace,(self,) + _args, _kwargs) + return val + def SetViewWhiteSpace(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_SetViewWhiteSpace,(self,) + _args, _kwargs) + return val + def PositionFromPoint(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_PositionFromPoint,(self,) + _args, _kwargs) return val def GotoLine(self, *_args, **_kwargs): val = apply(stc_c.wxStyledTextCtrl_GotoLine,(self,) + _args, _kwargs) return val - def ChangePosition(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_ChangePosition,(self,) + _args, _kwargs) + def GotoPos(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_GotoPos,(self,) + _args, _kwargs) return val - def PageMove(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_PageMove,(self,) + _args, _kwargs) + def SetAnchor(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_SetAnchor,(self,) + _args, _kwargs) return val - def ScrollBy(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_ScrollBy,(self,) + _args, _kwargs) + def GetCurLine(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_GetCurLine,(self,) + _args, _kwargs) return val - def ScrollToLine(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_ScrollToLine,(self,) + _args, _kwargs) + def GetEndStyled(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_GetEndStyled,(self,) + _args, _kwargs) return val - def ScrollToColumn(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_ScrollToColumn,(self,) + _args, _kwargs) - return val - def EnsureCaretVisible(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_EnsureCaretVisible,(self,) + _args, _kwargs) - return val - def SetCaretPolicy(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_SetCaretPolicy,(self,) + _args, _kwargs) - return val - def GetSelectionType(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_GetSelectionType,(self,) + _args, _kwargs) - return val - def GetLinesOnScreen(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_GetLinesOnScreen,(self,) + _args, _kwargs) - return val - def IsSelectionRectangle(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_IsSelectionRectangle,(self,) + _args, _kwargs) - return val - def SetUseHorizontalScrollBar(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_SetUseHorizontalScrollBar,(self,) + _args, _kwargs) - return val - def GetUseHorizontalScrollBar(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_GetUseHorizontalScrollBar,(self,) + _args, _kwargs) - return val - def FindText(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_FindText,(self,) + _args, _kwargs) - return val - def SearchAnchor(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_SearchAnchor,(self,) + _args, _kwargs) - return val - def SearchNext(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_SearchNext,(self,) + _args, _kwargs) - return val - def SearchPrev(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_SearchPrev,(self,) + _args, _kwargs) - return val - def GetViewWhitespace(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_GetViewWhitespace,(self,) + _args, _kwargs) - return val - def SetViewWhitespace(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_SetViewWhitespace,(self,) + _args, _kwargs) + def ConvertEOLs(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_ConvertEOLs,(self,) + _args, _kwargs) return val def GetEOLMode(self, *_args, **_kwargs): val = apply(stc_c.wxStyledTextCtrl_GetEOLMode,(self,) + _args, _kwargs) @@ -313,80 +173,53 @@ class wxStyledTextCtrlPtr(wxControlPtr): def SetEOLMode(self, *_args, **_kwargs): val = apply(stc_c.wxStyledTextCtrl_SetEOLMode,(self,) + _args, _kwargs) return val - def GetViewEOL(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_GetViewEOL,(self,) + _args, _kwargs) - return val - def SetViewEOL(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_SetViewEOL,(self,) + _args, _kwargs) - return val - def ConvertEOL(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_ConvertEOL,(self,) + _args, _kwargs) - return val - def GetEndStyled(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_GetEndStyled,(self,) + _args, _kwargs) - return val def StartStyling(self, *_args, **_kwargs): val = apply(stc_c.wxStyledTextCtrl_StartStyling,(self,) + _args, _kwargs) return val - def SetStyleFor(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_SetStyleFor,(self,) + _args, _kwargs) + def SetStyling(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_SetStyling,(self,) + _args, _kwargs) return val - def SetStyleBytes(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_SetStyleBytes,(self,) + _args, _kwargs) + def GetBufferedDraw(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_GetBufferedDraw,(self,) + _args, _kwargs) return val - def SetLineState(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_SetLineState,(self,) + _args, _kwargs) + def SetBufferedDraw(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_SetBufferedDraw,(self,) + _args, _kwargs) return val - def GetLineState(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_GetLineState,(self,) + _args, _kwargs) + def SetTabWidth(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_SetTabWidth,(self,) + _args, _kwargs) return val - def StyleClearAll(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_StyleClearAll,(self,) + _args, _kwargs) + def GetTabWidth(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_GetTabWidth,(self,) + _args, _kwargs) return val - def StyleResetDefault(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_StyleResetDefault,(self,) + _args, _kwargs) + def SetCodePage(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_SetCodePage,(self,) + _args, _kwargs) return val - def StyleSetSpec(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_StyleSetSpec,(self,) + _args, _kwargs) + def MarkerDefine(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_MarkerDefine,(self,) + _args, _kwargs) return val - def StyleSetForeground(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_StyleSetForeground,(self,) + _args, _kwargs) + def MarkerSetForeground(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_MarkerSetForeground,(self,) + _args, _kwargs) return val - def StyleSetBackground(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_StyleSetBackground,(self,) + _args, _kwargs) + def MarkerSetBackground(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_MarkerSetBackground,(self,) + _args, _kwargs) return val - def StyleSetFont(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_StyleSetFont,(self,) + _args, _kwargs) + def MarkerAdd(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_MarkerAdd,(self,) + _args, _kwargs) return val - def StyleSetFontAttr(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_StyleSetFontAttr,(self,) + _args, _kwargs) + def MarkerDelete(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_MarkerDelete,(self,) + _args, _kwargs) return val - def StyleSetBold(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_StyleSetBold,(self,) + _args, _kwargs) + def MarkerDeleteAll(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_MarkerDeleteAll,(self,) + _args, _kwargs) return val - def StyleSetItalic(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_StyleSetItalic,(self,) + _args, _kwargs) + def MarkerGet(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_MarkerGet,(self,) + _args, _kwargs) return val - def StyleSetFaceName(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_StyleSetFaceName,(self,) + _args, _kwargs) + def MarkerNext(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_MarkerNext,(self,) + _args, _kwargs) return val - def StyleSetSize(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_StyleSetSize,(self,) + _args, _kwargs) - return val - def StyleSetEOLFilled(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_StyleSetEOLFilled,(self,) + _args, _kwargs) - return val - def StyleSetUnderline(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_StyleSetUnderline,(self,) + _args, _kwargs) - return val - def GetLeftMargin(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_GetLeftMargin,(self,) + _args, _kwargs) - return val - def GetRightMargin(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_GetRightMargin,(self,) + _args, _kwargs) - return val - def SetMargins(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_SetMargins,(self,) + _args, _kwargs) + def MarkerPrevious(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_MarkerPrevious,(self,) + _args, _kwargs) return val def SetMarginType(self, *_args, **_kwargs): val = apply(stc_c.wxStyledTextCtrl_SetMarginType,(self,) + _args, _kwargs) @@ -412,92 +245,74 @@ class wxStyledTextCtrlPtr(wxControlPtr): def GetMarginSensitive(self, *_args, **_kwargs): val = apply(stc_c.wxStyledTextCtrl_GetMarginSensitive,(self,) + _args, _kwargs) return val - def SetSelectionForeground(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_SetSelectionForeground,(self,) + _args, _kwargs) + def StyleClearAll(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_StyleClearAll,(self,) + _args, _kwargs) return val - def SetSelectionBackground(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_SetSelectionBackground,(self,) + _args, _kwargs) + def StyleSetForeground(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_StyleSetForeground,(self,) + _args, _kwargs) + return val + def StyleSetBackground(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_StyleSetBackground,(self,) + _args, _kwargs) + return val + def StyleSetBold(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_StyleSetBold,(self,) + _args, _kwargs) + return val + def StyleSetItalic(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_StyleSetItalic,(self,) + _args, _kwargs) + return val + def StyleSetSize(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_StyleSetSize,(self,) + _args, _kwargs) + return val + def StyleSetFaceName(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_StyleSetFaceName,(self,) + _args, _kwargs) + return val + def StyleSetEOLFilled(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_StyleSetEOLFilled,(self,) + _args, _kwargs) + return val + def StyleResetDefault(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_StyleResetDefault,(self,) + _args, _kwargs) + return val + def StyleSetUnderline(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_StyleSetUnderline,(self,) + _args, _kwargs) + return val + def SetSelForeground(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_SetSelForeground,(self,) + _args, _kwargs) + return val + def SetSelBackground(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_SetSelBackground,(self,) + _args, _kwargs) return val def SetCaretForeground(self, *_args, **_kwargs): val = apply(stc_c.wxStyledTextCtrl_SetCaretForeground,(self,) + _args, _kwargs) return val + def CmdKeyAssign(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_CmdKeyAssign,(self,) + _args, _kwargs) + return val + def CmdKeyClear(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_CmdKeyClear,(self,) + _args, _kwargs) + return val + def CmdKeyClearAll(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_CmdKeyClearAll,(self,) + _args, _kwargs) + return val + def SetStyleBytes(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_SetStyleBytes,(self,) + _args, _kwargs) + return val + def StyleSetVisible(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_StyleSetVisible,(self,) + _args, _kwargs) + return val def GetCaretPeriod(self, *_args, **_kwargs): val = apply(stc_c.wxStyledTextCtrl_GetCaretPeriod,(self,) + _args, _kwargs) return val def SetCaretPeriod(self, *_args, **_kwargs): val = apply(stc_c.wxStyledTextCtrl_SetCaretPeriod,(self,) + _args, _kwargs) return val - def SetBufferedDraw(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_SetBufferedDraw,(self,) + _args, _kwargs) - return val - def SetTabWidth(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_SetTabWidth,(self,) + _args, _kwargs) - return val - def SetIndent(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_SetIndent,(self,) + _args, _kwargs) - return val - def SetUseTabs(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_SetUseTabs,(self,) + _args, _kwargs) - return val - def SetLineIndentation(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_SetLineIndentation,(self,) + _args, _kwargs) - return val - def GetLineIndentation(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_GetLineIndentation,(self,) + _args, _kwargs) - return val - def GetLineIndentationPos(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_GetLineIndentationPos,(self,) + _args, _kwargs) - return val def SetWordChars(self, *_args, **_kwargs): val = apply(stc_c.wxStyledTextCtrl_SetWordChars,(self,) + _args, _kwargs) return val - def SetUsePop(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_SetUsePop,(self,) + _args, _kwargs) + def BeginUndoAction(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_BeginUndoAction,(self,) + _args, _kwargs) return val - def BraceHighlight(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_BraceHighlight,(self,) + _args, _kwargs) - return val - def BraceBadlight(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_BraceBadlight,(self,) + _args, _kwargs) - return val - def BraceMatch(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_BraceMatch,(self,) + _args, _kwargs) - return val - def MarkerDefine(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_MarkerDefine,(self,) + _args, _kwargs) - return val - def MarkerSetType(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_MarkerSetType,(self,) + _args, _kwargs) - return val - def MarkerSetForeground(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_MarkerSetForeground,(self,) + _args, _kwargs) - return val - def MarkerSetBackground(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_MarkerSetBackground,(self,) + _args, _kwargs) - return val - def MarkerAdd(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_MarkerAdd,(self,) + _args, _kwargs) - return val - def MarkerDelete(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_MarkerDelete,(self,) + _args, _kwargs) - return val - def MarkerDeleteAll(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_MarkerDeleteAll,(self,) + _args, _kwargs) - return val - def MarkerGet(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_MarkerGet,(self,) + _args, _kwargs) - return val - def MarkerGetNextLine(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_MarkerGetNextLine,(self,) + _args, _kwargs) - return val - def MarkerGetPrevLine(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_MarkerGetPrevLine,(self,) + _args, _kwargs) - return val - def MarkerLineFromHandle(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_MarkerLineFromHandle,(self,) + _args, _kwargs) - return val - def MarkerDeleteHandle(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_MarkerDeleteHandle,(self,) + _args, _kwargs) + def EndUndoAction(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_EndUndoAction,(self,) + _args, _kwargs) return val def IndicatorSetStyle(self, *_args, **_kwargs): val = apply(stc_c.wxStyledTextCtrl_IndicatorSetStyle,(self,) + _args, _kwargs) @@ -505,8 +320,27 @@ class wxStyledTextCtrlPtr(wxControlPtr): def IndicatorGetStyle(self, *_args, **_kwargs): val = apply(stc_c.wxStyledTextCtrl_IndicatorGetStyle,(self,) + _args, _kwargs) return val - def IndicatorSetColour(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_IndicatorSetColour,(self,) + _args, _kwargs) + def IndicatorSetForeground(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_IndicatorSetForeground,(self,) + _args, _kwargs) + return val + def IndicatorGetForeground(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_IndicatorGetForeground,(self,) + _args, _kwargs) + if val: val = wxColourPtr(val) ; val.thisown = 1 + return val + def SetStyleBits(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_SetStyleBits,(self,) + _args, _kwargs) + return val + def GetStyleBits(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_GetStyleBits,(self,) + _args, _kwargs) + return val + def SetLineState(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_SetLineState,(self,) + _args, _kwargs) + return val + def GetLineState(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_GetLineState,(self,) + _args, _kwargs) + return val + def GetMaxLineState(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_GetMaxLineState,(self,) + _args, _kwargs) return val def AutoCompShow(self, *_args, **_kwargs): val = apply(stc_c.wxStyledTextCtrl_AutoCompShow,(self,) + _args, _kwargs) @@ -517,14 +351,14 @@ class wxStyledTextCtrlPtr(wxControlPtr): def AutoCompActive(self, *_args, **_kwargs): val = apply(stc_c.wxStyledTextCtrl_AutoCompActive,(self,) + _args, _kwargs) return val - def AutoCompPosAtStart(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_AutoCompPosAtStart,(self,) + _args, _kwargs) + def AutoCompPosStart(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_AutoCompPosStart,(self,) + _args, _kwargs) return val def AutoCompComplete(self, *_args, **_kwargs): val = apply(stc_c.wxStyledTextCtrl_AutoCompComplete,(self,) + _args, _kwargs) return val - def AutoCompStopChars(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_AutoCompStopChars,(self,) + _args, _kwargs) + def AutoCompStops(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_AutoCompStops,(self,) + _args, _kwargs) return val def AutoCompSetSeparator(self, *_args, **_kwargs): val = apply(stc_c.wxStyledTextCtrl_AutoCompSetSeparator,(self,) + _args, _kwargs) @@ -535,6 +369,208 @@ class wxStyledTextCtrlPtr(wxControlPtr): def AutoCompSelect(self, *_args, **_kwargs): val = apply(stc_c.wxStyledTextCtrl_AutoCompSelect,(self,) + _args, _kwargs) return val + def AutoCompSetCancelAtStart(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_AutoCompSetCancelAtStart,(self,) + _args, _kwargs) + return val + def AutoCompGetCancelAtStart(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_AutoCompGetCancelAtStart,(self,) + _args, _kwargs) + return val + def AutoCompSetFillUps(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_AutoCompSetFillUps,(self,) + _args, _kwargs) + return val + def AutoCompSetChooseSingle(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_AutoCompSetChooseSingle,(self,) + _args, _kwargs) + return val + def AutoCompGetChooseSingle(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_AutoCompGetChooseSingle,(self,) + _args, _kwargs) + return val + def AutoCompSetIgnoreCase(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_AutoCompSetIgnoreCase,(self,) + _args, _kwargs) + return val + def AutoCompGetIgnoreCase(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_AutoCompGetIgnoreCase,(self,) + _args, _kwargs) + return val + def SetIndent(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_SetIndent,(self,) + _args, _kwargs) + return val + def GetIndent(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_GetIndent,(self,) + _args, _kwargs) + return val + def SetUseTabs(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_SetUseTabs,(self,) + _args, _kwargs) + return val + def GetUseTabs(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_GetUseTabs,(self,) + _args, _kwargs) + return val + def SetLineIndentation(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_SetLineIndentation,(self,) + _args, _kwargs) + return val + def GetLineIndentation(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_GetLineIndentation,(self,) + _args, _kwargs) + return val + def GetLineIndentPosition(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_GetLineIndentPosition,(self,) + _args, _kwargs) + return val + def GetColumn(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_GetColumn,(self,) + _args, _kwargs) + return val + def SetUseHorizontalScrollBar(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_SetUseHorizontalScrollBar,(self,) + _args, _kwargs) + return val + def GetUseHorizontalScrollBar(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_GetUseHorizontalScrollBar,(self,) + _args, _kwargs) + return val + def SetIndentationGuides(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_SetIndentationGuides,(self,) + _args, _kwargs) + return val + def GetIndentationGuides(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_GetIndentationGuides,(self,) + _args, _kwargs) + return val + def SetHighlightGuide(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_SetHighlightGuide,(self,) + _args, _kwargs) + return val + def GetHighlightGuide(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_GetHighlightGuide,(self,) + _args, _kwargs) + return val + def GetLineEndPosition(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_GetLineEndPosition,(self,) + _args, _kwargs) + return val + def GetCodePage(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_GetCodePage,(self,) + _args, _kwargs) + return val + def GetCaretForeground(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_GetCaretForeground,(self,) + _args, _kwargs) + if val: val = wxColourPtr(val) ; val.thisown = 1 + return val + def GetReadOnly(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_GetReadOnly,(self,) + _args, _kwargs) + return val + def SetCurrentPos(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_SetCurrentPos,(self,) + _args, _kwargs) + return val + def SetSelectionStart(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_SetSelectionStart,(self,) + _args, _kwargs) + return val + def GetSelectionStart(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_GetSelectionStart,(self,) + _args, _kwargs) + return val + def SetSelectionEnd(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_SetSelectionEnd,(self,) + _args, _kwargs) + return val + def GetSelectionEnd(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_GetSelectionEnd,(self,) + _args, _kwargs) + return val + def SetPrintMagnification(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_SetPrintMagnification,(self,) + _args, _kwargs) + return val + def GetPrintMagnification(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_GetPrintMagnification,(self,) + _args, _kwargs) + return val + def SetPrintColourMode(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_SetPrintColourMode,(self,) + _args, _kwargs) + return val + def GetPrintColourMode(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_GetPrintColourMode,(self,) + _args, _kwargs) + return val + def FindText(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_FindText,(self,) + _args, _kwargs) + return val + def FormatRange(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_FormatRange,(self,) + _args, _kwargs) + return val + def GetFirstVisibleLine(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_GetFirstVisibleLine,(self,) + _args, _kwargs) + return val + def GetLine(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_GetLine,(self,) + _args, _kwargs) + return val + def GetLineCount(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_GetLineCount,(self,) + _args, _kwargs) + return val + def SetMarginLeft(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_SetMarginLeft,(self,) + _args, _kwargs) + return val + def GetMarginLeft(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_GetMarginLeft,(self,) + _args, _kwargs) + return val + def SetMarginRight(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_SetMarginRight,(self,) + _args, _kwargs) + return val + def GetMarginRight(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_GetMarginRight,(self,) + _args, _kwargs) + return val + def GetModify(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_GetModify,(self,) + _args, _kwargs) + return val + def SetSelection(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_SetSelection,(self,) + _args, _kwargs) + return val + def GetSelectedText(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_GetSelectedText,(self,) + _args, _kwargs) + return val + def GetTextRange(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_GetTextRange,(self,) + _args, _kwargs) + return val + def HideSelection(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_HideSelection,(self,) + _args, _kwargs) + return val + def LineFromPosition(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_LineFromPosition,(self,) + _args, _kwargs) + return val + def PositionFromLine(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_PositionFromLine,(self,) + _args, _kwargs) + return val + def LineScroll(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_LineScroll,(self,) + _args, _kwargs) + return val + def EnsureCaretVisible(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_EnsureCaretVisible,(self,) + _args, _kwargs) + return val + def ReplaceSelection(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_ReplaceSelection,(self,) + _args, _kwargs) + return val + def SetReadOnly(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_SetReadOnly,(self,) + _args, _kwargs) + return val + def CanPaste(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_CanPaste,(self,) + _args, _kwargs) + return val + def CanUndo(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_CanUndo,(self,) + _args, _kwargs) + return val + def EmptyUndoBuffer(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_EmptyUndoBuffer,(self,) + _args, _kwargs) + return val + def Undo(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_Undo,(self,) + _args, _kwargs) + return val + def Cut(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_Cut,(self,) + _args, _kwargs) + return val + def Copy(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_Copy,(self,) + _args, _kwargs) + return val + def Paste(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_Paste,(self,) + _args, _kwargs) + return val + def Clear(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_Clear,(self,) + _args, _kwargs) + return val + def SetText(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_SetText,(self,) + _args, _kwargs) + return val + def GetText(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_GetText,(self,) + _args, _kwargs) + return val + def GetTextLength(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_GetTextLength,(self,) + _args, _kwargs) + return val + def SetOvertype(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_SetOvertype,(self,) + _args, _kwargs) + return val + def GetOvertype(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_GetOvertype,(self,) + _args, _kwargs) + return val def CallTipShow(self, *_args, **_kwargs): val = apply(stc_c.wxStyledTextCtrl_CallTipShow,(self,) + _args, _kwargs) return val @@ -553,27 +589,6 @@ class wxStyledTextCtrlPtr(wxControlPtr): def CallTipSetBackground(self, *_args, **_kwargs): val = apply(stc_c.wxStyledTextCtrl_CallTipSetBackground,(self,) + _args, _kwargs) return val - def CmdKeyAssign(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_CmdKeyAssign,(self,) + _args, _kwargs) - return val - def CmdKeyClear(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_CmdKeyClear,(self,) + _args, _kwargs) - return val - def CmdKeyClearAll(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_CmdKeyClearAll,(self,) + _args, _kwargs) - return val - def CmdKeyExecute(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_CmdKeyExecute,(self,) + _args, _kwargs) - return val - def FormatRange(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_FormatRange,(self,) + _args, _kwargs) - return val - def GetDocument(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_GetDocument,(self,) + _args, _kwargs) - return val - def SetDocument(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_SetDocument,(self,) + _args, _kwargs) - return val def VisibleFromDocLine(self, *_args, **_kwargs): val = apply(stc_c.wxStyledTextCtrl_VisibleFromDocLine,(self,) + _args, _kwargs) return val @@ -616,17 +631,32 @@ class wxStyledTextCtrlPtr(wxControlPtr): def SetFoldFlags(self, *_args, **_kwargs): val = apply(stc_c.wxStyledTextCtrl_SetFoldFlags,(self,) + _args, _kwargs) return val - def ZoomIn(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_ZoomIn,(self,) + _args, _kwargs) + def LineLength(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_LineLength,(self,) + _args, _kwargs) return val - def ZoomOut(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_ZoomOut,(self,) + _args, _kwargs) + def BraceHighlight(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_BraceHighlight,(self,) + _args, _kwargs) return val - def SetZoom(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_SetZoom,(self,) + _args, _kwargs) + def BraceBadLight(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_BraceBadLight,(self,) + _args, _kwargs) return val - def GetZoom(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_GetZoom,(self,) + _args, _kwargs) + def BraceMatch(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_BraceMatch,(self,) + _args, _kwargs) + return val + def GetViewEOL(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_GetViewEOL,(self,) + _args, _kwargs) + return val + def SetViewEOL(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_SetViewEOL,(self,) + _args, _kwargs) + return val + def GetDocPointer(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_GetDocPointer,(self,) + _args, _kwargs) + return val + def SetDocPointer(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_SetDocPointer,(self,) + _args, _kwargs) + return val + def SetModEventMask(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_SetModEventMask,(self,) + _args, _kwargs) return val def GetEdgeColumn(self, *_args, **_kwargs): val = apply(stc_c.wxStyledTextCtrl_GetEdgeColumn,(self,) + _args, _kwargs) @@ -647,6 +677,51 @@ class wxStyledTextCtrlPtr(wxControlPtr): def SetEdgeColour(self, *_args, **_kwargs): val = apply(stc_c.wxStyledTextCtrl_SetEdgeColour,(self,) + _args, _kwargs) return val + def SearchAnchor(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_SearchAnchor,(self,) + _args, _kwargs) + return val + def SearchNext(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_SearchNext,(self,) + _args, _kwargs) + return val + def SearchPrev(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_SearchPrev,(self,) + _args, _kwargs) + return val + def SetCaretPolicy(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_SetCaretPolicy,(self,) + _args, _kwargs) + return val + def LinesOnScreen(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_LinesOnScreen,(self,) + _args, _kwargs) + return val + def UsePopUp(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_UsePopUp,(self,) + _args, _kwargs) + return val + def SelectionIsRectangle(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_SelectionIsRectangle,(self,) + _args, _kwargs) + return val + def SetZoom(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_SetZoom,(self,) + _args, _kwargs) + return val + def GetZoom(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_GetZoom,(self,) + _args, _kwargs) + return val + def CreateDocument(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_CreateDocument,(self,) + _args, _kwargs) + return val + def AddRefDocument(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_AddRefDocument,(self,) + _args, _kwargs) + return val + def ReleaseDocument(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_ReleaseDocument,(self,) + _args, _kwargs) + return val + def GetModEventMask(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_GetModEventMask,(self,) + _args, _kwargs) + return val + def StartRecord(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_StartRecord,(self,) + _args, _kwargs) + return val + def StopRecord(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_StopRecord,(self,) + _args, _kwargs) + return val def SetLexer(self, *_args, **_kwargs): val = apply(stc_c.wxStyledTextCtrl_SetLexer,(self,) + _args, _kwargs) return val @@ -659,11 +734,33 @@ class wxStyledTextCtrlPtr(wxControlPtr): def SetProperty(self, *_args, **_kwargs): val = apply(stc_c.wxStyledTextCtrl_SetProperty,(self,) + _args, _kwargs) return val - def SetKeywords(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_SetKeywords,(self,) + _args, _kwargs) + def SetKeyWords(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_SetKeyWords,(self,) + _args, _kwargs) return val - def SetModEventMask(self, *_args, **_kwargs): - val = apply(stc_c.wxStyledTextCtrl_SetModEventMask,(self,) + _args, _kwargs) + def GetCurrentLine(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_GetCurrentLine,(self,) + _args, _kwargs) + return val + def StyleSetSpec(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_StyleSetSpec,(self,) + _args, _kwargs) + return val + def StyleSetFont(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_StyleSetFont,(self,) + _args, _kwargs) + return val + def StyleSetFontAttr(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_StyleSetFontAttr,(self,) + _args, _kwargs) + return val + def CmdKeyExecute(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_CmdKeyExecute,(self,) + _args, _kwargs) + return val + def SetMargins(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_SetMargins,(self,) + _args, _kwargs) + return val + def GetSelection(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_GetSelection,(self,) + _args, _kwargs) + return val + def PointFromPosition(self, *_args, **_kwargs): + val = apply(stc_c.wxStyledTextCtrl_PointFromPosition,(self,) + _args, _kwargs) + if val: val = wxPointPtr(val) ; val.thisown = 1 return val def __repr__(self): return "" % (self.this,) @@ -796,22 +893,19 @@ class wxStyledTextEvent(wxStyledTextEventPtr): #-------------- VARIABLE WRAPPERS ------------------ -wxSTC_UndoCollectNone = stc_c.wxSTC_UndoCollectNone -wxSTC_UndoCollectAutoStart = stc_c.wxSTC_UndoCollectAutoStart +wxSTC_INVALID_POSITION = stc_c.wxSTC_INVALID_POSITION +wxSTC_START = stc_c.wxSTC_START +wxSTC_OPTIONAL_START = stc_c.wxSTC_OPTIONAL_START +wxSTC_LEXER_START = stc_c.wxSTC_LEXER_START +wxSTC_CMD_REDO = stc_c.wxSTC_CMD_REDO +wxSTC_CMD_SELECTALL = stc_c.wxSTC_CMD_SELECTALL +wxSTC_WS_INVISIBLE = stc_c.wxSTC_WS_INVISIBLE +wxSTC_WS_VISIBLEALWAYS = stc_c.wxSTC_WS_VISIBLEALWAYS +wxSTC_WS_VISIBLEAFTERINDENT = stc_c.wxSTC_WS_VISIBLEAFTERINDENT wxSTC_EOL_CRLF = stc_c.wxSTC_EOL_CRLF wxSTC_EOL_CR = stc_c.wxSTC_EOL_CR wxSTC_EOL_LF = stc_c.wxSTC_EOL_LF -wxSTC_EDGE_NONE = stc_c.wxSTC_EDGE_NONE -wxSTC_EDGE_LINE = stc_c.wxSTC_EDGE_LINE -wxSTC_EDGE_BACKGROUND = stc_c.wxSTC_EDGE_BACKGROUND -wxSTC_LEX_STYLE_MAX = stc_c.wxSTC_LEX_STYLE_MAX -wxSTC_STYLE_DEFAULT = stc_c.wxSTC_STYLE_DEFAULT -wxSTC_STYLE_LINENUMBER = stc_c.wxSTC_STYLE_LINENUMBER -wxSTC_STYLE_BRACELIGHT = stc_c.wxSTC_STYLE_BRACELIGHT -wxSTC_STYLE_BRACEBAD = stc_c.wxSTC_STYLE_BRACEBAD -wxSTC_STYLE_CONTROLCHAR = stc_c.wxSTC_STYLE_CONTROLCHAR -wxSTC_STYLE_MAX = stc_c.wxSTC_STYLE_MAX -wxSTC_STYLE_MASK = stc_c.wxSTC_STYLE_MASK +wxSTC_CP_UTF8 = stc_c.wxSTC_CP_UTF8 wxSTC_MARKER_MAX = stc_c.wxSTC_MARKER_MAX wxSTC_MARK_CIRCLE = stc_c.wxSTC_MARK_CIRCLE wxSTC_MARK_ROUNDRECT = stc_c.wxSTC_MARK_ROUNDRECT @@ -824,7 +918,34 @@ wxSTC_MARK_MINUS = stc_c.wxSTC_MARK_MINUS wxSTC_MARK_PLUS = stc_c.wxSTC_MARK_PLUS wxSTC_MARKNUM_FOLDER = stc_c.wxSTC_MARKNUM_FOLDER wxSTC_MARKNUM_FOLDEROPEN = stc_c.wxSTC_MARKNUM_FOLDEROPEN -wxSTC_MASK_FOLDERS = stc_c.wxSTC_MASK_FOLDERS +wxSTC_MARGIN_SYMBOL = stc_c.wxSTC_MARGIN_SYMBOL +wxSTC_MARGIN_NUMBER = stc_c.wxSTC_MARGIN_NUMBER +wxSTC_STYLE_DEFAULT = stc_c.wxSTC_STYLE_DEFAULT +wxSTC_STYLE_LINENUMBER = stc_c.wxSTC_STYLE_LINENUMBER +wxSTC_STYLE_BRACELIGHT = stc_c.wxSTC_STYLE_BRACELIGHT +wxSTC_STYLE_BRACEBAD = stc_c.wxSTC_STYLE_BRACEBAD +wxSTC_STYLE_CONTROLCHAR = stc_c.wxSTC_STYLE_CONTROLCHAR +wxSTC_STYLE_INDENTGUIDE = stc_c.wxSTC_STYLE_INDENTGUIDE +wxSTC_STYLE_MAX = stc_c.wxSTC_STYLE_MAX +wxSTC_CHARSET_ANSI = stc_c.wxSTC_CHARSET_ANSI +wxSTC_CHARSET_DEFAULT = stc_c.wxSTC_CHARSET_DEFAULT +wxSTC_CHARSET_BALTIC = stc_c.wxSTC_CHARSET_BALTIC +wxSTC_CHARSET_CHINESEBIG5 = stc_c.wxSTC_CHARSET_CHINESEBIG5 +wxSTC_CHARSET_EASTEUROPE = stc_c.wxSTC_CHARSET_EASTEUROPE +wxSTC_CHARSET_GB2312 = stc_c.wxSTC_CHARSET_GB2312 +wxSTC_CHARSET_GREEK = stc_c.wxSTC_CHARSET_GREEK +wxSTC_CHARSET_HANGUL = stc_c.wxSTC_CHARSET_HANGUL +wxSTC_CHARSET_MAC = stc_c.wxSTC_CHARSET_MAC +wxSTC_CHARSET_OEM = stc_c.wxSTC_CHARSET_OEM +wxSTC_CHARSET_RUSSIAN = stc_c.wxSTC_CHARSET_RUSSIAN +wxSTC_CHARSET_SHIFTJIS = stc_c.wxSTC_CHARSET_SHIFTJIS +wxSTC_CHARSET_SYMBOL = stc_c.wxSTC_CHARSET_SYMBOL +wxSTC_CHARSET_TURKISH = stc_c.wxSTC_CHARSET_TURKISH +wxSTC_CHARSET_JOHAB = stc_c.wxSTC_CHARSET_JOHAB +wxSTC_CHARSET_HEBREW = stc_c.wxSTC_CHARSET_HEBREW +wxSTC_CHARSET_ARABIC = stc_c.wxSTC_CHARSET_ARABIC +wxSTC_CHARSET_VIETNAMESE = stc_c.wxSTC_CHARSET_VIETNAMESE +wxSTC_CHARSET_THAI = stc_c.wxSTC_CHARSET_THAI wxSTC_INDIC_MAX = stc_c.wxSTC_INDIC_MAX wxSTC_INDIC_PLAIN = stc_c.wxSTC_INDIC_PLAIN wxSTC_INDIC_SQUIGGLE = stc_c.wxSTC_INDIC_SQUIGGLE @@ -835,6 +956,18 @@ wxSTC_INDIC0_MASK = stc_c.wxSTC_INDIC0_MASK wxSTC_INDIC1_MASK = stc_c.wxSTC_INDIC1_MASK wxSTC_INDIC2_MASK = stc_c.wxSTC_INDIC2_MASK wxSTC_INDICS_MASK = stc_c.wxSTC_INDICS_MASK +wxSTC_PRINT_NORMAL = stc_c.wxSTC_PRINT_NORMAL +wxSTC_PRINT_INVERTLIGHT = stc_c.wxSTC_PRINT_INVERTLIGHT +wxSTC_PRINT_BLACKONWHITE = stc_c.wxSTC_PRINT_BLACKONWHITE +wxSTC_FIND_DOWN = stc_c.wxSTC_FIND_DOWN +wxSTC_FIND_WHOLEWORD = stc_c.wxSTC_FIND_WHOLEWORD +wxSTC_FIND_MATCHCASE = stc_c.wxSTC_FIND_MATCHCASE +wxSTC_FIND_WORDSTART = stc_c.wxSTC_FIND_WORDSTART +wxSTC_FIND_REGEXP = stc_c.wxSTC_FIND_REGEXP +wxSTC_CMD_UNDO = stc_c.wxSTC_CMD_UNDO +wxSTC_CMD_CUT = stc_c.wxSTC_CMD_CUT +wxSTC_CMD_COPY = stc_c.wxSTC_CMD_COPY +wxSTC_CMD_PASTE = stc_c.wxSTC_CMD_PASTE wxSTC_FOLDLEVELBASE = stc_c.wxSTC_FOLDLEVELBASE wxSTC_FOLDLEVELWHITEFLAG = stc_c.wxSTC_FOLDLEVELWHITEFLAG wxSTC_FOLDLEVELHEADERFLAG = stc_c.wxSTC_FOLDLEVELHEADERFLAG @@ -883,6 +1016,44 @@ wxSTC_CMD_LOWERCASE = stc_c.wxSTC_CMD_LOWERCASE wxSTC_CMD_UPPERCASE = stc_c.wxSTC_CMD_UPPERCASE wxSTC_CMD_LINESCROLLDOWN = stc_c.wxSTC_CMD_LINESCROLLDOWN wxSTC_CMD_LINESCROLLUP = stc_c.wxSTC_CMD_LINESCROLLUP +wxSTC_EDGE_NONE = stc_c.wxSTC_EDGE_NONE +wxSTC_EDGE_LINE = stc_c.wxSTC_EDGE_LINE +wxSTC_EDGE_BACKGROUND = stc_c.wxSTC_EDGE_BACKGROUND +wxSTC_CARET_SLOP = stc_c.wxSTC_CARET_SLOP +wxSTC_CARET_CENTER = stc_c.wxSTC_CARET_CENTER +wxSTC_CARET_STRICT = stc_c.wxSTC_CARET_STRICT +wxSTC_MOD_INSERTTEXT = stc_c.wxSTC_MOD_INSERTTEXT +wxSTC_MOD_DELETETEXT = stc_c.wxSTC_MOD_DELETETEXT +wxSTC_MOD_CHANGESTYLE = stc_c.wxSTC_MOD_CHANGESTYLE +wxSTC_MOD_CHANGEFOLD = stc_c.wxSTC_MOD_CHANGEFOLD +wxSTC_PERFORMED_USER = stc_c.wxSTC_PERFORMED_USER +wxSTC_PERFORMED_UNDO = stc_c.wxSTC_PERFORMED_UNDO +wxSTC_PERFORMED_REDO = stc_c.wxSTC_PERFORMED_REDO +wxSTC_LASTSTEPINUNDOREDO = stc_c.wxSTC_LASTSTEPINUNDOREDO +wxSTC_MOD_CHANGEMARKER = stc_c.wxSTC_MOD_CHANGEMARKER +wxSTC_MOD_BEFOREINSERT = stc_c.wxSTC_MOD_BEFOREINSERT +wxSTC_MOD_BEFOREDELETE = stc_c.wxSTC_MOD_BEFOREDELETE +wxSTC_MODEVENTMASKALL = stc_c.wxSTC_MODEVENTMASKALL +wxSTC_KEY_DOWN = stc_c.wxSTC_KEY_DOWN +wxSTC_KEY_UP = stc_c.wxSTC_KEY_UP +wxSTC_KEY_LEFT = stc_c.wxSTC_KEY_LEFT +wxSTC_KEY_RIGHT = stc_c.wxSTC_KEY_RIGHT +wxSTC_KEY_HOME = stc_c.wxSTC_KEY_HOME +wxSTC_KEY_END = stc_c.wxSTC_KEY_END +wxSTC_KEY_PRIOR = stc_c.wxSTC_KEY_PRIOR +wxSTC_KEY_NEXT = stc_c.wxSTC_KEY_NEXT +wxSTC_KEY_DELETE = stc_c.wxSTC_KEY_DELETE +wxSTC_KEY_INSERT = stc_c.wxSTC_KEY_INSERT +wxSTC_KEY_ESCAPE = stc_c.wxSTC_KEY_ESCAPE +wxSTC_KEY_BACK = stc_c.wxSTC_KEY_BACK +wxSTC_KEY_TAB = stc_c.wxSTC_KEY_TAB +wxSTC_KEY_RETURN = stc_c.wxSTC_KEY_RETURN +wxSTC_KEY_ADD = stc_c.wxSTC_KEY_ADD +wxSTC_KEY_SUBTRACT = stc_c.wxSTC_KEY_SUBTRACT +wxSTC_KEY_DIVIDE = stc_c.wxSTC_KEY_DIVIDE +wxSTC_SCMOD_SHIFT = stc_c.wxSTC_SCMOD_SHIFT +wxSTC_SCMOD_CTRL = stc_c.wxSTC_SCMOD_CTRL +wxSTC_SCMOD_ALT = stc_c.wxSTC_SCMOD_ALT wxSTC_LEX_CONTAINER = stc_c.wxSTC_LEX_CONTAINER wxSTC_LEX_NULL = stc_c.wxSTC_LEX_NULL wxSTC_LEX_PYTHON = stc_c.wxSTC_LEX_PYTHON @@ -898,11 +1069,179 @@ wxSTC_LEX_MAKEFILE = stc_c.wxSTC_LEX_MAKEFILE wxSTC_LEX_BATCH = stc_c.wxSTC_LEX_BATCH wxSTC_LEX_XCODE = stc_c.wxSTC_LEX_XCODE wxSTC_LEX_LATEX = stc_c.wxSTC_LEX_LATEX -wxSTC_CARET_SLOP = stc_c.wxSTC_CARET_SLOP -WXSTC_CARET_CENTER = stc_c.WXSTC_CARET_CENTER -wxSTC_CARET_STRICT = stc_c.wxSTC_CARET_STRICT -wxSTC_MARGIN_SYMBOL = stc_c.wxSTC_MARGIN_SYMBOL -wxSTC_MARGIN_NUMBER = stc_c.wxSTC_MARGIN_NUMBER +wxSTC_LEX_LUA = stc_c.wxSTC_LEX_LUA +wxSTC_LEX_DIFF = stc_c.wxSTC_LEX_DIFF +wxSTC_P_DEFAULT = stc_c.wxSTC_P_DEFAULT +wxSTC_P_COMMENTLINE = stc_c.wxSTC_P_COMMENTLINE +wxSTC_P_NUMBER = stc_c.wxSTC_P_NUMBER +wxSTC_P_STRING = stc_c.wxSTC_P_STRING +wxSTC_P_CHARACTER = stc_c.wxSTC_P_CHARACTER +wxSTC_P_WORD = stc_c.wxSTC_P_WORD +wxSTC_P_TRIPLE = stc_c.wxSTC_P_TRIPLE +wxSTC_P_TRIPLEDOUBLE = stc_c.wxSTC_P_TRIPLEDOUBLE +wxSTC_P_CLASSNAME = stc_c.wxSTC_P_CLASSNAME +wxSTC_P_DEFNAME = stc_c.wxSTC_P_DEFNAME +wxSTC_P_OPERATOR = stc_c.wxSTC_P_OPERATOR +wxSTC_P_IDENTIFIER = stc_c.wxSTC_P_IDENTIFIER +wxSTC_P_COMMENTBLOCK = stc_c.wxSTC_P_COMMENTBLOCK +wxSTC_P_STRINGEOL = stc_c.wxSTC_P_STRINGEOL +wxSTC_C_DEFAULT = stc_c.wxSTC_C_DEFAULT +wxSTC_C_COMMENT = stc_c.wxSTC_C_COMMENT +wxSTC_C_COMMENTLINE = stc_c.wxSTC_C_COMMENTLINE +wxSTC_C_COMMENTDOC = stc_c.wxSTC_C_COMMENTDOC +wxSTC_C_NUMBER = stc_c.wxSTC_C_NUMBER +wxSTC_C_WORD = stc_c.wxSTC_C_WORD +wxSTC_C_STRING = stc_c.wxSTC_C_STRING +wxSTC_C_CHARACTER = stc_c.wxSTC_C_CHARACTER +wxSTC_C_UUID = stc_c.wxSTC_C_UUID +wxSTC_C_PREPROCESSOR = stc_c.wxSTC_C_PREPROCESSOR +wxSTC_C_OPERATOR = stc_c.wxSTC_C_OPERATOR +wxSTC_C_IDENTIFIER = stc_c.wxSTC_C_IDENTIFIER +wxSTC_C_STRINGEOL = stc_c.wxSTC_C_STRINGEOL +wxSTC_C_VERBATIM = stc_c.wxSTC_C_VERBATIM +wxSTC_H_DEFAULT = stc_c.wxSTC_H_DEFAULT +wxSTC_H_TAG = stc_c.wxSTC_H_TAG +wxSTC_H_TAGUNKNOWN = stc_c.wxSTC_H_TAGUNKNOWN +wxSTC_H_ATTRIBUTE = stc_c.wxSTC_H_ATTRIBUTE +wxSTC_H_ATTRIBUTEUNKNOWN = stc_c.wxSTC_H_ATTRIBUTEUNKNOWN +wxSTC_H_NUMBER = stc_c.wxSTC_H_NUMBER +wxSTC_H_DOUBLESTRING = stc_c.wxSTC_H_DOUBLESTRING +wxSTC_H_SINGLESTRING = stc_c.wxSTC_H_SINGLESTRING +wxSTC_H_OTHER = stc_c.wxSTC_H_OTHER +wxSTC_H_COMMENT = stc_c.wxSTC_H_COMMENT +wxSTC_H_ENTITY = stc_c.wxSTC_H_ENTITY +wxSTC_H_TAGEND = stc_c.wxSTC_H_TAGEND +wxSTC_H_XMLSTART = stc_c.wxSTC_H_XMLSTART +wxSTC_H_XMLEND = stc_c.wxSTC_H_XMLEND +wxSTC_H_SCRIPT = stc_c.wxSTC_H_SCRIPT +wxSTC_H_ASP = stc_c.wxSTC_H_ASP +wxSTC_H_ASPAT = stc_c.wxSTC_H_ASPAT +wxSTC_H_CDATA = stc_c.wxSTC_H_CDATA +wxSTC_H_QUESTION = stc_c.wxSTC_H_QUESTION +wxSTC_H_VALUE = stc_c.wxSTC_H_VALUE +wxSTC_HJ_START = stc_c.wxSTC_HJ_START +wxSTC_HJ_DEFAULT = stc_c.wxSTC_HJ_DEFAULT +wxSTC_HJ_COMMENT = stc_c.wxSTC_HJ_COMMENT +wxSTC_HJ_COMMENTLINE = stc_c.wxSTC_HJ_COMMENTLINE +wxSTC_HJ_COMMENTDOC = stc_c.wxSTC_HJ_COMMENTDOC +wxSTC_HJ_NUMBER = stc_c.wxSTC_HJ_NUMBER +wxSTC_HJ_WORD = stc_c.wxSTC_HJ_WORD +wxSTC_HJ_KEYWORD = stc_c.wxSTC_HJ_KEYWORD +wxSTC_HJ_DOUBLESTRING = stc_c.wxSTC_HJ_DOUBLESTRING +wxSTC_HJ_SINGLESTRING = stc_c.wxSTC_HJ_SINGLESTRING +wxSTC_HJ_SYMBOLS = stc_c.wxSTC_HJ_SYMBOLS +wxSTC_HJ_STRINGEOL = stc_c.wxSTC_HJ_STRINGEOL +wxSTC_HJA_START = stc_c.wxSTC_HJA_START +wxSTC_HJA_DEFAULT = stc_c.wxSTC_HJA_DEFAULT +wxSTC_HJA_COMMENT = stc_c.wxSTC_HJA_COMMENT +wxSTC_HJA_COMMENTLINE = stc_c.wxSTC_HJA_COMMENTLINE +wxSTC_HJA_COMMENTDOC = stc_c.wxSTC_HJA_COMMENTDOC +wxSTC_HJA_NUMBER = stc_c.wxSTC_HJA_NUMBER +wxSTC_HJA_WORD = stc_c.wxSTC_HJA_WORD +wxSTC_HJA_KEYWORD = stc_c.wxSTC_HJA_KEYWORD +wxSTC_HJA_DOUBLESTRING = stc_c.wxSTC_HJA_DOUBLESTRING +wxSTC_HJA_SINGLESTRING = stc_c.wxSTC_HJA_SINGLESTRING +wxSTC_HJA_SYMBOLS = stc_c.wxSTC_HJA_SYMBOLS +wxSTC_HJA_STRINGEOL = stc_c.wxSTC_HJA_STRINGEOL +wxSTC_HB_START = stc_c.wxSTC_HB_START +wxSTC_HB_DEFAULT = stc_c.wxSTC_HB_DEFAULT +wxSTC_HB_COMMENTLINE = stc_c.wxSTC_HB_COMMENTLINE +wxSTC_HB_NUMBER = stc_c.wxSTC_HB_NUMBER +wxSTC_HB_WORD = stc_c.wxSTC_HB_WORD +wxSTC_HB_STRING = stc_c.wxSTC_HB_STRING +wxSTC_HB_IDENTIFIER = stc_c.wxSTC_HB_IDENTIFIER +wxSTC_HB_STRINGEOL = stc_c.wxSTC_HB_STRINGEOL +wxSTC_HBA_START = stc_c.wxSTC_HBA_START +wxSTC_HBA_DEFAULT = stc_c.wxSTC_HBA_DEFAULT +wxSTC_HBA_COMMENTLINE = stc_c.wxSTC_HBA_COMMENTLINE +wxSTC_HBA_NUMBER = stc_c.wxSTC_HBA_NUMBER +wxSTC_HBA_WORD = stc_c.wxSTC_HBA_WORD +wxSTC_HBA_STRING = stc_c.wxSTC_HBA_STRING +wxSTC_HBA_IDENTIFIER = stc_c.wxSTC_HBA_IDENTIFIER +wxSTC_HBA_STRINGEOL = stc_c.wxSTC_HBA_STRINGEOL +wxSTC_HP_START = stc_c.wxSTC_HP_START +wxSTC_HP_DEFAULT = stc_c.wxSTC_HP_DEFAULT +wxSTC_HP_COMMENTLINE = stc_c.wxSTC_HP_COMMENTLINE +wxSTC_HP_NUMBER = stc_c.wxSTC_HP_NUMBER +wxSTC_HP_STRING = stc_c.wxSTC_HP_STRING +wxSTC_HP_CHARACTER = stc_c.wxSTC_HP_CHARACTER +wxSTC_HP_WORD = stc_c.wxSTC_HP_WORD +wxSTC_HP_TRIPLE = stc_c.wxSTC_HP_TRIPLE +wxSTC_HP_TRIPLEDOUBLE = stc_c.wxSTC_HP_TRIPLEDOUBLE +wxSTC_HP_CLASSNAME = stc_c.wxSTC_HP_CLASSNAME +wxSTC_HP_DEFNAME = stc_c.wxSTC_HP_DEFNAME +wxSTC_HP_OPERATOR = stc_c.wxSTC_HP_OPERATOR +wxSTC_HP_IDENTIFIER = stc_c.wxSTC_HP_IDENTIFIER +wxSTC_HPA_START = stc_c.wxSTC_HPA_START +wxSTC_HPA_DEFAULT = stc_c.wxSTC_HPA_DEFAULT +wxSTC_HPA_COMMENTLINE = stc_c.wxSTC_HPA_COMMENTLINE +wxSTC_HPA_NUMBER = stc_c.wxSTC_HPA_NUMBER +wxSTC_HPA_STRING = stc_c.wxSTC_HPA_STRING +wxSTC_HPA_CHARACTER = stc_c.wxSTC_HPA_CHARACTER +wxSTC_HPA_WORD = stc_c.wxSTC_HPA_WORD +wxSTC_HPA_TRIPLE = stc_c.wxSTC_HPA_TRIPLE +wxSTC_HPA_TRIPLEDOUBLE = stc_c.wxSTC_HPA_TRIPLEDOUBLE +wxSTC_HPA_CLASSNAME = stc_c.wxSTC_HPA_CLASSNAME +wxSTC_HPA_DEFNAME = stc_c.wxSTC_HPA_DEFNAME +wxSTC_HPA_OPERATOR = stc_c.wxSTC_HPA_OPERATOR +wxSTC_HPA_IDENTIFIER = stc_c.wxSTC_HPA_IDENTIFIER +wxSTC_HPHP_DEFAULT = stc_c.wxSTC_HPHP_DEFAULT +wxSTC_HPHP_HSTRING = stc_c.wxSTC_HPHP_HSTRING +wxSTC_HPHP_SIMPLESTRING = stc_c.wxSTC_HPHP_SIMPLESTRING +wxSTC_HPHP_WORD = stc_c.wxSTC_HPHP_WORD +wxSTC_HPHP_NUMBER = stc_c.wxSTC_HPHP_NUMBER +wxSTC_HPHP_VARIABLE = stc_c.wxSTC_HPHP_VARIABLE +wxSTC_HPHP_COMMENT = stc_c.wxSTC_HPHP_COMMENT +wxSTC_HPHP_COMMENTLINE = stc_c.wxSTC_HPHP_COMMENTLINE +wxSTC_HPHP_STRINGEOL = stc_c.wxSTC_HPHP_STRINGEOL +wxSTC_PL_DEFAULT = stc_c.wxSTC_PL_DEFAULT +wxSTC_PL_HERE = stc_c.wxSTC_PL_HERE +wxSTC_PL_COMMENTLINE = stc_c.wxSTC_PL_COMMENTLINE +wxSTC_PL_POD = stc_c.wxSTC_PL_POD +wxSTC_PL_NUMBER = stc_c.wxSTC_PL_NUMBER +wxSTC_PL_WORD = stc_c.wxSTC_PL_WORD +wxSTC_PL_STRING = stc_c.wxSTC_PL_STRING +wxSTC_PL_CHARACTER = stc_c.wxSTC_PL_CHARACTER +wxSTC_PL_PUNCTUATION = stc_c.wxSTC_PL_PUNCTUATION +wxSTC_PL_PREPROCESSOR = stc_c.wxSTC_PL_PREPROCESSOR +wxSTC_PL_OPERATOR = stc_c.wxSTC_PL_OPERATOR +wxSTC_PL_IDENTIFIER = stc_c.wxSTC_PL_IDENTIFIER +wxSTC_PL_SCALAR = stc_c.wxSTC_PL_SCALAR +wxSTC_PL_ARRAY = stc_c.wxSTC_PL_ARRAY +wxSTC_PL_HASH = stc_c.wxSTC_PL_HASH +wxSTC_PL_SYMBOLTABLE = stc_c.wxSTC_PL_SYMBOLTABLE +wxSTC_PL_REF = stc_c.wxSTC_PL_REF +wxSTC_PL_REGEX = stc_c.wxSTC_PL_REGEX +wxSTC_PL_REGSUBST = stc_c.wxSTC_PL_REGSUBST +wxSTC_PL_LONGQUOTE = stc_c.wxSTC_PL_LONGQUOTE +wxSTC_PL_BACKTICKS = stc_c.wxSTC_PL_BACKTICKS +wxSTC_PL_DATASECTION = stc_c.wxSTC_PL_DATASECTION +wxSTC_L_DEFAULT = stc_c.wxSTC_L_DEFAULT +wxSTC_L_COMMAND = stc_c.wxSTC_L_COMMAND +wxSTC_L_TAG = stc_c.wxSTC_L_TAG +wxSTC_L_MATH = stc_c.wxSTC_L_MATH +wxSTC_L_COMMENT = stc_c.wxSTC_L_COMMENT +wxSTC_LUA_DEFAULT = stc_c.wxSTC_LUA_DEFAULT +wxSTC_LUA_COMMENT = stc_c.wxSTC_LUA_COMMENT +wxSTC_LUA_COMMENTLINE = stc_c.wxSTC_LUA_COMMENTLINE +wxSTC_LUA_COMMENTDOC = stc_c.wxSTC_LUA_COMMENTDOC +wxSTC_LUA_NUMBER = stc_c.wxSTC_LUA_NUMBER +wxSTC_LUA_WORD = stc_c.wxSTC_LUA_WORD +wxSTC_LUA_STRING = stc_c.wxSTC_LUA_STRING +wxSTC_LUA_CHARACTER = stc_c.wxSTC_LUA_CHARACTER +wxSTC_LUA_LITERALSTRING = stc_c.wxSTC_LUA_LITERALSTRING +wxSTC_LUA_PREPROCESSOR = stc_c.wxSTC_LUA_PREPROCESSOR +wxSTC_LUA_OPERATOR = stc_c.wxSTC_LUA_OPERATOR +wxSTC_LUA_IDENTIFIER = stc_c.wxSTC_LUA_IDENTIFIER +wxSTC_LUA_STRINGEOL = stc_c.wxSTC_LUA_STRINGEOL +wxSTC_ERR_DEFAULT = stc_c.wxSTC_ERR_DEFAULT +wxSTC_ERR_PYTHON = stc_c.wxSTC_ERR_PYTHON +wxSTC_ERR_GCC = stc_c.wxSTC_ERR_GCC +wxSTC_ERR_MS = stc_c.wxSTC_ERR_MS +wxSTC_ERR_CMD = stc_c.wxSTC_ERR_CMD +wxSTC_ERR_BORLAND = stc_c.wxSTC_ERR_BORLAND +wxSTC_ERR_PERL = stc_c.wxSTC_ERR_PERL +wxSTC_MASK_FOLDERS = stc_c.wxSTC_MASK_FOLDERS wxSTCNameStr = stc_c.wxSTCNameStr wxEVT_STC_CHANGE = stc_c.wxEVT_STC_CHANGE wxEVT_STC_STYLENEEDED = stc_c.wxEVT_STC_STYLENEEDED @@ -917,169 +1256,7 @@ wxEVT_STC_KEY = stc_c.wxEVT_STC_KEY wxEVT_STC_MACRORECORD = stc_c.wxEVT_STC_MACRORECORD wxEVT_STC_MARGINCLICK = stc_c.wxEVT_STC_MARGINCLICK wxEVT_STC_NEEDSHOWN = stc_c.wxEVT_STC_NEEDSHOWN -wxSTC_MOD_INSERTTEXT = stc_c.wxSTC_MOD_INSERTTEXT -wxSTC_MOD_DELETETEXT = stc_c.wxSTC_MOD_DELETETEXT -wxSTC_MOD_CHANGESTYLE = stc_c.wxSTC_MOD_CHANGESTYLE -wxSTC_MOD_CHANGEFOLD = stc_c.wxSTC_MOD_CHANGEFOLD -wxSTC_PERFORMED_USER = stc_c.wxSTC_PERFORMED_USER -wxSTC_PERFORMED_UNDO = stc_c.wxSTC_PERFORMED_UNDO -wxSTC_PERFORMED_REDO = stc_c.wxSTC_PERFORMED_REDO -wxSTC_LASTSTEPINUNDOREDO = stc_c.wxSTC_LASTSTEPINUNDOREDO -wxSTC_MOD_CHANGEMARKER = stc_c.wxSTC_MOD_CHANGEMARKER -wxSTC_MOD_BEFOREINSERT = stc_c.wxSTC_MOD_BEFOREINSERT -wxSTC_MOD_BEFOREDELETE = stc_c.wxSTC_MOD_BEFOREDELETE -SCLEX_CONTAINER = stc_c.SCLEX_CONTAINER -SCLEX_NULL = stc_c.SCLEX_NULL -SCLEX_PYTHON = stc_c.SCLEX_PYTHON -SCLEX_CPP = stc_c.SCLEX_CPP -SCLEX_HTML = stc_c.SCLEX_HTML -SCLEX_XML = stc_c.SCLEX_XML -SCLEX_PERL = stc_c.SCLEX_PERL -SCLEX_SQL = stc_c.SCLEX_SQL -SCLEX_VB = stc_c.SCLEX_VB -SCLEX_PROPERTIES = stc_c.SCLEX_PROPERTIES -SCLEX_ERRORLIST = stc_c.SCLEX_ERRORLIST -SCLEX_MAKEFILE = stc_c.SCLEX_MAKEFILE -SCLEX_BATCH = stc_c.SCLEX_BATCH -SCLEX_XCODE = stc_c.SCLEX_XCODE -SCLEX_LATEX = stc_c.SCLEX_LATEX -SCE_P_DEFAULT = stc_c.SCE_P_DEFAULT -SCE_P_COMMENTLINE = stc_c.SCE_P_COMMENTLINE -SCE_P_NUMBER = stc_c.SCE_P_NUMBER -SCE_P_STRING = stc_c.SCE_P_STRING -SCE_P_CHARACTER = stc_c.SCE_P_CHARACTER -SCE_P_WORD = stc_c.SCE_P_WORD -SCE_P_TRIPLE = stc_c.SCE_P_TRIPLE -SCE_P_TRIPLEDOUBLE = stc_c.SCE_P_TRIPLEDOUBLE -SCE_P_CLASSNAME = stc_c.SCE_P_CLASSNAME -SCE_P_DEFNAME = stc_c.SCE_P_DEFNAME -SCE_P_OPERATOR = stc_c.SCE_P_OPERATOR -SCE_P_IDENTIFIER = stc_c.SCE_P_IDENTIFIER -SCE_P_COMMENTBLOCK = stc_c.SCE_P_COMMENTBLOCK -SCE_P_STRINGEOL = stc_c.SCE_P_STRINGEOL -SCE_C_DEFAULT = stc_c.SCE_C_DEFAULT -SCE_C_COMMENT = stc_c.SCE_C_COMMENT -SCE_C_COMMENTLINE = stc_c.SCE_C_COMMENTLINE -SCE_C_COMMENTDOC = stc_c.SCE_C_COMMENTDOC -SCE_C_NUMBER = stc_c.SCE_C_NUMBER -SCE_C_WORD = stc_c.SCE_C_WORD -SCE_C_STRING = stc_c.SCE_C_STRING -SCE_C_CHARACTER = stc_c.SCE_C_CHARACTER -SCE_C_UUID = stc_c.SCE_C_UUID -SCE_C_PREPROCESSOR = stc_c.SCE_C_PREPROCESSOR -SCE_C_OPERATOR = stc_c.SCE_C_OPERATOR -SCE_C_IDENTIFIER = stc_c.SCE_C_IDENTIFIER -SCE_C_STRINGEOL = stc_c.SCE_C_STRINGEOL -SCE_H_DEFAULT = stc_c.SCE_H_DEFAULT -SCE_H_TAG = stc_c.SCE_H_TAG -SCE_H_TAGUNKNOWN = stc_c.SCE_H_TAGUNKNOWN -SCE_H_ATTRIBUTE = stc_c.SCE_H_ATTRIBUTE -SCE_H_ATTRIBUTEUNKNOWN = stc_c.SCE_H_ATTRIBUTEUNKNOWN -SCE_H_NUMBER = stc_c.SCE_H_NUMBER -SCE_H_DOUBLESTRING = stc_c.SCE_H_DOUBLESTRING -SCE_H_SINGLESTRING = stc_c.SCE_H_SINGLESTRING -SCE_H_OTHER = stc_c.SCE_H_OTHER -SCE_H_COMMENT = stc_c.SCE_H_COMMENT -SCE_H_ENTITY = stc_c.SCE_H_ENTITY -SCE_H_TAGEND = stc_c.SCE_H_TAGEND -SCE_H_XMLSTART = stc_c.SCE_H_XMLSTART -SCE_H_XMLEND = stc_c.SCE_H_XMLEND -SCE_H_SCRIPT = stc_c.SCE_H_SCRIPT -SCE_H_ASP = stc_c.SCE_H_ASP -SCE_H_ASPAT = stc_c.SCE_H_ASPAT -SCE_HJ_START = stc_c.SCE_HJ_START -SCE_HJ_DEFAULT = stc_c.SCE_HJ_DEFAULT -SCE_HJ_COMMENT = stc_c.SCE_HJ_COMMENT -SCE_HJ_COMMENTLINE = stc_c.SCE_HJ_COMMENTLINE -SCE_HJ_COMMENTDOC = stc_c.SCE_HJ_COMMENTDOC -SCE_HJ_NUMBER = stc_c.SCE_HJ_NUMBER -SCE_HJ_WORD = stc_c.SCE_HJ_WORD -SCE_HJ_KEYWORD = stc_c.SCE_HJ_KEYWORD -SCE_HJ_DOUBLESTRING = stc_c.SCE_HJ_DOUBLESTRING -SCE_HJ_SINGLESTRING = stc_c.SCE_HJ_SINGLESTRING -SCE_HJ_SYMBOLS = stc_c.SCE_HJ_SYMBOLS -SCE_HJ_STRINGEOL = stc_c.SCE_HJ_STRINGEOL -SCE_HJA_START = stc_c.SCE_HJA_START -SCE_HJA_DEFAULT = stc_c.SCE_HJA_DEFAULT -SCE_HJA_COMMENT = stc_c.SCE_HJA_COMMENT -SCE_HJA_COMMENTLINE = stc_c.SCE_HJA_COMMENTLINE -SCE_HJA_COMMENTDOC = stc_c.SCE_HJA_COMMENTDOC -SCE_HJA_NUMBER = stc_c.SCE_HJA_NUMBER -SCE_HJA_WORD = stc_c.SCE_HJA_WORD -SCE_HJA_KEYWORD = stc_c.SCE_HJA_KEYWORD -SCE_HJA_DOUBLESTRING = stc_c.SCE_HJA_DOUBLESTRING -SCE_HJA_SINGLESTRING = stc_c.SCE_HJA_SINGLESTRING -SCE_HJA_SYMBOLS = stc_c.SCE_HJA_SYMBOLS -SCE_HJA_STRINGEOL = stc_c.SCE_HJA_STRINGEOL -SCE_HB_START = stc_c.SCE_HB_START -SCE_HB_DEFAULT = stc_c.SCE_HB_DEFAULT -SCE_HB_COMMENTLINE = stc_c.SCE_HB_COMMENTLINE -SCE_HB_NUMBER = stc_c.SCE_HB_NUMBER -SCE_HB_WORD = stc_c.SCE_HB_WORD -SCE_HB_STRING = stc_c.SCE_HB_STRING -SCE_HB_IDENTIFIER = stc_c.SCE_HB_IDENTIFIER -SCE_HB_STRINGEOL = stc_c.SCE_HB_STRINGEOL -SCE_HBA_START = stc_c.SCE_HBA_START -SCE_HBA_DEFAULT = stc_c.SCE_HBA_DEFAULT -SCE_HBA_COMMENTLINE = stc_c.SCE_HBA_COMMENTLINE -SCE_HBA_NUMBER = stc_c.SCE_HBA_NUMBER -SCE_HBA_WORD = stc_c.SCE_HBA_WORD -SCE_HBA_STRING = stc_c.SCE_HBA_STRING -SCE_HBA_IDENTIFIER = stc_c.SCE_HBA_IDENTIFIER -SCE_HBA_STRINGEOL = stc_c.SCE_HBA_STRINGEOL -SCE_HP_START = stc_c.SCE_HP_START -SCE_HP_DEFAULT = stc_c.SCE_HP_DEFAULT -SCE_HP_COMMENTLINE = stc_c.SCE_HP_COMMENTLINE -SCE_HP_NUMBER = stc_c.SCE_HP_NUMBER -SCE_HP_STRING = stc_c.SCE_HP_STRING -SCE_HP_CHARACTER = stc_c.SCE_HP_CHARACTER -SCE_HP_WORD = stc_c.SCE_HP_WORD -SCE_HP_TRIPLE = stc_c.SCE_HP_TRIPLE -SCE_HP_TRIPLEDOUBLE = stc_c.SCE_HP_TRIPLEDOUBLE -SCE_HP_CLASSNAME = stc_c.SCE_HP_CLASSNAME -SCE_HP_DEFNAME = stc_c.SCE_HP_DEFNAME -SCE_HP_OPERATOR = stc_c.SCE_HP_OPERATOR -SCE_HP_IDENTIFIER = stc_c.SCE_HP_IDENTIFIER -SCE_HPA_START = stc_c.SCE_HPA_START -SCE_HPA_DEFAULT = stc_c.SCE_HPA_DEFAULT -SCE_HPA_COMMENTLINE = stc_c.SCE_HPA_COMMENTLINE -SCE_HPA_NUMBER = stc_c.SCE_HPA_NUMBER -SCE_HPA_STRING = stc_c.SCE_HPA_STRING -SCE_HPA_CHARACTER = stc_c.SCE_HPA_CHARACTER -SCE_HPA_WORD = stc_c.SCE_HPA_WORD -SCE_HPA_TRIPLE = stc_c.SCE_HPA_TRIPLE -SCE_HPA_TRIPLEDOUBLE = stc_c.SCE_HPA_TRIPLEDOUBLE -SCE_HPA_CLASSNAME = stc_c.SCE_HPA_CLASSNAME -SCE_HPA_DEFNAME = stc_c.SCE_HPA_DEFNAME -SCE_HPA_OPERATOR = stc_c.SCE_HPA_OPERATOR -SCE_HPA_IDENTIFIER = stc_c.SCE_HPA_IDENTIFIER -SCE_PL_DEFAULT = stc_c.SCE_PL_DEFAULT -SCE_PL_HERE = stc_c.SCE_PL_HERE -SCE_PL_COMMENTLINE = stc_c.SCE_PL_COMMENTLINE -SCE_PL_POD = stc_c.SCE_PL_POD -SCE_PL_NUMBER = stc_c.SCE_PL_NUMBER -SCE_PL_WORD = stc_c.SCE_PL_WORD -SCE_PL_STRING = stc_c.SCE_PL_STRING -SCE_PL_CHARACTER = stc_c.SCE_PL_CHARACTER -SCE_PL_PUNCTUATION = stc_c.SCE_PL_PUNCTUATION -SCE_PL_PREPROCESSOR = stc_c.SCE_PL_PREPROCESSOR -SCE_PL_OPERATOR = stc_c.SCE_PL_OPERATOR -SCE_PL_IDENTIFIER = stc_c.SCE_PL_IDENTIFIER -SCE_PL_SCALAR = stc_c.SCE_PL_SCALAR -SCE_PL_ARRAY = stc_c.SCE_PL_ARRAY -SCE_PL_HASH = stc_c.SCE_PL_HASH -SCE_PL_SYMBOLTABLE = stc_c.SCE_PL_SYMBOLTABLE -SCE_PL_REF = stc_c.SCE_PL_REF -SCE_PL_REGEX = stc_c.SCE_PL_REGEX -SCE_PL_REGSUBST = stc_c.SCE_PL_REGSUBST -SCE_PL_LONGQUOTE = stc_c.SCE_PL_LONGQUOTE -SCE_PL_BACKTICKS = stc_c.SCE_PL_BACKTICKS -SCE_PL_DATASECTION = stc_c.SCE_PL_DATASECTION -SCE_L_DEFAULT = stc_c.SCE_L_DEFAULT -SCE_L_COMMAND = stc_c.SCE_L_COMMAND -SCE_L_TAG = stc_c.SCE_L_TAG -SCE_L_MATH = stc_c.SCE_L_MATH -SCE_L_COMMENT = stc_c.SCE_L_COMMENT +wxEVT_STC_POSCHANGED = stc_c.wxEVT_STC_POSCHANGED #-------------- USER INCLUDE ----------------------- @@ -1087,3 +1264,4 @@ SCE_L_COMMENT = stc_c.SCE_L_COMMENT # Stuff these names into the wx namespace so wxPyConstructObject can find them wx.wxStyledTextEventPtr = wxStyledTextEventPtr +wx.wxStyledTextCtrlPtr = wxStyledTextCtrlPtr diff --git a/wxPython/demo/PyShell.py b/wxPython/demo/PyShell.py index 41edebf719..450f73925b 100644 --- a/wxPython/demo/PyShell.py +++ b/wxPython/demo/PyShell.py @@ -6,7 +6,8 @@ from wxPython.lib.shell import PyShell def runTest(frame, nb, log): - win = PyShell(nb) + testGlobals = {'hello' : 'How are you?'} + win = PyShell(nb, globals=testGlobals) win.Show(true) return win diff --git a/wxPython/demo/data/stc.h b/wxPython/demo/data/stc.h index 2202c2dcc1..847b17ec11 100644 --- a/wxPython/demo/data/stc.h +++ b/wxPython/demo/data/stc.h @@ -22,149 +22,432 @@ #include -#include "SciLexer.h" //---------------------------------------------------------------------- -// constants and stuff +// BEGIN generated section. The following code is automatically generated +// by gen_iface.py. Do not edit this file. Edit stc.h.in instead +// and regenerate -enum wxSTC_UndoType { - wxSTC_UndoCollectNone, - wxSTC_UndoCollectAutoStart -}; +#define wxSTC_INVALID_POSITION -1 +#define wxSTC_START 2000 +#define wxSTC_OPTIONAL_START 3000 +#define wxSTC_LEXER_START 4000 +#define wxSTC_CMD_REDO 2011 +#define wxSTC_CMD_SELECTALL 2013 +#define wxSTC_WS_INVISIBLE 0 +#define wxSTC_WS_VISIBLEALWAYS 1 +#define wxSTC_WS_VISIBLEAFTERINDENT 2 +#define wxSTC_EOL_CRLF 0 +#define wxSTC_EOL_CR 1 +#define wxSTC_EOL_LF 2 +// The SC_CP_UTF8 value can be used to enter Unicode mode. +// This is the same value as CP_UTF8 in Windows +#define wxSTC_CP_UTF8 65001 +#define wxSTC_MARKER_MAX 31 +#define wxSTC_MARK_CIRCLE 0 +#define wxSTC_MARK_ROUNDRECT 1 +#define wxSTC_MARK_ARROW 2 +#define wxSTC_MARK_SMALLRECT 3 +#define wxSTC_MARK_SHORTARROW 4 +#define wxSTC_MARK_EMPTY 5 +#define wxSTC_MARK_ARROWDOWN 6 +#define wxSTC_MARK_MINUS 7 +#define wxSTC_MARK_PLUS 8 +#define wxSTC_MARKNUM_FOLDER 30 +#define wxSTC_MARKNUM_FOLDEROPEN 31 +#define wxSTC_MARGIN_SYMBOL 0 +#define wxSTC_MARGIN_NUMBER 1 +#define wxSTC_STYLE_DEFAULT 32 +#define wxSTC_STYLE_LINENUMBER 33 +#define wxSTC_STYLE_BRACELIGHT 34 +#define wxSTC_STYLE_BRACEBAD 35 +#define wxSTC_STYLE_CONTROLCHAR 36 +#define wxSTC_STYLE_INDENTGUIDE 37 +#define wxSTC_STYLE_MAX 127 -enum wxSTC_EOL { - wxSTC_EOL_CRLF, - wxSTC_EOL_CR, - wxSTC_EOL_LF -}; +// Character set identifiers are used in StyleSetCharacterSet. +// The values are the same as the Windows *_CHARSET values. +#define wxSTC_CHARSET_ANSI 0 +#define wxSTC_CHARSET_DEFAULT 1 +#define wxSTC_CHARSET_BALTIC 186 +#define wxSTC_CHARSET_CHINESEBIG5 136 +#define wxSTC_CHARSET_EASTEUROPE 238 +#define wxSTC_CHARSET_GB2312 134 +#define wxSTC_CHARSET_GREEK 161 +#define wxSTC_CHARSET_HANGUL 129 +#define wxSTC_CHARSET_MAC 77 +#define wxSTC_CHARSET_OEM 255 +#define wxSTC_CHARSET_RUSSIAN 204 +#define wxSTC_CHARSET_SHIFTJIS 128 +#define wxSTC_CHARSET_SYMBOL 2 +#define wxSTC_CHARSET_TURKISH 162 +#define wxSTC_CHARSET_JOHAB 130 +#define wxSTC_CHARSET_HEBREW 177 +#define wxSTC_CHARSET_ARABIC 178 +#define wxSTC_CHARSET_VIETNAMESE 163 +#define wxSTC_CHARSET_THAI 222 +#define wxSTC_INDIC_MAX 7 +#define wxSTC_INDIC_PLAIN 0 +#define wxSTC_INDIC_SQUIGGLE 1 +#define wxSTC_INDIC_TT 2 +#define wxSTC_INDIC_DIAGONAL 3 +#define wxSTC_INDIC_STRIKE 4 +#define wxSTC_INDIC0_MASK 32 +#define wxSTC_INDIC1_MASK 64 +#define wxSTC_INDIC2_MASK 128 +#define wxSTC_INDICS_MASK 32 | 64 | 128 -enum wxSTC_EDGE { - wxSTC_EDGE_NONE, - wxSTC_EDGE_LINE, - wxSTC_EDGE_BACKGROUND -}; +// PrintColourMode - use same colours as screen. +#define wxSTC_PRINT_NORMAL 0 + +// PrintColourMode - invert the light value of each style for printing. +#define wxSTC_PRINT_INVERTLIGHT 1 + +// PrintColourMode - force black text on white background for printing. +#define wxSTC_PRINT_BLACKONWHITE 2 +#define wxSTC_FIND_DOWN 1 +#define wxSTC_FIND_WHOLEWORD 2 +#define wxSTC_FIND_MATCHCASE 4 +#define wxSTC_FIND_WORDSTART 0x00100000 + +// SCFIND_REGEXP is not yet implemented. +#define wxSTC_FIND_REGEXP 0x00200000 +#define wxSTC_CMD_UNDO 2176 +#define wxSTC_CMD_CUT 2177 +#define wxSTC_CMD_COPY 2178 +#define wxSTC_CMD_PASTE 2179 +#define wxSTC_FOLDLEVELBASE 0x400 +#define wxSTC_FOLDLEVELWHITEFLAG 0x1000 +#define wxSTC_FOLDLEVELHEADERFLAG 0x2000 +#define wxSTC_FOLDLEVELNUMBERMASK 0x0FFF +#define wxSTC_CMD_LINEDOWN 2300 +#define wxSTC_CMD_LINEDOWNEXTEND 2301 +#define wxSTC_CMD_LINEUP 2302 +#define wxSTC_CMD_LINEUPEXTEND 2303 +#define wxSTC_CMD_CHARLEFT 2304 +#define wxSTC_CMD_CHARLEFTEXTEND 2305 +#define wxSTC_CMD_CHARRIGHT 2306 +#define wxSTC_CMD_CHARRIGHTEXTEND 2307 +#define wxSTC_CMD_WORDLEFT 2308 +#define wxSTC_CMD_WORDLEFTEXTEND 2309 +#define wxSTC_CMD_WORDRIGHT 2310 +#define wxSTC_CMD_WORDRIGHTEXTEND 2311 +#define wxSTC_CMD_HOME 2312 +#define wxSTC_CMD_HOMEEXTEND 2313 +#define wxSTC_CMD_LINEEND 2314 +#define wxSTC_CMD_LINEENDEXTEND 2315 +#define wxSTC_CMD_DOCUMENTSTART 2316 +#define wxSTC_CMD_DOCUMENTSTARTEXTEND 2317 +#define wxSTC_CMD_DOCUMENTEND 2318 +#define wxSTC_CMD_DOCUMENTENDEXTEND 2319 +#define wxSTC_CMD_PAGEUP 2320 +#define wxSTC_CMD_PAGEUPEXTEND 2321 +#define wxSTC_CMD_PAGEDOWN 2322 +#define wxSTC_CMD_PAGEDOWNEXTEND 2323 +#define wxSTC_CMD_EDITTOGGLEOVERTYPE 2324 +#define wxSTC_CMD_CANCEL 2325 +#define wxSTC_CMD_DELETEBACK 2326 +#define wxSTC_CMD_TAB 2327 +#define wxSTC_CMD_BACKTAB 2328 +#define wxSTC_CMD_NEWLINE 2329 +#define wxSTC_CMD_FORMFEED 2330 +#define wxSTC_CMD_VCHOME 2331 +#define wxSTC_CMD_VCHOMEEXTEND 2332 +#define wxSTC_CMD_ZOOMIN 2333 +#define wxSTC_CMD_ZOOMOUT 2334 +#define wxSTC_CMD_DELWORDLEFT 2335 +#define wxSTC_CMD_DELWORDRIGHT 2336 +#define wxSTC_CMD_LINECUT 2337 +#define wxSTC_CMD_LINEDELETE 2338 +#define wxSTC_CMD_LINETRANSPOSE 2339 +#define wxSTC_CMD_LOWERCASE 2340 +#define wxSTC_CMD_UPPERCASE 2341 +#define wxSTC_CMD_LINESCROLLDOWN 2342 +#define wxSTC_CMD_LINESCROLLUP 2343 +#define wxSTC_EDGE_NONE 0 +#define wxSTC_EDGE_LINE 1 +#define wxSTC_EDGE_BACKGROUND 2 + +// Show caret within N lines of edge when it's scrolled to view +#define wxSTC_CARET_SLOP 0x01 + +// Center caret on screen when it's scrolled to view +#define wxSTC_CARET_CENTER 0x02 + +// OR this with CARET_CENTER to reposition even when visible, or +// OR this with CARET_SLOP to reposition whenever outside slop border +#define wxSTC_CARET_STRICT 0x04 + +// Notifications +// Type of modification and the action which caused the modification +// These are defined as a bit mask to make it easy to specify which notifications are wanted. +// One bit is set from each of SC_MOD_* and SC_PERFORMED_*. +#define wxSTC_MOD_INSERTTEXT 0x1 +#define wxSTC_MOD_DELETETEXT 0x2 +#define wxSTC_MOD_CHANGESTYLE 0x4 +#define wxSTC_MOD_CHANGEFOLD 0x8 +#define wxSTC_PERFORMED_USER 0x10 +#define wxSTC_PERFORMED_UNDO 0x20 +#define wxSTC_PERFORMED_REDO 0x40 +#define wxSTC_LASTSTEPINUNDOREDO 0x100 +#define wxSTC_MOD_CHANGEMARKER 0x200 +#define wxSTC_MOD_BEFOREINSERT 0x400 +#define wxSTC_MOD_BEFOREDELETE 0x800 +#define wxSTC_MODEVENTMASKALL 0xF77 + +// Symbolic key codes and modifier flags +// ASCII and other printable characters below 256 +// Extended keys above 300 +#define wxSTC_KEY_DOWN 300 +#define wxSTC_KEY_UP 301 +#define wxSTC_KEY_LEFT 302 +#define wxSTC_KEY_RIGHT 303 +#define wxSTC_KEY_HOME 304 +#define wxSTC_KEY_END 305 +#define wxSTC_KEY_PRIOR 306 +#define wxSTC_KEY_NEXT 307 +#define wxSTC_KEY_DELETE 308 +#define wxSTC_KEY_INSERT 309 +#define wxSTC_KEY_ESCAPE 7 +#define wxSTC_KEY_BACK 8 +#define wxSTC_KEY_TAB 9 +#define wxSTC_KEY_RETURN 13 +#define wxSTC_KEY_ADD 310 +#define wxSTC_KEY_SUBTRACT 311 +#define wxSTC_KEY_DIVIDE 312 +#define wxSTC_SCMOD_SHIFT 1 +#define wxSTC_SCMOD_CTRL 2 +#define wxSTC_SCMOD_ALT 4 + +// For SciLexer.h +#define wxSTC_LEX_CONTAINER 0 +#define wxSTC_LEX_NULL 1 +#define wxSTC_LEX_PYTHON 2 +#define wxSTC_LEX_CPP 3 +#define wxSTC_LEX_HTML 4 +#define wxSTC_LEX_XML 5 +#define wxSTC_LEX_PERL 6 +#define wxSTC_LEX_SQL 7 +#define wxSTC_LEX_VB 8 +#define wxSTC_LEX_PROPERTIES 9 +#define wxSTC_LEX_ERRORLIST 10 +#define wxSTC_LEX_MAKEFILE 11 +#define wxSTC_LEX_BATCH 12 +#define wxSTC_LEX_XCODE 13 +#define wxSTC_LEX_LATEX 14 +#define wxSTC_LEX_LUA 15 +#define wxSTC_LEX_DIFF 16 + +// Lexical states for SCLEX_PYTHON +#define wxSTC_P_DEFAULT 0 +#define wxSTC_P_COMMENTLINE 1 +#define wxSTC_P_NUMBER 2 +#define wxSTC_P_STRING 3 +#define wxSTC_P_CHARACTER 4 +#define wxSTC_P_WORD 5 +#define wxSTC_P_TRIPLE 6 +#define wxSTC_P_TRIPLEDOUBLE 7 +#define wxSTC_P_CLASSNAME 8 +#define wxSTC_P_DEFNAME 9 +#define wxSTC_P_OPERATOR 10 +#define wxSTC_P_IDENTIFIER 11 +#define wxSTC_P_COMMENTBLOCK 12 +#define wxSTC_P_STRINGEOL 13 + +// Lexical states for SCLEX_CPP, SCLEX_VB +#define wxSTC_C_DEFAULT 0 +#define wxSTC_C_COMMENT 1 +#define wxSTC_C_COMMENTLINE 2 +#define wxSTC_C_COMMENTDOC 3 +#define wxSTC_C_NUMBER 4 +#define wxSTC_C_WORD 5 +#define wxSTC_C_STRING 6 +#define wxSTC_C_CHARACTER 7 +#define wxSTC_C_UUID 8 +#define wxSTC_C_PREPROCESSOR 9 +#define wxSTC_C_OPERATOR 10 +#define wxSTC_C_IDENTIFIER 11 +#define wxSTC_C_STRINGEOL 12 +#define wxSTC_C_VERBATIM 13 + +// Lexical states for SCLEX_HTML, SCLEX_XML +#define wxSTC_H_DEFAULT 0 +#define wxSTC_H_TAG 1 +#define wxSTC_H_TAGUNKNOWN 2 +#define wxSTC_H_ATTRIBUTE 3 +#define wxSTC_H_ATTRIBUTEUNKNOWN 4 +#define wxSTC_H_NUMBER 5 +#define wxSTC_H_DOUBLESTRING 6 +#define wxSTC_H_SINGLESTRING 7 +#define wxSTC_H_OTHER 8 +#define wxSTC_H_COMMENT 9 +#define wxSTC_H_ENTITY 10 + +// XML and ASP +#define wxSTC_H_TAGEND 11 +#define wxSTC_H_XMLSTART 12 +#define wxSTC_H_XMLEND 13 +#define wxSTC_H_SCRIPT 14 +#define wxSTC_H_ASP 15 +#define wxSTC_H_ASPAT 16 +#define wxSTC_H_CDATA 17 +#define wxSTC_H_QUESTION 18 + +// More HTML +#define wxSTC_H_VALUE 19 + +// Embedded Javascript +#define wxSTC_HJ_START 40 +#define wxSTC_HJ_DEFAULT 41 +#define wxSTC_HJ_COMMENT 42 +#define wxSTC_HJ_COMMENTLINE 43 +#define wxSTC_HJ_COMMENTDOC 44 +#define wxSTC_HJ_NUMBER 45 +#define wxSTC_HJ_WORD 46 +#define wxSTC_HJ_KEYWORD 47 +#define wxSTC_HJ_DOUBLESTRING 48 +#define wxSTC_HJ_SINGLESTRING 49 +#define wxSTC_HJ_SYMBOLS 50 +#define wxSTC_HJ_STRINGEOL 51 + +// ASP Javascript +#define wxSTC_HJA_START 55 +#define wxSTC_HJA_DEFAULT 56 +#define wxSTC_HJA_COMMENT 57 +#define wxSTC_HJA_COMMENTLINE 58 +#define wxSTC_HJA_COMMENTDOC 59 +#define wxSTC_HJA_NUMBER 60 +#define wxSTC_HJA_WORD 61 +#define wxSTC_HJA_KEYWORD 62 +#define wxSTC_HJA_DOUBLESTRING 63 +#define wxSTC_HJA_SINGLESTRING 64 +#define wxSTC_HJA_SYMBOLS 65 +#define wxSTC_HJA_STRINGEOL 66 + +// Embedded VBScript +#define wxSTC_HB_START 70 +#define wxSTC_HB_DEFAULT 71 +#define wxSTC_HB_COMMENTLINE 72 +#define wxSTC_HB_NUMBER 73 +#define wxSTC_HB_WORD 74 +#define wxSTC_HB_STRING 75 +#define wxSTC_HB_IDENTIFIER 76 +#define wxSTC_HB_STRINGEOL 77 + +// ASP VBScript +#define wxSTC_HBA_START 80 +#define wxSTC_HBA_DEFAULT 81 +#define wxSTC_HBA_COMMENTLINE 82 +#define wxSTC_HBA_NUMBER 83 +#define wxSTC_HBA_WORD 84 +#define wxSTC_HBA_STRING 85 +#define wxSTC_HBA_IDENTIFIER 86 +#define wxSTC_HBA_STRINGEOL 87 + +// Embedded Python +#define wxSTC_HP_START 90 +#define wxSTC_HP_DEFAULT 91 +#define wxSTC_HP_COMMENTLINE 92 +#define wxSTC_HP_NUMBER 93 +#define wxSTC_HP_STRING 94 +#define wxSTC_HP_CHARACTER 95 +#define wxSTC_HP_WORD 96 +#define wxSTC_HP_TRIPLE 97 +#define wxSTC_HP_TRIPLEDOUBLE 98 +#define wxSTC_HP_CLASSNAME 99 +#define wxSTC_HP_DEFNAME 100 +#define wxSTC_HP_OPERATOR 101 +#define wxSTC_HP_IDENTIFIER 102 + +// ASP Python +#define wxSTC_HPA_START 105 +#define wxSTC_HPA_DEFAULT 106 +#define wxSTC_HPA_COMMENTLINE 107 +#define wxSTC_HPA_NUMBER 108 +#define wxSTC_HPA_STRING 109 +#define wxSTC_HPA_CHARACTER 110 +#define wxSTC_HPA_WORD 111 +#define wxSTC_HPA_TRIPLE 112 +#define wxSTC_HPA_TRIPLEDOUBLE 113 +#define wxSTC_HPA_CLASSNAME 114 +#define wxSTC_HPA_DEFNAME 115 +#define wxSTC_HPA_OPERATOR 116 +#define wxSTC_HPA_IDENTIFIER 117 + +// PHP +#define wxSTC_HPHP_DEFAULT 118 +#define wxSTC_HPHP_HSTRING 119 +#define wxSTC_HPHP_SIMPLESTRING 120 +#define wxSTC_HPHP_WORD 121 +#define wxSTC_HPHP_NUMBER 122 +#define wxSTC_HPHP_VARIABLE 123 +#define wxSTC_HPHP_COMMENT 124 +#define wxSTC_HPHP_COMMENTLINE 125 +#define wxSTC_HPHP_STRINGEOL 126 + +// Lexical states for SCLEX_PERL +#define wxSTC_PL_DEFAULT 0 +#define wxSTC_PL_HERE 1 +#define wxSTC_PL_COMMENTLINE 2 +#define wxSTC_PL_POD 3 +#define wxSTC_PL_NUMBER 4 +#define wxSTC_PL_WORD 5 +#define wxSTC_PL_STRING 6 +#define wxSTC_PL_CHARACTER 7 +#define wxSTC_PL_PUNCTUATION 8 +#define wxSTC_PL_PREPROCESSOR 9 +#define wxSTC_PL_OPERATOR 10 +#define wxSTC_PL_IDENTIFIER 11 +#define wxSTC_PL_SCALAR 12 +#define wxSTC_PL_ARRAY 13 +#define wxSTC_PL_HASH 14 +#define wxSTC_PL_SYMBOLTABLE 15 +#define wxSTC_PL_REF 16 +#define wxSTC_PL_REGEX 17 +#define wxSTC_PL_REGSUBST 18 +#define wxSTC_PL_LONGQUOTE 19 +#define wxSTC_PL_BACKTICKS 20 +#define wxSTC_PL_DATASECTION 21 + +// Lexical states for SCLEX_LATEX +#define wxSTC_L_DEFAULT 0 +#define wxSTC_L_COMMAND 1 +#define wxSTC_L_TAG 2 +#define wxSTC_L_MATH 3 +#define wxSTC_L_COMMENT 4 + +// Lexical states for SCLEX_LUA +#define wxSTC_LUA_DEFAULT 0 +#define wxSTC_LUA_COMMENT 1 +#define wxSTC_LUA_COMMENTLINE 2 +#define wxSTC_LUA_COMMENTDOC 3 +#define wxSTC_LUA_NUMBER 4 +#define wxSTC_LUA_WORD 5 +#define wxSTC_LUA_STRING 6 +#define wxSTC_LUA_CHARACTER 7 +#define wxSTC_LUA_LITERALSTRING 8 +#define wxSTC_LUA_PREPROCESSOR 9 +#define wxSTC_LUA_OPERATOR 10 +#define wxSTC_LUA_IDENTIFIER 11 +#define wxSTC_LUA_STRINGEOL 12 +#define wxSTC_ERR_DEFAULT 0 +#define wxSTC_ERR_PYTHON 1 +#define wxSTC_ERR_GCC 2 +#define wxSTC_ERR_MS 3 +#define wxSTC_ERR_CMD 4 +#define wxSTC_ERR_BORLAND 5 +#define wxSTC_ERR_PERL 6 + +// END of generated section +//---------------------------------------------------------------------- +// Others + +#define wxSTC_MASK_FOLDERS ((1 << wxSTC_MARKNUM_FOLDER) | (1 << wxSTC_MARKNUM_FOLDEROPEN)) -const int wxSTC_LEX_STYLE_MAX = 31; -const int wxSTC_STYLE_DEFAULT = 32; -const int wxSTC_STYLE_LINENUMBER = 33; -const int wxSTC_STYLE_BRACELIGHT = 34; -const int wxSTC_STYLE_BRACEBAD = 35; -const int wxSTC_STYLE_CONTROLCHAR = 36; -const int wxSTC_STYLE_MAX = 127; -const int wxSTC_STYLE_MASK = 31; - -const int wxSTC_MARKER_MAX = 31; -const int wxSTC_MARK_CIRCLE = 0; -const int wxSTC_MARK_ROUNDRECT = 1; -const int wxSTC_MARK_ARROW = 2; -const int wxSTC_MARK_SMALLRECT = 3; -const int wxSTC_MARK_SHORTARROW = 4; -const int wxSTC_MARK_EMPTY = 5; -const int wxSTC_MARK_ARROWDOWN = 6; -const int wxSTC_MARK_MINUS = 7; -const int wxSTC_MARK_PLUS = 8; - -const int wxSTC_MARKNUM_FOLDER = 30; -const int wxSTC_MARKNUM_FOLDEROPEN= 31; -const int wxSTC_MASK_FOLDERS = ((1 << wxSTC_MARKNUM_FOLDER) | (1 << wxSTC_MARKNUM_FOLDEROPEN)); - -const int wxSTC_INDIC_MAX = 7; -const int wxSTC_INDIC_PLAIN = 0; -const int wxSTC_INDIC_SQUIGGLE = 1; -const int wxSTC_INDIC_TT = 2; -const int wxSTC_INDIC_DIAGONAL = 3; -const int wxSTC_INDIC_STRIKE = 4; -const int wxSTC_INDIC0_MASK = 32; -const int wxSTC_INDIC1_MASK = 64; -const int wxSTC_INDIC2_MASK = 128; -const int wxSTC_INDICS_MASK = (wxSTC_INDIC0_MASK | wxSTC_INDIC1_MASK | wxSTC_INDIC2_MASK); - - -const int wxSTC_FOLDLEVELBASE = 0x0400; -const int wxSTC_FOLDLEVELWHITEFLAG = 0x1000; -const int wxSTC_FOLDLEVELHEADERFLAG = 0x2000; -const int wxSTC_FOLDLEVELNUMBERMASK = 0x0FFF; - - -// key commands -enum { - wxSTC_CMD_LINEDOWN = 2300, - wxSTC_CMD_LINEDOWNEXTEND, - wxSTC_CMD_LINEUP, - wxSTC_CMD_LINEUPEXTEND, - wxSTC_CMD_CHARLEFT, - wxSTC_CMD_CHARLEFTEXTEND, - wxSTC_CMD_CHARRIGHT, - wxSTC_CMD_CHARRIGHTEXTEND, - wxSTC_CMD_WORDLEFT, - wxSTC_CMD_WORDLEFTEXTEND, - wxSTC_CMD_WORDRIGHT, - wxSTC_CMD_WORDRIGHTEXTEND, - wxSTC_CMD_HOME, - wxSTC_CMD_HOMEEXTEND, - wxSTC_CMD_LINEEND, - wxSTC_CMD_LINEENDEXTEND, - wxSTC_CMD_DOCUMENTSTART, - wxSTC_CMD_DOCUMENTSTARTEXTEND, - wxSTC_CMD_DOCUMENTEND, - wxSTC_CMD_DOCUMENTENDEXTEND, - wxSTC_CMD_PAGEUP, - wxSTC_CMD_PAGEUPEXTEND, - wxSTC_CMD_PAGEDOWN, - wxSTC_CMD_PAGEDOWNEXTEND, - wxSTC_CMD_EDITTOGGLEOVERTYPE, - wxSTC_CMD_CANCEL, - wxSTC_CMD_DELETEBACK, - wxSTC_CMD_TAB, - wxSTC_CMD_BACKTAB, - wxSTC_CMD_NEWLINE, - wxSTC_CMD_FORMFEED, - wxSTC_CMD_VCHOME, - wxSTC_CMD_VCHOMEEXTEND, - wxSTC_CMD_ZOOMIN, - wxSTC_CMD_ZOOMOUT, - wxSTC_CMD_DELWORDLEFT, - wxSTC_CMD_DELWORDRIGHT, - wxSTC_CMD_LINECUT, - wxSTC_CMD_LINEDELETE, - wxSTC_CMD_LINETRANSPOSE, - wxSTC_CMD_LOWERCASE, - wxSTC_CMD_UPPERCASE, - wxSTC_CMD_LINESCROLLDOWN, - wxSTC_CMD_LINESCROLLUP -}; - - -enum wxSTC_LEX { - wxSTC_LEX_CONTAINER=0, - wxSTC_LEX_NULL, - wxSTC_LEX_PYTHON, - wxSTC_LEX_CPP, - wxSTC_LEX_HTML, - wxSTC_LEX_XML, - wxSTC_LEX_PERL, - wxSTC_LEX_SQL, - wxSTC_LEX_VB, - wxSTC_LEX_PROPERTIES, - wxSTC_LEX_ERRORLIST, - wxSTC_LEX_MAKEFILE, - wxSTC_LEX_BATCH, - wxSTC_LEX_XCODE, - wxSTC_LEX_LATEX -}; - - - -const int wxSTC_CARET_SLOP = 0x01; -const int WXSTC_CARET_CENTER = 0x02; -const int wxSTC_CARET_STRICT = 0x04; - -const int wxSTC_MARGIN_SYMBOL = 0; -const int wxSTC_MARGIN_NUMBER = 1; - +//---------------------------------------------------------------------- class ScintillaWX; // forward declare class WordList; @@ -195,302 +478,762 @@ public: ~wxStyledTextCtrl(); #endif - - // Text retrieval and modification - wxString GetText(); - bool SetText(const wxString& text); - wxString GetLine(int line); - void ReplaceSelection(const wxString& text); - void SetReadOnly(bool readOnly); - bool GetReadOnly(); - wxString GetTextRange(int startPos, int endPos); - wxString GetStyledTextRange(int startPos, int endPos); -#ifndef SWIG - void GetTextRange(int startPos, int endPos, char* buff); - void GetStyledTextRange(int startPos, int endPos, char* buff); -#endif - void AddText(const wxString& text); - void AddStyledText(const wxString& text); - void InsertText(int pos, const wxString& text); - void ClearAll(); - char GetCharAt(int pos); - char GetStyleAt(int pos); - void SetStyleBits(int bits); - int GetStyleBits(); +//---------------------------------------------------------------------- +// BEGIN generated section. The following code is automatically generated +// by gen_iface.py. Do not edit this file. Edit stc.h.in instead +// and regenerate - // Clipboard - void Cut(); - void Copy(); - void Paste(); - bool CanPaste(); - void ClearClipbrd(); // avoiding name conflict with virtual in wxWindow + // Add text to the document + void AddText(const wxString& text); + // Add array of cells to document + void AddStyledText(const wxString& text); - // Undo and Redo - void Undo(); - bool CanUndo(); - void EmptyUndoBuffer(); - void Redo(); - bool CanRedo(); - void SetUndoCollection(wxSTC_UndoType type); - wxSTC_UndoType GetUndoCollection(); - void BeginUndoAction(); - void EndUndoAction(); - void SetSavePoint(); + // Insert string at a position + void InsertText(int pos, const wxString& text); + // Delete all text in the document + void ClearAll(); - // Selection and information -#ifdef SWIG - void GetSelection(int* OUTPUT, int* OUTPUT); -#else - void GetSelection(int* startPos, int* endPos); -#endif - void SetSelection(int startPos, int endPos); - wxString GetSelectedText(); - void HideSelection(bool hide); - bool GetHideSelection(); + // Set all style bytes to 0, remove all folding information + void ClearDocumentStyle(); - int GetTextLength(); - int GetFirstVisibleLine(); - bool GetModified(); - int GetLineCount(); - wxRect GetRect(); - int GetLineFromPos(int pos); - int GetLineStartPos(int line); - int GetLineLengthAtPos(int pos); - int GetLineLength(int line); -#ifdef SWIG - wxString GetCurrentLineText(int* OUTPUT); -#else - wxString GetCurrentLineText(int* linePos); -#endif - int GetCurrentLine(); - int PositionFromPoint(wxPoint pt); - int LineFromPoint(wxPoint pt); - wxPoint PointFromPosition(int pos); - int GetCurrentPos(); - int GetAnchor(); - void SelectAll(); - void SetCurrentPosition(int pos); - void SetAnchor(int pos); - void GotoPos(int pos); - void GotoLine(int line); - void ChangePosition(int delta, bool extendSelection); - void PageMove(int cmdKey, bool extendSelection); + // The number of characters in the document + int GetLength(); - void ScrollBy(int columnDelta, int lineDelta); - void ScrollToLine(int line); - void ScrollToColumn(int column); - void EnsureCaretVisible(); - void SetCaretPolicy(int policy, int slop=0); - int GetSelectionType(); - int GetLinesOnScreen(); - bool IsSelectionRectangle(); - void SetUseHorizontalScrollBar(bool use); - bool GetUseHorizontalScrollBar(); + // Returns the character byte at the position + int GetCharAt(int pos); + // Returns the position of the caret + int GetCurrentPos(); - // Searching - int FindText(int minPos, int maxPos, const wxString& text, - bool caseSensitive, bool wholeWord); - void SearchAnchor(); - int SearchNext(const wxString& text, bool caseSensitive, bool wholeWord); - int SearchPrev(const wxString& text, bool caseSensitive, bool wholeWord); + // Returns the position of the opposite end of the selection to the caret + int GetAnchor(); + // Returns the style byte at the position + int GetStyleAt(int pos); - // Visible whitespace - bool GetViewWhitespace(); - void SetViewWhitespace(bool visible); + // Redoes the next action on the undo history + void Redo(); + // Choose between collecting actions into the undo + // history and discarding them. + void SetUndoCollection(bool collectUndo); - // Line endings - wxSTC_EOL GetEOLMode(); - void SetEOLMode(wxSTC_EOL mode); - bool GetViewEOL(); - void SetViewEOL(bool visible); - void ConvertEOL(wxSTC_EOL mode); + // Select all the text in the document. + void SelectAll(); + // Remember the current position in the undo history as the position + // at which the document was saved. + void SetSavePoint(); - // Styling - int GetEndStyled(); - void StartStyling(int pos, int mask); - void SetStyleFor(int length, int style); - void SetStyleBytes(int length, char* styleBytes); - void SetLineState(int line, int value); - int GetLineState(int line); + // Retrieve a buffer of cells. + wxString GetStyledText(int startPos, int endPos); + // Are there any redoable actions in the undo history. + bool CanRedo(); - // Style Definition - void StyleClearAll(); - void StyleResetDefault(); - void StyleSetSpec(int styleNum, const wxString& spec); - void StyleSetForeground(int styleNum, const wxColour& colour); - void StyleSetBackground(int styleNum, const wxColour& colour); - void StyleSetFont(int styleNum, wxFont& font); - void StyleSetFontAttr(int styleNum, int size, const wxString& faceName, bool bold=FALSE, bool italic=FALSE, bool underline=FALSE); - void StyleSetBold(int styleNum, bool bold); - void StyleSetItalic(int styleNum, bool italic); - void StyleSetFaceName(int styleNum, const wxString& faceName); - void StyleSetSize(int styleNum, int pointSize); - void StyleSetEOLFilled(int styleNum, bool fillEOL); - void StyleSetUnderline(int styleNum, bool underline); + // Retrieve the line number at which a particular marker is located + int MarkerLineFromHandle(int handle); + // Delete a marker. + void MarkerDeleteHandle(int handle); - // Margins in the edit area - int GetLeftMargin(); - int GetRightMargin(); - void SetMargins(int left, int right); + // Is undo history being collected? + bool GetUndoCollection(); + // Are white space characters currently visible? + // Returns one of SCWS_* constants. + int GetViewWhiteSpace(); - // Margins for selection, markers, etc. - void SetMarginType(int margin, int type); - int GetMarginType(int margin); + // Make white space characters invisible, always visible or visible outside indentation. + void SetViewWhiteSpace(int viewWS); + + // Find the position from a point within the window. + int PositionFromPoint(wxPoint pt); + + // Set caret to start of a line and ensure it is visible. + void GotoLine(int line); + + // Set caret to a position and ensure it is visible. + void GotoPos(int pos); + + // Set the selection anchor to a position. The anchor is the opposite + // end of the selection from the caret. + void SetAnchor(int posAnchor); + + // Retrieve the text of the line containing the caret. + // Returns the index of the caret on the line. + wxString GetCurLine(int* OUTPUT=NULL); + + // Retrieve the position of the last correctly styled character. + int GetEndStyled(); + + // Convert all line endings in the document to use the current mode. + void ConvertEOLs(); + + // Retrieve the current end of line mode - one of CRLF, CR, or LF. + int GetEOLMode(); + + // Set the current end of line mode. + void SetEOLMode(int eolMode); + + // Set the current styling position to pos and the styling mask to mask. + // The styling mask can be used to protect some bits in each styling byte from + // modification. + void StartStyling(int pos, int mask); + + // Change style from current styling position for length characters to a style + // and move the current styling position to after this newly styled segment. + void SetStyling(int length, int style); + + // Is drawing done first into a buffer or direct to the screen. + bool GetBufferedDraw(); + + // If drawing is buffered then each line of text is drawn into a bitmap buffer + // before drawing it to the screen to avoid flicker. + void SetBufferedDraw(bool buffered); + + // Change the visible size of a tab to be a multiple of the width of a space + // character. + void SetTabWidth(int tabWidth); + + // Retrieve the visible size of a tab. + int GetTabWidth(); + + // Set the code page used to interpret the bytes of the document as characters. + // The SC_CP_UTF8 value can be used to enter Unicode mode. + void SetCodePage(int codePage); + + // Set the symbol used for a particular marker number, + // and optionally the for and background colours. + void MarkerDefine(int markerNumber, int markerSymbol, + const wxColour& foreground = wxNullColour, + const wxColour& background = wxNullColour); + + // Set the foreground colour used for a particular marker number. + void MarkerSetForeground(int markerNumber, const wxColour& fore); + + // Set the background colour used for a particular marker number. + void MarkerSetBackground(int markerNumber, const wxColour& back); + + // Add a marker to a line. + void MarkerAdd(int line, int markerNumber); + + // Delete a marker from a line + void MarkerDelete(int line, int markerNumber); + + // Delete all markers with a particular number from all lines + void MarkerDeleteAll(int markerNumber); + + // Get a bit mask of all the markers set on a line. + int MarkerGet(int line); + + // Find the next line after lineStart that includes a marker in mask. + int MarkerNext(int lineStart, int markerMask); + + // Find the previous line before lineStart that includes a marker in mask. + int MarkerPrevious(int lineStart, int markerMask); + + // Set a margin to be either numeric or symbolic. + void SetMarginType(int margin, int marginType); + + // Retrieve the type of a margin. + int GetMarginType(int margin); + + // Set the width of a margin to a width expressed in pixels. void SetMarginWidth(int margin, int pixelWidth); - int GetMarginWidth(int margin); + + // Retrieve the width of a margin in pixels. + int GetMarginWidth(int margin); + + // Set a mask that determines which markers are displayed in a margin. void SetMarginMask(int margin, int mask); - int GetMarginMask(int margin); + + // Retrieve the marker mask of a margin. + int GetMarginMask(int margin); + + // Make a margin sensitive or insensitive to mouse clicks. void SetMarginSensitive(int margin, bool sensitive); + + // Retrieve the mouse click sensitivity of a margin. bool GetMarginSensitive(int margin); + // Clear all the styles and make equivalent to the global default style. + void StyleClearAll(); - // Selection and Caret styles - void SetSelectionForeground(const wxColour& colour); - void SetSelectionBackground(const wxColour& colour); - void SetCaretForeground(const wxColour& colour); - int GetCaretPeriod(); - void SetCaretPeriod(int milliseconds); + // Set the foreground colour of a style. + void StyleSetForeground(int style, const wxColour& fore); + // Set the background colour of a style. + void StyleSetBackground(int style, const wxColour& back); - // Other settings - void SetBufferedDraw(bool isBuffered); - void SetTabWidth(int numChars); - void SetIndent(int numChars); - void SetUseTabs(bool usetabs); - void SetLineIndentation(int line, int indentation); - int GetLineIndentation(int line); - int GetLineIndentationPos(int line); - void SetWordChars(const wxString& wordChars); + // Set a style to be bold or not. + void StyleSetBold(int style, bool bold); - void SetUsePop(bool usepopup); + // Set a style to be italic or not. + void StyleSetItalic(int style, bool italic); + // Set the size of characters of a style. + void StyleSetSize(int style, int sizePoints); - // Brace highlighting - void BraceHighlight(int pos1, int pos2); - void BraceBadlight(int pos); - int BraceMatch(int pos, int maxReStyle=0); + // Set the font of a style. + void StyleSetFaceName(int style, const wxString& fontName); + // Set a style to have its end of line filled or not. + void StyleSetEOLFilled(int style, bool filled); - // Markers - void MarkerDefine(int markerNumber, int markerSymbol, - const wxColour& foreground, - const wxColour& background); - void MarkerSetType(int markerNumber, int markerSymbol); - void MarkerSetForeground(int markerNumber, const wxColour& colour); - void MarkerSetBackground(int markerNumber, const wxColour& colour); - int MarkerAdd(int line, int markerNumber); - void MarkerDelete(int line, int markerNumber); - void MarkerDeleteAll(int markerNumber); - int MarkerGet(int line); - int MarkerGetNextLine(int lineStart, int markerMask); - int MarkerGetPrevLine(int lineStart, int markerMask); - int MarkerLineFromHandle(int handle); - void MarkerDeleteHandle(int handle); + // Reset the default style to its state at startup + void StyleResetDefault(); + // Set a style to be underlined or not. + void StyleSetUnderline(int style, bool underline); - // Indicators - void IndicatorSetStyle(int indicNum, int indicStyle); - int IndicatorGetStyle(int indicNum); - void IndicatorSetColour(int indicNum, const wxColour& colour); + // Set the foreground colour of the selection and whether to use this setting. + void SetSelForeground(bool useSetting, const wxColour& fore); + // Set the background colour of the selection and whether to use this setting. + void SetSelBackground(bool useSetting, const wxColour& back); - // Auto completion - void AutoCompShow(const wxString& listOfWords); - void AutoCompCancel(); - bool AutoCompActive(); - int AutoCompPosAtStart(); - void AutoCompComplete(); - void AutoCompStopChars(const wxString& stopChars); - void AutoCompSetSeparator(char separator); - char AutoCompGetSeparator(); - void AutoCompSelect(const wxString& stringtoselect); + // Set the foreground colour of the caret. + void SetCaretForeground(const wxColour& fore); - // Call tips - void CallTipShow(int pos, const wxString& text); - void CallTipCancel(); - bool CallTipActive(); - int CallTipPosAtStart(); - void CallTipSetHighlight(int start, int end); - void CallTipSetBackground(const wxColour& colour); + // When key+modifier combination km is pressed perform msg. + void CmdKeyAssign(int key, int modifiers, int cmd); + // When key+modifier combination km do nothing. + void CmdKeyClear(int key, int modifiers); - // Key bindings - void CmdKeyAssign(int key, int modifiers, int cmd); - void CmdKeyClear(int key, int modifiers); - void CmdKeyClearAll(); - void CmdKeyExecute(int cmd); + // Drop all key mappings. + void CmdKeyClearAll(); + // Set the styles for a segment of the document. + void SetStyleBytes(int length, char* styleBytes); - // Print formatting - int FormatRange(bool doDraw, - int startPos, - int endPos, - wxDC* draw, - wxDC* target, // Why does it use two? Can they be the same? - wxRect renderRect, - wxRect pageRect); + // Set a style to be visible or not. + void StyleSetVisible(int style, bool visible); + // Get the time in milliseconds that the caret is on and off. + int GetCaretPeriod(); - // Document Sharing (multiple views) - void* GetDocument(); - void SetDocument(void* document); - // TODO: create a wx wrapper for Scintilla's document class + // Get the time in milliseconds that the caret is on and off. 0 = steady on. + void SetCaretPeriod(int periodMilliseconds); + // Set the set of characters making up words for when moving or selecting + // by word. + void SetWordChars(const wxString& characters); - // Folding - int VisibleFromDocLine(int docLine); - int DocLineFromVisible(int displayLine); - int SetFoldLevel(int line, int level); - int GetFoldLevel(int line); - int GetLastChild(int line, int level); - int GetFoldParent(int line); - void ShowLines(int lineStart, int lineEnd); - void HideLines(int lineStart, int lineEnd); - bool GetLineVisible(int line); - void SetFoldExpanded(int line, bool expanded); - bool GetFoldExpanded(int line); - void ToggleFold(int line); - void EnsureVisible(int line); - void SetFoldFlags(int flags); + // Start a sequence of actions that is undone and redone as a unit. + // May be nested. + void BeginUndoAction(); + // End a sequence of actions that is undone and redone as a unit. + void EndUndoAction(); - // Zooming - void ZoomIn(); - void ZoomOut(); - void SetZoom(int zoom); - int GetZoom(); + // Set an indicator to plain, squiggle or TT. + void IndicatorSetStyle(int indic, int style); + // Retrieve the style of an indicator. + int IndicatorGetStyle(int indic); - // Long Lines - int GetEdgeColumn(); - void SetEdgeColumn(int column); - wxSTC_EDGE GetEdgeMode(); - void SetEdgeMode(wxSTC_EDGE mode); + // Set the foreground colour of an indicator. + void IndicatorSetForeground(int indic, const wxColour& fore); + + // Retrieve the foreground colour of an indicator. + wxColour IndicatorGetForeground(int indic); + + // Divide each styling byte into lexical class bits (default:5) and indicator + // bits (default:3). If a lexer requires more than 32 lexical states, then this + // is used to expand the possible states. + void SetStyleBits(int bits); + + // Retrieve number of bits in style bytes used to hold the lexical state. + int GetStyleBits(); + + // Used to hold extra styling information for each line. + void SetLineState(int line, int state); + + // Retrieve the extra styling information for a line. + int GetLineState(int line); + + // Retrieve the last line number that has line state. + int GetMaxLineState(); + + // Display a auto-completion list. + // The lenEntered parameter indicates how many characters before + // the caret should be used to provide context. + void AutoCompShow(int lenEntered, const wxString& itemList); + + // Remove the auto-completion list from the screen. + void AutoCompCancel(); + + // Is there an auto-completion list visible? + bool AutoCompActive(); + + // Retrieve the position of the caret when the auto-completion list was + // displayed. + int AutoCompPosStart(); + + // User has selected an item so remove the list and insert the selection. + void AutoCompComplete(); + + // Define a set of character that when typed cancel the auto-completion list. + void AutoCompStops(const wxString& characterSet); + + // Change the separator character in the string setting up an auto-completion + // list. Default is space but can be changed if items contain space. + void AutoCompSetSeparator(int separatorCharacter); + + // Retrieve the auto-completion list separator character. + int AutoCompGetSeparator(); + + // Select the item in the auto-completion list that starts with a string. + void AutoCompSelect(const wxString& text); + + // Should the auto-completion list be cancelled if the user backspaces to a + // position before where the box was created. + void AutoCompSetCancelAtStart(bool cancel); + + // Retrieve whether auto-completion cancelled by backspacing before start. + bool AutoCompGetCancelAtStart(); + + // Define a set of character that when typed fills up the selected word. + void AutoCompSetFillUps(const wxString& characterSet); + + // Should a single item auto-completion list automatically choose the item. + void AutoCompSetChooseSingle(bool chooseSingle); + + // Retrieve whether a single item auto-completion list automatically choose the item. + bool AutoCompGetChooseSingle(); + + // Set whether case is significant when performing auto-completion searches. + void AutoCompSetIgnoreCase(bool ignoreCase); + + // Retrieve state of ignore case flag. + bool AutoCompGetIgnoreCase(); + + // Set the number of spaces used for one level of indentation. + void SetIndent(int indentSize); + + // Retrieve indentation size. + int GetIndent(); + + // Indentation will only use space characters if useTabs is false, otherwise + // it will use a combination of tabs and spaces. + void SetUseTabs(bool useTabs); + + // Retrieve whether tabs will be used in indentation. + bool GetUseTabs(); + + // Change the indentation of a line to a number of columns. + void SetLineIndentation(int line, int indentSize); + + // Retrieve the number of columns that a line is indented. + int GetLineIndentation(int line); + + // Retrieve the position before the first non indentation character on a line. + int GetLineIndentPosition(int line); + + // Retrieve the column number of a position, taking tab width into account. + int GetColumn(int pos); + + // Show or hide the horizontal scroll bar. + void SetUseHorizontalScrollBar(bool show); + + // Is the horizontal scroll bar visible? + bool GetUseHorizontalScrollBar(); + + // Show or hide indentation guides. + void SetIndentationGuides(bool show); + + // Are the indentation guides visible? + bool GetIndentationGuides(); + + // Set the highlighted indentation guide column. + // 0 = no highlighted guide. + void SetHighlightGuide(int column); + + // Get the highlighted indentation guide column. + int GetHighlightGuide(); + + // Get the position after the last visible characters on a line. + int GetLineEndPosition(int line); + + // Get the code page used to interpret the bytes of the document as characters. + int GetCodePage(); + + // Get the foreground colour of the caret. + wxColour GetCaretForeground(); + + // In read-only mode? + bool GetReadOnly(); + + // Sets the position of the caret. + void SetCurrentPos(int pos); + + // Sets the position that starts the selection - this becomes the anchor. + void SetSelectionStart(int pos); + + // Returns the position at the start of the selection. + int GetSelectionStart(); + + // Sets the position that ends the selection - this becomes the currentPosition. + void SetSelectionEnd(int pos); + + // Returns the position at the end of the selection. + int GetSelectionEnd(); + + // Sets the print magnification added to the point size of each style for printing. + void SetPrintMagnification(int magnification); + + // Returns the print magnification. + int GetPrintMagnification(); + + // Modify colours when printing for clearer printed text. + void SetPrintColourMode(int mode); + + // Returns the print colour mode. + int GetPrintColourMode(); + + // Find some text in the document. + int FindText(int minPos, int maxPos, + const wxString& text, + bool caseSensitive, bool wholeWord); + + // On Windows will draw the document into a display context such as a printer. + int FormatRange(bool doDraw, + int startPos, + int endPos, + wxDC* draw, + wxDC* target, // Why does it use two? Can they be the same? + wxRect renderRect, + wxRect pageRect); + + // Retrieve the line at the top of the display. + int GetFirstVisibleLine(); + + // Retrieve the contents of a line. + wxString GetLine(int line); + + // Returns the number of lines in the document. There is always at least one. + int GetLineCount(); + + // Sets the size in pixels of the left margin. + void SetMarginLeft(int width); + + // Returns the size in pixels of the left margin. + int GetMarginLeft(); + + // Sets the size in pixels of the right margin. + void SetMarginRight(int width); + + // Returns the size in pixels of the right margin. + int GetMarginRight(); + + // Is the document different from when it was last saved? + bool GetModify(); + + // Select a range of text. + void SetSelection(int start, int end); + + // Retrieve the selected text. + wxString GetSelectedText(); + + // Retrieve a range of text. + wxString GetTextRange(int startPos, int endPos); + + // Draw the selection in normal style or with selection highlighted. + void HideSelection(bool normal); + + // Retrieve the line containing a position. + int LineFromPosition(int pos); + + // Retrieve the position at the start of a line. + int PositionFromLine(int line); + + // Scroll horizontally and vertically. + void LineScroll(int columns, int lines); + + // Ensure the caret is visible. + void EnsureCaretVisible(); + + // Replace the selected text with the argument text. + void ReplaceSelection(const wxString& text); + + // Set to read only or read write. + void SetReadOnly(bool readOnly); + + // Will a paste succeed? + bool CanPaste(); + + // Are there any undoable actions in the undo history. + bool CanUndo(); + + // Delete the undo history. + void EmptyUndoBuffer(); + + // Undo one action in the undo history. + void Undo(); + + // Cut the selection to the clipboard. + void Cut(); + + // Copy the selection to the clipboard. + void Copy(); + + // Paste the contents of the clipboard into the document replacing the selection. + void Paste(); + + // Clear the selection. + void Clear(); + + // Replace the contents of the document with the argument text. + void SetText(const wxString& text); + + // Retrieve all the text in the document. + wxString GetText(); + + // Retrieve the number of characters in the document. + int GetTextLength(); + + // Set to overtype (true) or insert mode + void SetOvertype(bool overtype); + + // Returns true if overtype mode is active otherwise false is returned. + bool GetOvertype(); + + // Show a call tip containing a definition near position pos. + void CallTipShow(int pos, const wxString& definition); + + // Remove the call tip from the screen. + void CallTipCancel(); + + // Is there an active call tip? + bool CallTipActive(); + + // Retrieve the position where the caret was before displaying the call tip. + int CallTipPosAtStart(); + + // Highlight a segment of the definition. + void CallTipSetHighlight(int start, int end); + + // Set the background colour for the call tip. + void CallTipSetBackground(const wxColour& back); + + // Find the display line of a document line taking hidden lines into account. + int VisibleFromDocLine(int line); + + // Find the document line of a display line taking hidden lines into account. + int DocLineFromVisible(int lineDisplay); + + // Set the fold level of a line. + // This encodes an integer level along with flags indicating whether the + // line is a header and whether it is effectively white space. + void SetFoldLevel(int line, int level); + + // Retrieve the fold level of a line. + int GetFoldLevel(int line); + + // Find the last child line of a header line. + int GetLastChild(int line, int level); + + // Find the parent line of a child line. + int GetFoldParent(int line); + + // Make a range of lines visible. + void ShowLines(int lineStart, int lineEnd); + + // Make a range of lines invisible. + void HideLines(int lineStart, int lineEnd); + + // Is a line visible? + bool GetLineVisible(int line); + + // Show the children of a header line. + void SetFoldExpanded(int line, bool expanded); + + // Is a header line expanded? + bool GetFoldExpanded(int line); + + // Switch a header line between expanded and contracted. + void ToggleFold(int line); + + // Ensure a particular line is visible by expanding any header line hiding it. + void EnsureVisible(int line); + + // Set some debugging options for folding + void SetFoldFlags(int flags); + + // How many characters are on a line, not including end of line characters. + int LineLength(int line); + + // Highlight the characters at two positions. + void BraceHighlight(int pos1, int pos2); + + // Highlight the character at a position indicating there is no matching brace. + void BraceBadLight(int pos); + + // Find the position of a matching brace or INVALID_POSITION if no match. + int BraceMatch(int pos); + + // Are the end of line characters visible. + bool GetViewEOL(); + + // Make the end of line characters visible or invisible + void SetViewEOL(bool visible); + + // Retrieve a pointer to the document object. + void* GetDocPointer(); + + // Change the document object used. + void SetDocPointer(void* docPointer); + + // Set which document modification events are sent to the container. + void SetModEventMask(int mask); + + // Retrieve the column number which text should be kept within. + int GetEdgeColumn(); + + // Set the column number of the edge. + // If text goes past the edge then it is highlighted. + void SetEdgeColumn(int column); + + // Retrieve the edge highlight mode. + int GetEdgeMode(); + + // The edge may be displayed by a line (EDGE_LINE) or by highlighting text that + // goes beyond it (EDGE_BACKGROUND) or not displayed at all (EDGE_NONE). + void SetEdgeMode(int mode); + + // Retrieve the colour used in edge indication. wxColour GetEdgeColour(); - void SetEdgeColour(const wxColour& colour); + + // Change the colour used in edge indication. + void SetEdgeColour(const wxColour& edgeColour); + + // Sets the current caret position to be the search anchor. + void SearchAnchor(); + + // Find some text starting at the search anchor. + int SearchNext(int flags, const wxString& text); + + // Find some text starting at the search anchor and moving backwards. + int SearchPrev(int flags, const wxString& text); + + // Set the way the line the caret is on is kept visible. + void SetCaretPolicy(int caretPolicy, int caretSlop); + + // Retrieves the number of lines completely visible. + int LinesOnScreen(); + + // Set whether a pop up menu is displayed automatically when the user presses + // the wrong mouse button. + void UsePopUp(bool allowPopUp); + + // Is the selection a rectangular. The alternative is the more common stream selection. + bool SelectionIsRectangle(); + + // Set the zoom level. This number of points is added to the size of all fonts. + // It may be positive to magnify or negative to reduce. + void SetZoom(int zoom); + + // Retrieve the zoom level. + int GetZoom(); + + // Create a new document object. + // Starts with reference count of 1 and not selected into editor. + void* CreateDocument(); + + // Extend life of document. + void AddRefDocument(void* docPointer); + + // Release a reference to the document, deleting document if it fades to black. + void ReleaseDocument(void* docPointer); + + // Get which document modification events are sent to the container. + int GetModEventMask(); + + // Start notifying the container of all key presses and commands. + void StartRecord(); + + // Stop notifying the container of all key presses and commands. + void StopRecord(); + + // Set the lexing language of the document. + void SetLexer(int lexer); + + // Retrieve the lexing language of the document. + int GetLexer(); + + // Colourise a segment of the document using the current lexing language. + void Colourise(int start, int end); + + // Set up a value that may be used by a lexer for some optional feature. + void SetProperty(const wxString& key, const wxString& value); + + // Set up the key words used by the lexer. + void SetKeyWords(int keywordSet, const wxString& keyWords); + +// END of generated section +//---------------------------------------------------------------------- +// Others... - // Lexer - void SetLexer(wxSTC_LEX lexer); - wxSTC_LEX GetLexer(); - void Colourise(int start, int end); - void SetProperty(const wxString& key, const wxString& value); - void SetKeywords(int keywordSet, const wxString& keywordList); + // Returns the line number of the line with the caret. + int GetCurrentLine(); + + // Extract style settings from a spec-string which is composed of one or + // more of the following comma separated elements: + // + // bold turns on bold + // italic turns on italics + // fore:#RRGGBB sets the foreground colour + // back:#RRGGBB sets the background colour + // face:[facename] sets the font face name to use + // size:[num] sets the font size in points + // eol turns on eol filling + // underline turns on underlining + // + void StyleSetSpec(int styleNum, const wxString& spec); - // Event mask for Modified Event - void SetModEventMask(int mask); - //int GetModEventMask(); + + // Set style size, face, bold, italic, and underline attributes from + // a wxFont's attributes. + void StyleSetFont(int styleNum, wxFont& font); + + + + // Set all font style attributes at once. + void StyleSetFontAttr(int styleNum, int size, + const wxString& faceName, + bool bold, bool italic, + bool underline); + + + + // Perform one of the operations defined by the wxSTC_CMD_* constants. + void CmdKeyExecute(int cmd); + + + + // Set the left and right margin in the edit area, measured in pixels. + void SetMargins(int left, int right); + + + // Retrieve the start and end positions of the current selection. +#ifdef SWIG + void GetSelection(int* OUTPUT, int* OUTPUT); +#else + void GetSelection(int* startPos, int* endPos); +#endif + + // Retrieve the point in the window where a position is displayed. + wxPoint PointFromPosition(int pos); + +//---------------------------------------------------------------------- + #ifndef SWIG private: @@ -524,8 +1267,6 @@ private: ScintillaWX* m_swx; wxStopWatch m_stopWatch; - bool m_readOnly; - wxSTC_UndoType m_undoType; friend class ScintillaWX; @@ -615,22 +1356,10 @@ enum { wxEVT_STC_KEY, wxEVT_STC_MACRORECORD, wxEVT_STC_MARGINCLICK, - wxEVT_STC_NEEDSHOWN + wxEVT_STC_NEEDSHOWN, + wxEVT_STC_POSCHANGED }; -// Modification and action types -const int wxSTC_MOD_INSERTTEXT = 0x1; -const int wxSTC_MOD_DELETETEXT = 0x2; -const int wxSTC_MOD_CHANGESTYLE = 0x4; -const int wxSTC_MOD_CHANGEFOLD = 0x8; -const int wxSTC_PERFORMED_USER = 0x10; -const int wxSTC_PERFORMED_UNDO = 0x20; -const int wxSTC_PERFORMED_REDO = 0x40; -const int wxSTC_LASTSTEPINUNDOREDO = 0x100; -const int wxSTC_MOD_CHANGEMARKER = 0x200; -const int wxSTC_MOD_BEFOREINSERT = 0x400; -const int wxSTC_MOD_BEFOREDELETE = 0x800; - #ifndef SWIG typedef void (wxEvtHandler::*wxStyledTextEventFunction)(wxStyledTextEvent&); @@ -648,6 +1377,7 @@ typedef void (wxEvtHandler::*wxStyledTextEventFunction)(wxStyledTextEvent&); #define EVT_STC_MACRORECORD(id, fn) { wxEVT_STC_MACRORECORD, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL }, #define EVT_STC_MARGINCLICK(id, fn) { wxEVT_STC_MARGINCLICK, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL }, #define EVT_STC_NEEDSHOWN(id, fn) { wxEVT_STC_NEEDSHOWN, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL }, +#define EVT_STC_POSCHANGED(id, fn) { wxEVT_STC_POSCHANGED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL }, #endif diff --git a/wxPython/demo/data/stc.h.html b/wxPython/demo/data/stc.h.html new file mode 100644 index 0000000000..3220c268d0 --- /dev/null +++ b/wxPython/demo/data/stc.h.html @@ -0,0 +1,1397 @@ + + +stc.h.html + + +
+////////////////////////////////////////////////////////////////////////////
+// Name:        stc.h
+// Purpose:     A wxWindows implementation of Scintilla.  This class is the
+//              one meant to be used directly by wx applications.  It does not
+//              derive directly from the Scintilla classes, and in fact there
+//              is no mention of Scintilla classes at all in this header.
+//              This class delegates all method calls and events to the
+//              Scintilla objects and so forth.  This allows the use of
+//              Scintilla without polluting the namespace with all the
+//              classes and itentifiers from Scintilla.
+//
+// Author:      Robin Dunn
+//
+// Created:     13-Jan-2000
+// RCS-ID:      $Id$
+// Copyright:   (c) 2000 by Total Control Software
+// Licence:     wxWindows license
+/////////////////////////////////////////////////////////////////////////////
+
+#ifndef __stc_h__
+#define __stc_h__
+
+
+#include <wx/wx.h>
+
+//----------------------------------------------------------------------
+// BEGIN generated section.  The following code is automatically generated
+//       by gen_iface.py.  Do not edit this file.  Edit stc.h.in instead
+//       and regenerate
+
+#define wxSTC_INVALID_POSITION -1
+#define wxSTC_START 2000
+#define wxSTC_OPTIONAL_START 3000
+#define wxSTC_LEXER_START 4000
+#define wxSTC_CMD_REDO 2011
+#define wxSTC_CMD_SELECTALL 2013
+#define wxSTC_WS_INVISIBLE 0
+#define wxSTC_WS_VISIBLEALWAYS 1
+#define wxSTC_WS_VISIBLEAFTERINDENT 2
+#define wxSTC_EOL_CRLF 0
+#define wxSTC_EOL_CR 1
+#define wxSTC_EOL_LF 2
+
+// The SC_CP_UTF8 value can be used to enter Unicode mode.
+// This is the same value as CP_UTF8 in Windows
+#define wxSTC_CP_UTF8 65001
+#define wxSTC_MARKER_MAX 31
+#define wxSTC_MARK_CIRCLE 0
+#define wxSTC_MARK_ROUNDRECT 1
+#define wxSTC_MARK_ARROW 2
+#define wxSTC_MARK_SMALLRECT 3
+#define wxSTC_MARK_SHORTARROW 4
+#define wxSTC_MARK_EMPTY 5
+#define wxSTC_MARK_ARROWDOWN 6
+#define wxSTC_MARK_MINUS 7
+#define wxSTC_MARK_PLUS 8
+#define wxSTC_MARKNUM_FOLDER 30
+#define wxSTC_MARKNUM_FOLDEROPEN 31
+#define wxSTC_MARGIN_SYMBOL 0
+#define wxSTC_MARGIN_NUMBER 1
+#define wxSTC_STYLE_DEFAULT 32
+#define wxSTC_STYLE_LINENUMBER 33
+#define wxSTC_STYLE_BRACELIGHT 34
+#define wxSTC_STYLE_BRACEBAD 35
+#define wxSTC_STYLE_CONTROLCHAR 36
+#define wxSTC_STYLE_INDENTGUIDE 37
+#define wxSTC_STYLE_MAX 127
+
+// Character set identifiers are used in StyleSetCharacterSet.
+// The values are the same as the Windows *_CHARSET values.
+#define wxSTC_CHARSET_ANSI 0
+#define wxSTC_CHARSET_DEFAULT 1
+#define wxSTC_CHARSET_BALTIC 186
+#define wxSTC_CHARSET_CHINESEBIG5 136
+#define wxSTC_CHARSET_EASTEUROPE 238
+#define wxSTC_CHARSET_GB2312 134
+#define wxSTC_CHARSET_GREEK 161
+#define wxSTC_CHARSET_HANGUL 129
+#define wxSTC_CHARSET_MAC 77
+#define wxSTC_CHARSET_OEM 255
+#define wxSTC_CHARSET_RUSSIAN 204
+#define wxSTC_CHARSET_SHIFTJIS 128
+#define wxSTC_CHARSET_SYMBOL 2
+#define wxSTC_CHARSET_TURKISH 162
+#define wxSTC_CHARSET_JOHAB 130
+#define wxSTC_CHARSET_HEBREW 177
+#define wxSTC_CHARSET_ARABIC 178
+#define wxSTC_CHARSET_VIETNAMESE 163
+#define wxSTC_CHARSET_THAI 222
+#define wxSTC_INDIC_MAX 7
+#define wxSTC_INDIC_PLAIN 0
+#define wxSTC_INDIC_SQUIGGLE 1
+#define wxSTC_INDIC_TT 2
+#define wxSTC_INDIC_DIAGONAL 3
+#define wxSTC_INDIC_STRIKE 4
+#define wxSTC_INDIC0_MASK 32
+#define wxSTC_INDIC1_MASK 64
+#define wxSTC_INDIC2_MASK 128
+#define wxSTC_INDICS_MASK 32 | 64 | 128
+
+// PrintColourMode - use same colours as screen.
+#define wxSTC_PRINT_NORMAL 0
+
+// PrintColourMode - invert the light value of each style for printing.
+#define wxSTC_PRINT_INVERTLIGHT 1
+
+// PrintColourMode - force black text on white background for printing.
+#define wxSTC_PRINT_BLACKONWHITE 2
+#define wxSTC_FIND_DOWN 1
+#define wxSTC_FIND_WHOLEWORD 2
+#define wxSTC_FIND_MATCHCASE 4
+#define wxSTC_FIND_WORDSTART 0x00100000
+
+// SCFIND_REGEXP is not yet implemented.
+#define wxSTC_FIND_REGEXP 0x00200000
+#define wxSTC_CMD_UNDO 2176
+#define wxSTC_CMD_CUT 2177
+#define wxSTC_CMD_COPY 2178
+#define wxSTC_CMD_PASTE 2179
+#define wxSTC_FOLDLEVELBASE 0x400
+#define wxSTC_FOLDLEVELWHITEFLAG 0x1000
+#define wxSTC_FOLDLEVELHEADERFLAG 0x2000
+#define wxSTC_FOLDLEVELNUMBERMASK 0x0FFF
+#define wxSTC_CMD_LINEDOWN 2300
+#define wxSTC_CMD_LINEDOWNEXTEND 2301
+#define wxSTC_CMD_LINEUP 2302
+#define wxSTC_CMD_LINEUPEXTEND 2303
+#define wxSTC_CMD_CHARLEFT 2304
+#define wxSTC_CMD_CHARLEFTEXTEND 2305
+#define wxSTC_CMD_CHARRIGHT 2306
+#define wxSTC_CMD_CHARRIGHTEXTEND 2307
+#define wxSTC_CMD_WORDLEFT 2308
+#define wxSTC_CMD_WORDLEFTEXTEND 2309
+#define wxSTC_CMD_WORDRIGHT 2310
+#define wxSTC_CMD_WORDRIGHTEXTEND 2311
+#define wxSTC_CMD_HOME 2312
+#define wxSTC_CMD_HOMEEXTEND 2313
+#define wxSTC_CMD_LINEEND 2314
+#define wxSTC_CMD_LINEENDEXTEND 2315
+#define wxSTC_CMD_DOCUMENTSTART 2316
+#define wxSTC_CMD_DOCUMENTSTARTEXTEND 2317
+#define wxSTC_CMD_DOCUMENTEND 2318
+#define wxSTC_CMD_DOCUMENTENDEXTEND 2319
+#define wxSTC_CMD_PAGEUP 2320
+#define wxSTC_CMD_PAGEUPEXTEND 2321
+#define wxSTC_CMD_PAGEDOWN 2322
+#define wxSTC_CMD_PAGEDOWNEXTEND 2323
+#define wxSTC_CMD_EDITTOGGLEOVERTYPE 2324
+#define wxSTC_CMD_CANCEL 2325
+#define wxSTC_CMD_DELETEBACK 2326
+#define wxSTC_CMD_TAB 2327
+#define wxSTC_CMD_BACKTAB 2328
+#define wxSTC_CMD_NEWLINE 2329
+#define wxSTC_CMD_FORMFEED 2330
+#define wxSTC_CMD_VCHOME 2331
+#define wxSTC_CMD_VCHOMEEXTEND 2332
+#define wxSTC_CMD_ZOOMIN 2333
+#define wxSTC_CMD_ZOOMOUT 2334
+#define wxSTC_CMD_DELWORDLEFT 2335
+#define wxSTC_CMD_DELWORDRIGHT 2336
+#define wxSTC_CMD_LINECUT 2337
+#define wxSTC_CMD_LINEDELETE 2338
+#define wxSTC_CMD_LINETRANSPOSE 2339
+#define wxSTC_CMD_LOWERCASE 2340
+#define wxSTC_CMD_UPPERCASE 2341
+#define wxSTC_CMD_LINESCROLLDOWN 2342
+#define wxSTC_CMD_LINESCROLLUP 2343
+#define wxSTC_EDGE_NONE 0
+#define wxSTC_EDGE_LINE 1
+#define wxSTC_EDGE_BACKGROUND 2
+
+// Show caret within N lines of edge when it's scrolled to view
+#define wxSTC_CARET_SLOP 0x01
+
+// Center caret on screen when it's scrolled to view
+#define wxSTC_CARET_CENTER 0x02
+
+// OR this with CARET_CENTER to reposition even when visible, or
+// OR this with CARET_SLOP to reposition whenever outside slop border
+#define wxSTC_CARET_STRICT 0x04
+
+// Notifications
+// Type of modification and the action which caused the modification
+// These are defined as a bit mask to make it easy to specify which notifications are wanted.
+// One bit is set from each of SC_MOD_* and SC_PERFORMED_*.
+#define wxSTC_MOD_INSERTTEXT 0x1
+#define wxSTC_MOD_DELETETEXT 0x2
+#define wxSTC_MOD_CHANGESTYLE 0x4
+#define wxSTC_MOD_CHANGEFOLD 0x8
+#define wxSTC_PERFORMED_USER 0x10
+#define wxSTC_PERFORMED_UNDO 0x20
+#define wxSTC_PERFORMED_REDO 0x40
+#define wxSTC_LASTSTEPINUNDOREDO 0x100
+#define wxSTC_MOD_CHANGEMARKER 0x200
+#define wxSTC_MOD_BEFOREINSERT 0x400
+#define wxSTC_MOD_BEFOREDELETE 0x800
+#define wxSTC_MODEVENTMASKALL 0xF77
+
+// Symbolic key codes and modifier flags
+// ASCII and other printable characters below 256
+// Extended keys above 300
+#define wxSTC_KEY_DOWN 300
+#define wxSTC_KEY_UP 301
+#define wxSTC_KEY_LEFT 302
+#define wxSTC_KEY_RIGHT 303
+#define wxSTC_KEY_HOME 304
+#define wxSTC_KEY_END 305
+#define wxSTC_KEY_PRIOR 306
+#define wxSTC_KEY_NEXT 307
+#define wxSTC_KEY_DELETE 308
+#define wxSTC_KEY_INSERT 309
+#define wxSTC_KEY_ESCAPE 7
+#define wxSTC_KEY_BACK 8
+#define wxSTC_KEY_TAB 9
+#define wxSTC_KEY_RETURN 13
+#define wxSTC_KEY_ADD 310
+#define wxSTC_KEY_SUBTRACT 311
+#define wxSTC_KEY_DIVIDE 312
+#define wxSTC_SCMOD_SHIFT 1
+#define wxSTC_SCMOD_CTRL 2
+#define wxSTC_SCMOD_ALT 4
+
+// For SciLexer.h
+#define wxSTC_LEX_CONTAINER 0
+#define wxSTC_LEX_NULL 1
+#define wxSTC_LEX_PYTHON 2
+#define wxSTC_LEX_CPP 3
+#define wxSTC_LEX_HTML 4
+#define wxSTC_LEX_XML 5
+#define wxSTC_LEX_PERL 6
+#define wxSTC_LEX_SQL 7
+#define wxSTC_LEX_VB 8
+#define wxSTC_LEX_PROPERTIES 9
+#define wxSTC_LEX_ERRORLIST 10
+#define wxSTC_LEX_MAKEFILE 11
+#define wxSTC_LEX_BATCH 12
+#define wxSTC_LEX_XCODE 13
+#define wxSTC_LEX_LATEX 14
+#define wxSTC_LEX_LUA 15
+#define wxSTC_LEX_DIFF 16
+
+// Lexical states for SCLEX_PYTHON
+#define wxSTC_P_DEFAULT 0
+#define wxSTC_P_COMMENTLINE 1
+#define wxSTC_P_NUMBER 2
+#define wxSTC_P_STRING 3
+#define wxSTC_P_CHARACTER 4
+#define wxSTC_P_WORD 5
+#define wxSTC_P_TRIPLE 6
+#define wxSTC_P_TRIPLEDOUBLE 7
+#define wxSTC_P_CLASSNAME 8
+#define wxSTC_P_DEFNAME 9
+#define wxSTC_P_OPERATOR 10
+#define wxSTC_P_IDENTIFIER 11
+#define wxSTC_P_COMMENTBLOCK 12
+#define wxSTC_P_STRINGEOL 13
+
+// Lexical states for SCLEX_CPP, SCLEX_VB
+#define wxSTC_C_DEFAULT 0
+#define wxSTC_C_COMMENT 1
+#define wxSTC_C_COMMENTLINE 2
+#define wxSTC_C_COMMENTDOC 3
+#define wxSTC_C_NUMBER 4
+#define wxSTC_C_WORD 5
+#define wxSTC_C_STRING 6
+#define wxSTC_C_CHARACTER 7
+#define wxSTC_C_UUID 8
+#define wxSTC_C_PREPROCESSOR 9
+#define wxSTC_C_OPERATOR 10
+#define wxSTC_C_IDENTIFIER 11
+#define wxSTC_C_STRINGEOL 12
+#define wxSTC_C_VERBATIM 13
+
+// Lexical states for SCLEX_HTML, SCLEX_XML
+#define wxSTC_H_DEFAULT 0
+#define wxSTC_H_TAG 1
+#define wxSTC_H_TAGUNKNOWN 2
+#define wxSTC_H_ATTRIBUTE 3
+#define wxSTC_H_ATTRIBUTEUNKNOWN 4
+#define wxSTC_H_NUMBER 5
+#define wxSTC_H_DOUBLESTRING 6
+#define wxSTC_H_SINGLESTRING 7
+#define wxSTC_H_OTHER 8
+#define wxSTC_H_COMMENT 9
+#define wxSTC_H_ENTITY 10
+
+// XML and ASP
+#define wxSTC_H_TAGEND 11
+#define wxSTC_H_XMLSTART 12
+#define wxSTC_H_XMLEND 13
+#define wxSTC_H_SCRIPT 14
+#define wxSTC_H_ASP 15
+#define wxSTC_H_ASPAT 16
+#define wxSTC_H_CDATA 17
+#define wxSTC_H_QUESTION 18
+
+// More HTML
+#define wxSTC_H_VALUE 19
+
+// Embedded Javascript
+#define wxSTC_HJ_START 40
+#define wxSTC_HJ_DEFAULT 41
+#define wxSTC_HJ_COMMENT 42
+#define wxSTC_HJ_COMMENTLINE 43
+#define wxSTC_HJ_COMMENTDOC 44
+#define wxSTC_HJ_NUMBER 45
+#define wxSTC_HJ_WORD 46
+#define wxSTC_HJ_KEYWORD 47
+#define wxSTC_HJ_DOUBLESTRING 48
+#define wxSTC_HJ_SINGLESTRING 49
+#define wxSTC_HJ_SYMBOLS 50
+#define wxSTC_HJ_STRINGEOL 51
+
+// ASP Javascript
+#define wxSTC_HJA_START 55
+#define wxSTC_HJA_DEFAULT 56
+#define wxSTC_HJA_COMMENT 57
+#define wxSTC_HJA_COMMENTLINE 58
+#define wxSTC_HJA_COMMENTDOC 59
+#define wxSTC_HJA_NUMBER 60
+#define wxSTC_HJA_WORD 61
+#define wxSTC_HJA_KEYWORD 62
+#define wxSTC_HJA_DOUBLESTRING 63
+#define wxSTC_HJA_SINGLESTRING 64
+#define wxSTC_HJA_SYMBOLS 65
+#define wxSTC_HJA_STRINGEOL 66
+
+// Embedded VBScript
+#define wxSTC_HB_START 70
+#define wxSTC_HB_DEFAULT 71
+#define wxSTC_HB_COMMENTLINE 72
+#define wxSTC_HB_NUMBER 73
+#define wxSTC_HB_WORD 74
+#define wxSTC_HB_STRING 75
+#define wxSTC_HB_IDENTIFIER 76
+#define wxSTC_HB_STRINGEOL 77
+
+// ASP VBScript
+#define wxSTC_HBA_START 80
+#define wxSTC_HBA_DEFAULT 81
+#define wxSTC_HBA_COMMENTLINE 82
+#define wxSTC_HBA_NUMBER 83
+#define wxSTC_HBA_WORD 84
+#define wxSTC_HBA_STRING 85
+#define wxSTC_HBA_IDENTIFIER 86
+#define wxSTC_HBA_STRINGEOL 87
+
+// Embedded Python
+#define wxSTC_HP_START 90
+#define wxSTC_HP_DEFAULT 91
+#define wxSTC_HP_COMMENTLINE 92
+#define wxSTC_HP_NUMBER 93
+#define wxSTC_HP_STRING 94
+#define wxSTC_HP_CHARACTER 95
+#define wxSTC_HP_WORD 96
+#define wxSTC_HP_TRIPLE 97
+#define wxSTC_HP_TRIPLEDOUBLE 98
+#define wxSTC_HP_CLASSNAME 99
+#define wxSTC_HP_DEFNAME 100
+#define wxSTC_HP_OPERATOR 101
+#define wxSTC_HP_IDENTIFIER 102
+
+// ASP Python
+#define wxSTC_HPA_START 105
+#define wxSTC_HPA_DEFAULT 106
+#define wxSTC_HPA_COMMENTLINE 107
+#define wxSTC_HPA_NUMBER 108
+#define wxSTC_HPA_STRING 109
+#define wxSTC_HPA_CHARACTER 110
+#define wxSTC_HPA_WORD 111
+#define wxSTC_HPA_TRIPLE 112
+#define wxSTC_HPA_TRIPLEDOUBLE 113
+#define wxSTC_HPA_CLASSNAME 114
+#define wxSTC_HPA_DEFNAME 115
+#define wxSTC_HPA_OPERATOR 116
+#define wxSTC_HPA_IDENTIFIER 117
+
+// PHP
+#define wxSTC_HPHP_DEFAULT 118
+#define wxSTC_HPHP_HSTRING 119
+#define wxSTC_HPHP_SIMPLESTRING 120
+#define wxSTC_HPHP_WORD 121
+#define wxSTC_HPHP_NUMBER 122
+#define wxSTC_HPHP_VARIABLE 123
+#define wxSTC_HPHP_COMMENT 124
+#define wxSTC_HPHP_COMMENTLINE 125
+#define wxSTC_HPHP_STRINGEOL 126
+
+// Lexical states for SCLEX_PERL
+#define wxSTC_PL_DEFAULT 0
+#define wxSTC_PL_HERE 1
+#define wxSTC_PL_COMMENTLINE 2
+#define wxSTC_PL_POD 3
+#define wxSTC_PL_NUMBER 4
+#define wxSTC_PL_WORD 5
+#define wxSTC_PL_STRING 6
+#define wxSTC_PL_CHARACTER 7
+#define wxSTC_PL_PUNCTUATION 8
+#define wxSTC_PL_PREPROCESSOR 9
+#define wxSTC_PL_OPERATOR 10
+#define wxSTC_PL_IDENTIFIER 11
+#define wxSTC_PL_SCALAR 12
+#define wxSTC_PL_ARRAY 13
+#define wxSTC_PL_HASH 14
+#define wxSTC_PL_SYMBOLTABLE 15
+#define wxSTC_PL_REF 16
+#define wxSTC_PL_REGEX 17
+#define wxSTC_PL_REGSUBST 18
+#define wxSTC_PL_LONGQUOTE 19
+#define wxSTC_PL_BACKTICKS 20
+#define wxSTC_PL_DATASECTION 21
+
+// Lexical states for SCLEX_LATEX
+#define wxSTC_L_DEFAULT 0
+#define wxSTC_L_COMMAND 1
+#define wxSTC_L_TAG 2
+#define wxSTC_L_MATH 3
+#define wxSTC_L_COMMENT 4
+
+// Lexical states for SCLEX_LUA
+#define wxSTC_LUA_DEFAULT 0
+#define wxSTC_LUA_COMMENT 1
+#define wxSTC_LUA_COMMENTLINE 2
+#define wxSTC_LUA_COMMENTDOC 3
+#define wxSTC_LUA_NUMBER 4
+#define wxSTC_LUA_WORD 5
+#define wxSTC_LUA_STRING 6
+#define wxSTC_LUA_CHARACTER 7
+#define wxSTC_LUA_LITERALSTRING 8
+#define wxSTC_LUA_PREPROCESSOR 9
+#define wxSTC_LUA_OPERATOR 10
+#define wxSTC_LUA_IDENTIFIER 11
+#define wxSTC_LUA_STRINGEOL 12
+#define wxSTC_ERR_DEFAULT 0
+#define wxSTC_ERR_PYTHON 1
+#define wxSTC_ERR_GCC 2
+#define wxSTC_ERR_MS 3
+#define wxSTC_ERR_CMD 4
+#define wxSTC_ERR_BORLAND 5
+#define wxSTC_ERR_PERL 6
+
+// END of generated section
+//----------------------------------------------------------------------
+// Others
+
+#define wxSTC_MASK_FOLDERS ((1 << wxSTC_MARKNUM_FOLDER) | (1 << wxSTC_MARKNUM_FOLDEROPEN))
+
+
+
+//----------------------------------------------------------------------
+
+class  ScintillaWX;                      // forward declare
+class  WordList;
+struct SCNotification;
+
+
+extern const wxChar* wxSTCNameStr;
+
+//----------------------------------------------------------------------
+
+class wxStyledTextCtrl : public wxControl {
+public:
+
+#ifdef SWIG
+    wxStyledTextCtrl(wxWindow *parent, wxWindowID id,
+                     const wxPoint& pos = wxDefaultPosition,
+                     const wxSize& size = wxDefaultSize, long style = 0,
+                     const char* name = "styledtext");
+#else
+    wxStyledTextCtrl(wxWindow *parent, wxWindowID id,
+                     const wxPoint& pos = wxDefaultPosition,
+                     const wxSize& size = wxDefaultSize, long style = 0,
+                     const wxString& name = wxSTCNameStr);
+#endif
+
+
+#ifndef SWIG
+    ~wxStyledTextCtrl();
+#endif
+
+//----------------------------------------------------------------------
+// BEGIN generated section.  The following code is automatically generated
+//       by gen_iface.py.  Do not edit this file.  Edit stc.h.in instead
+//       and regenerate
+
+
+    // Add text to the document
+    void AddText(const wxString& text);
+
+    // Add array of cells to document
+    void AddStyledText(const wxString& text);
+
+    // Insert string at a position
+    void InsertText(int pos, const wxString& text);
+
+    // Delete all text in the document
+    void ClearAll();
+
+    // Set all style bytes to 0, remove all folding information
+    void ClearDocumentStyle();
+
+    // The number of characters in the document
+    int GetLength();
+
+    // Returns the character byte at the position
+    int GetCharAt(int pos);
+
+    // Returns the position of the caret
+    int GetCurrentPos();
+
+    // Returns the position of the opposite end of the selection to the caret
+    int GetAnchor();
+
+    // Returns the style byte at the position
+    int GetStyleAt(int pos);
+
+    // Redoes the next action on the undo history
+    void Redo();
+
+    // Choose between collecting actions into the undo
+    // history and discarding them.
+    void SetUndoCollection(bool collectUndo);
+
+    // Select all the text in the document.
+    void SelectAll();
+
+    // Remember the current position in the undo history as the position
+    // at which the document was saved.
+    void SetSavePoint();
+
+    // Retrieve a buffer of cells.
+    wxString GetStyledText(int startPos, int endPos);
+
+    // Are there any redoable actions in the undo history.
+    bool CanRedo();
+
+    // Retrieve the line number at which a particular marker is located
+    int MarkerLineFromHandle(int handle);
+
+    // Delete a marker.
+    void MarkerDeleteHandle(int handle);
+
+    // Is undo history being collected?
+    bool GetUndoCollection();
+
+    // Are white space characters currently visible?
+    // Returns one of SCWS_* constants.
+    int GetViewWhiteSpace();
+
+    // Make white space characters invisible, always visible or visible outside indentation.
+    void SetViewWhiteSpace(int viewWS);
+
+    // Find the position from a point within the window.
+    int PositionFromPoint(wxPoint pt);
+
+    // Set caret to start of a line and ensure it is visible.
+    void GotoLine(int line);
+
+    // Set caret to a position and ensure it is visible.
+    void GotoPos(int pos);
+
+    // Set the selection anchor to a position. The anchor is the opposite
+    // end of the selection from the caret.
+    void SetAnchor(int posAnchor);
+
+    // Retrieve the text of the line containing the caret.
+    // Returns the index of the caret on the line.
+    wxString GetCurLine(int* OUTPUT=NULL);
+
+    // Retrieve the position of the last correctly styled character.
+    int GetEndStyled();
+
+    // Convert all line endings in the document to use the current mode.
+    void ConvertEOLs();
+
+    // Retrieve the current end of line mode - one of CRLF, CR, or LF.
+    int GetEOLMode();
+
+    // Set the current end of line mode.
+    void SetEOLMode(int eolMode);
+
+    // Set the current styling position to pos and the styling mask to mask.
+    // The styling mask can be used to protect some bits in each styling byte from
+    // modification.
+    void StartStyling(int pos, int mask);
+
+    // Change style from current styling position for length characters to a style
+    // and move the current styling position to after this newly styled segment.
+    void SetStyling(int length, int style);
+
+    // Is drawing done first into a buffer or direct to the screen.
+    bool GetBufferedDraw();
+
+    // If drawing is buffered then each line of text is drawn into a bitmap buffer
+    // before drawing it to the screen to avoid flicker.
+    void SetBufferedDraw(bool buffered);
+
+    // Change the visible size of a tab to be a multiple of the width of a space
+    // character.
+    void SetTabWidth(int tabWidth);
+
+    // Retrieve the visible size of a tab.
+    int GetTabWidth();
+
+    // Set the code page used to interpret the bytes of the document as characters.
+    // The SC_CP_UTF8 value can be used to enter Unicode mode.
+    void SetCodePage(int codePage);
+
+    // Set the symbol used for a particular marker number,
+    // and optionally the for and background colours.
+    void MarkerDefine(int markerNumber, int markerSymbol,
+                         const wxColour& foreground = wxNullColour,
+                         const wxColour& background = wxNullColour);
+
+    // Set the foreground colour used for a particular marker number.
+    void MarkerSetForeground(int markerNumber, const wxColour& fore);
+
+    // Set the background colour used for a particular marker number.
+    void MarkerSetBackground(int markerNumber, const wxColour& back);
+
+    // Add a marker to a line.
+    void MarkerAdd(int line, int markerNumber);
+
+    // Delete a marker from a line
+    void MarkerDelete(int line, int markerNumber);
+
+    // Delete all markers with a particular number from all lines
+    void MarkerDeleteAll(int markerNumber);
+
+    // Get a bit mask of all the markers set on a line.
+    int MarkerGet(int line);
+
+    // Find the next line after lineStart that includes a marker in mask.
+    int MarkerNext(int lineStart, int markerMask);
+
+    // Find the previous line before lineStart that includes a marker in mask.
+    int MarkerPrevious(int lineStart, int markerMask);
+
+    // Set a margin to be either numeric or symbolic.
+    void SetMarginType(int margin, int marginType);
+
+    // Retrieve the type of a margin.
+    int GetMarginType(int margin);
+
+    // Set the width of a margin to a width expressed in pixels.
+    void SetMarginWidth(int margin, int pixelWidth);
+
+    // Retrieve the width of a margin in pixels.
+    int GetMarginWidth(int margin);
+
+    // Set a mask that determines which markers are displayed in a margin.
+    void SetMarginMask(int margin, int mask);
+
+    // Retrieve the marker mask of a margin.
+    int GetMarginMask(int margin);
+
+    // Make a margin sensitive or insensitive to mouse clicks.
+    void SetMarginSensitive(int margin, bool sensitive);
+
+    // Retrieve the mouse click sensitivity of a margin.
+    bool GetMarginSensitive(int margin);
+
+    // Clear all the styles and make equivalent to the global default style.
+    void StyleClearAll();
+
+    // Set the foreground colour of a style.
+    void StyleSetForeground(int style, const wxColour& fore);
+
+    // Set the background colour of a style.
+    void StyleSetBackground(int style, const wxColour& back);
+
+    // Set a style to be bold or not.
+    void StyleSetBold(int style, bool bold);
+
+    // Set a style to be italic or not.
+    void StyleSetItalic(int style, bool italic);
+
+    // Set the size of characters of a style.
+    void StyleSetSize(int style, int sizePoints);
+
+    // Set the font of a style.
+    void StyleSetFaceName(int style, const wxString& fontName);
+
+    // Set a style to have its end of line filled or not.
+    void StyleSetEOLFilled(int style, bool filled);
+
+    // Reset the default style to its state at startup
+    void StyleResetDefault();
+
+    // Set a style to be underlined or not.
+    void StyleSetUnderline(int style, bool underline);
+
+    // Set the foreground colour of the selection and whether to use this setting.
+    void SetSelForeground(bool useSetting, const wxColour& fore);
+
+    // Set the background colour of the selection and whether to use this setting.
+    void SetSelBackground(bool useSetting, const wxColour& back);
+
+    // Set the foreground colour of the caret.
+    void SetCaretForeground(const wxColour& fore);
+
+    // When key+modifier combination km is pressed perform msg.
+    void CmdKeyAssign(int key, int modifiers, int cmd);
+
+    // When key+modifier combination km do nothing.
+    void CmdKeyClear(int key, int modifiers);
+
+    // Drop all key mappings.
+    void CmdKeyClearAll();
+
+    // Set the styles for a segment of the document.
+    void SetStyleBytes(int length, char* styleBytes);
+
+    // Set a style to be visible or not.
+    void StyleSetVisible(int style, bool visible);
+
+    // Get the time in milliseconds that the caret is on and off.
+    int GetCaretPeriod();
+
+    // Get the time in milliseconds that the caret is on and off. 0 = steady on.
+    void SetCaretPeriod(int periodMilliseconds);
+
+    // Set the set of characters making up words for when moving or selecting
+    // by word.
+    void SetWordChars(const wxString& characters);
+
+    // Start a sequence of actions that is undone and redone as a unit.
+    // May be nested.
+    void BeginUndoAction();
+
+    // End a sequence of actions that is undone and redone as a unit.
+    void EndUndoAction();
+
+    // Set an indicator to plain, squiggle or TT.
+    void IndicatorSetStyle(int indic, int style);
+
+    // Retrieve the style of an indicator.
+    int IndicatorGetStyle(int indic);
+
+    // Set the foreground colour of an indicator.
+    void IndicatorSetForeground(int indic, const wxColour& fore);
+
+    // Retrieve the foreground colour of an indicator.
+    wxColour IndicatorGetForeground(int indic);
+
+    // Divide each styling byte into lexical class bits (default:5) and indicator
+    // bits (default:3). If a lexer requires more than 32 lexical states, then this
+    // is used to expand the possible states.
+    void SetStyleBits(int bits);
+
+    // Retrieve number of bits in style bytes used to hold the lexical state.
+    int GetStyleBits();
+
+    // Used to hold extra styling information for each line.
+    void SetLineState(int line, int state);
+
+    // Retrieve the extra styling information for a line.
+    int GetLineState(int line);
+
+    // Retrieve the last line number that has line state.
+    int GetMaxLineState();
+
+    // Display a auto-completion list.
+    // The lenEntered parameter indicates how many characters before
+    // the caret should be used to provide context.
+    void AutoCompShow(int lenEntered, const wxString& itemList);
+
+    // Remove the auto-completion list from the screen.
+    void AutoCompCancel();
+
+    // Is there an auto-completion list visible?
+    bool AutoCompActive();
+
+    // Retrieve the position of the caret when the auto-completion list was
+    // displayed.
+    int AutoCompPosStart();
+
+    // User has selected an item so remove the list and insert the selection.
+    void AutoCompComplete();
+
+    // Define a set of character that when typed cancel the auto-completion list.
+    void AutoCompStops(const wxString& characterSet);
+
+    // Change the separator character in the string setting up an auto-completion
+    // list. Default is space but can be changed if items contain space.
+    void AutoCompSetSeparator(int separatorCharacter);
+
+    // Retrieve the auto-completion list separator character.
+    int AutoCompGetSeparator();
+
+    // Select the item in the auto-completion list that starts with a string.
+    void AutoCompSelect(const wxString& text);
+
+    // Should the auto-completion list be cancelled if the user backspaces to a
+    // position before where the box was created.
+    void AutoCompSetCancelAtStart(bool cancel);
+
+    // Retrieve whether auto-completion cancelled by backspacing before start.
+    bool AutoCompGetCancelAtStart();
+
+    // Define a set of character that when typed fills up the selected word.
+    void AutoCompSetFillUps(const wxString& characterSet);
+
+    // Should a single item auto-completion list automatically choose the item.
+    void AutoCompSetChooseSingle(bool chooseSingle);
+
+    // Retrieve whether a single item auto-completion list automatically choose the item.
+    bool AutoCompGetChooseSingle();
+
+    // Set whether case is significant when performing auto-completion searches.
+    void AutoCompSetIgnoreCase(bool ignoreCase);
+
+    // Retrieve state of ignore case flag.
+    bool AutoCompGetIgnoreCase();
+
+    // Set the number of spaces used for one level of indentation.
+    void SetIndent(int indentSize);
+
+    // Retrieve indentation size.
+    int GetIndent();
+
+    // Indentation will only use space characters if useTabs is false, otherwise
+    // it will use a combination of tabs and spaces.
+    void SetUseTabs(bool useTabs);
+
+    // Retrieve whether tabs will be used in indentation.
+    bool GetUseTabs();
+
+    // Change the indentation of a line to a number of columns.
+    void SetLineIndentation(int line, int indentSize);
+
+    // Retrieve the number of columns that a line is indented.
+    int GetLineIndentation(int line);
+
+    // Retrieve the position before the first non indentation character on a line.
+    int GetLineIndentPosition(int line);
+
+    // Retrieve the column number of a position, taking tab width into account.
+    int GetColumn(int pos);
+
+    // Show or hide the horizontal scroll bar.
+    void SetUseHorizontalScrollBar(bool show);
+
+    // Is the horizontal scroll bar visible?
+    bool GetUseHorizontalScrollBar();
+
+    // Show or hide indentation guides.
+    void SetIndentationGuides(bool show);
+
+    // Are the indentation guides visible?
+    bool GetIndentationGuides();
+
+    // Set the highlighted indentation guide column.
+    // 0 = no highlighted guide.
+    void SetHighlightGuide(int column);
+
+    // Get the highlighted indentation guide column.
+    int GetHighlightGuide();
+
+    // Get the position after the last visible characters on a line.
+    int GetLineEndPosition(int line);
+
+    // Get the code page used to interpret the bytes of the document as characters.
+    int GetCodePage();
+
+    // Get the foreground colour of the caret.
+    wxColour GetCaretForeground();
+
+    // In read-only mode?
+    bool GetReadOnly();
+
+    // Sets the position of the caret.
+    void SetCurrentPos(int pos);
+
+    // Sets the position that starts the selection - this becomes the anchor.
+    void SetSelectionStart(int pos);
+
+    // Returns the position at the start of the selection.
+    int GetSelectionStart();
+
+    // Sets the position that ends the selection - this becomes the currentPosition.
+    void SetSelectionEnd(int pos);
+
+    // Returns the position at the end of the selection.
+    int GetSelectionEnd();
+
+    // Sets the print magnification added to the point size of each style for printing.
+    void SetPrintMagnification(int magnification);
+
+    // Returns the print magnification.
+    int GetPrintMagnification();
+
+    // Modify colours when printing for clearer printed text.
+    void SetPrintColourMode(int mode);
+
+    // Returns the print colour mode.
+    int GetPrintColourMode();
+
+    // Find some text in the document.
+    int FindText(int minPos, int maxPos,
+                               const wxString& text,
+                               bool caseSensitive, bool wholeWord);
+
+    // On Windows will draw the document into a display context such as a printer.
+    int FormatRange(bool   doDraw,
+                               int    startPos,
+                               int    endPos,
+                               wxDC*  draw,
+                               wxDC*  target,  // Why does it use two? Can they be the same?
+                               wxRect renderRect,
+                               wxRect pageRect);
+
+    // Retrieve the line at the top of the display.
+    int GetFirstVisibleLine();
+
+    // Retrieve the contents of a line.
+    wxString GetLine(int line);
+
+    // Returns the number of lines in the document. There is always at least one.
+    int GetLineCount();
+
+    // Sets the size in pixels of the left margin.
+    void SetMarginLeft(int width);
+
+    // Returns the size in pixels of the left margin.
+    int GetMarginLeft();
+
+    // Sets the size in pixels of the right margin.
+    void SetMarginRight(int width);
+
+    // Returns the size in pixels of the right margin.
+    int GetMarginRight();
+
+    // Is the document different from when it was last saved?
+    bool GetModify();
+
+    // Select a range of text.
+    void SetSelection(int start, int end);
+
+    // Retrieve the selected text.
+    wxString GetSelectedText();
+
+    // Retrieve a range of text.
+    wxString GetTextRange(int startPos, int endPos);
+
+    // Draw the selection in normal style or with selection highlighted.
+    void HideSelection(bool normal);
+
+    // Retrieve the line containing a position.
+    int LineFromPosition(int pos);
+
+    // Retrieve the position at the start of a line.
+    int PositionFromLine(int line);
+
+    // Scroll horizontally and vertically.
+    void LineScroll(int columns, int lines);
+
+    // Ensure the caret is visible.
+    void EnsureCaretVisible();
+
+    // Replace the selected text with the argument text.
+    void ReplaceSelection(const wxString& text);
+
+    // Set to read only or read write.
+    void SetReadOnly(bool readOnly);
+
+    // Will a paste succeed?
+    bool CanPaste();
+
+    // Are there any undoable actions in the undo history.
+    bool CanUndo();
+
+    // Delete the undo history.
+    void EmptyUndoBuffer();
+
+    // Undo one action in the undo history.
+    void Undo();
+
+    // Cut the selection to the clipboard.
+    void Cut();
+
+    // Copy the selection to the clipboard.
+    void Copy();
+
+    // Paste the contents of the clipboard into the document replacing the selection.
+    void Paste();
+
+    // Clear the selection.
+    void Clear();
+
+    // Replace the contents of the document with the argument text.
+    void SetText(const wxString& text);
+
+    // Retrieve all the text in the document.
+    wxString GetText();
+
+    // Retrieve the number of characters in the document.
+    int GetTextLength();
+
+    // Set to overtype (true) or insert mode
+    void SetOvertype(bool overtype);
+
+    // Returns true if overtype mode is active otherwise false is returned.
+    bool GetOvertype();
+
+    // Show a call tip containing a definition near position pos.
+    void CallTipShow(int pos, const wxString& definition);
+
+    // Remove the call tip from the screen.
+    void CallTipCancel();
+
+    // Is there an active call tip?
+    bool CallTipActive();
+
+    // Retrieve the position where the caret was before displaying the call tip.
+    int CallTipPosAtStart();
+
+    // Highlight a segment of the definition.
+    void CallTipSetHighlight(int start, int end);
+
+    // Set the background colour for the call tip.
+    void CallTipSetBackground(const wxColour& back);
+
+    // Find the display line of a document line taking hidden lines into account.
+    int VisibleFromDocLine(int line);
+
+    // Find the document line of a display line taking hidden lines into account.
+    int DocLineFromVisible(int lineDisplay);
+
+    // Set the fold level of a line.
+    // This encodes an integer level along with flags indicating whether the
+    // line is a header and whether it is effectively white space.
+    void SetFoldLevel(int line, int level);
+
+    // Retrieve the fold level of a line.
+    int GetFoldLevel(int line);
+
+    // Find the last child line of a header line.
+    int GetLastChild(int line, int level);
+
+    // Find the parent line of a child line.
+    int GetFoldParent(int line);
+
+    // Make a range of lines visible.
+    void ShowLines(int lineStart, int lineEnd);
+
+    // Make a range of lines invisible.
+    void HideLines(int lineStart, int lineEnd);
+
+    // Is a line visible?
+    bool GetLineVisible(int line);
+
+    // Show the children of a header line.
+    void SetFoldExpanded(int line, bool expanded);
+
+    // Is a header line expanded?
+    bool GetFoldExpanded(int line);
+
+    // Switch a header line between expanded and contracted.
+    void ToggleFold(int line);
+
+    // Ensure a particular line is visible by expanding any header line hiding it.
+    void EnsureVisible(int line);
+
+    // Set some debugging options for folding
+    void SetFoldFlags(int flags);
+
+    // How many characters are on a line, not including end of line characters.
+    int LineLength(int line);
+
+    // Highlight the characters at two positions.
+    void BraceHighlight(int pos1, int pos2);
+
+    // Highlight the character at a position indicating there is no matching brace.
+    void BraceBadLight(int pos);
+
+    // Find the position of a matching brace or INVALID_POSITION if no match.
+    int BraceMatch(int pos);
+
+    // Are the end of line characters visible.
+    bool GetViewEOL();
+
+    // Make the end of line characters visible or invisible
+    void SetViewEOL(bool visible);
+
+    // Retrieve a pointer to the document object.
+    void* GetDocPointer();
+
+    // Change the document object used.
+    void SetDocPointer(void* docPointer);
+
+    // Set which document modification events are sent to the container.
+    void SetModEventMask(int mask);
+
+    // Retrieve the column number which text should be kept within.
+    int GetEdgeColumn();
+
+    // Set the column number of the edge.
+    // If text goes past the edge then it is highlighted.
+    void SetEdgeColumn(int column);
+
+    // Retrieve the edge highlight mode.
+    int GetEdgeMode();
+
+    // The edge may be displayed by a line (EDGE_LINE) or by highlighting text that
+    // goes beyond it (EDGE_BACKGROUND) or not displayed at all (EDGE_NONE).
+    void SetEdgeMode(int mode);
+
+    // Retrieve the colour used in edge indication.
+    wxColour GetEdgeColour();
+
+    // Change the colour used in edge indication.
+    void SetEdgeColour(const wxColour& edgeColour);
+
+    // Sets the current caret position to be the search anchor.
+    void SearchAnchor();
+
+    // Find some text starting at the search anchor.
+    int SearchNext(int flags, const wxString& text);
+
+    // Find some text starting at the search anchor and moving backwards.
+    int SearchPrev(int flags, const wxString& text);
+
+    // Set the way the line the caret is on is kept visible.
+    void SetCaretPolicy(int caretPolicy, int caretSlop);
+
+    // Retrieves the number of lines completely visible.
+    int LinesOnScreen();
+
+    // Set whether a pop up menu is displayed automatically when the user presses
+    // the wrong mouse button.
+    void UsePopUp(bool allowPopUp);
+
+    // Is the selection a rectangular. The alternative is the more common stream selection.
+    bool SelectionIsRectangle();
+
+    // Set the zoom level. This number of points is added to the size of all fonts.
+    // It may be positive to magnify or negative to reduce.
+    void SetZoom(int zoom);
+
+    // Retrieve the zoom level.
+    int GetZoom();
+
+    // Create a new document object.
+    // Starts with reference count of 1 and not selected into editor.
+    void* CreateDocument();
+
+    // Extend life of document.
+    void AddRefDocument(void* docPointer);
+
+    // Release a reference to the document, deleting document if it fades to black.
+    void ReleaseDocument(void* docPointer);
+
+    // Get which document modification events are sent to the container.
+    int GetModEventMask();
+
+    // Start notifying the container of all key presses and commands.
+    void StartRecord();
+
+    // Stop notifying the container of all key presses and commands.
+    void StopRecord();
+
+    // Set the lexing language of the document.
+    void SetLexer(int lexer);
+
+    // Retrieve the lexing language of the document.
+    int GetLexer();
+
+    // Colourise a segment of the document using the current lexing language.
+    void Colourise(int start, int end);
+
+    // Set up a value that may be used by a lexer for some optional feature.
+    void SetProperty(const wxString& key, const wxString& value);
+
+    // Set up the key words used by the lexer.
+    void SetKeyWords(int keywordSet, const wxString& keyWords);
+
+// END of generated section
+//----------------------------------------------------------------------
+// Others...
+
+
+    // Returns the line number of the line with the caret.
+    int GetCurrentLine();
+
+    // Extract style settings from a spec-string which is composed of one or
+    // more of the following comma separated elements:
+    //
+    //      bold                    turns on bold
+    //      italic                  turns on italics
+    //      fore:#RRGGBB            sets the foreground colour
+    //      back:#RRGGBB            sets the background colour
+    //      face:[facename]         sets the font face name to use
+    //      size:[num]              sets the font size in points
+    //      eol                     turns on eol filling
+    //      underline               turns on underlining
+    //
+    void StyleSetSpec(int styleNum, const wxString& spec);
+
+
+
+    // Set style size, face, bold, italic, and underline attributes from
+    // a wxFont's attributes.
+    void StyleSetFont(int styleNum, wxFont& font);
+
+
+
+    // Set all font style attributes at once.
+    void StyleSetFontAttr(int styleNum, int size,
+                          const wxString& faceName,
+                          bool bold, bool italic,
+                          bool underline);
+
+
+
+    // Perform one of the operations defined by the wxSTC_CMD_* constants.
+    void CmdKeyExecute(int cmd);
+
+
+
+    // Set the left and right margin in the edit area, measured in pixels.
+    void SetMargins(int left, int right);
+
+
+    // Retrieve the start and end positions of the current selection.
+#ifdef SWIG
+    void GetSelection(int* OUTPUT, int* OUTPUT);
+#else
+    void GetSelection(int* startPos, int* endPos);
+#endif
+
+    // Retrieve the point in the window where a position is displayed.
+    wxPoint PointFromPosition(int pos);
+
+//----------------------------------------------------------------------
+
+
+#ifndef SWIG
+private:
+    // Event handlers
+    void OnPaint(wxPaintEvent& evt);
+    void OnScrollWin(wxScrollWinEvent& evt);
+    void OnSize(wxSizeEvent& evt);
+    void OnMouseLeftDown(wxMouseEvent& evt);
+    void OnMouseMove(wxMouseEvent& evt);
+    void OnMouseLeftUp(wxMouseEvent& evt);
+    void OnMouseRightUp(wxMouseEvent& evt);
+    void OnChar(wxKeyEvent& evt);
+    void OnKeyDown(wxKeyEvent& evt);
+    void OnLoseFocus(wxFocusEvent& evt);
+    void OnGainFocus(wxFocusEvent& evt);
+    void OnSysColourChanged(wxSysColourChangedEvent& evt);
+    void OnEraseBackground(wxEraseEvent& evt);
+    void OnMenu(wxCommandEvent& evt);
+    void OnListBox(wxCommandEvent& evt);
+
+
+    // Turn notifications from Scintilla into events
+    void NotifyChange();
+    void NotifyParent(SCNotification* scn);
+
+    long SendMsg(int msg, long wp=0, long lp=0);
+
+private:
+    DECLARE_EVENT_TABLE()
+    DECLARE_CLASS(wxStyledTextCtrl)
+
+    ScintillaWX*        m_swx;
+    wxStopWatch         m_stopWatch;
+
+
+    friend class ScintillaWX;
+    friend class Platform;
+#endif
+};
+
+//----------------------------------------------------------------------
+
+class wxStyledTextEvent : public wxCommandEvent {
+public:
+    wxStyledTextEvent(wxEventType commandType=0, int id=0);
+    ~wxStyledTextEvent() {}
+
+    void SetPosition(int pos)        { m_position = pos; }
+    void SetKey(int k)               { m_key = k; }
+    void SetModifiers(int m)         { m_modifiers = m; }
+    void SetModificationType(int t)  { m_modificationType = t; }
+    void SetText(const char* t)      { m_text = t; }
+    void SetLength(int len)          { m_length = len; }
+    void SetLinesAdded(int num)      { m_linesAdded = num; }
+    void SetLine(int val)            { m_line = val; }
+    void SetFoldLevelNow(int val)    { m_foldLevelNow = val; }
+    void SetFoldLevelPrev(int val)   { m_foldLevelPrev = val; }
+    void SetMargin(int val)          { m_margin = val; }
+    void SetMessage(int val)         { m_message = val; }
+    void SetWParam(int val)          { m_wParam = val; }
+    void SetLParam(int val)          { m_lParam = val; }
+
+    int  GetPosition() const         { return m_position; }
+    int  GetKey()  const             { return m_key; }
+    int  GetModifiers() const        { return m_modifiers; }
+    int  GetModificationType() const { return m_modificationType; }
+    wxString GetText() const         { return m_text; }
+    int  GetLength() const           { return m_length; }
+    int  GetLinesAdded() const       { return m_linesAdded; }
+    int  GetLine() const             { return m_line; }
+    int  GetFoldLevelNow() const     { return m_foldLevelNow; }
+    int  GetFoldLevelPrev() const    { return m_foldLevelPrev; }
+    int  GetMargin() const           { return m_margin; }
+    int  GetMessage() const          { return m_message; }
+    int  GetWParam() const           { return m_wParam; }
+    int  GetLParam() const           { return m_lParam; }
+
+    bool GetShift() const;
+    bool GetControl() const;
+    bool GetAlt() const;
+
+    void CopyObject(wxObject& obj) const;
+
+#ifndef SWIG
+private:
+    DECLARE_DYNAMIC_CLASS(wxStyledTextEvent)
+
+    int  m_position;
+    int  m_key;
+    int  m_modifiers;
+
+    int  m_modificationType;    // wxEVT_STC_MODIFIED
+    wxString m_text;
+    int  m_length;
+    int  m_linesAdded;
+    int  m_line;
+    int  m_foldLevelNow;
+    int  m_foldLevelPrev;
+
+    int  m_margin;              // wxEVT_STC_MARGINCLICK
+
+    int  m_message;             // wxEVT_STC_MACRORECORD
+    int  m_wParam;
+    int  m_lParam;
+#endif
+};
+
+
+// Event types
+enum {
+    wxEVT_STC_CHANGE = 1650,
+    wxEVT_STC_STYLENEEDED,
+    wxEVT_STC_CHARADDED,
+    wxEVT_STC_UPDATEUI,
+    wxEVT_STC_SAVEPOINTREACHED,
+    wxEVT_STC_SAVEPOINTLEFT,
+    wxEVT_STC_ROMODIFYATTEMPT,
+    wxEVT_STC_DOUBLECLICK,
+    wxEVT_STC_MODIFIED,
+    wxEVT_STC_KEY,
+    wxEVT_STC_MACRORECORD,
+    wxEVT_STC_MARGINCLICK,
+    wxEVT_STC_NEEDSHOWN,
+    wxEVT_STC_POSCHANGED
+};
+
+
+#ifndef SWIG
+typedef void (wxEvtHandler::*wxStyledTextEventFunction)(wxStyledTextEvent&);
+
+#define EVT_STC_CHANGE(id, fn) { wxEVT_STC_CHANGE, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL },
+#define EVT_STC_STYLENEEDED(id, fn) { wxEVT_STC_STYLENEEDED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL },
+#define EVT_STC_CHARADDED(id, fn) { wxEVT_STC_CHARADDED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL },
+#define EVT_STC_UPDATEUI(id, fn) { wxEVT_STC_UPDATEUI, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL },
+#define EVT_STC_SAVEPOINTREACHED(id, fn) { wxEVT_STC_SAVEPOINTREACHED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL },
+#define EVT_STC_SAVEPOINTLEFT(id, fn) { wxEVT_STC_SAVEPOINTLEFT, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL },
+#define EVT_STC_ROMODIFYATTEMPT(id, fn) { wxEVT_STC_ROMODIFYATTEMPT, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL },
+#define EVT_STC_DOUBLECLICK(id, fn) { wxEVT_STC_DOUBLECLICK, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL },
+#define EVT_STC_MODIFIED(id, fn) { wxEVT_STC_MODIFIED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL },
+#define EVT_STC_KEY(id, fn) { wxEVT_STC_KEY, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL },
+#define EVT_STC_MACRORECORD(id, fn) { wxEVT_STC_MACRORECORD, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL },
+#define EVT_STC_MARGINCLICK(id, fn) { wxEVT_STC_MARGINCLICK, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL },
+#define EVT_STC_NEEDSHOWN(id, fn) { wxEVT_STC_NEEDSHOWN, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL },
+#define EVT_STC_POSCHANGED(id, fn) { wxEVT_STC_POSCHANGED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxStyledTextEventFunction) & fn, (wxObject *) NULL },
+
+#endif
+
+//----------------------------------------------------------------------
+//----------------------------------------------------------------------
+#endif
+
+
+
+ + diff --git a/wxPython/demo/wxHtmlWindow.py b/wxPython/demo/wxHtmlWindow.py index eb2aac73e3..e2e902d865 100644 --- a/wxPython/demo/wxHtmlWindow.py +++ b/wxPython/demo/wxHtmlWindow.py @@ -13,6 +13,12 @@ class MyHtmlWindow(wxHtmlWindow): def __init__(self, parent, id, log): wxHtmlWindow.__init__(self, parent, id) self.log = log + EVT_SCROLLWIN( self, self.OnScroll ) + + def OnScroll( self, event ): + print 'event.GetOrientation()',event.GetOrientation() + print 'event.GetPosition()',event.GetPosition() + event.Skip() def OnLinkClicked(self, linkinfo): diff --git a/wxPython/demo/wxListCtrl.py b/wxPython/demo/wxListCtrl.py index 666c60bdc4..6ac4ede2ba 100644 --- a/wxPython/demo/wxListCtrl.py +++ b/wxPython/demo/wxListCtrl.py @@ -76,7 +76,7 @@ class TestListCtrlPanel(wxPanel): wxToolTip_Enable(true) self.list.InsertColumn(0, "Artist") - self.list.InsertColumn(1, "Title") + self.list.InsertColumn(1, "Title", wxLIST_FORMAT_RIGHT) self.list.InsertColumn(2, "Genre") items = musicdata.items() for x in range(len(items)): @@ -90,7 +90,10 @@ class TestListCtrlPanel(wxPanel): self.list.SetColumnWidth(1, wxLIST_AUTOSIZE) ##self.list.SetColumnWidth(2, wxLIST_AUTOSIZE) - self.list.SetItemState(5, wxLIST_STATE_SELECTED, wxLIST_STATE_SELECTED) + self.list.SetItemState(25, wxLIST_STATE_SELECTED, wxLIST_STATE_SELECTED) + + #self.list.SetItemState(25, wxLIST_STATE_SELECTED, wxLIST_STATE_SELECTED) + #self.list.EnsureVisible(25) # show how to change the colour of an item item = self.list.GetItem(1) diff --git a/wxPython/demo/wxSplitterWindow.py b/wxPython/demo/wxSplitterWindow.py index 662975b5f8..fac9cbee57 100644 --- a/wxPython/demo/wxSplitterWindow.py +++ b/wxPython/demo/wxSplitterWindow.py @@ -9,9 +9,17 @@ class MySplitter(wxSplitterWindow): wxSplitterWindow.__init__(self, parent, ID) self.log = log EVT_SPLITTER_SASH_POS_CHANGED(self, self.GetId(), self.OnSashChanged) + EVT_SPLITTER_SASH_POS_CHANGING(self, self.GetId(), self.OnSashChanging) def OnSashChanged(self, evt): - self.log.WriteText("sash changed to " + str(evt.GetSashPosition())) + self.log.WriteText("sash changed to %s\n" % str(evt.GetSashPosition())) + # uncomment this to not allow the change + #evt.SetSashPosition(-1) + + def OnSashChanging(self, evt): + self.log.WriteText("sash changing to %s\n" % str(evt.GetSashPosition())) + # uncomment this to not allow the change + #evt.SetSashPosition(-1) #--------------------------------------------------------------------------- diff --git a/wxPython/demo/wxStyledTextCtrl_1.py b/wxPython/demo/wxStyledTextCtrl_1.py index 7fab856c7c..f7bf221259 100644 --- a/wxPython/demo/wxStyledTextCtrl_1.py +++ b/wxPython/demo/wxStyledTextCtrl_1.py @@ -113,15 +113,15 @@ def runTest(frame, nb, log): # now set some text to those styles... Normally this would be # done in an event handler that happens when text needs displayed. ed.StartStyling(98, 0xff) - ed.SetStyleFor(6, 1) # set style for 6 characters using style 1 + ed.SetStyling(6, 1) # set style for 6 characters using style 1 ed.StartStyling(190, 0xff) - ed.SetStyleFor(20, 2) + ed.SetStyling(20, 2) ed.StartStyling(310, 0xff) - ed.SetStyleFor(4, 3) - ed.SetStyleFor(2, 0) - ed.SetStyleFor(10, 4) + ed.SetStyling(4, 3) + ed.SetStyling(2, 0) + ed.SetStyling(10, 4) # line numbers in the margin @@ -146,16 +146,16 @@ def runTest(frame, nb, log): # and finally, an indicator or two ed.IndicatorSetStyle(0, wxSTC_INDIC_SQUIGGLE) - ed.IndicatorSetColour(0, wxRED) + ed.IndicatorSetForeground(0, wxRED) ed.IndicatorSetStyle(1, wxSTC_INDIC_DIAGONAL) - ed.IndicatorSetColour(1, wxBLUE) + ed.IndicatorSetForeground(1, wxBLUE) ed.IndicatorSetStyle(2, wxSTC_INDIC_STRIKE) - ed.IndicatorSetColour(2, wxRED) + ed.IndicatorSetForeground(2, wxRED) ed.StartStyling(836, wxSTC_INDICS_MASK) - ed.SetStyleFor(10, wxSTC_INDIC0_MASK) - ed.SetStyleFor(10, wxSTC_INDIC1_MASK) - ed.SetStyleFor(10, wxSTC_INDIC2_MASK | wxSTC_INDIC1_MASK) + ed.SetStyling(10, wxSTC_INDIC0_MASK) + ed.SetStyling(10, wxSTC_INDIC1_MASK) + ed.SetStyling(10, wxSTC_INDIC2_MASK | wxSTC_INDIC1_MASK) return ed diff --git a/wxPython/demo/wxStyledTextCtrl_2.py b/wxPython/demo/wxStyledTextCtrl_2.py index eb12474b01..585beb0d92 100644 --- a/wxPython/demo/wxStyledTextCtrl_2.py +++ b/wxPython/demo/wxStyledTextCtrl_2.py @@ -41,13 +41,13 @@ class PythonSTC(wxStyledTextCtrl): wxStyledTextCtrl.__init__(self, parent, ID) self.SetLexer(wxSTC_LEX_PYTHON) - self.SetKeywords(0, string.join(keyword.kwlist)) + self.SetKeyWords(0, string.join(keyword.kwlist)) self.SetProperty("fold", "1") self.SetProperty("tab.timmy.whinge.level", "1") self.SetMargins(0,0) - self.SetViewWhitespace(false) + self.SetViewWhiteSpace(false) #self.SetBufferedDraw(false) self.SetEdgeMode(wxSTC_EDGE_BACKGROUND) @@ -82,33 +82,33 @@ class PythonSTC(wxStyledTextCtrl): # Python styles # White space - self.StyleSetSpec(SCE_P_DEFAULT, "fore:#808080") + self.StyleSetSpec(wxSTC_P_DEFAULT, "fore:#808080") # Comment - self.StyleSetSpec(SCE_P_COMMENTLINE, "fore:#007F00,face:%(other)s" % faces) + self.StyleSetSpec(wxSTC_P_COMMENTLINE, "fore:#007F00,face:%(other)s" % faces) # Number - self.StyleSetSpec(SCE_P_NUMBER, "fore:#007F7F") + self.StyleSetSpec(wxSTC_P_NUMBER, "fore:#007F7F") # String - self.StyleSetSpec(SCE_P_STRING, "fore:#7F007F,italic,face:%(times)s" % faces) + self.StyleSetSpec(wxSTC_P_STRING, "fore:#7F007F,italic,face:%(times)s" % faces) # Single quoted string - self.StyleSetSpec(SCE_P_CHARACTER, "fore:#7F007F,italic,face:%(times)s" % faces) + self.StyleSetSpec(wxSTC_P_CHARACTER, "fore:#7F007F,italic,face:%(times)s" % faces) # Keyword - self.StyleSetSpec(SCE_P_WORD, "fore:#00007F,bold") + self.StyleSetSpec(wxSTC_P_WORD, "fore:#00007F,bold") # Triple quotes - self.StyleSetSpec(SCE_P_TRIPLE, "fore:#7F0000") + self.StyleSetSpec(wxSTC_P_TRIPLE, "fore:#7F0000") # Triple double quotes - self.StyleSetSpec(SCE_P_TRIPLEDOUBLE, "fore:#7F0000") + self.StyleSetSpec(wxSTC_P_TRIPLEDOUBLE, "fore:#7F0000") # Class name definition - self.StyleSetSpec(SCE_P_CLASSNAME, "fore:#0000FF,bold,underline") + self.StyleSetSpec(wxSTC_P_CLASSNAME, "fore:#0000FF,bold,underline") # Function or method name definition - self.StyleSetSpec(SCE_P_DEFNAME, "fore:#007F7F,bold") + self.StyleSetSpec(wxSTC_P_DEFNAME, "fore:#007F7F,bold") # Operators - self.StyleSetSpec(SCE_P_OPERATOR, "bold") + self.StyleSetSpec(wxSTC_P_OPERATOR, "bold") # Identifiers - #self.StyleSetSpec(SCE_P_IDENTIFIER, "bold")#,fore:#FF00FF") + #self.StyleSetSpec(wxSTC_P_IDENTIFIER, "bold")#,fore:#FF00FF") # Comment-blocks - self.StyleSetSpec(SCE_P_COMMENTBLOCK, "fore:#7F7F7F") + self.StyleSetSpec(wxSTC_P_COMMENTBLOCK, "fore:#7F7F7F") # End of line where string is not closed - self.StyleSetSpec(SCE_P_STRINGEOL, "fore:#000000,face:%(mono)s,back:#E0C0E0,eolfilled" % faces) + self.StyleSetSpec(wxSTC_P_STRINGEOL, "fore:#000000,face:%(mono)s,back:#E0C0E0,eolfilled" % faces) self.SetCaretForeground("BLUE") @@ -142,21 +142,21 @@ class PythonSTC(wxStyledTextCtrl): styleBefore = self.GetStyleAt(caretPos - 1) # check before - if charBefore and charBefore in "[]{}()" and ord(styleBefore) == SCE_P_OPERATOR: + if charBefore and chr(charBefore) in "[]{}()" and styleBefore == wxSTC_P_OPERATOR: braceAtCaret = caretPos - 1 # check after if braceAtCaret < 0: charAfter = self.GetCharAt(caretPos) styleAfter = self.GetStyleAt(caretPos) - if charAfter and charAfter in "[]{}()" and ord(styleAfter) == SCE_P_OPERATOR: + if charAfter and chr(charAfter) in "[]{}()" and styleAfter == wxSTC_P_OPERATOR: braceAtCaret = caretPos if braceAtCaret >= 0: braceOpposite = self.BraceMatch(braceAtCaret) if braceAtCaret != -1 and braceOpposite == -1: - self.BraceBadlight(braceAtCaret) + self.BraceBadLight(braceAtCaret) else: self.BraceHighlight(braceAtCaret, braceOpposite) #pt = self.PointFromPosition(braceOpposite) @@ -171,7 +171,7 @@ class PythonSTC(wxStyledTextCtrl): if evt.GetShift() and evt.GetControl(): self.FoldAll() else: - lineClicked = self.GetLineFromPos(evt.GetPosition()) + lineClicked = self.LineFromPosition(evt.GetPosition()) if self.GetFoldLevel(lineClicked) & wxSTC_FOLDLEVELHEADERFLAG: if evt.GetShift(): self.SetFoldExpanded(lineClicked, true) diff --git a/wxPython/demo/wxTextCtrl.py b/wxPython/demo/wxTextCtrl.py index 6537f2acc7..8936d34de4 100644 --- a/wxPython/demo/wxTextCtrl.py +++ b/wxPython/demo/wxTextCtrl.py @@ -20,7 +20,8 @@ class TestPanel(wxPanel): EVT_TEXT(self, 20, self.EvtText) wxStaticText(self, -1, "Multi-line", wxPoint(5, 75), wxSize(75, 20)) - t = wxTextCtrl(self, 30, "How does it work with a long line of text set in the control", wxPoint(80, 75), wxSize(200, 150), wxTE_MULTILINE) + t = wxTextCtrl(self, 30, "How does it work with a long line of text set in the control", + wxPoint(80, 75), wxSize(200, 150), wxTE_MULTILINE) t.SetInsertionPoint(0) EVT_TEXT(self, 30, self.EvtText) diff --git a/wxPython/demo/wxToolBar.py b/wxPython/demo/wxToolBar.py index 19a806d94f..e8c2e595b6 100644 --- a/wxPython/demo/wxToolBar.py +++ b/wxPython/demo/wxToolBar.py @@ -51,8 +51,10 @@ class TestToolBar(wxFrame): tb.AddSeparator() - tb.AddControl(wxComboBox(tb, -1, "", choices=["", "This", "is a", "wxComboBox"], + cbID = wxNewId() + tb.AddControl(wxComboBox(tb, cbID, "", choices=["", "This", "is a", "wxComboBox"], size=(150,-1), style=wxCB_DROPDOWN)) + EVT_COMBOBOX(self, cbID, self.OnCombo) tb.Realize() EVT_CLOSE(self, self.OnCloseWindow) @@ -67,6 +69,10 @@ class TestToolBar(wxFrame): def OnToolRClick(self, event): self.log.WriteText("tool %s right-clicked\n" % event.GetId()) + def OnCombo(self, event): + self.log.WriteText("combobox item selected: %s\n" % event.GetString()) + + #--------------------------------------------------------------------------- def runTest(frame, nb, log): diff --git a/wxPython/distrib/autobuild.py b/wxPython/distrib/autobuild.py index a0f4aa4061..edeade7f9a 100755 --- a/wxPython/distrib/autobuild.py +++ b/wxPython/distrib/autobuild.py @@ -145,7 +145,7 @@ FINAL=1 # #*#*#*#*#* Comment this out to allow upload... - #return + return logSeparator("Uploading to website...") do('python c:\\utils\\sendwxp.py %s' % destName) diff --git a/wxPython/distrib/wxPython.WSM b/wxPython/distrib/wxPython.WSM index ee3a2ce7cd..7c3c62fb2b 100644 Binary files a/wxPython/distrib/wxPython.WSM and b/wxPython/distrib/wxPython.WSM differ diff --git a/wxPython/distrib/wxPython.wse b/wxPython/distrib/wxPython.wse index 8a6274cc5a..f2c9114793 100644 --- a/wxPython/distrib/wxPython.wse +++ b/wxPython/distrib/wxPython.wse @@ -79,7 +79,7 @@ item: Remark end item: Set Variable Variable=PYTHONVER - Value=1.6 + Value=1.5 end item: Remark end diff --git a/wxPython/src/_extras.py b/wxPython/src/_extras.py index a3cd475a6c..1fe9d6980a 100644 --- a/wxPython/src/_extras.py +++ b/wxPython/src/_extras.py @@ -628,9 +628,6 @@ def EVT_LIST_SET_INFO(win, id, func): def EVT_LIST_ITEM_SELECTED(win, id, func): win.Connect(id, -1, wxEVT_COMMAND_LIST_ITEM_SELECTED, func) -def EVT_LIST_ITEM_ACTIVATED(win, id, func): - win.Connect(id, -1, wxEVT_COMMAND_LIST_ITEM_ACTIVATED, func) - def EVT_LIST_ITEM_DESELECTED(win, id, func): win.Connect(id, -1, wxEVT_COMMAND_LIST_ITEM_DESELECTED, func) @@ -649,6 +646,10 @@ def EVT_LIST_ITEM_RIGHT_CLICK(win, id, func): def EVT_LIST_ITEM_MIDDLE_CLICK(win, id, func): win.Connect(id, -1, wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK, func) +def EVT_LIST_ITEM_ACTIVATED(win, id, func): + win.Connect(id, -1, wxEVT_COMMAND_LIST_ITEM_ACTIVATED, func) + + #wxSplitterWindow diff --git a/wxPython/src/clip_dnd.i b/wxPython/src/clip_dnd.i index 8feb9e8786..6c3b014c8f 100644 --- a/wxPython/src/clip_dnd.i +++ b/wxPython/src/clip_dnd.i @@ -346,6 +346,7 @@ public: } size_t GetSize(); + //void *GetData(); %addmethods { PyObject* GetData() { diff --git a/wxPython/src/controls2.i b/wxPython/src/controls2.i index 7eae56869d..67278c97d0 100644 --- a/wxPython/src/controls2.i +++ b/wxPython/src/controls2.i @@ -281,7 +281,7 @@ public: #endif long GetTopItem(); long HitTest(const wxPoint& point, int& OUTPUT); - %name(InsertColumnWith)long InsertColumn(long col, wxListItem& info); + %name(InsertColumnInfo)long InsertColumn(long col, wxListItem& info); long InsertColumn(long col, const wxString& heading, int format = wxLIST_FORMAT_LEFT, int width = -1); diff --git a/wxPython/src/misc.i b/wxPython/src/misc.i index 6f0312e99e..99535614ae 100644 --- a/wxPython/src/misc.i +++ b/wxPython/src/misc.i @@ -333,7 +333,7 @@ enum wxRegionContain { class wxRegion { public: - wxRegion(); + wxRegion(long x=0, long y=0, long width=0, long height=0); ~wxRegion(); void Clear(); diff --git a/wxPython/src/msw/calendar.cpp b/wxPython/src/msw/calendar.cpp index c7fc372999..48e24335e7 100644 --- a/wxPython/src/msw/calendar.cpp +++ b/wxPython/src/msw/calendar.cpp @@ -1,5 +1,5 @@ /* - * FILE : msw/calendar.cpp + * FILE : src/msw/calendar.cpp * * This file was automatically generated by : * Simplified Wrapper and Interface Generator (SWIG) diff --git a/wxPython/src/msw/clip_dnd.cpp b/wxPython/src/msw/clip_dnd.cpp index d6b02ffde3..edff43c1ff 100644 --- a/wxPython/src/msw/clip_dnd.cpp +++ b/wxPython/src/msw/clip_dnd.cpp @@ -1,5 +1,5 @@ /* - * FILE : msw/clip_dnd.cpp + * FILE : src/msw/clip_dnd.cpp * * This file was automatically generated by : * Simplified Wrapper and Interface Generator (SWIG) diff --git a/wxPython/src/msw/cmndlgs.cpp b/wxPython/src/msw/cmndlgs.cpp index d5dc9c511d..a6e15fdc90 100644 --- a/wxPython/src/msw/cmndlgs.cpp +++ b/wxPython/src/msw/cmndlgs.cpp @@ -1,5 +1,5 @@ /* - * FILE : msw/cmndlgs.cpp + * FILE : src/msw/cmndlgs.cpp * * This file was automatically generated by : * Simplified Wrapper and Interface Generator (SWIG) diff --git a/wxPython/src/msw/controls.cpp b/wxPython/src/msw/controls.cpp index cb3027fb41..9904e6e92f 100644 --- a/wxPython/src/msw/controls.cpp +++ b/wxPython/src/msw/controls.cpp @@ -1,5 +1,5 @@ /* - * FILE : msw/controls.cpp + * FILE : src/msw/controls.cpp * * This file was automatically generated by : * Simplified Wrapper and Interface Generator (SWIG) diff --git a/wxPython/src/msw/controls2.cpp b/wxPython/src/msw/controls2.cpp index 3775636984..ed3e4dd2bd 100644 --- a/wxPython/src/msw/controls2.cpp +++ b/wxPython/src/msw/controls2.cpp @@ -1,5 +1,5 @@ /* - * FILE : msw/controls2.cpp + * FILE : src/msw/controls2.cpp * * This file was automatically generated by : * Simplified Wrapper and Interface Generator (SWIG) @@ -1970,6 +1970,14 @@ static PyObject *_wrap_wxListItem_m_width_get(PyObject *self, PyObject *args, Py return _resultobj; } +static void *SwigwxListEventTowxNotifyEvent(void *ptr) { + wxListEvent *src; + wxNotifyEvent *dest; + src = (wxListEvent *) ptr; + dest = (wxNotifyEvent *) src; + return (void *) dest; +} + static void *SwigwxListEventTowxCommandEvent(void *ptr) { wxListEvent *src; wxCommandEvent *dest; @@ -3862,8 +3870,8 @@ static PyObject *_wrap_wxListCtrl_HitTest(PyObject *self, PyObject *args, PyObje return _resultobj; } -#define wxListCtrl_InsertColumnWith(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertColumn(_swigarg0,_swigarg1)) -static PyObject *_wrap_wxListCtrl_InsertColumnWith(PyObject *self, PyObject *args, PyObject *kwargs) { +#define wxListCtrl_InsertColumnInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertColumn(_swigarg0,_swigarg1)) +static PyObject *_wrap_wxListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject * _resultobj; long _result; wxListCtrl * _arg0; @@ -3874,25 +3882,25 @@ static PyObject *_wrap_wxListCtrl_InsertColumnWith(PyObject *self, PyObject *arg char *_kwnames[] = { "self","col","info", NULL }; self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertColumnWith",_kwnames,&_argo0,&_arg1,&_argo2)) + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertColumnInfo",_kwnames,&_argo0,&_arg1,&_argo2)) return NULL; if (_argo0) { if (_argo0 == Py_None) { _arg0 = NULL; } else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumnWith. Expected _wxListCtrl_p."); + PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumnInfo. Expected _wxListCtrl_p."); return NULL; } } if (_argo2) { if (_argo2 == Py_None) { _arg2 = NULL; } else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { - PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_InsertColumnWith. Expected _wxListItem_p."); + PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_InsertColumnInfo. Expected _wxListItem_p."); return NULL; } } { wxPy_BEGIN_ALLOW_THREADS; - _result = (long )wxListCtrl_InsertColumnWith(_arg0,_arg1,*_arg2); + _result = (long )wxListCtrl_InsertColumnInfo(_arg0,_arg1,*_arg2); wxPy_END_ALLOW_THREADS; } _resultobj = Py_BuildValue("l",_result); @@ -7871,7 +7879,7 @@ static PyMethodDef controls2cMethods[] = { { "wxListCtrl_InsertStringItem", (PyCFunction) _wrap_wxListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, { "wxListCtrl_InsertItem", (PyCFunction) _wrap_wxListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, { "wxListCtrl_InsertColumn", (PyCFunction) _wrap_wxListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, - { "wxListCtrl_InsertColumnWith", (PyCFunction) _wrap_wxListCtrl_InsertColumnWith, METH_VARARGS | METH_KEYWORDS }, + { "wxListCtrl_InsertColumnInfo", (PyCFunction) _wrap_wxListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, { "wxListCtrl_HitTest", (PyCFunction) _wrap_wxListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, { "wxListCtrl_GetTopItem", (PyCFunction) _wrap_wxListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, { "wxListCtrl_SetTextColour", (PyCFunction) _wrap_wxListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, @@ -8038,6 +8046,8 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { { "_wxCursor","_class_wxCursor",0}, { "_wxNotifyEvent","_class_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, { "_wxNotifyEvent","_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, + { "_wxNotifyEvent","_class_wxListEvent",SwigwxListEventTowxNotifyEvent}, + { "_wxNotifyEvent","_wxListEvent",SwigwxListEventTowxNotifyEvent}, { "_wxNotifyEvent","_class_wxNotifyEvent",0}, { "_wxPyTreeCtrl","_class_wxPyTreeCtrl",0}, { "_wxMask","_class_wxMask",0}, @@ -8132,6 +8142,8 @@ static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0}, { "_class_wxNotifyEvent","_class_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, { "_class_wxNotifyEvent","_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, + { "_class_wxNotifyEvent","_class_wxListEvent",SwigwxListEventTowxNotifyEvent}, + { "_class_wxNotifyEvent","_wxListEvent",SwigwxListEventTowxNotifyEvent}, { "_class_wxNotifyEvent","_wxNotifyEvent",0}, { "_class_wxValidator","_wxValidator",0}, { "_class_wxPyEvent","_wxPyEvent",0}, diff --git a/wxPython/src/msw/controls2.py b/wxPython/src/msw/controls2.py index cc494e055b..6acc423c61 100644 --- a/wxPython/src/msw/controls2.py +++ b/wxPython/src/msw/controls2.py @@ -219,7 +219,7 @@ class wxListItem(wxListItemPtr): -class wxListEventPtr(wxCommandEventPtr): +class wxListEventPtr(wxNotifyEventPtr): def __init__(self,this): self.this = this self.thisown = 0 @@ -416,8 +416,8 @@ class wxListCtrlPtr(wxControlPtr): def HitTest(self, *_args, **_kwargs): val = apply(controls2c.wxListCtrl_HitTest,(self,) + _args, _kwargs) return val - def InsertColumnWith(self, *_args, **_kwargs): - val = apply(controls2c.wxListCtrl_InsertColumnWith,(self,) + _args, _kwargs) + def InsertColumnInfo(self, *_args, **_kwargs): + val = apply(controls2c.wxListCtrl_InsertColumnInfo,(self,) + _args, _kwargs) return val def InsertColumn(self, *_args, **_kwargs): val = apply(controls2c.wxListCtrl_InsertColumn,(self,) + _args, _kwargs) diff --git a/wxPython/src/msw/events.cpp b/wxPython/src/msw/events.cpp index a99d270ec9..47edfaf2de 100644 --- a/wxPython/src/msw/events.cpp +++ b/wxPython/src/msw/events.cpp @@ -1,5 +1,5 @@ /* - * FILE : msw/events.cpp + * FILE : src/msw/events.cpp * * This file was automatically generated by : * Simplified Wrapper and Interface Generator (SWIG) diff --git a/wxPython/src/msw/frames.cpp b/wxPython/src/msw/frames.cpp index 0a9fa6b354..3edef79eff 100644 --- a/wxPython/src/msw/frames.cpp +++ b/wxPython/src/msw/frames.cpp @@ -1,5 +1,5 @@ /* - * FILE : msw/frames.cpp + * FILE : src/msw/frames.cpp * * This file was automatically generated by : * Simplified Wrapper and Interface Generator (SWIG) diff --git a/wxPython/src/msw/gdi.cpp b/wxPython/src/msw/gdi.cpp index 78f2627974..450ae3ea02 100644 --- a/wxPython/src/msw/gdi.cpp +++ b/wxPython/src/msw/gdi.cpp @@ -1,5 +1,5 @@ /* - * FILE : msw/gdi.cpp + * FILE : src/msw/gdi.cpp * * This file was automatically generated by : * Simplified Wrapper and Interface Generator (SWIG) diff --git a/wxPython/src/msw/grid.cpp b/wxPython/src/msw/grid.cpp index b8d217b443..7f5d674f70 100644 --- a/wxPython/src/msw/grid.cpp +++ b/wxPython/src/msw/grid.cpp @@ -1,5 +1,5 @@ /* - * FILE : msw/grid.cpp + * FILE : src/msw/grid.cpp * * This file was automatically generated by : * Simplified Wrapper and Interface Generator (SWIG) diff --git a/wxPython/src/msw/html.cpp b/wxPython/src/msw/html.cpp index 7b1cd33dba..26ccc9bb7d 100644 --- a/wxPython/src/msw/html.cpp +++ b/wxPython/src/msw/html.cpp @@ -1,5 +1,5 @@ /* - * FILE : msw/html.cpp + * FILE : src/msw/html.cpp * * This file was automatically generated by : * Simplified Wrapper and Interface Generator (SWIG) diff --git a/wxPython/src/msw/htmlhelp.cpp b/wxPython/src/msw/htmlhelp.cpp index b6f7db3e79..a4dace96dc 100644 --- a/wxPython/src/msw/htmlhelp.cpp +++ b/wxPython/src/msw/htmlhelp.cpp @@ -1,5 +1,5 @@ /* - * FILE : msw/htmlhelp.cpp + * FILE : src/msw/htmlhelp.cpp * * This file was automatically generated by : * Simplified Wrapper and Interface Generator (SWIG) diff --git a/wxPython/src/msw/image.cpp b/wxPython/src/msw/image.cpp index bece860954..bbd2ad6a15 100644 --- a/wxPython/src/msw/image.cpp +++ b/wxPython/src/msw/image.cpp @@ -1,5 +1,5 @@ /* - * FILE : msw/image.cpp + * FILE : src/msw/image.cpp * * This file was automatically generated by : * Simplified Wrapper and Interface Generator (SWIG) diff --git a/wxPython/src/msw/mdi.cpp b/wxPython/src/msw/mdi.cpp index d69515b096..c414b5f1e9 100644 --- a/wxPython/src/msw/mdi.cpp +++ b/wxPython/src/msw/mdi.cpp @@ -1,5 +1,5 @@ /* - * FILE : msw/mdi.cpp + * FILE : src/msw/mdi.cpp * * This file was automatically generated by : * Simplified Wrapper and Interface Generator (SWIG) diff --git a/wxPython/src/msw/misc.cpp b/wxPython/src/msw/misc.cpp index 3d32738605..6b17f4a814 100644 --- a/wxPython/src/msw/misc.cpp +++ b/wxPython/src/msw/misc.cpp @@ -1,5 +1,5 @@ /* - * FILE : msw/misc.cpp + * FILE : src/msw/misc.cpp * * This file was automatically generated by : * Simplified Wrapper and Interface Generator (SWIG) @@ -3070,19 +3070,23 @@ static PyObject *_wrap_wxLayoutConstraints_width_get(PyObject *self, PyObject *a return _resultobj; } -#define new_wxRegion() (new wxRegion()) +#define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) static PyObject *_wrap_new_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject * _resultobj; wxRegion * _result; - char *_kwnames[] = { NULL }; + long _arg0 = (long ) 0; + long _arg1 = (long ) 0; + long _arg2 = (long ) 0; + long _arg3 = (long ) 0; + char *_kwnames[] = { "x","y","width","height", NULL }; char _ptemp[128]; self = self; - if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxRegion",_kwnames)) + if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|llll:new_wxRegion",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) return NULL; { wxPy_BEGIN_ALLOW_THREADS; - _result = (wxRegion *)new_wxRegion(); + _result = (wxRegion *)new_wxRegion(_arg0,_arg1,_arg2,_arg3); wxPy_END_ALLOW_THREADS; } if (_result) { diff --git a/wxPython/src/msw/misc2.cpp b/wxPython/src/msw/misc2.cpp index a0eb75339a..5f3407dee8 100644 --- a/wxPython/src/msw/misc2.cpp +++ b/wxPython/src/msw/misc2.cpp @@ -1,5 +1,5 @@ /* - * FILE : msw/misc2.cpp + * FILE : src/msw/misc2.cpp * * This file was automatically generated by : * Simplified Wrapper and Interface Generator (SWIG) diff --git a/wxPython/src/msw/printfw.cpp b/wxPython/src/msw/printfw.cpp index af0e316b17..b61c2601e1 100644 --- a/wxPython/src/msw/printfw.cpp +++ b/wxPython/src/msw/printfw.cpp @@ -1,5 +1,5 @@ /* - * FILE : msw/printfw.cpp + * FILE : src/msw/printfw.cpp * * This file was automatically generated by : * Simplified Wrapper and Interface Generator (SWIG) diff --git a/wxPython/src/msw/sizers.cpp b/wxPython/src/msw/sizers.cpp index 2ac7e253ab..5c93701808 100644 --- a/wxPython/src/msw/sizers.cpp +++ b/wxPython/src/msw/sizers.cpp @@ -1,5 +1,5 @@ /* - * FILE : msw/sizers.cpp + * FILE : src/msw/sizers.cpp * * This file was automatically generated by : * Simplified Wrapper and Interface Generator (SWIG) diff --git a/wxPython/src/msw/stattool.cpp b/wxPython/src/msw/stattool.cpp index 053b39df34..86aa0b4976 100644 --- a/wxPython/src/msw/stattool.cpp +++ b/wxPython/src/msw/stattool.cpp @@ -1,5 +1,5 @@ /* - * FILE : msw/stattool.cpp + * FILE : src/msw/stattool.cpp * * This file was automatically generated by : * Simplified Wrapper and Interface Generator (SWIG) diff --git a/wxPython/src/msw/utils.cpp b/wxPython/src/msw/utils.cpp index a2a0757760..c594f0632a 100644 --- a/wxPython/src/msw/utils.cpp +++ b/wxPython/src/msw/utils.cpp @@ -1,5 +1,5 @@ /* - * FILE : msw/utils.cpp + * FILE : src/msw/utils.cpp * * This file was automatically generated by : * Simplified Wrapper and Interface Generator (SWIG) diff --git a/wxPython/src/msw/windows2.cpp b/wxPython/src/msw/windows2.cpp index fe250ec86a..110282526d 100644 --- a/wxPython/src/msw/windows2.cpp +++ b/wxPython/src/msw/windows2.cpp @@ -1,5 +1,5 @@ /* - * FILE : msw/windows2.cpp + * FILE : src/msw/windows2.cpp * * This file was automatically generated by : * Simplified Wrapper and Interface Generator (SWIG) diff --git a/wxPython/src/msw/windows3.cpp b/wxPython/src/msw/windows3.cpp index 5916ede1a2..ec6e100e57 100644 --- a/wxPython/src/msw/windows3.cpp +++ b/wxPython/src/msw/windows3.cpp @@ -1,5 +1,5 @@ /* - * FILE : msw/windows3.cpp + * FILE : src/msw/windows3.cpp * * This file was automatically generated by : * Simplified Wrapper and Interface Generator (SWIG) diff --git a/wxPython/src/msw/wx.cpp b/wxPython/src/msw/wx.cpp index e9301c6587..f94b452d71 100644 --- a/wxPython/src/msw/wx.cpp +++ b/wxPython/src/msw/wx.cpp @@ -1,5 +1,5 @@ /* - * FILE : msw/wx.cpp + * FILE : src/msw/wx.cpp * * This file was automatically generated by : * Simplified Wrapper and Interface Generator (SWIG) diff --git a/wxPython/src/msw/wx.py b/wxPython/src/msw/wx.py index 8c47407d3c..c1bf5fc1f2 100644 --- a/wxPython/src/msw/wx.py +++ b/wxPython/src/msw/wx.py @@ -1467,9 +1467,6 @@ def EVT_LIST_SET_INFO(win, id, func): def EVT_LIST_ITEM_SELECTED(win, id, func): win.Connect(id, -1, wxEVT_COMMAND_LIST_ITEM_SELECTED, func) -def EVT_LIST_ITEM_ACTIVATED(win, id, func): - win.Connect(id, -1, wxEVT_COMMAND_LIST_ITEM_ACTIVATED, func) - def EVT_LIST_ITEM_DESELECTED(win, id, func): win.Connect(id, -1, wxEVT_COMMAND_LIST_ITEM_DESELECTED, func) @@ -1488,6 +1485,10 @@ def EVT_LIST_ITEM_RIGHT_CLICK(win, id, func): def EVT_LIST_ITEM_MIDDLE_CLICK(win, id, func): win.Connect(id, -1, wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK, func) +def EVT_LIST_ITEM_ACTIVATED(win, id, func): + win.Connect(id, -1, wxEVT_COMMAND_LIST_ITEM_ACTIVATED, func) + + #wxSplitterWindow diff --git a/wxPython/src/windows.i b/wxPython/src/windows.i index e5e7c12050..b500db939c 100644 --- a/wxPython/src/windows.i +++ b/wxPython/src/windows.i @@ -428,7 +428,6 @@ public: // " }; -//%clear int* x, int* y;