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

#include <smoke.h>
#include <qtuitools_smoke.h>

class __internal_SmokeClass {};

namespace __smokeqtuitools {

class x_QUiLoader : public QUiLoader, 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<QUiLoader*>(this))) {
            const QMetaObject* xret = ((const x_QUiLoader*)this)->QUiLoader::metaObject();
            x[0].s_class = (void*)xret;
        } else {
            const QMetaObject* xret = ((const x_QUiLoader*)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<QUiLoader*>(this))) {
            void* xret = this->QUiLoader::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 = QUiLoader::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 = QUiLoader::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 = QUiLoader::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 = QUiLoader::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<QUiLoader*>(this))) {
            int xret = this->QUiLoader::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) {
        // QUiLoader* QUiLoader(QObject*)
        x_QUiLoader* xret = new x_QUiLoader((QObject*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_QUiLoader(QObject* x1) : QUiLoader(x1) {}
    void x_9(Smoke::Stack x) {
        // QStringList pluginPaths() const
        QStringList xret = ((const x_QUiLoader*)this)->QUiLoader::pluginPaths();
        x[0].s_class = (void*)new QStringList(xret);
    }
    void x_10(Smoke::Stack x) {
        // void clearPluginPaths()
        this->QUiLoader::clearPluginPaths();
        (void)x; // noop (for compiler warning)
    }
    void x_11(Smoke::Stack x) {
        // void addPluginPath(const QString&)
        this->QUiLoader::addPluginPath(*(const QString*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_12(Smoke::Stack x) {
        // QWidget* load(QIODevice*, QWidget*)
        QWidget* xret = this->QUiLoader::load((QIODevice*)x[1].s_class,(QWidget*)x[2].s_class);
        x[0].s_class = (void*)xret;
    }
    void x_13(Smoke::Stack x) {
        // QStringList availableWidgets() const
        QStringList xret = ((const x_QUiLoader*)this)->QUiLoader::availableWidgets();
        x[0].s_class = (void*)new QStringList(xret);
    }
    void x_14(Smoke::Stack x) {
        // QStringList availableLayouts() const
        QStringList xret = ((const x_QUiLoader*)this)->QUiLoader::availableLayouts();
        x[0].s_class = (void*)new QStringList(xret);
    }
    void x_15(Smoke::Stack x) {
        // virtual QWidget* createWidget(const QString&, QWidget*, const QString&)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<QUiLoader*>(this))) {
            QWidget* xret = this->QUiLoader::createWidget(*(const QString*)x[1].s_class,(QWidget*)x[2].s_class,*(const QString*)x[3].s_class);
            x[0].s_class = (void*)xret;
        } else {
            QWidget* xret = this->createWidget(*(const QString*)x[1].s_class,(QWidget*)x[2].s_class,*(const QString*)x[3].s_class);
            x[0].s_class = (void*)xret;
        }
    }
    void x_16(Smoke::Stack x) {
        // virtual QLayout* createLayout(const QString&, QObject*, const QString&)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<QUiLoader*>(this))) {
            QLayout* xret = this->QUiLoader::createLayout(*(const QString*)x[1].s_class,(QObject*)x[2].s_class,*(const QString*)x[3].s_class);
            x[0].s_class = (void*)xret;
        } else {
            QLayout* xret = this->createLayout(*(const QString*)x[1].s_class,(QObject*)x[2].s_class,*(const QString*)x[3].s_class);
            x[0].s_class = (void*)xret;
        }
    }
    void x_17(Smoke::Stack x) {
        // virtual QActionGroup* createActionGroup(QObject*, const QString&)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<QUiLoader*>(this))) {
            QActionGroup* xret = this->QUiLoader::createActionGroup((QObject*)x[1].s_class,*(const QString*)x[2].s_class);
            x[0].s_class = (void*)xret;
        } else {
            QActionGroup* xret = this->createActionGroup((QObject*)x[1].s_class,*(const QString*)x[2].s_class);
            x[0].s_class = (void*)xret;
        }
    }
    void x_18(Smoke::Stack x) {
        // virtual QAction* createAction(QObject*, const QString&)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<QUiLoader*>(this))) {
            QAction* xret = this->QUiLoader::createAction((QObject*)x[1].s_class,*(const QString*)x[2].s_class);
            x[0].s_class = (void*)xret;
        } else {
            QAction* xret = this->createAction((QObject*)x[1].s_class,*(const QString*)x[2].s_class);
            x[0].s_class = (void*)xret;
        }
    }
    void x_19(Smoke::Stack x) {
        // void setWorkingDirectory(const QDir&)
        this->QUiLoader::setWorkingDirectory(*(const QDir*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_20(Smoke::Stack x) {
        // QDir workingDirectory() const
        QDir xret = ((const x_QUiLoader*)this)->QUiLoader::workingDirectory();
        x[0].s_class = (void*)new QDir(xret);
    }
    void x_21(Smoke::Stack x) {
        // void setScriptingEnabled(bool)
        this->QUiLoader::setScriptingEnabled((bool)x[1].s_bool);
        (void)x; // noop (for compiler warning)
    }
    void x_22(Smoke::Stack x) {
        // bool isScriptingEnabled() const
        bool xret = ((const x_QUiLoader*)this)->QUiLoader::isScriptingEnabled();
        x[0].s_bool = xret;
    }
    void x_23(Smoke::Stack x) {
        // void setLanguageChangeEnabled(bool)
        this->QUiLoader::setLanguageChangeEnabled((bool)x[1].s_bool);
        (void)x; // noop (for compiler warning)
    }
    void x_24(Smoke::Stack x) {
        // bool isLanguageChangeEnabled() const
        bool xret = ((const x_QUiLoader*)this)->QUiLoader::isLanguageChangeEnabled();
        x[0].s_bool = xret;
    }
    void x_25(Smoke::Stack x) {
        // void setTranslationEnabled(bool)
        this->QUiLoader::setTranslationEnabled((bool)x[1].s_bool);
        (void)x; // noop (for compiler warning)
    }
    void x_26(Smoke::Stack x) {
        // bool isTranslationEnabled() const
        bool xret = ((const x_QUiLoader*)this)->QUiLoader::isTranslationEnabled();
        x[0].s_bool = xret;
    }
    static void x_27(Smoke::Stack x) {
        // static QString tr(const char*)
        QString xret = QUiLoader::tr((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_28(Smoke::Stack x) {
        // static QString trUtf8(const char*)
        QString xret = QUiLoader::trUtf8((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_29(Smoke::Stack x) {
        // QUiLoader* QUiLoader()
        x_QUiLoader* xret = new x_QUiLoader((QObject*)0);
        x[0].s_class = (void*)xret;
    }
    void x_30(Smoke::Stack x) {
        // QWidget* load(QIODevice*)
        QWidget* xret = this->QUiLoader::load((QIODevice*)x[1].s_class,(QWidget*)0);
        x[0].s_class = (void*)xret;
    }
    void x_31(Smoke::Stack x) {
        // QWidget* createWidget(const QString&)
        QWidget* xret = this->QUiLoader::createWidget(*(const QString*)x[1].s_class,(QWidget*)0,(const QString&)QString());
        x[0].s_class = (void*)xret;
    }
    void x_32(Smoke::Stack x) {
        // QWidget* createWidget(const QString&, QWidget*)
        QWidget* xret = this->QUiLoader::createWidget(*(const QString*)x[1].s_class,(QWidget*)x[2].s_class,(const QString&)QString());
        x[0].s_class = (void*)xret;
    }
    void x_33(Smoke::Stack x) {
        // QLayout* createLayout(const QString&)
        QLayout* xret = this->QUiLoader::createLayout(*(const QString*)x[1].s_class,(QObject*)0,(const QString&)QString());
        x[0].s_class = (void*)xret;
    }
    void x_34(Smoke::Stack x) {
        // QLayout* createLayout(const QString&, QObject*)
        QLayout* xret = this->QUiLoader::createLayout(*(const QString*)x[1].s_class,(QObject*)x[2].s_class,(const QString&)QString());
        x[0].s_class = (void*)xret;
    }
    void x_35(Smoke::Stack x) {
        // QActionGroup* createActionGroup()
        QActionGroup* xret = this->QUiLoader::createActionGroup((QObject*)0,(const QString&)QString());
        x[0].s_class = (void*)xret;
    }
    void x_36(Smoke::Stack x) {
        // QActionGroup* createActionGroup(QObject*)
        QActionGroup* xret = this->QUiLoader::createActionGroup((QObject*)x[1].s_class,(const QString&)QString());
        x[0].s_class = (void*)xret;
    }
    void x_37(Smoke::Stack x) {
        // QAction* createAction()
        QAction* xret = this->QUiLoader::createAction((QObject*)0,(const QString&)QString());
        x[0].s_class = (void*)xret;
    }
    void x_38(Smoke::Stack x) {
        // QAction* createAction(QObject*)
        QAction* xret = this->QUiLoader::createAction((QObject*)x[1].s_class,(const QString&)QString());
        x[0].s_class = (void*)xret;
    }
    static void x_39(Smoke::Stack x) {
        // static const QMetaObject staticMetaObject
        x[0].s_class = (void*)&QUiLoader::staticMetaObject;
    }
    virtual const QMetaObject* metaObject() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(8, (void*)this, x)) return (const QMetaObject*)x[0].s_class;
        return this->QUiLoader::metaObject();
    }
    virtual void* qt_metacast(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(9, (void*)this, x)) return (void*)x[0].s_class;
        return this->QUiLoader::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(14, (void*)this, x)) return (int)x[0].s_int;
        return this->QUiLoader::qt_metacall(x1, x2, x3);
    }
    virtual QWidget* createWidget(const QString& x1, QWidget* x2, const QString& 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(22, (void*)this, x)) return (QWidget*)x[0].s_class;
        return this->QUiLoader::createWidget(x1, x2, x3);
    }
    virtual QLayout* createLayout(const QString& x1, QObject* x2, const QString& 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(23, (void*)this, x)) return (QLayout*)x[0].s_class;
        return this->QUiLoader::createLayout(x1, x2, x3);
    }
    virtual QActionGroup* createActionGroup(QObject* x1, const QString& x2) {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)x1;
        x[2].s_class = (void*)&x2;
        if (this->_binding->callMethod(24, (void*)this, x)) return (QActionGroup*)x[0].s_class;
        return this->QUiLoader::createActionGroup(x1, x2);
    }
    virtual QAction* createAction(QObject* x1, const QString& x2) {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)x1;
        x[2].s_class = (void*)&x2;
        if (this->_binding->callMethod(25, (void*)this, x)) return (QAction*)x[0].s_class;
        return this->QUiLoader::createAction(x1, x2);
    }
    virtual bool event(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(1, (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(2, (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(3, (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(4, (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(5, (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(6, (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(7, (void*)this, x)) return;
        this->QObject::disconnectNotify(x1);
    }
    ~x_QUiLoader() { this->_binding->deleted(15, (void*)this); }
};
void xcall_QUiLoader(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_QUiLoader *xself = (x_QUiLoader*)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_QUiLoader::x_3(args);	break;
        case 4: x_QUiLoader::x_4(args);	break;
        case 5: x_QUiLoader::x_5(args);	break;
        case 6: x_QUiLoader::x_6(args);	break;
        case 7: xself->x_7(args);	break;
        case 8: x_QUiLoader::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: x_QUiLoader::x_27(args);	break;
        case 28: x_QUiLoader::x_28(args);	break;
        case 29: x_QUiLoader::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: xself->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: x_QUiLoader::x_39(args);	break;
        case 40: delete (QUiLoader*)xself;	break;
    }
}
class x_QGlobalSpace {
    SmokeBinding* _binding;
public:
    void x_0(Smoke::Stack x) {
        // set the smoke binding
        _binding = (SmokeBinding*)x[1].s_class;
    }
    ~x_QGlobalSpace() { this->_binding->deleted(7, (void*)this); }
};
void xcall_QGlobalSpace(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_QGlobalSpace *xself = (x_QGlobalSpace*)obj;
    switch(xi) {
        case 0: xself->x_0(args);	break;
    }
}

}
