/*
 * Module code.
 *
 * Generated by SIP 4.12.4 on Fri Dec 30 00:39:50 2011
 *
 * 
 *  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 50 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/cursorfeedback.sip"
#include <ktexteditor/cursorfeedback.h>
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"

#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/smartcursor.sip"
#include <ktexteditor/smartcursor.h>
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 36 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 39 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 42 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 45 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 48 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 51 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 54 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 57 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 60 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 63 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 66 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 69 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 72 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.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.
     */
    QObject * sipProtect_sender() const;
    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)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *,QEvent *);

    return ((sipVH_QtCore_5)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[5]))(sipGILState,sipMeth,a0);
}

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

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

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

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,QObject *,QEvent *);

    return ((sipVH_QtCore_18)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[18]))(sipGILState,sipMeth,a0,a1);
}

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

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

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

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t,PyObject *,QTimerEvent *);

    ((sipVH_QtCore_9)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[9]))(sipGILState,sipMeth,a0);
}

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

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

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

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t,PyObject *,QChildEvent *);

    ((sipVH_QtCore_25)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[25]))(sipGILState,sipMeth,a0);
}

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

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

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

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t,PyObject *,QEvent *);

    ((sipVH_QtCore_17)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[17]))(sipGILState,sipMeth,a0);
}

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

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

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

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t,PyObject *,const char *);

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

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

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

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

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t,PyObject *,const char *);

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

