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

#include "sipAPIktexteditor.h"

#line 30 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/attribute.sip"
#include <ktexteditor/attribute.h>
#line 12 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"

#line 30 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/attribute.sip"
#include <ktexteditor/attribute.h>
#line 16 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 340 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 19 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 22 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdeui/kaction.sip"
#include <kaction.h>
#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qbrush.sip"
#include <qbrush.h>
#line 28 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qfont.sip"
#include <qfont.h>
#line 31 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 34 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 37 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 340 "/usr/share/python3-sip/PyQt4/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 40 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qpen.sip"
#include <qpen.h>
#line 43 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qcolor.sip"
#include <qcolor.h>
#line 46 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 741 "/usr/share/python3-sip/PyQt4/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 49 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 52 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 69 "/usr/share/python3-sip/PyQt4/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 55 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 598 "/usr/share/python3-sip/PyQt4/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 58 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 615 "/usr/share/python3-sip/PyQt4/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 61 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 708 "/usr/share/python3-sip/PyQt4/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 64 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 554 "/usr/share/python3-sip/PyQt4/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 67 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 491 "/usr/share/python3-sip/PyQt4/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 70 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 139 "/usr/share/python3-sip/PyQt4/QtCore/qmap.sip"
#include <qmap.h>
#line 73 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 76 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 79 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qvector.sip"
#include <qvector.h>
#line 82 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 85 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"


class sipKTextEditor_Attribute : public KTextEditor::Attribute
{
public:
    sipKTextEditor_Attribute();
    sipKTextEditor_Attribute(const KTextEditor::Attribute&);
    ~sipKTextEditor_Attribute();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKTextEditor_Attribute(const sipKTextEditor_Attribute &);
    sipKTextEditor_Attribute &operator = (const sipKTextEditor_Attribute &);
};

sipKTextEditor_Attribute::sipKTextEditor_Attribute(): KTextEditor::Attribute(), sipPySelf(0)
{
}

