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

#include "../../../../../../drumstick-2.11.1/library/include/drumstick/pianokeybd.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 'pianokeybd.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.2. 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_ZN9drumstick7widgets10PianoKeybdE_t {};
} // unnamed namespace

template <> constexpr inline auto drumstick::widgets::PianoKeybd::qt_create_metaobjectdata<qt_meta_tag_ZN9drumstick7widgets10PianoKeybdE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "drumstick::widgets::PianoKeybd",
        "noteOn",
        "",
        "midiNote",
        "vel",
        "noteOff",
        "signalName",
        "name",
        "baseOctave",
        "numKeys",
        "rotation",
        "keyPressedColor",
        "QColor",
        "showLabels",
        "drumstick::widgets::LabelVisibility",
        "alterations",
        "drumstick::widgets::LabelAlteration",
        "labelOrientation",
        "drumstick::widgets::LabelOrientation",
        "labelOctave",
        "drumstick::widgets::LabelCentralOctave",
        "transpose",
        "startKey",
        "labelFont",
        "QFont"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'noteOn'
        QtMocHelpers::SignalData<void(int, int)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 3 }, { QMetaType::Int, 4 },
        }}),
        // Signal 'noteOff'
        QtMocHelpers::SignalData<void(int, int)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 3 }, { QMetaType::Int, 4 },
        }}),
        // Signal 'signalName'
        QtMocHelpers::SignalData<void(const QString &)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 7 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'baseOctave'
        QtMocHelpers::PropertyData<int>(8, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'numKeys'
        QtMocHelpers::PropertyData<int>(9, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'rotation'
        QtMocHelpers::PropertyData<int>(10, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'keyPressedColor'
        QtMocHelpers::PropertyData<QColor>(11, 0x80000000 | 12, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet),
        // property 'showLabels'
        QtMocHelpers::PropertyData<drumstick::widgets::LabelVisibility>(13, 0x80000000 | 14, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet),
        // property 'alterations'
        QtMocHelpers::PropertyData<drumstick::widgets::LabelAlteration>(15, 0x80000000 | 16, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag),
        // property 'labelOrientation'
        QtMocHelpers::PropertyData<drumstick::widgets::LabelOrientation>(17, 0x80000000 | 18, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet),
        // property 'labelOctave'
        QtMocHelpers::PropertyData<drumstick::widgets::LabelCentralOctave>(19, 0x80000000 | 20, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet),
        // property 'transpose'
        QtMocHelpers::PropertyData<int>(21, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'startKey'
        QtMocHelpers::PropertyData<int>(22, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'labelFont'
        QtMocHelpers::PropertyData<QFont>(23, 0x80000000 | 24, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<PianoKeybd, qt_meta_tag_ZN9drumstick7widgets10PianoKeybdE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT static const QMetaObject::SuperData qt_meta_extradata_ZN9drumstick7widgets10PianoKeybdE[] = {
    QMetaObject::SuperData::link<drumstick::widgets::staticMetaObject>(),
    nullptr
};

Q_CONSTINIT const QMetaObject drumstick::widgets::PianoKeybd::staticMetaObject = { {
    QMetaObject::SuperData::link<QGraphicsView::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9drumstick7widgets10PianoKeybdE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9drumstick7widgets10PianoKeybdE_t>.data,
    qt_static_metacall,
    qt_meta_extradata_ZN9drumstick7widgets10PianoKeybdE,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN9drumstick7widgets10PianoKeybdE_t>.metaTypes,
    nullptr
} };

void drumstick::widgets::PianoKeybd::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<PianoKeybd *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->noteOn((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 1: _t->noteOff((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 2: _t->signalName((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (PianoKeybd::*)(int , int )>(_a, &PianoKeybd::noteOn, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (PianoKeybd::*)(int , int )>(_a, &PianoKeybd::noteOff, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (PianoKeybd::*)(const QString & )>(_a, &PianoKeybd::signalName, 2))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<int*>(_v) = _t->baseOctave(); break;
        case 1: *reinterpret_cast<int*>(_v) = _t->numKeys(); break;
        case 2: *reinterpret_cast<int*>(_v) = _t->getRotation(); break;
        case 3: *reinterpret_cast<QColor*>(_v) = _t->getKeyPressedColor(); break;
        case 4: *reinterpret_cast<drumstick::widgets::LabelVisibility*>(_v) = _t->showLabels(); break;
        case 5: *reinterpret_cast<drumstick::widgets::LabelAlteration*>(_v) = _t->labelAlterations(); break;
        case 6: *reinterpret_cast<drumstick::widgets::LabelOrientation*>(_v) = _t->labelOrientation(); break;
        case 7: *reinterpret_cast<drumstick::widgets::LabelCentralOctave*>(_v) = _t->labelOctave(); break;
        case 8: *reinterpret_cast<int*>(_v) = _t->getTranspose(); break;
        case 9: *reinterpret_cast<int*>(_v) = _t->startKey(); break;
        case 10: *reinterpret_cast<QFont*>(_v) = _t->font(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setBaseOctave(*reinterpret_cast<int*>(_v)); break;
        case 1: _t->setNumKeys(*reinterpret_cast<int*>(_v)); break;
        case 2: _t->setRotation(*reinterpret_cast<int*>(_v)); break;
        case 3: _t->setKeyPressedColor(*reinterpret_cast<QColor*>(_v)); break;
        case 4: _t->setShowLabels(*reinterpret_cast<drumstick::widgets::LabelVisibility*>(_v)); break;
        case 5: _t->setLabelAlterations(*reinterpret_cast<drumstick::widgets::LabelAlteration*>(_v)); break;
        case 6: _t->setLabelOrientation(*reinterpret_cast<drumstick::widgets::LabelOrientation*>(_v)); break;
        case 7: _t->setLabelOctave(*reinterpret_cast<drumstick::widgets::LabelCentralOctave*>(_v)); break;
        case 8: _t->setTranspose(*reinterpret_cast<int*>(_v)); break;
        case 9: _t->setStartKey(*reinterpret_cast<int*>(_v)); break;
        case 10: _t->setFont(*reinterpret_cast<QFont*>(_v)); break;
        default: break;
        }
    }
}

const QMetaObject *drumstick::widgets::PianoKeybd::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}

void *drumstick::widgets::PianoKeybd::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9drumstick7widgets10PianoKeybdE_t>.strings))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "RawKbdHandler"))
        return static_cast< RawKbdHandler*>(this);
    return QGraphicsView::qt_metacast(_clname);
}

int drumstick::widgets::PianoKeybd::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QGraphicsView::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 3)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 3;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 3)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 3;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 11;
    }
    return _id;
}

// SIGNAL 0
void drumstick::widgets::PianoKeybd::noteOn(int _t1, int _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1, _t2);
}

