/*
 * Module code.
 *
 * Generated by SIP 4.8.2 on Sun Oct 11 20:19:25 2009
 *
 * 
 *  This file is part of PyKDE4.
 * 
 *  PyKDE4 is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU Lesser General Public License as
 *  published by the Free Software Foundation; either version 2.1 of
 *  the License, or (at your option) any later version.
 * 
 *  PyKDE4 is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 * 
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http:www.gnu.org/licenses/>.
 * 
 */

#include "sipAPIktexteditor.h"

#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/markinterface.sip"
#include <ktexteditor/markinterface.h>
#line 29 "sipktexteditorpart4.cpp"



/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KTextEditor_Mark(void *, const sipTypeDef *);}
static void *cast_KTextEditor_Mark(void *ptr,const sipTypeDef *targetType)
{
    if (targetType == sipType_KTextEditor_Mark)
        return ptr;

    return NULL;
}


/* 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 *, const void*);}
static void assign_KTextEditor_Mark(void *sipDst, const void *sipSrc)
{
    *reinterpret_cast<KTextEditor::Mark *>(sipDst) = *reinterpret_cast<const KTextEditor::Mark *>(sipSrc);
}


extern "C" {static void dealloc_KTextEditor_Mark(sipSimpleWrapper *);}
static void dealloc_KTextEditor_Mark(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_KTextEditor_Mark(sipSelf->u.cppPtr,0);
    }
}


extern "C" {static void *init_KTextEditor_Mark(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KTextEditor_Mark(sipSimpleWrapper *, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    KTextEditor::Mark *sipCpp = 0;

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KTextEditor::Mark();
            Py_END_ALLOW_THREADS
        }
    }

    if (!sipCpp)
    {
        const KTextEditor::Mark * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J9",sipType_KTextEditor_Mark,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new KTextEditor::Mark(*a0);
            Py_END_ALLOW_THREADS
        }
    }

    return sipCpp;
}


extern "C" {static PyObject *varget_KTextEditor_Mark_line(void *, PyObject *);}
static PyObject *varget_KTextEditor_Mark_line(void *sipSelf, 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 *);}
static PyObject *varget_KTextEditor_Mark_type(void *sipSelf, 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 = (unsigned)sipLong_AsUnsignedLong(sipPy);

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

    sipCpp->type = sipVal;

    return 0;
}

sipVariableDef variables_KTextEditor_Mark[] = {
    {sipName_line, varget_KTextEditor_Mark_line, varset_KTextEditor_Mark_line, 0},
    {sipName_type, varget_KTextEditor_Mark_type, varset_KTextEditor_Mark_type, 0},
};


pyqt4ClassTypeDef pyqt4Type_ktexteditor_KTextEditor_Mark = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__Mark,
        {0}
    },
    sipNameNr_Mark,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    {1, 255, 0},
    0,
    0,
    0, 0,
    0, 0,
    2, variables_KTextEditor_Mark,
    init_KTextEditor_Mark,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_Mark,
    release_KTextEditor_Mark,
    cast_KTextEditor_Mark,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    assign_KTextEditor_Mark,
    0,
    0,
    0
};

#line 31 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/factory.sip"
#include <ktexteditor/factory.h>
#line 214 "sipktexteditorpart4.cpp"

#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 218 "sipktexteditorpart4.cpp"
#line 34 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/editor.sip"
#include <ktexteditor/editor.h>
#line 221 "sipktexteditorpart4.cpp"
#line 61 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/part.sip"
#include <kparts/part.h>
#line 224 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 227 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 230 "sipktexteditorpart4.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 233 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 236 "sipktexteditorpart4.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 267 "sipktexteditorpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 270 "sipktexteditorpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 273 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 276 "sipktexteditorpart4.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 279 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 282 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 285 "sipktexteditorpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 288 "sipktexteditorpart4.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 291 "sipktexteditorpart4.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 294 "sipktexteditorpart4.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 297 "sipktexteditorpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 300 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 303 "sipktexteditorpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 306 "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 public method for every protected method visible from
     * this class.
     */
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);
    QObject * sipProtectVirt_create(bool,const char *,QWidget *,QObject *,const QVariantList&,const QString&);
    QVariantList sipProtect_stringListToVariantList(const QStringList&);
    QStringList sipProtect_variantListToStringList(const QVariantList&);
    void sipProtectVirt_setupTranslations(bool);
    QObject * sipProtectVirt_createObject(bool,QObject *,const char *,const QStringList&);
    void sipProtect_setComponentData(const KComponentData&);
    KParts::Part * sipProtect_createPartObject(QWidget *,QObject *,const char *,const QStringList&);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    KTextEditor::Editor * editor();
    KComponentData partComponentData();
    KParts::Part * createPartObject(QWidget *,QObject *,const char *,const QStringList&);
    void setupTranslations();
    QObject * createObject(QObject *,const char *,const QStringList&);
    QObject * create(const char *,QWidget *,QObject *,const QVariantList&,const QString&);
    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_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()
{
    sipCommonDtor(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 && sip_ktexteditor_qt_metacast(sipPySelf,sipType_KTextEditor_Factory,_clname)) ? this : KTextEditor::Factory::qt_metacast(_clname);
}

KTextEditor::Editor * sipKTextEditor_Factory::editor()
{
    extern KTextEditor::Editor * sipVH_ktexteditor_57(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return 0;

    return sipVH_ktexteditor_57(sipGILState,meth);
}

KComponentData sipKTextEditor_Factory::partComponentData()
{
    typedef KComponentData (*sipVH_kdeui_8)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_partComponentData);

    if (!meth)
        return KParts::Factory::partComponentData();

    return ((sipVH_kdeui_8)(sipModuleAPI_ktexteditor_kdeui->em_virthandlers[8]))(sipGILState,meth);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,sipName_Factory,sipName_createPartObject);

    if (!meth)
        return 0;

    return ((sipVH_kparts_12)(sipModuleAPI_ktexteditor_kparts->em_virthandlers[12]))(sipGILState,meth,a0,a1,a2,a3);
}

void sipKTextEditor_Factory::setupTranslations()
{
    typedef void (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        KPluginFactory::setupTranslations();
        return;
    }

    ((sipVH_QtCore_5)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[5]))(sipGILState,meth);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_createObject);

    if (!meth)
        return KPluginFactory::createObject(a0,a1,a2);

    return ((sipVH_kdecore_9)(sipModuleAPI_ktexteditor_kdecore->em_virthandlers[9]))(sipGILState,meth,a0,a1,a2);
}

QObject * sipKTextEditor_Factory::create(const char *a0,QWidget *a1,QObject *a2,const QVariantList& a3,const QString& a4)
{
    typedef QObject * (*sipVH_kdecore_8)(sip_gilstate_t,PyObject *,const char *,QWidget *,QObject *,const QList<QVariant>&,const QString&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_create);

    if (!meth)
        return KPluginFactory::create(a0,a1,a2,a3,a4);

    return ((sipVH_kdecore_8)(sipModuleAPI_ktexteditor_kdecore->em_virthandlers[8]))(sipGILState,meth,a0,a1,a2,a3,a4);
}

bool sipKTextEditor_Factory::event(QEvent *a0)
{
    typedef bool (*sipVH_QtCore_13)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return QObject::event(a0);

    return ((sipVH_QtCore_13)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[13]))(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_eventFilter);

    if (!meth)
        return QObject::eventFilter(a0,a1);

    return ((sipVH_QtCore_21)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[21]))(sipGILState,meth,a0,a1);
}

void sipKTextEditor_Factory::timerEvent(QTimerEvent *a0)
{
    typedef void (*sipVH_QtCore_3)(sip_gilstate_t,PyObject *,QTimerEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_timerEvent);

    if (!meth)
    {
        QObject::timerEvent(a0);
        return;
    }

    ((sipVH_QtCore_3)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[3]))(sipGILState,meth,a0);
}

void sipKTextEditor_Factory::childEvent(QChildEvent *a0)
{
    typedef void (*sipVH_QtCore_20)(sip_gilstate_t,PyObject *,QChildEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_childEvent);

    if (!meth)
    {
        QObject::childEvent(a0);
        return;
    }

    ((sipVH_QtCore_20)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[20]))(sipGILState,meth,a0);
}

void sipKTextEditor_Factory::customEvent(QEvent *a0)
{
    typedef void (*sipVH_QtCore_19)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_customEvent);

    if (!meth)
    {
        QObject::customEvent(a0);
        return;
    }

    ((sipVH_QtCore_19)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[19]))(sipGILState,meth,a0);
}

void sipKTextEditor_Factory::connectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_connectNotify);

    if (!meth)
    {
        QObject::connectNotify(a0);
        return;
    }

    ((sipVH_QtCore_18)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

void sipKTextEditor_Factory::disconnectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_disconnectNotify);

    if (!meth)
    {
        QObject::disconnectNotify(a0);
        return;
    }

    ((sipVH_QtCore_18)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

int sipKTextEditor_Factory::sipProtect_receivers(const char *a0) const
{
    return QObject::receivers(a0);
}

void sipKTextEditor_Factory::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent *a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipKTextEditor_Factory::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent *a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipKTextEditor_Factory::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipKTextEditor_Factory::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipKTextEditor_Factory::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

QObject * sipKTextEditor_Factory::sipProtectVirt_create(bool sipSelfWasArg,const char *a0,QWidget *a1,QObject *a2,const QVariantList& a3,const QString& a4)
{
    return (sipSelfWasArg ? KPluginFactory::create(a0,a1,a2,a3,a4) : create(a0,a1,a2,a3,a4));
}

QVariantList sipKTextEditor_Factory::sipProtect_stringListToVariantList(const QStringList& a0)
{
    return KPluginFactory::stringListToVariantList(a0);
}

QStringList sipKTextEditor_Factory::sipProtect_variantListToStringList(const QVariantList& a0)
{
    return KPluginFactory::variantListToStringList(a0);
}

void sipKTextEditor_Factory::sipProtectVirt_setupTranslations(bool sipSelfWasArg)
{
    (sipSelfWasArg ? KPluginFactory::setupTranslations() : setupTranslations());
}

QObject * sipKTextEditor_Factory::sipProtectVirt_createObject(bool sipSelfWasArg,QObject *a0,const char *a1,const QStringList& a2)
{
    return (sipSelfWasArg ? KPluginFactory::createObject(a0,a1,a2) : createObject(a0,a1,a2));
}

void sipKTextEditor_Factory::sipProtect_setComponentData(const KComponentData& a0)
{
    KPluginFactory::setComponentData(a0);
}

KParts::Part * sipKTextEditor_Factory::sipProtect_createPartObject(QWidget *a0,QObject *a1,const char *a2,const QStringList& a3)
{
    return createPartObject(a0,a1,a2,a3);
}


extern "C" {static PyObject *meth_KTextEditor_Factory_receivers(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Factory_receivers(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        char * a0;
        sipKTextEditor_Factory *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KTextEditor_Factory,&sipCpp,&a0))
        {
            int sipRes = 0;

#line 462 "/usr/local/share/py-sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        if (helper)
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
#line 700 "sipktexteditorpart4.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Factory_timerEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Factory_timerEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent * a0;
        sipKTextEditor_Factory *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_Factory,&sipCpp,sipType_QTimerEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Factory_childEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Factory_childEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent * a0;
        sipKTextEditor_Factory *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_Factory,&sipCpp,sipType_QChildEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Factory_customEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Factory_customEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipKTextEditor_Factory *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_Factory,&sipCpp,sipType_QEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Factory_connectNotify(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Factory_connectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipKTextEditor_Factory *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KTextEditor_Factory,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Factory_disconnectNotify(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Factory_disconnectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipKTextEditor_Factory *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KTextEditor_Factory,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Factory_create(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Factory_create(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QObject * a0 = 0;
        const char * a1 = "QObject";
        const QStringList& a2def = QStringList();
        const QStringList * a2 = &a2def;
        int a2State = 0;
        KTextEditor::Factory *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B|J:sJ1",&sipSelf,sipType_KTextEditor_Factory,&sipCpp,sipType_QObject,&a0,&a1,sipType_QStringList,&a2,&a2State))
        {
            QObject *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->create(a0,a1,*a2);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QStringList *>(a2),sipType_QStringList,a2State);

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

    {
        const char * a0;
        QWidget * a1;
        QObject * a2;
        const QVariantList * a3;
        int a3State = 0;
        const QString * a4;
        int a4State = 0;
        sipKTextEditor_Factory *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"psJ8J:J1J1",&sipSelf,sipType_KTextEditor_Factory,&sipCpp,&a0,sipType_QWidget,&a1,sipType_QObject,&a2,sipType_QList_0200QVariant,&a3,&a3State,sipType_QString,&a4,&a4State))
        {
            QObject *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_create(sipSelfWasArg,a0,a1,a2,*a3,*a4);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QVariantList *>(a3),sipType_QList_0200QVariant,a3State);
            sipReleaseType(const_cast<QString *>(a4),sipType_QString,a4State);

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

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Factory_stringListToVariantList(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Factory_stringListToVariantList(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QStringList * a0;
        int a0State = 0;
        sipKTextEditor_Factory *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1",&sipSelf,sipType_KTextEditor_Factory,&sipCpp,sipType_QStringList,&a0,&a0State))
        {
            QVariantList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariantList(sipCpp->sipProtect_stringListToVariantList(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0200QVariant,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Factory_variantListToStringList(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Factory_variantListToStringList(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QVariantList * a0;
        int a0State = 0;
        sipKTextEditor_Factory *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1",&sipSelf,sipType_KTextEditor_Factory,&sipCpp,sipType_QList_0200QVariant,&a0,&a0State))
        {
            QStringList *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QStringList(sipCpp->sipProtect_variantListToStringList(*a0));
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QVariantList *>(a0),sipType_QList_0200QVariant,a0State);

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

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Factory_setupTranslations(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Factory_setupTranslations(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipKTextEditor_Factory *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_KTextEditor_Factory,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_setupTranslations(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Factory_createObject(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Factory_createObject(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QObject * a0;
        const char * a1;
        const QStringList * a2;
        int a2State = 0;
        sipKTextEditor_Factory *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ:sJ1",&sipSelf,sipType_KTextEditor_Factory,&sipCpp,sipType_QObject,&a0,&a1,sipType_QStringList,&a2,&a2State))
        {
            QObject *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_createObject(sipSelfWasArg,a0,a1,*a2);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QStringList *>(a2),sipType_QStringList,a2State);

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

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Factory_setComponentData(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Factory_setComponentData(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const KComponentData * a0;
        sipKTextEditor_Factory *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9",&sipSelf,sipType_KTextEditor_Factory,&sipCpp,sipType_KComponentData,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setComponentData(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Factory_createPartObject(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Factory_createPartObject(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QWidget * a0 = 0;
        QObject * a1 = 0;
        const char * a2 = "KParts::Part";
        const QStringList& a3def = QStringList();
        const QStringList * a3 = &a3def;
        int a3State = 0;
        sipKTextEditor_Factory *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p|J8J:sJ1",&sipSelf,sipType_KTextEditor_Factory,&sipCpp,sipType_QWidget,&a0,sipType_QObject,&a1,&a2,sipType_QStringList,&a3,&a3State))
        {
            KParts::Part *sipRes;

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_Factory, sipName_createPartObject);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_createPartObject(a0,a1,a2,*a3);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QStringList *>(a3),sipType_QStringList,a3State);

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

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Factory_editor(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Factory_editor(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTextEditor::Factory *sipCpp;

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

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Factory,sipName_editor);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KTextEditor_Factory(void *, const sipTypeDef *);}
static void *cast_KTextEditor_Factory(void *ptr,const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_KTextEditor_Factory)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KParts_Factory)->ctd_cast((KParts::Factory *)(KTextEditor::Factory *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKTextEditor_Factory *>(sipCppV);
    else
        delete reinterpret_cast<KTextEditor::Factory *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KTextEditor_Factory(sipSimpleWrapper *);}
static void dealloc_KTextEditor_Factory(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKTextEditor_Factory *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KTextEditor_Factory(sipSelf->u.cppPtr,sipSelf->flags);
    }
}


extern "C" {static void *init_KTextEditor_Factory(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KTextEditor_Factory(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject **sipOwner, int *sipArgsParsed)
{
    sipKTextEditor_Factory *sipCpp = 0;

    if (!sipCpp)
    {
        QObject * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"JH",sipType_QObject,&a0,sipOwner))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_Factory(a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_KTextEditor_Factory[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KTextEditor_Factory_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KTextEditor_Factory_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_create), meth_KTextEditor_Factory_create, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createObject), meth_KTextEditor_Factory_createObject, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createPartObject), meth_KTextEditor_Factory_createPartObject, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KTextEditor_Factory_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KTextEditor_Factory_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_editor), meth_KTextEditor_Factory_editor, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KTextEditor_Factory_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setComponentData), meth_KTextEditor_Factory_setComponentData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setupTranslations), meth_KTextEditor_Factory_setupTranslations, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_stringListToVariantList), meth_KTextEditor_Factory_stringListToVariantList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KTextEditor_Factory_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_variantListToStringList), meth_KTextEditor_Factory_variantListToStringList, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef pyqt4Type_ktexteditor_KTextEditor_Factory = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__Factory,
        {0}
    },
    sipNameNr_Factory,
    -1,
    -1,
    {1, 255, 0},
    supers_KTextEditor_Factory,
    0,
    14, methods_KTextEditor_Factory,
    0, 0,
    0, 0,
    init_KTextEditor_Factory,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_Factory,
    release_KTextEditor_Factory,
    cast_KTextEditor_Factory,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &KTextEditor::Factory::staticMetaObject,
    0,
    0
};

#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/editorchooser.sip"
#include <ktexteditor/editorchooser.h>
#line 1279 "sipktexteditorpart4.cpp"

#line 46 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 1283 "sipktexteditorpart4.cpp"
#line 34 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/editor.sip"
#include <ktexteditor/editor.h>
#line 1286 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 1289 "sipktexteditorpart4.cpp"
#line 44 "/usr/local/share/py-sip/QtGui/qgraphicsproxywidget.sip"
#include <qgraphicsproxywidget.h>
#line 1292 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 1295 "sipktexteditorpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 1298 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 1301 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qregion.sip"
#include <qregion.h>
#line 1304 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 1307 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 1310 "sipktexteditorpart4.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1313 "sipktexteditorpart4.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1316 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qsize.sip"
#include <qsize.h>
#line 1319 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qrect.sip"
#include <qrect.h>
#line 1322 "sipktexteditorpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qfontinfo.sip"
#include <qfontinfo.h>
#line 1325 "sipktexteditorpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qfontmetrics.sip"
#include <qfontmetrics.h>
#line 1328 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qfont.sip"
#include <qfont.h>
#line 1331 "sipktexteditorpart4.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1334 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qpalette.sip"
#include <qpalette.h>
#line 1337 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1340 "sipktexteditorpart4.cpp"
#line 466 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 482 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 1345 "sipktexteditorpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1348 "sipktexteditorpart4.cpp"
#line 424 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 1351 "sipktexteditorpart4.cpp"
#line 412 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 1354 "sipktexteditorpart4.cpp"
#line 508 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 1357 "sipktexteditorpart4.cpp"
#line 562 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 1360 "sipktexteditorpart4.cpp"
#line 533 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 1363 "sipktexteditorpart4.cpp"
#line 550 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 1366 "sipktexteditorpart4.cpp"
#line 618 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 1369 "sipktexteditorpart4.cpp"
#line 247 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 1372 "sipktexteditorpart4.cpp"
#line 436 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 1375 "sipktexteditorpart4.cpp"
#line 388 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 1378 "sipktexteditorpart4.cpp"
#line 374 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 1381 "sipktexteditorpart4.cpp"
#line 360 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 1384 "sipktexteditorpart4.cpp"
#line 345 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 1387 "sipktexteditorpart4.cpp"
#line 325 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 1390 "sipktexteditorpart4.cpp"
#line 296 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 1393 "sipktexteditorpart4.cpp"
#line 225 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 1396 "sipktexteditorpart4.cpp"
#line 184 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 1399 "sipktexteditorpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qinputcontext.sip"
#include <qinputcontext.h>
#line 1402 "sipktexteditorpart4.cpp"
#line 74 "/usr/local/share/py-sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 1405 "sipktexteditorpart4.cpp"
#line 47 "/usr/local/share/py-sip/QtGui/qx11info_x11.sip"
#include <qx11info_x11.h>
#line 1408 "sipktexteditorpart4.cpp"
#line 136 "/usr/local/share/py-sip/QtGui/qfontdatabase.sip"
#include <qfontdatabase.h>
#include <qlist.h>
#line 66 "/usr/local/share/py-sip/QtGui/qprinterinfo.sip"
#include <qlist.h>
#line 229 "/usr/local/share/py-sip/QtGui/qwizard.sip"
#include <qwizard.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 520 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 1469 "sipktexteditorpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qaction.sip"
#include <qaction.h>
#line 1472 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 1475 "sipktexteditorpart4.cpp"
#line 44 "/usr/local/share/py-sip/QtGui/qgraphicswidget.sip"
#include <qgraphicswidget.h>
#line 1478 "sipktexteditorpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qabstractbutton.sip"
#include <qabstractbutton.h>
#line 1481 "sipktexteditorpart4.cpp"
#line 466 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 482 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 1486 "sipktexteditorpart4.cpp"
#line 50 "/usr/local/share/py-sip/QtGui/qgraphicsitem.sip"
#include <qgraphicsitem.h>
#line 1489 "sipktexteditorpart4.cpp"
#line 99 "/usr/local/share/py-sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 1492 "sipktexteditorpart4.cpp"
#line 50 "/usr/local/share/py-sip/QtGui/qgraphicsview.sip"
#include <qgraphicsview.h>
#line 1495 "sipktexteditorpart4.cpp"
#line 165 "/usr/local/share/py-sip/QtCore/qrect.sip"
#include <qrect.h>
#line 1498 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qlistwidget.sip"
#include <qlistwidget.h>
#line 1501 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qdockwidget.sip"
#include <qdockwidget.h>
#line 1504 "sipktexteditorpart4.cpp"
#line 50 "/usr/local/share/py-sip/QtGui/qmdisubwindow.sip"
#include <qmdisubwindow.h>
#line 1507 "sipktexteditorpart4.cpp"
#line 334 "/usr/local/share/py-sip/QtGui/qpolygon.sip"
#include <qpolygon.h>
#line 1510 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qtextedit.sip"
#include <qtextedit.h>
#line 56 "/usr/local/share/py-sip/QtGui/qtextedit.sip"
#include <qtextedit.h>
#line 1515 "sipktexteditorpart4.cpp"
#line 44 "/usr/local/share/py-sip/QtGui/qprinterinfo.sip"
#include <qprinterinfo.h>
#line 1518 "sipktexteditorpart4.cpp"
#line 202 "/usr/local/share/py-sip/QtGui/qstandarditemmodel.sip"
#include <qstandarditemmodel.h>
#line 1521 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qtablewidget.sip"
#include <qtablewidget.h>
#line 1524 "sipktexteditorpart4.cpp"
#line 66 "/usr/local/share/py-sip/QtGui/qtablewidget.sip"
#include <qtablewidget.h>
#line 1527 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 114 "/usr/local/share/py-sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 1532 "sipktexteditorpart4.cpp"
#line 65 "/usr/local/share/py-sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 88 "/usr/local/share/py-sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 1537 "sipktexteditorpart4.cpp"
#line 149 "/usr/local/share/py-sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 175 "/usr/local/share/py-sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 1542 "sipktexteditorpart4.cpp"
#line 83 "/usr/local/share/py-sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 101 "/usr/local/share/py-sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 1547 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qtreewidget.sip"
#include <qtreewidget.h>
#line 1550 "sipktexteditorpart4.cpp"
#line 75 "/usr/local/share/py-sip/QtGui/qundostack.sip"
#include <qundostack.h>
#line 1553 "sipktexteditorpart4.cpp"
#line 50 "/usr/local/share/py-sip/QtGui/qwizard.sip"
#include <qwizard.h>
#line 1556 "sipktexteditorpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qprinter.sip"
#include <qprinter.h>
#line 1559 "sipktexteditorpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qfontdatabase.sip"
#include <qfontdatabase.h>
#line 1562 "sipktexteditorpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qlayout.sip"
#include <qlayout.h>
#line 1565 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qsizepolicy.sip"
#include <qsizepolicy.h>
#line 1568 "sipktexteditorpart4.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1571 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qcursor.sip"
#include <qcursor.h>
#line 1574 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qicon.sip"
#include <qicon.h>
#line 1577 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qbitmap.sip"
#include <qbitmap.h>
#line 1580 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qstyle.sip"
#include <qstyle.h>
#line 1583 "sipktexteditorpart4.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1586 "sipktexteditorpart4.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1589 "sipktexteditorpart4.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 1592 "sipktexteditorpart4.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 1623 "sipktexteditorpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 1626 "sipktexteditorpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 1629 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 1632 "sipktexteditorpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 1635 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1638 "sipktexteditorpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1641 "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 public method for every protected method visible from
     * this class.
     */
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);
    bool sipProtectVirt_event(bool,QEvent *);
    void sipProtectVirt_mousePressEvent(bool,QMouseEvent *);
    void sipProtectVirt_mouseReleaseEvent(bool,QMouseEvent *);
    void sipProtectVirt_mouseDoubleClickEvent(bool,QMouseEvent *);
    void sipProtectVirt_mouseMoveEvent(bool,QMouseEvent *);
    void sipProtectVirt_wheelEvent(bool,QWheelEvent *);
    void sipProtectVirt_keyPressEvent(bool,QKeyEvent *);
    void sipProtectVirt_keyReleaseEvent(bool,QKeyEvent *);
    void sipProtectVirt_focusInEvent(bool,QFocusEvent *);
    void sipProtectVirt_focusOutEvent(bool,QFocusEvent *);
    void sipProtectVirt_enterEvent(bool,QEvent *);
    void sipProtectVirt_leaveEvent(bool,QEvent *);
    void sipProtectVirt_paintEvent(bool,QPaintEvent *);
    void sipProtectVirt_moveEvent(bool,QMoveEvent *);
    void sipProtectVirt_resizeEvent(bool,QResizeEvent *);
    void sipProtectVirt_closeEvent(bool,QCloseEvent *);
    void sipProtectVirt_contextMenuEvent(bool,QContextMenuEvent *);
    void sipProtectVirt_tabletEvent(bool,QTabletEvent *);
    void sipProtectVirt_actionEvent(bool,QActionEvent *);
    void sipProtectVirt_dragEnterEvent(bool,QDragEnterEvent *);
    void sipProtectVirt_dragMoveEvent(bool,QDragMoveEvent *);
    void sipProtectVirt_dragLeaveEvent(bool,QDragLeaveEvent *);
    void sipProtectVirt_dropEvent(bool,QDropEvent *);
    void sipProtectVirt_showEvent(bool,QShowEvent *);
    void sipProtectVirt_hideEvent(bool,QHideEvent *);
    void sipProtectVirt_changeEvent(bool,QEvent *);
    int sipProtectVirt_metric(bool,QPaintDevice::PaintDeviceMetric) const;
    void sipProtectVirt_inputMethodEvent(bool,QInputMethodEvent *);
    void sipProtect_resetInputContext();
    void sipProtect_updateMicroFocus();
    void sipProtect_create(WId,bool,bool);
    void sipProtect_destroy(bool,bool);
    bool sipProtectVirt_focusNextPrevChild(bool,bool);
    bool sipProtect_focusNextChild();
    bool sipProtect_focusPreviousChild();
    void sipProtectVirt_enabledChange(bool,bool);
    void sipProtectVirt_paletteChange(bool,const QPalette&);
    void sipProtectVirt_fontChange(bool,const QFont&);
    void sipProtectVirt_windowActivationChange(bool,bool);
    void sipProtectVirt_languageChange(bool);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    int devType() const;
    void setVisible(bool);
    QSize sizeHint() const;
    QSize minimumSizeHint() const;
    int heightForWidth(int) const;
    QPaintEngine * paintEngine() const;
    bool event(QEvent *);
    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 *);
    int metric(QPaintDevice::PaintDeviceMetric) const;
    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();
    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_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()
{
    sipCommonDtor(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 && sip_ktexteditor_qt_metacast(sipPySelf,sipType_KTextEditor_EditorChooser,_clname)) ? this : KTextEditor::EditorChooser::qt_metacast(_clname);
}

int sipKTextEditor_EditorChooser::devType() const
{
    typedef int (*sipVH_QtCore_8)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return QWidget::devType();

    return ((sipVH_QtCore_8)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[8]))(sipGILState,meth);
}

void sipKTextEditor_EditorChooser::setVisible(bool a0)
{
    typedef void (*sipVH_QtGui_7)(sip_gilstate_t,PyObject *,bool);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_setVisible);

    if (!meth)
    {
        QWidget::setVisible(a0);
        return;
    }

    ((sipVH_QtGui_7)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[7]))(sipGILState,meth,a0);
}

QSize sipKTextEditor_EditorChooser::sizeHint() const
{
    typedef QSize (*sipVH_QtGui_4)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return QWidget::sizeHint();

    return ((sipVH_QtGui_4)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[4]))(sipGILState,meth);
}

QSize sipKTextEditor_EditorChooser::minimumSizeHint() const
{
    typedef QSize (*sipVH_QtGui_4)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return QWidget::minimumSizeHint();

    return ((sipVH_QtGui_4)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[4]))(sipGILState,meth);
}

int sipKTextEditor_EditorChooser::heightForWidth(int a0) const
{
    typedef int (*sipVH_QtGui_29)(sip_gilstate_t,PyObject *,int);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return QWidget::heightForWidth(a0);

    return ((sipVH_QtGui_29)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[29]))(sipGILState,meth,a0);
}

QPaintEngine * sipKTextEditor_EditorChooser::paintEngine() const
{
    typedef QPaintEngine * (*sipVH_QtGui_28)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return QWidget::paintEngine();

    return ((sipVH_QtGui_28)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[28]))(sipGILState,meth);
}

bool sipKTextEditor_EditorChooser::event(QEvent *a0)
{
    typedef bool (*sipVH_QtCore_13)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return QWidget::event(a0);

    return ((sipVH_QtCore_13)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[13]))(sipGILState,meth,a0);
}

void sipKTextEditor_EditorChooser::mousePressEvent(QMouseEvent *a0)
{
    typedef void (*sipVH_QtGui_27)(sip_gilstate_t,PyObject *,QMouseEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_mousePressEvent);

    if (!meth)
    {
        QWidget::mousePressEvent(a0);
        return;
    }

    ((sipVH_QtGui_27)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[27]))(sipGILState,meth,a0);
}

void sipKTextEditor_EditorChooser::mouseReleaseEvent(QMouseEvent *a0)
{
    typedef void (*sipVH_QtGui_27)(sip_gilstate_t,PyObject *,QMouseEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_mouseReleaseEvent);

    if (!meth)
    {
        QWidget::mouseReleaseEvent(a0);
        return;
    }

    ((sipVH_QtGui_27)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[27]))(sipGILState,meth,a0);
}

