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

template <> constexpr inline auto Avogadro::QtPlugins::OrbitalWidget::qt_create_metaobjectdata<qt_meta_tag_ZN8Avogadro9QtPlugins13OrbitalWidgetE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Avogadro::QtPlugins::OrbitalWidget",
        "orbitalSelected",
        "",
        "orbital",
        "Core::BasisSet::ElectronType",
        "electronType",
        "renderRequested",
        "resolution",
        "calculateAll",
        "readSettings",
        "writeSettings",
        "reject",
        "fillTable",
        "Core::BasisSet*",
        "basis",
        "setQuality",
        "OrbitalQuality",
        "q",
        "selectOrbital",
        "setDefaults",
        "OrbitalWidget::OrbitalQuality",
        "quality",
        "isovalue",
        "HOMOFirst",
        "setPrecalcSettings",
        "limit",
        "range",
        "tableClicked",
        "QItemSelection",
        "renderClicked",
        "configureClicked"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'orbitalSelected'
        QtMocHelpers::SignalData<void(unsigned int, Core::BasisSet::ElectronType)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::UInt, 3 }, { 0x80000000 | 4, 5 },
        }}),
        // Signal 'renderRequested'
        QtMocHelpers::SignalData<void(unsigned int, double, Core::BasisSet::ElectronType)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::UInt, 3 }, { QMetaType::Double, 7 }, { 0x80000000 | 4, 5 },
        }}),
        // Signal 'calculateAll'
        QtMocHelpers::SignalData<void()>(8, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'readSettings'
        QtMocHelpers::SlotData<void()>(9, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'writeSettings'
        QtMocHelpers::SlotData<void()>(10, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'reject'
        QtMocHelpers::SlotData<void()>(11, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'fillTable'
        QtMocHelpers::SlotData<void(Core::BasisSet *)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 13, 14 },
        }}),
        // Slot 'setQuality'
        QtMocHelpers::SlotData<void(enum OrbitalQuality)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 16, 17 },
        }}),
        // Slot 'selectOrbital'
        QtMocHelpers::SlotData<void(unsigned int)>(18, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::UInt, 3 },
        }}),
        // Slot 'setDefaults'
        QtMocHelpers::SlotData<void(OrbitalWidget::OrbitalQuality, double, bool)>(19, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 20, 21 }, { QMetaType::Double, 22 }, { QMetaType::Bool, 23 },
        }}),
        // Slot 'setPrecalcSettings'
        QtMocHelpers::SlotData<void(bool, int)>(24, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 25 }, { QMetaType::Int, 26 },
        }}),
        // Slot 'tableClicked'
        QtMocHelpers::SlotData<void(const QItemSelection &)>(27, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 28, 2 },
        }}),
        // Slot 'renderClicked'
        QtMocHelpers::SlotData<void()>(29, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'configureClicked'
        QtMocHelpers::SlotData<void()>(30, 2, QMC::AccessPrivate, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<OrbitalWidget, qt_meta_tag_ZN8Avogadro9QtPlugins13OrbitalWidgetE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Avogadro::QtPlugins::OrbitalWidget::staticMetaObject = { {
    QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Avogadro9QtPlugins13OrbitalWidgetE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Avogadro9QtPlugins13OrbitalWidgetE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN8Avogadro9QtPlugins13OrbitalWidgetE_t>.metaTypes,
    nullptr
} };

void Avogadro::QtPlugins::OrbitalWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<OrbitalWidget *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->orbitalSelected((*reinterpret_cast<std::add_pointer_t<uint>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<Core::BasisSet::ElectronType>>(_a[2]))); break;
        case 1: _t->renderRequested((*reinterpret_cast<std::add_pointer_t<uint>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<double>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<Core::BasisSet::ElectronType>>(_a[3]))); break;
        case 2: _t->calculateAll(); break;
        case 3: _t->readSettings(); break;
        case 4: _t->writeSettings(); break;
        case 5: _t->reject(); break;
        case 6: _t->fillTable((*reinterpret_cast<std::add_pointer_t<Core::BasisSet*>>(_a[1]))); break;
        case 7: _t->setQuality((*reinterpret_cast<std::add_pointer_t<enum OrbitalQuality>>(_a[1]))); break;
        case 8: _t->selectOrbital((*reinterpret_cast<std::add_pointer_t<uint>>(_a[1]))); break;
        case 9: _t->setDefaults((*reinterpret_cast<std::add_pointer_t<OrbitalWidget::OrbitalQuality>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<double>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[3]))); break;
        case 10: _t->setPrecalcSettings((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 11: _t->tableClicked((*reinterpret_cast<std::add_pointer_t<QItemSelection>>(_a[1]))); break;
        case 12: _t->renderClicked(); break;
        case 13: _t->configureClicked(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (OrbitalWidget::*)(unsigned int , Core::BasisSet::ElectronType )>(_a, &OrbitalWidget::orbitalSelected, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (OrbitalWidget::*)(unsigned int , double , Core::BasisSet::ElectronType )>(_a, &OrbitalWidget::renderRequested, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (OrbitalWidget::*)()>(_a, &OrbitalWidget::calculateAll, 2))
            return;
    }
}

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

void *Avogadro::QtPlugins::OrbitalWidget::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Avogadro9QtPlugins13OrbitalWidgetE_t>.strings))
        return static_cast<void*>(this);
    return QWidget::qt_metacast(_clname);
}

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

// SIGNAL 0
void Avogadro::QtPlugins::OrbitalWidget::orbitalSelected(unsigned int _t1, Core::BasisSet::ElectronType _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1, _t2);
}

// SIGNAL 1
void Avogadro::QtPlugins::OrbitalWidget::renderRequested(unsigned int _t1, double _t2, Core::BasisSet::ElectronType _t3)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1, _t2, _t3);
}

// SIGNAL 2
void Avogadro::QtPlugins::OrbitalWidget::calculateAll()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}
QT_WARNING_POP