QObject * sipKTextEditor_SmartCursorNotifier::sipProtect_sender() const
{
    return QObject::sender();
}

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_sender(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_SmartCursorNotifier_sender(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        sipKTextEditor_SmartCursorNotifier *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_SmartCursorNotifier, &sipCpp))
        {
            QObject *sipRes = 0;

#line 632 "/usr/local/share/py-sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp->sender());
        #else
            sipRes = helper(sipCpp->sipProtect_sender());
        #endif
#line 332 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"

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

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

    return NULL;
}


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

    {
        char * a0;
        sipKTextEditor_SmartCursorNotifier *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KTextEditor_SmartCursorNotifier, &sipCpp, &a0))
        {
            int sipRes = 0;

#line 649 "/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)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp, a0, sipCpp->receivers(a0));
        #else
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
        #endif
#line 374 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_SmartCursorNotifier_timerEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_SmartCursorNotifier_timerEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent * a0;
        sipKTextEditor_SmartCursorNotifier *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &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(sipParseErr, sipName_SmartCursorNotifier, sipName_timerEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_SmartCursorNotifier_childEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_SmartCursorNotifier_childEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent * a0;
        sipKTextEditor_SmartCursorNotifier *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &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(sipParseErr, sipName_SmartCursorNotifier, sipName_childEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_SmartCursorNotifier_customEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_SmartCursorNotifier_customEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipKTextEditor_SmartCursorNotifier *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &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(sipParseErr, sipName_SmartCursorNotifier, sipName_customEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_SmartCursorNotifier_connectNotify(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_SmartCursorNotifier_connectNotify(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipKTextEditor_SmartCursorNotifier *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &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(sipParseErr, sipName_SmartCursorNotifier, sipName_connectNotify, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_SmartCursorNotifier_disconnectNotify(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_SmartCursorNotifier_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipKTextEditor_SmartCursorNotifier *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &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(sipParseErr, sipName_SmartCursorNotifier, sipName_disconnectNotify, NULL);

    return NULL;
}


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

    {
        KTextEditor::SmartCursorNotifier *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_SmartCursorNotifier, sipName_wantsDirectChanges, NULL);

    return NULL;
}


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

    {
        bool a0;
        KTextEditor::SmartCursorNotifier *sipCpp;

        if (sipParseArgs(&sipParseErr, 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(sipParseErr, sipName_SmartCursorNotifier, sipName_setWantsDirectChanges, NULL);

    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 sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & 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 *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KTextEditor_SmartCursorNotifier(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KTextEditor_SmartCursorNotifier[] = {{134, 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_sender), meth_KTextEditor_SmartCursorNotifier_sender, 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, 0},
    {"characterInserted(KTextEditor::SmartCursor *,bool)", 0, 0},
    {"characterDeleted(KTextEditor::SmartCursor *,bool)", 0, 0},
    {"positionDeleted(KTextEditor::SmartCursor *)", 0, 0},
    {"positionChanged(KTextEditor::SmartCursor *)", 0, 0},
    {0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_ktexteditor_KTextEditor_SmartCursorNotifier = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__SmartCursorNotifier,
        {0}
    },
    {
        sipNameNr_SmartCursorNotifier,
        {1, 255, 0},
        9, methods_KTextEditor_SmartCursorNotifier,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KTextEditor_SmartCursorNotifier,
    0,
    init_KTextEditor_SmartCursorNotifier,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_SmartCursorNotifier,
    0,
    0,
    0,
    release_KTextEditor_SmartCursorNotifier,
    cast_KTextEditor_SmartCursorNotifier,
    0,
    0,
    0
},
    &KTextEditor::SmartCursorNotifier::staticMetaObject,
    0,
    pyqt4_signals_KTextEditor_SmartCursorNotifier
};

#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/cursorfeedback.sip"
#include <ktexteditor/cursorfeedback.h>
#line 727 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"

#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/smartcursor.sip"
#include <ktexteditor/smartcursor.h>
#line 731 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"


class sipKTextEditor_SmartCursorWatcher : public KTextEditor::SmartCursorWatcher
{
public:
    sipKTextEditor_SmartCursorWatcher();
    sipKTextEditor_SmartCursorWatcher(const KTextEditor::SmartCursorWatcher&);
    virtual ~sipKTextEditor_SmartCursorWatcher();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void positionChanged(KTextEditor::SmartCursor *);
    void positionDeleted(KTextEditor::SmartCursor *);
    void characterDeleted(KTextEditor::SmartCursor *,bool);
    void characterInserted(KTextEditor::SmartCursor *,bool);
    void deleted(KTextEditor::SmartCursor *);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[5];
};

sipKTextEditor_SmartCursorWatcher::sipKTextEditor_SmartCursorWatcher(): KTextEditor::SmartCursorWatcher(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTextEditor_SmartCursorWatcher::sipKTextEditor_SmartCursorWatcher(const KTextEditor::SmartCursorWatcher& a0): KTextEditor::SmartCursorWatcher(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTextEditor_SmartCursorWatcher::~sipKTextEditor_SmartCursorWatcher()
{
    sipCommonDtor(sipPySelf);
}

void sipKTextEditor_SmartCursorWatcher::positionChanged(KTextEditor::SmartCursor *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KTextEditor::SmartCursorWatcher::positionChanged(a0);
        return;
    }

    extern void sipVH_ktexteditor_76(sip_gilstate_t,PyObject *,KTextEditor::SmartCursor *);

    sipVH_ktexteditor_76(sipGILState,sipMeth,a0);
}

void sipKTextEditor_SmartCursorWatcher::positionDeleted(KTextEditor::SmartCursor *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KTextEditor::SmartCursorWatcher::positionDeleted(a0);
        return;
    }

    extern void sipVH_ktexteditor_76(sip_gilstate_t,PyObject *,KTextEditor::SmartCursor *);

    sipVH_ktexteditor_76(sipGILState,sipMeth,a0);
}

void sipKTextEditor_SmartCursorWatcher::characterDeleted(KTextEditor::SmartCursor *a0,bool a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KTextEditor::SmartCursorWatcher::characterDeleted(a0,a1);
        return;
    }

    extern void sipVH_ktexteditor_77(sip_gilstate_t,PyObject *,KTextEditor::SmartCursor *,bool);

    sipVH_ktexteditor_77(sipGILState,sipMeth,a0,a1);
}

void sipKTextEditor_SmartCursorWatcher::characterInserted(KTextEditor::SmartCursor *a0,bool a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KTextEditor::SmartCursorWatcher::characterInserted(a0,a1);
        return;
    }

    extern void sipVH_ktexteditor_77(sip_gilstate_t,PyObject *,KTextEditor::SmartCursor *,bool);

    sipVH_ktexteditor_77(sipGILState,sipMeth,a0,a1);
}

void sipKTextEditor_SmartCursorWatcher::deleted(KTextEditor::SmartCursor *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KTextEditor::SmartCursorWatcher::deleted(a0);
        return;
    }

    extern void sipVH_ktexteditor_76(sip_gilstate_t,PyObject *,KTextEditor::SmartCursor *);

    sipVH_ktexteditor_76(sipGILState,sipMeth,a0);
}


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

    {
        KTextEditor::SmartCursorWatcher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_SmartCursorWatcher, &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(sipParseErr, sipName_SmartCursorWatcher, sipName_wantsDirectChanges, NULL);

    return NULL;
}


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

    {
        bool a0;
        KTextEditor::SmartCursorWatcher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KTextEditor_SmartCursorWatcher, &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(sipParseErr, sipName_SmartCursorWatcher, sipName_setWantsDirectChanges, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_SmartCursorWatcher_positionChanged(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_SmartCursorWatcher_positionChanged(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTextEditor::SmartCursor * a0;
        KTextEditor::SmartCursorWatcher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_SmartCursorWatcher, &sipCpp, sipType_KTextEditor_SmartCursor, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KTextEditor::SmartCursorWatcher::positionChanged(a0) : sipCpp->positionChanged(a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_SmartCursorWatcher_positionDeleted(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_SmartCursorWatcher_positionDeleted(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTextEditor::SmartCursor * a0;
        KTextEditor::SmartCursorWatcher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_SmartCursorWatcher, &sipCpp, sipType_KTextEditor_SmartCursor, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KTextEditor::SmartCursorWatcher::positionDeleted(a0) : sipCpp->positionDeleted(a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_SmartCursorWatcher_characterDeleted(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_SmartCursorWatcher_characterDeleted(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTextEditor::SmartCursor * a0;
        bool a1;
        KTextEditor::SmartCursorWatcher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8b", &sipSelf, sipType_KTextEditor_SmartCursorWatcher, &sipCpp, sipType_KTextEditor_SmartCursor, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KTextEditor::SmartCursorWatcher::characterDeleted(a0,a1) : sipCpp->characterDeleted(a0,a1));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_SmartCursorWatcher_characterInserted(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_SmartCursorWatcher_characterInserted(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTextEditor::SmartCursor * a0;
        bool a1;
        KTextEditor::SmartCursorWatcher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8b", &sipSelf, sipType_KTextEditor_SmartCursorWatcher, &sipCpp, sipType_KTextEditor_SmartCursor, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KTextEditor::SmartCursorWatcher::characterInserted(a0,a1) : sipCpp->characterInserted(a0,a1));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_SmartCursorWatcher_deleted(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_SmartCursorWatcher_deleted(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTextEditor::SmartCursor * a0;
        KTextEditor::SmartCursorWatcher *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_SmartCursorWatcher, &sipCpp, sipType_KTextEditor_SmartCursor, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KTextEditor::SmartCursorWatcher::deleted(a0) : sipCpp->deleted(a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKTextEditor_SmartCursorWatcher *>(sipCppV);
    else
        delete reinterpret_cast<KTextEditor::SmartCursorWatcher *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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


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


extern "C" {static void dealloc_KTextEditor_SmartCursorWatcher(sipSimpleWrapper *);}
static void dealloc_KTextEditor_SmartCursorWatcher(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKTextEditor_SmartCursorWatcher *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KTextEditor_SmartCursorWatcher(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const KTextEditor::SmartCursorWatcher * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KTextEditor_SmartCursorWatcher, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_SmartCursorWatcher(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KTextEditor_SmartCursorWatcher[] = {
    {SIP_MLNAME_CAST(sipName_characterDeleted), meth_KTextEditor_SmartCursorWatcher_characterDeleted, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_characterInserted), meth_KTextEditor_SmartCursorWatcher_characterInserted, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_deleted), meth_KTextEditor_SmartCursorWatcher_deleted, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_positionChanged), meth_KTextEditor_SmartCursorWatcher_positionChanged, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_positionDeleted), meth_KTextEditor_SmartCursorWatcher_positionDeleted, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setWantsDirectChanges), meth_KTextEditor_SmartCursorWatcher_setWantsDirectChanges, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_wantsDirectChanges), meth_KTextEditor_SmartCursorWatcher_wantsDirectChanges, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_ktexteditor_KTextEditor_SmartCursorWatcher = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__SmartCursorWatcher,
        {0}
    },
    {
        sipNameNr_SmartCursorWatcher,
        {1, 255, 0},
        7, methods_KTextEditor_SmartCursorWatcher,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_KTextEditor_SmartCursorWatcher,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_SmartCursorWatcher,
    assign_KTextEditor_SmartCursorWatcher,
    array_KTextEditor_SmartCursorWatcher,
    copy_KTextEditor_SmartCursorWatcher,
    release_KTextEditor_SmartCursorWatcher,
    cast_KTextEditor_SmartCursorWatcher,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/cursor.sip"
#include <ktexteditor/cursor.h>
#line 1224 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"

#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/range.sip"
#include <ktexteditor/range.h>
#line 1228 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/smartcursor.sip"
#include <ktexteditor/smartcursor.h>
#line 1231 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"


class sipKTextEditor_Cursor : public KTextEditor::Cursor
{
public:
    sipKTextEditor_Cursor();
    sipKTextEditor_Cursor(int,int);
    sipKTextEditor_Cursor(const KTextEditor::Cursor&);
    virtual ~sipKTextEditor_Cursor();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    void sipProtectVirt_setRange(bool,KTextEditor::Range *);
    void sipProtect_cursorChangedDirectly(const KTextEditor::Cursor&);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool isValid() const;
    bool isSmartCursor() const;
    KTextEditor::SmartCursor * toSmartCursor() const;
    void setPosition(const KTextEditor::Cursor&);
    int line() const;
    void setLine(int);
    void setColumn(int);
    void setRange(KTextEditor::Range *);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[8];
};

sipKTextEditor_Cursor::sipKTextEditor_Cursor(): KTextEditor::Cursor(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTextEditor_Cursor::sipKTextEditor_Cursor(int a0,int a1): KTextEditor::Cursor(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTextEditor_Cursor::sipKTextEditor_Cursor(const KTextEditor::Cursor& a0): KTextEditor::Cursor(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTextEditor_Cursor::~sipKTextEditor_Cursor()
{
    sipCommonDtor(sipPySelf);
}

bool sipKTextEditor_Cursor::isValid() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KTextEditor::Cursor::isValid();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[7]))(sipGILState,sipMeth);
}

bool sipKTextEditor_Cursor::isSmartCursor() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KTextEditor::Cursor::isSmartCursor();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[7]))(sipGILState,sipMeth);
}

KTextEditor::SmartCursor * sipKTextEditor_Cursor::toSmartCursor() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KTextEditor::Cursor::toSmartCursor();

    extern KTextEditor::SmartCursor * sipVH_ktexteditor_36(sip_gilstate_t,PyObject *);

    return sipVH_ktexteditor_36(sipGILState,sipMeth);
}

void sipKTextEditor_Cursor::setPosition(const KTextEditor::Cursor& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KTextEditor::Cursor::setPosition(a0);
        return;
    }

    extern void sipVH_ktexteditor_79(sip_gilstate_t,PyObject *,const KTextEditor::Cursor&);

    sipVH_ktexteditor_79(sipGILState,sipMeth,a0);
}

int sipKTextEditor_Cursor::line() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return KTextEditor::Cursor::line();

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[6]))(sipGILState,sipMeth);
}

void sipKTextEditor_Cursor::setLine(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KTextEditor::Cursor::setLine(a0);
        return;
    }

    typedef void (*sipVH_QtCore_4)(sip_gilstate_t,PyObject *,int);

    ((sipVH_QtCore_4)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[4]))(sipGILState,sipMeth,a0);
}

void sipKTextEditor_Cursor::setColumn(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KTextEditor::Cursor::setColumn(a0);
        return;
    }

    typedef void (*sipVH_QtCore_4)(sip_gilstate_t,PyObject *,int);

    ((sipVH_QtCore_4)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[4]))(sipGILState,sipMeth,a0);
}

void sipKTextEditor_Cursor::setRange(KTextEditor::Range *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
        KTextEditor::Cursor::setRange(a0);
        return;
    }

    extern void sipVH_ktexteditor_78(sip_gilstate_t,PyObject *,KTextEditor::Range *);

    sipVH_ktexteditor_78(sipGILState,sipMeth,a0);
}

void sipKTextEditor_Cursor::sipProtectVirt_setRange(bool sipSelfWasArg,KTextEditor::Range *a0)
{
    (sipSelfWasArg ? KTextEditor::Cursor::setRange(a0) : setRange(a0));
}

void sipKTextEditor_Cursor::sipProtect_cursorChangedDirectly(const KTextEditor::Cursor& a0)
{
    KTextEditor::Cursor::cursorChangedDirectly(a0);
}


extern "C" {static PyObject *meth_KTextEditor_Cursor_isValid(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Cursor_isValid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTextEditor::Cursor *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTextEditor::Cursor::isValid() : sipCpp->isValid());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Cursor_isSmartCursor(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Cursor_isSmartCursor(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTextEditor::Cursor *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTextEditor::Cursor::isSmartCursor() : sipCpp->isSmartCursor());
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Cursor_toSmartCursor(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Cursor_toSmartCursor(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTextEditor::Cursor *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTextEditor::Cursor::toSmartCursor() : sipCpp->toSmartCursor());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            KTextEditor::Cursor *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KTextEditor::Cursor(KTextEditor::Cursor::invalid());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            KTextEditor::Cursor *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KTextEditor::Cursor(KTextEditor::Cursor::start());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Cursor_setPosition(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Cursor_setPosition(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KTextEditor_Cursor, &sipCpp, sipType_KTextEditor_Cursor, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KTextEditor::Cursor::setPosition(*a0) : sipCpp->setPosition(*a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        int a1;
        KTextEditor::Cursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii", &sipSelf, sipType_KTextEditor_Cursor, &sipCpp, &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setPosition(a0,a1);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Cursor_line(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Cursor_line(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTextEditor::Cursor *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->KTextEditor::Cursor::line() : sipCpp->line());
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Cursor_setLine(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Cursor_setLine(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0;
        KTextEditor::Cursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KTextEditor_Cursor, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KTextEditor::Cursor::setLine(a0) : sipCpp->setLine(a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KTextEditor::Cursor *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->column();
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Cursor_setColumn(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Cursor_setColumn(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0;
        KTextEditor::Cursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KTextEditor_Cursor, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->KTextEditor::Cursor::setColumn(a0) : sipCpp->setColumn(a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KTextEditor::Cursor *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->atStartOfLine();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KTextEditor::Cursor *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->atStartOfDocument();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        int a0;
        int a1;
        KTextEditor::Cursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Cursor, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->position(a0,a1);
            Py_END_ALLOW_THREADS

            return sipBuildResult(0,"(ii)",a0,a1);
        }
    }

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

    return NULL;
}


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

    {
        KTextEditor::Cursor *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->range();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_Cursor_setRange(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_Cursor_setRange(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        KTextEditor::Range * a0;
        sipKTextEditor_Cursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_Cursor, &sipCpp, sipType_KTextEditor_Range, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtectVirt_setRange(sipSelfWasArg,a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KTextEditor_Cursor, &sipCpp, sipType_KTextEditor_Cursor, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->sipProtect_cursorChangedDirectly(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKTextEditor_Cursor *>(sipCppV);
    else
        delete reinterpret_cast<KTextEditor::Cursor *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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


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


extern "C" {static void dealloc_KTextEditor_Cursor(sipSimpleWrapper *);}
static void dealloc_KTextEditor_Cursor(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKTextEditor_Cursor *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KTextEditor_Cursor(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        int a0;
        int a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "ii", &a0, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_Cursor(a0,a1);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const KTextEditor::Cursor * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KTextEditor_Cursor, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_Cursor(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KTextEditor_Cursor[] = {
    {SIP_MLNAME_CAST(sipName_atStartOfDocument), meth_KTextEditor_Cursor_atStartOfDocument, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_atStartOfLine), meth_KTextEditor_Cursor_atStartOfLine, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_column), meth_KTextEditor_Cursor_column, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_cursorChangedDirectly), meth_KTextEditor_Cursor_cursorChangedDirectly, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_invalid), meth_KTextEditor_Cursor_invalid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isSmartCursor), meth_KTextEditor_Cursor_isSmartCursor, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_KTextEditor_Cursor_isValid, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_line), meth_KTextEditor_Cursor_line, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_position), meth_KTextEditor_Cursor_position, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_range), meth_KTextEditor_Cursor_range, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setColumn), meth_KTextEditor_Cursor_setColumn, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setLine), meth_KTextEditor_Cursor_setLine, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setPosition), meth_KTextEditor_Cursor_setPosition, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setRange), meth_KTextEditor_Cursor_setRange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_start), meth_KTextEditor_Cursor_start, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toSmartCursor), meth_KTextEditor_Cursor_toSmartCursor, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_ktexteditor_KTextEditor_Cursor = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__Cursor,
        {0}
    },
    {
        sipNameNr_Cursor,
        {1, 255, 0},
        16, methods_KTextEditor_Cursor,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_KTextEditor_Cursor,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_Cursor,
    assign_KTextEditor_Cursor,
    array_KTextEditor_Cursor,
    copy_KTextEditor_Cursor,
    release_KTextEditor_Cursor,
    cast_KTextEditor_Cursor,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 31 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/containerinterface.sip"
#include <ktexteditor/containerinterface.h>
#line 2073 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"

#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 2077 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"


class sipKTextEditor_ContainerInterface : public KTextEditor::ContainerInterface
{
public:
    sipKTextEditor_ContainerInterface();
    sipKTextEditor_ContainerInterface(const KTextEditor::ContainerInterface&);
    virtual ~sipKTextEditor_ContainerInterface();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void setContainer(QObject *);
    QObject * container();

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[2];
};

sipKTextEditor_ContainerInterface::sipKTextEditor_ContainerInterface(): KTextEditor::ContainerInterface(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTextEditor_ContainerInterface::sipKTextEditor_ContainerInterface(const KTextEditor::ContainerInterface& a0): KTextEditor::ContainerInterface(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTextEditor_ContainerInterface::~sipKTextEditor_ContainerInterface()
{
    sipCommonDtor(sipPySelf);
}

void sipKTextEditor_ContainerInterface::setContainer(QObject *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,sipName_ContainerInterface,sipName_setContainer);

    if (!sipMeth)
        return;

    typedef void (*sipVH_QtGui_235)(sip_gilstate_t,PyObject *,QObject *);

    ((sipVH_QtGui_235)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[235]))(sipGILState,sipMeth,a0);
}

QObject * sipKTextEditor_ContainerInterface::container()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,sipName_ContainerInterface,sipName_container);

    if (!sipMeth)
        return 0;

    extern QObject * sipVH_ktexteditor_80(sip_gilstate_t,PyObject *);

    return sipVH_ktexteditor_80(sipGILState,sipMeth);
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_ContainerInterface, &sipCpp, sipType_QObject, &a0))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_ContainerInterface, sipName_setContainer);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->setContainer(a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KTextEditor::ContainerInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_ContainerInterface, &sipCpp))
        {
            QObject *sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_ContainerInterface, sipName_container);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->container();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKTextEditor_ContainerInterface *>(sipCppV);
    else
        delete reinterpret_cast<KTextEditor::ContainerInterface *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KTextEditor_ContainerInterface(sipSimpleWrapper *);}
static void dealloc_KTextEditor_ContainerInterface(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKTextEditor_ContainerInterface *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KTextEditor_ContainerInterface(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const KTextEditor::ContainerInterface * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KTextEditor_ContainerInterface, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_ContainerInterface(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KTextEditor_ContainerInterface[] = {
    {SIP_MLNAME_CAST(sipName_container), meth_KTextEditor_ContainerInterface_container, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setContainer), meth_KTextEditor_ContainerInterface_setContainer, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_ktexteditor_KTextEditor_ContainerInterface = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__ContainerInterface,
        {0}
    },
    {
        sipNameNr_ContainerInterface,
        {1, 255, 0},
        2, methods_KTextEditor_ContainerInterface,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_KTextEditor_ContainerInterface,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_ContainerInterface,
    0,
    0,
    0,
    release_KTextEditor_ContainerInterface,
    cast_KTextEditor_ContainerInterface,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/configpage.sip"
#include <ktexteditor/configpage.h>
#line 2353 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"

#line 35 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 2357 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2360 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 39 "/usr/local/share/py-sip/QtCore/qmargins.sip"
#include <qmargins.h>
#line 2363 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2366 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2369 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 39 "/usr/local/share/py-sip/QtGui/qgraphicseffect.sip"
#include <qgraphicseffect.h>
#line 2372 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 33 "/usr/local/share/py-sip/QtGui/qgraphicsproxywidget.sip"
#include <qgraphicsproxywidget.h>
#line 2375 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 2378 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 2381 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 31 "/usr/local/share/py-sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 2384 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 2387 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qregion.sip"
#include <qregion.h>
#line 2390 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qwidget.sip"
#include <qwidget.h>
#line 2393 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 2396 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 37 "/usr/local/share/py-sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 2399 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qsize.sip"
#include <qsize.h>
#line 2402 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qrect.sip"
#include <qrect.h>
#line 2405 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 31 "/usr/local/share/py-sip/QtGui/qfontinfo.sip"
#include <qfontinfo.h>
#line 2408 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 31 "/usr/local/share/py-sip/QtGui/qfontmetrics.sip"
#include <qfontmetrics.h>
#line 2411 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qfont.sip"
#include <qfont.h>
#line 2414 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2417 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qpalette.sip"
#include <qpalette.h>
#line 2420 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 2423 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 499 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 2426 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2429 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 459 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 2432 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 448 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 2435 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 542 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 2438 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 593 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 2441 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 566 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 2444 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 582 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 2447 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 645 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 2450 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 291 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 2453 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 470 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 2456 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 426 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 2459 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 413 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 2462 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 400 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 2465 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 386 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 2468 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 367 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 2471 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 339 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 2474 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 270 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 2477 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 231 "/usr/local/share/py-sip/QtGui/qevent.sip"
#include <qevent.h>
#line 2480 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 31 "/usr/local/share/py-sip/QtGui/qinputcontext.sip"
#include <qinputcontext.h>
#line 2483 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 61 "/usr/local/share/py-sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 2486 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 36 "/usr/local/share/py-sip/QtGui/qx11info_x11.sip"
#include <qx11info_x11.h>
#line 2489 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2492 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 31 "/usr/local/share/py-sip/QtGui/qaction.sip"
#include <qaction.h>
#line 2495 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 31 "/usr/local/share/py-sip/QtGui/qlayout.sip"
#include <qlayout.h>
#line 2498 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qsizepolicy.sip"
#include <qsizepolicy.h>
#line 2501 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 2504 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 2507 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qcursor.sip"
#include <qcursor.h>
#line 2510 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qicon.sip"
#include <qicon.h>
#line 2513 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qbitmap.sip"
#include <qbitmap.h>
#line 2516 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qstyle.sip"
#include <qstyle.h>
#line 2519 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 310 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2522 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 298 "/usr/local/share/py-sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 2525 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 2528 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2531 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 2534 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qthread.sip"
#include <qthread.h>
#line 2537 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 2540 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 31 "/usr/local/share/py-sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 2543 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"


class sipKTextEditor_ConfigPage : public KTextEditor::ConfigPage
{
public:
    sipKTextEditor_ConfigPage(QWidget *);
    virtual ~sipKTextEditor_ConfigPage();

    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.
     */
    QObject * sipProtect_sender() const;
    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:
    void apply();
    void reset();
    void defaults();
    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_ConfigPage(const sipKTextEditor_ConfigPage &);
    sipKTextEditor_ConfigPage &operator = (const sipKTextEditor_ConfigPage &);

    char sipPyMethods[50];
};

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

sipKTextEditor_ConfigPage::~sipKTextEditor_ConfigPage()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipKTextEditor_ConfigPage::metaObject() const
{
    return sip_ktexteditor_qt_metaobject(sipPySelf,sipType_KTextEditor_ConfigPage);
}

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

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

    return _id;
}

void *sipKTextEditor_ConfigPage::qt_metacast(const char *_clname)
{
    return (sip_ktexteditor_qt_metacast && sip_ktexteditor_qt_metacast(sipPySelf,sipType_KTextEditor_ConfigPage,_clname)) ? this : KTextEditor::ConfigPage::qt_metacast(_clname);
}

void sipKTextEditor_ConfigPage::apply()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,sipName_ConfigPage,sipName_apply);

    if (!sipMeth)
        return;

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t,PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[11]))(sipGILState,sipMeth);
}

void sipKTextEditor_ConfigPage::reset()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,sipName_ConfigPage,sipName_reset);

    if (!sipMeth)
        return;

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t,PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[11]))(sipGILState,sipMeth);
}