void sipKTextEditor_EditorChooser::mouseDoubleClickEvent(QMouseEvent *a0)
{
    typedef void (*sipVH_QtGui_27)(sip_gilstate_t,PyObject *,QMouseEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_mouseDoubleClickEvent);

    if (!meth)
    {
        QWidget::mouseDoubleClickEvent(a0);
        return;
    }

    ((sipVH_QtGui_27)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[27]))(sipGILState,meth,a0);
}

void sipKTextEditor_EditorChooser::mouseMoveEvent(QMouseEvent *a0)
{
    typedef void (*sipVH_QtGui_27)(sip_gilstate_t,PyObject *,QMouseEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_mouseMoveEvent);

    if (!meth)
    {
        QWidget::mouseMoveEvent(a0);
        return;
    }

    ((sipVH_QtGui_27)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[27]))(sipGILState,meth,a0);
}

void sipKTextEditor_EditorChooser::wheelEvent(QWheelEvent *a0)
{
    typedef void (*sipVH_QtGui_5)(sip_gilstate_t,PyObject *,QWheelEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_wheelEvent);

    if (!meth)
    {
        QWidget::wheelEvent(a0);
        return;
    }

    ((sipVH_QtGui_5)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[5]))(sipGILState,meth,a0);
}

void sipKTextEditor_EditorChooser::keyPressEvent(QKeyEvent *a0)
{
    typedef void (*sipVH_QtGui_26)(sip_gilstate_t,PyObject *,QKeyEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_keyPressEvent);

    if (!meth)
    {
        QWidget::keyPressEvent(a0);
        return;
    }

    ((sipVH_QtGui_26)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[26]))(sipGILState,meth,a0);
}

void sipKTextEditor_EditorChooser::keyReleaseEvent(QKeyEvent *a0)
{
    typedef void (*sipVH_QtGui_26)(sip_gilstate_t,PyObject *,QKeyEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_keyReleaseEvent);

    if (!meth)
    {
        QWidget::keyReleaseEvent(a0);
        return;
    }

    ((sipVH_QtGui_26)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[26]))(sipGILState,meth,a0);
}

void sipKTextEditor_EditorChooser::focusInEvent(QFocusEvent *a0)
{
    typedef void (*sipVH_QtGui_25)(sip_gilstate_t,PyObject *,QFocusEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_focusInEvent);

    if (!meth)
    {
        QWidget::focusInEvent(a0);
        return;
    }

    ((sipVH_QtGui_25)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[25]))(sipGILState,meth,a0);
}

void sipKTextEditor_EditorChooser::focusOutEvent(QFocusEvent *a0)
{
    typedef void (*sipVH_QtGui_25)(sip_gilstate_t,PyObject *,QFocusEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_focusOutEvent);

    if (!meth)
    {
        QWidget::focusOutEvent(a0);
        return;
    }

    ((sipVH_QtGui_25)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[25]))(sipGILState,meth,a0);
}

void sipKTextEditor_EditorChooser::enterEvent(QEvent *a0)
{
    typedef void (*sipVH_QtCore_19)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_enterEvent);

    if (!meth)
    {
        QWidget::enterEvent(a0);
        return;
    }

    ((sipVH_QtCore_19)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[19]))(sipGILState,meth,a0);
}

void sipKTextEditor_EditorChooser::leaveEvent(QEvent *a0)
{
    typedef void (*sipVH_QtCore_19)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,NULL,sipName_leaveEvent);

    if (!meth)
    {
        QWidget::leaveEvent(a0);
        return;
    }

    ((sipVH_QtCore_19)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[19]))(sipGILState,meth,a0);
}

void sipKTextEditor_EditorChooser::paintEvent(QPaintEvent *a0)
{
    typedef void (*sipVH_QtGui_3)(sip_gilstate_t,PyObject *,QPaintEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,NULL,sipName_paintEvent);

    if (!meth)
    {
        QWidget::paintEvent(a0);
        return;
    }

    ((sipVH_QtGui_3)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[3]))(sipGILState,meth,a0);
}

void sipKTextEditor_EditorChooser::moveEvent(QMoveEvent *a0)
{
    typedef void (*sipVH_QtGui_24)(sip_gilstate_t,PyObject *,QMoveEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,NULL,sipName_moveEvent);

    if (!meth)
    {
        QWidget::moveEvent(a0);
        return;
    }

    ((sipVH_QtGui_24)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[24]))(sipGILState,meth,a0);
}

void sipKTextEditor_EditorChooser::resizeEvent(QResizeEvent *a0)
{
    typedef void (*sipVH_QtGui_2)(sip_gilstate_t,PyObject *,QResizeEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],sipPySelf,NULL,sipName_resizeEvent);

    if (!meth)
    {
        QWidget::resizeEvent(a0);
        return;
    }

    ((sipVH_QtGui_2)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[2]))(sipGILState,meth,a0);
}

void sipKTextEditor_EditorChooser::closeEvent(QCloseEvent *a0)
{
    typedef void (*sipVH_QtGui_23)(sip_gilstate_t,PyObject *,QCloseEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,NULL,sipName_closeEvent);

    if (!meth)
    {
        QWidget::closeEvent(a0);
        return;
    }

    ((sipVH_QtGui_23)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[23]))(sipGILState,meth,a0);
}

void sipKTextEditor_EditorChooser::contextMenuEvent(QContextMenuEvent *a0)
{
    typedef void (*sipVH_QtGui_22)(sip_gilstate_t,PyObject *,QContextMenuEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[22],sipPySelf,NULL,sipName_contextMenuEvent);

    if (!meth)
    {
        QWidget::contextMenuEvent(a0);
        return;
    }

    ((sipVH_QtGui_22)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[22]))(sipGILState,meth,a0);
}

void sipKTextEditor_EditorChooser::tabletEvent(QTabletEvent *a0)
{
    typedef void (*sipVH_QtGui_21)(sip_gilstate_t,PyObject *,QTabletEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[23],sipPySelf,NULL,sipName_tabletEvent);

    if (!meth)
    {
        QWidget::tabletEvent(a0);
        return;
    }

    ((sipVH_QtGui_21)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[21]))(sipGILState,meth,a0);
}

void sipKTextEditor_EditorChooser::actionEvent(QActionEvent *a0)
{
    typedef void (*sipVH_QtGui_20)(sip_gilstate_t,PyObject *,QActionEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[24],sipPySelf,NULL,sipName_actionEvent);

    if (!meth)
    {
        QWidget::actionEvent(a0);
        return;
    }

    ((sipVH_QtGui_20)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[20]))(sipGILState,meth,a0);
}

void sipKTextEditor_EditorChooser::dragEnterEvent(QDragEnterEvent *a0)
{
    typedef void (*sipVH_QtGui_19)(sip_gilstate_t,PyObject *,QDragEnterEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[25],sipPySelf,NULL,sipName_dragEnterEvent);

    if (!meth)
    {
        QWidget::dragEnterEvent(a0);
        return;
    }

    ((sipVH_QtGui_19)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[19]))(sipGILState,meth,a0);
}

void sipKTextEditor_EditorChooser::dragMoveEvent(QDragMoveEvent *a0)
{
    typedef void (*sipVH_QtGui_18)(sip_gilstate_t,PyObject *,QDragMoveEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[26],sipPySelf,NULL,sipName_dragMoveEvent);

    if (!meth)
    {
        QWidget::dragMoveEvent(a0);
        return;
    }

    ((sipVH_QtGui_18)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[18]))(sipGILState,meth,a0);
}

void sipKTextEditor_EditorChooser::dragLeaveEvent(QDragLeaveEvent *a0)
{
    typedef void (*sipVH_QtGui_17)(sip_gilstate_t,PyObject *,QDragLeaveEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[27],sipPySelf,NULL,sipName_dragLeaveEvent);

    if (!meth)
    {
        QWidget::dragLeaveEvent(a0);
        return;
    }

    ((sipVH_QtGui_17)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[17]))(sipGILState,meth,a0);
}

void sipKTextEditor_EditorChooser::dropEvent(QDropEvent *a0)
{
    typedef void (*sipVH_QtGui_16)(sip_gilstate_t,PyObject *,QDropEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[28],sipPySelf,NULL,sipName_dropEvent);

    if (!meth)
    {
        QWidget::dropEvent(a0);
        return;
    }

    ((sipVH_QtGui_16)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[16]))(sipGILState,meth,a0);
}

void sipKTextEditor_EditorChooser::showEvent(QShowEvent *a0)
{
    typedef void (*sipVH_QtGui_1)(sip_gilstate_t,PyObject *,QShowEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[29],sipPySelf,NULL,sipName_showEvent);

    if (!meth)
    {
        QWidget::showEvent(a0);
        return;
    }

    ((sipVH_QtGui_1)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[1]))(sipGILState,meth,a0);
}

void sipKTextEditor_EditorChooser::hideEvent(QHideEvent *a0)
{
    typedef void (*sipVH_QtGui_0)(sip_gilstate_t,PyObject *,QHideEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[30],sipPySelf,NULL,sipName_hideEvent);

    if (!meth)
    {
        QWidget::hideEvent(a0);
        return;
    }

    ((sipVH_QtGui_0)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[0]))(sipGILState,meth,a0);
}

void sipKTextEditor_EditorChooser::changeEvent(QEvent *a0)
{
    typedef void (*sipVH_QtCore_19)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[31],sipPySelf,NULL,sipName_changeEvent);

    if (!meth)
    {
        QWidget::changeEvent(a0);
        return;
    }

    ((sipVH_QtCore_19)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[19]))(sipGILState,meth,a0);
}

int sipKTextEditor_EditorChooser::metric(QPaintDevice::PaintDeviceMetric a0) const
{
    typedef int (*sipVH_QtGui_15)(sip_gilstate_t,PyObject *,QPaintDevice::PaintDeviceMetric);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return QWidget::metric(a0);

    return ((sipVH_QtGui_15)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[15]))(sipGILState,meth,a0);
}

