/****************************************************************************
** Meta object code from reading C++ file 'toolplugin.h'
**
** Created by: The Qt Meta Object Compiler version 69 (Qt 6.11.0)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "../../../../../avogadrolibs/avogadro/qtgui/toolplugin.h"
#include <QtCore/qmetatype.h>

#include <QtCore/qtmochelpers.h>

#include <memory>


#include <QtCore/qxptype_traits.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'toolplugin.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.0. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

#ifndef Q_CONSTINIT
#define Q_CONSTINIT
#endif

QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
QT_WARNING_DISABLE_GCC("-Wuseless-cast")
namespace {
struct qt_meta_tag_ZN8Avogadro5QtGui10ToolPluginE_t {};
} // unnamed namespace

template <> constexpr inline auto Avogadro::QtGui::ToolPlugin::qt_create_metaobjectdata<qt_meta_tag_ZN8Avogadro5QtGui10ToolPluginE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Avogadro::QtGui::ToolPlugin",
        "drawablesChanged",
        "",
        "updateRequested",
        "registerCommand",
        "command",
        "description",
        "requestActiveDisplayTypes",
        "displayTypes",
        "commandFinished",
        "message",
        "setMolecule",
        "QtGui::Molecule*",
        "mol",
        "setEditMolecule",
        "QtGui::RWMolecule*",
        "setGLWidget",
        "QtOpenGL::GLWidget*",
        "setActiveWidget",
        "QWidget*",
        "setGLRenderer",
        "Rendering::GLRenderer*"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'drawablesChanged'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'updateRequested'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'registerCommand'
        QtMocHelpers::SignalData<void(QString, QString)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 5 }, { QMetaType::QString, 6 },
        }}),
        // Signal 'requestActiveDisplayTypes'
        QtMocHelpers::SignalData<void(QStringList)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QStringList, 8 },
        }}),
        // Signal 'commandFinished'
        QtMocHelpers::SignalData<void(const QString &)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 10 },
        }}),
        // Signal 'commandFinished'
        QtMocHelpers::SignalData<void()>(9, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void),
        // Slot 'setMolecule'
        QtMocHelpers::SlotData<void(QtGui::Molecule *)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 12, 13 },
        }}),
        // Slot 'setEditMolecule'
        QtMocHelpers::SlotData<void(QtGui::RWMolecule *)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 15, 2 },
        }}),
        // Slot 'setGLWidget'
        QtMocHelpers::SlotData<void(QtOpenGL::GLWidget *)>(16, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 17, 2 },
        }}),
        // Slot 'setActiveWidget'
        QtMocHelpers::SlotData<void(QWidget *)>(18, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 19, 2 },
        }}),
        // Slot 'setGLRenderer'
        QtMocHelpers::SlotData<void(Rendering::GLRenderer *)>(20, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 21, 2 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<ToolPlugin, qt_meta_tag_ZN8Avogadro5QtGui10ToolPluginE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Avogadro::QtGui::ToolPlugin::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Avogadro5QtGui10ToolPluginE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Avogadro5QtGui10ToolPluginE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN8Avogadro5QtGui10ToolPluginE_t>.metaTypes,
    nullptr
} };

void Avogadro::QtGui::ToolPlugin::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<ToolPlugin *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->drawablesChanged(); break;
        case 1: _t->updateRequested(); break;
        case 2: _t->registerCommand((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 3: _t->requestActiveDisplayTypes((*reinterpret_cast<std::add_pointer_t<QStringList>>(_a[1]))); break;
        case 4: _t->commandFinished((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 5: _t->commandFinished(); break;
        case 6: _t->setMolecule((*reinterpret_cast<std::add_pointer_t<QtGui::Molecule*>>(_a[1]))); break;
        case 7: _t->setEditMolecule((*reinterpret_cast<std::add_pointer_t<QtGui::RWMolecule*>>(_a[1]))); break;
        case 8: _t->setGLWidget((*reinterpret_cast<std::add_pointer_t<QtOpenGL::GLWidget*>>(_a[1]))); break;
        case 9: _t->setActiveWidget((*reinterpret_cast<std::add_pointer_t<QWidget*>>(_a[1]))); break;
        case 10: _t->setGLRenderer((*reinterpret_cast<std::add_pointer_t<Rendering::GLRenderer*>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (ToolPlugin::*)()>(_a, &ToolPlugin::drawablesChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (ToolPlugin::*)()>(_a, &ToolPlugin::updateRequested, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (ToolPlugin::*)(QString , QString )>(_a, &ToolPlugin::registerCommand, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (ToolPlugin::*)(QStringList )>(_a, &ToolPlugin::requestActiveDisplayTypes, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (ToolPlugin::*)(const QString & )>(_a, &ToolPlugin::commandFinished, 4))
            return;
    }
}

const QMetaObject *Avogadro::QtGui::ToolPlugin::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}

void *Avogadro::QtGui::ToolPlugin::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Avogadro5QtGui10ToolPluginE_t>.strings))
        return static_cast<void*>(this);
    return QObject::qt_metacast(_clname);
}

int Avogadro::QtGui::ToolPlugin::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 11)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 11;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 11)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 11;
    }
    return _id;
}

// SIGNAL 0
void Avogadro::QtGui::ToolPlugin::drawablesChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void Avogadro::QtGui::ToolPlugin::updateRequested()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void Avogadro::QtGui::ToolPlugin::registerCommand(QString _t1, QString _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1, _t2);
}

// SIGNAL 3
void Avogadro::QtGui::ToolPlugin::requestActiveDisplayTypes(QStringList _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void Avogadro::QtGui::ToolPlugin::commandFinished(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}
QT_WARNING_POP