void sipKTextEditor_ConfigPage::defaults()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,sipName_ConfigPage,sipName_defaults);

    if (!sipMeth)
        return;

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t,PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[11]))(sipGILState,sipMeth);
}

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

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

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

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[6]))(sipGILState,sipMeth);
}

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

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

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

    typedef void (*sipVH_QtGui_6)(sip_gilstate_t,PyObject *,bool);

    ((sipVH_QtGui_6)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[6]))(sipGILState,sipMeth,a0);
}

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

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

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

    typedef QSize (*sipVH_QtGui_4)(sip_gilstate_t,PyObject *);

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

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

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

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

    typedef QSize (*sipVH_QtGui_4)(sip_gilstate_t,PyObject *);

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

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

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

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

    typedef int (*sipVH_QtGui_28)(sip_gilstate_t,PyObject *,int);

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

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

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

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

    typedef QPaintEngine * (*sipVH_QtGui_27)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtGui_27)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[27]))(sipGILState,sipMeth);
}

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

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

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

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t,PyObject *,QEvent *);

    return ((sipVH_QtCore_5)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[5]))(sipGILState,sipMeth,a0);
}

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

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

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

    typedef void (*sipVH_QtGui_26)(sip_gilstate_t,PyObject *,QMouseEvent *);

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

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

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

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

    typedef void (*sipVH_QtGui_26)(sip_gilstate_t,PyObject *,QMouseEvent *);

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

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

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

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

    typedef void (*sipVH_QtGui_26)(sip_gilstate_t,PyObject *,QMouseEvent *);

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

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

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

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

    typedef void (*sipVH_QtGui_26)(sip_gilstate_t,PyObject *,QMouseEvent *);

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

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

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

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

    typedef void (*sipVH_QtGui_5)(sip_gilstate_t,PyObject *,QWheelEvent *);

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

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

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

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

    typedef void (*sipVH_QtGui_25)(sip_gilstate_t,PyObject *,QKeyEvent *);

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

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

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

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

    typedef void (*sipVH_QtGui_25)(sip_gilstate_t,PyObject *,QKeyEvent *);

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

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

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

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

    typedef void (*sipVH_QtGui_24)(sip_gilstate_t,PyObject *,QFocusEvent *);

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

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

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

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

    typedef void (*sipVH_QtGui_24)(sip_gilstate_t,PyObject *,QFocusEvent *);

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

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

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

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

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t,PyObject *,QEvent *);

    ((sipVH_QtCore_17)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[17]))(sipGILState,sipMeth,a0);
}

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

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

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

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t,PyObject *,QEvent *);

    ((sipVH_QtCore_17)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[17]))(sipGILState,sipMeth,a0);
}

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

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

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

    typedef void (*sipVH_QtGui_3)(sip_gilstate_t,PyObject *,QPaintEvent *);

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

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

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

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

    typedef void (*sipVH_QtGui_23)(sip_gilstate_t,PyObject *,QMoveEvent *);

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

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

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

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

    typedef void (*sipVH_QtGui_2)(sip_gilstate_t,PyObject *,QResizeEvent *);

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

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

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

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

    typedef void (*sipVH_QtGui_22)(sip_gilstate_t,PyObject *,QCloseEvent *);

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

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

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

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

    typedef void (*sipVH_QtGui_21)(sip_gilstate_t,PyObject *,QContextMenuEvent *);

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

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

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

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

    typedef void (*sipVH_QtGui_20)(sip_gilstate_t,PyObject *,QTabletEvent *);

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

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

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

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

    typedef void (*sipVH_QtGui_19)(sip_gilstate_t,PyObject *,QActionEvent *);

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

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

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

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

    typedef void (*sipVH_QtGui_18)(sip_gilstate_t,PyObject *,QDragEnterEvent *);

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

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

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

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

    typedef void (*sipVH_QtGui_17)(sip_gilstate_t,PyObject *,QDragMoveEvent *);

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

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

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

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

    typedef void (*sipVH_QtGui_16)(sip_gilstate_t,PyObject *,QDragLeaveEvent *);

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

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

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

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

    typedef void (*sipVH_QtGui_15)(sip_gilstate_t,PyObject *,QDropEvent *);

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

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

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

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

    typedef void (*sipVH_QtGui_1)(sip_gilstate_t,PyObject *,QShowEvent *);

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

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

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

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

    typedef void (*sipVH_QtGui_0)(sip_gilstate_t,PyObject *,QHideEvent *);

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

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

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

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

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t,PyObject *,QEvent *);

    ((sipVH_QtCore_17)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[17]))(sipGILState,sipMeth,a0);
}

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

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

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

    typedef int (*sipVH_QtGui_14)(sip_gilstate_t,PyObject *,QPaintDevice::PaintDeviceMetric);

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

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

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

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

    typedef void (*sipVH_QtGui_13)(sip_gilstate_t,PyObject *,QInputMethodEvent *);

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

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

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

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

    typedef QVariant (*sipVH_QtGui_12)(sip_gilstate_t,PyObject *,Qt::InputMethodQuery);

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

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

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

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

    typedef bool (*sipVH_QtGui_11)(sip_gilstate_t,PyObject *,bool);

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

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

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

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

    typedef void (*sipVH_QtGui_6)(sip_gilstate_t,PyObject *,bool);

    ((sipVH_QtGui_6)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[6]))(sipGILState,sipMeth,a0);
}

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

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

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

    typedef void (*sipVH_QtGui_10)(sip_gilstate_t,PyObject *,const QPalette&);

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

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

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

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

    typedef void (*sipVH_QtGui_9)(sip_gilstate_t,PyObject *,const QFont&);

    ((sipVH_QtGui_9)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[9]))(sipGILState,sipMeth,a0);
}

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

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

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

    typedef void (*sipVH_QtGui_6)(sip_gilstate_t,PyObject *,bool);

    ((sipVH_QtGui_6)(sipModuleAPI_ktexteditor_QtGui->em_virthandlers[6]))(sipGILState,sipMeth,a0);
}

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

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

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

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t,PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[11]))(sipGILState,sipMeth);
}

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

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

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

    typedef bool (*sipVH_QtCore_18)(sip_gilstate_t,PyObject *,QObject *,QEvent *);

    return ((sipVH_QtCore_18)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[18]))(sipGILState,sipMeth,a0,a1);
}

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

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

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

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t,PyObject *,QTimerEvent *);

    ((sipVH_QtCore_9)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[9]))(sipGILState,sipMeth,a0);
}

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

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

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

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t,PyObject *,QChildEvent *);

    ((sipVH_QtCore_25)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[25]))(sipGILState,sipMeth,a0);
}

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

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

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

    typedef void (*sipVH_QtCore_17)(sip_gilstate_t,PyObject *,QEvent *);

    ((sipVH_QtCore_17)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[17]))(sipGILState,sipMeth,a0);
}

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

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

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

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t,PyObject *,const char *);

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

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

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

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

    typedef void (*sipVH_QtCore_24)(sip_gilstate_t,PyObject *,const char *);

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

