/****************************************************************************
** Meta object code from reading C++ file 'qtselectionpopup.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 "../../../../../../src/celestia/qt/qtselectionpopup.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 'qtselectionpopup.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_ZN8celestia2qt14SelectionPopupE_t {};
} // unnamed namespace

template <> constexpr inline auto celestia::qt::SelectionPopup::qt_create_metaobjectdata<qt_meta_tag_ZN8celestia2qt14SelectionPopupE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "celestia::qt::SelectionPopup",
        "selectionInfoRequested",
        "",
        "Selection&",
        "sel",
        "slotSelect",
        "slotCenterSelection",
        "slotGotoSelection",
        "slotFollowSelection",
        "slotSyncOrbitSelection",
        "slotSelectAlternateSurface",
        "slotSelectPrimary",
        "slotSelectChildObject",
        "slotMark",
        "slotUnmark",
        "slotToggleBodyAxes",
        "slotToggleFrameAxes",
        "slotToggleSunDirection",
        "slotToggleVelocityVector",
        "slotToggleSpinVector",
        "slotToggleFrameCenterDirection",
        "slotTogglePlanetographicGrid",
        "slotToggleTerminator",
        "slotGotoStartDate",
        "slotGotoEndDate",
        "slotInfo",
        "slotToggleVisibility",
        "popupAtGoto",
        "QPoint",
        "p",
        "popupAtCenter"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'selectionInfoRequested'
        QtMocHelpers::SignalData<void(Selection &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Slot 'slotSelect'
        QtMocHelpers::SlotData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'slotCenterSelection'
        QtMocHelpers::SlotData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'slotGotoSelection'
        QtMocHelpers::SlotData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'slotFollowSelection'
        QtMocHelpers::SlotData<void()>(8, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'slotSyncOrbitSelection'
        QtMocHelpers::SlotData<void()>(9, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'slotSelectAlternateSurface'
        QtMocHelpers::SlotData<void()>(10, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'slotSelectPrimary'
        QtMocHelpers::SlotData<void()>(11, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'slotSelectChildObject'
        QtMocHelpers::SlotData<void()>(12, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'slotMark'
        QtMocHelpers::SlotData<void()>(13, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'slotUnmark'
        QtMocHelpers::SlotData<void()>(14, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'slotToggleBodyAxes'
        QtMocHelpers::SlotData<void()>(15, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'slotToggleFrameAxes'
        QtMocHelpers::SlotData<void()>(16, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'slotToggleSunDirection'
        QtMocHelpers::SlotData<void()>(17, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'slotToggleVelocityVector'
        QtMocHelpers::SlotData<void()>(18, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'slotToggleSpinVector'
        QtMocHelpers::SlotData<void()>(19, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'slotToggleFrameCenterDirection'
        QtMocHelpers::SlotData<void()>(20, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'slotTogglePlanetographicGrid'
        QtMocHelpers::SlotData<void()>(21, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'slotToggleTerminator'
        QtMocHelpers::SlotData<void()>(22, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'slotGotoStartDate'
        QtMocHelpers::SlotData<void()>(23, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'slotGotoEndDate'
        QtMocHelpers::SlotData<void()>(24, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'slotInfo'
        QtMocHelpers::SlotData<void()>(25, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'slotToggleVisibility'
        QtMocHelpers::SlotData<void(bool)>(26, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 2 },
        }}),
        // Slot 'popupAtGoto'
        QtMocHelpers::SlotData<void(const QPoint &)>(27, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 28, 29 },
        }}),
        // Slot 'popupAtCenter'
        QtMocHelpers::SlotData<void(const QPoint &)>(30, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 28, 29 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<SelectionPopup, qt_meta_tag_ZN8celestia2qt14SelectionPopupE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject celestia::qt::SelectionPopup::staticMetaObject = { {
    QMetaObject::SuperData::link<QMenu::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8celestia2qt14SelectionPopupE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8celestia2qt14SelectionPopupE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN8celestia2qt14SelectionPopupE_t>.metaTypes,
    nullptr
} };

void celestia::qt::SelectionPopup::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<SelectionPopup *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->selectionInfoRequested((*reinterpret_cast<std::add_pointer_t<Selection&>>(_a[1]))); break;
        case 1: _t->slotSelect(); break;
        case 2: _t->slotCenterSelection(); break;
        case 3: _t->slotGotoSelection(); break;
        case 4: _t->slotFollowSelection(); break;
        case 5: _t->slotSyncOrbitSelection(); break;
        case 6: _t->slotSelectAlternateSurface(); break;
        case 7: _t->slotSelectPrimary(); break;
        case 8: _t->slotSelectChildObject(); break;
        case 9: _t->slotMark(); break;
        case 10: _t->slotUnmark(); break;
        case 11: _t->slotToggleBodyAxes(); break;
        case 12: _t->slotToggleFrameAxes(); break;
        case 13: _t->slotToggleSunDirection(); break;
        case 14: _t->slotToggleVelocityVector(); break;
        case 15: _t->slotToggleSpinVector(); break;
        case 16: _t->slotToggleFrameCenterDirection(); break;
        case 17: _t->slotTogglePlanetographicGrid(); break;
        case 18: _t->slotToggleTerminator(); break;
        case 19: _t->slotGotoStartDate(); break;
        case 20: _t->slotGotoEndDate(); break;
        case 21: _t->slotInfo(); break;
        case 22: _t->slotToggleVisibility((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 23: _t->popupAtGoto((*reinterpret_cast<std::add_pointer_t<QPoint>>(_a[1]))); break;
        case 24: _t->popupAtCenter((*reinterpret_cast<std::add_pointer_t<QPoint>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (SelectionPopup::*)(Selection & )>(_a, &SelectionPopup::selectionInfoRequested, 0))
            return;
    }
}

const QMetaObject *celestia::qt::SelectionPopup::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}

void *celestia::qt::SelectionPopup::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8celestia2qt14SelectionPopupE_t>.strings))
        return static_cast<void*>(this);
    return QMenu::qt_metacast(_clname);
}

int celestia::qt::SelectionPopup::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QMenu::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 25)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 25;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 25)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 25;
    }
    return _id;
}

// SIGNAL 0
void celestia::qt::SelectionPopup::selectionInfoRequested(Selection & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}
QT_WARNING_POP
