/****************************************************************************
** Meta object code from reading C++ file 'playertool.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/qtplugins/playertool/playertool.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 'playertool.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_ZN8Avogadro9QtPlugins10PlayerToolE_t {};
} // unnamed namespace

template <> constexpr inline auto Avogadro::QtPlugins::PlayerTool::qt_create_metaobjectdata<qt_meta_tag_ZN8Avogadro9QtPlugins10PlayerToolE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Avogadro::QtPlugins::PlayerTool",
        "setMolecule",
        "",
        "QtGui::Molecule*",
        "setGLRenderer",
        "Rendering::GLRenderer*",
        "renderer",
        "setActiveWidget",
        "QWidget*",
        "widget",
        "back",
        "forward",
        "play",
        "stop",
        "animate",
        "advance",
        "recordMovie",
        "sliderPositionChanged",
        "k",
        "spinnerPositionChanged",
        "firstFramePositionChanged",
        "lastFramePositionChanged",
        "updateLimits"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'setMolecule'
        QtMocHelpers::SlotData<void(QtGui::Molecule *)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 2 },
        }}),
        // Slot 'setGLRenderer'
        QtMocHelpers::SlotData<void(Rendering::GLRenderer *)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 5, 6 },
        }}),
        // Slot 'setActiveWidget'
        QtMocHelpers::SlotData<void(QWidget *)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 8, 9 },
        }}),
        // Slot 'back'
        QtMocHelpers::SlotData<void()>(10, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'forward'
        QtMocHelpers::SlotData<void()>(11, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'play'
        QtMocHelpers::SlotData<void()>(12, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'stop'
        QtMocHelpers::SlotData<void()>(13, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'animate'
        QtMocHelpers::SlotData<void(int)>(14, 2, QMC::AccessProtected, QMetaType::Void, {{
            { QMetaType::Int, 15 },
        }}),
        // Slot 'animate'
        QtMocHelpers::SlotData<void()>(14, 2, QMC::AccessProtected | QMC::MethodCloned, QMetaType::Void),
        // Slot 'recordMovie'
        QtMocHelpers::SlotData<void()>(16, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'sliderPositionChanged'
        QtMocHelpers::SlotData<void(int)>(17, 2, QMC::AccessProtected, QMetaType::Void, {{
            { QMetaType::Int, 18 },
        }}),
        // Slot 'spinnerPositionChanged'
        QtMocHelpers::SlotData<void(int)>(19, 2, QMC::AccessProtected, QMetaType::Void, {{
            { QMetaType::Int, 18 },
        }}),
        // Slot 'firstFramePositionChanged'
        QtMocHelpers::SlotData<void(int)>(20, 2, QMC::AccessProtected, QMetaType::Void, {{
            { QMetaType::Int, 18 },
        }}),
        // Slot 'lastFramePositionChanged'
        QtMocHelpers::SlotData<void(int)>(21, 2, QMC::AccessProtected, QMetaType::Void, {{
            { QMetaType::Int, 18 },
        }}),
        // Slot 'updateLimits'
        QtMocHelpers::SlotData<void()>(22, 2, QMC::AccessProtected, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<PlayerTool, qt_meta_tag_ZN8Avogadro9QtPlugins10PlayerToolE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Avogadro::QtPlugins::PlayerTool::staticMetaObject = { {
    QMetaObject::SuperData::link<QtGui::ToolPlugin::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Avogadro9QtPlugins10PlayerToolE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Avogadro9QtPlugins10PlayerToolE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN8Avogadro9QtPlugins10PlayerToolE_t>.metaTypes,
    nullptr
} };

void Avogadro::QtPlugins::PlayerTool::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<PlayerTool *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->setMolecule((*reinterpret_cast<std::add_pointer_t<QtGui::Molecule*>>(_a[1]))); break;
        case 1: _t->setGLRenderer((*reinterpret_cast<std::add_pointer_t<Rendering::GLRenderer*>>(_a[1]))); break;
        case 2: _t->setActiveWidget((*reinterpret_cast<std::add_pointer_t<QWidget*>>(_a[1]))); break;
        case 3: _t->back(); break;
        case 4: _t->forward(); break;
        case 5: _t->play(); break;
        case 6: _t->stop(); break;
        case 7: _t->animate((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 8: _t->animate(); break;
        case 9: _t->recordMovie(); break;
        case 10: _t->sliderPositionChanged((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 11: _t->spinnerPositionChanged((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 12: _t->firstFramePositionChanged((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 13: _t->lastFramePositionChanged((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 14: _t->updateLimits(); break;
        default: ;
        }
    }
}

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

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

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