QObject * sipKTextEditor_ConfigPage::sipProtect_sender() const
{
    return QObject::sender();
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

    {
        sipKTextEditor_ConfigPage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_ConfigPage, &sipCpp))
        {
            QObject *sipRes = 0;

#line 632 "/usr/local/share/py-sip/QtCore/qobject.sip"
        typedef QObject *(*helper_func)(QObject *);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qpycore_qobject_sender");
        
        if (helper)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp->sender());
        #else
            sipRes = helper(sipCpp->sipProtect_sender());
        #endif
#line 3827 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"

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

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

    return NULL;
}


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

    {
        char * a0;
        sipKTextEditor_ConfigPage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KTextEditor_ConfigPage, &sipCpp, &a0))
        {
            int sipRes = 0;

#line 649 "/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)
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            sipRes = helper(sipCpp, a0, sipCpp->receivers(a0));
        #else
            sipRes = helper(sipCpp, a0, sipCpp->sipProtect_receivers(a0));
        #endif
#line 3869 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_ConfigPage_timerEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_ConfigPage_timerEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent * a0;
        sipKTextEditor_ConfigPage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_ConfigPage, &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(sipParseErr, sipName_ConfigPage, sipName_timerEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_ConfigPage_childEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_ConfigPage_childEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent * a0;
        sipKTextEditor_ConfigPage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_ConfigPage, &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(sipParseErr, sipName_ConfigPage, sipName_childEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_ConfigPage_customEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_ConfigPage_customEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipKTextEditor_ConfigPage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_ConfigPage, &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(sipParseErr, sipName_ConfigPage, sipName_customEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_ConfigPage_connectNotify(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_ConfigPage_connectNotify(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipKTextEditor_ConfigPage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KTextEditor_ConfigPage, &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(sipParseErr, sipName_ConfigPage, sipName_connectNotify, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_ConfigPage_disconnectNotify(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_ConfigPage_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        char * a0;
        sipKTextEditor_ConfigPage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BG", &sipSelf, sipType_KTextEditor_ConfigPage, &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(sipParseErr, sipName_ConfigPage, sipName_disconnectNotify, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_ConfigPage_event(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_ConfigPage_event(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipKTextEditor_ConfigPage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_ConfigPage, &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(sipParseErr, sipName_ConfigPage, sipName_event, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_ConfigPage_mousePressEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_ConfigPage_mousePressEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMouseEvent * a0;
        sipKTextEditor_ConfigPage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_ConfigPage, &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(sipParseErr, sipName_ConfigPage, sipName_mousePressEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_ConfigPage_mouseReleaseEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_ConfigPage_mouseReleaseEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMouseEvent * a0;
        sipKTextEditor_ConfigPage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_ConfigPage, &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(sipParseErr, sipName_ConfigPage, sipName_mouseReleaseEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_ConfigPage_mouseDoubleClickEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_ConfigPage_mouseDoubleClickEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMouseEvent * a0;
        sipKTextEditor_ConfigPage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_ConfigPage, &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(sipParseErr, sipName_ConfigPage, sipName_mouseDoubleClickEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_ConfigPage_mouseMoveEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_ConfigPage_mouseMoveEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMouseEvent * a0;
        sipKTextEditor_ConfigPage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_ConfigPage, &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(sipParseErr, sipName_ConfigPage, sipName_mouseMoveEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_ConfigPage_wheelEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_ConfigPage_wheelEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QWheelEvent * a0;
        sipKTextEditor_ConfigPage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_ConfigPage, &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(sipParseErr, sipName_ConfigPage, sipName_wheelEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_ConfigPage_keyPressEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_ConfigPage_keyPressEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QKeyEvent * a0;
        sipKTextEditor_ConfigPage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_ConfigPage, &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(sipParseErr, sipName_ConfigPage, sipName_keyPressEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_ConfigPage_keyReleaseEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_ConfigPage_keyReleaseEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QKeyEvent * a0;
        sipKTextEditor_ConfigPage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_ConfigPage, &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(sipParseErr, sipName_ConfigPage, sipName_keyReleaseEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_ConfigPage_focusInEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_ConfigPage_focusInEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QFocusEvent * a0;
        sipKTextEditor_ConfigPage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_ConfigPage, &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(sipParseErr, sipName_ConfigPage, sipName_focusInEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_ConfigPage_focusOutEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_ConfigPage_focusOutEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QFocusEvent * a0;
        sipKTextEditor_ConfigPage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_ConfigPage, &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(sipParseErr, sipName_ConfigPage, sipName_focusOutEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_ConfigPage_enterEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_ConfigPage_enterEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipKTextEditor_ConfigPage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_ConfigPage, &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(sipParseErr, sipName_ConfigPage, sipName_enterEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_ConfigPage_leaveEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_ConfigPage_leaveEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipKTextEditor_ConfigPage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_ConfigPage, &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(sipParseErr, sipName_ConfigPage, sipName_leaveEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_ConfigPage_paintEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_ConfigPage_paintEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPaintEvent * a0;
        sipKTextEditor_ConfigPage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_ConfigPage, &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(sipParseErr, sipName_ConfigPage, sipName_paintEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_ConfigPage_moveEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_ConfigPage_moveEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMoveEvent * a0;
        sipKTextEditor_ConfigPage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_ConfigPage, &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(sipParseErr, sipName_ConfigPage, sipName_moveEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_ConfigPage_resizeEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_ConfigPage_resizeEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QResizeEvent * a0;
        sipKTextEditor_ConfigPage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_ConfigPage, &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(sipParseErr, sipName_ConfigPage, sipName_resizeEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_ConfigPage_closeEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_ConfigPage_closeEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QCloseEvent * a0;
        sipKTextEditor_ConfigPage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_ConfigPage, &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(sipParseErr, sipName_ConfigPage, sipName_closeEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_ConfigPage_contextMenuEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_ConfigPage_contextMenuEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QContextMenuEvent * a0;
        sipKTextEditor_ConfigPage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_ConfigPage, &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(sipParseErr, sipName_ConfigPage, sipName_contextMenuEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_ConfigPage_tabletEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_ConfigPage_tabletEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTabletEvent * a0;
        sipKTextEditor_ConfigPage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_ConfigPage, &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(sipParseErr, sipName_ConfigPage, sipName_tabletEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_ConfigPage_actionEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_ConfigPage_actionEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QActionEvent * a0;
        sipKTextEditor_ConfigPage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_ConfigPage, &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(sipParseErr, sipName_ConfigPage, sipName_actionEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_ConfigPage_dragEnterEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_ConfigPage_dragEnterEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QDragEnterEvent * a0;
        sipKTextEditor_ConfigPage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_ConfigPage, &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(sipParseErr, sipName_ConfigPage, sipName_dragEnterEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_ConfigPage_dragMoveEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_ConfigPage_dragMoveEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QDragMoveEvent * a0;
        sipKTextEditor_ConfigPage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_ConfigPage, &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(sipParseErr, sipName_ConfigPage, sipName_dragMoveEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_ConfigPage_dragLeaveEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_ConfigPage_dragLeaveEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QDragLeaveEvent * a0;
        sipKTextEditor_ConfigPage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_ConfigPage, &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(sipParseErr, sipName_ConfigPage, sipName_dragLeaveEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_ConfigPage_dropEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_ConfigPage_dropEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QDropEvent * a0;
        sipKTextEditor_ConfigPage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_ConfigPage, &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(sipParseErr, sipName_ConfigPage, sipName_dropEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_ConfigPage_showEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_ConfigPage_showEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QShowEvent * a0;
        sipKTextEditor_ConfigPage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_ConfigPage, &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(sipParseErr, sipName_ConfigPage, sipName_showEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_ConfigPage_hideEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_ConfigPage_hideEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QHideEvent * a0;
        sipKTextEditor_ConfigPage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_ConfigPage, &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(sipParseErr, sipName_ConfigPage, sipName_hideEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_ConfigPage_changeEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_ConfigPage_changeEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent * a0;
        sipKTextEditor_ConfigPage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_ConfigPage, &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(sipParseErr, sipName_ConfigPage, sipName_changeEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_ConfigPage_metric(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_ConfigPage_metric(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPaintDevice::PaintDeviceMetric a0;
        sipKTextEditor_ConfigPage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KTextEditor_ConfigPage, &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(sipParseErr, sipName_ConfigPage, sipName_metric, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_ConfigPage_inputMethodEvent(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_ConfigPage_inputMethodEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QInputMethodEvent * a0;
        sipKTextEditor_ConfigPage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_ConfigPage, &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(sipParseErr, sipName_ConfigPage, sipName_inputMethodEvent, NULL);

    return NULL;
}


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

    {
        sipKTextEditor_ConfigPage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_ConfigPage, &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(sipParseErr, sipName_ConfigPage, sipName_resetInputContext, NULL);

    return NULL;
}


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

    {
        sipKTextEditor_ConfigPage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_ConfigPage, &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(sipParseErr, sipName_ConfigPage, sipName_updateMicroFocus, NULL);

    return NULL;
}


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

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

        static const char *sipKwdList[] = {
            sipName_window,
            sipName_initializeWindow,
            sipName_destroyOldWindow,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|mbb", &sipSelf, sipType_KTextEditor_ConfigPage, &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(sipParseErr, sipName_ConfigPage, sipName_create, NULL);

    return NULL;
}


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

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

        static const char *sipKwdList[] = {
            sipName_destroyWindow,
            sipName_destroySubWindows,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|bb", &sipSelf, sipType_KTextEditor_ConfigPage, &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(sipParseErr, sipName_ConfigPage, sipName_destroy, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_ConfigPage_focusNextPrevChild(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_ConfigPage_focusNextPrevChild(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        bool a0;
        sipKTextEditor_ConfigPage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KTextEditor_ConfigPage, &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(sipParseErr, sipName_ConfigPage, sipName_focusNextPrevChild, NULL);

    return NULL;
}


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

    {
        sipKTextEditor_ConfigPage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_ConfigPage, &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(sipParseErr, sipName_ConfigPage, sipName_focusNextChild, NULL);

    return NULL;
}


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

    {
        sipKTextEditor_ConfigPage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_ConfigPage, &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(sipParseErr, sipName_ConfigPage, sipName_focusPreviousChild, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_ConfigPage_enabledChange(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_ConfigPage_enabledChange(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        bool a0;
        sipKTextEditor_ConfigPage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KTextEditor_ConfigPage, &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(sipParseErr, sipName_ConfigPage, sipName_enabledChange, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_ConfigPage_paletteChange(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_ConfigPage_paletteChange(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QPalette * a0;
        sipKTextEditor_ConfigPage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KTextEditor_ConfigPage, &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(sipParseErr, sipName_ConfigPage, sipName_paletteChange, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_ConfigPage_fontChange(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_ConfigPage_fontChange(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QFont * a0;
        sipKTextEditor_ConfigPage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KTextEditor_ConfigPage, &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(sipParseErr, sipName_ConfigPage, sipName_fontChange, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_ConfigPage_windowActivationChange(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_ConfigPage_windowActivationChange(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        bool a0;
        sipKTextEditor_ConfigPage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KTextEditor_ConfigPage, &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(sipParseErr, sipName_ConfigPage, sipName_windowActivationChange, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KTextEditor_ConfigPage_languageChange(PyObject *, PyObject *);}
static PyObject *meth_KTextEditor_ConfigPage_languageChange(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipKTextEditor_ConfigPage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_ConfigPage, &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(sipParseErr, sipName_ConfigPage, sipName_languageChange, NULL);

    return NULL;
}


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

    {
        KTextEditor::ConfigPage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_ConfigPage, &sipCpp))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_ConfigPage, sipName_apply);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->apply();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KTextEditor::ConfigPage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_ConfigPage, &sipCpp))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_ConfigPage, sipName_reset);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->reset();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KTextEditor::ConfigPage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_ConfigPage, &sipCpp))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_ConfigPage, sipName_defaults);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->defaults();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KTextEditor_ConfigPage)
        return ptr;

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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKTextEditor_ConfigPage *>(sipCppV);
    else
        delete reinterpret_cast<KTextEditor::ConfigPage *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KTextEditor_ConfigPage(sipSimpleWrapper *);}
static void dealloc_KTextEditor_ConfigPage(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKTextEditor_ConfigPage *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KTextEditor_ConfigPage(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


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

    {
        QWidget * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8", sipType_QWidget, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_ConfigPage(a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_KTextEditor_ConfigPage[] = {
    {SIP_MLNAME_CAST(sipName_actionEvent), meth_KTextEditor_ConfigPage_actionEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_apply), meth_KTextEditor_ConfigPage_apply, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_changeEvent), meth_KTextEditor_ConfigPage_changeEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), meth_KTextEditor_ConfigPage_childEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_closeEvent), meth_KTextEditor_ConfigPage_closeEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), meth_KTextEditor_ConfigPage_connectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_contextMenuEvent), meth_KTextEditor_ConfigPage_contextMenuEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_create), (PyCFunction)meth_KTextEditor_ConfigPage_create, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), meth_KTextEditor_ConfigPage_customEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_defaults), meth_KTextEditor_ConfigPage_defaults, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_destroy), (PyCFunction)meth_KTextEditor_ConfigPage_destroy, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), meth_KTextEditor_ConfigPage_disconnectNotify, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dragEnterEvent), meth_KTextEditor_ConfigPage_dragEnterEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dragLeaveEvent), meth_KTextEditor_ConfigPage_dragLeaveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dragMoveEvent), meth_KTextEditor_ConfigPage_dragMoveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dropEvent), meth_KTextEditor_ConfigPage_dropEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_enabledChange), meth_KTextEditor_ConfigPage_enabledChange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_enterEvent), meth_KTextEditor_ConfigPage_enterEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_event), meth_KTextEditor_ConfigPage_event, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_focusInEvent), meth_KTextEditor_ConfigPage_focusInEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_focusNextChild), meth_KTextEditor_ConfigPage_focusNextChild, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_focusNextPrevChild), meth_KTextEditor_ConfigPage_focusNextPrevChild, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_focusOutEvent), meth_KTextEditor_ConfigPage_focusOutEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_focusPreviousChild), meth_KTextEditor_ConfigPage_focusPreviousChild, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fontChange), meth_KTextEditor_ConfigPage_fontChange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hideEvent), meth_KTextEditor_ConfigPage_hideEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_inputMethodEvent), meth_KTextEditor_ConfigPage_inputMethodEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_keyPressEvent), meth_KTextEditor_ConfigPage_keyPressEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_keyReleaseEvent), meth_KTextEditor_ConfigPage_keyReleaseEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_languageChange), meth_KTextEditor_ConfigPage_languageChange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_leaveEvent), meth_KTextEditor_ConfigPage_leaveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_metric), meth_KTextEditor_ConfigPage_metric, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseDoubleClickEvent), meth_KTextEditor_ConfigPage_mouseDoubleClickEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseMoveEvent), meth_KTextEditor_ConfigPage_mouseMoveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mousePressEvent), meth_KTextEditor_ConfigPage_mousePressEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseReleaseEvent), meth_KTextEditor_ConfigPage_mouseReleaseEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_moveEvent), meth_KTextEditor_ConfigPage_moveEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_paintEvent), meth_KTextEditor_ConfigPage_paintEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_paletteChange), meth_KTextEditor_ConfigPage_paletteChange, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), meth_KTextEditor_ConfigPage_receivers, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_reset), meth_KTextEditor_ConfigPage_reset, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_resetInputContext), meth_KTextEditor_ConfigPage_resetInputContext, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_resizeEvent), meth_KTextEditor_ConfigPage_resizeEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), meth_KTextEditor_ConfigPage_sender, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_showEvent), meth_KTextEditor_ConfigPage_showEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_tabletEvent), meth_KTextEditor_ConfigPage_tabletEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), meth_KTextEditor_ConfigPage_timerEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_updateMicroFocus), meth_KTextEditor_ConfigPage_updateMicroFocus, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_wheelEvent), meth_KTextEditor_ConfigPage_wheelEvent, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_windowActivationChange), meth_KTextEditor_ConfigPage_windowActivationChange, METH_VARARGS, NULL}
};


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