void sipKTextEditor_EditorChooser::inputMethodEvent(QInputMethodEvent *a0)
{
    typedef void (*sipVH_QtGui_14)(sip_gilstate_t,PyObject *,QInputMethodEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[33],sipPySelf,NULL,sipName_inputMethodEvent);

    if (!meth)
    {
        QWidget::inputMethodEvent(a0);
        return;
    }

    ((sipVH_QtGui_14)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[14]))(sipGILState,meth,a0);
}

QVariant sipKTextEditor_EditorChooser::inputMethodQuery(Qt::InputMethodQuery a0) const
{
    typedef QVariant (*sipVH_QtGui_13)(sip_gilstate_t,PyObject *,Qt::InputMethodQuery);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return QWidget::inputMethodQuery(a0);

    return ((sipVH_QtGui_13)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[13]))(sipGILState,meth,a0);
}

bool sipKTextEditor_EditorChooser::focusNextPrevChild(bool a0)
{
    typedef bool (*sipVH_QtGui_12)(sip_gilstate_t,PyObject *,bool);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[35],sipPySelf,NULL,sipName_focusNextPrevChild);

    if (!meth)
        return QWidget::focusNextPrevChild(a0);

    return ((sipVH_QtGui_12)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[12]))(sipGILState,meth,a0);
}

void sipKTextEditor_EditorChooser::enabledChange(bool a0)
{
    typedef void (*sipVH_QtGui_7)(sip_gilstate_t,PyObject *,bool);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[36],sipPySelf,NULL,sipName_enabledChange);

    if (!meth)
    {
        QWidget::enabledChange(a0);
        return;
    }

    ((sipVH_QtGui_7)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[7]))(sipGILState,meth,a0);
}

void sipKTextEditor_EditorChooser::paletteChange(const QPalette& a0)
{
    typedef void (*sipVH_QtGui_11)(sip_gilstate_t,PyObject *,const QPalette&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[37],sipPySelf,NULL,sipName_paletteChange);

    if (!meth)
    {
        QWidget::paletteChange(a0);
        return;
    }

    ((sipVH_QtGui_11)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[11]))(sipGILState,meth,a0);
}

void sipKTextEditor_EditorChooser::fontChange(const QFont& a0)
{
    typedef void (*sipVH_QtGui_10)(sip_gilstate_t,PyObject *,const QFont&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[38],sipPySelf,NULL,sipName_fontChange);

    if (!meth)
    {
        QWidget::fontChange(a0);
        return;
    }

    ((sipVH_QtGui_10)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[10]))(sipGILState,meth,a0);
}

void sipKTextEditor_EditorChooser::windowActivationChange(bool a0)
{
    typedef void (*sipVH_QtGui_7)(sip_gilstate_t,PyObject *,bool);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[39],sipPySelf,NULL,sipName_windowActivationChange);

    if (!meth)
    {
        QWidget::windowActivationChange(a0);
        return;
    }

    ((sipVH_QtGui_7)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[7]))(sipGILState,meth,a0);
}

void sipKTextEditor_EditorChooser::languageChange()
{
    typedef void (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[40],sipPySelf,NULL,sipName_languageChange);

    if (!meth)
    {
        QWidget::languageChange();
        return;
    }

    ((sipVH_QtCore_5)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[5]))(sipGILState,meth);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[41],sipPySelf,NULL,sipName_eventFilter);

    if (!meth)
        return QObject::eventFilter(a0,a1);

    return ((sipVH_QtCore_21)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[21]))(sipGILState,meth,a0,a1);
}

void sipKTextEditor_EditorChooser::timerEvent(QTimerEvent *a0)
{
    typedef void (*sipVH_QtCore_3)(sip_gilstate_t,PyObject *,QTimerEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[42],sipPySelf,NULL,sipName_timerEvent);

    if (!meth)
    {
        QObject::timerEvent(a0);
        return;
    }

    ((sipVH_QtCore_3)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[3]))(sipGILState,meth,a0);
}

void sipKTextEditor_EditorChooser::childEvent(QChildEvent *a0)
{
    typedef void (*sipVH_QtCore_20)(sip_gilstate_t,PyObject *,QChildEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[43],sipPySelf,NULL,sipName_childEvent);

    if (!meth)
    {
        QObject::childEvent(a0);
        return;
    }

    ((sipVH_QtCore_20)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[20]))(sipGILState,meth,a0);
}

void sipKTextEditor_EditorChooser::customEvent(QEvent *a0)
{
    typedef void (*sipVH_QtCore_19)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[44],sipPySelf,NULL,sipName_customEvent);

    if (!meth)
    {
        QObject::customEvent(a0);
        return;
    }

    ((sipVH_QtCore_19)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[19]))(sipGILState,meth,a0);
}

void sipKTextEditor_EditorChooser::connectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[45],sipPySelf,NULL,sipName_connectNotify);

    if (!meth)
    {
        QObject::connectNotify(a0);
        return;
    }

    ((sipVH_QtCore_18)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

void sipKTextEditor_EditorChooser::disconnectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[46],sipPySelf,NULL,sipName_disconnectNotify);

    if (!meth)
    {
        QObject::disconnectNotify(a0);
        return;
    }

    ((sipVH_QtCore_18)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

int sipKTextEditor_EditorChooser::sipProtect_receivers(const char *a0) const
{
    return QObject::receivers(a0);
}

void sipKTextEditor_EditorChooser::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent *a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipKTextEditor_EditorChooser::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent *a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipKTextEditor_EditorChooser::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipKTextEditor_EditorChooser::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipKTextEditor_EditorChooser::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

bool sipKTextEditor_EditorChooser::sipProtectVirt_event(bool sipSelfWasArg,QEvent *a0)
{
    return (sipSelfWasArg ? QWidget::event(a0) : event(a0));
}

void sipKTextEditor_EditorChooser::sipProtectVirt_mousePressEvent(bool sipSelfWasArg,QMouseEvent *a0)
{
    (sipSelfWasArg ? QWidget::mousePressEvent(a0) : mousePressEvent(a0));
}

void sipKTextEditor_EditorChooser::sipProtectVirt_mouseReleaseEvent(bool sipSelfWasArg,QMouseEvent *a0)
{
    (sipSelfWasArg ? QWidget::mouseReleaseEvent(a0) : mouseReleaseEvent(a0));
}

void sipKTextEditor_EditorChooser::sipProtectVirt_mouseDoubleClickEvent(bool sipSelfWasArg,QMouseEvent *a0)
{
    (sipSelfWasArg ? QWidget::mouseDoubleClickEvent(a0) : mouseDoubleClickEvent(a0));
}

void sipKTextEditor_EditorChooser::sipProtectVirt_mouseMoveEvent(bool sipSelfWasArg,QMouseEvent *a0)
{
    (sipSelfWasArg ? QWidget::mouseMoveEvent(a0) : mouseMoveEvent(a0));
}

void sipKTextEditor_EditorChooser::sipProtectVirt_wheelEvent(bool sipSelfWasArg,QWheelEvent *a0)
{
    (sipSelfWasArg ? QWidget::wheelEvent(a0) : wheelEvent(a0));
}

void sipKTextEditor_EditorChooser::sipProtectVirt_keyPressEvent(bool sipSelfWasArg,QKeyEvent *a0)
{
    (sipSelfWasArg ? QWidget::keyPressEvent(a0) : keyPressEvent(a0));
}

void sipKTextEditor_EditorChooser::sipProtectVirt_keyReleaseEvent(bool sipSelfWasArg,QKeyEvent *a0)
{
    (sipSelfWasArg ? QWidget::keyReleaseEvent(a0) : keyReleaseEvent(a0));
}

void sipKTextEditor_EditorChooser::sipProtectVirt_focusInEvent(bool sipSelfWasArg,QFocusEvent *a0)
{
    (sipSelfWasArg ? QWidget::focusInEvent(a0) : focusInEvent(a0));
}

void sipKTextEditor_EditorChooser::sipProtectVirt_focusOutEvent(bool sipSelfWasArg,QFocusEvent *a0)
{
    (sipSelfWasArg ? QWidget::focusOutEvent(a0) : focusOutEvent(a0));
}

void sipKTextEditor_EditorChooser::sipProtectVirt_enterEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QWidget::enterEvent(a0) : enterEvent(a0));
}

void sipKTextEditor_EditorChooser::sipProtectVirt_leaveEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QWidget::leaveEvent(a0) : leaveEvent(a0));
}

void sipKTextEditor_EditorChooser::sipProtectVirt_paintEvent(bool sipSelfWasArg,QPaintEvent *a0)
{
    (sipSelfWasArg ? QWidget::paintEvent(a0) : paintEvent(a0));
}

void sipKTextEditor_EditorChooser::sipProtectVirt_moveEvent(bool sipSelfWasArg,QMoveEvent *a0)
{
    (sipSelfWasArg ? QWidget::moveEvent(a0) : moveEvent(a0));
}

void sipKTextEditor_EditorChooser::sipProtectVirt_resizeEvent(bool sipSelfWasArg,QResizeEvent *a0)
{
    (sipSelfWasArg ? QWidget::resizeEvent(a0) : resizeEvent(a0));
}

void sipKTextEditor_EditorChooser::sipProtectVirt_closeEvent(bool sipSelfWasArg,QCloseEvent *a0)
{
    (sipSelfWasArg ? QWidget::closeEvent(a0) : closeEvent(a0));
}

void sipKTextEditor_EditorChooser::sipProtectVirt_contextMenuEvent(bool sipSelfWasArg,QContextMenuEvent *a0)
{
    (sipSelfWasArg ? QWidget::contextMenuEvent(a0) : contextMenuEvent(a0));
}

void sipKTextEditor_EditorChooser::sipProtectVirt_tabletEvent(bool sipSelfWasArg,QTabletEvent *a0)
{
    (sipSelfWasArg ? QWidget::tabletEvent(a0) : tabletEvent(a0));
}

void sipKTextEditor_EditorChooser::sipProtectVirt_actionEvent(bool sipSelfWasArg,QActionEvent *a0)
{
    (sipSelfWasArg ? QWidget::actionEvent(a0) : actionEvent(a0));
}

void sipKTextEditor_EditorChooser::sipProtectVirt_dragEnterEvent(bool sipSelfWasArg,QDragEnterEvent *a0)
{
    (sipSelfWasArg ? QWidget::dragEnterEvent(a0) : dragEnterEvent(a0));
}

void sipKTextEditor_EditorChooser::sipProtectVirt_dragMoveEvent(bool sipSelfWasArg,QDragMoveEvent *a0)
{
    (sipSelfWasArg ? QWidget::dragMoveEvent(a0) : dragMoveEvent(a0));
}

void sipKTextEditor_EditorChooser::sipProtectVirt_dragLeaveEvent(bool sipSelfWasArg,QDragLeaveEvent *a0)
{
    (sipSelfWasArg ? QWidget::dragLeaveEvent(a0) : dragLeaveEvent(a0));
}

void sipKTextEditor_EditorChooser::sipProtectVirt_dropEvent(bool sipSelfWasArg,QDropEvent *a0)
{
    (sipSelfWasArg ? QWidget::dropEvent(a0) : dropEvent(a0));
}

void sipKTextEditor_EditorChooser::sipProtectVirt_showEvent(bool sipSelfWasArg,QShowEvent *a0)
{
    (sipSelfWasArg ? QWidget::showEvent(a0) : showEvent(a0));
}

void sipKTextEditor_EditorChooser::sipProtectVirt_hideEvent(bool sipSelfWasArg,QHideEvent *a0)
{
    (sipSelfWasArg ? QWidget::hideEvent(a0) : hideEvent(a0));
}

void sipKTextEditor_EditorChooser::sipProtectVirt_changeEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QWidget::changeEvent(a0) : changeEvent(a0));
}

int sipKTextEditor_EditorChooser::sipProtectVirt_metric(bool sipSelfWasArg,QPaintDevice::PaintDeviceMetric a0) const
{
    return (sipSelfWasArg ? QWidget::metric(a0) : metric(a0));
}

void sipKTextEditor_EditorChooser::sipProtectVirt_inputMethodEvent(bool sipSelfWasArg,QInputMethodEvent *a0)
{
    (sipSelfWasArg ? QWidget::inputMethodEvent(a0) : inputMethodEvent(a0));
}

void sipKTextEditor_EditorChooser::sipProtect_resetInputContext()
{
    QWidget::resetInputContext();
}

void sipKTextEditor_EditorChooser::sipProtect_updateMicroFocus()
{
    QWidget::updateMicroFocus();
}

void sipKTextEditor_EditorChooser::sipProtect_create(WId a0,bool a1,bool a2)
{
    QWidget::create(a0,a1,a2);
}

void sipKTextEditor_EditorChooser::sipProtect_destroy(bool a0,bool a1)
{
    QWidget::destroy(a0,a1);
}

bool sipKTextEditor_EditorChooser::sipProtectVirt_focusNextPrevChild(bool sipSelfWasArg,bool a0)
{
    return (sipSelfWasArg ? QWidget::focusNextPrevChild(a0) : focusNextPrevChild(a0));
}

bool sipKTextEditor_EditorChooser::sipProtect_focusNextChild()
{
    return QWidget::focusNextChild();
}

bool sipKTextEditor_EditorChooser::sipProtect_focusPreviousChild()
{
    return QWidget::focusPreviousChild();
}

void sipKTextEditor_EditorChooser::sipProtectVirt_enabledChange(bool sipSelfWasArg,bool a0)
{
    (sipSelfWasArg ? QWidget::enabledChange(a0) : enabledChange(a0));
}

void sipKTextEditor_EditorChooser::sipProtectVirt_paletteChange(bool sipSelfWasArg,const QPalette& a0)
{
    (sipSelfWasArg ? QWidget::paletteChange(a0) : paletteChange(a0));
}

void sipKTextEditor_EditorChooser::sipProtectVirt_fontChange(bool sipSelfWasArg,const QFont& a0)
{
    (sipSelfWasArg ? QWidget::fontChange(a0) : fontChange(a0));
}

void sipKTextEditor_EditorChooser::sipProtectVirt_windowActivationChange(bool sipSelfWasArg,bool a0)
{
    (sipSelfWasArg ? QWidget::windowActivationChange(a0) : windowActivationChange(a0));
}

