//Auto-generated by /usr/bin/smokegen. DO NOT EDIT.
#include <kdeui_includes.h>
#include <typeinfo>

#include <smoke.h>
#include <kdeui_smoke.h>

class __internal_SmokeClass {};

namespace __smokekdeui {

class x_KPageWidgetModel : public KPageWidgetModel, public __internal_SmokeClass {
    SmokeBinding* _binding;
public:
    void x_0(Smoke::Stack x) {
        // set the smoke binding
        _binding = (SmokeBinding*)x[1].s_class;
    }
    void x_1(Smoke::Stack x) {
        // virtual const QMetaObject* metaObject() const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KPageWidgetModel*>(this))) {
            const QMetaObject* xret = ((const x_KPageWidgetModel*)this)->KPageWidgetModel::metaObject();
            x[0].s_class = (void*)xret;
        } else {
            const QMetaObject* xret = ((const x_KPageWidgetModel*)this)->metaObject();
            x[0].s_class = (void*)xret;
        }
    }
    void x_2(Smoke::Stack x) {
        // virtual void* qt_metacast(const char*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KPageWidgetModel*>(this))) {
            void* xret = this->KPageWidgetModel::qt_metacast((const char*)x[1].s_class);
            x[0].s_class = (void*)xret;
        } else {
            void* xret = this->qt_metacast((const char*)x[1].s_class);
            x[0].s_class = (void*)xret;
        }
    }
    static void x_3(Smoke::Stack x) {
        // static QString tr(const char*, const char*)
        QString xret = KPageWidgetModel::tr((const char*)x[1].s_class,(const char*)x[2].s_class);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_4(Smoke::Stack x) {
        // static QString trUtf8(const char*, const char*)
        QString xret = KPageWidgetModel::trUtf8((const char*)x[1].s_class,(const char*)x[2].s_class);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_5(Smoke::Stack x) {
        // static QString tr(const char*, const char*, int)
        QString xret = KPageWidgetModel::tr((const char*)x[1].s_class,(const char*)x[2].s_class,(int)x[3].s_int);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_6(Smoke::Stack x) {
        // static QString trUtf8(const char*, const char*, int)
        QString xret = KPageWidgetModel::trUtf8((const char*)x[1].s_class,(const char*)x[2].s_class,(int)x[3].s_int);
        x[0].s_class = (void*)new QString(xret);
    }
    void x_7(Smoke::Stack x) {
        // virtual int qt_metacall(QMetaObject::Call, int, void**)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KPageWidgetModel*>(this))) {
            int xret = this->KPageWidgetModel::qt_metacall((QMetaObject::Call)x[1].s_enum,(int)x[2].s_int,(void**)x[3].s_class);
            x[0].s_int = xret;
        } else {
            int xret = this->qt_metacall((QMetaObject::Call)x[1].s_enum,(int)x[2].s_int,(void**)x[3].s_class);
            x[0].s_int = xret;
        }
    }
    static void x_8(Smoke::Stack x) {
        // KPageWidgetModel* KPageWidgetModel(QObject*)
        x_KPageWidgetModel* xret = new x_KPageWidgetModel((QObject*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_KPageWidgetModel(QObject* x1) : KPageWidgetModel(x1) {}
    void x_9(Smoke::Stack x) {
        // KPageWidgetItem* addPage(QWidget*, const QString&)
        KPageWidgetItem* xret = this->KPageWidgetModel::addPage((QWidget*)x[1].s_class,*(const QString*)x[2].s_class);
        x[0].s_class = (void*)xret;
    }
    void x_10(Smoke::Stack x) {
        // void addPage(KPageWidgetItem*)
        this->KPageWidgetModel::addPage((KPageWidgetItem*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_11(Smoke::Stack x) {
        // KPageWidgetItem* insertPage(KPageWidgetItem*, QWidget*, const QString&)
        KPageWidgetItem* xret = this->KPageWidgetModel::insertPage((KPageWidgetItem*)x[1].s_class,(QWidget*)x[2].s_class,*(const QString*)x[3].s_class);
        x[0].s_class = (void*)xret;
    }
    void x_12(Smoke::Stack x) {
        // void insertPage(KPageWidgetItem*, KPageWidgetItem*)
        this->KPageWidgetModel::insertPage((KPageWidgetItem*)x[1].s_class,(KPageWidgetItem*)x[2].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_13(Smoke::Stack x) {
        // KPageWidgetItem* addSubPage(KPageWidgetItem*, QWidget*, const QString&)
        KPageWidgetItem* xret = this->KPageWidgetModel::addSubPage((KPageWidgetItem*)x[1].s_class,(QWidget*)x[2].s_class,*(const QString*)x[3].s_class);
        x[0].s_class = (void*)xret;
    }
    void x_14(Smoke::Stack x) {
        // void addSubPage(KPageWidgetItem*, KPageWidgetItem*)
        this->KPageWidgetModel::addSubPage((KPageWidgetItem*)x[1].s_class,(KPageWidgetItem*)x[2].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_15(Smoke::Stack x) {
        // void removePage(KPageWidgetItem*)
        this->KPageWidgetModel::removePage((KPageWidgetItem*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_16(Smoke::Stack x) {
        // virtual int columnCount(const QModelIndex&) const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KPageWidgetModel*>(this))) {
            int xret = ((const x_KPageWidgetModel*)this)->KPageWidgetModel::columnCount(*(const QModelIndex*)x[1].s_class);
            x[0].s_int = xret;
        } else {
            int xret = ((const x_KPageWidgetModel*)this)->columnCount(*(const QModelIndex*)x[1].s_class);
            x[0].s_int = xret;
        }
    }
    void x_17(Smoke::Stack x) {
        // virtual QVariant data(const QModelIndex&, int) const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KPageWidgetModel*>(this))) {
            QVariant xret = ((const x_KPageWidgetModel*)this)->KPageWidgetModel::data(*(const QModelIndex*)x[1].s_class,(int)x[2].s_int);
            x[0].s_class = (void*)new QVariant(xret);
        } else {
            QVariant xret = ((const x_KPageWidgetModel*)this)->data(*(const QModelIndex*)x[1].s_class,(int)x[2].s_int);
            x[0].s_class = (void*)new QVariant(xret);
        }
    }
    void x_18(Smoke::Stack x) {
        // virtual bool setData(const QModelIndex&, const QVariant&, int)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KPageWidgetModel*>(this))) {
            bool xret = this->KPageWidgetModel::setData(*(const QModelIndex*)x[1].s_class,*(const QVariant*)x[2].s_class,(int)x[3].s_int);
            x[0].s_bool = xret;
        } else {
            bool xret = this->setData(*(const QModelIndex*)x[1].s_class,*(const QVariant*)x[2].s_class,(int)x[3].s_int);
            x[0].s_bool = xret;
        }
    }
    void x_19(Smoke::Stack x) {
        // virtual QFlags<Qt::ItemFlag> flags(const QModelIndex&) const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KPageWidgetModel*>(this))) {
            QFlags<Qt::ItemFlag> xret = ((const x_KPageWidgetModel*)this)->KPageWidgetModel::flags(*(const QModelIndex*)x[1].s_class);
            x[0].s_uint = (uint)xret;
        } else {
            QFlags<Qt::ItemFlag> xret = ((const x_KPageWidgetModel*)this)->flags(*(const QModelIndex*)x[1].s_class);
            x[0].s_uint = (uint)xret;
        }
    }
    void x_20(Smoke::Stack x) {
        // virtual QModelIndex index(int, int, const QModelIndex&) const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KPageWidgetModel*>(this))) {
            QModelIndex xret = ((const x_KPageWidgetModel*)this)->KPageWidgetModel::index((int)x[1].s_int,(int)x[2].s_int,*(const QModelIndex*)x[3].s_class);
            x[0].s_class = (void*)new QModelIndex(xret);
        } else {
            QModelIndex xret = ((const x_KPageWidgetModel*)this)->index((int)x[1].s_int,(int)x[2].s_int,*(const QModelIndex*)x[3].s_class);
            x[0].s_class = (void*)new QModelIndex(xret);
        }
    }
    void x_21(Smoke::Stack x) {
        // virtual QModelIndex parent(const QModelIndex&) const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KPageWidgetModel*>(this))) {
            QModelIndex xret = ((const x_KPageWidgetModel*)this)->KPageWidgetModel::parent(*(const QModelIndex*)x[1].s_class);
            x[0].s_class = (void*)new QModelIndex(xret);
        } else {
            QModelIndex xret = ((const x_KPageWidgetModel*)this)->parent(*(const QModelIndex*)x[1].s_class);
            x[0].s_class = (void*)new QModelIndex(xret);
        }
    }
    void x_22(Smoke::Stack x) {
        // virtual int rowCount(const QModelIndex&) const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KPageWidgetModel*>(this))) {
            int xret = ((const x_KPageWidgetModel*)this)->KPageWidgetModel::rowCount(*(const QModelIndex*)x[1].s_class);
            x[0].s_int = xret;
        } else {
            int xret = ((const x_KPageWidgetModel*)this)->rowCount(*(const QModelIndex*)x[1].s_class);
            x[0].s_int = xret;
        }
    }
    void x_23(Smoke::Stack x) {
        // KPageWidgetItem* item(const QModelIndex&) const
        KPageWidgetItem* xret = ((const x_KPageWidgetModel*)this)->KPageWidgetModel::item(*(const QModelIndex*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    void x_24(Smoke::Stack x) {
        // QModelIndex index(const KPageWidgetItem*) const
        QModelIndex xret = ((const x_KPageWidgetModel*)this)->KPageWidgetModel::index((const KPageWidgetItem*)x[1].s_class);
        x[0].s_class = (void*)new QModelIndex(xret);
    }
    void x_25(Smoke::Stack x) {
        // void toggled(KPageWidgetItem*, bool)
        this->KPageWidgetModel::toggled((KPageWidgetItem*)x[1].s_class,(bool)x[2].s_bool);
        (void)x; // noop (for compiler warning)
    }
    static void x_26(Smoke::Stack x) {
        // static QString tr(const char*)
        QString xret = KPageWidgetModel::tr((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_27(Smoke::Stack x) {
        // static QString trUtf8(const char*)
        QString xret = KPageWidgetModel::trUtf8((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_28(Smoke::Stack x) {
        // KPageWidgetModel* KPageWidgetModel()
        x_KPageWidgetModel* xret = new x_KPageWidgetModel((QObject*)0);
        x[0].s_class = (void*)xret;
    }
    void x_29(Smoke::Stack x) {
        // int columnCount() const
        int xret = ((const x_KPageWidgetModel*)this)->KPageWidgetModel::columnCount((const QModelIndex&)QModelIndex());
        x[0].s_int = xret;
    }
    void x_30(Smoke::Stack x) {
        // QVariant data(const QModelIndex&) const
        QVariant xret = ((const x_KPageWidgetModel*)this)->KPageWidgetModel::data(*(const QModelIndex*)x[1].s_class,(int)Qt::DisplayRole);
        x[0].s_class = (void*)new QVariant(xret);
    }
    void x_31(Smoke::Stack x) {
        // bool setData(const QModelIndex&, const QVariant&)
        bool xret = this->KPageWidgetModel::setData(*(const QModelIndex*)x[1].s_class,*(const QVariant*)x[2].s_class,(int)Qt::EditRole);
        x[0].s_bool = xret;
    }
    void x_32(Smoke::Stack x) {
        // QModelIndex index(int, int) const
        QModelIndex xret = ((const x_KPageWidgetModel*)this)->KPageWidgetModel::index((int)x[1].s_int,(int)x[2].s_int,(const QModelIndex&)QModelIndex());
        x[0].s_class = (void*)new QModelIndex(xret);
    }
    void x_33(Smoke::Stack x) {
        // int rowCount() const
        int xret = ((const x_KPageWidgetModel*)this)->KPageWidgetModel::rowCount((const QModelIndex&)QModelIndex());
        x[0].s_int = xret;
    }
    static void x_34(Smoke::Stack x) {
        // static const QMetaObject staticMetaObject
        x[0].s_class = (void*)&KPageWidgetModel::staticMetaObject;
    }
    virtual const QMetaObject* metaObject() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(3756, (void*)this, x)) return (const QMetaObject*)x[0].s_class;
        return this->KPageWidgetModel::metaObject();
    }
    virtual void* qt_metacast(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(3757, (void*)this, x)) return (void*)x[0].s_class;
        return this->KPageWidgetModel::qt_metacast(x1);
    }
    virtual int qt_metacall(QMetaObject::Call x1, int x2, void** x3) {
        Smoke::StackItem x[4];
        x[1].s_enum = x1;
        x[2].s_int = x2;
        x[3].s_class = (void*)x3;
        if (this->_binding->callMethod(3762, (void*)this, x)) return (int)x[0].s_int;
        return this->KPageWidgetModel::qt_metacall(x1, x2, x3);
    }
    virtual int columnCount(const QModelIndex& x1) const {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(3771, (void*)this, x)) return (int)x[0].s_int;
        return this->KPageWidgetModel::columnCount(x1);
    }
    virtual QVariant data(const QModelIndex& x1, int x2) const {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)&x1;
        x[2].s_int = x2;
        if (this->_binding->callMethod(3772, (void*)this, x)) {
            QVariant* xptr = (QVariant*)x[0].s_class;
            QVariant xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->KPageWidgetModel::data(x1, x2);
    }
    virtual bool setData(const QModelIndex& x1, const QVariant& x2, int x3) {
        Smoke::StackItem x[4];
        x[1].s_class = (void*)&x1;
        x[2].s_class = (void*)&x2;
        x[3].s_int = x3;
        if (this->_binding->callMethod(3773, (void*)this, x)) return (bool)x[0].s_bool;
        return this->KPageWidgetModel::setData(x1, x2, x3);
    }
    virtual QFlags<Qt::ItemFlag> flags(const QModelIndex& x1) const {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(3774, (void*)this, x)) return (QFlags<Qt::ItemFlag>)x[0].s_uint;
        return this->KPageWidgetModel::flags(x1);
    }
    virtual QModelIndex index(int x1, int x2, const QModelIndex& x3) const {
        Smoke::StackItem x[4];
        x[1].s_int = x1;
        x[2].s_int = x2;
        x[3].s_class = (void*)&x3;
        if (this->_binding->callMethod(3775, (void*)this, x)) {
            QModelIndex* xptr = (QModelIndex*)x[0].s_class;
            QModelIndex xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->KPageWidgetModel::index(x1, x2, x3);
    }
    virtual QModelIndex parent(const QModelIndex& x1) const {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(3776, (void*)this, x)) {
            QModelIndex* xptr = (QModelIndex*)x[0].s_class;
            QModelIndex xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->KPageWidgetModel::parent(x1);
    }
    virtual int rowCount(const QModelIndex& x1) const {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(3777, (void*)this, x)) return (int)x[0].s_int;
        return this->KPageWidgetModel::rowCount(x1);
    }
    virtual bool hasChildren(const QModelIndex& x1) const {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(7213, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QAbstractItemModel::hasChildren(x1);
    }
    virtual QVariant headerData(int x1, Qt::Orientation x2, int x3) const {
        Smoke::StackItem x[4];
        x[1].s_int = x1;
        x[2].s_enum = x2;
        x[3].s_int = x3;
        if (this->_binding->callMethod(7216, (void*)this, x)) {
            QVariant* xptr = (QVariant*)x[0].s_class;
            QVariant xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QAbstractItemModel::headerData(x1, x2, x3);
    }
    virtual bool setHeaderData(int x1, Qt::Orientation x2, const QVariant& x3, int x4) {
        Smoke::StackItem x[5];
        x[1].s_int = x1;
        x[2].s_enum = x2;
        x[3].s_class = (void*)&x3;
        x[4].s_int = x4;
        if (this->_binding->callMethod(7217, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QAbstractItemModel::setHeaderData(x1, x2, x3, x4);
    }
    virtual QMap<int,QVariant> itemData(const QModelIndex& x1) const {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(7218, (void*)this, x)) {
            QMap<int,QVariant>* xptr = (QMap<int,QVariant>*)x[0].s_class;
            QMap<int,QVariant> xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QAbstractItemModel::itemData(x1);
    }
    virtual bool setItemData(const QModelIndex& x1, const QMap<int,QVariant>& x2) {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)&x1;
        x[2].s_class = (void*)&x2;
        if (this->_binding->callMethod(7219, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QAbstractItemModel::setItemData(x1, x2);
    }
    virtual QStringList mimeTypes() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7220, (void*)this, x)) {
            QStringList* xptr = (QStringList*)x[0].s_class;
            QStringList xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QAbstractItemModel::mimeTypes();
    }
    virtual QMimeData* mimeData(const QList<QModelIndex>& x1) const {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(7221, (void*)this, x)) return (QMimeData*)x[0].s_class;
        return this->QAbstractItemModel::mimeData(x1);
    }
    virtual bool dropMimeData(const QMimeData* x1, Qt::DropAction x2, int x3, int x4, const QModelIndex& x5) {
        Smoke::StackItem x[6];
        x[1].s_class = (void*)x1;
        x[2].s_enum = x2;
        x[3].s_int = x3;
        x[4].s_int = x4;
        x[5].s_class = (void*)&x5;
        if (this->_binding->callMethod(7222, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QAbstractItemModel::dropMimeData(x1, x2, x3, x4, x5);
    }
    virtual QFlags<Qt::DropAction> supportedDropActions() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7223, (void*)this, x)) return (QFlags<Qt::DropAction>)x[0].s_uint;
        return this->QAbstractItemModel::supportedDropActions();
    }
    virtual bool insertRows(int x1, int x2, const QModelIndex& x3) {
        Smoke::StackItem x[4];
        x[1].s_int = x1;
        x[2].s_int = x2;
        x[3].s_class = (void*)&x3;
        if (this->_binding->callMethod(7224, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QAbstractItemModel::insertRows(x1, x2, x3);
    }
    virtual bool insertColumns(int x1, int x2, const QModelIndex& x3) {
        Smoke::StackItem x[4];
        x[1].s_int = x1;
        x[2].s_int = x2;
        x[3].s_class = (void*)&x3;
        if (this->_binding->callMethod(7225, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QAbstractItemModel::insertColumns(x1, x2, x3);
    }
    virtual bool removeRows(int x1, int x2, const QModelIndex& x3) {
        Smoke::StackItem x[4];
        x[1].s_int = x1;
        x[2].s_int = x2;
        x[3].s_class = (void*)&x3;
        if (this->_binding->callMethod(7226, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QAbstractItemModel::removeRows(x1, x2, x3);
    }
    virtual bool removeColumns(int x1, int x2, const QModelIndex& x3) {
        Smoke::StackItem x[4];
        x[1].s_int = x1;
        x[2].s_int = x2;
        x[3].s_class = (void*)&x3;
        if (this->_binding->callMethod(7227, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QAbstractItemModel::removeColumns(x1, x2, x3);
    }
    virtual void fetchMore(const QModelIndex& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(7228, (void*)this, x)) return;
        this->QAbstractItemModel::fetchMore(x1);
    }
    virtual bool canFetchMore(const QModelIndex& x1) const {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(7229, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QAbstractItemModel::canFetchMore(x1);
    }
    virtual void sort(int x1, Qt::SortOrder x2) {
        Smoke::StackItem x[3];
        x[1].s_int = x1;
        x[2].s_enum = x2;
        if (this->_binding->callMethod(7231, (void*)this, x)) return;
        this->QAbstractItemModel::sort(x1, x2);
    }
    virtual QModelIndex buddy(const QModelIndex& x1) const {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(7232, (void*)this, x)) {
            QModelIndex* xptr = (QModelIndex*)x[0].s_class;
            QModelIndex xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QAbstractItemModel::buddy(x1);
    }
    virtual QList<QModelIndex> match(const QModelIndex& x1, int x2, const QVariant& x3, int x4, QFlags<Qt::MatchFlag> x5) const {
        Smoke::StackItem x[6];
        x[1].s_class = (void*)&x1;
        x[2].s_int = x2;
        x[3].s_class = (void*)&x3;
        x[4].s_int = x4;
        x[5].s_uint = (uint)x5;
        if (this->_binding->callMethod(7233, (void*)this, x)) {
            QList<QModelIndex>* xptr = (QList<QModelIndex>*)x[0].s_class;
            QList<QModelIndex> xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QAbstractItemModel::match(x1, x2, x3, x4, x5);
    }
    virtual QSize span(const QModelIndex& x1) const {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(7234, (void*)this, x)) {
            QSize* xptr = (QSize*)x[0].s_class;
            QSize xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QAbstractItemModel::span(x1);
    }
    virtual bool submit() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7235, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QAbstractItemModel::submit();
    }
    virtual void revert() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7236, (void*)this, x)) return;
        this->QAbstractItemModel::revert();
    }
    virtual bool event(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7575, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QObject::event(x1);
    }
    virtual bool eventFilter(QObject* x1, QEvent* x2) {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)x1;
        x[2].s_class = (void*)x2;
        if (this->_binding->callMethod(7576, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QObject::eventFilter(x1, x2);
    }
    virtual void timerEvent(QTimerEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7577, (void*)this, x)) return;
        this->QObject::timerEvent(x1);
    }
    virtual void childEvent(QChildEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7578, (void*)this, x)) return;
        this->QObject::childEvent(x1);
    }
    virtual void customEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7579, (void*)this, x)) return;
        this->QObject::customEvent(x1);
    }
    virtual void connectNotify(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7580, (void*)this, x)) return;
        this->QObject::connectNotify(x1);
    }
    virtual void disconnectNotify(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7581, (void*)this, x)) return;
        this->QObject::disconnectNotify(x1);
    }
    ~x_KPageWidgetModel() { this->_binding->deleted(137, (void*)this); }
};
void xcall_KPageWidgetModel(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_KPageWidgetModel *xself = (x_KPageWidgetModel*)obj;
    switch(xi) {
        case 0: xself->x_0(args);	break;
        case 1: xself->x_1(args);	break;
        case 2: xself->x_2(args);	break;
        case 3: x_KPageWidgetModel::x_3(args);	break;
        case 4: x_KPageWidgetModel::x_4(args);	break;
        case 5: x_KPageWidgetModel::x_5(args);	break;
        case 6: x_KPageWidgetModel::x_6(args);	break;
        case 7: xself->x_7(args);	break;
        case 8: x_KPageWidgetModel::x_8(args);	break;
        case 9: xself->x_9(args);	break;
        case 10: xself->x_10(args);	break;
        case 11: xself->x_11(args);	break;
        case 12: xself->x_12(args);	break;
        case 13: xself->x_13(args);	break;
        case 14: xself->x_14(args);	break;
        case 15: xself->x_15(args);	break;
        case 16: xself->x_16(args);	break;
        case 17: xself->x_17(args);	break;
        case 18: xself->x_18(args);	break;
        case 19: xself->x_19(args);	break;
        case 20: xself->x_20(args);	break;
        case 21: xself->x_21(args);	break;
        case 22: xself->x_22(args);	break;
        case 23: xself->x_23(args);	break;
        case 24: xself->x_24(args);	break;
        case 25: xself->x_25(args);	break;
        case 26: x_KPageWidgetModel::x_26(args);	break;
        case 27: x_KPageWidgetModel::x_27(args);	break;
        case 28: x_KPageWidgetModel::x_28(args);	break;
        case 29: xself->x_29(args);	break;
        case 30: xself->x_30(args);	break;
        case 31: xself->x_31(args);	break;
        case 32: xself->x_32(args);	break;
        case 33: xself->x_33(args);	break;
        case 34: x_KPageWidgetModel::x_34(args);	break;
        case 35: delete (KPageWidgetModel*)xself;	break;
    }
}
class x_KPassivePopup : public KPassivePopup, public __internal_SmokeClass {
    SmokeBinding* _binding;
public:
    void x_0(Smoke::Stack x) {
        // set the smoke binding
        _binding = (SmokeBinding*)x[1].s_class;
    }
    void x_1(Smoke::Stack x) {
        // virtual const QMetaObject* metaObject() const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KPassivePopup*>(this))) {
            const QMetaObject* xret = ((const x_KPassivePopup*)this)->KPassivePopup::metaObject();
            x[0].s_class = (void*)xret;
        } else {
            const QMetaObject* xret = ((const x_KPassivePopup*)this)->metaObject();
            x[0].s_class = (void*)xret;
        }
    }
    void x_2(Smoke::Stack x) {
        // virtual void* qt_metacast(const char*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KPassivePopup*>(this))) {
            void* xret = this->KPassivePopup::qt_metacast((const char*)x[1].s_class);
            x[0].s_class = (void*)xret;
        } else {
            void* xret = this->qt_metacast((const char*)x[1].s_class);
            x[0].s_class = (void*)xret;
        }
    }
    static void x_3(Smoke::Stack x) {
        // static QString tr(const char*, const char*)
        QString xret = KPassivePopup::tr((const char*)x[1].s_class,(const char*)x[2].s_class);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_4(Smoke::Stack x) {
        // static QString trUtf8(const char*, const char*)
        QString xret = KPassivePopup::trUtf8((const char*)x[1].s_class,(const char*)x[2].s_class);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_5(Smoke::Stack x) {
        // static QString tr(const char*, const char*, int)
        QString xret = KPassivePopup::tr((const char*)x[1].s_class,(const char*)x[2].s_class,(int)x[3].s_int);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_6(Smoke::Stack x) {
        // static QString trUtf8(const char*, const char*, int)
        QString xret = KPassivePopup::trUtf8((const char*)x[1].s_class,(const char*)x[2].s_class,(int)x[3].s_int);
        x[0].s_class = (void*)new QString(xret);
    }
    void x_7(Smoke::Stack x) {
        // virtual int qt_metacall(QMetaObject::Call, int, void**)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KPassivePopup*>(this))) {
            int xret = this->KPassivePopup::qt_metacall((QMetaObject::Call)x[1].s_enum,(int)x[2].s_int,(void**)x[3].s_class);
            x[0].s_int = xret;
        } else {
            int xret = this->qt_metacall((QMetaObject::Call)x[1].s_enum,(int)x[2].s_int,(void**)x[3].s_class);
            x[0].s_int = xret;
        }
    }
    static void x_8(Smoke::Stack x) {
        // KPassivePopup* KPassivePopup(QWidget*, QFlags<Qt::WindowType>)
        x_KPassivePopup* xret = new x_KPassivePopup((QWidget*)x[1].s_class,(QFlags<Qt::WindowType>)x[2].s_uint);
        x[0].s_class = (void*)xret;
    }
    explicit x_KPassivePopup(QWidget* x1, QFlags<Qt::WindowType> x2) : KPassivePopup(x1, x2) {}
    static void x_9(Smoke::Stack x) {
        // KPassivePopup* KPassivePopup(unsigned long)
        x_KPassivePopup* xret = new x_KPassivePopup((unsigned long)x[1].s_ulong);
        x[0].s_class = (void*)xret;
    }
    explicit x_KPassivePopup(unsigned long x1) : KPassivePopup(x1) {}
    void x_10(Smoke::Stack x) {
        // void setView(QWidget*)
        this->KPassivePopup::setView((QWidget*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_11(Smoke::Stack x) {
        // void setView(const QString&, const QString&)
        this->KPassivePopup::setView(*(const QString*)x[1].s_class,*(const QString*)x[2].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_12(Smoke::Stack x) {
        // virtual void setView(const QString&, const QString&, const QPixmap&)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KPassivePopup*>(this))) {
            this->KPassivePopup::setView(*(const QString*)x[1].s_class,*(const QString*)x[2].s_class,*(const QPixmap*)x[3].s_class);
            (void)x; // noop (for compiler warning)
        } else {
            this->setView(*(const QString*)x[1].s_class,*(const QString*)x[2].s_class,*(const QPixmap*)x[3].s_class);
            (void)x; // noop (for compiler warning)
        }
    }
    void x_13(Smoke::Stack x) {
        // KVBox* standardView(const QString&, const QString&, const QPixmap&, QWidget*)
        KVBox* xret = this->KPassivePopup::standardView(*(const QString*)x[1].s_class,*(const QString*)x[2].s_class,*(const QPixmap*)x[3].s_class,(QWidget*)x[4].s_class);
        x[0].s_class = (void*)xret;
    }
    void x_14(Smoke::Stack x) {
        // QWidget* view() const
        QWidget* xret = ((const x_KPassivePopup*)this)->KPassivePopup::view();
        x[0].s_class = (void*)xret;
    }
    void x_15(Smoke::Stack x) {
        // int timeout() const
        int xret = ((const x_KPassivePopup*)this)->KPassivePopup::timeout();
        x[0].s_int = xret;
    }
    void x_16(Smoke::Stack x) {
        // virtual void setAutoDelete(bool)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KPassivePopup*>(this))) {
            this->KPassivePopup::setAutoDelete((bool)x[1].s_bool);
            (void)x; // noop (for compiler warning)
        } else {
            this->setAutoDelete((bool)x[1].s_bool);
            (void)x; // noop (for compiler warning)
        }
    }
    void x_17(Smoke::Stack x) {
        // bool autoDelete() const
        bool xret = ((const x_KPassivePopup*)this)->KPassivePopup::autoDelete();
        x[0].s_bool = xret;
    }
    void x_18(Smoke::Stack x) {
        // QRect defaultArea() const
        QRect xret = ((const x_KPassivePopup*)this)->KPassivePopup::defaultArea();
        x[0].s_class = (void*)new QRect(xret);
    }
    void x_19(Smoke::Stack x) {
        // QPoint anchor() const
        QPoint xret = ((const x_KPassivePopup*)this)->KPassivePopup::anchor();
        x[0].s_class = (void*)new QPoint(xret);
    }
    void x_20(Smoke::Stack x) {
        // void setAnchor(const QPoint&)
        this->KPassivePopup::setAnchor(*(const QPoint*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    static void x_21(Smoke::Stack x) {
        // static KPassivePopup* message(const QString&, QWidget*)
        KPassivePopup* xret = KPassivePopup::message(*(const QString*)x[1].s_class,(QWidget*)x[2].s_class);
        x[0].s_class = (void*)xret;
    }
    static void x_22(Smoke::Stack x) {
        // static KPassivePopup* message(const QString&, QSystemTrayIcon*)
        KPassivePopup* xret = KPassivePopup::message(*(const QString*)x[1].s_class,(QSystemTrayIcon*)x[2].s_class);
        x[0].s_class = (void*)xret;
    }
    static void x_23(Smoke::Stack x) {
        // static KPassivePopup* message(const QString&, const QString&, QWidget*)
        KPassivePopup* xret = KPassivePopup::message(*(const QString*)x[1].s_class,*(const QString*)x[2].s_class,(QWidget*)x[3].s_class);
        x[0].s_class = (void*)xret;
    }
    static void x_24(Smoke::Stack x) {
        // static KPassivePopup* message(const QString&, const QString&, QSystemTrayIcon*)
        KPassivePopup* xret = KPassivePopup::message(*(const QString*)x[1].s_class,*(const QString*)x[2].s_class,(QSystemTrayIcon*)x[3].s_class);
        x[0].s_class = (void*)xret;
    }
    static void x_25(Smoke::Stack x) {
        // static KPassivePopup* message(const QString&, const QString&, const QPixmap&, QWidget*, int)
        KPassivePopup* xret = KPassivePopup::message(*(const QString*)x[1].s_class,*(const QString*)x[2].s_class,*(const QPixmap*)x[3].s_class,(QWidget*)x[4].s_class,(int)x[5].s_int);
        x[0].s_class = (void*)xret;
    }
    static void x_26(Smoke::Stack x) {
        // static KPassivePopup* message(const QString&, const QString&, const QPixmap&, QSystemTrayIcon*, int)
        KPassivePopup* xret = KPassivePopup::message(*(const QString*)x[1].s_class,*(const QString*)x[2].s_class,*(const QPixmap*)x[3].s_class,(QSystemTrayIcon*)x[4].s_class,(int)x[5].s_int);
        x[0].s_class = (void*)xret;
    }
    static void x_27(Smoke::Stack x) {
        // static KPassivePopup* message(const QString&, const QString&, const QPixmap&, unsigned long, int)
        KPassivePopup* xret = KPassivePopup::message(*(const QString*)x[1].s_class,*(const QString*)x[2].s_class,*(const QPixmap*)x[3].s_class,(unsigned long)x[4].s_ulong,(int)x[5].s_int);
        x[0].s_class = (void*)xret;
    }
    static void x_28(Smoke::Stack x) {
        // static KPassivePopup* message(int, const QString&, QWidget*)
        KPassivePopup* xret = KPassivePopup::message((int)x[1].s_int,*(const QString*)x[2].s_class,(QWidget*)x[3].s_class);
        x[0].s_class = (void*)xret;
    }
    static void x_29(Smoke::Stack x) {
        // static KPassivePopup* message(int, const QString&, QSystemTrayIcon*)
        KPassivePopup* xret = KPassivePopup::message((int)x[1].s_int,*(const QString*)x[2].s_class,(QSystemTrayIcon*)x[3].s_class);
        x[0].s_class = (void*)xret;
    }
    static void x_30(Smoke::Stack x) {
        // static KPassivePopup* message(int, const QString&, const QString&, QSystemTrayIcon*)
        KPassivePopup* xret = KPassivePopup::message((int)x[1].s_int,*(const QString*)x[2].s_class,*(const QString*)x[3].s_class,(QSystemTrayIcon*)x[4].s_class);
        x[0].s_class = (void*)xret;
    }
    static void x_31(Smoke::Stack x) {
        // static KPassivePopup* message(int, const QString&, const QString&, QWidget*)
        KPassivePopup* xret = KPassivePopup::message((int)x[1].s_int,*(const QString*)x[2].s_class,*(const QString*)x[3].s_class,(QWidget*)x[4].s_class);
        x[0].s_class = (void*)xret;
    }
    static void x_32(Smoke::Stack x) {
        // static KPassivePopup* message(int, const QString&, const QString&, const QPixmap&, QWidget*, int)
        KPassivePopup* xret = KPassivePopup::message((int)x[1].s_int,*(const QString*)x[2].s_class,*(const QString*)x[3].s_class,*(const QPixmap*)x[4].s_class,(QWidget*)x[5].s_class,(int)x[6].s_int);
        x[0].s_class = (void*)xret;
    }
    static void x_33(Smoke::Stack x) {
        // static KPassivePopup* message(int, const QString&, const QString&, const QPixmap&, QSystemTrayIcon*, int)
        KPassivePopup* xret = KPassivePopup::message((int)x[1].s_int,*(const QString*)x[2].s_class,*(const QString*)x[3].s_class,*(const QPixmap*)x[4].s_class,(QSystemTrayIcon*)x[5].s_class,(int)x[6].s_int);
        x[0].s_class = (void*)xret;
    }
    static void x_34(Smoke::Stack x) {
        // static KPassivePopup* message(int, const QString&, const QString&, const QPixmap&, unsigned long, int)
        KPassivePopup* xret = KPassivePopup::message((int)x[1].s_int,*(const QString*)x[2].s_class,*(const QString*)x[3].s_class,*(const QPixmap*)x[4].s_class,(unsigned long)x[5].s_ulong,(int)x[6].s_int);
        x[0].s_class = (void*)xret;
    }
    void x_35(Smoke::Stack x) {
        // void setTimeout(int)
        this->KPassivePopup::setTimeout((int)x[1].s_int);
        (void)x; // noop (for compiler warning)
    }
    void x_36(Smoke::Stack x) {
        // void setPopupStyle(int)
        this->KPassivePopup::setPopupStyle((int)x[1].s_int);
        (void)x; // noop (for compiler warning)
    }
    void x_37(Smoke::Stack x) {
        // void show()
        this->KPassivePopup::show();
        (void)x; // noop (for compiler warning)
    }
    void x_38(Smoke::Stack x) {
        // void show(const QPoint&)
        this->KPassivePopup::show(*(const QPoint*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_39(Smoke::Stack x) {
        // virtual void setVisible(bool)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KPassivePopup*>(this))) {
            this->KPassivePopup::setVisible((bool)x[1].s_bool);
            (void)x; // noop (for compiler warning)
        } else {
            this->setVisible((bool)x[1].s_bool);
            (void)x; // noop (for compiler warning)
        }
    }
    void x_40(Smoke::Stack x) {
        // void clicked()
        this->KPassivePopup::clicked();
        (void)x; // noop (for compiler warning)
    }
    void x_41(Smoke::Stack x) {
        // void clicked(const QPoint&)
        this->KPassivePopup::clicked(*(const QPoint*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_42(Smoke::Stack x) {
        // virtual void positionSelf()
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KPassivePopup*>(this))) {
            this->KPassivePopup::positionSelf();
            (void)x; // noop (for compiler warning)
        } else {
            this->positionSelf();
            (void)x; // noop (for compiler warning)
        }
    }
    void x_43(Smoke::Stack x) {
        // virtual void hideEvent(QHideEvent*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KPassivePopup*>(this))) {
            this->KPassivePopup::hideEvent((QHideEvent*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        } else {
            this->hideEvent((QHideEvent*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        }
    }
    void x_44(Smoke::Stack x) {
        // void moveNear(const QRect&)
        this->KPassivePopup::moveNear(*(const QRect*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_45(Smoke::Stack x) {
        // QPoint calculateNearbyPoint(const QRect&)
        QPoint xret = this->KPassivePopup::calculateNearbyPoint(*(const QRect*)x[1].s_class);
        x[0].s_class = (void*)new QPoint(xret);
    }
    void x_46(Smoke::Stack x) {
        // virtual void mouseReleaseEvent(QMouseEvent*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KPassivePopup*>(this))) {
            this->KPassivePopup::mouseReleaseEvent((QMouseEvent*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        } else {
            this->mouseReleaseEvent((QMouseEvent*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        }
    }
    void x_47(Smoke::Stack x) {
        // void updateMask()
        this->KPassivePopup::updateMask();
        (void)x; // noop (for compiler warning)
    }
    void x_48(Smoke::Stack x) {
        // virtual void paintEvent(QPaintEvent*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KPassivePopup*>(this))) {
            this->KPassivePopup::paintEvent((QPaintEvent*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        } else {
            this->paintEvent((QPaintEvent*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        }
    }
    static void x_49(Smoke::Stack x) {
        // static QString tr(const char*)
        QString xret = KPassivePopup::tr((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_50(Smoke::Stack x) {
        // static QString trUtf8(const char*)
        QString xret = KPassivePopup::trUtf8((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_51(Smoke::Stack x) {
        // KPassivePopup* KPassivePopup()
        x_KPassivePopup* xret = new x_KPassivePopup((QWidget*)0,(QFlags<Qt::WindowType>)0);
        x[0].s_class = (void*)xret;
    }
    static void x_52(Smoke::Stack x) {
        // KPassivePopup* KPassivePopup(QWidget*)
        x_KPassivePopup* xret = new x_KPassivePopup((QWidget*)x[1].s_class,(QFlags<Qt::WindowType>)0);
        x[0].s_class = (void*)xret;
    }
    void x_53(Smoke::Stack x) {
        // void setView(const QString&)
        this->KPassivePopup::setView(*(const QString*)x[1].s_class,(const QString&)QString());
        (void)x; // noop (for compiler warning)
    }
    void x_54(Smoke::Stack x) {
        // KVBox* standardView(const QString&, const QString&, const QPixmap&)
        KVBox* xret = this->KPassivePopup::standardView(*(const QString*)x[1].s_class,*(const QString*)x[2].s_class,*(const QPixmap*)x[3].s_class,(QWidget*)0L);
        x[0].s_class = (void*)xret;
    }
    static void x_55(Smoke::Stack x) {
        // static KPassivePopup* message(const QString&, const QString&, const QPixmap&, QWidget*)
        KPassivePopup* xret = KPassivePopup::message(*(const QString*)x[1].s_class,*(const QString*)x[2].s_class,*(const QPixmap*)x[3].s_class,(QWidget*)x[4].s_class,(int)-1);
        x[0].s_class = (void*)xret;
    }
    static void x_56(Smoke::Stack x) {
        // static KPassivePopup* message(const QString&, const QString&, const QPixmap&, QSystemTrayIcon*)
        KPassivePopup* xret = KPassivePopup::message(*(const QString*)x[1].s_class,*(const QString*)x[2].s_class,*(const QPixmap*)x[3].s_class,(QSystemTrayIcon*)x[4].s_class,(int)-1);
        x[0].s_class = (void*)xret;
    }
    static void x_57(Smoke::Stack x) {
        // static KPassivePopup* message(const QString&, const QString&, const QPixmap&, unsigned long)
        KPassivePopup* xret = KPassivePopup::message(*(const QString*)x[1].s_class,*(const QString*)x[2].s_class,*(const QPixmap*)x[3].s_class,(unsigned long)x[4].s_ulong,(int)-1);
        x[0].s_class = (void*)xret;
    }
    static void x_58(Smoke::Stack x) {
        // static KPassivePopup* message(int, const QString&, const QString&, const QPixmap&, QWidget*)
        KPassivePopup* xret = KPassivePopup::message((int)x[1].s_int,*(const QString*)x[2].s_class,*(const QString*)x[3].s_class,*(const QPixmap*)x[4].s_class,(QWidget*)x[5].s_class,(int)-1);
        x[0].s_class = (void*)xret;
    }
    static void x_59(Smoke::Stack x) {
        // static KPassivePopup* message(int, const QString&, const QString&, const QPixmap&, QSystemTrayIcon*)
        KPassivePopup* xret = KPassivePopup::message((int)x[1].s_int,*(const QString*)x[2].s_class,*(const QString*)x[3].s_class,*(const QPixmap*)x[4].s_class,(QSystemTrayIcon*)x[5].s_class,(int)-1);
        x[0].s_class = (void*)xret;
    }
    static void x_60(Smoke::Stack x) {
        // static KPassivePopup* message(int, const QString&, const QString&, const QPixmap&, unsigned long)
        KPassivePopup* xret = KPassivePopup::message((int)x[1].s_int,*(const QString*)x[2].s_class,*(const QString*)x[3].s_class,*(const QPixmap*)x[4].s_class,(unsigned long)x[5].s_ulong,(int)-1);
        x[0].s_class = (void*)xret;
    }
    static void x_61(Smoke::Stack x) {
        // static const QMetaObject staticMetaObject
        x[0].s_class = (void*)&KPassivePopup::staticMetaObject;
    }
    static void x_62(Smoke::Stack x) {
        x[0].s_enum = (long)KPassivePopup::Boxed;
    }
    static void x_63(Smoke::Stack x) {
        x[0].s_enum = (long)KPassivePopup::Balloon;
    }
    static void x_64(Smoke::Stack x) {
        x[0].s_enum = (long)KPassivePopup::CustomStyle;
    }
    virtual const QMetaObject* metaObject() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(3791, (void*)this, x)) return (const QMetaObject*)x[0].s_class;
        return this->KPassivePopup::metaObject();
    }
    virtual void* qt_metacast(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(3792, (void*)this, x)) return (void*)x[0].s_class;
        return this->KPassivePopup::qt_metacast(x1);
    }
    virtual int qt_metacall(QMetaObject::Call x1, int x2, void** x3) {
        Smoke::StackItem x[4];
        x[1].s_enum = x1;
        x[2].s_int = x2;
        x[3].s_class = (void*)x3;
        if (this->_binding->callMethod(3797, (void*)this, x)) return (int)x[0].s_int;
        return this->KPassivePopup::qt_metacall(x1, x2, x3);
    }
    virtual void setView(const QString& x1, const QString& x2, const QPixmap& x3) {
        Smoke::StackItem x[4];
        x[1].s_class = (void*)&x1;
        x[2].s_class = (void*)&x2;
        x[3].s_class = (void*)&x3;
        if (this->_binding->callMethod(3802, (void*)this, x)) return;
        this->KPassivePopup::setView(x1, x2, x3);
    }
    virtual void setAutoDelete(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(3806, (void*)this, x)) return;
        this->KPassivePopup::setAutoDelete(x1);
    }
    virtual void setVisible(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(3829, (void*)this, x)) return;
        this->KPassivePopup::setVisible(x1);
    }
    virtual void positionSelf() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(3832, (void*)this, x)) return;
        this->KPassivePopup::positionSelf();
    }
    virtual void hideEvent(QHideEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(3833, (void*)this, x)) return;
        this->KPassivePopup::hideEvent(x1);
    }
    virtual void mouseReleaseEvent(QMouseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(3836, (void*)this, x)) return;
        this->KPassivePopup::mouseReleaseEvent(x1);
    }
    virtual void paintEvent(QPaintEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(3838, (void*)this, x)) return;
        this->KPassivePopup::paintEvent(x1);
    }
    virtual QSize sizeHint() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7413, (void*)this, x)) {
            QSize* xptr = (QSize*)x[0].s_class;
            QSize xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QFrame::sizeHint();
    }
    virtual QSize minimumSizeHint() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7792, (void*)this, x)) {
            QSize* xptr = (QSize*)x[0].s_class;
            QSize xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QWidget::minimumSizeHint();
    }
    virtual int heightForWidth(int x1) const {
        Smoke::StackItem x[2];
        x[1].s_int = x1;
        if (this->_binding->callMethod(7793, (void*)this, x)) return (int)x[0].s_int;
        return this->QWidget::heightForWidth(x1);
    }
    virtual void mousePressEvent(QMouseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7796, (void*)this, x)) return;
        this->QWidget::mousePressEvent(x1);
    }
    virtual void mouseDoubleClickEvent(QMouseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7798, (void*)this, x)) return;
        this->QWidget::mouseDoubleClickEvent(x1);
    }
    virtual void mouseMoveEvent(QMouseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7799, (void*)this, x)) return;
        this->QWidget::mouseMoveEvent(x1);
    }
    virtual void wheelEvent(QWheelEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7800, (void*)this, x)) return;
        this->QWidget::wheelEvent(x1);
    }
    virtual void keyPressEvent(QKeyEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7801, (void*)this, x)) return;
        this->QWidget::keyPressEvent(x1);
    }
    virtual void keyReleaseEvent(QKeyEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7802, (void*)this, x)) return;
        this->QWidget::keyReleaseEvent(x1);
    }
    virtual void focusInEvent(QFocusEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7803, (void*)this, x)) return;
        this->QWidget::focusInEvent(x1);
    }
    virtual void focusOutEvent(QFocusEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7804, (void*)this, x)) return;
        this->QWidget::focusOutEvent(x1);
    }
    virtual void enterEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7805, (void*)this, x)) return;
        this->QWidget::enterEvent(x1);
    }
    virtual void leaveEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7806, (void*)this, x)) return;
        this->QWidget::leaveEvent(x1);
    }
    virtual void moveEvent(QMoveEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7808, (void*)this, x)) return;
        this->QWidget::moveEvent(x1);
    }
    virtual void resizeEvent(QResizeEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7809, (void*)this, x)) return;
        this->QWidget::resizeEvent(x1);
    }
    virtual void closeEvent(QCloseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7810, (void*)this, x)) return;
        this->QWidget::closeEvent(x1);
    }
    virtual void contextMenuEvent(QContextMenuEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7811, (void*)this, x)) return;
        this->QWidget::contextMenuEvent(x1);
    }
    virtual void tabletEvent(QTabletEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7812, (void*)this, x)) return;
        this->QWidget::tabletEvent(x1);
    }
    virtual void actionEvent(QActionEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7813, (void*)this, x)) return;
        this->QWidget::actionEvent(x1);
    }
    virtual void dragEnterEvent(QDragEnterEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7814, (void*)this, x)) return;
        this->QWidget::dragEnterEvent(x1);
    }
    virtual void dragMoveEvent(QDragMoveEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7815, (void*)this, x)) return;
        this->QWidget::dragMoveEvent(x1);
    }
    virtual void dragLeaveEvent(QDragLeaveEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7816, (void*)this, x)) return;
        this->QWidget::dragLeaveEvent(x1);
    }
    virtual void dropEvent(QDropEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7817, (void*)this, x)) return;
        this->QWidget::dropEvent(x1);
    }
    virtual void showEvent(QShowEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7818, (void*)this, x)) return;
        this->QWidget::showEvent(x1);
    }
    virtual bool x11Event(_XEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7820, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QWidget::x11Event(x1);
    }
    virtual void changeEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7416, (void*)this, x)) return;
        this->QFrame::changeEvent(x1);
    }
    virtual void inputMethodEvent(QInputMethodEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7823, (void*)this, x)) return;
        this->QWidget::inputMethodEvent(x1);
    }
    virtual QVariant inputMethodQuery(Qt::InputMethodQuery x1) const {
        Smoke::StackItem x[2];
        x[1].s_enum = x1;
        if (this->_binding->callMethod(7824, (void*)this, x)) {
            QVariant* xptr = (QVariant*)x[0].s_class;
            QVariant xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QWidget::inputMethodQuery(x1);
    }
    virtual bool focusNextPrevChild(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(7825, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QWidget::focusNextPrevChild(x1);
    }
    virtual void styleChange(QStyle& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(7826, (void*)this, x)) return;
        this->QWidget::styleChange(x1);
    }
    virtual void enabledChange(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(7827, (void*)this, x)) return;
        this->QWidget::enabledChange(x1);
    }
    virtual void paletteChange(const QPalette& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(7828, (void*)this, x)) return;
        this->QWidget::paletteChange(x1);
    }
    virtual void fontChange(const QFont& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(7829, (void*)this, x)) return;
        this->QWidget::fontChange(x1);
    }
    virtual void windowActivationChange(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(7830, (void*)this, x)) return;
        this->QWidget::windowActivationChange(x1);
    }
    virtual void languageChange() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7831, (void*)this, x)) return;
        this->QWidget::languageChange();
    }
    virtual bool event(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7414, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QFrame::event(x1);
    }
    virtual bool eventFilter(QObject* x1, QEvent* x2) {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)x1;
        x[2].s_class = (void*)x2;
        if (this->_binding->callMethod(7576, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QObject::eventFilter(x1, x2);
    }
    virtual void timerEvent(QTimerEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7577, (void*)this, x)) return;
        this->QObject::timerEvent(x1);
    }
    virtual void childEvent(QChildEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7578, (void*)this, x)) return;
        this->QObject::childEvent(x1);
    }
    virtual void customEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7579, (void*)this, x)) return;
        this->QObject::customEvent(x1);
    }
    virtual void connectNotify(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7580, (void*)this, x)) return;
        this->QObject::connectNotify(x1);
    }
    virtual void disconnectNotify(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7581, (void*)this, x)) return;
        this->QObject::disconnectNotify(x1);
    }
    virtual int devType() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7789, (void*)this, x)) return (int)x[0].s_int;
        return this->QWidget::devType();
    }
    virtual QPaintEngine* paintEngine() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7794, (void*)this, x)) return (QPaintEngine*)x[0].s_class;
        return this->QWidget::paintEngine();
    }
    virtual int metric(QPaintDevice::PaintDeviceMetric x1) const {
        Smoke::StackItem x[2];
        x[1].s_enum = x1;
        if (this->_binding->callMethod(7822, (void*)this, x)) return (int)x[0].s_int;
        return this->QWidget::metric(x1);
    }
    static void xenum_operation(Smoke::EnumOperation xop, Smoke::Index xtype, void *&xdata, long &xvalue) {
        switch(xtype) {
        case 217: //KPassivePopup::PopupStyle
            switch(xop) {
                case Smoke::EnumNew:
                    xdata = (void*)new KPassivePopup::PopupStyle;
                    break;
                case Smoke::EnumDelete:
                    delete (KPassivePopup::PopupStyle*)xdata;
                    break;
                case Smoke::EnumFromLong:
                    *(KPassivePopup::PopupStyle*)xdata = (KPassivePopup::PopupStyle)xvalue;
                    break;
                case Smoke::EnumToLong:
                    xvalue = (long)*(KPassivePopup::PopupStyle*)xdata;
                    break;
            }
            break;
        }
    }
    ~x_KPassivePopup() { this->_binding->deleted(139, (void*)this); }
};
void xenum_KPassivePopup(Smoke::EnumOperation xop, Smoke::Index xtype, void *&xdata, long &xvalue) {
    x_KPassivePopup::xenum_operation(xop, xtype, xdata, xvalue);
}
void xcall_KPassivePopup(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_KPassivePopup *xself = (x_KPassivePopup*)obj;
    switch(xi) {
        case 0: xself->x_0(args);	break;
        case 1: xself->x_1(args);	break;
        case 2: xself->x_2(args);	break;
        case 3: x_KPassivePopup::x_3(args);	break;
        case 4: x_KPassivePopup::x_4(args);	break;
        case 5: x_KPassivePopup::x_5(args);	break;
        case 6: x_KPassivePopup::x_6(args);	break;
        case 7: xself->x_7(args);	break;
        case 8: x_KPassivePopup::x_8(args);	break;
        case 9: x_KPassivePopup::x_9(args);	break;
        case 10: xself->x_10(args);	break;
        case 11: xself->x_11(args);	break;
        case 12: xself->x_12(args);	break;
        case 13: xself->x_13(args);	break;
        case 14: xself->x_14(args);	break;
        case 15: xself->x_15(args);	break;
        case 16: xself->x_16(args);	break;
        case 17: xself->x_17(args);	break;
        case 18: xself->x_18(args);	break;
        case 19: xself->x_19(args);	break;
        case 20: xself->x_20(args);	break;
        case 21: x_KPassivePopup::x_21(args);	break;
        case 22: x_KPassivePopup::x_22(args);	break;
        case 23: x_KPassivePopup::x_23(args);	break;
        case 24: x_KPassivePopup::x_24(args);	break;
        case 25: x_KPassivePopup::x_25(args);	break;
        case 26: x_KPassivePopup::x_26(args);	break;
        case 27: x_KPassivePopup::x_27(args);	break;
        case 28: x_KPassivePopup::x_28(args);	break;
        case 29: x_KPassivePopup::x_29(args);	break;
        case 30: x_KPassivePopup::x_30(args);	break;
        case 31: x_KPassivePopup::x_31(args);	break;
        case 32: x_KPassivePopup::x_32(args);	break;
        case 33: x_KPassivePopup::x_33(args);	break;
        case 34: x_KPassivePopup::x_34(args);	break;
        case 35: xself->x_35(args);	break;
        case 36: xself->x_36(args);	break;
        case 37: xself->x_37(args);	break;
        case 38: xself->x_38(args);	break;
        case 39: xself->x_39(args);	break;
        case 40: xself->x_40(args);	break;
        case 41: xself->x_41(args);	break;
        case 42: xself->x_42(args);	break;
        case 43: xself->x_43(args);	break;
        case 44: xself->x_44(args);	break;
        case 45: xself->x_45(args);	break;
        case 46: xself->x_46(args);	break;
        case 47: xself->x_47(args);	break;
        case 48: xself->x_48(args);	break;
        case 49: x_KPassivePopup::x_49(args);	break;
        case 50: x_KPassivePopup::x_50(args);	break;
        case 51: x_KPassivePopup::x_51(args);	break;
        case 52: x_KPassivePopup::x_52(args);	break;
        case 53: xself->x_53(args);	break;
        case 54: xself->x_54(args);	break;
        case 55: x_KPassivePopup::x_55(args);	break;
        case 56: x_KPassivePopup::x_56(args);	break;
        case 57: x_KPassivePopup::x_57(args);	break;
        case 58: x_KPassivePopup::x_58(args);	break;
        case 59: x_KPassivePopup::x_59(args);	break;
        case 60: x_KPassivePopup::x_60(args);	break;
        case 61: x_KPassivePopup::x_61(args);	break;
        case 62: x_KPassivePopup::x_62(args);	break;
        case 63: x_KPassivePopup::x_63(args);	break;
        case 64: x_KPassivePopup::x_64(args);	break;
        case 65: delete (KPassivePopup*)xself;	break;
    }
}
class x_KPassivePopupMessageHandler : public KPassivePopupMessageHandler, public __internal_SmokeClass {
    SmokeBinding* _binding;
public:
    void x_0(Smoke::Stack x) {
        // set the smoke binding
        _binding = (SmokeBinding*)x[1].s_class;
    }
    void x_1(Smoke::Stack x) {
        // virtual const QMetaObject* metaObject() const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KPassivePopupMessageHandler*>(this))) {
            const QMetaObject* xret = ((const x_KPassivePopupMessageHandler*)this)->KPassivePopupMessageHandler::metaObject();
            x[0].s_class = (void*)xret;
        } else {
            const QMetaObject* xret = ((const x_KPassivePopupMessageHandler*)this)->metaObject();
            x[0].s_class = (void*)xret;
        }
    }
    void x_2(Smoke::Stack x) {
        // virtual void* qt_metacast(const char*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KPassivePopupMessageHandler*>(this))) {
            void* xret = this->KPassivePopupMessageHandler::qt_metacast((const char*)x[1].s_class);
            x[0].s_class = (void*)xret;
        } else {
            void* xret = this->qt_metacast((const char*)x[1].s_class);
            x[0].s_class = (void*)xret;
        }
    }
    static void x_3(Smoke::Stack x) {
        // static QString tr(const char*, const char*)
        QString xret = KPassivePopupMessageHandler::tr((const char*)x[1].s_class,(const char*)x[2].s_class);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_4(Smoke::Stack x) {
        // static QString trUtf8(const char*, const char*)
        QString xret = KPassivePopupMessageHandler::trUtf8((const char*)x[1].s_class,(const char*)x[2].s_class);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_5(Smoke::Stack x) {
        // static QString tr(const char*, const char*, int)
        QString xret = KPassivePopupMessageHandler::tr((const char*)x[1].s_class,(const char*)x[2].s_class,(int)x[3].s_int);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_6(Smoke::Stack x) {
        // static QString trUtf8(const char*, const char*, int)
        QString xret = KPassivePopupMessageHandler::trUtf8((const char*)x[1].s_class,(const char*)x[2].s_class,(int)x[3].s_int);
        x[0].s_class = (void*)new QString(xret);
    }
    void x_7(Smoke::Stack x) {
        // virtual int qt_metacall(QMetaObject::Call, int, void**)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KPassivePopupMessageHandler*>(this))) {
            int xret = this->KPassivePopupMessageHandler::qt_metacall((QMetaObject::Call)x[1].s_enum,(int)x[2].s_int,(void**)x[3].s_class);
            x[0].s_int = xret;
        } else {
            int xret = this->qt_metacall((QMetaObject::Call)x[1].s_enum,(int)x[2].s_int,(void**)x[3].s_class);
            x[0].s_int = xret;
        }
    }
    static void x_8(Smoke::Stack x) {
        // KPassivePopupMessageHandler* KPassivePopupMessageHandler(QWidget*)
        x_KPassivePopupMessageHandler* xret = new x_KPassivePopupMessageHandler((QWidget*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_KPassivePopupMessageHandler(QWidget* x1) : KPassivePopupMessageHandler(x1) {}
    void x_9(Smoke::Stack x) {
        // virtual void message(KMessage::MessageType, const QString&, const QString&)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KPassivePopupMessageHandler*>(this))) {
            this->KPassivePopupMessageHandler::message((KMessage::MessageType)x[1].s_enum,*(const QString*)x[2].s_class,*(const QString*)x[3].s_class);
            (void)x; // noop (for compiler warning)
        } else {
            this->message((KMessage::MessageType)x[1].s_enum,*(const QString*)x[2].s_class,*(const QString*)x[3].s_class);
            (void)x; // noop (for compiler warning)
        }
    }
    static void x_10(Smoke::Stack x) {
        // static QString tr(const char*)
        QString xret = KPassivePopupMessageHandler::tr((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_11(Smoke::Stack x) {
        // static QString trUtf8(const char*)
        QString xret = KPassivePopupMessageHandler::trUtf8((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_12(Smoke::Stack x) {
        // KPassivePopupMessageHandler* KPassivePopupMessageHandler()
        x_KPassivePopupMessageHandler* xret = new x_KPassivePopupMessageHandler((QWidget*)0);
        x[0].s_class = (void*)xret;
    }
    static void x_13(Smoke::Stack x) {
        // static const QMetaObject staticMetaObject
        x[0].s_class = (void*)&KPassivePopupMessageHandler::staticMetaObject;
    }
    virtual const QMetaObject* metaObject() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(3856, (void*)this, x)) return (const QMetaObject*)x[0].s_class;
        return this->KPassivePopupMessageHandler::metaObject();
    }
    virtual void* qt_metacast(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(3857, (void*)this, x)) return (void*)x[0].s_class;
        return this->KPassivePopupMessageHandler::qt_metacast(x1);
    }
    virtual int qt_metacall(QMetaObject::Call x1, int x2, void** x3) {
        Smoke::StackItem x[4];
        x[1].s_enum = x1;
        x[2].s_int = x2;
        x[3].s_class = (void*)x3;
        if (this->_binding->callMethod(3862, (void*)this, x)) return (int)x[0].s_int;
        return this->KPassivePopupMessageHandler::qt_metacall(x1, x2, x3);
    }
    virtual void message(KMessage::MessageType x1, const QString& x2, const QString& x3) {
        Smoke::StackItem x[4];
        x[1].s_enum = x1;
        x[2].s_class = (void*)&x2;
        x[3].s_class = (void*)&x3;
        if (this->_binding->callMethod(3864, (void*)this, x)) return;
        this->KPassivePopupMessageHandler::message(x1, x2, x3);
    }
    virtual bool event(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7575, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QObject::event(x1);
    }
    virtual bool eventFilter(QObject* x1, QEvent* x2) {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)x1;
        x[2].s_class = (void*)x2;
        if (this->_binding->callMethod(7576, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QObject::eventFilter(x1, x2);
    }
    virtual void timerEvent(QTimerEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7577, (void*)this, x)) return;
        this->QObject::timerEvent(x1);
    }
    virtual void childEvent(QChildEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7578, (void*)this, x)) return;
        this->QObject::childEvent(x1);
    }
    virtual void customEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7579, (void*)this, x)) return;
        this->QObject::customEvent(x1);
    }
    virtual void connectNotify(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7580, (void*)this, x)) return;
        this->QObject::connectNotify(x1);
    }
    virtual void disconnectNotify(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7581, (void*)this, x)) return;
        this->QObject::disconnectNotify(x1);
    }
    ~x_KPassivePopupMessageHandler() { this->_binding->deleted(140, (void*)this); }
};
void xcall_KPassivePopupMessageHandler(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_KPassivePopupMessageHandler *xself = (x_KPassivePopupMessageHandler*)obj;
    switch(xi) {
        case 0: xself->x_0(args);	break;
        case 1: xself->x_1(args);	break;
        case 2: xself->x_2(args);	break;
        case 3: x_KPassivePopupMessageHandler::x_3(args);	break;
        case 4: x_KPassivePopupMessageHandler::x_4(args);	break;
        case 5: x_KPassivePopupMessageHandler::x_5(args);	break;
        case 6: x_KPassivePopupMessageHandler::x_6(args);	break;
        case 7: xself->x_7(args);	break;
        case 8: x_KPassivePopupMessageHandler::x_8(args);	break;
        case 9: xself->x_9(args);	break;
        case 10: x_KPassivePopupMessageHandler::x_10(args);	break;
        case 11: x_KPassivePopupMessageHandler::x_11(args);	break;
        case 12: x_KPassivePopupMessageHandler::x_12(args);	break;
        case 13: x_KPassivePopupMessageHandler::x_13(args);	break;
        case 14: delete (KPassivePopupMessageHandler*)xself;	break;
    }
}
class x_KPasswordDialog : public KPasswordDialog, public __internal_SmokeClass {
    SmokeBinding* _binding;
public:
    void x_0(Smoke::Stack x) {
        // set the smoke binding
        _binding = (SmokeBinding*)x[1].s_class;
    }
    void x_1(Smoke::Stack x) {
        // virtual const QMetaObject* metaObject() const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KPasswordDialog*>(this))) {
            const QMetaObject* xret = ((const x_KPasswordDialog*)this)->KPasswordDialog::metaObject();
            x[0].s_class = (void*)xret;
        } else {
            const QMetaObject* xret = ((const x_KPasswordDialog*)this)->metaObject();
            x[0].s_class = (void*)xret;
        }
    }
    void x_2(Smoke::Stack x) {
        // virtual void* qt_metacast(const char*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KPasswordDialog*>(this))) {
            void* xret = this->KPasswordDialog::qt_metacast((const char*)x[1].s_class);
            x[0].s_class = (void*)xret;
        } else {
            void* xret = this->qt_metacast((const char*)x[1].s_class);
            x[0].s_class = (void*)xret;
        }
    }
    static void x_3(Smoke::Stack x) {
        // static QString tr(const char*, const char*)
        QString xret = KPasswordDialog::tr((const char*)x[1].s_class,(const char*)x[2].s_class);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_4(Smoke::Stack x) {
        // static QString trUtf8(const char*, const char*)
        QString xret = KPasswordDialog::trUtf8((const char*)x[1].s_class,(const char*)x[2].s_class);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_5(Smoke::Stack x) {
        // static QString tr(const char*, const char*, int)
        QString xret = KPasswordDialog::tr((const char*)x[1].s_class,(const char*)x[2].s_class,(int)x[3].s_int);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_6(Smoke::Stack x) {
        // static QString trUtf8(const char*, const char*, int)
        QString xret = KPasswordDialog::trUtf8((const char*)x[1].s_class,(const char*)x[2].s_class,(int)x[3].s_int);
        x[0].s_class = (void*)new QString(xret);
    }
    void x_7(Smoke::Stack x) {
        // virtual int qt_metacall(QMetaObject::Call, int, void**)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KPasswordDialog*>(this))) {
            int xret = this->KPasswordDialog::qt_metacall((QMetaObject::Call)x[1].s_enum,(int)x[2].s_int,(void**)x[3].s_class);
            x[0].s_int = xret;
        } else {
            int xret = this->qt_metacall((QMetaObject::Call)x[1].s_enum,(int)x[2].s_int,(void**)x[3].s_class);
            x[0].s_int = xret;
        }
    }
    static void x_8(Smoke::Stack x) {
        // KPasswordDialog* KPasswordDialog(QWidget*, const QFlags<KPasswordDialog::KPasswordDialogFlag>&, const QFlags<KDialog::ButtonCode>)
        x_KPasswordDialog* xret = new x_KPasswordDialog((QWidget*)x[1].s_class,*(const QFlags<KPasswordDialog::KPasswordDialogFlag>*)x[2].s_class,(const QFlags<KDialog::ButtonCode>)x[3].s_uint);
        x[0].s_class = (void*)xret;
    }
    explicit x_KPasswordDialog(QWidget* x1, const QFlags<KPasswordDialog::KPasswordDialogFlag>& x2, const QFlags<KDialog::ButtonCode> x3) : KPasswordDialog(x1, x2, x3) {}
    void x_9(Smoke::Stack x) {
        // void setPrompt(const QString&)
        this->KPasswordDialog::setPrompt(*(const QString*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_10(Smoke::Stack x) {
        // QString prompt() const
        QString xret = ((const x_KPasswordDialog*)this)->KPasswordDialog::prompt();
        x[0].s_class = (void*)new QString(xret);
    }
    void x_11(Smoke::Stack x) {
        // void setPixmap(const QPixmap&)
        this->KPasswordDialog::setPixmap(*(const QPixmap*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_12(Smoke::Stack x) {
        // QPixmap pixmap() const
        QPixmap xret = ((const x_KPasswordDialog*)this)->KPasswordDialog::pixmap();
        x[0].s_class = (void*)new QPixmap(xret);
    }
    void x_13(Smoke::Stack x) {
        // void addCommentLine(const QString&, const QString&)
        this->KPasswordDialog::addCommentLine(*(const QString*)x[1].s_class,*(const QString*)x[2].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_14(Smoke::Stack x) {
        // void showErrorMessage(const QString&, const KPasswordDialog::ErrorType)
        this->KPasswordDialog::showErrorMessage(*(const QString*)x[1].s_class,(const KPasswordDialog::ErrorType)x[2].s_enum);
        (void)x; // noop (for compiler warning)
    }
    void x_15(Smoke::Stack x) {
        // QString password() const
        QString xret = ((const x_KPasswordDialog*)this)->KPasswordDialog::password();
        x[0].s_class = (void*)new QString(xret);
    }
    void x_16(Smoke::Stack x) {
        // void setUsername(const QString&)
        this->KPasswordDialog::setUsername(*(const QString*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_17(Smoke::Stack x) {
        // QString username() const
        QString xret = ((const x_KPasswordDialog*)this)->KPasswordDialog::username();
        x[0].s_class = (void*)new QString(xret);
    }
    void x_18(Smoke::Stack x) {
        // void setDomain(const QString&)
        this->KPasswordDialog::setDomain(*(const QString*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_19(Smoke::Stack x) {
        // QString domain() const
        QString xret = ((const x_KPasswordDialog*)this)->KPasswordDialog::domain();
        x[0].s_class = (void*)new QString(xret);
    }
    void x_20(Smoke::Stack x) {
        // void setAnonymousMode(bool)
        this->KPasswordDialog::setAnonymousMode((bool)x[1].s_bool);
        (void)x; // noop (for compiler warning)
    }
    void x_21(Smoke::Stack x) {
        // bool anonymousMode() const
        bool xret = ((const x_KPasswordDialog*)this)->KPasswordDialog::anonymousMode();
        x[0].s_bool = xret;
    }
    void x_22(Smoke::Stack x) {
        // bool keepPassword() const
        bool xret = ((const x_KPasswordDialog*)this)->KPasswordDialog::keepPassword();
        x[0].s_bool = xret;
    }
    void x_23(Smoke::Stack x) {
        // void setKeepPassword(bool)
        this->KPasswordDialog::setKeepPassword((bool)x[1].s_bool);
        (void)x; // noop (for compiler warning)
    }
    void x_24(Smoke::Stack x) {
        // void setUsernameReadOnly(bool)
        this->KPasswordDialog::setUsernameReadOnly((bool)x[1].s_bool);
        (void)x; // noop (for compiler warning)
    }
    void x_25(Smoke::Stack x) {
        // void setPassword(const QString&)
        this->KPasswordDialog::setPassword(*(const QString*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_26(Smoke::Stack x) {
        // void setKnownLogins(const QMap<QString,QString>&)
        this->KPasswordDialog::setKnownLogins(*(const QMap<QString,QString>*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_27(Smoke::Stack x) {
        // void accept()
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KPasswordDialog*>(this))) {
            this->KPasswordDialog::accept();
            (void)x; // noop (for compiler warning)
        } else {
            this->accept();
            (void)x; // noop (for compiler warning)
        }
    }
    void x_28(Smoke::Stack x) {
        // void gotPassword(const QString&, bool)
        this->KPasswordDialog::gotPassword(*(const QString*)x[1].s_class,(bool)x[2].s_bool);
        (void)x; // noop (for compiler warning)
    }
    void x_29(Smoke::Stack x) {
        // void gotUsernameAndPassword(const QString&, const QString&, bool)
        this->KPasswordDialog::gotUsernameAndPassword(*(const QString*)x[1].s_class,*(const QString*)x[2].s_class,(bool)x[3].s_bool);
        (void)x; // noop (for compiler warning)
    }
    void x_30(Smoke::Stack x) {
        // virtual bool checkPassword()
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KPasswordDialog*>(this))) {
            bool xret = this->KPasswordDialog::checkPassword();
            x[0].s_bool = xret;
        } else {
            bool xret = this->checkPassword();
            x[0].s_bool = xret;
        }
    }
    static void x_31(Smoke::Stack x) {
        // static QString tr(const char*)
        QString xret = KPasswordDialog::tr((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_32(Smoke::Stack x) {
        // static QString trUtf8(const char*)
        QString xret = KPasswordDialog::trUtf8((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_33(Smoke::Stack x) {
        // KPasswordDialog* KPasswordDialog()
        x_KPasswordDialog* xret = new x_KPasswordDialog((QWidget*)0L,(const QFlags<KPasswordDialog::KPasswordDialogFlag>&)0,(const QFlags<KDialog::ButtonCode>)0);
        x[0].s_class = (void*)xret;
    }
    static void x_34(Smoke::Stack x) {
        // KPasswordDialog* KPasswordDialog(QWidget*)
        x_KPasswordDialog* xret = new x_KPasswordDialog((QWidget*)x[1].s_class,(const QFlags<KPasswordDialog::KPasswordDialogFlag>&)0,(const QFlags<KDialog::ButtonCode>)0);
        x[0].s_class = (void*)xret;
    }
    static void x_35(Smoke::Stack x) {
        // KPasswordDialog* KPasswordDialog(QWidget*, const QFlags<KPasswordDialog::KPasswordDialogFlag>&)
        x_KPasswordDialog* xret = new x_KPasswordDialog((QWidget*)x[1].s_class,*(const QFlags<KPasswordDialog::KPasswordDialogFlag>*)x[2].s_class,(const QFlags<KDialog::ButtonCode>)0);
        x[0].s_class = (void*)xret;
    }
    void x_36(Smoke::Stack x) {
        // void showErrorMessage(const QString&)
        this->KPasswordDialog::showErrorMessage(*(const QString*)x[1].s_class,(const KPasswordDialog::ErrorType)KPasswordDialog::PasswordError);
        (void)x; // noop (for compiler warning)
    }
    static void x_37(Smoke::Stack x) {
        // static const QMetaObject staticMetaObject
        x[0].s_class = (void*)&KPasswordDialog::staticMetaObject;
    }
    static void x_38(Smoke::Stack x) {
        x[0].s_enum = (long)KPasswordDialog::NoFlags;
    }
    static void x_39(Smoke::Stack x) {
        x[0].s_enum = (long)KPasswordDialog::ShowKeepPassword;
    }
    static void x_40(Smoke::Stack x) {
        x[0].s_enum = (long)KPasswordDialog::ShowUsernameLine;
    }
    static void x_41(Smoke::Stack x) {
        x[0].s_enum = (long)KPasswordDialog::UsernameReadOnly;
    }
    static void x_42(Smoke::Stack x) {
        x[0].s_enum = (long)KPasswordDialog::ShowAnonymousLoginCheckBox;
    }
    static void x_43(Smoke::Stack x) {
        x[0].s_enum = (long)KPasswordDialog::ShowDomainLine;
    }
    static void x_44(Smoke::Stack x) {
        x[0].s_enum = (long)KPasswordDialog::DomainReadOnly;
    }
    static void x_45(Smoke::Stack x) {
        x[0].s_enum = (long)KPasswordDialog::UnknownError;
    }
    static void x_46(Smoke::Stack x) {
        x[0].s_enum = (long)KPasswordDialog::UsernameError;
    }
    static void x_47(Smoke::Stack x) {
        x[0].s_enum = (long)KPasswordDialog::PasswordError;
    }
    static void x_48(Smoke::Stack x) {
        x[0].s_enum = (long)KPasswordDialog::FatalError;
    }
    static void x_49(Smoke::Stack x) {
        x[0].s_enum = (long)KPasswordDialog::DomainError;
    }
    virtual const QMetaObject* metaObject() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(3870, (void*)this, x)) return (const QMetaObject*)x[0].s_class;
        return this->KPasswordDialog::metaObject();
    }
    virtual void* qt_metacast(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(3871, (void*)this, x)) return (void*)x[0].s_class;
        return this->KPasswordDialog::qt_metacast(x1);
    }
    virtual int qt_metacall(QMetaObject::Call x1, int x2, void** x3) {
        Smoke::StackItem x[4];
        x[1].s_enum = x1;
        x[2].s_int = x2;
        x[3].s_class = (void*)x3;
        if (this->_binding->callMethod(3876, (void*)this, x)) return (int)x[0].s_int;
        return this->KPasswordDialog::qt_metacall(x1, x2, x3);
    }
    virtual bool checkPassword() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(3899, (void*)this, x)) return (bool)x[0].s_bool;
        return this->KPasswordDialog::checkPassword();
    }
    virtual QSize sizeHint() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(1448, (void*)this, x)) {
            QSize* xptr = (QSize*)x[0].s_class;
            QSize xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->KDialog::sizeHint();
    }
    virtual QSize minimumSizeHint() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(1449, (void*)this, x)) {
            QSize* xptr = (QSize*)x[0].s_class;
            QSize xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->KDialog::minimumSizeHint();
    }
    virtual void setCaption(const QString& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(1451, (void*)this, x)) return;
        this->KDialog::setCaption(x1);
    }
    virtual void setCaption(const QString& x1, bool x2) {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)&x1;
        x[2].s_bool = x2;
        if (this->_binding->callMethod(1452, (void*)this, x)) return;
        this->KDialog::setCaption(x1, x2);
    }
    virtual void setPlainCaption(const QString& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(1453, (void*)this, x)) return;
        this->KDialog::setPlainCaption(x1);
    }
    virtual void hideEvent(QHideEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(1483, (void*)this, x)) return;
        this->KDialog::hideEvent(x1);
    }
    virtual void closeEvent(QCloseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(1484, (void*)this, x)) return;
        this->KDialog::closeEvent(x1);
    }
    virtual void keyPressEvent(QKeyEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(1485, (void*)this, x)) return;
        this->KDialog::keyPressEvent(x1);
    }
    virtual void slotButtonClicked(int x1) {
        Smoke::StackItem x[2];
        x[1].s_int = x1;
        if (this->_binding->callMethod(1486, (void*)this, x)) return;
        this->KDialog::slotButtonClicked(x1);
    }
    virtual void done(int x1) {
        Smoke::StackItem x[2];
        x[1].s_int = x1;
        if (this->_binding->callMethod(7371, (void*)this, x)) return;
        this->QDialog::done(x1);
    }
    virtual void accept() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(3896, (void*)this, x)) return;
        this->KPasswordDialog::accept();
    }
    virtual void reject() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7373, (void*)this, x)) return;
        this->QDialog::reject();
    }
    virtual void setVisible(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(7370, (void*)this, x)) return;
        this->QDialog::setVisible(x1);
    }
    virtual int heightForWidth(int x1) const {
        Smoke::StackItem x[2];
        x[1].s_int = x1;
        if (this->_binding->callMethod(7793, (void*)this, x)) return (int)x[0].s_int;
        return this->QWidget::heightForWidth(x1);
    }
    virtual void mousePressEvent(QMouseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7796, (void*)this, x)) return;
        this->QWidget::mousePressEvent(x1);
    }
    virtual void mouseReleaseEvent(QMouseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7797, (void*)this, x)) return;
        this->QWidget::mouseReleaseEvent(x1);
    }
    virtual void mouseDoubleClickEvent(QMouseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7798, (void*)this, x)) return;
        this->QWidget::mouseDoubleClickEvent(x1);
    }
    virtual void mouseMoveEvent(QMouseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7799, (void*)this, x)) return;
        this->QWidget::mouseMoveEvent(x1);
    }
    virtual void wheelEvent(QWheelEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7800, (void*)this, x)) return;
        this->QWidget::wheelEvent(x1);
    }
    virtual void keyReleaseEvent(QKeyEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7802, (void*)this, x)) return;
        this->QWidget::keyReleaseEvent(x1);
    }
    virtual void focusInEvent(QFocusEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7803, (void*)this, x)) return;
        this->QWidget::focusInEvent(x1);
    }
    virtual void focusOutEvent(QFocusEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7804, (void*)this, x)) return;
        this->QWidget::focusOutEvent(x1);
    }
    virtual void enterEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7805, (void*)this, x)) return;
        this->QWidget::enterEvent(x1);
    }
    virtual void leaveEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7806, (void*)this, x)) return;
        this->QWidget::leaveEvent(x1);
    }
    virtual void paintEvent(QPaintEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7807, (void*)this, x)) return;
        this->QWidget::paintEvent(x1);
    }
    virtual void moveEvent(QMoveEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7808, (void*)this, x)) return;
        this->QWidget::moveEvent(x1);
    }
    virtual void resizeEvent(QResizeEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7375, (void*)this, x)) return;
        this->QDialog::resizeEvent(x1);
    }
    virtual void contextMenuEvent(QContextMenuEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7376, (void*)this, x)) return;
        this->QDialog::contextMenuEvent(x1);
    }
    virtual void tabletEvent(QTabletEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7812, (void*)this, x)) return;
        this->QWidget::tabletEvent(x1);
    }
    virtual void actionEvent(QActionEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7813, (void*)this, x)) return;
        this->QWidget::actionEvent(x1);
    }
    virtual void dragEnterEvent(QDragEnterEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7814, (void*)this, x)) return;
        this->QWidget::dragEnterEvent(x1);
    }
    virtual void dragMoveEvent(QDragMoveEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7815, (void*)this, x)) return;
        this->QWidget::dragMoveEvent(x1);
    }
    virtual void dragLeaveEvent(QDragLeaveEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7816, (void*)this, x)) return;
        this->QWidget::dragLeaveEvent(x1);
    }
    virtual void dropEvent(QDropEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7817, (void*)this, x)) return;
        this->QWidget::dropEvent(x1);
    }
    virtual void showEvent(QShowEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7374, (void*)this, x)) return;
        this->QDialog::showEvent(x1);
    }
    virtual bool x11Event(_XEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7820, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QWidget::x11Event(x1);
    }
    virtual void changeEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7821, (void*)this, x)) return;
        this->QWidget::changeEvent(x1);
    }
    virtual void inputMethodEvent(QInputMethodEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7823, (void*)this, x)) return;
        this->QWidget::inputMethodEvent(x1);
    }
    virtual QVariant inputMethodQuery(Qt::InputMethodQuery x1) const {
        Smoke::StackItem x[2];
        x[1].s_enum = x1;
        if (this->_binding->callMethod(7824, (void*)this, x)) {
            QVariant* xptr = (QVariant*)x[0].s_class;
            QVariant xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QWidget::inputMethodQuery(x1);
    }
    virtual bool focusNextPrevChild(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(7825, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QWidget::focusNextPrevChild(x1);
    }
    virtual void styleChange(QStyle& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(7826, (void*)this, x)) return;
        this->QWidget::styleChange(x1);
    }
    virtual void enabledChange(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(7827, (void*)this, x)) return;
        this->QWidget::enabledChange(x1);
    }
    virtual void paletteChange(const QPalette& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(7828, (void*)this, x)) return;
        this->QWidget::paletteChange(x1);
    }
    virtual void fontChange(const QFont& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(7829, (void*)this, x)) return;
        this->QWidget::fontChange(x1);
    }
    virtual void windowActivationChange(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(7830, (void*)this, x)) return;
        this->QWidget::windowActivationChange(x1);
    }
    virtual void languageChange() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7831, (void*)this, x)) return;
        this->QWidget::languageChange();
    }
    virtual bool event(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7795, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QWidget::event(x1);
    }
    virtual bool eventFilter(QObject* x1, QEvent* x2) {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)x1;
        x[2].s_class = (void*)x2;
        if (this->_binding->callMethod(7377, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QDialog::eventFilter(x1, x2);
    }
    virtual void timerEvent(QTimerEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7577, (void*)this, x)) return;
        this->QObject::timerEvent(x1);
    }
    virtual void childEvent(QChildEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7578, (void*)this, x)) return;
        this->QObject::childEvent(x1);
    }
    virtual void customEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7579, (void*)this, x)) return;
        this->QObject::customEvent(x1);
    }
    virtual void connectNotify(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7580, (void*)this, x)) return;
        this->QObject::connectNotify(x1);
    }
    virtual void disconnectNotify(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7581, (void*)this, x)) return;
        this->QObject::disconnectNotify(x1);
    }
    virtual int devType() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7789, (void*)this, x)) return (int)x[0].s_int;
        return this->QWidget::devType();
    }
    virtual QPaintEngine* paintEngine() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7794, (void*)this, x)) return (QPaintEngine*)x[0].s_class;
        return this->QWidget::paintEngine();
    }
    virtual int metric(QPaintDevice::PaintDeviceMetric x1) const {
        Smoke::StackItem x[2];
        x[1].s_enum = x1;
        if (this->_binding->callMethod(7822, (void*)this, x)) return (int)x[0].s_int;
        return this->QWidget::metric(x1);
    }
    static void xenum_operation(Smoke::EnumOperation xop, Smoke::Index xtype, void *&xdata, long &xvalue) {
        switch(xtype) {
        case 221: //KPasswordDialog::KPasswordDialogFlag
            switch(xop) {
                case Smoke::EnumNew:
                    xdata = (void*)new KPasswordDialog::KPasswordDialogFlag;
                    break;
                case Smoke::EnumDelete:
                    delete (KPasswordDialog::KPasswordDialogFlag*)xdata;
                    break;
                case Smoke::EnumFromLong:
                    *(KPasswordDialog::KPasswordDialogFlag*)xdata = (KPasswordDialog::KPasswordDialogFlag)xvalue;
                    break;
                case Smoke::EnumToLong:
                    xvalue = (long)*(KPasswordDialog::KPasswordDialogFlag*)xdata;
                    break;
            }
            break;
        case 220: //KPasswordDialog::ErrorType
            switch(xop) {
                case Smoke::EnumNew:
                    xdata = (void*)new KPasswordDialog::ErrorType;
                    break;
                case Smoke::EnumDelete:
                    delete (KPasswordDialog::ErrorType*)xdata;
                    break;
                case Smoke::EnumFromLong:
                    *(KPasswordDialog::ErrorType*)xdata = (KPasswordDialog::ErrorType)xvalue;
                    break;
                case Smoke::EnumToLong:
                    xvalue = (long)*(KPasswordDialog::ErrorType*)xdata;
                    break;
            }
            break;
        }
    }
    ~x_KPasswordDialog() { this->_binding->deleted(141, (void*)this); }
};
void xenum_KPasswordDialog(Smoke::EnumOperation xop, Smoke::Index xtype, void *&xdata, long &xvalue) {
    x_KPasswordDialog::xenum_operation(xop, xtype, xdata, xvalue);
}
void xcall_KPasswordDialog(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_KPasswordDialog *xself = (x_KPasswordDialog*)obj;
    switch(xi) {
        case 0: xself->x_0(args);	break;
        case 1: xself->x_1(args);	break;
        case 2: xself->x_2(args);	break;
        case 3: x_KPasswordDialog::x_3(args);	break;
        case 4: x_KPasswordDialog::x_4(args);	break;
        case 5: x_KPasswordDialog::x_5(args);	break;
        case 6: x_KPasswordDialog::x_6(args);	break;
        case 7: xself->x_7(args);	break;
        case 8: x_KPasswordDialog::x_8(args);	break;
        case 9: xself->x_9(args);	break;
        case 10: xself->x_10(args);	break;
        case 11: xself->x_11(args);	break;
        case 12: xself->x_12(args);	break;
        case 13: xself->x_13(args);	break;
        case 14: xself->x_14(args);	break;
        case 15: xself->x_15(args);	break;
        case 16: xself->x_16(args);	break;
        case 17: xself->x_17(args);	break;
        case 18: xself->x_18(args);	break;
        case 19: xself->x_19(args);	break;
        case 20: xself->x_20(args);	break;
        case 21: xself->x_21(args);	break;
        case 22: xself->x_22(args);	break;
        case 23: xself->x_23(args);	break;
        case 24: xself->x_24(args);	break;
        case 25: xself->x_25(args);	break;
        case 26: xself->x_26(args);	break;
        case 27: xself->x_27(args);	break;
        case 28: xself->x_28(args);	break;
        case 29: xself->x_29(args);	break;
        case 30: xself->x_30(args);	break;
        case 31: x_KPasswordDialog::x_31(args);	break;
        case 32: x_KPasswordDialog::x_32(args);	break;
        case 33: x_KPasswordDialog::x_33(args);	break;
        case 34: x_KPasswordDialog::x_34(args);	break;
        case 35: x_KPasswordDialog::x_35(args);	break;
        case 36: xself->x_36(args);	break;
        case 37: x_KPasswordDialog::x_37(args);	break;
        case 38: x_KPasswordDialog::x_38(args);	break;
        case 39: x_KPasswordDialog::x_39(args);	break;
        case 40: x_KPasswordDialog::x_40(args);	break;
        case 41: x_KPasswordDialog::x_41(args);	break;
        case 42: x_KPasswordDialog::x_42(args);	break;
        case 43: x_KPasswordDialog::x_43(args);	break;
        case 44: x_KPasswordDialog::x_44(args);	break;
        case 45: x_KPasswordDialog::x_45(args);	break;
        case 46: x_KPasswordDialog::x_46(args);	break;
        case 47: x_KPasswordDialog::x_47(args);	break;
        case 48: x_KPasswordDialog::x_48(args);	break;
        case 49: x_KPasswordDialog::x_49(args);	break;
        case 50: delete (KPasswordDialog*)xself;	break;
    }
}
class x_KPasteTextAction : public KPasteTextAction, public __internal_SmokeClass {
    SmokeBinding* _binding;
public:
    void x_0(Smoke::Stack x) {
        // set the smoke binding
        _binding = (SmokeBinding*)x[1].s_class;
    }
    void x_1(Smoke::Stack x) {
        // virtual const QMetaObject* metaObject() const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KPasteTextAction*>(this))) {
            const QMetaObject* xret = ((const x_KPasteTextAction*)this)->KPasteTextAction::metaObject();
            x[0].s_class = (void*)xret;
        } else {
            const QMetaObject* xret = ((const x_KPasteTextAction*)this)->metaObject();
            x[0].s_class = (void*)xret;
        }
    }
    void x_2(Smoke::Stack x) {
        // virtual void* qt_metacast(const char*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KPasteTextAction*>(this))) {
            void* xret = this->KPasteTextAction::qt_metacast((const char*)x[1].s_class);
            x[0].s_class = (void*)xret;
        } else {
            void* xret = this->qt_metacast((const char*)x[1].s_class);
            x[0].s_class = (void*)xret;
        }
    }
    static void x_3(Smoke::Stack x) {
        // static QString tr(const char*, const char*)
        QString xret = KPasteTextAction::tr((const char*)x[1].s_class,(const char*)x[2].s_class);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_4(Smoke::Stack x) {
        // static QString trUtf8(const char*, const char*)
        QString xret = KPasteTextAction::trUtf8((const char*)x[1].s_class,(const char*)x[2].s_class);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_5(Smoke::Stack x) {
        // static QString tr(const char*, const char*, int)
        QString xret = KPasteTextAction::tr((const char*)x[1].s_class,(const char*)x[2].s_class,(int)x[3].s_int);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_6(Smoke::Stack x) {
        // static QString trUtf8(const char*, const char*, int)
        QString xret = KPasteTextAction::trUtf8((const char*)x[1].s_class,(const char*)x[2].s_class,(int)x[3].s_int);
        x[0].s_class = (void*)new QString(xret);
    }
    void x_7(Smoke::Stack x) {
        // virtual int qt_metacall(QMetaObject::Call, int, void**)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KPasteTextAction*>(this))) {
            int xret = this->KPasteTextAction::qt_metacall((QMetaObject::Call)x[1].s_enum,(int)x[2].s_int,(void**)x[3].s_class);
            x[0].s_int = xret;
        } else {
            int xret = this->qt_metacall((QMetaObject::Call)x[1].s_enum,(int)x[2].s_int,(void**)x[3].s_class);
            x[0].s_int = xret;
        }
    }
    static void x_8(Smoke::Stack x) {
        // KPasteTextAction* KPasteTextAction(QObject*)
        x_KPasteTextAction* xret = new x_KPasteTextAction((QObject*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_KPasteTextAction(QObject* x1) : KPasteTextAction(x1) {}
    static void x_9(Smoke::Stack x) {
        // KPasteTextAction* KPasteTextAction(const QString&, QObject*)
        x_KPasteTextAction* xret = new x_KPasteTextAction(*(const QString*)x[1].s_class,(QObject*)x[2].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_KPasteTextAction(const QString& x1, QObject* x2) : KPasteTextAction(x1, x2) {}
    static void x_10(Smoke::Stack x) {
        // KPasteTextAction* KPasteTextAction(const KIcon&, const QString&, QObject*)
        x_KPasteTextAction* xret = new x_KPasteTextAction(*(const KIcon*)x[1].s_class,*(const QString*)x[2].s_class,(QObject*)x[3].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_KPasteTextAction(const KIcon& x1, const QString& x2, QObject* x3) : KPasteTextAction(x1, x2, x3) {}
    void x_11(Smoke::Stack x) {
        // void setMixedMode(bool)
        this->KPasteTextAction::setMixedMode((bool)x[1].s_bool);
        (void)x; // noop (for compiler warning)
    }
    static void x_12(Smoke::Stack x) {
        // static QString tr(const char*)
        QString xret = KPasteTextAction::tr((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_13(Smoke::Stack x) {
        // static QString trUtf8(const char*)
        QString xret = KPasteTextAction::trUtf8((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_14(Smoke::Stack x) {
        // static const QMetaObject staticMetaObject
        x[0].s_class = (void*)&KPasteTextAction::staticMetaObject;
    }
    virtual const QMetaObject* metaObject() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(3920, (void*)this, x)) return (const QMetaObject*)x[0].s_class;
        return this->KPasteTextAction::metaObject();
    }
    virtual void* qt_metacast(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(3921, (void*)this, x)) return (void*)x[0].s_class;
        return this->KPasteTextAction::qt_metacast(x1);
    }
    virtual int qt_metacall(QMetaObject::Call x1, int x2, void** x3) {
        Smoke::StackItem x[4];
        x[1].s_enum = x1;
        x[2].s_int = x2;
        x[3].s_class = (void*)x3;
        if (this->_binding->callMethod(3926, (void*)this, x)) return (int)x[0].s_int;
        return this->KPasteTextAction::qt_metacall(x1, x2, x3);
    }
    virtual bool event(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(86, (void*)this, x)) return (bool)x[0].s_bool;
        return this->KAction::event(x1);
    }
    virtual bool eventFilter(QObject* x1, QEvent* x2) {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)x1;
        x[2].s_class = (void*)x2;
        if (this->_binding->callMethod(7832, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QWidgetAction::eventFilter(x1, x2);
    }
    virtual QWidget* createWidget(QWidget* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7833, (void*)this, x)) return (QWidget*)x[0].s_class;
        return this->QWidgetAction::createWidget(x1);
    }
    virtual void deleteWidget(QWidget* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7834, (void*)this, x)) return;
        this->QWidgetAction::deleteWidget(x1);
    }
    virtual void timerEvent(QTimerEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7577, (void*)this, x)) return;
        this->QObject::timerEvent(x1);
    }
    virtual void childEvent(QChildEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7578, (void*)this, x)) return;
        this->QObject::childEvent(x1);
    }
    virtual void customEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7579, (void*)this, x)) return;
        this->QObject::customEvent(x1);
    }
    virtual void connectNotify(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7580, (void*)this, x)) return;
        this->QObject::connectNotify(x1);
    }
    virtual void disconnectNotify(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7581, (void*)this, x)) return;
        this->QObject::disconnectNotify(x1);
    }
    ~x_KPasteTextAction() { this->_binding->deleted(142, (void*)this); }
};
void xcall_KPasteTextAction(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_KPasteTextAction *xself = (x_KPasteTextAction*)obj;
    switch(xi) {
        case 0: xself->x_0(args);	break;
        case 1: xself->x_1(args);	break;
        case 2: xself->x_2(args);	break;
        case 3: x_KPasteTextAction::x_3(args);	break;
        case 4: x_KPasteTextAction::x_4(args);	break;
        case 5: x_KPasteTextAction::x_5(args);	break;
        case 6: x_KPasteTextAction::x_6(args);	break;
        case 7: xself->x_7(args);	break;
        case 8: x_KPasteTextAction::x_8(args);	break;
        case 9: x_KPasteTextAction::x_9(args);	break;
        case 10: x_KPasteTextAction::x_10(args);	break;
        case 11: xself->x_11(args);	break;
        case 12: x_KPasteTextAction::x_12(args);	break;
        case 13: x_KPasteTextAction::x_13(args);	break;
        case 14: x_KPasteTextAction::x_14(args);	break;
        case 15: delete (KPasteTextAction*)xself;	break;
    }
}
class x_KPixmapCache : public KPixmapCache, public __internal_SmokeClass {
    SmokeBinding* _binding;
public:
    void x_0(Smoke::Stack x) {
        // set the smoke binding
        _binding = (SmokeBinding*)x[1].s_class;
    }
    static void x_1(Smoke::Stack x) {
        // KPixmapCache* KPixmapCache(const QString&)
        x_KPixmapCache* xret = new x_KPixmapCache(*(const QString*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_KPixmapCache(const QString& x1) : KPixmapCache(x1) {}
    void x_2(Smoke::Stack x) {
        // virtual bool find(const QString&, QPixmap&)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KPixmapCache*>(this))) {
            bool xret = this->KPixmapCache::find(*(const QString*)x[1].s_class,*(QPixmap*)x[2].s_class);
            x[0].s_bool = xret;
        } else {
            bool xret = this->find(*(const QString*)x[1].s_class,*(QPixmap*)x[2].s_class);
            x[0].s_bool = xret;
        }
    }
    void x_3(Smoke::Stack x) {
        // virtual void insert(const QString&, const QPixmap&)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KPixmapCache*>(this))) {
            this->KPixmapCache::insert(*(const QString*)x[1].s_class,*(const QPixmap*)x[2].s_class);
            (void)x; // noop (for compiler warning)
        } else {
            this->insert(*(const QString*)x[1].s_class,*(const QPixmap*)x[2].s_class);
            (void)x; // noop (for compiler warning)
        }
    }
    void x_4(Smoke::Stack x) {
        // QPixmap loadFromFile(const QString&)
        QPixmap xret = this->KPixmapCache::loadFromFile(*(const QString*)x[1].s_class);
        x[0].s_class = (void*)new QPixmap(xret);
    }
    void x_5(Smoke::Stack x) {
        // QPixmap loadFromSvg(const QString&, const QSize&)
        QPixmap xret = this->KPixmapCache::loadFromSvg(*(const QString*)x[1].s_class,*(const QSize*)x[2].s_class);
        x[0].s_class = (void*)new QPixmap(xret);
    }
    void x_6(Smoke::Stack x) {
        // unsigned int timestamp() const
        unsigned int xret = ((const x_KPixmapCache*)this)->KPixmapCache::timestamp();
        x[0].s_uint = xret;
    }
    void x_7(Smoke::Stack x) {
        // void setTimestamp(unsigned int)
        this->KPixmapCache::setTimestamp((unsigned int)x[1].s_uint);
        (void)x; // noop (for compiler warning)
    }
    void x_8(Smoke::Stack x) {
        // void setUseQPixmapCache(bool)
        this->KPixmapCache::setUseQPixmapCache((bool)x[1].s_bool);
        (void)x; // noop (for compiler warning)
    }
    void x_9(Smoke::Stack x) {
        // bool useQPixmapCache() const
        bool xret = ((const x_KPixmapCache*)this)->KPixmapCache::useQPixmapCache();
        x[0].s_bool = xret;
    }
    void x_10(Smoke::Stack x) {
        // int size() const
        int xret = ((const x_KPixmapCache*)this)->KPixmapCache::size();
        x[0].s_int = xret;
    }
    void x_11(Smoke::Stack x) {
        // int cacheLimit() const
        int xret = ((const x_KPixmapCache*)this)->KPixmapCache::cacheLimit();
        x[0].s_int = xret;
    }
    void x_12(Smoke::Stack x) {
        // void setCacheLimit(int)
        this->KPixmapCache::setCacheLimit((int)x[1].s_int);
        (void)x; // noop (for compiler warning)
    }
    void x_13(Smoke::Stack x) {
        // KPixmapCache::RemoveStrategy removeEntryStrategy() const
        KPixmapCache::RemoveStrategy xret = ((const x_KPixmapCache*)this)->KPixmapCache::removeEntryStrategy();
        x[0].s_enum = xret;
    }
    void x_14(Smoke::Stack x) {
        // void setRemoveEntryStrategy(KPixmapCache::RemoveStrategy)
        this->KPixmapCache::setRemoveEntryStrategy((KPixmapCache::RemoveStrategy)x[1].s_enum);
        (void)x; // noop (for compiler warning)
    }
    void x_15(Smoke::Stack x) {
        // bool isEnabled() const
        bool xret = ((const x_KPixmapCache*)this)->KPixmapCache::isEnabled();
        x[0].s_bool = xret;
    }
    void x_16(Smoke::Stack x) {
        // bool isValid() const
        bool xret = ((const x_KPixmapCache*)this)->KPixmapCache::isValid();
        x[0].s_bool = xret;
    }
    static void x_17(Smoke::Stack x) {
        // static void deleteCache(const QString&)
        KPixmapCache::deleteCache(*(const QString*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_18(Smoke::Stack x) {
        // void discard()
        this->KPixmapCache::discard();
        (void)x; // noop (for compiler warning)
    }
    void x_19(Smoke::Stack x) {
        // void removeEntries(int)
        this->KPixmapCache::removeEntries((int)x[1].s_int);
        (void)x; // noop (for compiler warning)
    }
    void x_20(Smoke::Stack x) {
        // void ensureInited() const
        ((const x_KPixmapCache*)this)->KPixmapCache::ensureInited();
        (void)x; // noop (for compiler warning)
    }
    void x_21(Smoke::Stack x) {
        // virtual bool loadCustomData(QDataStream&)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KPixmapCache*>(this))) {
            bool xret = this->KPixmapCache::loadCustomData(*(QDataStream*)x[1].s_class);
            x[0].s_bool = xret;
        } else {
            bool xret = this->loadCustomData(*(QDataStream*)x[1].s_class);
            x[0].s_bool = xret;
        }
    }
    void x_22(Smoke::Stack x) {
        // virtual bool writeCustomData(QDataStream&)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KPixmapCache*>(this))) {
            bool xret = this->KPixmapCache::writeCustomData(*(QDataStream*)x[1].s_class);
            x[0].s_bool = xret;
        } else {
            bool xret = this->writeCustomData(*(QDataStream*)x[1].s_class);
            x[0].s_bool = xret;
        }
    }
    void x_23(Smoke::Stack x) {
        // virtual bool loadCustomIndexHeader(QDataStream&)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KPixmapCache*>(this))) {
            bool xret = this->KPixmapCache::loadCustomIndexHeader(*(QDataStream*)x[1].s_class);
            x[0].s_bool = xret;
        } else {
            bool xret = this->loadCustomIndexHeader(*(QDataStream*)x[1].s_class);
            x[0].s_bool = xret;
        }
    }
    void x_24(Smoke::Stack x) {
        // virtual void writeCustomIndexHeader(QDataStream&)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KPixmapCache*>(this))) {
            this->KPixmapCache::writeCustomIndexHeader(*(QDataStream*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        } else {
            this->writeCustomIndexHeader(*(QDataStream*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        }
    }
    void x_25(Smoke::Stack x) {
        // void setValid(bool)
        this->KPixmapCache::setValid((bool)x[1].s_bool);
        (void)x; // noop (for compiler warning)
    }
    void x_26(Smoke::Stack x) {
        // bool recreateCacheFiles()
        bool xret = this->KPixmapCache::recreateCacheFiles();
        x[0].s_bool = xret;
    }
    static void x_27(Smoke::Stack x) {
        // KPixmapCache* KPixmapCache(const KPixmapCache&)
        x_KPixmapCache* xret = new x_KPixmapCache(*(const KPixmapCache*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_KPixmapCache(const KPixmapCache& x1) : KPixmapCache(x1) {}
    void x_28(Smoke::Stack x) {
        // QPixmap loadFromSvg(const QString&)
        QPixmap xret = this->KPixmapCache::loadFromSvg(*(const QString*)x[1].s_class,(const QSize&)QSize());
        x[0].s_class = (void*)new QPixmap(xret);
    }
    void x_29(Smoke::Stack x) {
        // void removeEntries()
        this->KPixmapCache::removeEntries((int)0);
        (void)x; // noop (for compiler warning)
    }
    static void x_30(Smoke::Stack x) {
        x[0].s_enum = (long)KPixmapCache::RemoveOldest;
    }
    static void x_31(Smoke::Stack x) {
        x[0].s_enum = (long)KPixmapCache::RemoveSeldomUsed;
    }
    static void x_32(Smoke::Stack x) {
        x[0].s_enum = (long)KPixmapCache::RemoveLeastRecentlyUsed;
    }
    virtual bool find(const QString& x1, QPixmap& x2) {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)&x1;
        x[2].s_class = (void*)&x2;
        if (this->_binding->callMethod(3936, (void*)this, x)) return (bool)x[0].s_bool;
        return this->KPixmapCache::find(x1, x2);
    }
    virtual void insert(const QString& x1, const QPixmap& x2) {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)&x1;
        x[2].s_class = (void*)&x2;
        if (this->_binding->callMethod(3937, (void*)this, x)) return;
        this->KPixmapCache::insert(x1, x2);
    }
    virtual bool loadCustomData(QDataStream& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(3955, (void*)this, x)) return (bool)x[0].s_bool;
        return this->KPixmapCache::loadCustomData(x1);
    }
    virtual bool writeCustomData(QDataStream& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(3956, (void*)this, x)) return (bool)x[0].s_bool;
        return this->KPixmapCache::writeCustomData(x1);
    }
    virtual bool loadCustomIndexHeader(QDataStream& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(3957, (void*)this, x)) return (bool)x[0].s_bool;
        return this->KPixmapCache::loadCustomIndexHeader(x1);
    }
    virtual void writeCustomIndexHeader(QDataStream& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(3958, (void*)this, x)) return;
        this->KPixmapCache::writeCustomIndexHeader(x1);
    }
    static void xenum_operation(Smoke::EnumOperation xop, Smoke::Index xtype, void *&xdata, long &xvalue) {
        switch(xtype) {
        case 224: //KPixmapCache::RemoveStrategy
            switch(xop) {
                case Smoke::EnumNew:
                    xdata = (void*)new KPixmapCache::RemoveStrategy;
                    break;
                case Smoke::EnumDelete:
                    delete (KPixmapCache::RemoveStrategy*)xdata;
                    break;
                case Smoke::EnumFromLong:
                    *(KPixmapCache::RemoveStrategy*)xdata = (KPixmapCache::RemoveStrategy)xvalue;
                    break;
                case Smoke::EnumToLong:
                    xvalue = (long)*(KPixmapCache::RemoveStrategy*)xdata;
                    break;
            }
            break;
        }
    }
    ~x_KPixmapCache() { this->_binding->deleted(143, (void*)this); }
};
void xenum_KPixmapCache(Smoke::EnumOperation xop, Smoke::Index xtype, void *&xdata, long &xvalue) {
    x_KPixmapCache::xenum_operation(xop, xtype, xdata, xvalue);
}
void xcall_KPixmapCache(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_KPixmapCache *xself = (x_KPixmapCache*)obj;
    switch(xi) {
        case 0: xself->x_0(args);	break;
        case 1: x_KPixmapCache::x_1(args);	break;
        case 2: xself->x_2(args);	break;
        case 3: xself->x_3(args);	break;
        case 4: xself->x_4(args);	break;
        case 5: xself->x_5(args);	break;
        case 6: xself->x_6(args);	break;
        case 7: xself->x_7(args);	break;
        case 8: xself->x_8(args);	break;
        case 9: xself->x_9(args);	break;
        case 10: xself->x_10(args);	break;
        case 11: xself->x_11(args);	break;
        case 12: xself->x_12(args);	break;
        case 13: xself->x_13(args);	break;
        case 14: xself->x_14(args);	break;
        case 15: xself->x_15(args);	break;
        case 16: xself->x_16(args);	break;
        case 17: x_KPixmapCache::x_17(args);	break;
        case 18: xself->x_18(args);	break;
        case 19: xself->x_19(args);	break;
        case 20: xself->x_20(args);	break;
        case 21: xself->x_21(args);	break;
        case 22: xself->x_22(args);	break;
        case 23: xself->x_23(args);	break;
        case 24: xself->x_24(args);	break;
        case 25: xself->x_25(args);	break;
        case 26: xself->x_26(args);	break;
        case 27: x_KPixmapCache::x_27(args);	break;
        case 28: xself->x_28(args);	break;
        case 29: xself->x_29(args);	break;
        case 30: x_KPixmapCache::x_30(args);	break;
        case 31: x_KPixmapCache::x_31(args);	break;
        case 32: x_KPixmapCache::x_32(args);	break;
        case 33: delete (KPixmapCache*)xself;	break;
    }
}
class x_KPixmapProvider : public KPixmapProvider, public __internal_SmokeClass {
    SmokeBinding* _binding;
public:
    void x_0(Smoke::Stack x) {
        // set the smoke binding
        _binding = (SmokeBinding*)x[1].s_class;
    }
    void x_1(Smoke::Stack x) {
        // virtual QPixmap pixmapFor(const QString&, int) = 0
        QPixmap xret = this->pixmapFor(*(const QString*)x[1].s_class,(int)x[2].s_int);
        x[0].s_class = (void*)new QPixmap(xret);
    }
    static void x_2(Smoke::Stack x) {
        // KPixmapProvider* KPixmapProvider()
        x_KPixmapProvider* xret = new x_KPixmapProvider();
        x[0].s_class = (void*)xret;
    }
    explicit x_KPixmapProvider() : KPixmapProvider() {}
    static void x_3(Smoke::Stack x) {
        // KPixmapProvider* KPixmapProvider(const KPixmapProvider&)
        x_KPixmapProvider* xret = new x_KPixmapProvider(*(const KPixmapProvider*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_KPixmapProvider(const KPixmapProvider& x1) : KPixmapProvider(x1) {}
    void x_4(Smoke::Stack x) {
        // QPixmap pixmapFor(const QString&)
        QPixmap xret = this->pixmapFor(*(const QString*)x[1].s_class,(int)0);
        x[0].s_class = (void*)new QPixmap(xret);
    }
    virtual QPixmap pixmapFor(const QString& x1, int x2) {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)&x1;
        x[2].s_int = x2;
        this->_binding->callMethod(3968, (void*)this, x, true /*pure virtual*/);
        QPixmap* xptr = (QPixmap*)x[0].s_class;
        QPixmap xret(*xptr);
        delete xptr;
        return xret;
    }
    ~x_KPixmapProvider() { this->_binding->deleted(144, (void*)this); }
};
void xcall_KPixmapProvider(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_KPixmapProvider *xself = (x_KPixmapProvider*)obj;
    switch(xi) {
        case 0: xself->x_0(args);	break;
        case 1: xself->x_1(args);	break;
        case 2: x_KPixmapProvider::x_2(args);	break;
        case 3: x_KPixmapProvider::x_3(args);	break;
        case 4: xself->x_4(args);	break;
        case 5: delete (KPixmapProvider*)xself;	break;
    }
}
class x_KPixmapRegionSelectorDialog : public KPixmapRegionSelectorDialog, public __internal_SmokeClass {
    SmokeBinding* _binding;
public:
    void x_0(Smoke::Stack x) {
        // set the smoke binding
        _binding = (SmokeBinding*)x[1].s_class;
    }
    void x_1(Smoke::Stack x) {
        // virtual const QMetaObject* metaObject() const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KPixmapRegionSelectorDialog*>(this))) {
            const QMetaObject* xret = ((const x_KPixmapRegionSelectorDialog*)this)->KPixmapRegionSelectorDialog::metaObject();
            x[0].s_class = (void*)xret;
        } else {
            const QMetaObject* xret = ((const x_KPixmapRegionSelectorDialog*)this)->metaObject();
            x[0].s_class = (void*)xret;
        }
    }
    void x_2(Smoke::Stack x) {
        // virtual void* qt_metacast(const char*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KPixmapRegionSelectorDialog*>(this))) {
            void* xret = this->KPixmapRegionSelectorDialog::qt_metacast((const char*)x[1].s_class);
            x[0].s_class = (void*)xret;
        } else {
            void* xret = this->qt_metacast((const char*)x[1].s_class);
            x[0].s_class = (void*)xret;
        }
    }
    static void x_3(Smoke::Stack x) {
        // static QString tr(const char*, const char*)
        QString xret = KPixmapRegionSelectorDialog::tr((const char*)x[1].s_class,(const char*)x[2].s_class);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_4(Smoke::Stack x) {
        // static QString trUtf8(const char*, const char*)
        QString xret = KPixmapRegionSelectorDialog::trUtf8((const char*)x[1].s_class,(const char*)x[2].s_class);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_5(Smoke::Stack x) {
        // static QString tr(const char*, const char*, int)
        QString xret = KPixmapRegionSelectorDialog::tr((const char*)x[1].s_class,(const char*)x[2].s_class,(int)x[3].s_int);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_6(Smoke::Stack x) {
        // static QString trUtf8(const char*, const char*, int)
        QString xret = KPixmapRegionSelectorDialog::trUtf8((const char*)x[1].s_class,(const char*)x[2].s_class,(int)x[3].s_int);
        x[0].s_class = (void*)new QString(xret);
    }
    void x_7(Smoke::Stack x) {
        // virtual int qt_metacall(QMetaObject::Call, int, void**)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KPixmapRegionSelectorDialog*>(this))) {
            int xret = this->KPixmapRegionSelectorDialog::qt_metacall((QMetaObject::Call)x[1].s_enum,(int)x[2].s_int,(void**)x[3].s_class);
            x[0].s_int = xret;
        } else {
            int xret = this->qt_metacall((QMetaObject::Call)x[1].s_enum,(int)x[2].s_int,(void**)x[3].s_class);
            x[0].s_int = xret;
        }
    }
    static void x_8(Smoke::Stack x) {
        // KPixmapRegionSelectorDialog* KPixmapRegionSelectorDialog(QWidget*)
        x_KPixmapRegionSelectorDialog* xret = new x_KPixmapRegionSelectorDialog((QWidget*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_KPixmapRegionSelectorDialog(QWidget* x1) : KPixmapRegionSelectorDialog(x1) {}
    void x_9(Smoke::Stack x) {
        // KPixmapRegionSelectorWidget* pixmapRegionSelectorWidget() const
        KPixmapRegionSelectorWidget* xret = ((const x_KPixmapRegionSelectorDialog*)this)->KPixmapRegionSelectorDialog::pixmapRegionSelectorWidget();
        x[0].s_class = (void*)xret;
    }
    static void x_10(Smoke::Stack x) {
        // static QRect getSelectedRegion(const QPixmap&, QWidget*)
        QRect xret = KPixmapRegionSelectorDialog::getSelectedRegion(*(const QPixmap*)x[1].s_class,(QWidget*)x[2].s_class);
        x[0].s_class = (void*)new QRect(xret);
    }
    static void x_11(Smoke::Stack x) {
        // static QRect getSelectedRegion(const QPixmap&, int, int, QWidget*)
        QRect xret = KPixmapRegionSelectorDialog::getSelectedRegion(*(const QPixmap*)x[1].s_class,(int)x[2].s_int,(int)x[3].s_int,(QWidget*)x[4].s_class);
        x[0].s_class = (void*)new QRect(xret);
    }
    static void x_12(Smoke::Stack x) {
        // static QImage getSelectedImage(const QPixmap&, QWidget*)
        QImage xret = KPixmapRegionSelectorDialog::getSelectedImage(*(const QPixmap*)x[1].s_class,(QWidget*)x[2].s_class);
        x[0].s_class = (void*)new QImage(xret);
    }
    static void x_13(Smoke::Stack x) {
        // static QImage getSelectedImage(const QPixmap&, int, int, QWidget*)
        QImage xret = KPixmapRegionSelectorDialog::getSelectedImage(*(const QPixmap*)x[1].s_class,(int)x[2].s_int,(int)x[3].s_int,(QWidget*)x[4].s_class);
        x[0].s_class = (void*)new QImage(xret);
    }
    void x_14(Smoke::Stack x) {
        // void adjustRegionSelectorWidgetSizeToFitScreen()
        this->KPixmapRegionSelectorDialog::adjustRegionSelectorWidgetSizeToFitScreen();
        (void)x; // noop (for compiler warning)
    }
    static void x_15(Smoke::Stack x) {
        // static QString tr(const char*)
        QString xret = KPixmapRegionSelectorDialog::tr((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_16(Smoke::Stack x) {
        // static QString trUtf8(const char*)
        QString xret = KPixmapRegionSelectorDialog::trUtf8((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_17(Smoke::Stack x) {
        // KPixmapRegionSelectorDialog* KPixmapRegionSelectorDialog()
        x_KPixmapRegionSelectorDialog* xret = new x_KPixmapRegionSelectorDialog((QWidget*)0);
        x[0].s_class = (void*)xret;
    }
    static void x_18(Smoke::Stack x) {
        // static QRect getSelectedRegion(const QPixmap&)
        QRect xret = KPixmapRegionSelectorDialog::getSelectedRegion(*(const QPixmap*)x[1].s_class,(QWidget*)0L);
        x[0].s_class = (void*)new QRect(xret);
    }
    static void x_19(Smoke::Stack x) {
        // static QRect getSelectedRegion(const QPixmap&, int, int)
        QRect xret = KPixmapRegionSelectorDialog::getSelectedRegion(*(const QPixmap*)x[1].s_class,(int)x[2].s_int,(int)x[3].s_int,(QWidget*)0L);
        x[0].s_class = (void*)new QRect(xret);
    }
    static void x_20(Smoke::Stack x) {
        // static QImage getSelectedImage(const QPixmap&)
        QImage xret = KPixmapRegionSelectorDialog::getSelectedImage(*(const QPixmap*)x[1].s_class,(QWidget*)0L);
        x[0].s_class = (void*)new QImage(xret);
    }
    static void x_21(Smoke::Stack x) {
        // static QImage getSelectedImage(const QPixmap&, int, int)
        QImage xret = KPixmapRegionSelectorDialog::getSelectedImage(*(const QPixmap*)x[1].s_class,(int)x[2].s_int,(int)x[3].s_int,(QWidget*)0L);
        x[0].s_class = (void*)new QImage(xret);
    }
    static void x_22(Smoke::Stack x) {
        // static const QMetaObject staticMetaObject
        x[0].s_class = (void*)&KPixmapRegionSelectorDialog::staticMetaObject;
    }
    virtual const QMetaObject* metaObject() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(3973, (void*)this, x)) return (const QMetaObject*)x[0].s_class;
        return this->KPixmapRegionSelectorDialog::metaObject();
    }
    virtual void* qt_metacast(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(3974, (void*)this, x)) return (void*)x[0].s_class;
        return this->KPixmapRegionSelectorDialog::qt_metacast(x1);
    }
    virtual int qt_metacall(QMetaObject::Call x1, int x2, void** x3) {
        Smoke::StackItem x[4];
        x[1].s_enum = x1;
        x[2].s_int = x2;
        x[3].s_class = (void*)x3;
        if (this->_binding->callMethod(3979, (void*)this, x)) return (int)x[0].s_int;
        return this->KPixmapRegionSelectorDialog::qt_metacall(x1, x2, x3);
    }
    virtual QSize sizeHint() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(1448, (void*)this, x)) {
            QSize* xptr = (QSize*)x[0].s_class;
            QSize xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->KDialog::sizeHint();
    }
    virtual QSize minimumSizeHint() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(1449, (void*)this, x)) {
            QSize* xptr = (QSize*)x[0].s_class;
            QSize xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->KDialog::minimumSizeHint();
    }
    virtual void setCaption(const QString& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(1451, (void*)this, x)) return;
        this->KDialog::setCaption(x1);
    }
    virtual void setCaption(const QString& x1, bool x2) {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)&x1;
        x[2].s_bool = x2;
        if (this->_binding->callMethod(1452, (void*)this, x)) return;
        this->KDialog::setCaption(x1, x2);
    }
    virtual void setPlainCaption(const QString& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(1453, (void*)this, x)) return;
        this->KDialog::setPlainCaption(x1);
    }
    virtual void hideEvent(QHideEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(1483, (void*)this, x)) return;
        this->KDialog::hideEvent(x1);
    }
    virtual void closeEvent(QCloseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(1484, (void*)this, x)) return;
        this->KDialog::closeEvent(x1);
    }
    virtual void keyPressEvent(QKeyEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(1485, (void*)this, x)) return;
        this->KDialog::keyPressEvent(x1);
    }
    virtual void slotButtonClicked(int x1) {
        Smoke::StackItem x[2];
        x[1].s_int = x1;
        if (this->_binding->callMethod(1486, (void*)this, x)) return;
        this->KDialog::slotButtonClicked(x1);
    }
    virtual void done(int x1) {
        Smoke::StackItem x[2];
        x[1].s_int = x1;
        if (this->_binding->callMethod(7371, (void*)this, x)) return;
        this->QDialog::done(x1);
    }
    virtual void accept() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7372, (void*)this, x)) return;
        this->QDialog::accept();
    }
    virtual void reject() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7373, (void*)this, x)) return;
        this->QDialog::reject();
    }
    virtual void setVisible(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(7370, (void*)this, x)) return;
        this->QDialog::setVisible(x1);
    }
    virtual int heightForWidth(int x1) const {
        Smoke::StackItem x[2];
        x[1].s_int = x1;
        if (this->_binding->callMethod(7793, (void*)this, x)) return (int)x[0].s_int;
        return this->QWidget::heightForWidth(x1);
    }
    virtual void mousePressEvent(QMouseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7796, (void*)this, x)) return;
        this->QWidget::mousePressEvent(x1);
    }
    virtual void mouseReleaseEvent(QMouseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7797, (void*)this, x)) return;
        this->QWidget::mouseReleaseEvent(x1);
    }
    virtual void mouseDoubleClickEvent(QMouseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7798, (void*)this, x)) return;
        this->QWidget::mouseDoubleClickEvent(x1);
    }
    virtual void mouseMoveEvent(QMouseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7799, (void*)this, x)) return;
        this->QWidget::mouseMoveEvent(x1);
    }
    virtual void wheelEvent(QWheelEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7800, (void*)this, x)) return;
        this->QWidget::wheelEvent(x1);
    }
    virtual void keyReleaseEvent(QKeyEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7802, (void*)this, x)) return;
        this->QWidget::keyReleaseEvent(x1);
    }
    virtual void focusInEvent(QFocusEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7803, (void*)this, x)) return;
        this->QWidget::focusInEvent(x1);
    }
    virtual void focusOutEvent(QFocusEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7804, (void*)this, x)) return;
        this->QWidget::focusOutEvent(x1);
    }
    virtual void enterEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7805, (void*)this, x)) return;
        this->QWidget::enterEvent(x1);
    }
    virtual void leaveEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7806, (void*)this, x)) return;
        this->QWidget::leaveEvent(x1);
    }
    virtual void paintEvent(QPaintEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7807, (void*)this, x)) return;
        this->QWidget::paintEvent(x1);
    }
    virtual void moveEvent(QMoveEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7808, (void*)this, x)) return;
        this->QWidget::moveEvent(x1);
    }
    virtual void resizeEvent(QResizeEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7375, (void*)this, x)) return;
        this->QDialog::resizeEvent(x1);
    }
    virtual void contextMenuEvent(QContextMenuEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7376, (void*)this, x)) return;
        this->QDialog::contextMenuEvent(x1);
    }
    virtual void tabletEvent(QTabletEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7812, (void*)this, x)) return;
        this->QWidget::tabletEvent(x1);
    }
    virtual void actionEvent(QActionEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7813, (void*)this, x)) return;
        this->QWidget::actionEvent(x1);
    }
    virtual void dragEnterEvent(QDragEnterEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7814, (void*)this, x)) return;
        this->QWidget::dragEnterEvent(x1);
    }
    virtual void dragMoveEvent(QDragMoveEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7815, (void*)this, x)) return;
        this->QWidget::dragMoveEvent(x1);
    }
    virtual void dragLeaveEvent(QDragLeaveEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7816, (void*)this, x)) return;
        this->QWidget::dragLeaveEvent(x1);
    }
    virtual void dropEvent(QDropEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7817, (void*)this, x)) return;
        this->QWidget::dropEvent(x1);
    }
    virtual void showEvent(QShowEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7374, (void*)this, x)) return;
        this->QDialog::showEvent(x1);
    }
    virtual bool x11Event(_XEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7820, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QWidget::x11Event(x1);
    }
    virtual void changeEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7821, (void*)this, x)) return;
        this->QWidget::changeEvent(x1);
    }
    virtual void inputMethodEvent(QInputMethodEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7823, (void*)this, x)) return;
        this->QWidget::inputMethodEvent(x1);
    }
    virtual QVariant inputMethodQuery(Qt::InputMethodQuery x1) const {
        Smoke::StackItem x[2];
        x[1].s_enum = x1;
        if (this->_binding->callMethod(7824, (void*)this, x)) {
            QVariant* xptr = (QVariant*)x[0].s_class;
            QVariant xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QWidget::inputMethodQuery(x1);
    }
    virtual bool focusNextPrevChild(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(7825, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QWidget::focusNextPrevChild(x1);
    }
    virtual void styleChange(QStyle& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(7826, (void*)this, x)) return;
        this->QWidget::styleChange(x1);
    }
    virtual void enabledChange(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(7827, (void*)this, x)) return;
        this->QWidget::enabledChange(x1);
    }
    virtual void paletteChange(const QPalette& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(7828, (void*)this, x)) return;
        this->QWidget::paletteChange(x1);
    }
    virtual void fontChange(const QFont& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(7829, (void*)this, x)) return;
        this->QWidget::fontChange(x1);
    }
    virtual void windowActivationChange(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(7830, (void*)this, x)) return;
        this->QWidget::windowActivationChange(x1);
    }
    virtual void languageChange() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7831, (void*)this, x)) return;
        this->QWidget::languageChange();
    }
    virtual bool event(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7795, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QWidget::event(x1);
    }
    virtual bool eventFilter(QObject* x1, QEvent* x2) {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)x1;
        x[2].s_class = (void*)x2;
        if (this->_binding->callMethod(7377, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QDialog::eventFilter(x1, x2);
    }
    virtual void timerEvent(QTimerEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7577, (void*)this, x)) return;
        this->QObject::timerEvent(x1);
    }
    virtual void childEvent(QChildEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7578, (void*)this, x)) return;
        this->QObject::childEvent(x1);
    }
    virtual void customEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7579, (void*)this, x)) return;
        this->QObject::customEvent(x1);
    }
    virtual void connectNotify(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7580, (void*)this, x)) return;
        this->QObject::connectNotify(x1);
    }
    virtual void disconnectNotify(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7581, (void*)this, x)) return;
        this->QObject::disconnectNotify(x1);
    }
    virtual int devType() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7789, (void*)this, x)) return (int)x[0].s_int;
        return this->QWidget::devType();
    }
    virtual QPaintEngine* paintEngine() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7794, (void*)this, x)) return (QPaintEngine*)x[0].s_class;
        return this->QWidget::paintEngine();
    }
    virtual int metric(QPaintDevice::PaintDeviceMetric x1) const {
        Smoke::StackItem x[2];
        x[1].s_enum = x1;
        if (this->_binding->callMethod(7822, (void*)this, x)) return (int)x[0].s_int;
        return this->QWidget::metric(x1);
    }
    ~x_KPixmapRegionSelectorDialog() { this->_binding->deleted(145, (void*)this); }
};
void xcall_KPixmapRegionSelectorDialog(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_KPixmapRegionSelectorDialog *xself = (x_KPixmapRegionSelectorDialog*)obj;
    switch(xi) {
        case 0: xself->x_0(args);	break;
        case 1: xself->x_1(args);	break;
        case 2: xself->x_2(args);	break;
        case 3: x_KPixmapRegionSelectorDialog::x_3(args);	break;
        case 4: x_KPixmapRegionSelectorDialog::x_4(args);	break;
        case 5: x_KPixmapRegionSelectorDialog::x_5(args);	break;
        case 6: x_KPixmapRegionSelectorDialog::x_6(args);	break;
        case 7: xself->x_7(args);	break;
        case 8: x_KPixmapRegionSelectorDialog::x_8(args);	break;
        case 9: xself->x_9(args);	break;
        case 10: x_KPixmapRegionSelectorDialog::x_10(args);	break;
        case 11: x_KPixmapRegionSelectorDialog::x_11(args);	break;
        case 12: x_KPixmapRegionSelectorDialog::x_12(args);	break;
        case 13: x_KPixmapRegionSelectorDialog::x_13(args);	break;
        case 14: xself->x_14(args);	break;
        case 15: x_KPixmapRegionSelectorDialog::x_15(args);	break;
        case 16: x_KPixmapRegionSelectorDialog::x_16(args);	break;
        case 17: x_KPixmapRegionSelectorDialog::x_17(args);	break;
        case 18: x_KPixmapRegionSelectorDialog::x_18(args);	break;
        case 19: x_KPixmapRegionSelectorDialog::x_19(args);	break;
        case 20: x_KPixmapRegionSelectorDialog::x_20(args);	break;
        case 21: x_KPixmapRegionSelectorDialog::x_21(args);	break;
        case 22: x_KPixmapRegionSelectorDialog::x_22(args);	break;
        case 23: delete (KPixmapRegionSelectorDialog*)xself;	break;
    }
}
class x_KPixmapRegionSelectorWidget : public KPixmapRegionSelectorWidget, public __internal_SmokeClass {
    SmokeBinding* _binding;
public:
    void x_0(Smoke::Stack x) {
        // set the smoke binding
        _binding = (SmokeBinding*)x[1].s_class;
    }
    void x_1(Smoke::Stack x) {
        // virtual const QMetaObject* metaObject() const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KPixmapRegionSelectorWidget*>(this))) {
            const QMetaObject* xret = ((const x_KPixmapRegionSelectorWidget*)this)->KPixmapRegionSelectorWidget::metaObject();
            x[0].s_class = (void*)xret;
        } else {
            const QMetaObject* xret = ((const x_KPixmapRegionSelectorWidget*)this)->metaObject();
            x[0].s_class = (void*)xret;
        }
    }
    void x_2(Smoke::Stack x) {
        // virtual void* qt_metacast(const char*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KPixmapRegionSelectorWidget*>(this))) {
            void* xret = this->KPixmapRegionSelectorWidget::qt_metacast((const char*)x[1].s_class);
            x[0].s_class = (void*)xret;
        } else {
            void* xret = this->qt_metacast((const char*)x[1].s_class);
            x[0].s_class = (void*)xret;
        }
    }
    static void x_3(Smoke::Stack x) {
        // static QString tr(const char*, const char*)
        QString xret = KPixmapRegionSelectorWidget::tr((const char*)x[1].s_class,(const char*)x[2].s_class);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_4(Smoke::Stack x) {
        // static QString trUtf8(const char*, const char*)
        QString xret = KPixmapRegionSelectorWidget::trUtf8((const char*)x[1].s_class,(const char*)x[2].s_class);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_5(Smoke::Stack x) {
        // static QString tr(const char*, const char*, int)
        QString xret = KPixmapRegionSelectorWidget::tr((const char*)x[1].s_class,(const char*)x[2].s_class,(int)x[3].s_int);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_6(Smoke::Stack x) {
        // static QString trUtf8(const char*, const char*, int)
        QString xret = KPixmapRegionSelectorWidget::trUtf8((const char*)x[1].s_class,(const char*)x[2].s_class,(int)x[3].s_int);
        x[0].s_class = (void*)new QString(xret);
    }
    void x_7(Smoke::Stack x) {
        // virtual int qt_metacall(QMetaObject::Call, int, void**)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KPixmapRegionSelectorWidget*>(this))) {
            int xret = this->KPixmapRegionSelectorWidget::qt_metacall((QMetaObject::Call)x[1].s_enum,(int)x[2].s_int,(void**)x[3].s_class);
            x[0].s_int = xret;
        } else {
            int xret = this->qt_metacall((QMetaObject::Call)x[1].s_enum,(int)x[2].s_int,(void**)x[3].s_class);
            x[0].s_int = xret;
        }
    }
    static void x_8(Smoke::Stack x) {
        // KPixmapRegionSelectorWidget* KPixmapRegionSelectorWidget(QWidget*)
        x_KPixmapRegionSelectorWidget* xret = new x_KPixmapRegionSelectorWidget((QWidget*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_KPixmapRegionSelectorWidget(QWidget* x1) : KPixmapRegionSelectorWidget(x1) {}
    void x_9(Smoke::Stack x) {
        // void setPixmap(const QPixmap&)
        this->KPixmapRegionSelectorWidget::setPixmap(*(const QPixmap*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_10(Smoke::Stack x) {
        // QPixmap pixmap() const
        QPixmap xret = ((const x_KPixmapRegionSelectorWidget*)this)->KPixmapRegionSelectorWidget::pixmap();
        x[0].s_class = (void*)new QPixmap(xret);
    }
    void x_11(Smoke::Stack x) {
        // void setSelectedRegion(const QRect&)
        this->KPixmapRegionSelectorWidget::setSelectedRegion(*(const QRect*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_12(Smoke::Stack x) {
        // QRect selectedRegion() const
        QRect xret = ((const x_KPixmapRegionSelectorWidget*)this)->KPixmapRegionSelectorWidget::selectedRegion();
        x[0].s_class = (void*)new QRect(xret);
    }
    void x_13(Smoke::Stack x) {
        // QRect unzoomedSelectedRegion() const
        QRect xret = ((const x_KPixmapRegionSelectorWidget*)this)->KPixmapRegionSelectorWidget::unzoomedSelectedRegion();
        x[0].s_class = (void*)new QRect(xret);
    }
    void x_14(Smoke::Stack x) {
        // void resetSelection()
        this->KPixmapRegionSelectorWidget::resetSelection();
        (void)x; // noop (for compiler warning)
    }
    void x_15(Smoke::Stack x) {
        // QImage selectedImage() const
        QImage xret = ((const x_KPixmapRegionSelectorWidget*)this)->KPixmapRegionSelectorWidget::selectedImage();
        x[0].s_class = (void*)new QImage(xret);
    }
    void x_16(Smoke::Stack x) {
        // void setSelectionAspectRatio(int, int)
        this->KPixmapRegionSelectorWidget::setSelectionAspectRatio((int)x[1].s_int,(int)x[2].s_int);
        (void)x; // noop (for compiler warning)
    }
    void x_17(Smoke::Stack x) {
        // void setFreeSelectionAspectRatio()
        this->KPixmapRegionSelectorWidget::setFreeSelectionAspectRatio();
        (void)x; // noop (for compiler warning)
    }
    void x_18(Smoke::Stack x) {
        // void setMaximumWidgetSize(int, int)
        this->KPixmapRegionSelectorWidget::setMaximumWidgetSize((int)x[1].s_int,(int)x[2].s_int);
        (void)x; // noop (for compiler warning)
    }
    void x_19(Smoke::Stack x) {
        // void rotate(KPixmapRegionSelectorWidget::RotateDirection)
        this->KPixmapRegionSelectorWidget::rotate((KPixmapRegionSelectorWidget::RotateDirection)x[1].s_enum);
        (void)x; // noop (for compiler warning)
    }
    void x_20(Smoke::Stack x) {
        // void rotateClockwise()
        this->KPixmapRegionSelectorWidget::rotateClockwise();
        (void)x; // noop (for compiler warning)
    }
    void x_21(Smoke::Stack x) {
        // void rotateCounterclockwise()
        this->KPixmapRegionSelectorWidget::rotateCounterclockwise();
        (void)x; // noop (for compiler warning)
    }
    void x_22(Smoke::Stack x) {
        // void pixmapRotated()
        this->KPixmapRegionSelectorWidget::pixmapRotated();
        (void)x; // noop (for compiler warning)
    }
    void x_23(Smoke::Stack x) {
        // virtual KMenu* createPopupMenu()
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KPixmapRegionSelectorWidget*>(this))) {
            KMenu* xret = this->KPixmapRegionSelectorWidget::createPopupMenu();
            x[0].s_class = (void*)xret;
        } else {
            KMenu* xret = this->createPopupMenu();
            x[0].s_class = (void*)xret;
        }
    }
    static void x_24(Smoke::Stack x) {
        // static QString tr(const char*)
        QString xret = KPixmapRegionSelectorWidget::tr((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_25(Smoke::Stack x) {
        // static QString trUtf8(const char*)
        QString xret = KPixmapRegionSelectorWidget::trUtf8((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_26(Smoke::Stack x) {
        // KPixmapRegionSelectorWidget* KPixmapRegionSelectorWidget()
        x_KPixmapRegionSelectorWidget* xret = new x_KPixmapRegionSelectorWidget((QWidget*)0);
        x[0].s_class = (void*)xret;
    }
    static void x_27(Smoke::Stack x) {
        // static const QMetaObject staticMetaObject
        x[0].s_class = (void*)&KPixmapRegionSelectorWidget::staticMetaObject;
    }
    static void x_28(Smoke::Stack x) {
        x[0].s_enum = (long)KPixmapRegionSelectorWidget::Rotate90;
    }
    static void x_29(Smoke::Stack x) {
        x[0].s_enum = (long)KPixmapRegionSelectorWidget::Rotate180;
    }
    static void x_30(Smoke::Stack x) {
        x[0].s_enum = (long)KPixmapRegionSelectorWidget::Rotate270;
    }
    virtual const QMetaObject* metaObject() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(3996, (void*)this, x)) return (const QMetaObject*)x[0].s_class;
        return this->KPixmapRegionSelectorWidget::metaObject();
    }
    virtual void* qt_metacast(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(3997, (void*)this, x)) return (void*)x[0].s_class;
        return this->KPixmapRegionSelectorWidget::qt_metacast(x1);
    }
    virtual int qt_metacall(QMetaObject::Call x1, int x2, void** x3) {
        Smoke::StackItem x[4];
        x[1].s_enum = x1;
        x[2].s_int = x2;
        x[3].s_class = (void*)x3;
        if (this->_binding->callMethod(4002, (void*)this, x)) return (int)x[0].s_int;
        return this->KPixmapRegionSelectorWidget::qt_metacall(x1, x2, x3);
    }
    virtual KMenu* createPopupMenu() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(4018, (void*)this, x)) return (KMenu*)x[0].s_class;
        return this->KPixmapRegionSelectorWidget::createPopupMenu();
    }
    virtual void setVisible(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(7790, (void*)this, x)) return;
        this->QWidget::setVisible(x1);
    }
    virtual QSize sizeHint() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7791, (void*)this, x)) {
            QSize* xptr = (QSize*)x[0].s_class;
            QSize xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QWidget::sizeHint();
    }
    virtual QSize minimumSizeHint() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7792, (void*)this, x)) {
            QSize* xptr = (QSize*)x[0].s_class;
            QSize xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QWidget::minimumSizeHint();
    }
    virtual int heightForWidth(int x1) const {
        Smoke::StackItem x[2];
        x[1].s_int = x1;
        if (this->_binding->callMethod(7793, (void*)this, x)) return (int)x[0].s_int;
        return this->QWidget::heightForWidth(x1);
    }
    virtual void mousePressEvent(QMouseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7796, (void*)this, x)) return;
        this->QWidget::mousePressEvent(x1);
    }
    virtual void mouseReleaseEvent(QMouseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7797, (void*)this, x)) return;
        this->QWidget::mouseReleaseEvent(x1);
    }
    virtual void mouseDoubleClickEvent(QMouseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7798, (void*)this, x)) return;
        this->QWidget::mouseDoubleClickEvent(x1);
    }
    virtual void mouseMoveEvent(QMouseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7799, (void*)this, x)) return;
        this->QWidget::mouseMoveEvent(x1);
    }
    virtual void wheelEvent(QWheelEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7800, (void*)this, x)) return;
        this->QWidget::wheelEvent(x1);
    }
    virtual void keyPressEvent(QKeyEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7801, (void*)this, x)) return;
        this->QWidget::keyPressEvent(x1);
    }
    virtual void keyReleaseEvent(QKeyEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7802, (void*)this, x)) return;
        this->QWidget::keyReleaseEvent(x1);
    }
    virtual void focusInEvent(QFocusEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7803, (void*)this, x)) return;
        this->QWidget::focusInEvent(x1);
    }
    virtual void focusOutEvent(QFocusEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7804, (void*)this, x)) return;
        this->QWidget::focusOutEvent(x1);
    }
    virtual void enterEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7805, (void*)this, x)) return;
        this->QWidget::enterEvent(x1);
    }
    virtual void leaveEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7806, (void*)this, x)) return;
        this->QWidget::leaveEvent(x1);
    }
    virtual void paintEvent(QPaintEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7807, (void*)this, x)) return;
        this->QWidget::paintEvent(x1);
    }
    virtual void moveEvent(QMoveEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7808, (void*)this, x)) return;
        this->QWidget::moveEvent(x1);
    }
    virtual void resizeEvent(QResizeEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7809, (void*)this, x)) return;
        this->QWidget::resizeEvent(x1);
    }
    virtual void closeEvent(QCloseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7810, (void*)this, x)) return;
        this->QWidget::closeEvent(x1);
    }
    virtual void contextMenuEvent(QContextMenuEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7811, (void*)this, x)) return;
        this->QWidget::contextMenuEvent(x1);
    }
    virtual void tabletEvent(QTabletEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7812, (void*)this, x)) return;
        this->QWidget::tabletEvent(x1);
    }
    virtual void actionEvent(QActionEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7813, (void*)this, x)) return;
        this->QWidget::actionEvent(x1);
    }
    virtual void dragEnterEvent(QDragEnterEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7814, (void*)this, x)) return;
        this->QWidget::dragEnterEvent(x1);
    }
    virtual void dragMoveEvent(QDragMoveEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7815, (void*)this, x)) return;
        this->QWidget::dragMoveEvent(x1);
    }
    virtual void dragLeaveEvent(QDragLeaveEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7816, (void*)this, x)) return;
        this->QWidget::dragLeaveEvent(x1);
    }
    virtual void dropEvent(QDropEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7817, (void*)this, x)) return;
        this->QWidget::dropEvent(x1);
    }
    virtual void showEvent(QShowEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7818, (void*)this, x)) return;
        this->QWidget::showEvent(x1);
    }
    virtual void hideEvent(QHideEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7819, (void*)this, x)) return;
        this->QWidget::hideEvent(x1);
    }
    virtual bool x11Event(_XEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7820, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QWidget::x11Event(x1);
    }
    virtual void changeEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7821, (void*)this, x)) return;
        this->QWidget::changeEvent(x1);
    }
    virtual void inputMethodEvent(QInputMethodEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7823, (void*)this, x)) return;
        this->QWidget::inputMethodEvent(x1);
    }
    virtual QVariant inputMethodQuery(Qt::InputMethodQuery x1) const {
        Smoke::StackItem x[2];
        x[1].s_enum = x1;
        if (this->_binding->callMethod(7824, (void*)this, x)) {
            QVariant* xptr = (QVariant*)x[0].s_class;
            QVariant xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QWidget::inputMethodQuery(x1);
    }
    virtual bool focusNextPrevChild(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(7825, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QWidget::focusNextPrevChild(x1);
    }
    virtual void styleChange(QStyle& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(7826, (void*)this, x)) return;
        this->QWidget::styleChange(x1);
    }
    virtual void enabledChange(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(7827, (void*)this, x)) return;
        this->QWidget::enabledChange(x1);
    }
    virtual void paletteChange(const QPalette& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(7828, (void*)this, x)) return;
        this->QWidget::paletteChange(x1);
    }
    virtual void fontChange(const QFont& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(7829, (void*)this, x)) return;
        this->QWidget::fontChange(x1);
    }
    virtual void windowActivationChange(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(7830, (void*)this, x)) return;
        this->QWidget::windowActivationChange(x1);
    }
    virtual void languageChange() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7831, (void*)this, x)) return;
        this->QWidget::languageChange();
    }
    virtual bool event(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7795, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QWidget::event(x1);
    }
    virtual void timerEvent(QTimerEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7577, (void*)this, x)) return;
        this->QObject::timerEvent(x1);
    }
    virtual void childEvent(QChildEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7578, (void*)this, x)) return;
        this->QObject::childEvent(x1);
    }
    virtual void customEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7579, (void*)this, x)) return;
        this->QObject::customEvent(x1);
    }
    virtual void connectNotify(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7580, (void*)this, x)) return;
        this->QObject::connectNotify(x1);
    }
    virtual void disconnectNotify(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7581, (void*)this, x)) return;
        this->QObject::disconnectNotify(x1);
    }
    virtual int devType() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7789, (void*)this, x)) return (int)x[0].s_int;
        return this->QWidget::devType();
    }
    virtual QPaintEngine* paintEngine() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7794, (void*)this, x)) return (QPaintEngine*)x[0].s_class;
        return this->QWidget::paintEngine();
    }
    virtual int metric(QPaintDevice::PaintDeviceMetric x1) const {
        Smoke::StackItem x[2];
        x[1].s_enum = x1;
        if (this->_binding->callMethod(7822, (void*)this, x)) return (int)x[0].s_int;
        return this->QWidget::metric(x1);
    }
    static void xenum_operation(Smoke::EnumOperation xop, Smoke::Index xtype, void *&xdata, long &xvalue) {
        switch(xtype) {
        case 228: //KPixmapRegionSelectorWidget::RotateDirection
            switch(xop) {
                case Smoke::EnumNew:
                    xdata = (void*)new KPixmapRegionSelectorWidget::RotateDirection;
                    break;
                case Smoke::EnumDelete:
                    delete (KPixmapRegionSelectorWidget::RotateDirection*)xdata;
                    break;
                case Smoke::EnumFromLong:
                    *(KPixmapRegionSelectorWidget::RotateDirection*)xdata = (KPixmapRegionSelectorWidget::RotateDirection)xvalue;
                    break;
                case Smoke::EnumToLong:
                    xvalue = (long)*(KPixmapRegionSelectorWidget::RotateDirection*)xdata;
                    break;
            }
            break;
        }
    }
    ~x_KPixmapRegionSelectorWidget() { this->_binding->deleted(146, (void*)this); }
};
void xenum_KPixmapRegionSelectorWidget(Smoke::EnumOperation xop, Smoke::Index xtype, void *&xdata, long &xvalue) {
    x_KPixmapRegionSelectorWidget::xenum_operation(xop, xtype, xdata, xvalue);
}
void xcall_KPixmapRegionSelectorWidget(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_KPixmapRegionSelectorWidget *xself = (x_KPixmapRegionSelectorWidget*)obj;
    switch(xi) {
        case 0: xself->x_0(args);	break;
        case 1: xself->x_1(args);	break;
        case 2: xself->x_2(args);	break;
        case 3: x_KPixmapRegionSelectorWidget::x_3(args);	break;
        case 4: x_KPixmapRegionSelectorWidget::x_4(args);	break;
        case 5: x_KPixmapRegionSelectorWidget::x_5(args);	break;
        case 6: x_KPixmapRegionSelectorWidget::x_6(args);	break;
        case 7: xself->x_7(args);	break;
        case 8: x_KPixmapRegionSelectorWidget::x_8(args);	break;
        case 9: xself->x_9(args);	break;
        case 10: xself->x_10(args);	break;
        case 11: xself->x_11(args);	break;
        case 12: xself->x_12(args);	break;
        case 13: xself->x_13(args);	break;
        case 14: xself->x_14(args);	break;
        case 15: xself->x_15(args);	break;
        case 16: xself->x_16(args);	break;
        case 17: xself->x_17(args);	break;
        case 18: xself->x_18(args);	break;
        case 19: xself->x_19(args);	break;
        case 20: xself->x_20(args);	break;
        case 21: xself->x_21(args);	break;
        case 22: xself->x_22(args);	break;
        case 23: xself->x_23(args);	break;
        case 24: x_KPixmapRegionSelectorWidget::x_24(args);	break;
        case 25: x_KPixmapRegionSelectorWidget::x_25(args);	break;
        case 26: x_KPixmapRegionSelectorWidget::x_26(args);	break;
        case 27: x_KPixmapRegionSelectorWidget::x_27(args);	break;
        case 28: x_KPixmapRegionSelectorWidget::x_28(args);	break;
        case 29: x_KPixmapRegionSelectorWidget::x_29(args);	break;
        case 30: x_KPixmapRegionSelectorWidget::x_30(args);	break;
        case 31: delete (KPixmapRegionSelectorWidget*)xself;	break;
    }
}
class x_KPixmapSequence : public KPixmapSequence {
    SmokeBinding* _binding;
public:
    void x_0(Smoke::Stack x) {
        // set the smoke binding
        _binding = (SmokeBinding*)x[1].s_class;
    }
    static void x_1(Smoke::Stack x) {
        // KPixmapSequence* KPixmapSequence()
        x_KPixmapSequence* xret = new x_KPixmapSequence();
        x[0].s_class = (void*)xret;
    }
    explicit x_KPixmapSequence() : KPixmapSequence() {}
    static void x_2(Smoke::Stack x) {
        // KPixmapSequence* KPixmapSequence(const KPixmapSequence&)
        x_KPixmapSequence* xret = new x_KPixmapSequence(*(const KPixmapSequence*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_KPixmapSequence(const KPixmapSequence& x1) : KPixmapSequence(x1) {}
    static void x_3(Smoke::Stack x) {
        // KPixmapSequence* KPixmapSequence(const QPixmap&, const QSize&)
        x_KPixmapSequence* xret = new x_KPixmapSequence(*(const QPixmap*)x[1].s_class,*(const QSize*)x[2].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_KPixmapSequence(const QPixmap& x1, const QSize& x2) : KPixmapSequence(x1, x2) {}
    static void x_4(Smoke::Stack x) {
        // KPixmapSequence* KPixmapSequence(const QString&, int)
        x_KPixmapSequence* xret = new x_KPixmapSequence(*(const QString*)x[1].s_class,(int)x[2].s_int);
        x[0].s_class = (void*)xret;
    }
    explicit x_KPixmapSequence(const QString& x1, int x2) : KPixmapSequence(x1, x2) {}
    void x_5(Smoke::Stack x) {
        // KPixmapSequence& operator=(const KPixmapSequence&)
        KPixmapSequence& xret = this->KPixmapSequence::operator=(*(const KPixmapSequence*)x[1].s_class);
        x[0].s_class = (void*)&xret;
    }
    void x_6(Smoke::Stack x) {
        // bool isValid() const
        bool xret = ((const x_KPixmapSequence*)this)->KPixmapSequence::isValid();
        x[0].s_bool = xret;
    }
    void x_7(Smoke::Stack x) {
        // bool isEmpty() const
        bool xret = ((const x_KPixmapSequence*)this)->KPixmapSequence::isEmpty();
        x[0].s_bool = xret;
    }
    void x_8(Smoke::Stack x) {
        // QSize frameSize() const
        QSize xret = ((const x_KPixmapSequence*)this)->KPixmapSequence::frameSize();
        x[0].s_class = (void*)new QSize(xret);
    }
    void x_9(Smoke::Stack x) {
        // int frameCount() const
        int xret = ((const x_KPixmapSequence*)this)->KPixmapSequence::frameCount();
        x[0].s_int = xret;
    }
    void x_10(Smoke::Stack x) {
        // QPixmap frameAt(int) const
        QPixmap xret = ((const x_KPixmapSequence*)this)->KPixmapSequence::frameAt((int)x[1].s_int);
        x[0].s_class = (void*)new QPixmap(xret);
    }
    static void x_11(Smoke::Stack x) {
        // KPixmapSequence* KPixmapSequence(const QPixmap&)
        x_KPixmapSequence* xret = new x_KPixmapSequence(*(const QPixmap*)x[1].s_class,(const QSize&)QSize());
        x[0].s_class = (void*)xret;
    }
    static void x_12(Smoke::Stack x) {
        // KPixmapSequence* KPixmapSequence(const QString&)
        x_KPixmapSequence* xret = new x_KPixmapSequence(*(const QString*)x[1].s_class,(int)KIconLoader::SizeSmall);
        x[0].s_class = (void*)xret;
    }
    ~x_KPixmapSequence() { this->_binding->deleted(147, (void*)this); }
};
void xcall_KPixmapSequence(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_KPixmapSequence *xself = (x_KPixmapSequence*)obj;
    switch(xi) {
        case 0: xself->x_0(args);	break;
        case 1: x_KPixmapSequence::x_1(args);	break;
        case 2: x_KPixmapSequence::x_2(args);	break;
        case 3: x_KPixmapSequence::x_3(args);	break;
        case 4: x_KPixmapSequence::x_4(args);	break;
        case 5: xself->x_5(args);	break;
        case 6: xself->x_6(args);	break;
        case 7: xself->x_7(args);	break;
        case 8: xself->x_8(args);	break;
        case 9: xself->x_9(args);	break;
        case 10: xself->x_10(args);	break;
        case 11: x_KPixmapSequence::x_11(args);	break;
        case 12: x_KPixmapSequence::x_12(args);	break;
        case 13: delete (KPixmapSequence*)xself;	break;
    }
}
class x_KPixmapSequenceOverlayPainter : public KPixmapSequenceOverlayPainter, public __internal_SmokeClass {
    SmokeBinding* _binding;
public:
    void x_0(Smoke::Stack x) {
        // set the smoke binding
        _binding = (SmokeBinding*)x[1].s_class;
    }
    void x_1(Smoke::Stack x) {
        // virtual const QMetaObject* metaObject() const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KPixmapSequenceOverlayPainter*>(this))) {
            const QMetaObject* xret = ((const x_KPixmapSequenceOverlayPainter*)this)->KPixmapSequenceOverlayPainter::metaObject();
            x[0].s_class = (void*)xret;
        } else {
            const QMetaObject* xret = ((const x_KPixmapSequenceOverlayPainter*)this)->metaObject();
            x[0].s_class = (void*)xret;
        }
    }
    void x_2(Smoke::Stack x) {
        // virtual void* qt_metacast(const char*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KPixmapSequenceOverlayPainter*>(this))) {
            void* xret = this->KPixmapSequenceOverlayPainter::qt_metacast((const char*)x[1].s_class);
            x[0].s_class = (void*)xret;
        } else {
            void* xret = this->qt_metacast((const char*)x[1].s_class);
            x[0].s_class = (void*)xret;
        }
    }
    static void x_3(Smoke::Stack x) {
        // static QString tr(const char*, const char*)
        QString xret = KPixmapSequenceOverlayPainter::tr((const char*)x[1].s_class,(const char*)x[2].s_class);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_4(Smoke::Stack x) {
        // static QString trUtf8(const char*, const char*)
        QString xret = KPixmapSequenceOverlayPainter::trUtf8((const char*)x[1].s_class,(const char*)x[2].s_class);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_5(Smoke::Stack x) {
        // static QString tr(const char*, const char*, int)
        QString xret = KPixmapSequenceOverlayPainter::tr((const char*)x[1].s_class,(const char*)x[2].s_class,(int)x[3].s_int);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_6(Smoke::Stack x) {
        // static QString trUtf8(const char*, const char*, int)
        QString xret = KPixmapSequenceOverlayPainter::trUtf8((const char*)x[1].s_class,(const char*)x[2].s_class,(int)x[3].s_int);
        x[0].s_class = (void*)new QString(xret);
    }
    void x_7(Smoke::Stack x) {
        // virtual int qt_metacall(QMetaObject::Call, int, void**)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KPixmapSequenceOverlayPainter*>(this))) {
            int xret = this->KPixmapSequenceOverlayPainter::qt_metacall((QMetaObject::Call)x[1].s_enum,(int)x[2].s_int,(void**)x[3].s_class);
            x[0].s_int = xret;
        } else {
            int xret = this->qt_metacall((QMetaObject::Call)x[1].s_enum,(int)x[2].s_int,(void**)x[3].s_class);
            x[0].s_int = xret;
        }
    }
    static void x_8(Smoke::Stack x) {
        // KPixmapSequenceOverlayPainter* KPixmapSequenceOverlayPainter(QObject*)
        x_KPixmapSequenceOverlayPainter* xret = new x_KPixmapSequenceOverlayPainter((QObject*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_KPixmapSequenceOverlayPainter(QObject* x1) : KPixmapSequenceOverlayPainter(x1) {}
    void x_9(Smoke::Stack x) {
        // KPixmapSequence sequence() const
        KPixmapSequence xret = ((const x_KPixmapSequenceOverlayPainter*)this)->KPixmapSequenceOverlayPainter::sequence();
        x[0].s_class = (void*)new KPixmapSequence(xret);
    }
    void x_10(Smoke::Stack x) {
        // int interval() const
        int xret = ((const x_KPixmapSequenceOverlayPainter*)this)->KPixmapSequenceOverlayPainter::interval();
        x[0].s_int = xret;
    }
    void x_11(Smoke::Stack x) {
        // QRect rect() const
        QRect xret = ((const x_KPixmapSequenceOverlayPainter*)this)->KPixmapSequenceOverlayPainter::rect();
        x[0].s_class = (void*)new QRect(xret);
    }
    void x_12(Smoke::Stack x) {
        // QFlags<Qt::AlignmentFlag> alignment() const
        QFlags<Qt::AlignmentFlag> xret = ((const x_KPixmapSequenceOverlayPainter*)this)->KPixmapSequenceOverlayPainter::alignment();
        x[0].s_uint = (uint)xret;
    }
    void x_13(Smoke::Stack x) {
        // QPoint offset() const
        QPoint xret = ((const x_KPixmapSequenceOverlayPainter*)this)->KPixmapSequenceOverlayPainter::offset();
        x[0].s_class = (void*)new QPoint(xret);
    }
    void x_14(Smoke::Stack x) {
        // void setSequence(const KPixmapSequence&)
        this->KPixmapSequenceOverlayPainter::setSequence(*(const KPixmapSequence*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_15(Smoke::Stack x) {
        // void setInterval(int)
        this->KPixmapSequenceOverlayPainter::setInterval((int)x[1].s_int);
        (void)x; // noop (for compiler warning)
    }
    void x_16(Smoke::Stack x) {
        // void setWidget(QWidget*)
        this->KPixmapSequenceOverlayPainter::setWidget((QWidget*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_17(Smoke::Stack x) {
        // void setRect(const QRect&)
        this->KPixmapSequenceOverlayPainter::setRect(*(const QRect*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_18(Smoke::Stack x) {
        // void setAlignment(Qt::Alignment)
        this->KPixmapSequenceOverlayPainter::setAlignment((Qt::Alignment)x[1].s_uint);
        (void)x; // noop (for compiler warning)
    }
    void x_19(Smoke::Stack x) {
        // void setOffset(const QPoint&)
        this->KPixmapSequenceOverlayPainter::setOffset(*(const QPoint*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_20(Smoke::Stack x) {
        // void start()
        this->KPixmapSequenceOverlayPainter::start();
        (void)x; // noop (for compiler warning)
    }
    void x_21(Smoke::Stack x) {
        // void stop()
        this->KPixmapSequenceOverlayPainter::stop();
        (void)x; // noop (for compiler warning)
    }
    static void x_22(Smoke::Stack x) {
        // static QString tr(const char*)
        QString xret = KPixmapSequenceOverlayPainter::tr((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_23(Smoke::Stack x) {
        // static QString trUtf8(const char*)
        QString xret = KPixmapSequenceOverlayPainter::trUtf8((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_24(Smoke::Stack x) {
        // KPixmapSequenceOverlayPainter* KPixmapSequenceOverlayPainter()
        x_KPixmapSequenceOverlayPainter* xret = new x_KPixmapSequenceOverlayPainter((QObject*)0);
        x[0].s_class = (void*)xret;
    }
    static void x_25(Smoke::Stack x) {
        // static const QMetaObject staticMetaObject
        x[0].s_class = (void*)&KPixmapSequenceOverlayPainter::staticMetaObject;
    }
    virtual const QMetaObject* metaObject() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(4040, (void*)this, x)) return (const QMetaObject*)x[0].s_class;
        return this->KPixmapSequenceOverlayPainter::metaObject();
    }
    virtual void* qt_metacast(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(4041, (void*)this, x)) return (void*)x[0].s_class;
        return this->KPixmapSequenceOverlayPainter::qt_metacast(x1);
    }
    virtual int qt_metacall(QMetaObject::Call x1, int x2, void** x3) {
        Smoke::StackItem x[4];
        x[1].s_enum = x1;
        x[2].s_int = x2;
        x[3].s_class = (void*)x3;
        if (this->_binding->callMethod(4046, (void*)this, x)) return (int)x[0].s_int;
        return this->KPixmapSequenceOverlayPainter::qt_metacall(x1, x2, x3);
    }
    virtual bool event(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7575, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QObject::event(x1);
    }
    virtual void timerEvent(QTimerEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7577, (void*)this, x)) return;
        this->QObject::timerEvent(x1);
    }
    virtual void childEvent(QChildEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7578, (void*)this, x)) return;
        this->QObject::childEvent(x1);
    }
    virtual void customEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7579, (void*)this, x)) return;
        this->QObject::customEvent(x1);
    }
    virtual void connectNotify(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7580, (void*)this, x)) return;
        this->QObject::connectNotify(x1);
    }
    virtual void disconnectNotify(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7581, (void*)this, x)) return;
        this->QObject::disconnectNotify(x1);
    }
    ~x_KPixmapSequenceOverlayPainter() { this->_binding->deleted(148, (void*)this); }
};
void xcall_KPixmapSequenceOverlayPainter(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_KPixmapSequenceOverlayPainter *xself = (x_KPixmapSequenceOverlayPainter*)obj;
    switch(xi) {
        case 0: xself->x_0(args);	break;
        case 1: xself->x_1(args);	break;
        case 2: xself->x_2(args);	break;
        case 3: x_KPixmapSequenceOverlayPainter::x_3(args);	break;
        case 4: x_KPixmapSequenceOverlayPainter::x_4(args);	break;
        case 5: x_KPixmapSequenceOverlayPainter::x_5(args);	break;
        case 6: x_KPixmapSequenceOverlayPainter::x_6(args);	break;
        case 7: xself->x_7(args);	break;
        case 8: x_KPixmapSequenceOverlayPainter::x_8(args);	break;
        case 9: xself->x_9(args);	break;
        case 10: xself->x_10(args);	break;
        case 11: xself->x_11(args);	break;
        case 12: xself->x_12(args);	break;
        case 13: xself->x_13(args);	break;
        case 14: xself->x_14(args);	break;
        case 15: xself->x_15(args);	break;
        case 16: xself->x_16(args);	break;
        case 17: xself->x_17(args);	break;
        case 18: xself->x_18(args);	break;
        case 19: xself->x_19(args);	break;
        case 20: xself->x_20(args);	break;
        case 21: xself->x_21(args);	break;
        case 22: x_KPixmapSequenceOverlayPainter::x_22(args);	break;
        case 23: x_KPixmapSequenceOverlayPainter::x_23(args);	break;
        case 24: x_KPixmapSequenceOverlayPainter::x_24(args);	break;
        case 25: x_KPixmapSequenceOverlayPainter::x_25(args);	break;
        case 26: delete (KPixmapSequenceOverlayPainter*)xself;	break;
    }
}

}