pyqt4ClassTypeDef sipTypeDef_ktexteditor_KTextEditor_ConfigPage = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__ConfigPage,
        {0}
    },
    {
        sipNameNr_ConfigPage,
        {1, 255, 0},
        50, methods_KTextEditor_ConfigPage,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KTextEditor_ConfigPage,
    0,
    init_KTextEditor_ConfigPage,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_ConfigPage,
    0,
    0,
    0,
    release_KTextEditor_ConfigPage,
    cast_KTextEditor_ConfigPage,
    0,
    0,
    0
},
    &KTextEditor::ConfigPage::staticMetaObject,
    0,
    pyqt4_signals_KTextEditor_ConfigPage
};

#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/configinterface.sip"
#include <ktexteditor/configinterface.h>
#line 5434 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 5438 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 5441 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 5444 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"


class sipKTextEditor_ConfigInterface : public KTextEditor::ConfigInterface
{
public:
    sipKTextEditor_ConfigInterface();
    virtual ~sipKTextEditor_ConfigInterface();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    QStringList configKeys() const;
    QVariant configValue(const QString&);
    void setConfigValue(const QString&,const QVariant&);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[3];
};

sipKTextEditor_ConfigInterface::sipKTextEditor_ConfigInterface(): KTextEditor::ConfigInterface(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTextEditor_ConfigInterface::~sipKTextEditor_ConfigInterface()
{
    sipCommonDtor(sipPySelf);
}

QStringList sipKTextEditor_ConfigInterface::configKeys() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QStringList();

    typedef QStringList (*sipVH_QtCore_27)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_27)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[27]))(sipGILState,sipMeth);
}