void sipKTextEditor_EditorChooser::sipProtectVirt_languageChange(bool sipSelfWasArg)
{
    (sipSelfWasArg ? QWidget::languageChange() : languageChange());
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_receivers(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_receivers(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        char * a0;
        sipKTextEditor_EditorChooser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KTextEditor_EditorChooser,&sipCpp,&a0))
        {
            int sipRes = 0;

#line 462 "/usr/local/share/py-sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        if (helper)
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
#line 2870 "sipktexteditorpart4.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_timerEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_timerEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent * a0;
        sipKTextEditor_EditorChooser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_EditorChooser,&sipCpp,sipType_QTimerEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_childEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_childEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent * a0;
        sipKTextEditor_EditorChooser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_EditorChooser,&sipCpp,sipType_QChildEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_customEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_customEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipKTextEditor_EditorChooser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_EditorChooser,&sipCpp,sipType_QEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_connectNotify(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_connectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipKTextEditor_EditorChooser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KTextEditor_EditorChooser,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_disconnectNotify(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_disconnectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipKTextEditor_EditorChooser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KTextEditor_EditorChooser,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_event(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_event(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipKTextEditor_EditorChooser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_EditorChooser,&sipCpp,sipType_QEvent,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_event(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_mousePressEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_mousePressEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMouseEvent * a0;
        sipKTextEditor_EditorChooser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_EditorChooser,&sipCpp,sipType_QMouseEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_mousePressEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_mouseReleaseEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_mouseReleaseEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMouseEvent * a0;
        sipKTextEditor_EditorChooser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_EditorChooser,&sipCpp,sipType_QMouseEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_mouseReleaseEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_mouseDoubleClickEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_mouseDoubleClickEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMouseEvent * a0;
        sipKTextEditor_EditorChooser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_EditorChooser,&sipCpp,sipType_QMouseEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_mouseDoubleClickEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_mouseMoveEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_mouseMoveEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMouseEvent * a0;
        sipKTextEditor_EditorChooser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_EditorChooser,&sipCpp,sipType_QMouseEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_mouseMoveEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_wheelEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_wheelEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QWheelEvent * a0;
        sipKTextEditor_EditorChooser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_EditorChooser,&sipCpp,sipType_QWheelEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_wheelEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_keyPressEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_keyPressEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QKeyEvent * a0;
        sipKTextEditor_EditorChooser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_EditorChooser,&sipCpp,sipType_QKeyEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_keyPressEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_keyReleaseEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_keyReleaseEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QKeyEvent * a0;
        sipKTextEditor_EditorChooser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_EditorChooser,&sipCpp,sipType_QKeyEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_keyReleaseEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_focusInEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_focusInEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QFocusEvent * a0;
        sipKTextEditor_EditorChooser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_EditorChooser,&sipCpp,sipType_QFocusEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_focusInEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_focusOutEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_focusOutEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QFocusEvent * a0;
        sipKTextEditor_EditorChooser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_EditorChooser,&sipCpp,sipType_QFocusEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_focusOutEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_enterEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_enterEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipKTextEditor_EditorChooser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_EditorChooser,&sipCpp,sipType_QEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_enterEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_leaveEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_leaveEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipKTextEditor_EditorChooser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_EditorChooser,&sipCpp,sipType_QEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_leaveEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_paintEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_paintEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPaintEvent * a0;
        sipKTextEditor_EditorChooser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_EditorChooser,&sipCpp,sipType_QPaintEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_paintEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_moveEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_moveEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMoveEvent * a0;
        sipKTextEditor_EditorChooser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_EditorChooser,&sipCpp,sipType_QMoveEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_moveEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_resizeEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_resizeEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QResizeEvent * a0;
        sipKTextEditor_EditorChooser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_EditorChooser,&sipCpp,sipType_QResizeEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_resizeEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_closeEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_closeEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QCloseEvent * a0;
        sipKTextEditor_EditorChooser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_EditorChooser,&sipCpp,sipType_QCloseEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_closeEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_contextMenuEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_contextMenuEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QContextMenuEvent * a0;
        sipKTextEditor_EditorChooser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_EditorChooser,&sipCpp,sipType_QContextMenuEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_contextMenuEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_tabletEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_tabletEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTabletEvent * a0;
        sipKTextEditor_EditorChooser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_EditorChooser,&sipCpp,sipType_QTabletEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_tabletEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_actionEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_actionEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QActionEvent * a0;
        sipKTextEditor_EditorChooser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_EditorChooser,&sipCpp,sipType_QActionEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_actionEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_dragEnterEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_dragEnterEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QDragEnterEvent * a0;
        sipKTextEditor_EditorChooser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_EditorChooser,&sipCpp,sipType_QDragEnterEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_dragEnterEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_dragMoveEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_dragMoveEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QDragMoveEvent * a0;
        sipKTextEditor_EditorChooser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_EditorChooser,&sipCpp,sipType_QDragMoveEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_dragMoveEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_dragLeaveEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_dragLeaveEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QDragLeaveEvent * a0;
        sipKTextEditor_EditorChooser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_EditorChooser,&sipCpp,sipType_QDragLeaveEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_dragLeaveEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_dropEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_dropEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QDropEvent * a0;
        sipKTextEditor_EditorChooser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_EditorChooser,&sipCpp,sipType_QDropEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_dropEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_showEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_showEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QShowEvent * a0;
        sipKTextEditor_EditorChooser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_EditorChooser,&sipCpp,sipType_QShowEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_showEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_hideEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_hideEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QHideEvent * a0;
        sipKTextEditor_EditorChooser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_EditorChooser,&sipCpp,sipType_QHideEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_hideEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_changeEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_changeEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipKTextEditor_EditorChooser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_EditorChooser,&sipCpp,sipType_QEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_changeEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_metric(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_metric(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPaintDevice::PaintDeviceMetric a0;
        sipKTextEditor_EditorChooser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pE",&sipSelf,sipType_KTextEditor_EditorChooser,&sipCpp,sipType_QPaintDevice_PaintDeviceMetric,&a0))
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_metric(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_inputMethodEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_inputMethodEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QInputMethodEvent * a0;
        sipKTextEditor_EditorChooser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_EditorChooser,&sipCpp,sipType_QInputMethodEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_inputMethodEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_resetInputContext(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_resetInputContext(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipKTextEditor_EditorChooser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_KTextEditor_EditorChooser,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_resetInputContext();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_updateMicroFocus(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_updateMicroFocus(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipKTextEditor_EditorChooser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_KTextEditor_EditorChooser,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_updateMicroFocus();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_create(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_create(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        WId a0 = 0;
        bool a1 = 1;
        bool a2 = 1;
        sipKTextEditor_EditorChooser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p|mbb",&sipSelf,sipType_KTextEditor_EditorChooser,&sipCpp,&a0,&a1,&a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_create(a0,a1,a2);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_destroy(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_destroy(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        bool a0 = 1;
        bool a1 = 1;
        sipKTextEditor_EditorChooser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p|bb",&sipSelf,sipType_KTextEditor_EditorChooser,&sipCpp,&a0,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_destroy(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_focusNextPrevChild(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_focusNextPrevChild(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        bool a0;
        sipKTextEditor_EditorChooser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pb",&sipSelf,sipType_KTextEditor_EditorChooser,&sipCpp,&a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_focusNextPrevChild(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_focusNextChild(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_focusNextChild(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipKTextEditor_EditorChooser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_KTextEditor_EditorChooser,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_focusNextChild();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_focusPreviousChild(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_focusPreviousChild(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipKTextEditor_EditorChooser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_KTextEditor_EditorChooser,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_focusPreviousChild();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_enabledChange(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_enabledChange(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        bool a0;
        sipKTextEditor_EditorChooser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pb",&sipSelf,sipType_KTextEditor_EditorChooser,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_enabledChange(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_paletteChange(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_paletteChange(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QPalette * a0;
        sipKTextEditor_EditorChooser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9",&sipSelf,sipType_KTextEditor_EditorChooser,&sipCpp,sipType_QPalette,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_paletteChange(sipSelfWasArg,*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_fontChange(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_fontChange(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QFont * a0;
        sipKTextEditor_EditorChooser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9",&sipSelf,sipType_KTextEditor_EditorChooser,&sipCpp,sipType_QFont,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_fontChange(sipSelfWasArg,*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_windowActivationChange(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_windowActivationChange(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        bool a0;
        sipKTextEditor_EditorChooser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pb",&sipSelf,sipType_KTextEditor_EditorChooser,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_windowActivationChange(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_languageChange(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_languageChange(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipKTextEditor_EditorChooser *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_KTextEditor_EditorChooser,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_languageChange(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_readAppSetting(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_readAppSetting(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_EditorChooser,sipName_readAppSetting);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_writeAppSetting(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_writeAppSetting(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_EditorChooser,sipName_writeAppSetting);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_EditorChooser_editor(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_EditorChooser_editor(PyObject *,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

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

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_EditorChooser,sipName_editor);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KTextEditor_EditorChooser(void *, const sipTypeDef *);}
static void *cast_KTextEditor_EditorChooser(void *ptr,const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_KTextEditor_EditorChooser)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QWidget)->ctd_cast((QWidget *)(KTextEditor::EditorChooser *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKTextEditor_EditorChooser *>(sipCppV);
    else
        delete reinterpret_cast<KTextEditor::EditorChooser *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KTextEditor_EditorChooser(sipSimpleWrapper *);}
static void dealloc_KTextEditor_EditorChooser(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKTextEditor_EditorChooser *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KTextEditor_EditorChooser(sipSelf->u.cppPtr,sipSelf->flags);
    }
}


extern "C" {static void *init_KTextEditor_EditorChooser(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KTextEditor_EditorChooser(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    sipKTextEditor_EditorChooser *sipCpp = 0;

    if (!sipCpp)
    {
        QWidget * a0 = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"|J8",sipType_QWidget,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_EditorChooser(a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_KTextEditor_EditorChooser[] = {
    {SIP_MLNAME_CAST(sipName_actionEvent), meth_KTextEditor_EditorChooser_actionEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_changeEvent), meth_KTextEditor_EditorChooser_changeEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KTextEditor_EditorChooser_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_closeEvent), meth_KTextEditor_EditorChooser_closeEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KTextEditor_EditorChooser_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_contextMenuEvent), meth_KTextEditor_EditorChooser_contextMenuEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_create), meth_KTextEditor_EditorChooser_create, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KTextEditor_EditorChooser_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_destroy), meth_KTextEditor_EditorChooser_destroy, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KTextEditor_EditorChooser_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dragEnterEvent), meth_KTextEditor_EditorChooser_dragEnterEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dragLeaveEvent), meth_KTextEditor_EditorChooser_dragLeaveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dragMoveEvent), meth_KTextEditor_EditorChooser_dragMoveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dropEvent), meth_KTextEditor_EditorChooser_dropEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_editor), meth_KTextEditor_EditorChooser_editor, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_enabledChange), meth_KTextEditor_EditorChooser_enabledChange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_enterEvent), meth_KTextEditor_EditorChooser_enterEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_event), meth_KTextEditor_EditorChooser_event, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_focusInEvent), meth_KTextEditor_EditorChooser_focusInEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_focusNextChild), meth_KTextEditor_EditorChooser_focusNextChild, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_focusNextPrevChild), meth_KTextEditor_EditorChooser_focusNextPrevChild, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_focusOutEvent), meth_KTextEditor_EditorChooser_focusOutEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_focusPreviousChild), meth_KTextEditor_EditorChooser_focusPreviousChild, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fontChange), meth_KTextEditor_EditorChooser_fontChange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hideEvent), meth_KTextEditor_EditorChooser_hideEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_inputMethodEvent), meth_KTextEditor_EditorChooser_inputMethodEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_keyPressEvent), meth_KTextEditor_EditorChooser_keyPressEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_keyReleaseEvent), meth_KTextEditor_EditorChooser_keyReleaseEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_languageChange), meth_KTextEditor_EditorChooser_languageChange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_leaveEvent), meth_KTextEditor_EditorChooser_leaveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_metric), meth_KTextEditor_EditorChooser_metric, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseDoubleClickEvent), meth_KTextEditor_EditorChooser_mouseDoubleClickEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseMoveEvent), meth_KTextEditor_EditorChooser_mouseMoveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mousePressEvent), meth_KTextEditor_EditorChooser_mousePressEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseReleaseEvent), meth_KTextEditor_EditorChooser_mouseReleaseEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_moveEvent), meth_KTextEditor_EditorChooser_moveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_paintEvent), meth_KTextEditor_EditorChooser_paintEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_paletteChange), meth_KTextEditor_EditorChooser_paletteChange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_readAppSetting), meth_KTextEditor_EditorChooser_readAppSetting, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KTextEditor_EditorChooser_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_resetInputContext), meth_KTextEditor_EditorChooser_resetInputContext, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_resizeEvent), meth_KTextEditor_EditorChooser_resizeEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_showEvent), meth_KTextEditor_EditorChooser_showEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_tabletEvent), meth_KTextEditor_EditorChooser_tabletEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KTextEditor_EditorChooser_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_updateMicroFocus), meth_KTextEditor_EditorChooser_updateMicroFocus, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_wheelEvent), meth_KTextEditor_EditorChooser_wheelEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_windowActivationChange), meth_KTextEditor_EditorChooser_windowActivationChange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_writeAppSetting), meth_KTextEditor_EditorChooser_writeAppSetting, METH_VARARGS, NULL}
};


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


pyqt4ClassTypeDef pyqt4Type_ktexteditor_KTextEditor_EditorChooser = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__EditorChooser,
        {0}
    },
    sipNameNr_EditorChooser,
    -1,
    -1,
    {1, 255, 0},
    supers_KTextEditor_EditorChooser,
    0,
    49, methods_KTextEditor_EditorChooser,
    0, 0,
    0, 0,
    init_KTextEditor_EditorChooser,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_EditorChooser,
    release_KTextEditor_EditorChooser,
    cast_KTextEditor_EditorChooser,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &KTextEditor::EditorChooser::staticMetaObject,
    0,
    pyqt4_signals_KTextEditor_EditorChooser
};

#line 34 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/editor.sip"
#include <ktexteditor/editor.h>
#line 4413 "sipktexteditorpart4.cpp"

#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 4417 "sipktexteditorpart4.cpp"
#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/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>
#line 4428 "sipktexteditorpart4.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kicon.sip"
#include <kicon.h>
#line 4431 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 4434 "sipktexteditorpart4.cpp"
#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/configpage.sip"
#include <ktexteditor/configpage.h>
#line 4437 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 4440 "sipktexteditorpart4.cpp"
#line 35 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kconfig.sip"
#include <kconfig.h>
#line 4443 "sipktexteditorpart4.cpp"
#line 51 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kaboutdata.sip"
#include <kaboutdata.h>
#line 4446 "sipktexteditorpart4.cpp"
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 4461 "sipktexteditorpart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kaction.sip"
#include <kaction.h>
#line 4464 "sipktexteditorpart4.cpp"
#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/commandinterface.sip"
#include <ktexteditor/commandinterface.h>
#line 4467 "sipktexteditorpart4.cpp"
#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/view.sip"
#include <ktexteditor/view.h>

#include <ktexteditor/codecompletioninterface.h>
#include <ktexteditor/sessionconfiginterface.h>
#include <ktexteditor/texthintinterface.h>
#line 4474 "sipktexteditorpart4.cpp"
#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/smartrange.sip"
#include <ktexteditor/smartrange.h>
#line 4477 "sipktexteditorpart4.cpp"
#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/rangefeedback.sip"
#include <ktexteditor/rangefeedback.h>
#line 4480 "sipktexteditorpart4.cpp"
#line 60 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/rangefeedback.sip"
#include <ktexteditor/rangefeedback.h>
#line 4483 "sipktexteditorpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4486 "sipktexteditorpart4.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4489 "sipktexteditorpart4.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 4492 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 4495 "sipktexteditorpart4.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 4526 "sipktexteditorpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 4529 "sipktexteditorpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 4532 "sipktexteditorpart4.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 4535 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 4538 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 4541 "sipktexteditorpart4.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 4544 "sipktexteditorpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 4547 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 4550 "sipktexteditorpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 4553 "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 public method for every protected method visible from
     * this class.
     */
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    KTextEditor::Document * createDocument(QObject *);
    const QList<KTextEditor::Document *>& documents();
    const KAboutData * aboutData() const;
    void readConfig(KConfig *);
    void writeConfig(KConfig *);
    bool configDialogSupported() const;
    void configDialog(QWidget *);
    int configPages() const;
    KTextEditor::ConfigPage * configPage(int,QWidget *);
    QString configPageName(int) const;
    QString configPageFullName(int) const;
    KIcon configPageIcon(int) const;
    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()
{
    sipCommonDtor(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 && sip_ktexteditor_qt_metacast(sipPySelf,sipType_KTextEditor_Editor,_clname)) ? this : KTextEditor::Editor::qt_metacast(_clname);
}

KTextEditor::Document * sipKTextEditor_Editor::createDocument(QObject *a0)
{
    extern KTextEditor::Document * sipVH_ktexteditor_61(sip_gilstate_t,PyObject *,QObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,sipName_Editor,sipName_createDocument);

    if (!meth)
        return 0;

    return sipVH_ktexteditor_61(sipGILState,meth,a0);
}

const QList<KTextEditor::Document *>& sipKTextEditor_Editor::documents()
{
    extern const QList<KTextEditor::Document *>& sipVH_ktexteditor_60(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,sipName_Editor,sipName_documents);

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

    return sipVH_ktexteditor_60(sipGILState,meth);
}

const KAboutData * sipKTextEditor_Editor::aboutData() const
{
    typedef const KAboutData * (*sipVH_kdeui_42)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return 0;

    return ((sipVH_kdeui_42)(sipModuleAPI_ktexteditor_kdeui->em_virthandlers[42]))(sipGILState,meth);
}

void sipKTextEditor_Editor::readConfig(KConfig *a0)
{
    typedef void (*sipVH_kdecore_48)(sip_gilstate_t,PyObject *,KConfig *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,sipName_Editor,sipName_readConfig);

    if (!meth)
        return;

    ((sipVH_kdecore_48)(sipModuleAPI_ktexteditor_kdecore->em_virthandlers[48]))(sipGILState,meth,a0);
}

void sipKTextEditor_Editor::writeConfig(KConfig *a0)
{
    typedef void (*sipVH_kdecore_48)(sip_gilstate_t,PyObject *,KConfig *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,sipName_Editor,sipName_writeConfig);

    if (!meth)
        return;

    ((sipVH_kdecore_48)(sipModuleAPI_ktexteditor_kdecore->em_virthandlers[48]))(sipGILState,meth,a0);
}

bool sipKTextEditor_Editor::configDialogSupported() const
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return 0;

    return ((sipVH_QtCore_1)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

void sipKTextEditor_Editor::configDialog(QWidget *a0)
{
    typedef void (*sipVH_QtGui_8)(sip_gilstate_t,PyObject *,QWidget *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,sipName_Editor,sipName_configDialog);

    if (!meth)
        return;

    ((sipVH_QtGui_8)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[8]))(sipGILState,meth,a0);
}

int sipKTextEditor_Editor::configPages() const
{
    typedef int (*sipVH_QtCore_8)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return 0;

    return ((sipVH_QtCore_8)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[8]))(sipGILState,meth);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,sipName_Editor,sipName_configPage);

    if (!meth)
        return 0;

    return sipVH_ktexteditor_59(sipGILState,meth,a0,a1);
}

QString sipKTextEditor_Editor::configPageName(int a0) const
{
    typedef QString (*sipVH_QtGui_110)(sip_gilstate_t,PyObject *,int);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return QString();

    return ((sipVH_QtGui_110)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[110]))(sipGILState,meth,a0);
}

QString sipKTextEditor_Editor::configPageFullName(int a0) const
{
    typedef QString (*sipVH_QtGui_110)(sip_gilstate_t,PyObject *,int);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return QString();

    return ((sipVH_QtGui_110)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[110]))(sipGILState,meth,a0);
}

KIcon sipKTextEditor_Editor::configPageIcon(int a0) const
{
    extern KIcon sipVH_ktexteditor_58(sip_gilstate_t,PyObject *,int);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return KIcon();

    return sipVH_ktexteditor_58(sipGILState,meth,a0);
}

bool sipKTextEditor_Editor::event(QEvent *a0)
{
    typedef bool (*sipVH_QtCore_13)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return QObject::event(a0);

    return ((sipVH_QtCore_13)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[13]))(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return QObject::eventFilter(a0,a1);

    return ((sipVH_QtCore_21)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[21]))(sipGILState,meth,a0,a1);
}

void sipKTextEditor_Editor::timerEvent(QTimerEvent *a0)
{
    typedef void (*sipVH_QtCore_3)(sip_gilstate_t,PyObject *,QTimerEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        QObject::timerEvent(a0);
        return;
    }

    ((sipVH_QtCore_3)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[3]))(sipGILState,meth,a0);
}

void sipKTextEditor_Editor::childEvent(QChildEvent *a0)
{
    typedef void (*sipVH_QtCore_20)(sip_gilstate_t,PyObject *,QChildEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        QObject::childEvent(a0);
        return;
    }

    ((sipVH_QtCore_20)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[20]))(sipGILState,meth,a0);
}

void sipKTextEditor_Editor::customEvent(QEvent *a0)
{
    typedef void (*sipVH_QtCore_19)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        QObject::customEvent(a0);
        return;
    }

    ((sipVH_QtCore_19)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[19]))(sipGILState,meth,a0);
}

void sipKTextEditor_Editor::connectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        QObject::connectNotify(a0);
        return;
    }

    ((sipVH_QtCore_18)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

void sipKTextEditor_Editor::disconnectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        QObject::disconnectNotify(a0);
        return;
    }

    ((sipVH_QtCore_18)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

int sipKTextEditor_Editor::sipProtect_receivers(const char *a0) const
{
    return QObject::receivers(a0);
}

void sipKTextEditor_Editor::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent *a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipKTextEditor_Editor::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent *a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipKTextEditor_Editor::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipKTextEditor_Editor::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipKTextEditor_Editor::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}