sipKTextEditor_Attribute::sipKTextEditor_Attribute(const KTextEditor::Attribute& a0): KTextEditor::Attribute(a0), sipPySelf(0)
{
}

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


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

    {
        const KTextEditor::Attribute *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->fontBold();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0 = 1;
        KTextEditor::Attribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B|b", &sipSelf, sipType_KTextEditor_Attribute, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setFontBold(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_Attribute, sipName_setFontBold, NULL);

    return NULL;
}


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

    {
        const KTextEditor::Attribute *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QBrush(sipCpp->outline());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QBrush* a0;
        int a0State = 0;
        KTextEditor::Attribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KTextEditor_Attribute, &sipCpp, sipType_QBrush, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setOutline(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QBrush *>(a0),sipType_QBrush,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KTextEditor::Attribute *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QBrush(sipCpp->selectedForeground());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QBrush* a0;
        int a0State = 0;
        KTextEditor::Attribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KTextEditor_Attribute, &sipCpp, sipType_QBrush, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSelectedForeground(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QBrush *>(a0),sipType_QBrush,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KTextEditor::Attribute *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QBrush(sipCpp->selectedBackground());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        const QBrush* a0;
        int a0State = 0;
        KTextEditor::Attribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KTextEditor_Attribute, &sipCpp, sipType_QBrush, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setSelectedBackground(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QBrush *>(a0),sipType_QBrush,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KTextEditor::Attribute *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->backgroundFillWhitespace();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        bool a0;
        KTextEditor::Attribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KTextEditor_Attribute, &sipCpp, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setBackgroundFillWhitespace(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_Attribute, sipName_setBackgroundFillWhitespace, NULL);

    return NULL;
}


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

    {
        KTextEditor::Attribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Attribute, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->clear();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KTextEditor::Attribute *sipCpp;

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

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->hasAnyProperty();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const KTextEditor::Attribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Attribute, &sipCpp))
        {
            QList<KAction*>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QList<KAction*>(sipCpp->associatedActions());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KTextEditor::Attribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Attribute, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->clearAssociatedActions();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        KTextEditor::Attribute::ActivationType a0;
        const KTextEditor::Attribute *sipCpp;

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

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

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

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

    return NULL;
}


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

    {
        KTextEditor::Attribute::ActivationType a0;
        KTextEditor::Attribute::Ptr* a1;
        int a1State = 0;
        KTextEditor::Attribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEJ1", &sipSelf, sipType_KTextEditor_Attribute, &sipCpp, sipType_KTextEditor_Attribute_ActivationType, &a0, sipType_KSharedPtr_0100KTextEditor_Attribute,&a1, &a1State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setDynamicAttribute(a0,*a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(a1,sipType_KSharedPtr_0100KTextEditor_Attribute,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const KTextEditor::Attribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KTextEditor_Attribute, &sipCpp))
        {
            KTextEditor::Attribute::Effects*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new KTextEditor::Attribute::Effects(sipCpp->effects());
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    {
        KTextEditor::Attribute::Effects* a0;
        int a0State = 0;
        KTextEditor::Attribute *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KTextEditor_Attribute, &sipCpp, sipType_KTextEditor_Attribute_Effects, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->setEffects(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KTextEditor_Attribute_Effects,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


extern "C" {static PyObject *slot_KTextEditor_Attribute___iadd__(PyObject *,PyObject *);}
static PyObject *slot_KTextEditor_Attribute___iadd__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_KTextEditor_Attribute)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    KTextEditor::Attribute *sipCpp = reinterpret_cast<KTextEditor::Attribute *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_KTextEditor_Attribute));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const KTextEditor::Attribute* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_KTextEditor_Attribute, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->KTextEditor::Attribute::operator+=(*a0);
            Py_END_ALLOW_THREADS

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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

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


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const KTextEditor::Attribute* a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


/* Define this type's Python slots. */
static sipPySlotDef slots_KTextEditor_Attribute[] = {
    {(void *)slot_KTextEditor_Attribute___iadd__, iadd_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_KTextEditor_Attribute[] = {
    {SIP_MLNAME_CAST(sipName_associatedActions), meth_KTextEditor_Attribute_associatedActions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_backgroundFillWhitespace), meth_KTextEditor_Attribute_backgroundFillWhitespace, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clear), meth_KTextEditor_Attribute_clear, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_clearAssociatedActions), meth_KTextEditor_Attribute_clearAssociatedActions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_dynamicAttribute), meth_KTextEditor_Attribute_dynamicAttribute, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_effects), meth_KTextEditor_Attribute_effects, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_fontBold), meth_KTextEditor_Attribute_fontBold, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_hasAnyProperty), meth_KTextEditor_Attribute_hasAnyProperty, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_outline), meth_KTextEditor_Attribute_outline, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_selectedBackground), meth_KTextEditor_Attribute_selectedBackground, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_selectedForeground), meth_KTextEditor_Attribute_selectedForeground, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setBackgroundFillWhitespace), meth_KTextEditor_Attribute_setBackgroundFillWhitespace, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setDynamicAttribute), meth_KTextEditor_Attribute_setDynamicAttribute, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setEffects), meth_KTextEditor_Attribute_setEffects, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setFontBold), meth_KTextEditor_Attribute_setFontBold, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setOutline), meth_KTextEditor_Attribute_setOutline, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSelectedBackground), meth_KTextEditor_Attribute_setSelectedBackground, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setSelectedForeground), meth_KTextEditor_Attribute_setSelectedForeground, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KTextEditor_Attribute[] = {
    {sipName_ActivateCaretIn, static_cast<int>(KTextEditor::Attribute::ActivateCaretIn), 6},
    {sipName_ActivateMouseIn, static_cast<int>(KTextEditor::Attribute::ActivateMouseIn), 6},
    {sipName_AttributeDynamicEffect, static_cast<int>(KTextEditor::Attribute::AttributeDynamicEffect), 7},
    {sipName_AttributeInternalProperty, static_cast<int>(KTextEditor::Attribute::AttributeInternalProperty), 7},
    {sipName_AttributeUserProperty, static_cast<int>(KTextEditor::Attribute::AttributeUserProperty), 7},
    {sipName_BackgroundFillWhitespace, static_cast<int>(KTextEditor::Attribute::BackgroundFillWhitespace), 7},
    {sipName_EffectCycleGradient, static_cast<int>(KTextEditor::Attribute::EffectCycleGradient), 8},
    {sipName_EffectFadeIn, static_cast<int>(KTextEditor::Attribute::EffectFadeIn), 8},
    {sipName_EffectFadeOut, static_cast<int>(KTextEditor::Attribute::EffectFadeOut), 8},
    {sipName_EffectNone, static_cast<int>(KTextEditor::Attribute::EffectNone), 8},
    {sipName_EffectPulse, static_cast<int>(KTextEditor::Attribute::EffectPulse), 8},
    {sipName_Outline, static_cast<int>(KTextEditor::Attribute::Outline), 7},
    {sipName_SelectedBackground, static_cast<int>(KTextEditor::Attribute::SelectedBackground), 7},
    {sipName_SelectedForeground, static_cast<int>(KTextEditor::Attribute::SelectedForeground), 7},
};