QVariant sipKTextEditor_ConfigInterface::configValue(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,sipName_ConfigInterface,sipName_configValue);

    if (!sipMeth)
        return QVariant();

    extern QVariant sipVH_ktexteditor_82(sip_gilstate_t,PyObject *,const QString&);

    return sipVH_ktexteditor_82(sipGILState,sipMeth,a0);
}

void sipKTextEditor_ConfigInterface::setConfigValue(const QString& a0,const QVariant& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,sipName_ConfigInterface,sipName_setConfigValue);

    if (!sipMeth)
        return;

    extern void sipVH_ktexteditor_81(sip_gilstate_t,PyObject *,const QString&,const QVariant&);

    sipVH_ktexteditor_81(sipGILState,sipMeth,a0,a1);
}


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

    {
        KTextEditor::ConfigInterface *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_ConfigInterface, sipName_configKeys);
                return NULL;
            }

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

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

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KTextEditor_ConfigInterface, &sipCpp, sipType_QString,&a0, &a0State))
        {
            QVariant *sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_ConfigInterface, sipName_configValue);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant(sipCpp->configValue(*a0));
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

    {
        const QString * a0;
        int a0State = 0;
        const QVariant * a1;
        int a1State = 0;
        KTextEditor::ConfigInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_KTextEditor_ConfigInterface, &sipCpp, sipType_QString,&a0, &a0State, sipType_QVariant,&a1, &a1State))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_ConfigInterface, sipName_setConfigValue);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->setConfigValue(*a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QVariant *>(a1),sipType_QVariant,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKTextEditor_ConfigInterface *>(sipCppV);
    else
        delete reinterpret_cast<KTextEditor::ConfigInterface *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KTextEditor_ConfigInterface(sipSimpleWrapper *);}