extern "C" {static PyObject *meth_KTextEditor_Editor_receivers(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_receivers(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        char * a0;
        sipKTextEditor_Editor *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KTextEditor_Editor,&sipCpp,&a0))
        {
            int sipRes = 0;

#line 462 "/usr/local/share/py-sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        if (helper)
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
#line 4998 "sipktexteditorpart4.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_timerEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_timerEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent * a0;
        sipKTextEditor_Editor *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_Editor,&sipCpp,sipType_QTimerEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_childEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_childEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent * a0;
        sipKTextEditor_Editor *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_Editor,&sipCpp,sipType_QChildEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_customEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_customEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipKTextEditor_Editor *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_Editor,&sipCpp,sipType_QEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_connectNotify(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_connectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipKTextEditor_Editor *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KTextEditor_Editor,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_disconnectNotify(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_disconnectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipKTextEditor_Editor *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KTextEditor_Editor,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_createDocument(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_createDocument(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

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

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

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Editor,sipName_createDocument);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_documents(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_documents(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTextEditor::Editor *sipCpp;

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

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

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

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0201KTextEditor_Document,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_aboutData(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_aboutData(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTextEditor::Editor *sipCpp;

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

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Editor,sipName_aboutData);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_readConfig(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_readConfig(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B|J8",&sipSelf,sipType_KTextEditor_Editor,&sipCpp,sipType_KConfig,&a0))
        {
            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Editor,sipName_readConfig);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_writeConfig(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_writeConfig(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B|J8",&sipSelf,sipType_KTextEditor_Editor,&sipCpp,sipType_KConfig,&a0))
        {
            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Editor,sipName_writeConfig);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_configDialogSupported(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_configDialogSupported(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTextEditor::Editor *sipCpp;

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

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Editor,sipName_configDialogSupported);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_configDialog(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_configDialog(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ8",&sipSelf,sipType_KTextEditor_Editor,&sipCpp,sipType_QWidget,&a0))
        {
            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Editor,sipName_configDialog);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_configPages(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_configPages(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTextEditor::Editor *sipCpp;

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

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Editor,sipName_configPages);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_configPage(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_configPage(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

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

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

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Editor,sipName_configPage);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_configPageName(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_configPageName(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0;
        KTextEditor::Editor *sipCpp;

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

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Editor,sipName_configPageName);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_configPageFullName(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_configPageFullName(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0;
        KTextEditor::Editor *sipCpp;

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

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Editor,sipName_configPageFullName);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Editor_configPageIcon(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Editor_configPageIcon(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0;
        KTextEditor::Editor *sipCpp;

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

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Editor,sipName_configPageIcon);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KTextEditor_Editor(void *, const sipTypeDef *);}
static void *cast_KTextEditor_Editor(void *ptr,const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_KTextEditor_Editor)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(KTextEditor::Editor *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKTextEditor_Editor *>(sipCppV);
    else
        delete reinterpret_cast<KTextEditor::Editor *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KTextEditor_Editor(sipSimpleWrapper *);}
static void dealloc_KTextEditor_Editor(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKTextEditor_Editor *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KTextEditor_Editor(sipSelf->u.cppPtr,sipSelf->flags);
    }
}


extern "C" {static void *init_KTextEditor_Editor(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KTextEditor_Editor(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    sipKTextEditor_Editor *sipCpp = 0;

    if (!sipCpp)
    {
        QObject * a0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"J8",sipType_QObject,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_Editor(a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


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


static PyMethodDef methods_KTextEditor_Editor[] = {
    {SIP_MLNAME_CAST(sipName_aboutData), meth_KTextEditor_Editor_aboutData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KTextEditor_Editor_childEvent, 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_connectNotify), meth_KTextEditor_Editor_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_createDocument), meth_KTextEditor_Editor_createDocument, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KTextEditor_Editor_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KTextEditor_Editor_disconnectNotify, 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_receivers), meth_KTextEditor_Editor_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KTextEditor_Editor_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_writeConfig), meth_KTextEditor_Editor_writeConfig, METH_VARARGS, NULL}
};


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


pyqt4ClassTypeDef pyqt4Type_ktexteditor_KTextEditor_Editor = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__Editor,
        {0}
    },
    sipNameNr_Editor,
    -1,
    -1,
    {1, 255, 0},
    supers_KTextEditor_Editor,
    0,
    18, methods_KTextEditor_Editor,
    0, 0,
    0, 0,
    init_KTextEditor_Editor,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_Editor,
    release_KTextEditor_Editor,
    cast_KTextEditor_Editor,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &KTextEditor::Editor::staticMetaObject,
    0,
    pyqt4_signals_KTextEditor_Editor
};

#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/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>
#line 5724 "sipktexteditorpart4.cpp"

#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 5728 "sipktexteditorpart4.cpp"
#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/variableinterface.sip"
#include <ktexteditor/variableinterface.h>
#line 5731 "sipktexteditorpart4.cpp"
#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/texthintinterface.sip"
#include <ktexteditor/texthintinterface.h>
#line 5734 "sipktexteditorpart4.cpp"
#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/templateinterface.sip"
#include <ktexteditor/templateinterface.h>
#line 5737 "sipktexteditorpart4.cpp"
#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/smartinterface.sip"
#include <ktexteditor/smartinterface.h>
#line 5740 "sipktexteditorpart4.cpp"
#line 52 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/searchinterface.sip"
#include <ktexteditor/searchinterface.h>
#line 5743 "sipktexteditorpart4.cpp"
#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/modificationinterface.sip"
#include <ktexteditor/modificationinterface.h>
#line 5746 "sipktexteditorpart4.cpp"
#line 44 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/markinterface.sip"
#include <ktexteditor/markinterface.h>
#line 5749 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 5752 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 5755 "sipktexteditorpart4.cpp"
#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/range.sip"
#include <ktexteditor/range.h>
#line 5758 "sipktexteditorpart4.cpp"
#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/cursor.sip"
#include <ktexteditor/cursor.h>
#line 5761 "sipktexteditorpart4.cpp"
#line 83 "/usr/local/share/py-sip/QtCore/qchar.sip"
#include <qchar.h>
#line 5764 "sipktexteditorpart4.cpp"
#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/view.sip"
#include <ktexteditor/view.h>

#include <ktexteditor/codecompletioninterface.h>
#include <ktexteditor/sessionconfiginterface.h>
#include <ktexteditor/texthintinterface.h>
#line 5771 "sipktexteditorpart4.cpp"
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 5786 "sipktexteditorpart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kaction.sip"
#include <kaction.h>
#line 5789 "sipktexteditorpart4.cpp"
#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/commandinterface.sip"
#include <ktexteditor/commandinterface.h>
#line 5792 "sipktexteditorpart4.cpp"
#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/smartrange.sip"
#include <ktexteditor/smartrange.h>
#line 5795 "sipktexteditorpart4.cpp"
#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/rangefeedback.sip"
#include <ktexteditor/rangefeedback.h>
#line 5798 "sipktexteditorpart4.cpp"
#line 60 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/rangefeedback.sip"
#include <ktexteditor/rangefeedback.h>
#line 5801 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 5804 "sipktexteditorpart4.cpp"
#line 34 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/editor.sip"
#include <ktexteditor/editor.h>
#line 5807 "sipktexteditorpart4.cpp"
#line 32 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kurl.sip"
#include <kurl.h>
#line 5810 "sipktexteditorpart4.cpp"
#line 76 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/event.sip"
#include <kparts/event.h>
#line 5813 "sipktexteditorpart4.cpp"
#line 43 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kio/jobclasses.sip"
#include <jobclasses.h>
#line 5816 "sipktexteditorpart4.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 5819 "sipktexteditorpart4.cpp"
#line 103 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/part.sip"
#include <kparts/part.h>
#line 5822 "sipktexteditorpart4.cpp"
#line 126 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/browserextension.sip"
#include <kparts/browserextension.h>
#line 5825 "sipktexteditorpart4.cpp"
#line 112 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/event.sip"
#include <kparts/event.h>
#line 5828 "sipktexteditorpart4.cpp"
#line 93 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/event.sip"
#include <kparts/event.h>
#line 5831 "sipktexteditorpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5834 "sipktexteditorpart4.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kiconloader.sip"
#include <kiconloader.h>
#line 5837 "sipktexteditorpart4.cpp"
#line 61 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/part.sip"
#include <kparts/part.h>
#line 5840 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 5843 "sipktexteditorpart4.cpp"
#line 28 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kparts/partmanager.sip"
#include <kparts/partmanager.h>
#line 5846 "sipktexteditorpart4.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5849 "sipktexteditorpart4.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 5852 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 5855 "sipktexteditorpart4.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 5886 "sipktexteditorpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 5889 "sipktexteditorpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 5892 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 5895 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 5898 "sipktexteditorpart4.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 5901 "sipktexteditorpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 5904 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 5907 "sipktexteditorpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 5910 "sipktexteditorpart4.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdecore/kcomponentdata.sip"
#include <kcomponentdata.h>
#line 5913 "sipktexteditorpart4.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kxmlguiclient.sip"
#include <kxmlguiclient.h>
#line 5916 "sipktexteditorpart4.cpp"
#line 221 "/usr/local/share/py-sip/QtXml/qdom.sip"
#include <qdom.h>
#line 5919 "sipktexteditorpart4.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kxmlguiclient.sip"
#include <kxmlguiclient.h>
#line 5922 "sipktexteditorpart4.cpp"
#line 136 "/usr/local/share/py-sip/QtGui/qfontdatabase.sip"
#include <qfontdatabase.h>
#include <qlist.h>
#line 66 "/usr/local/share/py-sip/QtGui/qprinterinfo.sip"
#include <qlist.h>
#line 229 "/usr/local/share/py-sip/QtGui/qwizard.sip"
#include <qwizard.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 520 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 5983 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qsize.sip"
#include <qsize.h>
#line 5986 "sipktexteditorpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qaction.sip"
#include <qaction.h>
#line 5989 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 5992 "sipktexteditorpart4.cpp"
#line 44 "/usr/local/share/py-sip/QtGui/qgraphicswidget.sip"
#include <qgraphicswidget.h>
#line 5995 "sipktexteditorpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qabstractbutton.sip"
#include <qabstractbutton.h>
#line 5998 "sipktexteditorpart4.cpp"
#line 466 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 482 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 6003 "sipktexteditorpart4.cpp"
#line 50 "/usr/local/share/py-sip/QtGui/qgraphicsitem.sip"
#include <qgraphicsitem.h>
#line 6006 "sipktexteditorpart4.cpp"
#line 99 "/usr/local/share/py-sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 6009 "sipktexteditorpart4.cpp"
#line 50 "/usr/local/share/py-sip/QtGui/qgraphicsview.sip"
#include <qgraphicsview.h>
#line 6012 "sipktexteditorpart4.cpp"
#line 165 "/usr/local/share/py-sip/QtCore/qrect.sip"
#include <qrect.h>
#line 6015 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qlistwidget.sip"
#include <qlistwidget.h>
#line 6018 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qdockwidget.sip"
#include <qdockwidget.h>
#line 6021 "sipktexteditorpart4.cpp"
#line 50 "/usr/local/share/py-sip/QtGui/qmdisubwindow.sip"
#include <qmdisubwindow.h>
#line 6024 "sipktexteditorpart4.cpp"
#line 334 "/usr/local/share/py-sip/QtGui/qpolygon.sip"
#include <qpolygon.h>
#line 6027 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qtextedit.sip"
#include <qtextedit.h>
#line 56 "/usr/local/share/py-sip/QtGui/qtextedit.sip"
#include <qtextedit.h>
#line 6032 "sipktexteditorpart4.cpp"
#line 44 "/usr/local/share/py-sip/QtGui/qprinterinfo.sip"
#include <qprinterinfo.h>
#line 6035 "sipktexteditorpart4.cpp"
#line 202 "/usr/local/share/py-sip/QtGui/qstandarditemmodel.sip"
#include <qstandarditemmodel.h>
#line 6038 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qtablewidget.sip"
#include <qtablewidget.h>
#line 6041 "sipktexteditorpart4.cpp"
#line 66 "/usr/local/share/py-sip/QtGui/qtablewidget.sip"
#include <qtablewidget.h>
#line 6044 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 114 "/usr/local/share/py-sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 6049 "sipktexteditorpart4.cpp"
#line 65 "/usr/local/share/py-sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 88 "/usr/local/share/py-sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 6054 "sipktexteditorpart4.cpp"
#line 149 "/usr/local/share/py-sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 175 "/usr/local/share/py-sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 6059 "sipktexteditorpart4.cpp"
#line 83 "/usr/local/share/py-sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 101 "/usr/local/share/py-sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 6064 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qtreewidget.sip"
#include <qtreewidget.h>
#line 6067 "sipktexteditorpart4.cpp"
#line 75 "/usr/local/share/py-sip/QtGui/qundostack.sip"
#include <qundostack.h>
#line 6070 "sipktexteditorpart4.cpp"
#line 50 "/usr/local/share/py-sip/QtGui/qwizard.sip"
#include <qwizard.h>
#line 6073 "sipktexteditorpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qprinter.sip"
#include <qprinter.h>
#line 6076 "sipktexteditorpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qfontdatabase.sip"
#include <qfontdatabase.h>
#line 6079 "sipktexteditorpart4.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kxmlguibuilder.sip"
#include <kxmlguibuilder.h>
#line 6082 "sipktexteditorpart4.cpp"
#line 184 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kstandardaction.sip"
#include <qlist.h>
#line 44 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kwidgetitemdelegate.sip"
#include <qlist.h>
#line 114 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kwindowsystem.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 6119 "sipktexteditorpart4.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kactioncollection.sip"
#include <kactioncollection.h>
#line 6122 "sipktexteditorpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtGui/qactiongroup.sip"
#include <qactiongroup.h>
#line 6125 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 6128 "sipktexteditorpart4.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kicontheme.sip"
#include <kicontheme.h>
#line 6131 "sipktexteditorpart4.cpp"
#line 212 "/usr/local/share/py-sip/QtGui/qtreewidget.sip"
#include <qtreewidget.h>
#line 6134 "sipktexteditorpart4.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/ksessionmanager.sip"
#include <ksessionmanager.h>
#line 6137 "sipktexteditorpart4.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kplotpoint.sip"
#include <kplotpoint.h>
#line 6140 "sipktexteditorpart4.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kplotobject.sip"
#include <kplotobject.h>
#line 6143 "sipktexteditorpart4.cpp"
#line 24 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kglobalshortcutinfo.sip"
#include <kglobalshortcutinfo.h>
#line 6146 "sipktexteditorpart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kconfigdialogmanager.sip"
#include <kconfigdialogmanager.h>
#line 6149 "sipktexteditorpart4.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kmainwindow.sip"
#include <kmainwindow.h>
#line 6152 "sipktexteditorpart4.cpp"
#line 26 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/ktoolbar.sip"
#include <ktoolbar.h>
#line 6155 "sipktexteditorpart4.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/kdeui/kxmlguifactory.sip"
#include <kxmlguifactory.h>
#line 6158 "sipktexteditorpart4.cpp"
#line 345 "/usr/local/share/py-sip/QtXml/qdom.sip"
#include <qdom.h>
#line 6161 "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;

    /* Expose this protected enum. */
    enum sipPluginLoadingMode {
        DoNotLoadPlugins = KParts::PartBase::DoNotLoadPlugins,
        LoadPlugins = KParts::PartBase::LoadPlugins,
        LoadPluginsIfEnabled = KParts::PartBase::LoadPluginsIfEnabled
    };

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    void sipProtectVirt_setXMLFile(bool,const QString&,bool,bool);
    void sipProtectVirt_setLocalXMLFile(bool,const QString&);
    void sipProtectVirt_setXML(bool,const QString&,bool);
    void sipProtectVirt_setDOMDocument(bool,const QDomDocument&,bool);
    void sipProtectVirt_stateChanged(bool,const QString&,KXMLGUIClient::ReverseStateChange);
    void sipProtectVirt_setComponentData(bool,const KComponentData&);
    void sipProtectVirt_setComponentData(bool,const KComponentData&,bool);
    void sipProtect_setPluginInterfaceVersion(int);
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);
    void sipProtectVirt_setWidget(bool,QWidget *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_partActivateEvent(bool,KParts::PartActivateEvent *);
    void sipProtectVirt_partSelectEvent(bool,KParts::PartSelectEvent *);
    QWidget * sipProtect_hostContainer(const QString&);
    void sipProtect_loadPlugins();
    void sipProtect_slotWidgetDestroyed();
    bool sipProtect_openFile();
    void sipProtect_abortLoad();
    void sipProtectVirt_guiActivateEvent(bool,KParts::GUIActivateEvent *);
    bool sipProtect_isLocalFileTemporary() const;
    void sipProtect_setLocalFileTemporary(bool);
    void sipProtect_setUrl(const KUrl&);
    QString sipProtect_localFilePath() const;
    void sipProtect_setLocalFilePath(const QString&);
    bool sipProtect_saveFile();
    bool sipProtectVirt_saveToUrl(bool);
    void sipProtect_setOpeningError(bool);
    void sipProtect_setOpeningErrorMessage(const QString&);

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

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()
{
    sipCommonDtor(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 && sip_ktexteditor_qt_metacast(sipPySelf,sipType_KTextEditor_Document,_clname)) ? this : KTextEditor::Document::qt_metacast(_clname);
}

KTextEditor::Editor * sipKTextEditor_Document::editor()
{
    extern KTextEditor::Editor * sipVH_ktexteditor_57(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,sipName_Document,sipName_editor);

    if (!meth)
        return 0;

    return sipVH_ktexteditor_57(sipGILState,meth);
}

KTextEditor::View * sipKTextEditor_Document::createView(QWidget *a0)
{
    extern KTextEditor::View * sipVH_ktexteditor_76(sip_gilstate_t,PyObject *,QWidget *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,sipName_Document,sipName_createView);

    if (!meth)
        return 0;

    return sipVH_ktexteditor_76(sipGILState,meth,a0);
}

KTextEditor::View * sipKTextEditor_Document::activeView() const
{
    extern KTextEditor::View * sipVH_ktexteditor_75(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[2]),sipPySelf,sipName_Document,sipName_activeView);

    if (!meth)
        return 0;

    return sipVH_ktexteditor_75(sipGILState,meth);
}

const QList<KTextEditor::View *>& sipKTextEditor_Document::views() const
{
    extern const QList<KTextEditor::View *>& sipVH_ktexteditor_74(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,sipName_Document,sipName_views);

    if (!meth)
        return *new QList<KTextEditor::View *>();

    return sipVH_ktexteditor_74(sipGILState,meth);
}

const QString& sipKTextEditor_Document::documentName() const
{
    typedef const QString& (*sipVH_kdeui_51)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return *new QString();

    return ((sipVH_kdeui_51)(sipModuleAPI_ktexteditor_kdeui->em_virthandlers[51]))(sipGILState,meth);
}

QString sipKTextEditor_Document::mimeType()
{
    typedef QString (*sipVH_QtCore_58)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,sipName_Document,sipName_mimeType);

    if (!meth)
        return QString();

    return ((sipVH_QtCore_58)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[58]))(sipGILState,meth);
}

bool sipKTextEditor_Document::setEncoding(const QString& a0)
{
    typedef bool (*sipVH_QtCore_24)(sip_gilstate_t,PyObject *,const QString&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,sipName_Document,sipName_setEncoding);

    if (!meth)
        return 0;

    return ((sipVH_QtCore_24)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[24]))(sipGILState,meth,a0);
}

const QString& sipKTextEditor_Document::encoding() const
{
    typedef const QString& (*sipVH_kdeui_51)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return *new QString();

    return ((sipVH_kdeui_51)(sipModuleAPI_ktexteditor_kdeui->em_virthandlers[51]))(sipGILState,meth);
}

bool sipKTextEditor_Document::documentReload()
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,sipName_Document,sipName_documentReload);

    if (!meth)
        return 0;

    return ((sipVH_QtCore_1)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

bool sipKTextEditor_Document::documentSave()
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,sipName_Document,sipName_documentSave);

    if (!meth)
        return 0;

    return ((sipVH_QtCore_1)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

bool sipKTextEditor_Document::documentSaveAs()
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,sipName_Document,sipName_documentSaveAs);

    if (!meth)
        return 0;

    return ((sipVH_QtCore_1)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

bool sipKTextEditor_Document::startEditing()
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,sipName_Document,sipName_startEditing);

    if (!meth)
        return 0;

    return ((sipVH_QtCore_1)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

bool sipKTextEditor_Document::endEditing()
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,sipName_Document,sipName_endEditing);

    if (!meth)
        return 0;

    return ((sipVH_QtCore_1)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

QString sipKTextEditor_Document::text() const
{
    typedef QString (*sipVH_QtCore_58)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[13]),sipPySelf,sipName_Document,sipName_text);

    if (!meth)
        return QString();

    return ((sipVH_QtCore_58)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[58]))(sipGILState,meth);
}

QString sipKTextEditor_Document::text(const KTextEditor::Range& a0,bool a1) const
{
    extern QString sipVH_ktexteditor_73(sip_gilstate_t,PyObject *,const KTextEditor::Range&,bool);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[14]),sipPySelf,sipName_Document,sipName_text);

    if (!meth)
        return QString();

    return sipVH_ktexteditor_73(sipGILState,meth,a0,a1);
}

QChar sipKTextEditor_Document::character(const KTextEditor::Cursor& a0) const
{
    extern QChar sipVH_ktexteditor_72(sip_gilstate_t,PyObject *,const KTextEditor::Cursor&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[15]),sipPySelf,sipName_Document,sipName_character);

    if (!meth)
        return QChar();

    return sipVH_ktexteditor_72(sipGILState,meth,a0);
}

QStringList sipKTextEditor_Document::textLines(const KTextEditor::Range& a0,bool a1) const
{
    extern QStringList sipVH_ktexteditor_71(sip_gilstate_t,PyObject *,const KTextEditor::Range&,bool);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[16]),sipPySelf,sipName_Document,sipName_textLines);

    if (!meth)
        return QStringList();

    return sipVH_ktexteditor_71(sipGILState,meth,a0,a1);
}

QString sipKTextEditor_Document::line(int a0) const
{
    typedef QString (*sipVH_QtGui_110)(sip_gilstate_t,PyObject *,int);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[17]),sipPySelf,sipName_Document,sipName_line);

    if (!meth)
        return QString();

    return ((sipVH_QtGui_110)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[110]))(sipGILState,meth,a0);
}

int sipKTextEditor_Document::lines() const
{
    typedef int (*sipVH_QtCore_8)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[18]),sipPySelf,sipName_Document,sipName_lines);

    if (!meth)
        return 0;

    return ((sipVH_QtCore_8)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[8]))(sipGILState,meth);
}

KTextEditor::Cursor sipKTextEditor_Document::documentEnd() const
{
    extern KTextEditor::Cursor sipVH_ktexteditor_4(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[19]),sipPySelf,sipName_Document,sipName_documentEnd);

    if (!meth)
        return KTextEditor::Cursor();

    return sipVH_ktexteditor_4(sipGILState,meth);
}

int sipKTextEditor_Document::totalCharacters() const
{
    typedef int (*sipVH_QtCore_8)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[20]),sipPySelf,sipName_Document,sipName_totalCharacters);

    if (!meth)
        return 0;

    return ((sipVH_QtCore_8)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[8]))(sipGILState,meth);
}

bool sipKTextEditor_Document::isEmpty() const
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[21]),sipPySelf,NULL,sipName_isEmpty);

    if (!meth)
        return KTextEditor::Document::isEmpty();

    return ((sipVH_QtCore_1)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

int sipKTextEditor_Document::lineLength(int a0) const
{
    typedef int (*sipVH_QtGui_29)(sip_gilstate_t,PyObject *,int);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[22]),sipPySelf,sipName_Document,sipName_lineLength);

    if (!meth)
        return 0;

    return ((sipVH_QtGui_29)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[29]))(sipGILState,meth,a0);
}

bool sipKTextEditor_Document::setText(const QString& a0)
{
    typedef bool (*sipVH_QtCore_24)(sip_gilstate_t,PyObject *,const QString&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[23],sipPySelf,sipName_Document,sipName_setText);

    if (!meth)
        return 0;

    return ((sipVH_QtCore_24)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[24]))(sipGILState,meth,a0);
}

bool sipKTextEditor_Document::setText(const QStringList& a0)
{
    extern bool sipVH_ktexteditor_70(sip_gilstate_t,PyObject *,const QStringList&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[24],sipPySelf,sipName_Document,sipName_setText);

    if (!meth)
        return 0;

    return sipVH_ktexteditor_70(sipGILState,meth,a0);
}

bool sipKTextEditor_Document::clear()
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[25],sipPySelf,sipName_Document,sipName_clear);

    if (!meth)
        return 0;

    return ((sipVH_QtCore_1)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

bool sipKTextEditor_Document::insertText(const KTextEditor::Cursor& a0,const QString& a1,bool a2)
{
    extern bool sipVH_ktexteditor_69(sip_gilstate_t,PyObject *,const KTextEditor::Cursor&,const QString&,bool);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[26],sipPySelf,sipName_Document,sipName_insertText);

    if (!meth)
        return 0;

    return sipVH_ktexteditor_69(sipGILState,meth,a0,a1,a2);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[27],sipPySelf,sipName_Document,sipName_insertText);

    if (!meth)
        return 0;

    return sipVH_ktexteditor_68(sipGILState,meth,a0,a1,a2);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[28],sipPySelf,NULL,sipName_replaceText);

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

    return sipVH_ktexteditor_67(sipGILState,meth,a0,a1,a2);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[29],sipPySelf,NULL,sipName_replaceText);

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

    return sipVH_ktexteditor_66(sipGILState,meth,a0,a1,a2);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[30],sipPySelf,sipName_Document,sipName_removeText);

    if (!meth)
        return 0;

    return sipVH_ktexteditor_65(sipGILState,meth,a0,a1);
}