pyqt4ClassTypeDef sipTypeDef_ktexteditor_KTextEditor_Attribute = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__Attribute,
        {0}
    },
    {
        sipNameNr_Attribute,
        {1, 255, 0},
        18, methods_KTextEditor_Attribute,
        14, enummembers_KTextEditor_Attribute,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KTextEditor_Attribute,
    slots_KTextEditor_Attribute,
    init_type_KTextEditor_Attribute,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_Attribute,
    assign_KTextEditor_Attribute,
    array_KTextEditor_Attribute,
    copy_KTextEditor_Attribute,
    release_KTextEditor_Attribute,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 56 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/annotationinterface.sip"
#include <ktexteditor/annotationinterface.h>
#line 846 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"

#line 30 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/view.sip"
#include <ktexteditor/view.h>

#include <ktexteditor/codecompletioninterface.h>
#include <ktexteditor/sessionconfiginterface.h>
#include <ktexteditor/texthintinterface.h>
#include <ktexteditor/annotationinterface.h>
#include <ktexteditor/configinterface.h>
#include <ktexteditor/templateinterface.h>
#include <ktexteditor/templateinterface2.h>
#line 858 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtGui/qmenu.sip"
#include <qmenu.h>
#line 861 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/annotationinterface.sip"
#include <ktexteditor/annotationinterface.h>
#line 864 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"


class sipKTextEditor_AnnotationViewInterface : public KTextEditor::AnnotationViewInterface
{
public:
    sipKTextEditor_AnnotationViewInterface();
    sipKTextEditor_AnnotationViewInterface(const KTextEditor::AnnotationViewInterface&);
    virtual ~sipKTextEditor_AnnotationViewInterface();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    KTextEditor::AnnotationModel* annotationModel() const;
    void setAnnotationModel(KTextEditor::AnnotationModel*);
    void annotationBorderVisibilityChanged(KTextEditor::View*,bool);
    void annotationActivated(KTextEditor::View*,int);
    void annotationContextMenuAboutToShow(KTextEditor::View*,QMenu*,int);
    bool isAnnotationBorderVisible() const;
    void setAnnotationBorderVisible(bool);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[7];
};

sipKTextEditor_AnnotationViewInterface::sipKTextEditor_AnnotationViewInterface(): KTextEditor::AnnotationViewInterface(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

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

KTextEditor::AnnotationModel* sipKTextEditor_AnnotationViewInterface::annotationModel() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return 0;

    extern KTextEditor::AnnotationModel* sipVH_ktexteditor_113(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

void sipKTextEditor_AnnotationViewInterface::setAnnotationModel(KTextEditor::AnnotationModel*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,sipName_AnnotationViewInterface,sipName_setAnnotationModel);

    if (!sipMeth)
        return;

    extern void sipVH_ktexteditor_114(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KTextEditor::AnnotationModel*);

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

void sipKTextEditor_AnnotationViewInterface::annotationBorderVisibilityChanged(KTextEditor::View*a0,bool a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,sipName_AnnotationViewInterface,sipName_annotationBorderVisibilityChanged);

    if (!sipMeth)
        return;

    extern void sipVH_ktexteditor_110(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KTextEditor::View*,bool);

    sipVH_ktexteditor_110(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

void sipKTextEditor_AnnotationViewInterface::annotationActivated(KTextEditor::View*a0,int a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,sipName_AnnotationViewInterface,sipName_annotationActivated);

    if (!sipMeth)
        return;

    extern void sipVH_ktexteditor_111(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KTextEditor::View*,int);

    sipVH_ktexteditor_111(sipGILState, 0, sipPySelf, sipMeth, a0, a1);
}

void sipKTextEditor_AnnotationViewInterface::annotationContextMenuAboutToShow(KTextEditor::View*a0,QMenu*a1,int a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,sipName_AnnotationViewInterface,sipName_annotationContextMenuAboutToShow);

    if (!sipMeth)
        return;

    extern void sipVH_ktexteditor_112(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KTextEditor::View*,QMenu*,int);

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

bool sipKTextEditor_AnnotationViewInterface::isAnnotationBorderVisible() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return 0;

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

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

void sipKTextEditor_AnnotationViewInterface::setAnnotationBorderVisible(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,sipName_AnnotationViewInterface,sipName_setAnnotationBorderVisible);

    if (!sipMeth)
        return;

    typedef void (*sipVH_QtNetwork_1)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    ((sipVH_QtNetwork_1)(sipModuleAPI_ktexteditor_QtNetwork->em_virthandlers[1]))(sipGILState, 0, sipPySelf, sipMeth, a0);
}


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

    {
        bool a0;
        KTextEditor::AnnotationViewInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KTextEditor_AnnotationViewInterface, &sipCpp, &a0))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_AnnotationViewInterface, sipName_setAnnotationBorderVisible);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAnnotationBorderVisible(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_AnnotationViewInterface, sipName_setAnnotationBorderVisible, NULL);

    return NULL;
}


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

    {
        const KTextEditor::AnnotationViewInterface *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_AnnotationViewInterface, sipName_isAnnotationBorderVisible);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->isAnnotationBorderVisible();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        KTextEditor::View* a0;
        QMenu* a1;
        int a2;
        KTextEditor::AnnotationViewInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J8i", &sipSelf, sipType_KTextEditor_AnnotationViewInterface, &sipCpp, sipType_KTextEditor_View, &a0, sipType_QMenu, &a1, &a2))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_AnnotationViewInterface, sipName_annotationContextMenuAboutToShow);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->annotationContextMenuAboutToShow(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_AnnotationViewInterface, sipName_annotationContextMenuAboutToShow, NULL);

    return NULL;
}


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

    {
        KTextEditor::View* a0;
        int a1;
        KTextEditor::AnnotationViewInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8i", &sipSelf, sipType_KTextEditor_AnnotationViewInterface, &sipCpp, sipType_KTextEditor_View, &a0, &a1))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_AnnotationViewInterface, sipName_annotationActivated);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->annotationActivated(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_AnnotationViewInterface, sipName_annotationActivated, NULL);

    return NULL;
}


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

    {
        KTextEditor::View* a0;
        bool a1;
        KTextEditor::AnnotationViewInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8b", &sipSelf, sipType_KTextEditor_AnnotationViewInterface, &sipCpp, sipType_KTextEditor_View, &a0, &a1))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_AnnotationViewInterface, sipName_annotationBorderVisibilityChanged);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->annotationBorderVisibilityChanged(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_AnnotationViewInterface, sipName_annotationBorderVisibilityChanged, NULL);

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const KTextEditor::AnnotationViewInterface* a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_KTextEditor_AnnotationViewInterface[] = {
    {SIP_MLNAME_CAST(sipName_annotationActivated), meth_KTextEditor_AnnotationViewInterface_annotationActivated, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_annotationBorderVisibilityChanged), meth_KTextEditor_AnnotationViewInterface_annotationBorderVisibilityChanged, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_annotationContextMenuAboutToShow), meth_KTextEditor_AnnotationViewInterface_annotationContextMenuAboutToShow, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isAnnotationBorderVisible), meth_KTextEditor_AnnotationViewInterface_isAnnotationBorderVisible, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAnnotationBorderVisible), meth_KTextEditor_AnnotationViewInterface_setAnnotationBorderVisible, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_ktexteditor_KTextEditor_AnnotationViewInterface = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__AnnotationViewInterface,
        {0}
    },
    {
        sipNameNr_AnnotationViewInterface,
        {1, 255, 0},
        5, methods_KTextEditor_AnnotationViewInterface,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KTextEditor_AnnotationViewInterface,
    0,
    init_type_KTextEditor_AnnotationViewInterface,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_AnnotationViewInterface,
    0,
    0,
    0,
    release_KTextEditor_AnnotationViewInterface,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 38 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/annotationinterface.sip"
#include <ktexteditor/annotationinterface.h>
#line 1325 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/annotationinterface.sip"
#include <ktexteditor/annotationinterface.h>
#line 1329 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"


class sipKTextEditor_AnnotationInterface : public KTextEditor::AnnotationInterface
{
public:
    sipKTextEditor_AnnotationInterface();
    sipKTextEditor_AnnotationInterface(const KTextEditor::AnnotationInterface&);
    virtual ~sipKTextEditor_AnnotationInterface();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    KTextEditor::AnnotationModel* annotationModel() const;
    void setAnnotationModel(KTextEditor::AnnotationModel*);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[2];
};

sipKTextEditor_AnnotationInterface::sipKTextEditor_AnnotationInterface(): KTextEditor::AnnotationInterface(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

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

KTextEditor::AnnotationModel* sipKTextEditor_AnnotationInterface::annotationModel() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return 0;

    extern KTextEditor::AnnotationModel* sipVH_ktexteditor_113(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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

void sipKTextEditor_AnnotationInterface::setAnnotationModel(KTextEditor::AnnotationModel*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,sipName_AnnotationInterface,sipName_setAnnotationModel);

    if (!sipMeth)
        return;

    extern void sipVH_ktexteditor_114(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, KTextEditor::AnnotationModel*);

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


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

    {
        KTextEditor::AnnotationModel* a0;
        KTextEditor::AnnotationInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KTextEditor_AnnotationInterface, &sipCpp, sipType_KTextEditor_AnnotationModel, &a0))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_AnnotationInterface, sipName_setAnnotationModel);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipCpp->setAnnotationModel(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_AnnotationInterface, sipName_setAnnotationModel, NULL);

    return NULL;
}


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

    {
        const KTextEditor::AnnotationInterface *sipCpp;

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

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_AnnotationInterface, sipName_annotationModel);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->annotationModel();
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

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

    Py_END_ALLOW_THREADS
}


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

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


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const KTextEditor::AnnotationInterface* a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_KTextEditor_AnnotationInterface[] = {
    {SIP_MLNAME_CAST(sipName_annotationModel), meth_KTextEditor_AnnotationInterface_annotationModel, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setAnnotationModel), meth_KTextEditor_AnnotationInterface_setAnnotationModel, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_ktexteditor_KTextEditor_AnnotationInterface = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__AnnotationInterface,
        {0}
    },
    {
        sipNameNr_AnnotationInterface,
        {1, 255, 0},
        2, methods_KTextEditor_AnnotationInterface,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt4_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_KTextEditor_AnnotationInterface,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_AnnotationInterface,
    0,
    0,
    0,
    release_KTextEditor_AnnotationInterface,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};

