/*
 * Module code.
 *
 * Generated by SIP 4.19.3
 */

#include "sipAPIktexteditor.h"

#line 30 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/markinterface.sip"
#include <ktexteditor/markinterface.h>
#line 12 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"



/* Call the instance's destructor. */
extern "C" {static void release_KTextEditor_Mark(void *, int);}
static void release_KTextEditor_Mark(void *sipCppV, int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast< ::KTextEditor::Mark *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KTextEditor_Mark(void *, SIP_SSIZE_T, const void *);}
static void assign_KTextEditor_Mark(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast< ::KTextEditor::Mark *>(sipDst)[sipDstIdx] = *reinterpret_cast<const  ::KTextEditor::Mark *>(sipSrc);
}


extern "C" {static void *array_KTextEditor_Mark(SIP_SSIZE_T);}
static void *array_KTextEditor_Mark(SIP_SSIZE_T sipNrElem)
{
    return new  ::KTextEditor::Mark[sipNrElem];
}


extern "C" {static void *copy_KTextEditor_Mark(const void *, SIP_SSIZE_T);}
static void *copy_KTextEditor_Mark(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new  ::KTextEditor::Mark(reinterpret_cast<const  ::KTextEditor::Mark *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_KTextEditor_Mark(sipSimpleWrapper *);}
static void dealloc_KTextEditor_Mark(sipSimpleWrapper *sipSelf)
{
    if (sipIsOwnedByPython(sipSelf))
    {
        release_KTextEditor_Mark(sipGetAddress(sipSelf), 0);
    }
}


extern "C" {static void *init_type_KTextEditor_Mark(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KTextEditor_Mark(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
     ::KTextEditor::Mark *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new  ::KTextEditor::Mark();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const  ::KTextEditor::Mark* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KTextEditor_Mark, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new  ::KTextEditor::Mark(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static PyObject *varget_KTextEditor_Mark_line(void *, PyObject *, PyObject *);}
static PyObject *varget_KTextEditor_Mark_line(void *sipSelf, PyObject *, PyObject *)
{
    int sipVal;
     ::KTextEditor::Mark *sipCpp = reinterpret_cast< ::KTextEditor::Mark *>(sipSelf);

    sipVal = sipCpp->line;

    return SIPLong_FromLong(sipVal);
}


extern "C" {static int varset_KTextEditor_Mark_line(void *, PyObject *, PyObject *);}
static int varset_KTextEditor_Mark_line(void *sipSelf, PyObject *sipPy, PyObject *)
{
    int sipVal;
     ::KTextEditor::Mark *sipCpp = reinterpret_cast< ::KTextEditor::Mark *>(sipSelf);

    sipVal = (int)SIPLong_AsLong(sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    sipCpp->line = sipVal;

    return 0;
}


extern "C" {static PyObject *varget_KTextEditor_Mark_type(void *, PyObject *, PyObject *);}
static PyObject *varget_KTextEditor_Mark_type(void *sipSelf, PyObject *, PyObject *)
{
     ::uint sipVal;
     ::KTextEditor::Mark *sipCpp = reinterpret_cast< ::KTextEditor::Mark *>(sipSelf);

    sipVal = sipCpp->type;

    return PyLong_FromUnsignedLong(sipVal);
}


extern "C" {static int varset_KTextEditor_Mark_type(void *, PyObject *, PyObject *);}
static int varset_KTextEditor_Mark_type(void *sipSelf, PyObject *sipPy, PyObject *)
{
     ::uint sipVal;
     ::KTextEditor::Mark *sipCpp = reinterpret_cast< ::KTextEditor::Mark *>(sipSelf);

    sipVal = (uint)sipLong_AsUnsignedLong(sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    sipCpp->type = sipVal;

    return 0;
}

sipVariableDef variables_KTextEditor_Mark[] = {
    {InstanceVariable, sipName_line, (PyMethodDef *)varget_KTextEditor_Mark_line, (PyMethodDef *)varset_KTextEditor_Mark_line, NULL, NULL},
    {InstanceVariable, sipName_type, (PyMethodDef *)varget_KTextEditor_Mark_type, (PyMethodDef *)varset_KTextEditor_Mark_type, NULL, NULL},
};


static pyqt4ClassPluginDef plugin_KTextEditor_Mark = {
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_ktexteditor_KTextEditor_Mark = {
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__Mark,
        {0},
        &plugin_KTextEditor_Mark
    },
    {
        sipNameNr_Mark,
        {1, 255, 0},
        0, 0,
        0, 0,
        2, variables_KTextEditor_Mark,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KTextEditor_Mark,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_Mark,
    assign_KTextEditor_Mark,
    array_KTextEditor_Mark,
    copy_KTextEditor_Mark,
    release_KTextEditor_Mark,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 25 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/loadsavefiltercheckplugin.sip"
#include <ktexteditor/loadsavefiltercheckplugin.h>
#line 213 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"

#line 29 "/usr/share/sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 217 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/document.sip"
#include <ktexteditor/document.h>

#include <ktexteditor/modificationinterface.h>
#include <ktexteditor/markinterface.h>
#include <ktexteditor/searchinterface.h>
#include <ktexteditor/sessionconfiginterface.h>
#include <ktexteditor/smartinterface.h>
#include <ktexteditor/templateinterface.h>
#include <ktexteditor/variableinterface.h>
#include <ktexteditor/movinginterface.h>
#include <ktexteditor/annotationinterface.h>
#include <ktexteditor/highlightinterface.h>
#include <ktexteditor/configinterface.h>
#include <ktexteditor/modeinterface.h>
#include <ktexteditor/sessionconfiginterface.h>
#include <ktexteditor/recoveryinterface.h>

#line 236 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 239 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 368 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 242 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 351 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 245 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 265 "/usr/share/sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 248 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 251 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 32 "/usr/share/sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 254 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 257 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 115 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 260 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 263 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 266 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 269 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 272 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"


class sipKTextEditor_LoadSaveFilterCheckPlugin : public  ::KTextEditor::LoadSaveFilterCheckPlugin
{
public:
    sipKTextEditor_LoadSaveFilterCheckPlugin( ::QObject*);
    virtual ~sipKTextEditor_LoadSaveFilterCheckPlugin();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void postLoadFilter( ::KTextEditor::Document*);
    bool postSaveFilterCheck( ::KTextEditor::Document*,bool);
    bool preSavePostDialogFilterCheck( ::KTextEditor::Document*);
    bool event( ::QEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    void timerEvent( ::QTimerEvent*);
    void childEvent( ::QChildEvent*);
    void customEvent( ::QEvent*);
    void connectNotify(const char*);
    void disconnectNotify(const char*);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKTextEditor_LoadSaveFilterCheckPlugin(const sipKTextEditor_LoadSaveFilterCheckPlugin &);
    sipKTextEditor_LoadSaveFilterCheckPlugin &operator = (const sipKTextEditor_LoadSaveFilterCheckPlugin &);

    char sipPyMethods[10];
};

sipKTextEditor_LoadSaveFilterCheckPlugin::sipKTextEditor_LoadSaveFilterCheckPlugin( ::QObject*a0):  ::KTextEditor::LoadSaveFilterCheckPlugin(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTextEditor_LoadSaveFilterCheckPlugin::~sipKTextEditor_LoadSaveFilterCheckPlugin()
{
    sipInstanceDestroyed(sipPySelf);
}

const QMetaObject *sipKTextEditor_LoadSaveFilterCheckPlugin::metaObject() const
{
    return sip_ktexteditor_qt_metaobject(sipPySelf,sipType_KTextEditor_LoadSaveFilterCheckPlugin);
}

int sipKTextEditor_LoadSaveFilterCheckPlugin::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id =  ::KTextEditor::LoadSaveFilterCheckPlugin::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_ktexteditor_qt_metacall(sipPySelf,sipType_KTextEditor_LoadSaveFilterCheckPlugin,_c,_id,_a);

    return _id;
}

void *sipKTextEditor_LoadSaveFilterCheckPlugin::qt_metacast(const char *_clname)
{
    return (sip_ktexteditor_qt_metacast(sipPySelf, sipType_KTextEditor_LoadSaveFilterCheckPlugin, _clname)) ? this :  ::KTextEditor::LoadSaveFilterCheckPlugin::qt_metacast(_clname);
}

void sipKTextEditor_LoadSaveFilterCheckPlugin::postLoadFilter( ::KTextEditor::Document*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,sipName_LoadSaveFilterCheckPlugin,sipName_postLoadFilter);

    if (!sipMeth)
        return;

    extern void sipVH_ktexteditor_151(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KTextEditor::Document*);

    sipVH_ktexteditor_151(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_LoadSaveFilterCheckPlugin::postSaveFilterCheck( ::KTextEditor::Document*a0,bool a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,sipName_LoadSaveFilterCheckPlugin,sipName_postSaveFilterCheck);

    if (!sipMeth)
        return 0;

    extern bool sipVH_ktexteditor_150(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KTextEditor::Document*,bool);

    return sipVH_ktexteditor_150(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipKTextEditor_LoadSaveFilterCheckPlugin::preSavePostDialogFilterCheck( ::KTextEditor::Document*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,sipName_LoadSaveFilterCheckPlugin,sipName_preSavePostDialogFilterCheck);

    if (!sipMeth)
        return 0;

    extern bool sipVH_ktexteditor_91(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KTextEditor::Document*);

    return sipVH_ktexteditor_91(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_LoadSaveFilterCheckPlugin::event( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return  ::KTextEditor::LoadSaveFilterCheckPlugin::event(a0);

    extern bool sipVH_ktexteditor_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    return sipVH_ktexteditor_5(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_LoadSaveFilterCheckPlugin::eventFilter( ::QObject*a0, ::QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return  ::KTextEditor::LoadSaveFilterCheckPlugin::eventFilter(a0,a1);

    extern bool sipVH_ktexteditor_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_ktexteditor_4(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

void sipKTextEditor_LoadSaveFilterCheckPlugin::timerEvent( ::QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
         ::KTextEditor::LoadSaveFilterCheckPlugin::timerEvent(a0);
        return;
    }

    extern void sipVH_ktexteditor_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_ktexteditor_3(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_LoadSaveFilterCheckPlugin::childEvent( ::QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
         ::KTextEditor::LoadSaveFilterCheckPlugin::childEvent(a0);
        return;
    }

    extern void sipVH_ktexteditor_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_ktexteditor_2(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_LoadSaveFilterCheckPlugin::customEvent( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
         ::KTextEditor::LoadSaveFilterCheckPlugin::customEvent(a0);
        return;
    }

    extern void sipVH_ktexteditor_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_ktexteditor_1(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_LoadSaveFilterCheckPlugin::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
         ::KTextEditor::LoadSaveFilterCheckPlugin::connectNotify(a0);
        return;
    }

    extern void sipVH_ktexteditor_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    sipVH_ktexteditor_0(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_LoadSaveFilterCheckPlugin::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
         ::KTextEditor::LoadSaveFilterCheckPlugin::disconnectNotify(a0);
        return;
    }

    extern void sipVH_ktexteditor_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    sipVH_ktexteditor_0(sipGILState, 0, sipPySelf, sipMeth, a0);
}


extern "C" {static PyObject *meth_KTextEditor_LoadSaveFilterCheckPlugin_preSavePostDialogFilterCheck(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_LoadSaveFilterCheckPlugin_preSavePostDialogFilterCheck(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
         ::KTextEditor::Document* a0;
         ::KTextEditor::LoadSaveFilterCheckPlugin *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_LoadSaveFilterCheckPlugin, &sipCpp, sipType_KTextEditor_Document, &a0))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_LoadSaveFilterCheckPlugin, sipName_preSavePostDialogFilterCheck);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->preSavePostDialogFilterCheck(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_LoadSaveFilterCheckPlugin, sipName_preSavePostDialogFilterCheck, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_LoadSaveFilterCheckPlugin_postSaveFilterCheck(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_LoadSaveFilterCheckPlugin_postSaveFilterCheck(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
         ::KTextEditor::Document* a0;
        bool a1;
         ::KTextEditor::LoadSaveFilterCheckPlugin *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8b", &sipSelf, sipType_KTextEditor_LoadSaveFilterCheckPlugin, &sipCpp, sipType_KTextEditor_Document, &a0, &a1))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_LoadSaveFilterCheckPlugin, sipName_postSaveFilterCheck);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->postSaveFilterCheck(a0,a1);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_LoadSaveFilterCheckPlugin, sipName_postSaveFilterCheck, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_LoadSaveFilterCheckPlugin_postLoadFilter(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_LoadSaveFilterCheckPlugin_postLoadFilter(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
         ::KTextEditor::Document* a0;
         ::KTextEditor::LoadSaveFilterCheckPlugin *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_LoadSaveFilterCheckPlugin, &sipCpp, sipType_KTextEditor_Document, &a0))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_LoadSaveFilterCheckPlugin, sipName_postLoadFilter);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->postLoadFilter(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_LoadSaveFilterCheckPlugin, sipName_postLoadFilter, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_KTextEditor_LoadSaveFilterCheckPlugin(void *, const sipTypeDef *);}
static void *cast_KTextEditor_LoadSaveFilterCheckPlugin(void *sipCppV, const sipTypeDef *targetType)
{
     ::KTextEditor::LoadSaveFilterCheckPlugin *sipCpp = reinterpret_cast< ::KTextEditor::LoadSaveFilterCheckPlugin *>(sipCppV);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* Call the instance's destructor. */
extern "C" {static void release_KTextEditor_LoadSaveFilterCheckPlugin(void *, int);}
static void release_KTextEditor_LoadSaveFilterCheckPlugin(void *sipCppV, int)
{
     ::KTextEditor::LoadSaveFilterCheckPlugin *sipCpp = reinterpret_cast< ::KTextEditor::LoadSaveFilterCheckPlugin *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KTextEditor_LoadSaveFilterCheckPlugin(sipSimpleWrapper *);}
static void dealloc_KTextEditor_LoadSaveFilterCheckPlugin(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipKTextEditor_LoadSaveFilterCheckPlugin *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_KTextEditor_LoadSaveFilterCheckPlugin(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


extern "C" {static void *init_type_KTextEditor_LoadSaveFilterCheckPlugin(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KTextEditor_LoadSaveFilterCheckPlugin(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipKTextEditor_LoadSaveFilterCheckPlugin *sipCpp = 0;

    {
         ::QObject* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_LoadSaveFilterCheckPlugin(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KTextEditor_LoadSaveFilterCheckPlugin[] = {{9, 0, 1}};


static PyMethodDef methods_KTextEditor_LoadSaveFilterCheckPlugin[] = {
    {SIP_MLNAME_CAST(sipName_postLoadFilter), meth_KTextEditor_LoadSaveFilterCheckPlugin_postLoadFilter, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_postSaveFilterCheck), meth_KTextEditor_LoadSaveFilterCheckPlugin_postSaveFilterCheck, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_preSavePostDialogFilterCheck), meth_KTextEditor_LoadSaveFilterCheckPlugin_preSavePostDialogFilterCheck, METH_VARARGS, NULL}
};


static pyqt4ClassPluginDef plugin_KTextEditor_LoadSaveFilterCheckPlugin = {
    & ::KTextEditor::LoadSaveFilterCheckPlugin::staticMetaObject,
    0,
    0
};


sipClassTypeDef sipTypeDef_ktexteditor_KTextEditor_LoadSaveFilterCheckPlugin = {
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__LoadSaveFilterCheckPlugin,
        {0},
        &plugin_KTextEditor_LoadSaveFilterCheckPlugin
    },
    {
        sipNameNr_LoadSaveFilterCheckPlugin,
        {1, 255, 0},
        3, methods_KTextEditor_LoadSaveFilterCheckPlugin,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KTextEditor_LoadSaveFilterCheckPlugin,
    0,
    init_type_KTextEditor_LoadSaveFilterCheckPlugin,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_LoadSaveFilterCheckPlugin,
    0,
    0,
    0,
    release_KTextEditor_LoadSaveFilterCheckPlugin,
    cast_KTextEditor_LoadSaveFilterCheckPlugin,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 25 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/highlightinterface.sip"
#include <ktexteditor/highlightinterface.h>
#line 748 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"

#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 752 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/cursor.sip"
#include <ktexteditor/cursor.h>
#line 755 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 758 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 340 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 761 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/attribute.sip"
#include <ktexteditor/attribute.h>
#line 764 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"


extern "C" {static PyObject *meth_KTextEditor_HighlightInterface_defaultStyle(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_HighlightInterface_defaultStyle(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
         ::KTextEditor::HighlightInterface::DefaultStyle a0;
        const  ::KTextEditor::HighlightInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KTextEditor_HighlightInterface, &sipCpp, sipType_KTextEditor_HighlightInterface_DefaultStyle, &a0))
        {
             ::KTextEditor::Attribute::Ptr*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_HighlightInterface, sipName_defaultStyle);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::KTextEditor::Attribute::Ptr(sipCpp->defaultStyle(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KSharedPtr_0100KTextEditor_Attribute,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_HighlightInterface, sipName_defaultStyle, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_HighlightInterface_embeddedHighlightingModes(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_HighlightInterface_embeddedHighlightingModes(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const  ::KTextEditor::HighlightInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_HighlightInterface, &sipCpp))
        {
             ::QStringList*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_HighlightInterface, sipName_embeddedHighlightingModes);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QStringList(sipCpp->embeddedHighlightingModes());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_HighlightInterface, sipName_embeddedHighlightingModes, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_HighlightInterface_highlightingModeAt(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_HighlightInterface_highlightingModeAt(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const  ::KTextEditor::Cursor* a0;
         ::KTextEditor::HighlightInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KTextEditor_HighlightInterface, &sipCpp, sipType_KTextEditor_Cursor, &a0))
        {
             ::QString*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_HighlightInterface, sipName_highlightingModeAt);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QString(sipCpp->highlightingModeAt(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_HighlightInterface, sipName_highlightingModeAt, NULL);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KTextEditor_HighlightInterface(void *, int);}
static void release_KTextEditor_HighlightInterface(void *sipCppV, int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast< ::KTextEditor::HighlightInterface *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KTextEditor_HighlightInterface(sipSimpleWrapper *);}
static void dealloc_KTextEditor_HighlightInterface(sipSimpleWrapper *sipSelf)
{
    if (sipIsOwnedByPython(sipSelf))
    {
        release_KTextEditor_HighlightInterface(sipGetAddress(sipSelf), 0);
    }
}


static PyMethodDef methods_KTextEditor_HighlightInterface[] = {
    {SIP_MLNAME_CAST(sipName_defaultStyle), meth_KTextEditor_HighlightInterface_defaultStyle, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_embeddedHighlightingModes), meth_KTextEditor_HighlightInterface_embeddedHighlightingModes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_highlightingModeAt), meth_KTextEditor_HighlightInterface_highlightingModeAt, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KTextEditor_HighlightInterface[] = {
    {sipName_dsAlert, static_cast<int>( ::KTextEditor::HighlightInterface::dsAlert), 35},
    {sipName_dsBaseN, static_cast<int>( ::KTextEditor::HighlightInterface::dsBaseN), 35},
    {sipName_dsChar, static_cast<int>( ::KTextEditor::HighlightInterface::dsChar), 35},
    {sipName_dsComment, static_cast<int>( ::KTextEditor::HighlightInterface::dsComment), 35},
    {sipName_dsDataType, static_cast<int>( ::KTextEditor::HighlightInterface::dsDataType), 35},
    {sipName_dsDecVal, static_cast<int>( ::KTextEditor::HighlightInterface::dsDecVal), 35},
    {sipName_dsError, static_cast<int>( ::KTextEditor::HighlightInterface::dsError), 35},
    {sipName_dsFloat, static_cast<int>( ::KTextEditor::HighlightInterface::dsFloat), 35},
    {sipName_dsFunction, static_cast<int>( ::KTextEditor::HighlightInterface::dsFunction), 35},
    {sipName_dsKeyword, static_cast<int>( ::KTextEditor::HighlightInterface::dsKeyword), 35},
    {sipName_dsNormal, static_cast<int>( ::KTextEditor::HighlightInterface::dsNormal), 35},
    {sipName_dsOthers, static_cast<int>( ::KTextEditor::HighlightInterface::dsOthers), 35},
    {sipName_dsRegionMarker, static_cast<int>( ::KTextEditor::HighlightInterface::dsRegionMarker), 35},
    {sipName_dsString, static_cast<int>( ::KTextEditor::HighlightInterface::dsString), 35},
};


static pyqt4ClassPluginDef plugin_KTextEditor_HighlightInterface = {
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_ktexteditor_KTextEditor_HighlightInterface = {
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__HighlightInterface,
        {0},
        &plugin_KTextEditor_HighlightInterface
    },
    {
        sipNameNr_HighlightInterface,
        {1, 255, 0},
        3, methods_KTextEditor_HighlightInterface,
        14, enummembers_KTextEditor_HighlightInterface,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_HighlightInterface,
    0,
    0,
    0,
    release_KTextEditor_HighlightInterface,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 31 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/factory.sip"
#include <ktexteditor/factory.h>
#line 975 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"

#line 29 "/usr/share/sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 979 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 34 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/editor.sip"
#include <ktexteditor/editor.h>
#include <ktexteditor/commandinterface.h>
#include <ktexteditor/containerinterface.h>
#line 984 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 66 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 987 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 28 "/usr/share/sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 990 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 993 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 996 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 999 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1002 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1005 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 265 "/usr/share/sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1008 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1011 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 368 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1014 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 351 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1017 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1020 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 32 "/usr/share/sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1023 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1026 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 115 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1029 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 1032 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1035 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1038 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"


class sipKTextEditor_Factory : public  ::KTextEditor::Factory
{
public:
    sipKTextEditor_Factory( ::QObject*);
    virtual ~sipKTextEditor_Factory();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
     ::KTextEditor::Editor* editor();
     ::QObject* create(const char*, ::QWidget*, ::QObject*,const  ::QVariantList&,const  ::QString&);
     ::QObject* createObject( ::QObject*,const char*,const  ::QStringList&);
    void setupTranslations();
    bool event( ::QEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    void timerEvent( ::QTimerEvent*);
    void childEvent( ::QChildEvent*);
    void customEvent( ::QEvent*);
    void connectNotify(const char*);
    void disconnectNotify(const char*);
     ::KComponentData partComponentData();
     ::KParts::Part* createPartObject( ::QWidget*, ::QObject*,const char*,const  ::QStringList&);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKTextEditor_Factory(const sipKTextEditor_Factory &);
    sipKTextEditor_Factory &operator = (const sipKTextEditor_Factory &);

    char sipPyMethods[13];
};

sipKTextEditor_Factory::sipKTextEditor_Factory( ::QObject*a0):  ::KTextEditor::Factory(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTextEditor_Factory::~sipKTextEditor_Factory()
{
    sipInstanceDestroyed(sipPySelf);
}

const QMetaObject *sipKTextEditor_Factory::metaObject() const
{
    return sip_ktexteditor_qt_metaobject(sipPySelf,sipType_KTextEditor_Factory);
}

int sipKTextEditor_Factory::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id =  ::KTextEditor::Factory::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_ktexteditor_qt_metacall(sipPySelf,sipType_KTextEditor_Factory,_c,_id,_a);

    return _id;
}

void *sipKTextEditor_Factory::qt_metacast(const char *_clname)
{
    return (sip_ktexteditor_qt_metacast(sipPySelf, sipType_KTextEditor_Factory, _clname)) ? this :  ::KTextEditor::Factory::qt_metacast(_clname);
}

 ::KTextEditor::Editor* sipKTextEditor_Factory::editor()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,sipName_Factory,sipName_editor);

    if (!sipMeth)
        return 0;

    extern  ::KTextEditor::Editor* sipVH_ktexteditor_120(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_120(sipGILState, 0, sipPySelf, sipMeth);
}

 ::QObject* sipKTextEditor_Factory::create(const char*a0, ::QWidget*a1, ::QObject*a2,const  ::QVariantList& a3,const  ::QString& a4)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_create);

    if (!sipMeth)
        return  ::KTextEditor::Factory::create(a0,a1,a2,a3,a4);

    extern  ::QObject* sipVH_ktexteditor_147(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*, ::QWidget*, ::QObject*,const  ::QVariantList&,const  ::QString&);

    return sipVH_ktexteditor_147(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3, a4);
}

 ::QObject* sipKTextEditor_Factory::createObject( ::QObject*a0,const char*a1,const  ::QStringList& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_createObject);

    if (!sipMeth)
        return  ::KTextEditor::Factory::createObject(a0,a1,a2);

    extern  ::QObject* sipVH_ktexteditor_146(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*,const char*,const  ::QStringList&);

    return sipVH_ktexteditor_146(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

void sipKTextEditor_Factory::setupTranslations()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_setupTranslations);

    if (!sipMeth)
    {
         ::KTextEditor::Factory::setupTranslations();
        return;
    }

    extern void sipVH_ktexteditor_15(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    sipVH_ktexteditor_15(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKTextEditor_Factory::event( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return  ::KTextEditor::Factory::event(a0);

    extern bool sipVH_ktexteditor_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    return sipVH_ktexteditor_5(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_Factory::eventFilter( ::QObject*a0, ::QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return  ::KTextEditor::Factory::eventFilter(a0,a1);

    extern bool sipVH_ktexteditor_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_ktexteditor_4(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

void sipKTextEditor_Factory::timerEvent( ::QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
         ::KTextEditor::Factory::timerEvent(a0);
        return;
    }

    extern void sipVH_ktexteditor_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_ktexteditor_3(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_Factory::childEvent( ::QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
         ::KTextEditor::Factory::childEvent(a0);
        return;
    }

    extern void sipVH_ktexteditor_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_ktexteditor_2(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_Factory::customEvent( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
         ::KTextEditor::Factory::customEvent(a0);
        return;
    }

    extern void sipVH_ktexteditor_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_ktexteditor_1(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_Factory::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
         ::KTextEditor::Factory::connectNotify(a0);
        return;
    }

    extern void sipVH_ktexteditor_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    sipVH_ktexteditor_0(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_Factory::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
         ::KTextEditor::Factory::disconnectNotify(a0);
        return;
    }

    extern void sipVH_ktexteditor_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    sipVH_ktexteditor_0(sipGILState, 0, sipPySelf, sipMeth, a0);
}

 ::KComponentData sipKTextEditor_Factory::partComponentData()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_partComponentData);

    if (!sipMeth)
        return  ::KTextEditor::Factory::partComponentData();

    extern  ::KComponentData sipVH_ktexteditor_116(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_116(sipGILState, 0, sipPySelf, sipMeth);
}

 ::KParts::Part* sipKTextEditor_Factory::createPartObject( ::QWidget*a0, ::QObject*a1,const char*a2,const  ::QStringList& a3)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,sipName_Factory,sipName_createPartObject);

    if (!sipMeth)
        return 0;

    extern  ::KParts::Part* sipVH_ktexteditor_145(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QWidget*, ::QObject*,const char*,const  ::QStringList&);

    return sipVH_ktexteditor_145(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2, a3);
}


extern "C" {static PyObject *meth_KTextEditor_Factory_editor(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Factory_editor(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
         ::KTextEditor::Factory *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Factory, &sipCpp))
        {
             ::KTextEditor::Editor*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Factory, sipName_editor);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->editor();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KTextEditor_Editor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Factory, sipName_editor, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_KTextEditor_Factory(void *, const sipTypeDef *);}
static void *cast_KTextEditor_Factory(void *sipCppV, const sipTypeDef *targetType)
{
     ::KTextEditor::Factory *sipCpp = reinterpret_cast< ::KTextEditor::Factory *>(sipCppV);

    if (targetType == sipType_KParts_Factory)
        return static_cast< ::KParts::Factory *>(sipCpp);

    if (targetType == sipType_KPluginFactory)
        return static_cast< ::KPluginFactory *>(sipCpp);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* Call the instance's destructor. */
extern "C" {static void release_KTextEditor_Factory(void *, int);}
static void release_KTextEditor_Factory(void *sipCppV, int)
{
     ::KTextEditor::Factory *sipCpp = reinterpret_cast< ::KTextEditor::Factory *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KTextEditor_Factory(sipSimpleWrapper *);}
static void dealloc_KTextEditor_Factory(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipKTextEditor_Factory *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_KTextEditor_Factory(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


extern "C" {static void *init_type_KTextEditor_Factory(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KTextEditor_Factory(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipKTextEditor_Factory *sipCpp = 0;

    {
         ::QObject* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_Factory(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KTextEditor_Factory[] = {{0, 9, 1}};


static PyMethodDef methods_KTextEditor_Factory[] = {
    {SIP_MLNAME_CAST(sipName_editor), meth_KTextEditor_Factory_editor, METH_VARARGS, NULL}
};


static pyqt4ClassPluginDef plugin_KTextEditor_Factory = {
    & ::KTextEditor::Factory::staticMetaObject,
    0,
    0
};


sipClassTypeDef sipTypeDef_ktexteditor_KTextEditor_Factory = {
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__Factory,
        {0},
        &plugin_KTextEditor_Factory
    },
    {
        sipNameNr_Factory,
        {1, 255, 0},
        1, methods_KTextEditor_Factory,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KTextEditor_Factory,
    0,
    init_type_KTextEditor_Factory,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_Factory,
    0,
    0,
    0,
    release_KTextEditor_Factory,
    cast_KTextEditor_Factory,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 30 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/editorchooser.sip"
#include <ktexteditor/editorchooser.h>
#line 1498 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"

#line 28 "/usr/share/sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 1502 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 34 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/editor.sip"
#include <ktexteditor/editor.h>
#include <ktexteditor/commandinterface.h>
#include <ktexteditor/containerinterface.h>
#line 1507 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 1510 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1513 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qmargins.sip"
#include <qmargins.h>
#line 1516 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1519 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1522 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 28 "/usr/share/sip/PyQt4/QtGui/qgraphicseffect.sip"
#include <qgraphicseffect.h>
#line 1525 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 28 "/usr/share/sip/PyQt4/QtGui/qgraphicsproxywidget.sip"
#include <qgraphicsproxywidget.h>
#line 1528 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qlocale.sip"
#include <qlocale.h>
#line 1531 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 1534 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qpoint.sip"
#include <qpoint.h>
#line 1537 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qregion.sip"
#include <qregion.h>
#line 1540 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 28 "/usr/share/sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 1543 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qpainter.sip"
#include <qpainter.h>
#line 1546 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 32 "/usr/share/sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1549 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qsize.sip"
#include <qsize.h>
#line 1552 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qrect.sip"
#include <qrect.h>
#line 1555 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qfontinfo.sip"
#include <qfontinfo.h>
#line 1558 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qfontmetrics.sip"
#include <qfontmetrics.h>
#line 1561 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qfont.sip"
#include <qfont.h>
#line 1564 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1567 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qpalette.sip"
#include <qpalette.h>
#line 1570 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 265 "/usr/share/sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1573 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 647 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1576 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1579 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 607 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1582 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 596 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1585 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 739 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1588 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 792 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1591 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 765 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1594 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 781 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1597 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 854 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1600 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 403 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1603 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 618 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1606 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 574 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1609 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 561 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1612 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 548 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1615 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 524 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1618 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 505 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1621 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 474 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1624 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 347 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1627 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 252 "/usr/share/sip/PyQt4/QtGui/qevent.sip"
#include <qevent.h>
#line 1630 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 28 "/usr/share/sip/PyQt4/QtGui/qinputcontext.sip"
#include <qinputcontext.h>
#line 1633 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 52 "/usr/share/sip/PyQt4/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 1636 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 34 "/usr/share/sip/PyQt4/QtGui/qx11info_x11.sip"
#include <qx11info_x11.h>
#line 1639 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 115 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1642 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qaction.sip"
#include <qaction.h>
#line 1645 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qlayout.sip"
#include <qlayout.h>
#line 1648 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qsizepolicy.sip"
#include <qsizepolicy.h>
#line 1651 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1654 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 1657 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qcursor.sip"
#include <qcursor.h>
#line 1660 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qicon.sip"
#include <qicon.h>
#line 1663 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qbitmap.sip"
#include <qbitmap.h>
#line 1666 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qstyle.sip"
#include <qstyle.h>
#line 1669 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 368 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1672 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 351 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1675 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 29 "/usr/share/sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 1678 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1681 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 115 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1684 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 1687 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1690 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1693 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"


class sipKTextEditor_EditorChooser : public  ::KTextEditor::EditorChooser
{
public:
    sipKTextEditor_EditorChooser( ::QWidget*);
    virtual ~sipKTextEditor_EditorChooser();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent( ::QEvent*);
    void childEvent( ::QChildEvent*);
    void timerEvent( ::QTimerEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    bool event( ::QEvent*);
    int metric( ::QPaintDevice::PaintDeviceMetric) const;
     ::QPaintEngine* paintEngine() const;
    int devType() const;
    void setVisible(bool);
     ::QSize sizeHint() const;
     ::QSize minimumSizeHint() const;
    int heightForWidth(int) const;
    void mousePressEvent( ::QMouseEvent*);
    void mouseReleaseEvent( ::QMouseEvent*);
    void mouseDoubleClickEvent( ::QMouseEvent*);
    void mouseMoveEvent( ::QMouseEvent*);
    void wheelEvent( ::QWheelEvent*);
    void keyPressEvent( ::QKeyEvent*);
    void keyReleaseEvent( ::QKeyEvent*);
    void focusInEvent( ::QFocusEvent*);
    void focusOutEvent( ::QFocusEvent*);
    void enterEvent( ::QEvent*);
    void leaveEvent( ::QEvent*);
    void paintEvent( ::QPaintEvent*);
    void moveEvent( ::QMoveEvent*);
    void resizeEvent( ::QResizeEvent*);
    void closeEvent( ::QCloseEvent*);
    void contextMenuEvent( ::QContextMenuEvent*);
    void tabletEvent( ::QTabletEvent*);
    void actionEvent( ::QActionEvent*);
    void dragEnterEvent( ::QDragEnterEvent*);
    void dragMoveEvent( ::QDragMoveEvent*);
    void dragLeaveEvent( ::QDragLeaveEvent*);
    void dropEvent( ::QDropEvent*);
    void showEvent( ::QShowEvent*);
    void hideEvent( ::QHideEvent*);
    void changeEvent( ::QEvent*);
    void inputMethodEvent( ::QInputMethodEvent*);
     ::QVariant inputMethodQuery( ::Qt::InputMethodQuery) const;
    bool focusNextPrevChild(bool);
    void enabledChange(bool);
    void paletteChange(const  ::QPalette&);
    void fontChange(const  ::QFont&);
    void windowActivationChange(bool);
    void languageChange();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKTextEditor_EditorChooser(const sipKTextEditor_EditorChooser &);
    sipKTextEditor_EditorChooser &operator = (const sipKTextEditor_EditorChooser &);

    char sipPyMethods[47];
};

sipKTextEditor_EditorChooser::sipKTextEditor_EditorChooser( ::QWidget*a0):  ::KTextEditor::EditorChooser(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTextEditor_EditorChooser::~sipKTextEditor_EditorChooser()
{
    sipInstanceDestroyed(sipPySelf);
}

const QMetaObject *sipKTextEditor_EditorChooser::metaObject() const
{
    return sip_ktexteditor_qt_metaobject(sipPySelf,sipType_KTextEditor_EditorChooser);
}

int sipKTextEditor_EditorChooser::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id =  ::KTextEditor::EditorChooser::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_ktexteditor_qt_metacall(sipPySelf,sipType_KTextEditor_EditorChooser,_c,_id,_a);

    return _id;
}

void *sipKTextEditor_EditorChooser::qt_metacast(const char *_clname)
{
    return (sip_ktexteditor_qt_metacast(sipPySelf, sipType_KTextEditor_EditorChooser, _clname)) ? this :  ::KTextEditor::EditorChooser::qt_metacast(_clname);
}

void sipKTextEditor_EditorChooser::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
         ::KTextEditor::EditorChooser::disconnectNotify(a0);
        return;
    }

    extern void sipVH_ktexteditor_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    sipVH_ktexteditor_0(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
         ::KTextEditor::EditorChooser::connectNotify(a0);
        return;
    }

    extern void sipVH_ktexteditor_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    sipVH_ktexteditor_0(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::customEvent( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
         ::KTextEditor::EditorChooser::customEvent(a0);
        return;
    }

    extern void sipVH_ktexteditor_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_ktexteditor_1(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::childEvent( ::QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
         ::KTextEditor::EditorChooser::childEvent(a0);
        return;
    }

    extern void sipVH_ktexteditor_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_ktexteditor_2(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::timerEvent( ::QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
         ::KTextEditor::EditorChooser::timerEvent(a0);
        return;
    }

    extern void sipVH_ktexteditor_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_ktexteditor_3(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_EditorChooser::eventFilter( ::QObject*a0, ::QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return  ::KTextEditor::EditorChooser::eventFilter(a0,a1);

    extern bool sipVH_ktexteditor_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_ktexteditor_4(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipKTextEditor_EditorChooser::event( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return  ::KTextEditor::EditorChooser::event(a0);

    extern bool sipVH_ktexteditor_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    return sipVH_ktexteditor_5(sipGILState, 0, sipPySelf, sipMeth, a0);
}

int sipKTextEditor_EditorChooser::metric( ::QPaintDevice::PaintDeviceMetric a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[7]),sipPySelf,NULL,sipName_metric);

    if (!sipMeth)
        return  ::KTextEditor::EditorChooser::metric(a0);

    extern int sipVH_ktexteditor_86(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QPaintDevice::PaintDeviceMetric);

    return sipVH_ktexteditor_86(sipGILState, 0, sipPySelf, sipMeth, a0);
}

 ::QPaintEngine* sipKTextEditor_EditorChooser::paintEngine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[8]),sipPySelf,NULL,sipName_paintEngine);

    if (!sipMeth)
        return  ::KTextEditor::EditorChooser::paintEngine();

    extern  ::QPaintEngine* sipVH_ktexteditor_85(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_85(sipGILState, 0, sipPySelf, sipMeth);
}

int sipKTextEditor_EditorChooser::devType() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[9]),sipPySelf,NULL,sipName_devType);

    if (!sipMeth)
        return  ::KTextEditor::EditorChooser::devType();

    extern int sipVH_ktexteditor_84(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_84(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKTextEditor_EditorChooser::setVisible(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_setVisible);

    if (!sipMeth)
    {
         ::KTextEditor::EditorChooser::setVisible(a0);
        return;
    }

    extern void sipVH_ktexteditor_9(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    sipVH_ktexteditor_9(sipGILState, 0, sipPySelf, sipMeth, a0);
}

 ::QSize sipKTextEditor_EditorChooser::sizeHint() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[11]),sipPySelf,NULL,sipName_sizeHint);

    if (!sipMeth)
        return  ::KTextEditor::EditorChooser::sizeHint();

    extern  ::QSize sipVH_ktexteditor_83(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_83(sipGILState, 0, sipPySelf, sipMeth);
}

 ::QSize sipKTextEditor_EditorChooser::minimumSizeHint() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[12]),sipPySelf,NULL,sipName_minimumSizeHint);

    if (!sipMeth)
        return  ::KTextEditor::EditorChooser::minimumSizeHint();

    extern  ::QSize sipVH_ktexteditor_83(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_83(sipGILState, 0, sipPySelf, sipMeth);
}

int sipKTextEditor_EditorChooser::heightForWidth(int a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[13]),sipPySelf,NULL,sipName_heightForWidth);

    if (!sipMeth)
        return  ::KTextEditor::EditorChooser::heightForWidth(a0);

    extern int sipVH_ktexteditor_82(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return sipVH_ktexteditor_82(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::mousePressEvent( ::QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_mousePressEvent);

    if (!sipMeth)
    {
         ::KTextEditor::EditorChooser::mousePressEvent(a0);
        return;
    }

    extern void sipVH_ktexteditor_81(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QMouseEvent*);

    sipVH_ktexteditor_81(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::mouseReleaseEvent( ::QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_mouseReleaseEvent);

    if (!sipMeth)
    {
         ::KTextEditor::EditorChooser::mouseReleaseEvent(a0);
        return;
    }

    extern void sipVH_ktexteditor_81(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QMouseEvent*);

    sipVH_ktexteditor_81(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::mouseDoubleClickEvent( ::QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_mouseDoubleClickEvent);

    if (!sipMeth)
    {
         ::KTextEditor::EditorChooser::mouseDoubleClickEvent(a0);
        return;
    }

    extern void sipVH_ktexteditor_81(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QMouseEvent*);

    sipVH_ktexteditor_81(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::mouseMoveEvent( ::QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,NULL,sipName_mouseMoveEvent);

    if (!sipMeth)
    {
         ::KTextEditor::EditorChooser::mouseMoveEvent(a0);
        return;
    }

    extern void sipVH_ktexteditor_81(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QMouseEvent*);

    sipVH_ktexteditor_81(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::wheelEvent( ::QWheelEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,NULL,sipName_wheelEvent);

    if (!sipMeth)
    {
         ::KTextEditor::EditorChooser::wheelEvent(a0);
        return;
    }

    extern void sipVH_ktexteditor_80(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QWheelEvent*);

    sipVH_ktexteditor_80(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::keyPressEvent( ::QKeyEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,NULL,sipName_keyPressEvent);

    if (!sipMeth)
    {
         ::KTextEditor::EditorChooser::keyPressEvent(a0);
        return;
    }

    extern void sipVH_ktexteditor_79(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QKeyEvent*);

    sipVH_ktexteditor_79(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::keyReleaseEvent( ::QKeyEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],sipPySelf,NULL,sipName_keyReleaseEvent);

    if (!sipMeth)
    {
         ::KTextEditor::EditorChooser::keyReleaseEvent(a0);
        return;
    }

    extern void sipVH_ktexteditor_79(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QKeyEvent*);

    sipVH_ktexteditor_79(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::focusInEvent( ::QFocusEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,NULL,sipName_focusInEvent);

    if (!sipMeth)
    {
         ::KTextEditor::EditorChooser::focusInEvent(a0);
        return;
    }

    extern void sipVH_ktexteditor_78(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QFocusEvent*);

    sipVH_ktexteditor_78(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::focusOutEvent( ::QFocusEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[22],sipPySelf,NULL,sipName_focusOutEvent);

    if (!sipMeth)
    {
         ::KTextEditor::EditorChooser::focusOutEvent(a0);
        return;
    }

    extern void sipVH_ktexteditor_78(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QFocusEvent*);

    sipVH_ktexteditor_78(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::enterEvent( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[23],sipPySelf,NULL,sipName_enterEvent);

    if (!sipMeth)
    {
         ::KTextEditor::EditorChooser::enterEvent(a0);
        return;
    }

    extern void sipVH_ktexteditor_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_ktexteditor_1(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::leaveEvent( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[24],sipPySelf,NULL,sipName_leaveEvent);

    if (!sipMeth)
    {
         ::KTextEditor::EditorChooser::leaveEvent(a0);
        return;
    }

    extern void sipVH_ktexteditor_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_ktexteditor_1(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::paintEvent( ::QPaintEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[25],sipPySelf,NULL,sipName_paintEvent);

    if (!sipMeth)
    {
         ::KTextEditor::EditorChooser::paintEvent(a0);
        return;
    }

    extern void sipVH_ktexteditor_77(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QPaintEvent*);

    sipVH_ktexteditor_77(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::moveEvent( ::QMoveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[26],sipPySelf,NULL,sipName_moveEvent);

    if (!sipMeth)
    {
         ::KTextEditor::EditorChooser::moveEvent(a0);
        return;
    }

    extern void sipVH_ktexteditor_76(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QMoveEvent*);

    sipVH_ktexteditor_76(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::resizeEvent( ::QResizeEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[27],sipPySelf,NULL,sipName_resizeEvent);

    if (!sipMeth)
    {
         ::KTextEditor::EditorChooser::resizeEvent(a0);
        return;
    }

    extern void sipVH_ktexteditor_75(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QResizeEvent*);

    sipVH_ktexteditor_75(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::closeEvent( ::QCloseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[28],sipPySelf,NULL,sipName_closeEvent);

    if (!sipMeth)
    {
         ::KTextEditor::EditorChooser::closeEvent(a0);
        return;
    }

    extern void sipVH_ktexteditor_74(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QCloseEvent*);

    sipVH_ktexteditor_74(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::contextMenuEvent( ::QContextMenuEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[29],sipPySelf,NULL,sipName_contextMenuEvent);

    if (!sipMeth)
    {
         ::KTextEditor::EditorChooser::contextMenuEvent(a0);
        return;
    }

    extern void sipVH_ktexteditor_73(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QContextMenuEvent*);

    sipVH_ktexteditor_73(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::tabletEvent( ::QTabletEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[30],sipPySelf,NULL,sipName_tabletEvent);

    if (!sipMeth)
    {
         ::KTextEditor::EditorChooser::tabletEvent(a0);
        return;
    }

    extern void sipVH_ktexteditor_72(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTabletEvent*);

    sipVH_ktexteditor_72(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::actionEvent( ::QActionEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[31],sipPySelf,NULL,sipName_actionEvent);

    if (!sipMeth)
    {
         ::KTextEditor::EditorChooser::actionEvent(a0);
        return;
    }

    extern void sipVH_ktexteditor_71(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QActionEvent*);

    sipVH_ktexteditor_71(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::dragEnterEvent( ::QDragEnterEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[32],sipPySelf,NULL,sipName_dragEnterEvent);

    if (!sipMeth)
    {
         ::KTextEditor::EditorChooser::dragEnterEvent(a0);
        return;
    }

    extern void sipVH_ktexteditor_70(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QDragEnterEvent*);

    sipVH_ktexteditor_70(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::dragMoveEvent( ::QDragMoveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[33],sipPySelf,NULL,sipName_dragMoveEvent);

    if (!sipMeth)
    {
         ::KTextEditor::EditorChooser::dragMoveEvent(a0);
        return;
    }

    extern void sipVH_ktexteditor_69(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QDragMoveEvent*);

    sipVH_ktexteditor_69(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::dragLeaveEvent( ::QDragLeaveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[34],sipPySelf,NULL,sipName_dragLeaveEvent);

    if (!sipMeth)
    {
         ::KTextEditor::EditorChooser::dragLeaveEvent(a0);
        return;
    }

    extern void sipVH_ktexteditor_68(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QDragLeaveEvent*);

    sipVH_ktexteditor_68(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::dropEvent( ::QDropEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[35],sipPySelf,NULL,sipName_dropEvent);

    if (!sipMeth)
    {
         ::KTextEditor::EditorChooser::dropEvent(a0);
        return;
    }

    extern void sipVH_ktexteditor_67(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QDropEvent*);

    sipVH_ktexteditor_67(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::showEvent( ::QShowEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[36],sipPySelf,NULL,sipName_showEvent);

    if (!sipMeth)
    {
         ::KTextEditor::EditorChooser::showEvent(a0);
        return;
    }

    extern void sipVH_ktexteditor_66(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QShowEvent*);

    sipVH_ktexteditor_66(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::hideEvent( ::QHideEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[37],sipPySelf,NULL,sipName_hideEvent);

    if (!sipMeth)
    {
         ::KTextEditor::EditorChooser::hideEvent(a0);
        return;
    }

    extern void sipVH_ktexteditor_65(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QHideEvent*);

    sipVH_ktexteditor_65(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::changeEvent( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[38],sipPySelf,NULL,sipName_changeEvent);

    if (!sipMeth)
    {
         ::KTextEditor::EditorChooser::changeEvent(a0);
        return;
    }

    extern void sipVH_ktexteditor_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_ktexteditor_1(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::inputMethodEvent( ::QInputMethodEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[39],sipPySelf,NULL,sipName_inputMethodEvent);

    if (!sipMeth)
    {
         ::KTextEditor::EditorChooser::inputMethodEvent(a0);
        return;
    }

    extern void sipVH_ktexteditor_64(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QInputMethodEvent*);

    sipVH_ktexteditor_64(sipGILState, 0, sipPySelf, sipMeth, a0);
}

 ::QVariant sipKTextEditor_EditorChooser::inputMethodQuery( ::Qt::InputMethodQuery a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[40]),sipPySelf,NULL,sipName_inputMethodQuery);

    if (!sipMeth)
        return  ::KTextEditor::EditorChooser::inputMethodQuery(a0);

    extern  ::QVariant sipVH_ktexteditor_63(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::Qt::InputMethodQuery);

    return sipVH_ktexteditor_63(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_EditorChooser::focusNextPrevChild(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[41],sipPySelf,NULL,sipName_focusNextPrevChild);

    if (!sipMeth)
        return  ::KTextEditor::EditorChooser::focusNextPrevChild(a0);

    extern bool sipVH_ktexteditor_62(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    return sipVH_ktexteditor_62(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::enabledChange(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[42],sipPySelf,NULL,sipName_enabledChange);

    if (!sipMeth)
    {
         ::KTextEditor::EditorChooser::enabledChange(a0);
        return;
    }

    extern void sipVH_ktexteditor_9(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    sipVH_ktexteditor_9(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::paletteChange(const  ::QPalette& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[43],sipPySelf,NULL,sipName_paletteChange);

    if (!sipMeth)
    {
         ::KTextEditor::EditorChooser::paletteChange(a0);
        return;
    }

    extern void sipVH_ktexteditor_61(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QPalette&);

    sipVH_ktexteditor_61(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::fontChange(const  ::QFont& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[44],sipPySelf,NULL,sipName_fontChange);

    if (!sipMeth)
    {
         ::KTextEditor::EditorChooser::fontChange(a0);
        return;
    }

    extern void sipVH_ktexteditor_60(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QFont&);

    sipVH_ktexteditor_60(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::windowActivationChange(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[45],sipPySelf,NULL,sipName_windowActivationChange);

    if (!sipMeth)
    {
         ::KTextEditor::EditorChooser::windowActivationChange(a0);
        return;
    }

    extern void sipVH_ktexteditor_9(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    sipVH_ktexteditor_9(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_EditorChooser::languageChange()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[46],sipPySelf,NULL,sipName_languageChange);

    if (!sipMeth)
    {
         ::KTextEditor::EditorChooser::languageChange();
        return;
    }

    extern void sipVH_ktexteditor_15(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    sipVH_ktexteditor_15(sipGILState, 0, sipPySelf, sipMeth);
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_readAppSetting(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_readAppSetting(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::QString& a0def = QString();
        const  ::QString* a0 = &a0def;
        int a0State = 0;
         ::KTextEditor::EditorChooser *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J1", &sipSelf, sipType_KTextEditor_EditorChooser, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->readAppSetting(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_EditorChooser, sipName_readAppSetting, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_writeAppSetting(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_writeAppSetting(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::QString& a0def = QString();
        const  ::QString* a0 = &a0def;
        int a0State = 0;
         ::KTextEditor::EditorChooser *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J1", &sipSelf, sipType_KTextEditor_EditorChooser, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->writeAppSetting(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_EditorChooser, sipName_writeAppSetting, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_editor(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_editor(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::QString& a0def = QString();
        const  ::QString* a0 = &a0def;
        int a0State = 0;
        bool a1 = 1;

        if (sipParseArgs(&sipParseErr, sipArgs, "|J1b", sipType_QString,&a0, &a0State, &a1))
        {
             ::KTextEditor::Editor*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes =  ::KTextEditor::EditorChooser::editor(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);

            return sipConvertFromType(sipRes,sipType_KTextEditor_Editor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_EditorChooser, sipName_editor, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_KTextEditor_EditorChooser(void *, const sipTypeDef *);}
static void *cast_KTextEditor_EditorChooser(void *sipCppV, const sipTypeDef *targetType)
{
     ::KTextEditor::EditorChooser *sipCpp = reinterpret_cast< ::KTextEditor::EditorChooser *>(sipCppV);

    if (targetType == sipType_QWidget)
        return static_cast< ::QWidget *>(sipCpp);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    if (targetType == sipType_QPaintDevice)
        return static_cast< ::QPaintDevice *>(sipCpp);

    return sipCppV;
}


/* Call the instance's destructor. */
extern "C" {static void release_KTextEditor_EditorChooser(void *, int);}
static void release_KTextEditor_EditorChooser(void *sipCppV, int)
{
     ::KTextEditor::EditorChooser *sipCpp = reinterpret_cast< ::KTextEditor::EditorChooser *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KTextEditor_EditorChooser(sipSimpleWrapper *);}
static void dealloc_KTextEditor_EditorChooser(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipKTextEditor_EditorChooser *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_KTextEditor_EditorChooser(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


extern "C" {static void *init_type_KTextEditor_EditorChooser(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KTextEditor_EditorChooser(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipKTextEditor_EditorChooser *sipCpp = 0;

    {
         ::QWidget* a0 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|JH", sipType_QWidget, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_EditorChooser(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KTextEditor_EditorChooser[] = {{29, 2, 1}};


static PyMethodDef methods_KTextEditor_EditorChooser[] = {
    {SIP_MLNAME_CAST(sipName_editor), meth_KTextEditor_EditorChooser_editor, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readAppSetting), meth_KTextEditor_EditorChooser_readAppSetting, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_writeAppSetting), meth_KTextEditor_EditorChooser_writeAppSetting, METH_VARARGS, NULL}
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_KTextEditor_EditorChooser[] = {
    {"changed()", 0, 0, 0},
    {0, 0, 0, 0}
};


static pyqt4ClassPluginDef plugin_KTextEditor_EditorChooser = {
    & ::KTextEditor::EditorChooser::staticMetaObject,
    0,
    signals_KTextEditor_EditorChooser
};


sipClassTypeDef sipTypeDef_ktexteditor_KTextEditor_EditorChooser = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__EditorChooser,
        {0},
        &plugin_KTextEditor_EditorChooser
    },
    {
        sipNameNr_EditorChooser,
        {1, 255, 0},
        3, methods_KTextEditor_EditorChooser,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KTextEditor_EditorChooser,
    0,
    init_type_KTextEditor_EditorChooser,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_EditorChooser,
    0,
    0,
    0,
    release_KTextEditor_EditorChooser,
    cast_KTextEditor_EditorChooser,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 34 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/editor.sip"
#include <ktexteditor/editor.h>
#include <ktexteditor/commandinterface.h>
#include <ktexteditor/containerinterface.h>
#line 2858 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"

#line 29 "/usr/share/sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 2862 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 2865 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 31 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/containerinterface.sip"
#include <ktexteditor/containerinterface.h>
#line 2868 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 65 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/commandinterface.sip"
#include <ktexteditor/commandinterface.h>
#line 2871 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/document.sip"
#include <ktexteditor/document.h>

#include <ktexteditor/modificationinterface.h>
#include <ktexteditor/markinterface.h>
#include <ktexteditor/searchinterface.h>
#include <ktexteditor/sessionconfiginterface.h>
#include <ktexteditor/smartinterface.h>
#include <ktexteditor/templateinterface.h>
#include <ktexteditor/variableinterface.h>
#include <ktexteditor/movinginterface.h>
#include <ktexteditor/annotationinterface.h>
#include <ktexteditor/highlightinterface.h>
#include <ktexteditor/configinterface.h>
#include <ktexteditor/modeinterface.h>
#include <ktexteditor/sessionconfiginterface.h>
#include <ktexteditor/recoveryinterface.h>

#line 2890 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 33 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kicon.sip"
#include <kicon.h>
#line 2893 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/configpage.sip"
#include <ktexteditor/configpage.h>
#line 2896 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 28 "/usr/share/sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 2899 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 36 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/kconfig.sip"
#include <kconfig.h>
#line 2902 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 56 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/kaboutdata.sip"
#include <kaboutdata.h>
#line 2905 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 115 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2908 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2911 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 368 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2914 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 351 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2917 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 265 "/usr/share/sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 2920 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2923 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 32 "/usr/share/sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 2926 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2929 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 115 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 2932 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 2935 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 2938 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 2941 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"


class sipKTextEditor_Editor : public  ::KTextEditor::Editor
{
public:
    sipKTextEditor_Editor( ::QObject*);
    virtual ~sipKTextEditor_Editor();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
     ::KIcon configPageIcon(int) const;
     ::QString configPageFullName(int) const;
     ::QString configPageName(int) const;
     ::KTextEditor::ConfigPage* configPage(int, ::QWidget*);
    int configPages() const;
    void configDialog( ::QWidget*);
    bool configDialogSupported() const;
    void writeConfig( ::KConfig*);
    void readConfig( ::KConfig*);
    const  ::KAboutData* aboutData() const;
    const QList< ::KTextEditor::Document*>& documents();
     ::KTextEditor::Document* createDocument( ::QObject*);
    bool event( ::QEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    void timerEvent( ::QTimerEvent*);
    void childEvent( ::QChildEvent*);
    void customEvent( ::QEvent*);
    void connectNotify(const char*);
    void disconnectNotify(const char*);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKTextEditor_Editor(const sipKTextEditor_Editor &);
    sipKTextEditor_Editor &operator = (const sipKTextEditor_Editor &);

    char sipPyMethods[19];
};

sipKTextEditor_Editor::sipKTextEditor_Editor( ::QObject*a0):  ::KTextEditor::Editor(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTextEditor_Editor::~sipKTextEditor_Editor()
{
    sipInstanceDestroyed(sipPySelf);
}

const QMetaObject *sipKTextEditor_Editor::metaObject() const
{
    return sip_ktexteditor_qt_metaobject(sipPySelf,sipType_KTextEditor_Editor);
}

int sipKTextEditor_Editor::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id =  ::KTextEditor::Editor::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_ktexteditor_qt_metacall(sipPySelf,sipType_KTextEditor_Editor,_c,_id,_a);

    return _id;
}

void *sipKTextEditor_Editor::qt_metacast(const char *_clname)
{
    return (sip_ktexteditor_qt_metacast(sipPySelf, sipType_KTextEditor_Editor, _clname)) ? this :  ::KTextEditor::Editor::qt_metacast(_clname);
}

 ::KIcon sipKTextEditor_Editor::configPageIcon(int a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,sipName_Editor,sipName_configPageIcon);

    if (!sipMeth)
        return  ::KIcon();

    extern  ::KIcon sipVH_ktexteditor_144(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return sipVH_ktexteditor_144(sipGILState, 0, sipPySelf, sipMeth, a0);
}

 ::QString sipKTextEditor_Editor::configPageFullName(int a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,sipName_Editor,sipName_configPageFullName);

    if (!sipMeth)
        return  ::QString();

    extern  ::QString sipVH_ktexteditor_127(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return sipVH_ktexteditor_127(sipGILState, 0, sipPySelf, sipMeth, a0);
}

 ::QString sipKTextEditor_Editor::configPageName(int a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[2]),sipPySelf,sipName_Editor,sipName_configPageName);

    if (!sipMeth)
        return  ::QString();

    extern  ::QString sipVH_ktexteditor_127(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return sipVH_ktexteditor_127(sipGILState, 0, sipPySelf, sipMeth, a0);
}

 ::KTextEditor::ConfigPage* sipKTextEditor_Editor::configPage(int a0, ::QWidget*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,sipName_Editor,sipName_configPage);

    if (!sipMeth)
        return 0;

    extern  ::KTextEditor::ConfigPage* sipVH_ktexteditor_143(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int, ::QWidget*);

    return sipVH_ktexteditor_143(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

int sipKTextEditor_Editor::configPages() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[4]),sipPySelf,sipName_Editor,sipName_configPages);

    if (!sipMeth)
        return 0;

    extern int sipVH_ktexteditor_84(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_84(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKTextEditor_Editor::configDialog( ::QWidget*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,sipName_Editor,sipName_configDialog);

    if (!sipMeth)
        return;

    extern void sipVH_ktexteditor_104(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QWidget*);

    sipVH_ktexteditor_104(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_Editor::configDialogSupported() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[6]),sipPySelf,sipName_Editor,sipName_configDialogSupported);

    if (!sipMeth)
        return 0;

    extern bool sipVH_ktexteditor_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_10(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKTextEditor_Editor::writeConfig( ::KConfig*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,sipName_Editor,sipName_writeConfig);

    if (!sipMeth)
        return;

    extern void sipVH_ktexteditor_142(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KConfig*);

    sipVH_ktexteditor_142(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_Editor::readConfig( ::KConfig*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,sipName_Editor,sipName_readConfig);

    if (!sipMeth)
        return;

    extern void sipVH_ktexteditor_142(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KConfig*);

    sipVH_ktexteditor_142(sipGILState, 0, sipPySelf, sipMeth, a0);
}

const  ::KAboutData* sipKTextEditor_Editor::aboutData() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[9]),sipPySelf,sipName_Editor,sipName_aboutData);

    if (!sipMeth)
        return 0;

    extern const  ::KAboutData* sipVH_ktexteditor_141(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_141(sipGILState, 0, sipPySelf, sipMeth);
}

const QList< ::KTextEditor::Document*>& sipKTextEditor_Editor::documents()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,sipName_Editor,sipName_documents);

    if (!sipMeth)
        return *new QList< ::KTextEditor::Document*>();

    extern const QList< ::KTextEditor::Document*>& sipVH_ktexteditor_140(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_140(sipGILState, 0, sipPySelf, sipMeth);
}

 ::KTextEditor::Document* sipKTextEditor_Editor::createDocument( ::QObject*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,sipName_Editor,sipName_createDocument);

    if (!sipMeth)
        return 0;

    extern  ::KTextEditor::Document* sipVH_ktexteditor_139(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*);

    return sipVH_ktexteditor_139(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_Editor::event( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return  ::KTextEditor::Editor::event(a0);

    extern bool sipVH_ktexteditor_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    return sipVH_ktexteditor_5(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_Editor::eventFilter( ::QObject*a0, ::QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return  ::KTextEditor::Editor::eventFilter(a0,a1);

    extern bool sipVH_ktexteditor_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_ktexteditor_4(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

void sipKTextEditor_Editor::timerEvent( ::QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
         ::KTextEditor::Editor::timerEvent(a0);
        return;
    }

    extern void sipVH_ktexteditor_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_ktexteditor_3(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_Editor::childEvent( ::QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
         ::KTextEditor::Editor::childEvent(a0);
        return;
    }

    extern void sipVH_ktexteditor_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_ktexteditor_2(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_Editor::customEvent( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
         ::KTextEditor::Editor::customEvent(a0);
        return;
    }

    extern void sipVH_ktexteditor_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_ktexteditor_1(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_Editor::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
         ::KTextEditor::Editor::connectNotify(a0);
        return;
    }

    extern void sipVH_ktexteditor_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    sipVH_ktexteditor_0(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_Editor::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
         ::KTextEditor::Editor::disconnectNotify(a0);
        return;
    }

    extern void sipVH_ktexteditor_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    sipVH_ktexteditor_0(sipGILState, 0, sipPySelf, sipMeth, a0);
}


extern "C" {static PyObject *meth_KTextEditor_Editor_createDocument(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_createDocument(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
         ::QObject* a0;
         ::KTextEditor::Editor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ:", &sipSelf, sipType_KTextEditor_Editor, &sipCpp, sipType_QObject, &a0))
        {
             ::KTextEditor::Document*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Editor, sipName_createDocument);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->createDocument(a0);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KTextEditor_Document,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Editor, sipName_createDocument, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_documents(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_documents(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
         ::KTextEditor::Editor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Editor, &sipCpp))
        {
            QList< ::KTextEditor::Document*>*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Editor, sipName_documents);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList< ::KTextEditor::Document*>(sipCpp->documents());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0101KTextEditor_Document,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Editor, sipName_documents, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_aboutData(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_aboutData(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const  ::KTextEditor::Editor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Editor, &sipCpp))
        {
            const  ::KAboutData*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Editor, sipName_aboutData);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->aboutData();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(const_cast< ::KAboutData *>(sipRes),sipType_KAboutData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Editor, sipName_aboutData, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_readConfig(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_readConfig(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
         ::KConfig* a0 = 0;
         ::KTextEditor::Editor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J8", &sipSelf, sipType_KTextEditor_Editor, &sipCpp, sipType_KConfig, &a0))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Editor, sipName_readConfig);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->readConfig(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Editor, sipName_readConfig, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_writeConfig(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_writeConfig(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
         ::KConfig* a0 = 0;
         ::KTextEditor::Editor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|J8", &sipSelf, sipType_KTextEditor_Editor, &sipCpp, sipType_KConfig, &a0))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Editor, sipName_writeConfig);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->writeConfig(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Editor, sipName_writeConfig, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_configDialogSupported(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_configDialogSupported(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const  ::KTextEditor::Editor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Editor, &sipCpp))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Editor, sipName_configDialogSupported);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->configDialogSupported();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Editor, sipName_configDialogSupported, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_configDialog(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_configDialog(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
         ::QWidget* a0;
         ::KTextEditor::Editor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ:", &sipSelf, sipType_KTextEditor_Editor, &sipCpp, sipType_QWidget, &a0))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Editor, sipName_configDialog);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->configDialog(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Editor, sipName_configDialog, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_configPages(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_configPages(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const  ::KTextEditor::Editor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Editor, &sipCpp))
        {
            int sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Editor, sipName_configPages);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->configPages();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Editor, sipName_configPages, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_configPage(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_configPage(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        int a0;
         ::QWidget* a1;
         ::KTextEditor::Editor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ:", &sipSelf, sipType_KTextEditor_Editor, &sipCpp, &a0, sipType_QWidget, &a1))
        {
             ::KTextEditor::ConfigPage*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Editor, sipName_configPage);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->configPage(a0,a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KTextEditor_ConfigPage,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Editor, sipName_configPage, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_configPageName(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_configPageName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        int a0;
        const  ::KTextEditor::Editor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KTextEditor_Editor, &sipCpp, &a0))
        {
             ::QString*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Editor, sipName_configPageName);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QString(sipCpp->configPageName(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Editor, sipName_configPageName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_configPageFullName(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_configPageFullName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        int a0;
        const  ::KTextEditor::Editor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KTextEditor_Editor, &sipCpp, &a0))
        {
             ::QString*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Editor, sipName_configPageFullName);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QString(sipCpp->configPageFullName(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Editor, sipName_configPageFullName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_configPageIcon(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_configPageIcon(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        int a0;
        const  ::KTextEditor::Editor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KTextEditor_Editor, &sipCpp, &a0))
        {
             ::KIcon*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Editor, sipName_configPageIcon);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::KIcon(sipCpp->configPageIcon(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KIcon,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Editor, sipName_configPageIcon, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_setSimpleMode(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_setSimpleMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
         ::KTextEditor::Editor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KTextEditor_Editor, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSimpleMode(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Editor, sipName_setSimpleMode, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_simpleMode(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_simpleMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KTextEditor::Editor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Editor, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->simpleMode();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Editor, sipName_simpleMode, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_defaultEncoding(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_defaultEncoding(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KTextEditor::Editor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Editor, &sipCpp))
        {
             ::QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QString(sipCpp->defaultEncoding());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Editor, sipName_defaultEncoding, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_commandInterface(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_commandInterface(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
         ::KTextEditor::Editor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Editor, &sipCpp))
        {
             ::KTextEditor::CommandInterface*sipRes = 0;

#line 68 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/editor.sip"
    Py_BEGIN_ALLOW_THREADS
    sipRes = dynamic_cast<KTextEditor::CommandInterface*>(sipCpp);
    Py_END_ALLOW_THREADS
#line 3831 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"

            return sipConvertFromType(sipRes,sipType_KTextEditor_CommandInterface,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Editor, sipName_commandInterface, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_containerInterface(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_containerInterface(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
         ::KTextEditor::Editor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Editor, &sipCpp))
        {
             ::KTextEditor::ContainerInterface*sipRes = 0;

#line 75 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/editor.sip"
    Py_BEGIN_ALLOW_THREADS
    sipRes = dynamic_cast<KTextEditor::ContainerInterface*>(sipCpp);
    Py_END_ALLOW_THREADS
#line 3860 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"

            return sipConvertFromType(sipRes,sipType_KTextEditor_ContainerInterface,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Editor, sipName_containerInterface, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_setDefaultEncoding(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_setDefaultEncoding(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::QString* a0;
        int a0State = 0;
         ::KTextEditor::Editor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1", &sipSelf, sipType_KTextEditor_Editor, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setDefaultEncoding(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Editor, sipName_setDefaultEncoding, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_KTextEditor_Editor(void *, const sipTypeDef *);}
static void *cast_KTextEditor_Editor(void *sipCppV, const sipTypeDef *targetType)
{
     ::KTextEditor::Editor *sipCpp = reinterpret_cast< ::KTextEditor::Editor *>(sipCppV);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* Call the instance's destructor. */
extern "C" {static void release_KTextEditor_Editor(void *, int);}
static void release_KTextEditor_Editor(void *sipCppV, int)
{
     ::KTextEditor::Editor *sipCpp = reinterpret_cast< ::KTextEditor::Editor *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KTextEditor_Editor(sipSimpleWrapper *);}
static void dealloc_KTextEditor_Editor(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipKTextEditor_Editor *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_KTextEditor_Editor(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


extern "C" {static void *init_type_KTextEditor_Editor(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KTextEditor_Editor(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipKTextEditor_Editor *sipCpp = 0;

    {
         ::QObject* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_Editor(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KTextEditor_Editor[] = {{9, 0, 1}};


static PyMethodDef methods_KTextEditor_Editor[] = {
    {SIP_MLNAME_CAST(sipName_aboutData), meth_KTextEditor_Editor_aboutData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_commandInterface), meth_KTextEditor_Editor_commandInterface, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_configDialog), meth_KTextEditor_Editor_configDialog, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_configDialogSupported), meth_KTextEditor_Editor_configDialogSupported, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_configPage), meth_KTextEditor_Editor_configPage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_configPageFullName), meth_KTextEditor_Editor_configPageFullName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_configPageIcon), meth_KTextEditor_Editor_configPageIcon, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_configPageName), meth_KTextEditor_Editor_configPageName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_configPages), meth_KTextEditor_Editor_configPages, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_containerInterface), meth_KTextEditor_Editor_containerInterface, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createDocument), meth_KTextEditor_Editor_createDocument, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_defaultEncoding), meth_KTextEditor_Editor_defaultEncoding, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_documents), meth_KTextEditor_Editor_documents, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readConfig), meth_KTextEditor_Editor_readConfig, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDefaultEncoding), meth_KTextEditor_Editor_setDefaultEncoding, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSimpleMode), meth_KTextEditor_Editor_setSimpleMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_simpleMode), meth_KTextEditor_Editor_simpleMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_writeConfig), meth_KTextEditor_Editor_writeConfig, METH_VARARGS, NULL}
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_KTextEditor_Editor[] = {
    {"documentCreated(KTextEditor::Editor*,KTextEditor::Document*)", 0, 0, 0},
    {0, 0, 0, 0}
};


static pyqt4ClassPluginDef plugin_KTextEditor_Editor = {
    & ::KTextEditor::Editor::staticMetaObject,
    0,
    signals_KTextEditor_Editor
};


sipClassTypeDef sipTypeDef_ktexteditor_KTextEditor_Editor = {
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__Editor,
        {0},
        &plugin_KTextEditor_Editor
    },
    {
        sipNameNr_Editor,
        {1, 255, 0},
        18, methods_KTextEditor_Editor,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KTextEditor_Editor,
    0,
    init_type_KTextEditor_Editor,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_Editor,
    0,
    0,
    0,
    release_KTextEditor_Editor,
    cast_KTextEditor_Editor,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 30 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/document.sip"
#include <ktexteditor/document.h>

#include <ktexteditor/modificationinterface.h>
#include <ktexteditor/markinterface.h>
#include <ktexteditor/searchinterface.h>
#include <ktexteditor/sessionconfiginterface.h>
#include <ktexteditor/smartinterface.h>
#include <ktexteditor/templateinterface.h>
#include <ktexteditor/variableinterface.h>
#include <ktexteditor/movinginterface.h>
#include <ktexteditor/annotationinterface.h>
#include <ktexteditor/highlightinterface.h>
#include <ktexteditor/configinterface.h>
#include <ktexteditor/modeinterface.h>
#include <ktexteditor/sessionconfiginterface.h>
#include <ktexteditor/recoveryinterface.h>

#line 4076 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"

#line 29 "/usr/share/sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 4080 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 25 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/recoveryinterface.sip"
#include <ktexteditor/recoveryinterface.h>
#line 4083 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/sessionconfiginterface.sip"
#include <ktexteditor/sessionconfiginterface.h>
#line 4086 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 47 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/sessionconfiginterface.sip"
#include <ktexteditor/sessionconfiginterface.h>
#line 4089 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/configinterface.sip"
#include <ktexteditor/configinterface.h>
#line 4092 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 25 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/highlightinterface.sip"
#include <ktexteditor/highlightinterface.h>
#line 4095 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 25 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/movinginterface.sip"
#include <ktexteditor/movinginterface.h>
#line 4098 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/variableinterface.sip"
#include <ktexteditor/variableinterface.h>
#line 4101 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 53 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/searchinterface.sip"
#include <ktexteditor/searchinterface.h>
#line 4104 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/modificationinterface.sip"
#include <ktexteditor/modificationinterface.h>
#line 4107 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 45 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/markinterface.sip"
#include <ktexteditor/markinterface.h>
#line 4110 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 38 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/annotationinterface.sip"
#include <ktexteditor/annotationinterface.h>
#line 4113 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 4116 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 27 "/usr/share/sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 4119 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/range.sip"
#include <ktexteditor/range.h>
#line 4122 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/cursor.sip"
#include <ktexteditor/cursor.h>
#line 4125 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 63 "/usr/share/sip/PyQt4/QtCore/qchar.sip"
#include <qchar.h>
#line 4128 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 30 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/view.sip"
#include <ktexteditor/view.h>

#include <ktexteditor/codecompletioninterface.h>
#include <ktexteditor/sessionconfiginterface.h>
#include <ktexteditor/texthintinterface.h>
#include <ktexteditor/annotationinterface.h>
#include <ktexteditor/configinterface.h>
#include <ktexteditor/templateinterface.h>
#include <ktexteditor/templateinterface2.h>
#line 4139 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 115 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 4142 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 28 "/usr/share/sip/PyQt4/QtGui/qwidget.sip"
#include <qwidget.h>
#line 4145 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 34 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/editor.sip"
#include <ktexteditor/editor.h>
#include <ktexteditor/commandinterface.h>
#include <ktexteditor/containerinterface.h>
#line 4150 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 33 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 4153 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 81 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/event.sip"
#include <kparts/event.h>
#line 4156 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 43 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kio/jobclasses.sip"
#include <jobclasses.h>
#line 4159 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 32 "/usr/share/sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 4162 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 113 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 4165 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 126 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 4168 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 127 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/event.sip"
#include <kparts/event.h>
#line 4171 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 103 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/event.sip"
#include <kparts/event.h>
#line 4174 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4177 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kiconloader.sip"
#include <kiconloader.h>
#line 4180 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 66 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/part.sip"
#include <kparts/part.h>
#line 4183 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qpoint.sip"
#include <qpoint.h>
#line 4186 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 28 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kparts/partmanager.sip"
#include <kparts/partmanager.h>
#line 4189 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 368 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4192 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 351 "/usr/share/sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4195 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 265 "/usr/share/sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 4198 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 28 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 4201 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 4204 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 115 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 4207 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 4210 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 4213 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 4216 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 4219 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kxmlguiclient.sip"
#include <kxmlguiclient.h>
#line 4222 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 207 "/usr/share/sip/PyQt4/QtXml/qdom.sip"
#include <qdom.h>
#line 4225 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kxmlguiclient.sip"
#include <kxmlguiclient.h>
#line 4228 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 115 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 4231 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/share/sip/PyQt4/QtGui/qaction.sip"
#include <qaction.h>
#line 4234 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kxmlguibuilder.sip"
#include <kxmlguibuilder.h>
#line 4237 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 115 "/usr/share/sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 4240 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 27 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kxmlguifactory.sip"
#include <kxmlguifactory.h>
#line 4243 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 26 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/kdeui/kactioncollection.sip"
#include <kactioncollection.h>
#line 4246 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"
#line 336 "/usr/share/sip/PyQt4/QtXml/qdom.sip"
#include <qdom.h>
#line 4249 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"


class sipKTextEditor_Document : public  ::KTextEditor::Document
{
public:
    sipKTextEditor_Document( ::QObject*);
    virtual ~sipKTextEditor_Document();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
     ::QString modeSection(int) const;
     ::QString highlightingModeSection(int) const;
    bool setHighlightingMode(const  ::QString&);
    bool setMode(const  ::QString&);
     ::QStringList highlightingModes() const;
     ::QStringList modes() const;
     ::QString highlightingMode() const;
     ::QString mode() const;
    bool removeLine(int);
    bool insertLines(int,const  ::QStringList&);
    bool insertLine(int,const  ::QString&);
    bool cursorInText(const  ::KTextEditor::Cursor&);
    bool removeText(const  ::KTextEditor::Range&,bool);
    bool replaceText(const  ::KTextEditor::Range&,const  ::QStringList&,bool);
    bool replaceText(const  ::KTextEditor::Range&,const  ::QString&,bool);
    bool insertText(const  ::KTextEditor::Cursor&,const  ::QStringList&,bool);
    bool insertText(const  ::KTextEditor::Cursor&,const  ::QString&,bool);
    bool clear();
    bool setText(const  ::QStringList&);
    bool setText(const  ::QString&);
    int lineLength(int) const;
    bool isEmpty() const;
    int totalCharacters() const;
     ::KTextEditor::Cursor documentEnd() const;
    int lines() const;
     ::QString line(int) const;
     ::QStringList textLines(const  ::KTextEditor::Range&,bool) const;
     ::QChar character(const  ::KTextEditor::Cursor&) const;
     ::QString text(const  ::KTextEditor::Range&,bool) const;
     ::QString text() const;
    bool endEditing();
    bool startEditing();
    bool documentSaveAs();
    bool documentSave();
    bool documentReload();
    const  ::QString& encoding() const;
    bool setEncoding(const  ::QString&);
     ::QString mimeType();
    const  ::QString& documentName() const;
    const QList< ::KTextEditor::View*>& views() const;
     ::KTextEditor::View* activeView() const;
     ::KTextEditor::View* createView( ::QWidget*);
     ::KTextEditor::Editor* editor();
    bool openFile();
    bool closeUrl();
    bool openUrl(const  ::KUrl&);
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent( ::QEvent*);
    void childEvent( ::QChildEvent*);
    void timerEvent( ::QTimerEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    bool event( ::QEvent*);
    void setComponentData(const  ::KComponentData&,bool);
     ::QAction* action(const  ::QDomElement&) const;
     ::KActionCollection* actionCollection() const;
     ::KComponentData componentData() const;
     ::QDomDocument domDocument() const;
     ::QString xmlFile() const;
     ::QString localXMLFile() const;
    void setComponentData(const  ::KComponentData&);
    void setXMLFile(const  ::QString&,bool,bool);
    void setLocalXMLFile(const  ::QString&);
    void setXML(const  ::QString&,bool);
    void setDOMDocument(const  ::QDomDocument&,bool);
    void stateChanged(const  ::QString&, ::KXMLGUIClient::ReverseStateChange);
    void embed( ::QWidget*);
     ::QWidget* widget();
    void setManager( ::KParts::PartManager*);
     ::KParts::Part* hitTest( ::QWidget*,const  ::QPoint&);
    void setSelectable(bool);
    void setWidget( ::QWidget*);
    void partActivateEvent( ::KParts::PartActivateEvent*);
    void partSelectEvent( ::KParts::PartSelectEvent*);
    void guiActivateEvent( ::KParts::GUIActivateEvent*);
    void setReadWrite(bool);
    bool queryClose();
    bool closeUrl(bool);
    bool saveAs(const  ::KUrl&);
    void setModified(bool);
    bool save();
    bool saveFile();
    bool saveToUrl();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKTextEditor_Document(const sipKTextEditor_Document &);
    sipKTextEditor_Document &operator = (const sipKTextEditor_Document &);

    char sipPyMethods[83];
};

sipKTextEditor_Document::sipKTextEditor_Document( ::QObject*a0):  ::KTextEditor::Document(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTextEditor_Document::~sipKTextEditor_Document()
{
    sipInstanceDestroyed(sipPySelf);
}

const QMetaObject *sipKTextEditor_Document::metaObject() const
{
    return sip_ktexteditor_qt_metaobject(sipPySelf,sipType_KTextEditor_Document);
}

int sipKTextEditor_Document::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id =  ::KTextEditor::Document::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_ktexteditor_qt_metacall(sipPySelf,sipType_KTextEditor_Document,_c,_id,_a);

    return _id;
}

void *sipKTextEditor_Document::qt_metacast(const char *_clname)
{
    return (sip_ktexteditor_qt_metacast(sipPySelf, sipType_KTextEditor_Document, _clname)) ? this :  ::KTextEditor::Document::qt_metacast(_clname);
}

 ::QString sipKTextEditor_Document::modeSection(int a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,sipName_Document,sipName_modeSection);

    if (!sipMeth)
        return  ::QString();

    extern  ::QString sipVH_ktexteditor_127(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return sipVH_ktexteditor_127(sipGILState, 0, sipPySelf, sipMeth, a0);
}

 ::QString sipKTextEditor_Document::highlightingModeSection(int a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,sipName_Document,sipName_highlightingModeSection);

    if (!sipMeth)
        return  ::QString();

    extern  ::QString sipVH_ktexteditor_127(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return sipVH_ktexteditor_127(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_Document::setHighlightingMode(const  ::QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,sipName_Document,sipName_setHighlightingMode);

    if (!sipMeth)
        return 0;

    extern bool sipVH_ktexteditor_52(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&);

    return sipVH_ktexteditor_52(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_Document::setMode(const  ::QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,sipName_Document,sipName_setMode);

    if (!sipMeth)
        return 0;

    extern bool sipVH_ktexteditor_52(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&);

    return sipVH_ktexteditor_52(sipGILState, 0, sipPySelf, sipMeth, a0);
}

 ::QStringList sipKTextEditor_Document::highlightingModes() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[4]),sipPySelf,sipName_Document,sipName_highlightingModes);

    if (!sipMeth)
        return  ::QStringList();

    extern  ::QStringList sipVH_ktexteditor_28(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_28(sipGILState, 0, sipPySelf, sipMeth);
}

 ::QStringList sipKTextEditor_Document::modes() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[5]),sipPySelf,sipName_Document,sipName_modes);

    if (!sipMeth)
        return  ::QStringList();

    extern  ::QStringList sipVH_ktexteditor_28(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_28(sipGILState, 0, sipPySelf, sipMeth);
}

 ::QString sipKTextEditor_Document::highlightingMode() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[6]),sipPySelf,sipName_Document,sipName_highlightingMode);

    if (!sipMeth)
        return  ::QString();

    extern  ::QString sipVH_ktexteditor_114(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_114(sipGILState, 0, sipPySelf, sipMeth);
}

 ::QString sipKTextEditor_Document::mode() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[7]),sipPySelf,sipName_Document,sipName_mode);

    if (!sipMeth)
        return  ::QString();

    extern  ::QString sipVH_ktexteditor_114(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_114(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKTextEditor_Document::removeLine(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,sipName_Document,sipName_removeLine);

    if (!sipMeth)
        return 0;

    extern bool sipVH_ktexteditor_138(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return sipVH_ktexteditor_138(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_Document::insertLines(int a0,const  ::QStringList& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,sipName_Document,sipName_insertLines);

    if (!sipMeth)
        return 0;

    extern bool sipVH_ktexteditor_137(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,const  ::QStringList&);

    return sipVH_ktexteditor_137(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipKTextEditor_Document::insertLine(int a0,const  ::QString& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,sipName_Document,sipName_insertLine);

    if (!sipMeth)
        return 0;

    extern bool sipVH_ktexteditor_136(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,const  ::QString&);

    return sipVH_ktexteditor_136(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipKTextEditor_Document::cursorInText(const  ::KTextEditor::Cursor& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_cursorInText);

    if (!sipMeth)
        return  ::KTextEditor::Document::cursorInText(a0);

    extern bool sipVH_ktexteditor_135(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KTextEditor::Cursor&);

    return sipVH_ktexteditor_135(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_Document::removeText(const  ::KTextEditor::Range& a0,bool a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,sipName_Document,sipName_removeText);

    if (!sipMeth)
        return 0;

    extern bool sipVH_ktexteditor_134(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KTextEditor::Range&,bool);

    return sipVH_ktexteditor_134(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipKTextEditor_Document::replaceText(const  ::KTextEditor::Range& a0,const  ::QStringList& a1,bool a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_replaceText);

    if (!sipMeth)
        return  ::KTextEditor::Document::replaceText(a0,a1,a2);

    extern bool sipVH_ktexteditor_133(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KTextEditor::Range&,const  ::QStringList&,bool);

    return sipVH_ktexteditor_133(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

bool sipKTextEditor_Document::replaceText(const  ::KTextEditor::Range& a0,const  ::QString& a1,bool a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_replaceText);

    if (!sipMeth)
        return  ::KTextEditor::Document::replaceText(a0,a1,a2);

    extern bool sipVH_ktexteditor_132(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KTextEditor::Range&,const  ::QString&,bool);

    return sipVH_ktexteditor_132(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

bool sipKTextEditor_Document::insertText(const  ::KTextEditor::Cursor& a0,const  ::QStringList& a1,bool a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,sipName_Document,sipName_insertText);

    if (!sipMeth)
        return 0;

    extern bool sipVH_ktexteditor_131(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KTextEditor::Cursor&,const  ::QStringList&,bool);

    return sipVH_ktexteditor_131(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

bool sipKTextEditor_Document::insertText(const  ::KTextEditor::Cursor& a0,const  ::QString& a1,bool a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,sipName_Document,sipName_insertText);

    if (!sipMeth)
        return 0;

    extern bool sipVH_ktexteditor_130(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KTextEditor::Cursor&,const  ::QString&,bool);

    return sipVH_ktexteditor_130(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

bool sipKTextEditor_Document::clear()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,sipName_Document,sipName_clear);

    if (!sipMeth)
        return 0;

    extern bool sipVH_ktexteditor_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_10(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKTextEditor_Document::setText(const  ::QStringList& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,sipName_Document,sipName_setText);

    if (!sipMeth)
        return 0;

    extern bool sipVH_ktexteditor_129(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QStringList&);

    return sipVH_ktexteditor_129(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_Document::setText(const  ::QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,sipName_Document,sipName_setText);

    if (!sipMeth)
        return 0;

    extern bool sipVH_ktexteditor_52(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&);

    return sipVH_ktexteditor_52(sipGILState, 0, sipPySelf, sipMeth, a0);
}

int sipKTextEditor_Document::lineLength(int a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[20]),sipPySelf,sipName_Document,sipName_lineLength);

    if (!sipMeth)
        return 0;

    extern int sipVH_ktexteditor_82(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return sipVH_ktexteditor_82(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_Document::isEmpty() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[21]),sipPySelf,NULL,sipName_isEmpty);

    if (!sipMeth)
        return  ::KTextEditor::Document::isEmpty();

    extern bool sipVH_ktexteditor_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_10(sipGILState, 0, sipPySelf, sipMeth);
}

int sipKTextEditor_Document::totalCharacters() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[22]),sipPySelf,sipName_Document,sipName_totalCharacters);

    if (!sipMeth)
        return 0;

    extern int sipVH_ktexteditor_84(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_84(sipGILState, 0, sipPySelf, sipMeth);
}

 ::KTextEditor::Cursor sipKTextEditor_Document::documentEnd() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[23]),sipPySelf,sipName_Document,sipName_documentEnd);

    if (!sipMeth)
        return  ::KTextEditor::Cursor();

    extern  ::KTextEditor::Cursor sipVH_ktexteditor_128(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_128(sipGILState, 0, sipPySelf, sipMeth);
}

int sipKTextEditor_Document::lines() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[24]),sipPySelf,sipName_Document,sipName_lines);

    if (!sipMeth)
        return 0;

    extern int sipVH_ktexteditor_84(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_84(sipGILState, 0, sipPySelf, sipMeth);
}

 ::QString sipKTextEditor_Document::line(int a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[25]),sipPySelf,sipName_Document,sipName_line);

    if (!sipMeth)
        return  ::QString();

    extern  ::QString sipVH_ktexteditor_127(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return sipVH_ktexteditor_127(sipGILState, 0, sipPySelf, sipMeth, a0);
}

 ::QStringList sipKTextEditor_Document::textLines(const  ::KTextEditor::Range& a0,bool a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[26]),sipPySelf,sipName_Document,sipName_textLines);

    if (!sipMeth)
        return  ::QStringList();

    extern  ::QStringList sipVH_ktexteditor_126(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KTextEditor::Range&,bool);

    return sipVH_ktexteditor_126(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

 ::QChar sipKTextEditor_Document::character(const  ::KTextEditor::Cursor& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[27]),sipPySelf,sipName_Document,sipName_character);

    if (!sipMeth)
        return  ::QChar();

    extern  ::QChar sipVH_ktexteditor_125(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KTextEditor::Cursor&);

    return sipVH_ktexteditor_125(sipGILState, 0, sipPySelf, sipMeth, a0);
}

 ::QString sipKTextEditor_Document::text(const  ::KTextEditor::Range& a0,bool a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[28]),sipPySelf,sipName_Document,sipName_text);

    if (!sipMeth)
        return  ::QString();

    extern  ::QString sipVH_ktexteditor_124(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KTextEditor::Range&,bool);

    return sipVH_ktexteditor_124(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

 ::QString sipKTextEditor_Document::text() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[29]),sipPySelf,sipName_Document,sipName_text);

    if (!sipMeth)
        return  ::QString();

    extern  ::QString sipVH_ktexteditor_114(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_114(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKTextEditor_Document::endEditing()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[30],sipPySelf,sipName_Document,sipName_endEditing);

    if (!sipMeth)
        return 0;

    extern bool sipVH_ktexteditor_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_10(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKTextEditor_Document::startEditing()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[31],sipPySelf,sipName_Document,sipName_startEditing);

    if (!sipMeth)
        return 0;

    extern bool sipVH_ktexteditor_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_10(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKTextEditor_Document::documentSaveAs()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[32],sipPySelf,sipName_Document,sipName_documentSaveAs);

    if (!sipMeth)
        return 0;

    extern bool sipVH_ktexteditor_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_10(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKTextEditor_Document::documentSave()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[33],sipPySelf,sipName_Document,sipName_documentSave);

    if (!sipMeth)
        return 0;

    extern bool sipVH_ktexteditor_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_10(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKTextEditor_Document::documentReload()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[34],sipPySelf,sipName_Document,sipName_documentReload);

    if (!sipMeth)
        return 0;

    extern bool sipVH_ktexteditor_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_10(sipGILState, 0, sipPySelf, sipMeth);
}

const  ::QString& sipKTextEditor_Document::encoding() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[35]),sipPySelf,sipName_Document,sipName_encoding);

    if (!sipMeth)
        return *new  ::QString();

    extern const  ::QString& sipVH_ktexteditor_123(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_123(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKTextEditor_Document::setEncoding(const  ::QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[36],sipPySelf,sipName_Document,sipName_setEncoding);

    if (!sipMeth)
        return 0;

    extern bool sipVH_ktexteditor_52(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&);

    return sipVH_ktexteditor_52(sipGILState, 0, sipPySelf, sipMeth, a0);
}

 ::QString sipKTextEditor_Document::mimeType()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[37],sipPySelf,sipName_Document,sipName_mimeType);

    if (!sipMeth)
        return  ::QString();

    extern  ::QString sipVH_ktexteditor_114(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_114(sipGILState, 0, sipPySelf, sipMeth);
}

const  ::QString& sipKTextEditor_Document::documentName() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[38]),sipPySelf,sipName_Document,sipName_documentName);

    if (!sipMeth)
        return *new  ::QString();

    extern const  ::QString& sipVH_ktexteditor_123(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_123(sipGILState, 0, sipPySelf, sipMeth);
}

const QList< ::KTextEditor::View*>& sipKTextEditor_Document::views() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[39]),sipPySelf,sipName_Document,sipName_views);

    if (!sipMeth)
        return *new QList< ::KTextEditor::View*>();

    extern const QList< ::KTextEditor::View*>& sipVH_ktexteditor_122(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_122(sipGILState, 0, sipPySelf, sipMeth);
}

 ::KTextEditor::View* sipKTextEditor_Document::activeView() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[40]),sipPySelf,sipName_Document,sipName_activeView);

    if (!sipMeth)
        return 0;

    extern  ::KTextEditor::View* sipVH_ktexteditor_89(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_89(sipGILState, 0, sipPySelf, sipMeth);
}

 ::KTextEditor::View* sipKTextEditor_Document::createView( ::QWidget*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[41],sipPySelf,sipName_Document,sipName_createView);

    if (!sipMeth)
        return 0;

    extern  ::KTextEditor::View* sipVH_ktexteditor_121(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QWidget*);

    return sipVH_ktexteditor_121(sipGILState, 0, sipPySelf, sipMeth, a0);
}

 ::KTextEditor::Editor* sipKTextEditor_Document::editor()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[42],sipPySelf,sipName_Document,sipName_editor);

    if (!sipMeth)
        return 0;

    extern  ::KTextEditor::Editor* sipVH_ktexteditor_120(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_120(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKTextEditor_Document::openFile()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[43],sipPySelf,sipName_Document,sipName_openFile);

    if (!sipMeth)
        return 0;

    extern bool sipVH_ktexteditor_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_10(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKTextEditor_Document::closeUrl()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[44],sipPySelf,NULL,sipName_closeUrl);

    if (!sipMeth)
        return  ::KTextEditor::Document::closeUrl();

    extern bool sipVH_ktexteditor_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_10(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKTextEditor_Document::openUrl(const  ::KUrl& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[45],sipPySelf,NULL,sipName_openUrl);

    if (!sipMeth)
        return  ::KTextEditor::Document::openUrl(a0);

    extern bool sipVH_ktexteditor_100(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KUrl&);

    return sipVH_ktexteditor_100(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_Document::disconnectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[46],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
         ::KTextEditor::Document::disconnectNotify(a0);
        return;
    }

    extern void sipVH_ktexteditor_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    sipVH_ktexteditor_0(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_Document::connectNotify(const char*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[47],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
         ::KTextEditor::Document::connectNotify(a0);
        return;
    }

    extern void sipVH_ktexteditor_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*);

    sipVH_ktexteditor_0(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_Document::customEvent( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[48],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
         ::KTextEditor::Document::customEvent(a0);
        return;
    }

    extern void sipVH_ktexteditor_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_ktexteditor_1(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_Document::childEvent( ::QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[49],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
         ::KTextEditor::Document::childEvent(a0);
        return;
    }

    extern void sipVH_ktexteditor_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_ktexteditor_2(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_Document::timerEvent( ::QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[50],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
         ::KTextEditor::Document::timerEvent(a0);
        return;
    }

    extern void sipVH_ktexteditor_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_ktexteditor_3(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_Document::eventFilter( ::QObject*a0, ::QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[51],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return  ::KTextEditor::Document::eventFilter(a0,a1);

    extern bool sipVH_ktexteditor_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_ktexteditor_4(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

bool sipKTextEditor_Document::event( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[52],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return  ::KTextEditor::Document::event(a0);

    extern bool sipVH_ktexteditor_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    return sipVH_ktexteditor_5(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_Document::setComponentData(const  ::KComponentData& a0,bool a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[53],sipPySelf,NULL,sipName_setComponentData);

    if (!sipMeth)
    {
         ::KTextEditor::Document::setComponentData(a0,a1);
        return;
    }

    extern void sipVH_ktexteditor_119(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KComponentData&,bool);

    sipVH_ktexteditor_119(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

 ::QAction* sipKTextEditor_Document::action(const  ::QDomElement& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[54]),sipPySelf,NULL,sipName_action);

    if (!sipMeth)
        return  ::KTextEditor::Document::action(a0);

    extern  ::QAction* sipVH_ktexteditor_118(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QDomElement&);

    return sipVH_ktexteditor_118(sipGILState, 0, sipPySelf, sipMeth, a0);
}

 ::KActionCollection* sipKTextEditor_Document::actionCollection() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[55]),sipPySelf,NULL,sipName_actionCollection);

    if (!sipMeth)
        return  ::KTextEditor::Document::actionCollection();

    extern  ::KActionCollection* sipVH_ktexteditor_117(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_117(sipGILState, 0, sipPySelf, sipMeth);
}

 ::KComponentData sipKTextEditor_Document::componentData() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[56]),sipPySelf,NULL,sipName_componentData);

    if (!sipMeth)
        return  ::KTextEditor::Document::componentData();

    extern  ::KComponentData sipVH_ktexteditor_116(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_116(sipGILState, 0, sipPySelf, sipMeth);
}

 ::QDomDocument sipKTextEditor_Document::domDocument() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[57]),sipPySelf,NULL,sipName_domDocument);

    if (!sipMeth)
        return  ::KTextEditor::Document::domDocument();

    extern  ::QDomDocument sipVH_ktexteditor_115(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_115(sipGILState, 0, sipPySelf, sipMeth);
}

 ::QString sipKTextEditor_Document::xmlFile() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[58]),sipPySelf,NULL,sipName_xmlFile);

    if (!sipMeth)
        return  ::KTextEditor::Document::xmlFile();

    extern  ::QString sipVH_ktexteditor_114(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_114(sipGILState, 0, sipPySelf, sipMeth);
}

 ::QString sipKTextEditor_Document::localXMLFile() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[59]),sipPySelf,NULL,sipName_localXMLFile);

    if (!sipMeth)
        return  ::KTextEditor::Document::localXMLFile();

    extern  ::QString sipVH_ktexteditor_114(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_114(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKTextEditor_Document::setComponentData(const  ::KComponentData& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[60],sipPySelf,NULL,sipName_setComponentData);

    if (!sipMeth)
    {
         ::KTextEditor::Document::setComponentData(a0);
        return;
    }

    extern void sipVH_ktexteditor_113(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KComponentData&);

    sipVH_ktexteditor_113(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_Document::setXMLFile(const  ::QString& a0,bool a1,bool a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[61],sipPySelf,NULL,sipName_setXMLFile);

    if (!sipMeth)
    {
         ::KTextEditor::Document::setXMLFile(a0,a1,a2);
        return;
    }

    extern void sipVH_ktexteditor_112(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&,bool,bool);

    sipVH_ktexteditor_112(sipGILState, 0, sipPySelf, sipMeth, a0, a1, a2);
}

void sipKTextEditor_Document::setLocalXMLFile(const  ::QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[62],sipPySelf,NULL,sipName_setLocalXMLFile);

    if (!sipMeth)
    {
         ::KTextEditor::Document::setLocalXMLFile(a0);
        return;
    }

    extern void sipVH_ktexteditor_111(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&);

    sipVH_ktexteditor_111(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_Document::setXML(const  ::QString& a0,bool a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[63],sipPySelf,NULL,sipName_setXML);

    if (!sipMeth)
    {
         ::KTextEditor::Document::setXML(a0,a1);
        return;
    }

    extern void sipVH_ktexteditor_110(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&,bool);

    sipVH_ktexteditor_110(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

void sipKTextEditor_Document::setDOMDocument(const  ::QDomDocument& a0,bool a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[64],sipPySelf,NULL,sipName_setDOMDocument);

    if (!sipMeth)
    {
         ::KTextEditor::Document::setDOMDocument(a0,a1);
        return;
    }

    extern void sipVH_ktexteditor_109(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QDomDocument&,bool);

    sipVH_ktexteditor_109(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

void sipKTextEditor_Document::stateChanged(const  ::QString& a0, ::KXMLGUIClient::ReverseStateChange a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[65],sipPySelf,NULL,sipName_stateChanged);

    if (!sipMeth)
    {
         ::KTextEditor::Document::stateChanged(a0,a1);
        return;
    }

    extern void sipVH_ktexteditor_108(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QString&, ::KXMLGUIClient::ReverseStateChange);

    sipVH_ktexteditor_108(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

void sipKTextEditor_Document::embed( ::QWidget*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[66],sipPySelf,NULL,sipName_embed);

    if (!sipMeth)
    {
         ::KTextEditor::Document::embed(a0);
        return;
    }

    extern void sipVH_ktexteditor_104(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QWidget*);

    sipVH_ktexteditor_104(sipGILState, 0, sipPySelf, sipMeth, a0);
}

 ::QWidget* sipKTextEditor_Document::widget()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[67],sipPySelf,NULL,sipName_widget);

    if (!sipMeth)
        return  ::KTextEditor::Document::widget();

    extern  ::QWidget* sipVH_ktexteditor_107(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_107(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKTextEditor_Document::setManager( ::KParts::PartManager*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[68],sipPySelf,NULL,sipName_setManager);

    if (!sipMeth)
    {
         ::KTextEditor::Document::setManager(a0);
        return;
    }

    extern void sipVH_ktexteditor_106(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KParts::PartManager*);

    sipVH_ktexteditor_106(sipGILState, 0, sipPySelf, sipMeth, a0);
}

 ::KParts::Part* sipKTextEditor_Document::hitTest( ::QWidget*a0,const  ::QPoint& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[69],sipPySelf,NULL,sipName_hitTest);

    if (!sipMeth)
        return  ::KTextEditor::Document::hitTest(a0,a1);

    extern  ::KParts::Part* sipVH_ktexteditor_105(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QWidget*,const  ::QPoint&);

    return sipVH_ktexteditor_105(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

void sipKTextEditor_Document::setSelectable(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[70],sipPySelf,NULL,sipName_setSelectable);

    if (!sipMeth)
    {
         ::KTextEditor::Document::setSelectable(a0);
        return;
    }

    extern void sipVH_ktexteditor_9(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    sipVH_ktexteditor_9(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_Document::setWidget( ::QWidget*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[71],sipPySelf,NULL,sipName_setWidget);

    if (!sipMeth)
    {
         ::KTextEditor::Document::setWidget(a0);
        return;
    }

    extern void sipVH_ktexteditor_104(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QWidget*);

    sipVH_ktexteditor_104(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_Document::partActivateEvent( ::KParts::PartActivateEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[72],sipPySelf,NULL,sipName_partActivateEvent);

    if (!sipMeth)
    {
         ::KTextEditor::Document::partActivateEvent(a0);
        return;
    }

    extern void sipVH_ktexteditor_103(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KParts::PartActivateEvent*);

    sipVH_ktexteditor_103(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_Document::partSelectEvent( ::KParts::PartSelectEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[73],sipPySelf,NULL,sipName_partSelectEvent);

    if (!sipMeth)
    {
         ::KTextEditor::Document::partSelectEvent(a0);
        return;
    }

    extern void sipVH_ktexteditor_102(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KParts::PartSelectEvent*);

    sipVH_ktexteditor_102(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_Document::guiActivateEvent( ::KParts::GUIActivateEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[74],sipPySelf,NULL,sipName_guiActivateEvent);

    if (!sipMeth)
    {
         ::KTextEditor::Document::guiActivateEvent(a0);
        return;
    }

    extern void sipVH_ktexteditor_101(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KParts::GUIActivateEvent*);

    sipVH_ktexteditor_101(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_Document::setReadWrite(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[75],sipPySelf,NULL,sipName_setReadWrite);

    if (!sipMeth)
    {
         ::KTextEditor::Document::setReadWrite(a0);
        return;
    }

    extern void sipVH_ktexteditor_9(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    sipVH_ktexteditor_9(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_Document::queryClose()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[76],sipPySelf,NULL,sipName_queryClose);

    if (!sipMeth)
        return  ::KTextEditor::Document::queryClose();

    extern bool sipVH_ktexteditor_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_10(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKTextEditor_Document::closeUrl(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[77],sipPySelf,NULL,sipName_closeUrl);

    if (!sipMeth)
        return  ::KTextEditor::Document::closeUrl(a0);

    extern bool sipVH_ktexteditor_62(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    return sipVH_ktexteditor_62(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_Document::saveAs(const  ::KUrl& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[78],sipPySelf,NULL,sipName_saveAs);

    if (!sipMeth)
        return  ::KTextEditor::Document::saveAs(a0);

    extern bool sipVH_ktexteditor_100(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KUrl&);

    return sipVH_ktexteditor_100(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_Document::setModified(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[79],sipPySelf,NULL,sipName_setModified);

    if (!sipMeth)
    {
         ::KTextEditor::Document::setModified(a0);
        return;
    }

    extern void sipVH_ktexteditor_9(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    sipVH_ktexteditor_9(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_Document::save()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[80],sipPySelf,NULL,sipName_save);

    if (!sipMeth)
        return  ::KTextEditor::Document::save();

    extern bool sipVH_ktexteditor_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_10(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKTextEditor_Document::saveFile()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[81],sipPySelf,sipName_Document,sipName_saveFile);

    if (!sipMeth)
        return 0;

    extern bool sipVH_ktexteditor_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_10(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipKTextEditor_Document::saveToUrl()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[82],sipPySelf,NULL,sipName_saveToUrl);

    if (!sipMeth)
        return  ::KTextEditor::Document::saveToUrl();

    extern bool sipVH_ktexteditor_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_10(sipGILState, 0, sipPySelf, sipMeth);
}


extern "C" {static PyObject *meth_KTextEditor_Document_editor(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_editor(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
         ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
             ::KTextEditor::Editor*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_editor);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->editor();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KTextEditor_Editor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_editor, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_createView(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_createView(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
         ::QWidget* a0;
         ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ:", &sipSelf, sipType_KTextEditor_Document, &sipCpp, sipType_QWidget, &a0))
        {
             ::KTextEditor::View*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_createView);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->createView(a0);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KTextEditor_View,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_createView, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_activeView(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_activeView(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const  ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
             ::KTextEditor::View*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_activeView);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->activeView();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KTextEditor_View,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_activeView, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_views(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_views(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const  ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
            QList< ::KTextEditor::View*>*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_views);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList< ::KTextEditor::View*>(sipCpp->views());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QList_0101KTextEditor_View,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_views, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_documentName(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_documentName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const  ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
             ::QString*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_documentName);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QString(sipCpp->documentName());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_documentName, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_mimeType(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_mimeType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
         ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
             ::QString*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_mimeType);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QString(sipCpp->mimeType());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_mimeType, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_setEncoding(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_setEncoding(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const  ::QString* a0;
        int a0State = 0;
         ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KTextEditor_Document, &sipCpp, sipType_QString,&a0, &a0State))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_setEncoding);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setEncoding(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_setEncoding, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_encoding(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_encoding(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const  ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
             ::QString*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_encoding);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QString(sipCpp->encoding());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_encoding, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_documentReload(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_documentReload(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
         ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_documentReload);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->documentReload();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_documentReload, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_documentSave(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_documentSave(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
         ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_documentSave);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->documentSave();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_documentSave, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_documentSaveAs(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_documentSaveAs(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
         ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_documentSaveAs);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->documentSaveAs();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_documentSaveAs, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_startEditing(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_startEditing(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
         ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_startEditing);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->startEditing();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_startEditing, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_endEditing(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_endEditing(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
         ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_endEditing);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->endEditing();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_endEditing, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_text(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_text(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const  ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
             ::QString*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_text);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QString(sipCpp->text());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    {
        const  ::KTextEditor::Range* a0;
        bool a1 = 0;
        const  ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9|b", &sipSelf, sipType_KTextEditor_Document, &sipCpp, sipType_KTextEditor_Range, &a0, &a1))
        {
             ::QString*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_text);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QString(sipCpp->text(*a0,a1));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_text, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_character(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_character(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const  ::KTextEditor::Cursor* a0;
        const  ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KTextEditor_Document, &sipCpp, sipType_KTextEditor_Cursor, &a0))
        {
             ::QChar*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_character);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QChar(sipCpp->character(*a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QChar,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_character, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_textLines(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_textLines(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const  ::KTextEditor::Range* a0;
        bool a1 = 0;
        const  ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9|b", &sipSelf, sipType_KTextEditor_Document, &sipCpp, sipType_KTextEditor_Range, &a0, &a1))
        {
             ::QStringList*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_textLines);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QStringList(sipCpp->textLines(*a0,a1));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_textLines, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_line(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_line(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        int a0;
        const  ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KTextEditor_Document, &sipCpp, &a0))
        {
             ::QString*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_line);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QString(sipCpp->line(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_line, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_lines(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_lines(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const  ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
            int sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_lines);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->lines();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_lines, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_documentEnd(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_documentEnd(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const  ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
             ::KTextEditor::Cursor*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_documentEnd);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::KTextEditor::Cursor(sipCpp->documentEnd());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KTextEditor_Cursor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_documentEnd, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_documentRange(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_documentRange(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
             ::KTextEditor::Range*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::KTextEditor::Range(sipCpp->documentRange());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KTextEditor_Range,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_documentRange, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_totalCharacters(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_totalCharacters(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const  ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
            int sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_totalCharacters);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->totalCharacters();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_totalCharacters, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_isEmpty(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_isEmpty(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp-> ::KTextEditor::Document::isEmpty() : sipCpp->isEmpty());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_isEmpty, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_lineLength(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_lineLength(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        int a0;
        const  ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KTextEditor_Document, &sipCpp, &a0))
        {
            int sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_lineLength);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->lineLength(a0);
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_lineLength, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_endOfLine(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_endOfLine(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const  ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KTextEditor_Document, &sipCpp, &a0))
        {
             ::KTextEditor::Cursor*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::KTextEditor::Cursor(sipCpp->endOfLine(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KTextEditor_Cursor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_endOfLine, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_setText(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_setText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const  ::QString* a0;
        int a0State = 0;
         ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KTextEditor_Document, &sipCpp, sipType_QString,&a0, &a0State))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_setText);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setText(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const  ::QStringList* a0;
        int a0State = 0;
         ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KTextEditor_Document, &sipCpp, sipType_QStringList,&a0, &a0State))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_setText);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setText(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QStringList *>(a0),sipType_QStringList,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_setText, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_clear(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_clear(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
         ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_clear);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->clear();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_clear, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_insertText(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_insertText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const  ::KTextEditor::Cursor* a0;
        const  ::QString* a1;
        int a1State = 0;
        bool a2 = 0;
         ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J1|b", &sipSelf, sipType_KTextEditor_Document, &sipCpp, sipType_KTextEditor_Cursor, &a0, sipType_QString,&a1, &a1State, &a2))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_insertText);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->insertText(*a0,*a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QString *>(a1),sipType_QString,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const  ::KTextEditor::Cursor* a0;
        const  ::QStringList* a1;
        int a1State = 0;
        bool a2 = 0;
         ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J1|b", &sipSelf, sipType_KTextEditor_Document, &sipCpp, sipType_KTextEditor_Cursor, &a0, sipType_QStringList,&a1, &a1State, &a2))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_insertText);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->insertText(*a0,*a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QStringList *>(a1),sipType_QStringList,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_insertText, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_replaceText(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_replaceText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::KTextEditor::Range* a0;
        const  ::QString* a1;
        int a1State = 0;
        bool a2 = 0;
         ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J1|b", &sipSelf, sipType_KTextEditor_Document, &sipCpp, sipType_KTextEditor_Range, &a0, sipType_QString,&a1, &a1State, &a2))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp-> ::KTextEditor::Document::replaceText(*a0,*a1,a2) : sipCpp->replaceText(*a0,*a1,a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QString *>(a1),sipType_QString,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const  ::KTextEditor::Range* a0;
        const  ::QStringList* a1;
        int a1State = 0;
        bool a2 = 0;
         ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J1|b", &sipSelf, sipType_KTextEditor_Document, &sipCpp, sipType_KTextEditor_Range, &a0, sipType_QStringList,&a1, &a1State, &a2))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp-> ::KTextEditor::Document::replaceText(*a0,*a1,a2) : sipCpp->replaceText(*a0,*a1,a2));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QStringList *>(a1),sipType_QStringList,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_replaceText, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_removeText(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_removeText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const  ::KTextEditor::Range* a0;
        bool a1 = 0;
         ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9|b", &sipSelf, sipType_KTextEditor_Document, &sipCpp, sipType_KTextEditor_Range, &a0, &a1))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_removeText);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->removeText(*a0,a1);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_removeText, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_cursorInText(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_cursorInText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::KTextEditor::Cursor* a0;
         ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KTextEditor_Document, &sipCpp, sipType_KTextEditor_Cursor, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp-> ::KTextEditor::Document::cursorInText(*a0) : sipCpp->cursorInText(*a0));
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_cursorInText, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_insertLine(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_insertLine(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        int a0;
        const  ::QString* a1;
        int a1State = 0;
         ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ1", &sipSelf, sipType_KTextEditor_Document, &sipCpp, &a0, sipType_QString,&a1, &a1State))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_insertLine);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->insertLine(a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QString *>(a1),sipType_QString,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_insertLine, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_insertLines(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_insertLines(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        int a0;
        const  ::QStringList* a1;
        int a1State = 0;
         ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ1", &sipSelf, sipType_KTextEditor_Document, &sipCpp, &a0, sipType_QStringList,&a1, &a1State))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_insertLines);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->insertLines(a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QStringList *>(a1),sipType_QStringList,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_insertLines, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_removeLine(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_removeLine(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        int a0;
         ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KTextEditor_Document, &sipCpp, &a0))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_removeLine);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->removeLine(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_removeLine, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_mode(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_mode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const  ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
             ::QString*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_mode);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QString(sipCpp->mode());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_mode, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_highlightingMode(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_highlightingMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const  ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
             ::QString*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_highlightingMode);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QString(sipCpp->highlightingMode());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_highlightingMode, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_modes(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_modes(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const  ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
             ::QStringList*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_modes);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QStringList(sipCpp->modes());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_modes, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_highlightingModes(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_highlightingModes(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const  ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
             ::QStringList*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_highlightingModes);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QStringList(sipCpp->highlightingModes());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_highlightingModes, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_setMode(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_setMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const  ::QString* a0;
        int a0State = 0;
         ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KTextEditor_Document, &sipCpp, sipType_QString,&a0, &a0State))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_setMode);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setMode(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_setMode, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_setHighlightingMode(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_setHighlightingMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const  ::QString* a0;
        int a0State = 0;
         ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KTextEditor_Document, &sipCpp, sipType_QString,&a0, &a0State))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_setHighlightingMode);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->setHighlightingMode(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_setHighlightingMode, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_highlightingModeSection(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_highlightingModeSection(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        int a0;
        const  ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KTextEditor_Document, &sipCpp, &a0))
        {
             ::QString*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_highlightingModeSection);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QString(sipCpp->highlightingModeSection(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_highlightingModeSection, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_modeSection(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_modeSection(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        int a0;
        const  ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KTextEditor_Document, &sipCpp, &a0))
        {
             ::QString*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_Document, sipName_modeSection);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QString(sipCpp->modeSection(a0));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_modeSection, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_setSuppressOpeningErrorDialogs(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_setSuppressOpeningErrorDialogs(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
         ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KTextEditor_Document, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSuppressOpeningErrorDialogs(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_setSuppressOpeningErrorDialogs, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_suppressOpeningErrorDialogs(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_suppressOpeningErrorDialogs(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->suppressOpeningErrorDialogs();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_suppressOpeningErrorDialogs, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_openingError(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_openingError(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->openingError();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_openingError, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_openingErrorMessage(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_openingErrorMessage(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
             ::QString*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::QString(sipCpp->openingErrorMessage());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_openingErrorMessage, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_setOpeningError(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_setOpeningError(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
         ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pb", &sipSelf, sipType_KTextEditor_Document, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setOpeningError(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_setOpeningError, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_setOpeningErrorMessage(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_setOpeningErrorMessage(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::QString* a0;
        int a0State = 0;
         ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ1", &sipSelf, sipType_KTextEditor_Document, &sipCpp, sipType_QString,&a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setOpeningErrorMessage(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_setOpeningErrorMessage, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_annotationInterface(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_annotationInterface(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
         ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
             ::KTextEditor::AnnotationInterface*sipRes = 0;

#line 148 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/document.sip"
    Py_BEGIN_ALLOW_THREADS
    sipRes = dynamic_cast<KTextEditor::AnnotationInterface*>(sipCpp);
    Py_END_ALLOW_THREADS
#line 7378 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"

            return sipConvertFromType(sipRes,sipType_KTextEditor_AnnotationInterface,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_annotationInterface, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_markInterface(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_markInterface(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
         ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
             ::KTextEditor::MarkInterface*sipRes = 0;

#line 155 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/document.sip"
    Py_BEGIN_ALLOW_THREADS
    sipRes = dynamic_cast<KTextEditor::MarkInterface*>(sipCpp);
    Py_END_ALLOW_THREADS
#line 7407 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"

            return sipConvertFromType(sipRes,sipType_KTextEditor_MarkInterface,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_markInterface, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_modificationInterface(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_modificationInterface(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
         ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
             ::KTextEditor::ModificationInterface*sipRes = 0;

#line 162 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/document.sip"
    Py_BEGIN_ALLOW_THREADS
    sipRes = dynamic_cast<KTextEditor::ModificationInterface*>(sipCpp);
    Py_END_ALLOW_THREADS
#line 7436 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"

            return sipConvertFromType(sipRes,sipType_KTextEditor_ModificationInterface,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_modificationInterface, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_searchInterface(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_searchInterface(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
         ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
             ::KTextEditor::SearchInterface*sipRes = 0;

#line 169 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/document.sip"
    Py_BEGIN_ALLOW_THREADS
    sipRes = dynamic_cast<KTextEditor::SearchInterface*>(sipCpp);
    Py_END_ALLOW_THREADS
#line 7465 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"

            return sipConvertFromType(sipRes,sipType_KTextEditor_SearchInterface,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_searchInterface, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_variableInterface(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_variableInterface(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
         ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
             ::KTextEditor::VariableInterface*sipRes = 0;

#line 176 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/document.sip"
    Py_BEGIN_ALLOW_THREADS
    sipRes = dynamic_cast<KTextEditor::VariableInterface*>(sipCpp);
    Py_END_ALLOW_THREADS
#line 7494 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"

            return sipConvertFromType(sipRes,sipType_KTextEditor_VariableInterface,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_variableInterface, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_movingInterface(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_movingInterface(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
         ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
             ::KTextEditor::MovingInterface*sipRes = 0;

#line 183 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/document.sip"
    Py_BEGIN_ALLOW_THREADS
    sipRes = dynamic_cast<KTextEditor::MovingInterface*>(sipCpp);
    Py_END_ALLOW_THREADS
#line 7523 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"

            return sipConvertFromType(sipRes,sipType_KTextEditor_MovingInterface,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_movingInterface, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_highlightInterface(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_highlightInterface(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
         ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
             ::KTextEditor::HighlightInterface*sipRes = 0;

#line 190 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/document.sip"
    Py_BEGIN_ALLOW_THREADS
    sipRes = dynamic_cast<KTextEditor::HighlightInterface*>(sipCpp);
    Py_END_ALLOW_THREADS
#line 7552 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"

            return sipConvertFromType(sipRes,sipType_KTextEditor_HighlightInterface,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_highlightInterface, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_configInterface(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_configInterface(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
         ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
             ::KTextEditor::ConfigInterface*sipRes = 0;

#line 197 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/document.sip"
    Py_BEGIN_ALLOW_THREADS
    sipRes = dynamic_cast<KTextEditor::ConfigInterface*>(sipCpp);
    Py_END_ALLOW_THREADS
#line 7581 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"

            return sipConvertFromType(sipRes,sipType_KTextEditor_ConfigInterface,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_configInterface, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_parameterizedSessionConfigInterface(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_parameterizedSessionConfigInterface(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
         ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
             ::KTextEditor::ParameterizedSessionConfigInterface*sipRes = 0;

#line 204 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/document.sip"
    Py_BEGIN_ALLOW_THREADS
    sipRes = dynamic_cast<KTextEditor::ParameterizedSessionConfigInterface*>(sipCpp);
    Py_END_ALLOW_THREADS
#line 7610 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"

            return sipConvertFromType(sipRes,sipType_KTextEditor_ParameterizedSessionConfigInterface,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_parameterizedSessionConfigInterface, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_sessionConfigInterface(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_sessionConfigInterface(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
         ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
             ::KTextEditor::SessionConfigInterface*sipRes = 0;

#line 211 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/document.sip"
    Py_BEGIN_ALLOW_THREADS
    sipRes = dynamic_cast<KTextEditor::SessionConfigInterface*>(sipCpp);
    Py_END_ALLOW_THREADS
#line 7639 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"

            return sipConvertFromType(sipRes,sipType_KTextEditor_SessionConfigInterface,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_sessionConfigInterface, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_recoveryInterface(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_recoveryInterface(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
         ::KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Document, &sipCpp))
        {
             ::KTextEditor::RecoveryInterface*sipRes = 0;

#line 218 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/document.sip"
    Py_BEGIN_ALLOW_THREADS
    sipRes = dynamic_cast<KTextEditor::RecoveryInterface*>(sipCpp);
    Py_END_ALLOW_THREADS
#line 7668 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"

            return sipConvertFromType(sipRes,sipType_KTextEditor_RecoveryInterface,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Document, sipName_recoveryInterface, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_KTextEditor_Document(void *, const sipTypeDef *);}
static void *cast_KTextEditor_Document(void *sipCppV, const sipTypeDef *targetType)
{
     ::KTextEditor::Document *sipCpp = reinterpret_cast< ::KTextEditor::Document *>(sipCppV);

    if (targetType == sipType_KParts_ReadWritePart)
        return static_cast< ::KParts::ReadWritePart *>(sipCpp);

    if (targetType == sipType_KParts_ReadOnlyPart)
        return static_cast< ::KParts::ReadOnlyPart *>(sipCpp);

    if (targetType == sipType_KParts_Part)
        return static_cast< ::KParts::Part *>(sipCpp);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    if (targetType == sipType_KParts_PartBase)
        return static_cast< ::KParts::PartBase *>(sipCpp);

    if (targetType == sipType_KXMLGUIClient)
        return static_cast< ::KXMLGUIClient *>(sipCpp);

    return sipCppV;
}


/* Call the instance's destructor. */
extern "C" {static void release_KTextEditor_Document(void *, int);}
static void release_KTextEditor_Document(void *sipCppV, int)
{
     ::KTextEditor::Document *sipCpp = reinterpret_cast< ::KTextEditor::Document *>(sipCppV);

    Py_BEGIN_ALLOW_THREADS

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KTextEditor_Document(sipSimpleWrapper *);}
static void dealloc_KTextEditor_Document(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipKTextEditor_Document *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_KTextEditor_Document(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


extern "C" {static void *init_type_KTextEditor_Document(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KTextEditor_Document(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipKTextEditor_Document *sipCpp = 0;

    {
         ::QObject* a0 = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_Document(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KTextEditor_Document[] = {{8, 9, 1}};


static PyMethodDef methods_KTextEditor_Document[] = {
    {SIP_MLNAME_CAST(sipName_activeView), meth_KTextEditor_Document_activeView, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_annotationInterface), meth_KTextEditor_Document_annotationInterface, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_character), meth_KTextEditor_Document_character, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clear), meth_KTextEditor_Document_clear, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_configInterface), meth_KTextEditor_Document_configInterface, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createView), meth_KTextEditor_Document_createView, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_cursorInText), meth_KTextEditor_Document_cursorInText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_documentEnd), meth_KTextEditor_Document_documentEnd, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_documentName), meth_KTextEditor_Document_documentName, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_documentRange), meth_KTextEditor_Document_documentRange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_documentReload), meth_KTextEditor_Document_documentReload, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_documentSave), meth_KTextEditor_Document_documentSave, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_documentSaveAs), meth_KTextEditor_Document_documentSaveAs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_editor), meth_KTextEditor_Document_editor, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_encoding), meth_KTextEditor_Document_encoding, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_endEditing), meth_KTextEditor_Document_endEditing, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_endOfLine), meth_KTextEditor_Document_endOfLine, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_highlightInterface), meth_KTextEditor_Document_highlightInterface, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_highlightingMode), meth_KTextEditor_Document_highlightingMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_highlightingModeSection), meth_KTextEditor_Document_highlightingModeSection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_highlightingModes), meth_KTextEditor_Document_highlightingModes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_insertLine), meth_KTextEditor_Document_insertLine, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_insertLines), meth_KTextEditor_Document_insertLines, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_insertText), meth_KTextEditor_Document_insertText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isEmpty), meth_KTextEditor_Document_isEmpty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_line), meth_KTextEditor_Document_line, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_lineLength), meth_KTextEditor_Document_lineLength, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_lines), meth_KTextEditor_Document_lines, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_markInterface), meth_KTextEditor_Document_markInterface, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mimeType), meth_KTextEditor_Document_mimeType, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mode), meth_KTextEditor_Document_mode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_modeSection), meth_KTextEditor_Document_modeSection, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_modes), meth_KTextEditor_Document_modes, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_modificationInterface), meth_KTextEditor_Document_modificationInterface, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_movingInterface), meth_KTextEditor_Document_movingInterface, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_openingError), meth_KTextEditor_Document_openingError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_openingErrorMessage), meth_KTextEditor_Document_openingErrorMessage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_parameterizedSessionConfigInterface), meth_KTextEditor_Document_parameterizedSessionConfigInterface, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_recoveryInterface), meth_KTextEditor_Document_recoveryInterface, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeLine), meth_KTextEditor_Document_removeLine, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeText), meth_KTextEditor_Document_removeText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_replaceText), meth_KTextEditor_Document_replaceText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_searchInterface), meth_KTextEditor_Document_searchInterface, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sessionConfigInterface), meth_KTextEditor_Document_sessionConfigInterface, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setEncoding), meth_KTextEditor_Document_setEncoding, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setHighlightingMode), meth_KTextEditor_Document_setHighlightingMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMode), meth_KTextEditor_Document_setMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setOpeningError), meth_KTextEditor_Document_setOpeningError, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setOpeningErrorMessage), meth_KTextEditor_Document_setOpeningErrorMessage, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSuppressOpeningErrorDialogs), meth_KTextEditor_Document_setSuppressOpeningErrorDialogs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setText), meth_KTextEditor_Document_setText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_startEditing), meth_KTextEditor_Document_startEditing, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_suppressOpeningErrorDialogs), meth_KTextEditor_Document_suppressOpeningErrorDialogs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_text), meth_KTextEditor_Document_text, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_textLines), meth_KTextEditor_Document_textLines, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_totalCharacters), meth_KTextEditor_Document_totalCharacters, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_variableInterface), meth_KTextEditor_Document_variableInterface, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_views), meth_KTextEditor_Document_views, METH_VARARGS, NULL}
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_KTextEditor_Document[] = {
    {"exclusiveEditEnd(KTextEditor::Document*)", 0, 0, 0},
    {"exclusiveEditStart(KTextEditor::Document*)", 0, 0, 0},
    {"reloaded(KTextEditor::Document*)", 0, 0, 0},
    {"aboutToReload(KTextEditor::Document*)", 0, 0, 0},
    {"documentSavedOrUploaded(KTextEditor::Document*,bool)", 0, 0, 0},
    {"highlightingModeChanged(KTextEditor::Document*)", 0, 0, 0},
    {"modeChanged(KTextEditor::Document*)", 0, 0, 0},
    {"aboutToClose(KTextEditor::Document*)", 0, 0, 0},
    {"textRemoved(KTextEditor::Document*,KTextEditor::Range)", 0, 0, 0},
    {"textRemoved(KTextEditor::Document*,KTextEditor::Range,QString)", 0, 0, 0},
    {"textInserted(KTextEditor::Document*,KTextEditor::Range)", 0, 0, 0},
    {"textChanged(KTextEditor::Document*)", 0, 0, 0},
    {"textChanged(KTextEditor::Document*,KTextEditor::Range,KTextEditor::Range)", 0, 0, 0},
    {"textChanged(KTextEditor::Document*,KTextEditor::Range,QString,KTextEditor::Range)", 0, 0, 0},
    {"modifiedChanged(KTextEditor::Document*)", 0, 0, 0},
    {"documentUrlChanged(KTextEditor::Document*)", 0, 0, 0},
    {"documentNameChanged(KTextEditor::Document*)", 0, 0, 0},
    {"viewCreated(KTextEditor::Document*,KTextEditor::View*)", 0, 0, 0},
    {0, 0, 0, 0}
};


static pyqt4ClassPluginDef plugin_KTextEditor_Document = {
    & ::KTextEditor::Document::staticMetaObject,
    0,
    signals_KTextEditor_Document
};


sipClassTypeDef sipTypeDef_ktexteditor_KTextEditor_Document = {
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__Document,
        {0},
        &plugin_KTextEditor_Document
    },
    {
        sipNameNr_Document,
        {1, 255, 0},
        58, methods_KTextEditor_Document,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KTextEditor_Document,
    0,
    init_type_KTextEditor_Document,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_Document,
    0,
    0,
    0,
    release_KTextEditor_Document,
    cast_KTextEditor_Document,
    0,
    0,
    0,
    0,
    0,
    0
};

#line 30 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/cursor.sip"
#include <ktexteditor/cursor.h>
#line 7911 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"

#line 30 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/src/pykde4-4.14.3/sip/ktexteditor/range.sip"
#include <ktexteditor/range.h>
#line 7915 "/usr/src/ports/python-pykde4/python-pykde4-4.14.3-4.i686/build/py2/sip/ktexteditor/sipktexteditorpart4.cpp"


class sipKTextEditor_Cursor : public  ::KTextEditor::Cursor
{
public:
    sipKTextEditor_Cursor();
    sipKTextEditor_Cursor(int,int);
    sipKTextEditor_Cursor(const  ::KTextEditor::Cursor&);
    virtual ~sipKTextEditor_Cursor();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void setRange( ::KTextEditor::Range*);
    void setColumn(int);
    void setLine(int);
    int line() const;
    void setPosition(const  ::KTextEditor::Cursor&);
    bool isValid() const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKTextEditor_Cursor(const sipKTextEditor_Cursor &);
    sipKTextEditor_Cursor &operator = (const sipKTextEditor_Cursor &);

    char sipPyMethods[6];
};

sipKTextEditor_Cursor::sipKTextEditor_Cursor():  ::KTextEditor::Cursor(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTextEditor_Cursor::sipKTextEditor_Cursor(int a0,int a1):  ::KTextEditor::Cursor(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTextEditor_Cursor::sipKTextEditor_Cursor(const  ::KTextEditor::Cursor& a0):  ::KTextEditor::Cursor(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTextEditor_Cursor::~sipKTextEditor_Cursor()
{
    sipInstanceDestroyed(sipPySelf);
}

void sipKTextEditor_Cursor::setRange( ::KTextEditor::Range*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_setRange);

    if (!sipMeth)
    {
         ::KTextEditor::Cursor::setRange(a0);
        return;
    }

    extern void sipVH_ktexteditor_99(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::KTextEditor::Range*);

    sipVH_ktexteditor_99(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_Cursor::setColumn(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_setColumn);

    if (!sipMeth)
    {
         ::KTextEditor::Cursor::setColumn(a0);
        return;
    }

    extern void sipVH_ktexteditor_98(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    sipVH_ktexteditor_98(sipGILState, 0, sipPySelf, sipMeth, a0);
}

void sipKTextEditor_Cursor::setLine(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_setLine);

    if (!sipMeth)
    {
         ::KTextEditor::Cursor::setLine(a0);
        return;
    }

    extern void sipVH_ktexteditor_98(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    sipVH_ktexteditor_98(sipGILState, 0, sipPySelf, sipMeth, a0);
}

int sipKTextEditor_Cursor::line() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,NULL,sipName_line);

    if (!sipMeth)
        return  ::KTextEditor::Cursor::line();

    extern int sipVH_ktexteditor_84(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_84(sipGILState, 0, sipPySelf, sipMeth);
}

void sipKTextEditor_Cursor::setPosition(const  ::KTextEditor::Cursor& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_setPosition);

    if (!sipMeth)
    {
         ::KTextEditor::Cursor::setPosition(a0);
        return;
    }

    extern void sipVH_ktexteditor_97(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::KTextEditor::Cursor&);

    sipVH_ktexteditor_97(sipGILState, 0, sipPySelf, sipMeth, a0);
}

bool sipKTextEditor_Cursor::isValid() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[5]),sipPySelf,NULL,sipName_isValid);

    if (!sipMeth)
        return  ::KTextEditor::Cursor::isValid();

    extern bool sipVH_ktexteditor_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_ktexteditor_10(sipGILState, 0, sipPySelf, sipMeth);
}


extern "C" {static PyObject *meth_KTextEditor_Cursor_isValid(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Cursor_isValid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::KTextEditor::Cursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Cursor, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp-> ::KTextEditor::Cursor::isValid() : sipCpp->isValid());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Cursor, sipName_isValid, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Cursor_invalid(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Cursor_invalid(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
             ::KTextEditor::Cursor*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::KTextEditor::Cursor( ::KTextEditor::Cursor::invalid());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KTextEditor_Cursor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Cursor, sipName_invalid, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Cursor_start(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Cursor_start(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
             ::KTextEditor::Cursor*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new  ::KTextEditor::Cursor( ::KTextEditor::Cursor::start());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_KTextEditor_Cursor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Cursor, sipName_start, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Cursor_setPosition(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Cursor_setPosition(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::KTextEditor::Cursor* a0;
         ::KTextEditor::Cursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KTextEditor_Cursor, &sipCpp, sipType_KTextEditor_Cursor, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp-> ::KTextEditor::Cursor::setPosition(*a0) : sipCpp->setPosition(*a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        int a1;
         ::KTextEditor::Cursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii", &sipSelf, sipType_KTextEditor_Cursor, &sipCpp, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPosition(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Cursor, sipName_setPosition, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Cursor_line(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Cursor_line(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::KTextEditor::Cursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Cursor, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp-> ::KTextEditor::Cursor::line() : sipCpp->line());
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Cursor, sipName_line, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Cursor_setLine(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Cursor_setLine(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        int a0;
         ::KTextEditor::Cursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KTextEditor_Cursor, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp-> ::KTextEditor::Cursor::setLine(a0) : sipCpp->setLine(a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Cursor, sipName_setLine, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Cursor_column(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Cursor_column(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KTextEditor::Cursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Cursor, &sipCpp))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->column();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Cursor, sipName_column, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Cursor_setColumn(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Cursor_setColumn(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        int a0;
         ::KTextEditor::Cursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KTextEditor_Cursor, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp-> ::KTextEditor::Cursor::setColumn(a0) : sipCpp->setColumn(a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Cursor, sipName_setColumn, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Cursor_atStartOfLine(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Cursor_atStartOfLine(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KTextEditor::Cursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Cursor, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->atStartOfLine();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Cursor, sipName_atStartOfLine, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Cursor_atStartOfDocument(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Cursor_atStartOfDocument(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KTextEditor::Cursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Cursor, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->atStartOfDocument();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Cursor, sipName_atStartOfDocument, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Cursor_position(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Cursor_position(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        const  ::KTextEditor::Cursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Cursor, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->position(a0,a1);
            Py_END_ALLOW_THREADS

            return sipBuildResult(0,"(ii)",a0,a1);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Cursor, sipName_position, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Cursor_range(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Cursor_range(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KTextEditor::Cursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Cursor, &sipCpp))
        {
             ::KTextEditor::Range*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->range();
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_KTextEditor_Range,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Cursor, sipName_range, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Cursor_setRange(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Cursor_setRange(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::KTextEditor::Range* a0;
         ::KTextEditor::Cursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8", &sipSelf, sipType_KTextEditor_Cursor, &sipCpp, sipType_KTextEditor_Range, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp-> ::KTextEditor::Cursor::setRange(a0) : sipCpp->setRange(a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Cursor, sipName_setRange, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Cursor_cursorChangedDirectly(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Cursor_cursorChangedDirectly(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KTextEditor::Cursor* a0;
         ::KTextEditor::Cursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ9", &sipSelf, sipType_KTextEditor_Cursor, &sipCpp, sipType_KTextEditor_Cursor, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->cursorChangedDirectly(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Cursor, sipName_cursorChangedDirectly, NULL);

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_KTextEditor_Cursor(void *, int);}
static void release_KTextEditor_Cursor(void *sipCppV, int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKTextEditor_Cursor *>(sipCppV);
    else
        delete reinterpret_cast< ::KTextEditor::Cursor *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_KTextEditor_Cursor(void *, SIP_SSIZE_T, const void *);}
static void assign_KTextEditor_Cursor(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast< ::KTextEditor::Cursor *>(sipDst)[sipDstIdx] = *reinterpret_cast<const  ::KTextEditor::Cursor *>(sipSrc);
}


extern "C" {static void *array_KTextEditor_Cursor(SIP_SSIZE_T);}
static void *array_KTextEditor_Cursor(SIP_SSIZE_T sipNrElem)
{
    return new  ::KTextEditor::Cursor[sipNrElem];
}


extern "C" {static void *copy_KTextEditor_Cursor(const void *, SIP_SSIZE_T);}
static void *copy_KTextEditor_Cursor(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new  ::KTextEditor::Cursor(reinterpret_cast<const  ::KTextEditor::Cursor *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_KTextEditor_Cursor(sipSimpleWrapper *);}
static void dealloc_KTextEditor_Cursor(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipKTextEditor_Cursor *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_KTextEditor_Cursor(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


extern "C" {static void *init_type_KTextEditor_Cursor(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KTextEditor_Cursor(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipKTextEditor_Cursor *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_Cursor();
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        int a0;
        int a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "ii", &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_Cursor(a0,a1);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const  ::KTextEditor::Cursor* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KTextEditor_Cursor, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_Cursor(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KTextEditor_Cursor[] = {
    {SIP_MLNAME_CAST(sipName_atStartOfDocument), meth_KTextEditor_Cursor_atStartOfDocument, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_atStartOfLine), meth_KTextEditor_Cursor_atStartOfLine, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_column), meth_KTextEditor_Cursor_column, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_cursorChangedDirectly), meth_KTextEditor_Cursor_cursorChangedDirectly, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_invalid), meth_KTextEditor_Cursor_invalid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_KTextEditor_Cursor_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_line), meth_KTextEditor_Cursor_line, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_position), meth_KTextEditor_Cursor_position, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_range), meth_KTextEditor_Cursor_range, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setColumn), meth_KTextEditor_Cursor_setColumn, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLine), meth_KTextEditor_Cursor_setLine, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPosition), meth_KTextEditor_Cursor_setPosition, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setRange), meth_KTextEditor_Cursor_setRange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_start), meth_KTextEditor_Cursor_start, METH_VARARGS, NULL}
};


static pyqt4ClassPluginDef plugin_KTextEditor_Cursor = {
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_ktexteditor_KTextEditor_Cursor = {
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__Cursor,
        {0},
        &plugin_KTextEditor_Cursor
    },
    {
        sipNameNr_Cursor,
        {1, 255, 0},
        14, methods_KTextEditor_Cursor,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KTextEditor_Cursor,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_Cursor,
    assign_KTextEditor_Cursor,
    array_KTextEditor_Cursor,
    copy_KTextEditor_Cursor,
    release_KTextEditor_Cursor,
    0,
    0,
    0,
    0,
    0,
    0,
    0
};
