/****************************************************************************
** Meta object code from reading C++ file 'symmetrywidget.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/symmetry/symmetrywidget.h"
#include <QtGui/qtextcursor.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 'symmetrywidget.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_ZN8Avogadro9QtPlugins14SymmetryWidgetE_t {};
} // unnamed namespace

template <> constexpr inline auto Avogadro::QtPlugins::SymmetryWidget::qt_create_metaobjectdata<qt_meta_tag_ZN8Avogadro9QtPlugins14SymmetryWidgetE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Avogadro::QtPlugins::SymmetryWidget",
        "detectSymmetry",
        "",
        "symmetrizeMolecule",
        "moleculeChanged",
        "changes",
        "setPointGroupSymbol",
        "pg",
        "setEquivalenceSets",
        "mesl",
        "const msym::msym_equivalence_set_t*",
        "es",
        "setSymmetryOperations",
        "sopsl",
        "const msym::msym_symmetry_operation_t*",
        "sops",
        "setSubgroups",
        "sgl",
        "const msym::msym_subgroup_t*",
        "sg",
        "setCenterOfMass",
        "double[3]",
        "cm",
        "setRadius",
        "radius",
        "getThresholds",
        "msym::msym_thresholds_t*",
        "equivalenceSelectionChanged",
        "QItemSelection",
        "selected",
        "deselected",
        "operationsSelectionChanged",
        "subgroupsSelectionChanged"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'detectSymmetry'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'symmetrizeMolecule'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'moleculeChanged'
        QtMocHelpers::SlotData<void(unsigned int)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::UInt, 5 },
        }}),
        // Slot 'setPointGroupSymbol'
        QtMocHelpers::SlotData<void(QString)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 7 },
        }}),
        // Slot 'setEquivalenceSets'
        QtMocHelpers::SlotData<void(int, const msym::msym_equivalence_set_t *)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 9 }, { 0x80000000 | 10, 11 },
        }}),
        // Slot 'setSymmetryOperations'
        QtMocHelpers::SlotData<void(int, const msym::msym_symmetry_operation_t *)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 13 }, { 0x80000000 | 14, 15 },
        }}),
        // Slot 'setSubgroups'
        QtMocHelpers::SlotData<void(int, const msym::msym_subgroup_t *)>(16, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 17 }, { 0x80000000 | 18, 19 },
        }}),
        // Slot 'setCenterOfMass'
        QtMocHelpers::SlotData<void(double)>(20, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 21, 22 },
        }}),
        // Slot 'setRadius'
        QtMocHelpers::SlotData<void(double)>(23, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Double, 24 },
        }}),
        // Slot 'getThresholds'
        QtMocHelpers::SlotData<msym::msym_thresholds_t *() const>(25, 2, QMC::AccessPublic, 0x80000000 | 26),
        // Slot 'equivalenceSelectionChanged'
        QtMocHelpers::SlotData<void(const QItemSelection &, const QItemSelection &)>(27, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 28, 29 }, { 0x80000000 | 28, 30 },
        }}),
        // Slot 'operationsSelectionChanged'
        QtMocHelpers::SlotData<void(const QItemSelection &, const QItemSelection &)>(31, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 28, 29 }, { 0x80000000 | 28, 30 },
        }}),
        // Slot 'subgroupsSelectionChanged'
        QtMocHelpers::SlotData<void(const QItemSelection &, const QItemSelection &)>(32, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 28, 29 }, { 0x80000000 | 28, 30 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<SymmetryWidget, qt_meta_tag_ZN8Avogadro9QtPlugins14SymmetryWidgetE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Avogadro::QtPlugins::SymmetryWidget::staticMetaObject = { {
    QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Avogadro9QtPlugins14SymmetryWidgetE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Avogadro9QtPlugins14SymmetryWidgetE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN8Avogadro9QtPlugins14SymmetryWidgetE_t>.metaTypes,
    nullptr
} };

void Avogadro::QtPlugins::SymmetryWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<SymmetryWidget *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->detectSymmetry(); break;
        case 1: _t->symmetrizeMolecule(); break;
        case 2: _t->moleculeChanged((*reinterpret_cast<std::add_pointer_t<uint>>(_a[1]))); break;
        case 3: _t->setPointGroupSymbol((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 4: _t->setEquivalenceSets((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<const msym::msym_equivalence_set_t*>>(_a[2]))); break;
        case 5: _t->setSymmetryOperations((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<const msym::msym_symmetry_operation_t*>>(_a[2]))); break;
        case 6: _t->setSubgroups((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<const msym::msym_subgroup_t*>>(_a[2]))); break;
        case 7: _t->setCenterOfMass((*reinterpret_cast<std::add_pointer_t<double[3]>>(_a[1]))); break;
        case 8: _t->setRadius((*reinterpret_cast<std::add_pointer_t<double>>(_a[1]))); break;
        case 9: { msym::msym_thresholds_t* _r = _t->getThresholds();
            if (_a[0]) *reinterpret_cast<msym::msym_thresholds_t**>(_a[0]) = std::move(_r); }  break;
        case 10: _t->equivalenceSelectionChanged((*reinterpret_cast<std::add_pointer_t<QItemSelection>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QItemSelection>>(_a[2]))); break;
        case 11: _t->operationsSelectionChanged((*reinterpret_cast<std::add_pointer_t<QItemSelection>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QItemSelection>>(_a[2]))); break;
        case 12: _t->subgroupsSelectionChanged((*reinterpret_cast<std::add_pointer_t<QItemSelection>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QItemSelection>>(_a[2]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 10:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 1:
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QItemSelection >(); break;
            }
            break;
        case 11:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 1:
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QItemSelection >(); break;
            }
            break;
        case 12:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 1:
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QItemSelection >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (SymmetryWidget::*)()>(_a, &SymmetryWidget::detectSymmetry, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (SymmetryWidget::*)()>(_a, &SymmetryWidget::symmetrizeMolecule, 1))
            return;
    }
}

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

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

int Avogadro::QtPlugins::SymmetryWidget::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 < 13)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 13;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 13)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 13;
    }
    return _id;
}

// SIGNAL 0
void Avogadro::QtPlugins::SymmetryWidget::detectSymmetry()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void Avogadro::QtPlugins::SymmetryWidget::symmetrizeMolecule()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}
QT_WARNING_POP