#line 25 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/annotationinterface.sip"
#include <ktexteditor/annotationinterface.h>
#line 1597 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"

#line 269 "/usr/share/python3-sip/PyQt4/QtCore/qvariant.sip"
#include <qvariant.h>
#line 1601 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 1604 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1607 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 368 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1610 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 351 "/usr/share/python3-sip/PyQt4/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 1613 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 1616 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 28 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1619 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 32 "/usr/share/python3-sip/PyQt4/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 1622 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 115 "/usr/share/python3-sip/PyQt4/QtCore/qlist.sip"
#include <qlist.h>
#line 1625 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qthread.sip"
#include <qthread.h>
#line 1628 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 31 "/usr/share/python3-sip/PyQt4/QtCore/qstring.sip"
#include <qstring.h>
#line 1631 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 30 "/usr/share/python3-sip/PyQt4/QtCore/qregexp.sip"
#include <qregexp.h>
#line 1634 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 26 "/usr/share/python3-sip/PyQt4/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 1637 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"


class sipKTextEditor_AnnotationModel : public KTextEditor::AnnotationModel
{
public:
    sipKTextEditor_AnnotationModel();
    virtual ~sipKTextEditor_AnnotationModel();

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

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const char*);
    void connectNotify(const char*);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    QVariant data(int,Qt::ItemDataRole) const;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[8];
};

