/*
 * 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 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/attribute.sip"
#include <ktexteditor/attribute.h>
#line 29 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart7.cpp"

#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/attribute.sip"
#include <ktexteditor/attribute.h>
#line 33 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 340 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 36 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 120 "/usr/local/share/py-sip/QtCore/qlist.sip"
#include <qlist.h>
#line 39 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdeui/kaction.sip"
#include <kaction.h>
#line 42 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 45 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qfont.sip"
#include <qfont.h>
#line 48 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 51 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 36 "/usr/local/share/py-sip/QtCore/qstring.sip"
#include <qstring.h>
#line 54 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 304 "/usr/local/share/py-sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 57 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qpen.sip"
#include <qpen.h>
#line 60 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 63 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 648 "/usr/local/share/py-sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 66 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 69 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 65 "/usr/local/share/py-sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 72 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 505 "/usr/local/share/py-sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 75 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 522 "/usr/local/share/py-sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 78 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 615 "/usr/local/share/py-sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 81 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 473 "/usr/local/share/py-sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 84 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 434 "/usr/local/share/py-sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 87 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 144 "/usr/local/share/py-sip/QtCore/qmap.sip"
#include <qmap.h>
#line 90 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 35 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 93 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 238 "/usr/local/share/py-sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 96 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 33 "/usr/local/share/py-sip/QtCore/qvector.sip"
#include <qvector.h>
#line 99 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 35 "/usr/local/share/py-sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 102 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart7.cpp"


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

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;

    {
        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;
        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;

    {
        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;
}


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

    if (targetType == sipType_KTextEditor_Attribute)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QTextCharFormat)->ctd_cast((QTextCharFormat *)(KTextEditor::Attribute *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


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

    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 (sipIsPyOwned(sipSelf))
    {
        release_KTextEditor_Attribute(sipGetAddress(sipSelf),0);
    }
}


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

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

            return sipCpp;
        }
    }

    {
        const KTextEditor::Attribute * a0;

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

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KTextEditor_Attribute[] = {{645, 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, KTextEditor::Attribute::ActivateCaretIn, 3},
    {sipName_ActivateMouseIn, KTextEditor::Attribute::ActivateMouseIn, 3},
    {sipName_AttributeDynamicEffect, KTextEditor::Attribute::AttributeDynamicEffect, 4},
    {sipName_AttributeInternalProperty, KTextEditor::Attribute::AttributeInternalProperty, 4},
    {sipName_AttributeUserProperty, KTextEditor::Attribute::AttributeUserProperty, 4},
    {sipName_BackgroundFillWhitespace, KTextEditor::Attribute::BackgroundFillWhitespace, 4},
    {sipName_EffectCycleGradient, KTextEditor::Attribute::EffectCycleGradient, 5},
    {sipName_EffectFadeIn, KTextEditor::Attribute::EffectFadeIn, 5},
    {sipName_EffectFadeOut, KTextEditor::Attribute::EffectFadeOut, 5},
    {sipName_EffectNone, KTextEditor::Attribute::EffectNone, 5},
    {sipName_EffectPulse, KTextEditor::Attribute::EffectPulse, 5},
    {sipName_Outline, KTextEditor::Attribute::Outline, 4},
    {sipName_SelectedBackground, KTextEditor::Attribute::SelectedBackground, 4},
    {sipName_SelectedForeground, KTextEditor::Attribute::SelectedForeground, 4},
};


pyqt4ClassTypeDef sipTypeDef_ktexteditor_KTextEditor_Attribute = {
{
    {
        -1,
        0,
        0,
        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_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,
    cast_KTextEditor_Attribute,
    0,
    0,
    0
},
    0,
    0,
    0
};


#line 34 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/editor.sip"
#include <ktexteditor/editor.h>
#line 838 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 30 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/plugin.sip"
#include <ktexteditor/plugin.h>
#line 841 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 340 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/typedefs.sip"
#include <ksharedptr.h>
#line 844 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 27 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/kdecore/kservice.sip"
#include <kservice.h>
#line 847 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/sip/ktexteditor/sipktexteditorpart7.cpp"
#line 34 "/usr/local/share/py-sip/QtCore/qobject.sip"
#include <qobject.h>
#line 850 "/work/a/ports/devel/kdebindings4-python-pykde4/work/pykde4-4.7.3/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, "J1J8", 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
};