static void dealloc_KTextEditor_ConfigInterface(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKTextEditor_ConfigInterface *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KTextEditor_ConfigInterface(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KTextEditor_ConfigInterface[] = {
    {SIP_MLNAME_CAST(sipName_configKeys), meth_KTextEditor_ConfigInterface_configKeys, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_configValue), meth_KTextEditor_ConfigInterface_configValue, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setConfigValue), meth_KTextEditor_ConfigInterface_setConfigValue, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_ktexteditor_KTextEditor_ConfigInterface = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__ConfigInterface,
        {0}
    },
    {
        sipNameNr_ConfigInterface,
        {1, 255, 0},
        3, methods_KTextEditor_ConfigInterface,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_KTextEditor_ConfigInterface,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_ConfigInterface,
    0,
    0,
    0,
    release_KTextEditor_ConfigInterface,
    cast_KTextEditor_ConfigInterface,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 61 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/commandinterface.sip"
#include <ktexteditor/commandinterface.h>
#line 5758 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"

#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 5762 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 5765 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/commandinterface.sip"
#include <ktexteditor/commandinterface.h>
#line 5768 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 5771 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart5.cpp"


class sipKTextEditor_CommandInterface : public KTextEditor::CommandInterface
{
public:
    sipKTextEditor_CommandInterface();
    sipKTextEditor_CommandInterface(const KTextEditor::CommandInterface&);
    virtual ~sipKTextEditor_CommandInterface();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool registerCommand(KTextEditor::Command *);
    bool unregisterCommand(KTextEditor::Command *);
    KTextEditor::Command * queryCommand(const QString&) const;
    QList<KTextEditor::Command *> commands() const;
    QStringList commandList() const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[5];
};

sipKTextEditor_CommandInterface::sipKTextEditor_CommandInterface(): KTextEditor::CommandInterface(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTextEditor_CommandInterface::sipKTextEditor_CommandInterface(const KTextEditor::CommandInterface& a0): KTextEditor::CommandInterface(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKTextEditor_CommandInterface::~sipKTextEditor_CommandInterface()
{
    sipCommonDtor(sipPySelf);
}

bool sipKTextEditor_CommandInterface::registerCommand(KTextEditor::Command *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,sipName_CommandInterface,sipName_registerCommand);

    if (!sipMeth)
        return 0;

    extern bool sipVH_ktexteditor_85(sip_gilstate_t,PyObject *,KTextEditor::Command *);

    return sipVH_ktexteditor_85(sipGILState,sipMeth,a0);
}

bool sipKTextEditor_CommandInterface::unregisterCommand(KTextEditor::Command *a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,sipName_CommandInterface,sipName_unregisterCommand);

    if (!sipMeth)
        return 0;

    extern bool sipVH_ktexteditor_85(sip_gilstate_t,PyObject *,KTextEditor::Command *);

    return sipVH_ktexteditor_85(sipGILState,sipMeth,a0);
}

KTextEditor::Command * sipKTextEditor_CommandInterface::queryCommand(const QString& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return 0;

    extern KTextEditor::Command * sipVH_ktexteditor_84(sip_gilstate_t,PyObject *,const QString&);

    return sipVH_ktexteditor_84(sipGILState,sipMeth,a0);
}

QList<KTextEditor::Command *> sipKTextEditor_CommandInterface::commands() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,sipName_CommandInterface,sipName_commands);

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

    extern QList<KTextEditor::Command *> sipVH_ktexteditor_83(sip_gilstate_t,PyObject *);

    return sipVH_ktexteditor_83(sipGILState,sipMeth);
}