sipKTextEditor_AnnotationModel::sipKTextEditor_AnnotationModel(): KTextEditor::AnnotationModel(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipKTextEditor_AnnotationModel::metaObject() const
{
    return sip_ktexteditor_qt_metaobject(sipPySelf,sipType_KTextEditor_AnnotationModel);
}

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

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

    return _id;
}

void *sipKTextEditor_AnnotationModel::qt_metacast(const char *_clname)
{
    return (sip_ktexteditor_qt_metacast(sipPySelf, sipType_KTextEditor_AnnotationModel, _clname)) ? this : KTextEditor::AnnotationModel::qt_metacast(_clname);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

QVariant sipKTextEditor_AnnotationModel::data(int a0,Qt::ItemDataRole a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return QVariant();

    extern QVariant sipVH_ktexteditor_115(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,Qt::ItemDataRole);

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


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

    {
        int a0;
        Qt::ItemDataRole a1;
        const KTextEditor::AnnotationModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiE", &sipSelf, sipType_KTextEditor_AnnotationModel, &sipCpp, &a0, sipType_Qt_ItemDataRole, &a1))
        {
            QVariant*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_AnnotationModel, sipName_data);
                return NULL;
            }

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVariant(sipCpp->data(a0,a1));
            Py_END_ALLOW_THREADS

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

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

    return NULL;
}


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

    Py_BEGIN_ALLOW_THREADS

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

    Py_END_ALLOW_THREADS
}


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

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


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_KTextEditor_AnnotationModel[] = {
    {SIP_MLNAME_CAST(sipName_data), meth_KTextEditor_AnnotationModel_data, METH_VARARGS, NULL}
};