bool sipKTextEditor_Document::cursorInText(const KTextEditor::Cursor& a0)
{
    extern bool sipVH_ktexteditor_64(sip_gilstate_t,PyObject *,const KTextEditor::Cursor&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[31],sipPySelf,NULL,sipName_cursorInText);

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

    return sipVH_ktexteditor_64(sipGILState,meth,a0);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[32],sipPySelf,sipName_Document,sipName_insertLine);

    if (!meth)
        return 0;

    return sipVH_ktexteditor_63(sipGILState,meth,a0,a1);
}

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

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[33],sipPySelf,sipName_Document,sipName_insertLines);

    if (!meth)
        return 0;

    return sipVH_ktexteditor_62(sipGILState,meth,a0,a1);
}

bool sipKTextEditor_Document::removeLine(int a0)
{
    typedef bool (*sipVH_QtCore_17)(sip_gilstate_t,PyObject *,int);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[34],sipPySelf,sipName_Document,sipName_removeLine);

    if (!meth)
        return 0;

    return ((sipVH_QtCore_17)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[17]))(sipGILState,meth,a0);
}

QString sipKTextEditor_Document::mode() const
{
    typedef QString (*sipVH_QtCore_58)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return QString();

    return ((sipVH_QtCore_58)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[58]))(sipGILState,meth);
}

QString sipKTextEditor_Document::highlightingMode() const
{
    typedef QString (*sipVH_QtCore_58)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return QString();

    return ((sipVH_QtCore_58)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[58]))(sipGILState,meth);
}

QStringList sipKTextEditor_Document::modes() const
{
    typedef QStringList (*sipVH_QtCore_23)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return QStringList();

    return ((sipVH_QtCore_23)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[23]))(sipGILState,meth);
}

QStringList sipKTextEditor_Document::highlightingModes() const
{
    typedef QStringList (*sipVH_QtCore_23)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return QStringList();

    return ((sipVH_QtCore_23)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[23]))(sipGILState,meth);
}

bool sipKTextEditor_Document::setMode(const QString& a0)
{
    typedef bool (*sipVH_QtCore_24)(sip_gilstate_t,PyObject *,const QString&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[39],sipPySelf,sipName_Document,sipName_setMode);

    if (!meth)
        return 0;

    return ((sipVH_QtCore_24)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[24]))(sipGILState,meth,a0);
}

bool sipKTextEditor_Document::setHighlightingMode(const QString& a0)
{
    typedef bool (*sipVH_QtCore_24)(sip_gilstate_t,PyObject *,const QString&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[40],sipPySelf,sipName_Document,sipName_setHighlightingMode);

    if (!meth)
        return 0;

    return ((sipVH_QtCore_24)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[24]))(sipGILState,meth,a0);
}

QString sipKTextEditor_Document::highlightingModeSection(int a0) const
{
    typedef QString (*sipVH_QtGui_110)(sip_gilstate_t,PyObject *,int);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return QString();

    return ((sipVH_QtGui_110)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[110]))(sipGILState,meth,a0);
}

QString sipKTextEditor_Document::modeSection(int a0) const
{
    typedef QString (*sipVH_QtGui_110)(sip_gilstate_t,PyObject *,int);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
        return QString();

    return ((sipVH_QtGui_110)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[110]))(sipGILState,meth,a0);
}

void sipKTextEditor_Document::setReadWrite(bool a0)
{
    typedef void (*sipVH_QtNetwork_2)(sip_gilstate_t,PyObject *,bool);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[43],sipPySelf,NULL,sipName_setReadWrite);

    if (!meth)
    {
        KParts::ReadWritePart::setReadWrite(a0);
        return;
    }

    ((sipVH_QtNetwork_2)(sipModuleAPI_ktexteditor_QtNetwork->em_virthandlers[2]))(sipGILState,meth,a0);
}

bool sipKTextEditor_Document::queryClose()
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[44],sipPySelf,NULL,sipName_queryClose);

    if (!meth)
        return KParts::ReadWritePart::queryClose();

    return ((sipVH_QtCore_1)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

bool sipKTextEditor_Document::closeUrl()
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[45],sipPySelf,NULL,sipName_closeUrl);

    if (!meth)
        return KParts::ReadWritePart::closeUrl();

    return ((sipVH_QtCore_1)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

bool sipKTextEditor_Document::closeUrl(bool a0)
{
    typedef bool (*sipVH_QtGui_12)(sip_gilstate_t,PyObject *,bool);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[46],sipPySelf,NULL,sipName_closeUrl);

    if (!meth)
        return KParts::ReadWritePart::closeUrl(a0);

    return ((sipVH_QtGui_12)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[12]))(sipGILState,meth,a0);
}

bool sipKTextEditor_Document::saveAs(const KUrl& a0)
{
    typedef bool (*sipVH_kparts_5)(sip_gilstate_t,PyObject *,const KUrl&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[47],sipPySelf,NULL,sipName_saveAs);

    if (!meth)
        return KParts::ReadWritePart::saveAs(a0);

    return ((sipVH_kparts_5)(sipModuleAPI_ktexteditor_kparts->em_virthandlers[5]))(sipGILState,meth,a0);
}

void sipKTextEditor_Document::setModified(bool a0)
{
    typedef void (*sipVH_QtNetwork_2)(sip_gilstate_t,PyObject *,bool);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[48],sipPySelf,NULL,sipName_setModified);

    if (!meth)
    {
        KParts::ReadWritePart::setModified(a0);
        return;
    }

    ((sipVH_QtNetwork_2)(sipModuleAPI_ktexteditor_QtNetwork->em_virthandlers[2]))(sipGILState,meth,a0);
}

bool sipKTextEditor_Document::save()
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[49],sipPySelf,NULL,sipName_save);

    if (!meth)
        return KParts::ReadWritePart::save();

    return ((sipVH_QtCore_1)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

bool sipKTextEditor_Document::saveFile()
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[50],sipPySelf,sipName_Document,sipName_saveFile);

    if (!meth)
        return 0;

    return ((sipVH_QtCore_1)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

bool sipKTextEditor_Document::saveToUrl()
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[51],sipPySelf,NULL,sipName_saveToUrl);

    if (!meth)
        return KParts::ReadWritePart::saveToUrl();

    return ((sipVH_QtCore_1)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

bool sipKTextEditor_Document::openUrl(const KUrl& a0)
{
    typedef bool (*sipVH_kparts_5)(sip_gilstate_t,PyObject *,const KUrl&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[52],sipPySelf,NULL,sipName_openUrl);

    if (!meth)
        return KParts::ReadOnlyPart::openUrl(a0);

    return ((sipVH_kparts_5)(sipModuleAPI_ktexteditor_kparts->em_virthandlers[5]))(sipGILState,meth,a0);
}

bool sipKTextEditor_Document::openFile()
{
    typedef bool (*sipVH_QtCore_1)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[53],sipPySelf,sipName_Document,sipName_openFile);

    if (!meth)
        return 0;

    return ((sipVH_QtCore_1)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[1]))(sipGILState,meth);
}

void sipKTextEditor_Document::guiActivateEvent(KParts::GUIActivateEvent *a0)
{
    typedef void (*sipVH_kparts_6)(sip_gilstate_t,PyObject *,KParts::GUIActivateEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[54],sipPySelf,NULL,sipName_guiActivateEvent);

    if (!meth)
    {
        KParts::ReadOnlyPart::guiActivateEvent(a0);
        return;
    }

    ((sipVH_kparts_6)(sipModuleAPI_ktexteditor_kparts->em_virthandlers[6]))(sipGILState,meth,a0);
}

void sipKTextEditor_Document::embed(QWidget *a0)
{
    typedef void (*sipVH_QtGui_8)(sip_gilstate_t,PyObject *,QWidget *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[55],sipPySelf,NULL,sipName_embed);

    if (!meth)
    {
        KParts::Part::embed(a0);
        return;
    }

    ((sipVH_QtGui_8)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[8]))(sipGILState,meth,a0);
}

QWidget * sipKTextEditor_Document::widget()
{
    typedef QWidget * (*sipVH_QtGui_105)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[56],sipPySelf,NULL,sipName_widget);

    if (!meth)
        return KParts::Part::widget();

    return ((sipVH_QtGui_105)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[105]))(sipGILState,meth);
}

void sipKTextEditor_Document::setManager(KParts::PartManager *a0)
{
    typedef void (*sipVH_kparts_10)(sip_gilstate_t,PyObject *,KParts::PartManager *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[57],sipPySelf,NULL,sipName_setManager);

    if (!meth)
    {
        KParts::Part::setManager(a0);
        return;
    }

    ((sipVH_kparts_10)(sipModuleAPI_ktexteditor_kparts->em_virthandlers[10]))(sipGILState,meth,a0);
}

KParts::Part * sipKTextEditor_Document::hitTest(QWidget *a0,const QPoint& a1)
{
    typedef KParts::Part * (*sipVH_kparts_9)(sip_gilstate_t,PyObject *,QWidget *,const QPoint&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[58],sipPySelf,NULL,sipName_hitTest);

    if (!meth)
        return KParts::Part::hitTest(a0,a1);

    return ((sipVH_kparts_9)(sipModuleAPI_ktexteditor_kparts->em_virthandlers[9]))(sipGILState,meth,a0,a1);
}

void sipKTextEditor_Document::setSelectable(bool a0)
{
    typedef void (*sipVH_QtNetwork_2)(sip_gilstate_t,PyObject *,bool);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[59],sipPySelf,NULL,sipName_setSelectable);

    if (!meth)
    {
        KParts::Part::setSelectable(a0);
        return;
    }

    ((sipVH_QtNetwork_2)(sipModuleAPI_ktexteditor_QtNetwork->em_virthandlers[2]))(sipGILState,meth,a0);
}

void sipKTextEditor_Document::setWidget(QWidget *a0)
{
    typedef void (*sipVH_QtGui_8)(sip_gilstate_t,PyObject *,QWidget *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[60],sipPySelf,NULL,sipName_setWidget);

    if (!meth)
    {
        KParts::Part::setWidget(a0);
        return;
    }

    ((sipVH_QtGui_8)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[8]))(sipGILState,meth,a0);
}

void sipKTextEditor_Document::customEvent(QEvent *a0)
{
    typedef void (*sipVH_QtCore_19)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[61],sipPySelf,NULL,sipName_customEvent);

    if (!meth)
    {
        KParts::Part::customEvent(a0);
        return;
    }

    ((sipVH_QtCore_19)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[19]))(sipGILState,meth,a0);
}

void sipKTextEditor_Document::partActivateEvent(KParts::PartActivateEvent *a0)
{
    typedef void (*sipVH_kparts_8)(sip_gilstate_t,PyObject *,KParts::PartActivateEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[62],sipPySelf,NULL,sipName_partActivateEvent);

    if (!meth)
    {
        KParts::Part::partActivateEvent(a0);
        return;
    }

    ((sipVH_kparts_8)(sipModuleAPI_ktexteditor_kparts->em_virthandlers[8]))(sipGILState,meth,a0);
}

void sipKTextEditor_Document::partSelectEvent(KParts::PartSelectEvent *a0)
{
    typedef void (*sipVH_kparts_7)(sip_gilstate_t,PyObject *,KParts::PartSelectEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[63],sipPySelf,NULL,sipName_partSelectEvent);

    if (!meth)
    {
        KParts::Part::partSelectEvent(a0);
        return;
    }

    ((sipVH_kparts_7)(sipModuleAPI_ktexteditor_kparts->em_virthandlers[7]))(sipGILState,meth,a0);
}

bool sipKTextEditor_Document::event(QEvent *a0)
{
    typedef bool (*sipVH_QtCore_13)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[64],sipPySelf,NULL,sipName_event);

    if (!meth)
        return QObject::event(a0);

    return ((sipVH_QtCore_13)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[13]))(sipGILState,meth,a0);
}

bool sipKTextEditor_Document::eventFilter(QObject *a0,QEvent *a1)
{
    typedef bool (*sipVH_QtCore_21)(sip_gilstate_t,PyObject *,QObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[65],sipPySelf,NULL,sipName_eventFilter);

    if (!meth)
        return QObject::eventFilter(a0,a1);

    return ((sipVH_QtCore_21)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[21]))(sipGILState,meth,a0,a1);
}

void sipKTextEditor_Document::timerEvent(QTimerEvent *a0)
{
    typedef void (*sipVH_QtCore_3)(sip_gilstate_t,PyObject *,QTimerEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[66],sipPySelf,NULL,sipName_timerEvent);

    if (!meth)
    {
        QObject::timerEvent(a0);
        return;
    }

    ((sipVH_QtCore_3)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[3]))(sipGILState,meth,a0);
}

void sipKTextEditor_Document::childEvent(QChildEvent *a0)
{
    typedef void (*sipVH_QtCore_20)(sip_gilstate_t,PyObject *,QChildEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[67],sipPySelf,NULL,sipName_childEvent);

    if (!meth)
    {
        QObject::childEvent(a0);
        return;
    }

    ((sipVH_QtCore_20)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[20]))(sipGILState,meth,a0);
}

void sipKTextEditor_Document::connectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[68],sipPySelf,NULL,sipName_connectNotify);

    if (!meth)
    {
        QObject::connectNotify(a0);
        return;
    }

    ((sipVH_QtCore_18)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

void sipKTextEditor_Document::disconnectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[69],sipPySelf,NULL,sipName_disconnectNotify);

    if (!meth)
    {
        QObject::disconnectNotify(a0);
        return;
    }

    ((sipVH_QtCore_18)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

void sipKTextEditor_Document::setComponentData(const KComponentData& a0)
{
    typedef void (*sipVH_kdeui_6)(sip_gilstate_t,PyObject *,const KComponentData&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[70],sipPySelf,NULL,sipName_setComponentData);

    if (!meth)
    {
        KParts::PartBase::setComponentData(a0);
        return;
    }

    ((sipVH_kdeui_6)(sipModuleAPI_ktexteditor_kdeui->em_virthandlers[6]))(sipGILState,meth,a0);
}

void sipKTextEditor_Document::setComponentData(const KComponentData& a0,bool a1)
{
    typedef void (*sipVH_kparts_11)(sip_gilstate_t,PyObject *,const KComponentData&,bool);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[71],sipPySelf,NULL,sipName_setComponentData);

    if (!meth)
    {
        KParts::PartBase::setComponentData(a0,a1);
        return;
    }

    ((sipVH_kparts_11)(sipModuleAPI_ktexteditor_kparts->em_virthandlers[11]))(sipGILState,meth,a0,a1);
}

QAction * sipKTextEditor_Document::action(const QDomElement& a0) const
{
    typedef QAction * (*sipVH_kdeui_10)(sip_gilstate_t,PyObject *,const QDomElement&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[72]),sipPySelf,NULL,sipName_action);

    if (!meth)
        return KXMLGUIClient::action(a0);

    return ((sipVH_kdeui_10)(sipModuleAPI_ktexteditor_kdeui->em_virthandlers[10]))(sipGILState,meth,a0);
}

KActionCollection * sipKTextEditor_Document::actionCollection() const
{
    typedef KActionCollection * (*sipVH_kdeui_9)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[73]),sipPySelf,NULL,sipName_actionCollection);

    if (!meth)
        return KXMLGUIClient::actionCollection();

    return ((sipVH_kdeui_9)(sipModuleAPI_ktexteditor_kdeui->em_virthandlers[9]))(sipGILState,meth);
}

KComponentData sipKTextEditor_Document::componentData() const
{
    typedef KComponentData (*sipVH_kdeui_8)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[74]),sipPySelf,NULL,sipName_componentData);

    if (!meth)
        return KXMLGUIClient::componentData();

    return ((sipVH_kdeui_8)(sipModuleAPI_ktexteditor_kdeui->em_virthandlers[8]))(sipGILState,meth);
}

QDomDocument sipKTextEditor_Document::domDocument() const
{
    typedef QDomDocument (*sipVH_kdeui_7)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[75]),sipPySelf,NULL,sipName_domDocument);

    if (!meth)
        return KXMLGUIClient::domDocument();

    return ((sipVH_kdeui_7)(sipModuleAPI_ktexteditor_kdeui->em_virthandlers[7]))(sipGILState,meth);
}

QString sipKTextEditor_Document::xmlFile() const
{
    typedef QString (*sipVH_QtCore_58)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[76]),sipPySelf,NULL,sipName_xmlFile);

    if (!meth)
        return KXMLGUIClient::xmlFile();

    return ((sipVH_QtCore_58)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[58]))(sipGILState,meth);
}

QString sipKTextEditor_Document::localXMLFile() const
{
    typedef QString (*sipVH_QtCore_58)(sip_gilstate_t,PyObject *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[77]),sipPySelf,NULL,sipName_localXMLFile);

    if (!meth)
        return KXMLGUIClient::localXMLFile();

    return ((sipVH_QtCore_58)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[58]))(sipGILState,meth);
}

void sipKTextEditor_Document::setXMLFile(const QString& a0,bool a1,bool a2)
{
    typedef void (*sipVH_kdeui_5)(sip_gilstate_t,PyObject *,const QString&,bool,bool);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[78],sipPySelf,NULL,sipName_setXMLFile);

    if (!meth)
    {
        KXMLGUIClient::setXMLFile(a0,a1,a2);
        return;
    }

    ((sipVH_kdeui_5)(sipModuleAPI_ktexteditor_kdeui->em_virthandlers[5]))(sipGILState,meth,a0,a1,a2);
}

void sipKTextEditor_Document::setLocalXMLFile(const QString& a0)
{
    typedef void (*sipVH_QtCore_29)(sip_gilstate_t,PyObject *,const QString&);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[79],sipPySelf,NULL,sipName_setLocalXMLFile);

    if (!meth)
    {
        KXMLGUIClient::setLocalXMLFile(a0);
        return;
    }

    ((sipVH_QtCore_29)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[29]))(sipGILState,meth,a0);
}

void sipKTextEditor_Document::setXML(const QString& a0,bool a1)
{
    typedef void (*sipVH_QtXml_24)(sip_gilstate_t,PyObject *,const QString&,bool);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[80],sipPySelf,NULL,sipName_setXML);

    if (!meth)
    {
        KXMLGUIClient::setXML(a0,a1);
        return;
    }

    ((sipVH_QtXml_24)(sipModuleAPI_ktexteditor_QtXml->em_virthandlers[24]))(sipGILState,meth,a0,a1);
}

void sipKTextEditor_Document::setDOMDocument(const QDomDocument& a0,bool a1)
{
    typedef void (*sipVH_kdeui_4)(sip_gilstate_t,PyObject *,const QDomDocument&,bool);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[81],sipPySelf,NULL,sipName_setDOMDocument);

    if (!meth)
    {
        KXMLGUIClient::setDOMDocument(a0,a1);
        return;
    }

    ((sipVH_kdeui_4)(sipModuleAPI_ktexteditor_kdeui->em_virthandlers[4]))(sipGILState,meth,a0,a1);
}

void sipKTextEditor_Document::stateChanged(const QString& a0,KXMLGUIClient::ReverseStateChange a1)
{
    typedef void (*sipVH_kdeui_3)(sip_gilstate_t,PyObject *,const QString&,KXMLGUIClient::ReverseStateChange);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[82],sipPySelf,NULL,sipName_stateChanged);

    if (!meth)
    {
        KXMLGUIClient::stateChanged(a0,a1);
        return;
    }

    ((sipVH_kdeui_3)(sipModuleAPI_ktexteditor_kdeui->em_virthandlers[3]))(sipGILState,meth,a0,a1);
}

void sipKTextEditor_Document::sipProtectVirt_setXMLFile(bool sipSelfWasArg,const QString& a0,bool a1,bool a2)
{
    (sipSelfWasArg ? KXMLGUIClient::setXMLFile(a0,a1,a2) : setXMLFile(a0,a1,a2));
}

void sipKTextEditor_Document::sipProtectVirt_setLocalXMLFile(bool sipSelfWasArg,const QString& a0)
{
    (sipSelfWasArg ? KXMLGUIClient::setLocalXMLFile(a0) : setLocalXMLFile(a0));
}

void sipKTextEditor_Document::sipProtectVirt_setXML(bool sipSelfWasArg,const QString& a0,bool a1)
{
    (sipSelfWasArg ? KXMLGUIClient::setXML(a0,a1) : setXML(a0,a1));
}