QStringList sipKTextEditor_CommandInterface::commandList() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QStringList();

    typedef QStringList (*sipVH_QtCore_27)(sip_gilstate_t,PyObject *);

    return ((sipVH_QtCore_27)(sipModuleAPI_ktexteditor_QtCore->em_virthandlers[27]))(sipGILState,sipMeth);
}


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

    {
        KTextEditor::Command * a0;
        KTextEditor::CommandInterface *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_CommandInterface, sipName_registerCommand);
                return NULL;
            }

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KTextEditor::Command * a0;
        KTextEditor::CommandInterface *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_CommandInterface, sipName_unregisterCommand);
                return NULL;
            }

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KTextEditor_CommandInterface, &sipCpp, sipType_QString,&a0, &a0State))
        {
            KTextEditor::Command *sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_CommandInterface, sipName_queryCommand);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->queryCommand(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

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

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

    return NULL;
}


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

    {
        KTextEditor::CommandInterface *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_CommandInterface, sipName_commands);
                return NULL;
            }

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

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

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

    return NULL;
}


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

    {
        KTextEditor::CommandInterface *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_CommandInterface, sipName_commandList);
                return NULL;
            }

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

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

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

    return NULL;
}


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

    return NULL;
}


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

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipKTextEditor_CommandInterface *>(sipCppV);
    else
        delete reinterpret_cast<KTextEditor::CommandInterface *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void dealloc_KTextEditor_CommandInterface(sipSimpleWrapper *);}
static void dealloc_KTextEditor_CommandInterface(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipKTextEditor_CommandInterface *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_KTextEditor_CommandInterface(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const KTextEditor::CommandInterface * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_KTextEditor_CommandInterface, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipKTextEditor_CommandInterface(*a0);
            Py_END_ALLOW_THREADS

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KTextEditor_CommandInterface[] = {
    {SIP_MLNAME_CAST(sipName_commandList), meth_KTextEditor_CommandInterface_commandList, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_commands), meth_KTextEditor_CommandInterface_commands, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_queryCommand), meth_KTextEditor_CommandInterface_queryCommand, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_registerCommand), meth_KTextEditor_CommandInterface_registerCommand, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_unregisterCommand), meth_KTextEditor_CommandInterface_unregisterCommand, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_ktexteditor_KTextEditor_CommandInterface = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__CommandInterface,
        {0}
    },
    {
        sipNameNr_CommandInterface,
        {1, 255, 0},
        5, methods_KTextEditor_CommandInterface,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_KTextEditor_CommandInterface,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_CommandInterface,
    0,
    0,
    0,
    release_KTextEditor_CommandInterface,
    cast_KTextEditor_CommandInterface,
    0,
    0,
    0
},
    0,
    0,
    0
};