/* Define this type's signals. */
static const pyqt4QtSignal signals_KTextEditor_AnnotationModel[] = {
    {"lineChanged(int)", 0, 0, 0},
    {"reset()", 0, 0, 0},
    {0, 0, 0, 0}
};


pyqt4ClassTypeDef sipTypeDef_ktexteditor_KTextEditor_AnnotationModel = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_KTextEditor__AnnotationModel,
        {0}
    },
    {
        sipNameNr_AnnotationModel,
        {1, 255, 0},
        1, methods_KTextEditor_AnnotationModel,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KTextEditor_AnnotationModel,
    0,
    init_type_KTextEditor_AnnotationModel,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KTextEditor_AnnotationModel,
    0,
    0,
    0,
    release_KTextEditor_AnnotationModel,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    &KTextEditor::AnnotationModel::staticMetaObject,
    0,
    signals_KTextEditor_AnnotationModel,
};


#line 34 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/editor.sip"
#include <ktexteditor/editor.h>
#include <ktexteditor/commandinterface.h>
#include <ktexteditor/containerinterface.h>
#line 2003 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 30 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/ktexteditor/plugin.sip"
#include <ktexteditor/plugin.h>
#line 2006 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 340 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 2009 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 27 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/src/pykde4-4.14.3/sip/kdecore/kservice.sip"
#include <kservice.h>
#line 2012 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 29 "/usr/share/python3-sip/PyQt4/QtCore/qobject.sip"
#include <qobject.h>
#line 2015 "/usr/src/ports/python3-pykde4/python3-pykde4-4.14.3-3.i686/build/sip/ktexteditor/sipktexteditorpart7.cpp"


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

    {
        KService::Ptr* a0;
        int a0State = 0;
        QObject* a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J:", sipType_KSharedPtr_0100KService,&a0, &a0State, sipType_QObject, &a1))
        {
            KTextEditor::Plugin*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KTextEditor::createPlugin(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_KSharedPtr_0100KService,a0State);

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

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

    return NULL;
}


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

    {
        const char* a0;
        PyObject *a0Keep;

        if (sipParseArgs(&sipParseErr, sipArgs, "AA", &a0Keep, &a0))
        {
            KTextEditor::Editor*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = KTextEditor::editor(a0);
            Py_END_ALLOW_THREADS
            Py_DECREF(a0Keep);

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

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

    return NULL;
}


static PyMethodDef methods_KTextEditor[] = {
    {SIP_MLNAME_CAST(sipName_createPlugin), meth_KTextEditor_createPlugin, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_editor), meth_KTextEditor_editor, METH_VARARGS, NULL}
};


pyqt4ClassTypeDef sipTypeDef_ktexteditor_KTextEditor = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NAMESPACE,
        sipNameNr_KTextEditor,
        {0}
    },
    {
        sipNameNr_KTextEditor,
        {0, 0, 1},
        2, methods_KTextEditor,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0
};