void sipKTextEditor_Document::sipProtectVirt_setDOMDocument(bool sipSelfWasArg,const QDomDocument& a0,bool a1)
{
    (sipSelfWasArg ? KXMLGUIClient::setDOMDocument(a0,a1) : setDOMDocument(a0,a1));
}

void sipKTextEditor_Document::sipProtectVirt_stateChanged(bool sipSelfWasArg,const QString& a0,KXMLGUIClient::ReverseStateChange a1)
{
    (sipSelfWasArg ? KXMLGUIClient::stateChanged(a0,a1) : stateChanged(a0,a1));
}

void sipKTextEditor_Document::sipProtectVirt_setComponentData(bool sipSelfWasArg,const KComponentData& a0)
{
    (sipSelfWasArg ? KParts::PartBase::setComponentData(a0) : setComponentData(a0));
}

void sipKTextEditor_Document::sipProtectVirt_setComponentData(bool sipSelfWasArg,const KComponentData& a0,bool a1)
{
    (sipSelfWasArg ? KParts::PartBase::setComponentData(a0,a1) : setComponentData(a0,a1));
}

void sipKTextEditor_Document::sipProtect_setPluginInterfaceVersion(int a0)
{
    KParts::PartBase::setPluginInterfaceVersion(a0);
}

int sipKTextEditor_Document::sipProtect_receivers(const char *a0) const
{
    return QObject::receivers(a0);
}

void sipKTextEditor_Document::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent *a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipKTextEditor_Document::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent *a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipKTextEditor_Document::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipKTextEditor_Document::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

void sipKTextEditor_Document::sipProtectVirt_setWidget(bool sipSelfWasArg,QWidget *a0)
{
    (sipSelfWasArg ? KParts::Part::setWidget(a0) : setWidget(a0));
}

void sipKTextEditor_Document::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? KParts::Part::customEvent(a0) : customEvent(a0));
}

void sipKTextEditor_Document::sipProtectVirt_partActivateEvent(bool sipSelfWasArg,KParts::PartActivateEvent *a0)
{
    (sipSelfWasArg ? KParts::Part::partActivateEvent(a0) : partActivateEvent(a0));
}

void sipKTextEditor_Document::sipProtectVirt_partSelectEvent(bool sipSelfWasArg,KParts::PartSelectEvent *a0)
{
    (sipSelfWasArg ? KParts::Part::partSelectEvent(a0) : partSelectEvent(a0));
}

QWidget * sipKTextEditor_Document::sipProtect_hostContainer(const QString& a0)
{
    return KParts::Part::hostContainer(a0);
}

void sipKTextEditor_Document::sipProtect_loadPlugins()
{
    KParts::Part::loadPlugins();
}

void sipKTextEditor_Document::sipProtect_slotWidgetDestroyed()
{
    KParts::Part::slotWidgetDestroyed();
}

bool sipKTextEditor_Document::sipProtect_openFile()
{
    return openFile();
}

void sipKTextEditor_Document::sipProtect_abortLoad()
{
    KParts::ReadOnlyPart::abortLoad();
}

void sipKTextEditor_Document::sipProtectVirt_guiActivateEvent(bool sipSelfWasArg,KParts::GUIActivateEvent *a0)
{
    (sipSelfWasArg ? KParts::ReadOnlyPart::guiActivateEvent(a0) : guiActivateEvent(a0));
}

bool sipKTextEditor_Document::sipProtect_isLocalFileTemporary() const
{
    return KParts::ReadOnlyPart::isLocalFileTemporary();
}

void sipKTextEditor_Document::sipProtect_setLocalFileTemporary(bool a0)
{
    KParts::ReadOnlyPart::setLocalFileTemporary(a0);
}

void sipKTextEditor_Document::sipProtect_setUrl(const KUrl& a0)
{
    KParts::ReadOnlyPart::setUrl(a0);
}

QString sipKTextEditor_Document::sipProtect_localFilePath() const
{
    return KParts::ReadOnlyPart::localFilePath();
}

void sipKTextEditor_Document::sipProtect_setLocalFilePath(const QString& a0)
{
    KParts::ReadOnlyPart::setLocalFilePath(a0);
}

bool sipKTextEditor_Document::sipProtect_saveFile()
{
    return saveFile();
}

bool sipKTextEditor_Document::sipProtectVirt_saveToUrl(bool sipSelfWasArg)
{
    return (sipSelfWasArg ? KParts::ReadWritePart::saveToUrl() : saveToUrl());
}

void sipKTextEditor_Document::sipProtect_setOpeningError(bool a0)
{
    KTextEditor::Document::setOpeningError(a0);
}

void sipKTextEditor_Document::sipProtect_setOpeningErrorMessage(const QString& a0)
{
    KTextEditor::Document::setOpeningErrorMessage(a0);
}