// SIGNAL 1
void drumstick::widgets::PianoKeybd::noteOff(int _t1, int _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1, _t2);
}

// SIGNAL 2
void drumstick::widgets::PianoKeybd::signalName(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}
namespace {
struct qt_meta_tag_ZN9drumstick7widgetsE_t {};
} // unnamed namespace

template <> constexpr inline auto drumstick::widgets::qt_create_metaobjectdata<qt_meta_tag_ZN9drumstick7widgetsE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "drumstick::widgets",
        "LabelVisibility",
        "ShowNever",
        "ShowMinimum",
        "ShowActivated",
        "ShowAlways",
        "LabelAlteration",
        "ShowSharps",
        "ShowFlats",
        "ShowNothing",
        "LabelOrientation",
        "HorizontalOrientation",
        "VerticalOrientation",
        "AutomaticOrientation",
        "LabelNaming",
        "StandardNames",
        "CustomNamesWithSharps",
        "CustomNamesWithFlats",
        "LabelCentralOctave",
        "OctaveNothing",
        "OctaveC3",
        "OctaveC4",
        "OctaveC5"
    };

    QtMocHelpers::UintData qt_methods {
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'LabelVisibility'
        QtMocHelpers::EnumData<LabelVisibility>(1, 1, QMC::EnumFlags{}).add({
            {    2, LabelVisibility::ShowNever },
            {    3, LabelVisibility::ShowMinimum },
            {    4, LabelVisibility::ShowActivated },
            {    5, LabelVisibility::ShowAlways },
        }),
        // enum 'LabelAlteration'
        QtMocHelpers::EnumData<LabelAlteration>(6, 6, QMC::EnumFlags{}).add({
            {    7, LabelAlteration::ShowSharps },
            {    8, LabelAlteration::ShowFlats },
            {    9, LabelAlteration::ShowNothing },
        }),
        // enum 'LabelOrientation'
        QtMocHelpers::EnumData<LabelOrientation>(10, 10, QMC::EnumFlags{}).add({
            {   11, LabelOrientation::HorizontalOrientation },
            {   12, LabelOrientation::VerticalOrientation },
            {   13, LabelOrientation::AutomaticOrientation },
        }),
        // enum 'LabelNaming'
        QtMocHelpers::EnumData<LabelNaming>(14, 14, QMC::EnumFlags{}).add({
            {   15, LabelNaming::StandardNames },
            {   16, LabelNaming::CustomNamesWithSharps },
            {   17, LabelNaming::CustomNamesWithFlats },
        }),
        // enum 'LabelCentralOctave'
        QtMocHelpers::EnumData<LabelCentralOctave>(18, 18, QMC::EnumFlags{}).add({
            {   19, LabelCentralOctave::OctaveNothing },
            {   20, LabelCentralOctave::OctaveC3 },
            {   21, LabelCentralOctave::OctaveC4 },
            {   22, LabelCentralOctave::OctaveC5 },
        }),
    };
    return QtMocHelpers::metaObjectData<void, qt_meta_tag_ZN9drumstick7widgetsE_t>(QMC::PropertyAccessInStaticMetaCall, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}

static constexpr auto qt_staticMetaObjectContent_ZN9drumstick7widgetsE =
    drumstick::widgets::qt_create_metaobjectdata<qt_meta_tag_ZN9drumstick7widgetsE_t>();
static constexpr auto qt_staticMetaObjectStaticContent_ZN9drumstick7widgetsE =
    qt_staticMetaObjectContent_ZN9drumstick7widgetsE.staticData;
static constexpr auto qt_staticMetaObjectRelocatingContent_ZN9drumstick7widgetsE =
    qt_staticMetaObjectContent_ZN9drumstick7widgetsE.relocatingData;

Q_CONSTINIT const QMetaObject drumstick::widgets::staticMetaObject = { {
    nullptr,
    qt_staticMetaObjectStaticContent_ZN9drumstick7widgetsE.stringdata,
    qt_staticMetaObjectStaticContent_ZN9drumstick7widgetsE.data,
    nullptr,
    nullptr,
    qt_staticMetaObjectRelocatingContent_ZN9drumstick7widgetsE.metaTypes,
    nullptr
} };

QT_WARNING_POP