extern "C" {static PyObject *meth_KTextEditor_Document_setXMLFile(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_setXMLFile(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QString * a0;
        int a0State = 0;
        bool a1 = 0;
        bool a2 = 1;
        sipKTextEditor_Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1|bb",&sipSelf,sipType_KTextEditor_Document,&sipCpp,sipType_QString,&a0,&a0State,&a1,&a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_setXMLFile(sipSelfWasArg,*a0,a1,a2);
            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(sipArgsParsed,sipName_Document,sipName_setXMLFile);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_setLocalXMLFile(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_setLocalXMLFile(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QString * a0;
        int a0State = 0;
        sipKTextEditor_Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1",&sipSelf,sipType_KTextEditor_Document,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_setLocalXMLFile(sipSelfWasArg,*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(sipArgsParsed,sipName_Document,sipName_setLocalXMLFile);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_setXML(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_setXML(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QString * a0;
        int a0State = 0;
        bool a1 = 0;
        sipKTextEditor_Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1|b",&sipSelf,sipType_KTextEditor_Document,&sipCpp,sipType_QString,&a0,&a0State,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_setXML(sipSelfWasArg,*a0,a1);
            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(sipArgsParsed,sipName_Document,sipName_setXML);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_setDOMDocument(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_setDOMDocument(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QDomDocument * a0;
        bool a1 = 0;
        sipKTextEditor_Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9|b",&sipSelf,sipType_KTextEditor_Document,&sipCpp,sipType_QDomDocument,&a0,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_setDOMDocument(sipSelfWasArg,*a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_setDOMDocument);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_stateChanged(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_stateChanged(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QString * a0;
        int a0State = 0;
        KXMLGUIClient::ReverseStateChange a1 = KXMLGUIClient::StateNoReverse;
        sipKTextEditor_Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1|E",&sipSelf,sipType_KTextEditor_Document,&sipCpp,sipType_QString,&a0,&a0State,sipType_KXMLGUIClient_ReverseStateChange,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_stateChanged(sipSelfWasArg,*a0,a1);
            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(sipArgsParsed,sipName_Document,sipName_stateChanged);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_setComponentData(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_setComponentData(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KComponentData * a0;
        sipKTextEditor_Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9",&sipSelf,sipType_KTextEditor_Document,&sipCpp,sipType_KComponentData,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_setComponentData(sipSelfWasArg,*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const KComponentData * a0;
        bool a1;
        sipKTextEditor_Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9b",&sipSelf,sipType_KTextEditor_Document,&sipCpp,sipType_KComponentData,&a0,&a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_setComponentData(sipSelfWasArg,*a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_setComponentData);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_setPluginInterfaceVersion(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_setPluginInterfaceVersion(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        int a0;
        sipKTextEditor_Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pi",&sipSelf,sipType_KTextEditor_Document,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setPluginInterfaceVersion(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_setPluginInterfaceVersion);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_receivers(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_receivers(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        char * a0;
        sipKTextEditor_Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KTextEditor_Document,&sipCpp,&a0))
        {
            int sipRes = 0;

#line 462 "/usr/local/share/py-sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        if (helper)
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
#line 8069 "sipktexteditorpart4.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_receivers);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_timerEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_timerEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent * a0;
        sipKTextEditor_Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_Document,&sipCpp,sipType_QTimerEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_timerEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_childEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_childEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent * a0;
        sipKTextEditor_Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_Document,&sipCpp,sipType_QChildEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_childEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_connectNotify(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_connectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipKTextEditor_Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KTextEditor_Document,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_connectNotify);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_disconnectNotify(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_disconnectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipKTextEditor_Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KTextEditor_Document,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_disconnectNotify);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_setWidget(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_setWidget(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QWidget * a0;
        sipKTextEditor_Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_Document,&sipCpp,sipType_QWidget,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_setWidget(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_setWidget);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_customEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_customEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipKTextEditor_Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_Document,&sipCpp,sipType_QEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_customEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_partActivateEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_partActivateEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KParts::PartActivateEvent * a0;
        sipKTextEditor_Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_Document,&sipCpp,sipType_KParts_PartActivateEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_partActivateEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_partActivateEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_partSelectEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_partSelectEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KParts::PartSelectEvent * a0;
        sipKTextEditor_Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_Document,&sipCpp,sipType_KParts_PartSelectEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_partSelectEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_partSelectEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_hostContainer(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_hostContainer(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        sipKTextEditor_Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1",&sipSelf,sipType_KTextEditor_Document,&sipCpp,sipType_QString,&a0,&a0State))
        {
            QWidget *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_hostContainer(*a0);
            Py_END_ALLOW_THREADS

            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_hostContainer);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_loadPlugins(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_loadPlugins(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipKTextEditor_Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_KTextEditor_Document,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_loadPlugins();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_loadPlugins);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_slotWidgetDestroyed(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_slotWidgetDestroyed(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipKTextEditor_Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_KTextEditor_Document,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_slotWidgetDestroyed();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_slotWidgetDestroyed);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_openFile(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_openFile(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipKTextEditor_Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_KTextEditor_Document,&sipCpp))
        {
            bool sipRes;

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_Document, sipName_openFile);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_openFile();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_openFile);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_abortLoad(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_abortLoad(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipKTextEditor_Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_KTextEditor_Document,&sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_abortLoad();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_abortLoad);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_guiActivateEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_guiActivateEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KParts::GUIActivateEvent * a0;
        sipKTextEditor_Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_Document,&sipCpp,sipType_KParts_GUIActivateEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_guiActivateEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_guiActivateEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_isLocalFileTemporary(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_isLocalFileTemporary(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipKTextEditor_Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_KTextEditor_Document,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_isLocalFileTemporary();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_isLocalFileTemporary);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_setLocalFileTemporary(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_setLocalFileTemporary(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        bool a0;
        sipKTextEditor_Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pb",&sipSelf,sipType_KTextEditor_Document,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setLocalFileTemporary(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_setLocalFileTemporary);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_setUrl(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_setUrl(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const KUrl * a0;
        sipKTextEditor_Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ9",&sipSelf,sipType_KTextEditor_Document,&sipCpp,sipType_KUrl,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setUrl(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_setUrl);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_localFilePath(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_localFilePath(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        sipKTextEditor_Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_KTextEditor_Document,&sipCpp))
        {
            QString *sipRes;

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

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_localFilePath);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_setLocalFilePath(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_setLocalFilePath(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        sipKTextEditor_Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1",&sipSelf,sipType_KTextEditor_Document,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setLocalFilePath(*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(sipArgsParsed,sipName_Document,sipName_setLocalFilePath);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_saveFile(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_saveFile(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipKTextEditor_Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_KTextEditor_Document,&sipCpp))
        {
            bool sipRes;

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_Document, sipName_saveFile);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtect_saveFile();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_saveFile);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_saveToUrl(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_saveToUrl(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipKTextEditor_Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"p",&sipSelf,sipType_KTextEditor_Document,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->sipProtectVirt_saveToUrl(sipSelfWasArg);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_saveToUrl);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_editor(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_editor(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTextEditor::Document *sipCpp;

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

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Document,sipName_editor);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_createView(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_createView(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ8",&sipSelf,sipType_KTextEditor_Document,&sipCpp,sipType_QWidget,&a0))
        {
            KTextEditor::View *sipRes;

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Document,sipName_createView);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_activeView(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_activeView(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTextEditor_Document,&sipCpp))
        {
            KTextEditor::View *sipRes;

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Document,sipName_activeView);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_views(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_views(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTextEditor_Document,&sipCpp))
        {
            QList<KTextEditor::View *> *sipRes;

            if (sipSelfWasArg)
            {
                sipAbstractMethod(sipName_Document, sipName_views);
                return NULL;
            }

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

            PyObject *sipResObj = sipConvertFromType(sipRes,sipType_QList_0201KTextEditor_View,NULL);
            delete sipRes;

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_views);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_documentName(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_documentName(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTextEditor_Document,&sipCpp))
        {
            QString *sipRes;

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Document,sipName_documentName);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_mimeType(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_mimeType(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTextEditor_Document,&sipCpp))
        {
            QString *sipRes;

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Document,sipName_mimeType);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_setEncoding(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_setEncoding(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KTextEditor_Document,&sipCpp,sipType_QString,&a0,&a0State))
        {
            bool sipRes;

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Document,sipName_setEncoding);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_encoding(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_encoding(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTextEditor_Document,&sipCpp))
        {
            QString *sipRes;

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Document,sipName_encoding);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_documentReload(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_documentReload(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTextEditor_Document,&sipCpp))
        {
            bool sipRes;

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Document,sipName_documentReload);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_documentSave(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_documentSave(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTextEditor_Document,&sipCpp))
        {
            bool sipRes;

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Document,sipName_documentSave);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_documentSaveAs(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_documentSaveAs(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTextEditor_Document,&sipCpp))
        {
            bool sipRes;

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Document,sipName_documentSaveAs);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_startEditing(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_startEditing(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTextEditor_Document,&sipCpp))
        {
            bool sipRes;

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Document,sipName_startEditing);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_endEditing(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_endEditing(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTextEditor_Document,&sipCpp))
        {
            bool sipRes;

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Document,sipName_endEditing);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_text(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_text(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTextEditor_Document,&sipCpp))
        {
            QString *sipRes;

            if (sipSelfWasArg)
            {
                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;
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9|b",&sipSelf,sipType_KTextEditor_Document,&sipCpp,sipType_KTextEditor_Range,&a0,&a1))
        {
            QString *sipRes;

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Document,sipName_text);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_character(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_character(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9",&sipSelf,sipType_KTextEditor_Document,&sipCpp,sipType_KTextEditor_Cursor,&a0))
        {
            QChar *sipRes;

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Document,sipName_character);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_textLines(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_textLines(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KTextEditor::Range * a0;
        bool a1 = 0;
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9|b",&sipSelf,sipType_KTextEditor_Document,&sipCpp,sipType_KTextEditor_Range,&a0,&a1))
        {
            QStringList *sipRes;

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Document,sipName_textLines);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_line(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_line(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0;
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bi",&sipSelf,sipType_KTextEditor_Document,&sipCpp,&a0))
        {
            QString *sipRes;

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Document,sipName_line);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_lines(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_lines(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTextEditor_Document,&sipCpp))
        {
            int sipRes;

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Document,sipName_lines);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_documentEnd(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_documentEnd(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTextEditor_Document,&sipCpp))
        {
            KTextEditor::Cursor *sipRes;

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Document,sipName_documentEnd);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_documentRange(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_documentRange(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_Document,sipName_documentRange);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_totalCharacters(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_totalCharacters(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTextEditor_Document,&sipCpp))
        {
            int sipRes;

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Document,sipName_totalCharacters);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_isEmpty(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_isEmpty(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_Document,sipName_isEmpty);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_lineLength(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_lineLength(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0;
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bi",&sipSelf,sipType_KTextEditor_Document,&sipCpp,&a0))
        {
            int sipRes;

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Document,sipName_lineLength);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_endOfLine(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_endOfLine(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        int a0;
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_Document,sipName_endOfLine);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_setText(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_setText(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KTextEditor_Document,&sipCpp,sipType_QString,&a0,&a0State))
        {
            bool sipRes;

            if (sipSelfWasArg)
            {
                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(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KTextEditor_Document,&sipCpp,sipType_QStringList,&a0,&a0State))
        {
            bool sipRes;

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Document,sipName_setText);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_clear(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_clear(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTextEditor_Document,&sipCpp))
        {
            bool sipRes;

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Document,sipName_clear);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_insertText(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_insertText(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KTextEditor::Cursor * a0;
        const QString * a1;
        int a1State = 0;
        bool a2 = 0;
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9J1|b",&sipSelf,sipType_KTextEditor_Document,&sipCpp,sipType_KTextEditor_Cursor,&a0,sipType_QString,&a1,&a1State,&a2))
        {
            bool sipRes;

            if (sipSelfWasArg)
            {
                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(&sipArgsParsed,sipArgs,"BJ9J1|b",&sipSelf,sipType_KTextEditor_Document,&sipCpp,sipType_KTextEditor_Cursor,&a0,sipType_QStringList,&a1,&a1State,&a2))
        {
            bool sipRes;

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Document,sipName_insertText);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_replaceText(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_replaceText(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KTextEditor::Range * a0;
        const QString * a1;
        int a1State = 0;
        bool a2 = 0;
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(&sipArgsParsed,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(sipArgsParsed,sipName_Document,sipName_replaceText);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_removeText(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_removeText(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const KTextEditor::Range * a0;
        bool a1 = 0;
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ9|b",&sipSelf,sipType_KTextEditor_Document,&sipCpp,sipType_KTextEditor_Range,&a0,&a1))
        {
            bool sipRes;

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Document,sipName_removeText);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_cursorInText(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_cursorInText(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

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

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_Document,sipName_cursorInText);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_insertLine(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_insertLine(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0;
        const QString * a1;
        int a1State = 0;
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BiJ1",&sipSelf,sipType_KTextEditor_Document,&sipCpp,&a0,sipType_QString,&a1,&a1State))
        {
            bool sipRes;

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Document,sipName_insertLine);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_insertLines(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_insertLines(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0;
        const QStringList * a1;
        int a1State = 0;
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BiJ1",&sipSelf,sipType_KTextEditor_Document,&sipCpp,&a0,sipType_QStringList,&a1,&a1State))
        {
            bool sipRes;

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Document,sipName_insertLines);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_removeLine(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_removeLine(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0;
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bi",&sipSelf,sipType_KTextEditor_Document,&sipCpp,&a0))
        {
            bool sipRes;

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Document,sipName_removeLine);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_mode(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_mode(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTextEditor_Document,&sipCpp))
        {
            QString *sipRes;

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Document,sipName_mode);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_highlightingMode(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_highlightingMode(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTextEditor_Document,&sipCpp))
        {
            QString *sipRes;

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Document,sipName_highlightingMode);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_modes(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_modes(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTextEditor_Document,&sipCpp))
        {
            QStringList *sipRes;

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Document,sipName_modes);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_highlightingModes(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_highlightingModes(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTextEditor_Document,&sipCpp))
        {
            QStringList *sipRes;

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Document,sipName_highlightingModes);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_setMode(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_setMode(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KTextEditor_Document,&sipCpp,sipType_QString,&a0,&a0State))
        {
            bool sipRes;

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Document,sipName_setMode);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_setHighlightingMode(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_setHighlightingMode(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

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

        if (sipParseArgs(&sipArgsParsed,sipArgs,"BJ1",&sipSelf,sipType_KTextEditor_Document,&sipCpp,sipType_QString,&a0,&a0State))
        {
            bool sipRes;

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Document,sipName_setHighlightingMode);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_highlightingModeSection(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_highlightingModeSection(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0;
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bi",&sipSelf,sipType_KTextEditor_Document,&sipCpp,&a0))
        {
            QString *sipRes;

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Document,sipName_highlightingModeSection);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_modeSection(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_modeSection(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0;
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bi",&sipSelf,sipType_KTextEditor_Document,&sipCpp,&a0))
        {
            QString *sipRes;

            if (sipSelfWasArg)
            {
                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(sipArgsParsed,sipName_Document,sipName_modeSection);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_setSuppressOpeningErrorDialogs(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_setSuppressOpeningErrorDialogs(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        bool a0;
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_Document,sipName_setSuppressOpeningErrorDialogs);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_suppressOpeningErrorDialogs(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_suppressOpeningErrorDialogs(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_Document,sipName_suppressOpeningErrorDialogs);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_openingError(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_openingError(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_Document,sipName_openingError);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_openingErrorMessage(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_openingErrorMessage(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,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(sipArgsParsed,sipName_Document,sipName_openingErrorMessage);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_setOpeningError(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_setOpeningError(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        bool a0;
        sipKTextEditor_Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pb",&sipSelf,sipType_KTextEditor_Document,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_setOpeningError(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_setOpeningError);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_setOpeningErrorMessage(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_setOpeningErrorMessage(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        const QString * a0;
        int a0State = 0;
        sipKTextEditor_Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ1",&sipSelf,sipType_KTextEditor_Document,&sipCpp,sipType_QString,&a0,&a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_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(sipArgsParsed,sipName_Document,sipName_setOpeningErrorMessage);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_markInterface(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_markInterface(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTextEditor_Document,&sipCpp))
        {
            KTextEditor::MarkInterface *sipRes = 0;

#line 149 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/document.sip"
    Py_BEGIN_ALLOW_THREADS
    sipRes = dynamic_cast<KTextEditor::MarkInterface*>(sipCpp);
    Py_END_ALLOW_THREADS
#line 10370 "sipktexteditorpart4.cpp"

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_markInterface);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_modificationInterface(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_modificationInterface(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTextEditor_Document,&sipCpp))
        {
            KTextEditor::ModificationInterface *sipRes = 0;

#line 156 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/document.sip"
    Py_BEGIN_ALLOW_THREADS
    sipRes = dynamic_cast<KTextEditor::ModificationInterface*>(sipCpp);
    Py_END_ALLOW_THREADS
#line 10399 "sipktexteditorpart4.cpp"

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_modificationInterface);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_searchInterface(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_searchInterface(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTextEditor_Document,&sipCpp))
        {
            KTextEditor::SearchInterface *sipRes = 0;

#line 163 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/document.sip"
    Py_BEGIN_ALLOW_THREADS
    sipRes = dynamic_cast<KTextEditor::SearchInterface*>(sipCpp);
    Py_END_ALLOW_THREADS
#line 10428 "sipktexteditorpart4.cpp"

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_searchInterface);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_smartInterface(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_smartInterface(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTextEditor_Document,&sipCpp))
        {
            KTextEditor::SmartInterface *sipRes = 0;

#line 170 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/document.sip"
    Py_BEGIN_ALLOW_THREADS
    sipRes = dynamic_cast<KTextEditor::SmartInterface*>(sipCpp);
    Py_END_ALLOW_THREADS
#line 10457 "sipktexteditorpart4.cpp"

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_smartInterface);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_templateInterface(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_templateInterface(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTextEditor_Document,&sipCpp))
        {
            KTextEditor::TemplateInterface *sipRes = 0;

#line 177 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/document.sip"
    Py_BEGIN_ALLOW_THREADS
    sipRes = dynamic_cast<KTextEditor::TemplateInterface*>(sipCpp);
    Py_END_ALLOW_THREADS
#line 10486 "sipktexteditorpart4.cpp"

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_templateInterface);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_textHintInterface(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_textHintInterface(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTextEditor_Document,&sipCpp))
        {
            KTextEditor::TextHintInterface *sipRes = 0;

#line 184 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/document.sip"
    Py_BEGIN_ALLOW_THREADS
    sipRes = dynamic_cast<KTextEditor::TextHintInterface*>(sipCpp);
    Py_END_ALLOW_THREADS
#line 10515 "sipktexteditorpart4.cpp"

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_textHintInterface);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Document_variableInterface(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Document_variableInterface(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KTextEditor::Document *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTextEditor_Document,&sipCpp))
        {
            KTextEditor::VariableInterface *sipRes = 0;

#line 191 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/document.sip"
    Py_BEGIN_ALLOW_THREADS
    sipRes = dynamic_cast<KTextEditor::VariableInterface*>(sipCpp);
    Py_END_ALLOW_THREADS
#line 10544 "sipktexteditorpart4.cpp"

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

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_Document,sipName_variableInterface);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KTextEditor_Document(void *, const sipTypeDef *);}
static void *cast_KTextEditor_Document(void *ptr,const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_KTextEditor_Document)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_KParts_ReadWritePart)->ctd_cast((KParts::ReadWritePart *)(KTextEditor::Document *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKTextEditor_Document *>(sipCppV);
    else
        delete reinterpret_cast<KTextEditor::Document *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KTextEditor_Document(sipSimpleWrapper *);}
static void dealloc_KTextEditor_Document(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKTextEditor_Document *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KTextEditor_Document(sipSelf->u.cppPtr,sipSelf->flags);
    }
}


extern "C" {static void *init_KTextEditor_Document(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KTextEditor_Document(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    sipKTextEditor_Document *sipCpp = 0;

    if (!sipCpp)
    {
        QObject * a0 = 0;

        if (sipParseArgs(sipArgsParsed,sipArgs,"|J8",sipType_QObject,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_Document(a0);
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_KTextEditor_Document[] = {{31, 9, 1}};


static PyMethodDef methods_KTextEditor_Document[] = {
    {SIP_MLNAME_CAST(sipName_abortLoad), meth_KTextEditor_Document_abortLoad, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_activeView), meth_KTextEditor_Document_activeView, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_character), meth_KTextEditor_Document_character, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KTextEditor_Document_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clear), meth_KTextEditor_Document_clear, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KTextEditor_Document_connectNotify, 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_customEvent), meth_KTextEditor_Document_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KTextEditor_Document_disconnectNotify, 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_guiActivateEvent), meth_KTextEditor_Document_guiActivateEvent, 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_hostContainer), meth_KTextEditor_Document_hostContainer, 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_isLocalFileTemporary), meth_KTextEditor_Document_isLocalFileTemporary, 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_loadPlugins), meth_KTextEditor_Document_loadPlugins, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_localFilePath), meth_KTextEditor_Document_localFilePath, 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_openFile), meth_KTextEditor_Document_openFile, 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_partActivateEvent), meth_KTextEditor_Document_partActivateEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_partSelectEvent), meth_KTextEditor_Document_partSelectEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KTextEditor_Document_receivers, 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_saveFile), meth_KTextEditor_Document_saveFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_saveToUrl), meth_KTextEditor_Document_saveToUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_searchInterface), meth_KTextEditor_Document_searchInterface, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setComponentData), meth_KTextEditor_Document_setComponentData, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDOMDocument), meth_KTextEditor_Document_setDOMDocument, 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_setLocalFilePath), meth_KTextEditor_Document_setLocalFilePath, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLocalFileTemporary), meth_KTextEditor_Document_setLocalFileTemporary, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLocalXMLFile), meth_KTextEditor_Document_setLocalXMLFile, 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_setPluginInterfaceVersion), meth_KTextEditor_Document_setPluginInterfaceVersion, 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_setUrl), meth_KTextEditor_Document_setUrl, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setWidget), meth_KTextEditor_Document_setWidget, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setXML), meth_KTextEditor_Document_setXML, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setXMLFile), meth_KTextEditor_Document_setXMLFile, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotWidgetDestroyed), meth_KTextEditor_Document_slotWidgetDestroyed, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_smartInterface), meth_KTextEditor_Document_smartInterface, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_startEditing), meth_KTextEditor_Document_startEditing, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_stateChanged), meth_KTextEditor_Document_stateChanged, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_suppressOpeningErrorDialogs), meth_KTextEditor_Document_suppressOpeningErrorDialogs, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_templateInterface), meth_KTextEditor_Document_templateInterface, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_text), meth_KTextEditor_Document_text, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_textHintInterface), meth_KTextEditor_Document_textHintInterface, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_textLines), meth_KTextEditor_Document_textLines, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KTextEditor_Document_timerEvent, 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 PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_KTextEditor_Document[] = {
    {"highlightingModeChanged(KTextEditor::Document *)", 0},
    {"modeChanged(KTextEditor::Document *)", 0},
    {"aboutToClose(KTextEditor::Document *)", 0},
    {"textRemoved(KTextEditor::Document *,const KTextEditor::Range&)", 0},
    {"textInserted(KTextEditor::Document *,const KTextEditor::Range&)", 0},
    {"textChanged(KTextEditor::Document *)", 0},
    {"textChanged(KTextEditor::Document *,const KTextEditor::Range&,const KTextEditor::Range&)", 0},
    {"modifiedChanged(KTextEditor::Document *)", 0},
    {"documentUrlChanged(KTextEditor::Document *)", 0},
    {"documentNameChanged(KTextEditor::Document *)", 0},
    {"viewCreated(KTextEditor::Document *,KTextEditor::View *)", 0},
    {0, 0}
};


pyqt4ClassTypeDef pyqt4Type_ktexteditor_KTextEditor_Document = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__Document,
        {0}
    },
    sipNameNr_Document,
    -1,
    -1,
    {1, 255, 0},
    supers_KTextEditor_Document,
    0,
    83, methods_KTextEditor_Document,
    0, 0,
    0, 0,
    init_KTextEditor_Document,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_Document,
    release_KTextEditor_Document,
    cast_KTextEditor_Document,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &KTextEditor::Document::staticMetaObject,
    0,
    pyqt4_signals_KTextEditor_Document
};

#line 50 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/cursorfeedback.sip"
#include <ktexteditor/cursorfeedback.h>
#line 10780 "sipktexteditorpart4.cpp"

#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/kdebindings-4.3.1/python/pykde4/sip/ktexteditor/smartcursor.sip"
#include <ktexteditor/smartcursor.h>
#line 10784 "sipktexteditorpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 10787 "sipktexteditorpart4.cpp"
#line 297 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 10790 "sipktexteditorpart4.cpp"
#line 284 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 10793 "sipktexteditorpart4.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 10796 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 10799 "sipktexteditorpart4.cpp"
#line 328 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 424 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 637 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 699 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 721 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 130 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 43 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 210 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#include <qpair.h>
#line 10830 "sipktexteditorpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qfileinfo.sip"
#include <qfileinfo.h>
#line 10833 "sipktexteditorpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 10836 "sipktexteditorpart4.cpp"
#line 48 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 10839 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qurl.sip"
#include <qurl.h>
#line 10842 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 10845 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 10848 "sipktexteditorpart4.cpp"
#line 45 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 10851 "sipktexteditorpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 10854 "sipktexteditorpart4.cpp"
#line 46 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 10857 "sipktexteditorpart4.cpp"
#line 42 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 10860 "sipktexteditorpart4.cpp"


class sipKTextEditor_SmartCursorNotifier : public KTextEditor::SmartCursorNotifier
{
public:
    sipKTextEditor_SmartCursorNotifier();
    virtual ~sipKTextEditor_SmartCursorNotifier();

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

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    int sipProtect_receivers(const char *) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent *);
    void sipProtectVirt_childEvent(bool,QChildEvent *);
    void sipProtectVirt_customEvent(bool,QEvent *);
    void sipProtectVirt_connectNotify(bool,const char *);
    void sipProtectVirt_disconnectNotify(bool,const char *);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    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_SmartCursorNotifier(const sipKTextEditor_SmartCursorNotifier &);
    sipKTextEditor_SmartCursorNotifier &operator = (const sipKTextEditor_SmartCursorNotifier &);

    char sipPyMethods[7];
};

sipKTextEditor_SmartCursorNotifier::sipKTextEditor_SmartCursorNotifier(): KTextEditor::SmartCursorNotifier(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTextEditor_SmartCursorNotifier::~sipKTextEditor_SmartCursorNotifier()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipKTextEditor_SmartCursorNotifier::metaObject() const
{
    return sip_ktexteditor_qt_metaobject(sipPySelf,sipType_KTextEditor_SmartCursorNotifier);
}

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

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

    return _id;
}

void *sipKTextEditor_SmartCursorNotifier::qt_metacast(const char *_clname)
{
    return (sip_ktexteditor_qt_metacast && sip_ktexteditor_qt_metacast(sipPySelf,sipType_KTextEditor_SmartCursorNotifier,_clname)) ? this : KTextEditor::SmartCursorNotifier::qt_metacast(_clname);
}

bool sipKTextEditor_SmartCursorNotifier::event(QEvent *a0)
{
    typedef bool (*sipVH_QtCore_13)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_event);

    if (!meth)
        return QObject::event(a0);

    return ((sipVH_QtCore_13)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[13]))(sipGILState,meth,a0);
}

bool sipKTextEditor_SmartCursorNotifier::eventFilter(QObject *a0,QEvent *a1)
{
    typedef bool (*sipVH_QtCore_21)(sip_gilstate_t,PyObject *,QObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_eventFilter);

    if (!meth)
        return QObject::eventFilter(a0,a1);

    return ((sipVH_QtCore_21)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[21]))(sipGILState,meth,a0,a1);
}

void sipKTextEditor_SmartCursorNotifier::timerEvent(QTimerEvent *a0)
{
    typedef void (*sipVH_QtCore_3)(sip_gilstate_t,PyObject *,QTimerEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_timerEvent);

    if (!meth)
    {
        QObject::timerEvent(a0);
        return;
    }

    ((sipVH_QtCore_3)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[3]))(sipGILState,meth,a0);
}

void sipKTextEditor_SmartCursorNotifier::childEvent(QChildEvent *a0)
{
    typedef void (*sipVH_QtCore_20)(sip_gilstate_t,PyObject *,QChildEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

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

    if (!meth)
    {
        QObject::childEvent(a0);
        return;
    }

    ((sipVH_QtCore_20)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[20]))(sipGILState,meth,a0);
}

void sipKTextEditor_SmartCursorNotifier::customEvent(QEvent *a0)
{
    typedef void (*sipVH_QtCore_19)(sip_gilstate_t,PyObject *,QEvent *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_customEvent);

    if (!meth)
    {
        QObject::customEvent(a0);
        return;
    }

    ((sipVH_QtCore_19)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[19]))(sipGILState,meth,a0);
}

void sipKTextEditor_SmartCursorNotifier::connectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_connectNotify);

    if (!meth)
    {
        QObject::connectNotify(a0);
        return;
    }

    ((sipVH_QtCore_18)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

void sipKTextEditor_SmartCursorNotifier::disconnectNotify(const char *a0)
{
    typedef void (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,const char *);

    sip_gilstate_t sipGILState;
    PyObject *meth;

    meth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_disconnectNotify);

    if (!meth)
    {
        QObject::disconnectNotify(a0);
        return;
    }

    ((sipVH_QtCore_18)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[18]))(sipGILState,meth,a0);
}

int sipKTextEditor_SmartCursorNotifier::sipProtect_receivers(const char *a0) const
{
    return QObject::receivers(a0);
}

void sipKTextEditor_SmartCursorNotifier::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent *a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipKTextEditor_SmartCursorNotifier::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent *a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipKTextEditor_SmartCursorNotifier::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent *a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipKTextEditor_SmartCursorNotifier::sipProtectVirt_connectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipKTextEditor_SmartCursorNotifier::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const char *a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}


extern "C" {static PyObject *meth_KTextEditor_SmartCursorNotifier_receivers(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_SmartCursorNotifier_receivers(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        char * a0;
        sipKTextEditor_SmartCursorNotifier *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KTextEditor_SmartCursorNotifier,&sipCpp,&a0))
        {
            int sipRes = 0;

#line 462 "/usr/local/share/py-sip/QtCore/qobject.sip"
        // We need to take into account any proxies for Python signals. Import the
        // helper if it hasn't already been done.
        typedef int (*helper_func)(QObject *, const char *, int);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_receivers");
        
        if (helper)
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
#line 11113 "sipktexteditorpart4.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_SmartCursorNotifier,sipName_receivers);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_SmartCursorNotifier_timerEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_SmartCursorNotifier_timerEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent * a0;
        sipKTextEditor_SmartCursorNotifier *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_SmartCursorNotifier,&sipCpp,sipType_QTimerEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_SmartCursorNotifier,sipName_timerEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_SmartCursorNotifier_childEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_SmartCursorNotifier_childEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent * a0;
        sipKTextEditor_SmartCursorNotifier *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_SmartCursorNotifier,&sipCpp,sipType_QChildEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_SmartCursorNotifier,sipName_childEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_SmartCursorNotifier_customEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_SmartCursorNotifier_customEvent(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipKTextEditor_SmartCursorNotifier *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pJ8",&sipSelf,sipType_KTextEditor_SmartCursorNotifier,&sipCpp,sipType_QEvent,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_SmartCursorNotifier,sipName_customEvent);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_SmartCursorNotifier_connectNotify(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_SmartCursorNotifier_connectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipKTextEditor_SmartCursorNotifier *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KTextEditor_SmartCursorNotifier,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_SmartCursorNotifier,sipName_connectNotify);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_SmartCursorNotifier_disconnectNotify(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_SmartCursorNotifier_disconnectNotify(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipKTextEditor_SmartCursorNotifier *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"pG",&sipSelf,sipType_KTextEditor_SmartCursorNotifier,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_SmartCursorNotifier,sipName_disconnectNotify);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_SmartCursorNotifier_wantsDirectChanges(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_SmartCursorNotifier_wantsDirectChanges(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        KTextEditor::SmartCursorNotifier *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"B",&sipSelf,sipType_KTextEditor_SmartCursorNotifier,&sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->wantsDirectChanges();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_SmartCursorNotifier,sipName_wantsDirectChanges);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_SmartCursorNotifier_setWantsDirectChanges(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_SmartCursorNotifier_setWantsDirectChanges(PyObject *sipSelf,PyObject *sipArgs)
{
    int sipArgsParsed = 0;

    {
        bool a0;
        KTextEditor::SmartCursorNotifier *sipCpp;

        if (sipParseArgs(&sipArgsParsed,sipArgs,"Bb",&sipSelf,sipType_KTextEditor_SmartCursorNotifier,&sipCpp,&a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setWantsDirectChanges(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipArgsParsed,sipName_SmartCursorNotifier,sipName_setWantsDirectChanges);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_KTextEditor_SmartCursorNotifier(void *, const sipTypeDef *);}
static void *cast_KTextEditor_SmartCursorNotifier(void *ptr,const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_KTextEditor_SmartCursorNotifier)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(KTextEditor::SmartCursorNotifier *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    if (state & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKTextEditor_SmartCursorNotifier *>(sipCppV);
    else
        delete reinterpret_cast<KTextEditor::SmartCursorNotifier *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KTextEditor_SmartCursorNotifier(sipSimpleWrapper *);}
static void dealloc_KTextEditor_SmartCursorNotifier(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKTextEditor_SmartCursorNotifier *>(sipSelf->u.cppPtr)->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KTextEditor_SmartCursorNotifier(sipSelf->u.cppPtr,sipSelf->flags);
    }
}


extern "C" {static void *init_KTextEditor_SmartCursorNotifier(sipSimpleWrapper *, PyObject *, PyObject **, int *);}
static void *init_KTextEditor_SmartCursorNotifier(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject **, int *sipArgsParsed)
{
    sipKTextEditor_SmartCursorNotifier *sipCpp = 0;

    if (!sipCpp)
    {
        if (sipParseArgs(sipArgsParsed,sipArgs,""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_SmartCursorNotifier();
            Py_END_ALLOW_THREADS
        }
    }

    if (sipCpp)
        sipCpp->sipPySelf = sipSelf;

    return sipCpp;
}


/* Define this type's super-types. */
static sipEncodedClassDef supers_KTextEditor_SmartCursorNotifier[] = {{111, 0, 1}};


static PyMethodDef methods_KTextEditor_SmartCursorNotifier[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KTextEditor_SmartCursorNotifier_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KTextEditor_SmartCursorNotifier_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KTextEditor_SmartCursorNotifier_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KTextEditor_SmartCursorNotifier_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KTextEditor_SmartCursorNotifier_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setWantsDirectChanges), meth_KTextEditor_SmartCursorNotifier_setWantsDirectChanges, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KTextEditor_SmartCursorNotifier_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_wantsDirectChanges), meth_KTextEditor_SmartCursorNotifier_wantsDirectChanges, METH_VARARGS, NULL}
};


/* Define this type's PyQt4 signals. */
static const pyqt4QtSignal pyqt4_signals_KTextEditor_SmartCursorNotifier[] = {
    {"deleted(KTextEditor::SmartCursor *)", 0},
    {"characterInserted(KTextEditor::SmartCursor *,bool)", 0},
    {"characterDeleted(KTextEditor::SmartCursor *,bool)", 0},
    {"positionDeleted(KTextEditor::SmartCursor *)", 0},
    {"positionChanged(KTextEditor::SmartCursor *)", 0},
    {0, 0}
};


pyqt4ClassTypeDef pyqt4Type_ktexteditor_KTextEditor_SmartCursorNotifier = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__SmartCursorNotifier,
        {0}
    },
    sipNameNr_SmartCursorNotifier,
    -1,
    -1,
    {1, 255, 0},
    supers_KTextEditor_SmartCursorNotifier,
    0,
    8, methods_KTextEditor_SmartCursorNotifier,
    0, 0,
    0, 0,
    init_KTextEditor_SmartCursorNotifier,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_SmartCursorNotifier,
    release_KTextEditor_SmartCursorNotifier,
    cast_KTextEditor_SmartCursorNotifier,
    0,
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    0,
    0
},
    0,
    &KTextEditor::SmartCursorNotifier::staticMetaObject,
    0,
    pyqt4_signals_KTextEditor_SmartCursorNotifier
};
