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

#include <memory>
#include "../../../../../../drumstick-2.7.2/library/include/drumstick/pianokeybd.h"
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'pianokeybd.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 68
#error "This file was generated using the moc from 6.4.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_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
namespace {
struct qt_meta_stringdata_drumstick__widgets__PianoKeybd_t {
    uint offsetsAndSizes[46];
    char stringdata0[31];
    char stringdata1[7];
    char stringdata2[1];
    char stringdata3[9];
    char stringdata4[4];
    char stringdata5[8];
    char stringdata6[11];
    char stringdata7[5];
    char stringdata8[11];
    char stringdata9[8];
    char stringdata10[9];
    char stringdata11[16];
    char stringdata12[11];
    char stringdata13[36];
    char stringdata14[12];
    char stringdata15[36];
    char stringdata16[17];
    char stringdata17[37];
    char stringdata18[12];
    char stringdata19[39];
    char stringdata20[10];
    char stringdata21[9];
    char stringdata22[10];
};
#define QT_MOC_LITERAL(ofs, len) \
    uint(sizeof(qt_meta_stringdata_drumstick__widgets__PianoKeybd_t::offsetsAndSizes) + ofs), len 
Q_CONSTINIT static const qt_meta_stringdata_drumstick__widgets__PianoKeybd_t qt_meta_stringdata_drumstick__widgets__PianoKeybd = {
    {
        QT_MOC_LITERAL(0, 30),  // "drumstick::widgets::PianoKeybd"
        QT_MOC_LITERAL(31, 6),  // "noteOn"
        QT_MOC_LITERAL(38, 0),  // ""
        QT_MOC_LITERAL(39, 8),  // "midiNote"
        QT_MOC_LITERAL(48, 3),  // "vel"
        QT_MOC_LITERAL(52, 7),  // "noteOff"
        QT_MOC_LITERAL(60, 10),  // "signalName"
        QT_MOC_LITERAL(71, 4),  // "name"
        QT_MOC_LITERAL(76, 10),  // "baseOctave"
        QT_MOC_LITERAL(87, 7),  // "numKeys"
        QT_MOC_LITERAL(95, 8),  // "rotation"
        QT_MOC_LITERAL(104, 15),  // "keyPressedColor"
        QT_MOC_LITERAL(120, 10),  // "showLabels"
        QT_MOC_LITERAL(131, 35),  // "drumstick::widgets::LabelVisi..."
        QT_MOC_LITERAL(167, 11),  // "alterations"
        QT_MOC_LITERAL(179, 35),  // "drumstick::widgets::LabelAlte..."
        QT_MOC_LITERAL(215, 16),  // "labelOrientation"
        QT_MOC_LITERAL(232, 36),  // "drumstick::widgets::LabelOrie..."
        QT_MOC_LITERAL(269, 11),  // "labelOctave"
        QT_MOC_LITERAL(281, 38),  // "drumstick::widgets::LabelCent..."
        QT_MOC_LITERAL(320, 9),  // "transpose"
        QT_MOC_LITERAL(330, 8),  // "startKey"
        QT_MOC_LITERAL(339, 9)   // "labelFont"
    },
    "drumstick::widgets::PianoKeybd",
    "noteOn",
    "",
    "midiNote",
    "vel",
    "noteOff",
    "signalName",
    "name",
    "baseOctave",
    "numKeys",
    "rotation",
    "keyPressedColor",
    "showLabels",
    "drumstick::widgets::LabelVisibility",
    "alterations",
    "drumstick::widgets::LabelAlteration",
    "labelOrientation",
    "drumstick::widgets::LabelOrientation",
    "labelOctave",
    "drumstick::widgets::LabelCentralOctave",
    "transpose",
    "startKey",
    "labelFont"
};
#undef QT_MOC_LITERAL
} // unnamed namespace

Q_CONSTINIT static const uint qt_meta_data_drumstick__widgets__PianoKeybd[] = {

 // content:
      10,       // revision
       0,       // classname
       0,    0, // classinfo
       3,   14, // methods
      11,   45, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       3,       // signalCount

 // signals: name, argc, parameters, tag, flags, initial metatype offsets
       1,    2,   32,    2, 0x06,   12 /* Public */,
       5,    2,   37,    2, 0x06,   15 /* Public */,
       6,    1,   42,    2, 0x06,   18 /* Public */,

 // signals: parameters
    QMetaType::Void, QMetaType::Int, QMetaType::Int,    3,    4,
    QMetaType::Void, QMetaType::Int, QMetaType::Int,    3,    4,
    QMetaType::Void, QMetaType::QString,    7,

 // properties: name, type, flags
       8, QMetaType::Int, 0x00015103, uint(-1), 0,
       9, QMetaType::Int, 0x00015103, uint(-1), 0,
      10, QMetaType::Int, 0x00015103, uint(-1), 0,
      11, QMetaType::QColor, 0x00015103, uint(-1), 0,
      12, 0x80000000 | 13, 0x0001510b, uint(-1), 0,
      14, 0x80000000 | 15, 0x0001500b, uint(-1), 0,
      16, 0x80000000 | 17, 0x0001510b, uint(-1), 0,
      18, 0x80000000 | 19, 0x0001510b, uint(-1), 0,
      20, QMetaType::Int, 0x00015103, uint(-1), 0,
      21, QMetaType::Int, 0x00015103, uint(-1), 0,
      22, QMetaType::QFont, 0x00015003, uint(-1), 0,

       0        // eod
};

Q_CONSTINIT static const QMetaObject::SuperData qt_meta_extradata_drumstick__widgets__PianoKeybd[] = {
    QMetaObject::SuperData::link<drumstick::widgets::staticMetaObject>(),
    nullptr
};

Q_CONSTINIT const QMetaObject drumstick::widgets::PianoKeybd::staticMetaObject = { {
    QMetaObject::SuperData::link<QGraphicsView::staticMetaObject>(),
    qt_meta_stringdata_drumstick__widgets__PianoKeybd.offsetsAndSizes,
    qt_meta_data_drumstick__widgets__PianoKeybd,
    qt_static_metacall,
    qt_meta_extradata_drumstick__widgets__PianoKeybd,
    qt_incomplete_metaTypeArray<qt_meta_stringdata_drumstick__widgets__PianoKeybd_t,
        // property 'baseOctave'
        QtPrivate::TypeAndForceComplete<int, std::true_type>,
        // property 'numKeys'
        QtPrivate::TypeAndForceComplete<int, std::true_type>,
        // property 'rotation'
        QtPrivate::TypeAndForceComplete<int, std::true_type>,
        // property 'keyPressedColor'
        QtPrivate::TypeAndForceComplete<QColor, std::true_type>,
        // property 'showLabels'
        QtPrivate::TypeAndForceComplete<drumstick::widgets::LabelVisibility, std::true_type>,
        // property 'alterations'
        QtPrivate::TypeAndForceComplete<drumstick::widgets::LabelAlteration, std::true_type>,
        // property 'labelOrientation'
        QtPrivate::TypeAndForceComplete<drumstick::widgets::LabelOrientation, std::true_type>,
        // property 'labelOctave'
        QtPrivate::TypeAndForceComplete<drumstick::widgets::LabelCentralOctave, std::true_type>,
        // property 'transpose'
        QtPrivate::TypeAndForceComplete<int, std::true_type>,
        // property 'startKey'
        QtPrivate::TypeAndForceComplete<int, std::true_type>,
        // property 'labelFont'
        QtPrivate::TypeAndForceComplete<QFont, std::true_type>,
        // Q_OBJECT / Q_GADGET
        QtPrivate::TypeAndForceComplete<PianoKeybd, std::true_type>,
        // method 'noteOn'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        QtPrivate::TypeAndForceComplete<int, std::false_type>,
        QtPrivate::TypeAndForceComplete<int, std::false_type>,
        // method 'noteOff'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        QtPrivate::TypeAndForceComplete<int, std::false_type>,
        QtPrivate::TypeAndForceComplete<int, std::false_type>,
        // method 'signalName'
        QtPrivate::TypeAndForceComplete<void, std::false_type>,
        QtPrivate::TypeAndForceComplete<const QString &, std::false_type>
    >,
    nullptr
} };

void drumstick::widgets::PianoKeybd::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<PianoKeybd *>(_o);
        (void)_t;
        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: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (PianoKeybd::*)(int , int );
            if (_t _q_method = &PianoKeybd::noteOn; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (PianoKeybd::*)(int , int );
            if (_t _q_method = &PianoKeybd::noteOff; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (PianoKeybd::*)(const QString & );
            if (_t _q_method = &PianoKeybd::signalName; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
                *result = 2;
                return;
            }
        }
    }else if (_c == QMetaObject::ReadProperty) {
        auto *_t = static_cast<PianoKeybd *>(_o);
        (void)_t;
        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;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        auto *_t = static_cast<PianoKeybd *>(_o);
        (void)_t;
        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;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    } else if (_c == QMetaObject::BindableProperty) {
    }
}

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_meta_stringdata_drumstick__widgets__PianoKeybd.stringdata0))
        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;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 3)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 3;
    }else 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)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void drumstick::widgets::PianoKeybd::noteOff(int _t1, int _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

// SIGNAL 2
void drumstick::widgets::PianoKeybd::signalName(const QString & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}
namespace {
struct qt_meta_stringdata_drumstick__widgets_t {
    uint offsetsAndSizes[46];
    char stringdata0[19];
    char stringdata1[16];
    char stringdata2[10];
    char stringdata3[12];
    char stringdata4[14];
    char stringdata5[11];
    char stringdata6[16];
    char stringdata7[11];
    char stringdata8[10];
    char stringdata9[12];
    char stringdata10[17];
    char stringdata11[22];
    char stringdata12[20];
    char stringdata13[21];
    char stringdata14[12];
    char stringdata15[14];
    char stringdata16[22];
    char stringdata17[21];
    char stringdata18[19];
    char stringdata19[14];
    char stringdata20[9];
    char stringdata21[9];
    char stringdata22[9];
};
#define QT_MOC_LITERAL(ofs, len) \
    uint(sizeof(qt_meta_stringdata_drumstick__widgets_t::offsetsAndSizes) + ofs), len 
Q_CONSTINIT static const qt_meta_stringdata_drumstick__widgets_t qt_meta_stringdata_drumstick__widgets = {
    {
        QT_MOC_LITERAL(0, 18),  // "drumstick::widgets"
        QT_MOC_LITERAL(19, 15),  // "LabelVisibility"
        QT_MOC_LITERAL(35, 9),  // "ShowNever"
        QT_MOC_LITERAL(45, 11),  // "ShowMinimum"
        QT_MOC_LITERAL(57, 13),  // "ShowActivated"
        QT_MOC_LITERAL(71, 10),  // "ShowAlways"
        QT_MOC_LITERAL(82, 15),  // "LabelAlteration"
        QT_MOC_LITERAL(98, 10),  // "ShowSharps"
        QT_MOC_LITERAL(109, 9),  // "ShowFlats"
        QT_MOC_LITERAL(119, 11),  // "ShowNothing"
        QT_MOC_LITERAL(131, 16),  // "LabelOrientation"
        QT_MOC_LITERAL(148, 21),  // "HorizontalOrientation"
        QT_MOC_LITERAL(170, 19),  // "VerticalOrientation"
        QT_MOC_LITERAL(190, 20),  // "AutomaticOrientation"
        QT_MOC_LITERAL(211, 11),  // "LabelNaming"
        QT_MOC_LITERAL(223, 13),  // "StandardNames"
        QT_MOC_LITERAL(237, 21),  // "CustomNamesWithSharps"
        QT_MOC_LITERAL(259, 20),  // "CustomNamesWithFlats"
        QT_MOC_LITERAL(280, 18),  // "LabelCentralOctave"
        QT_MOC_LITERAL(299, 13),  // "OctaveNothing"
        QT_MOC_LITERAL(313, 8),  // "OctaveC3"
        QT_MOC_LITERAL(322, 8),  // "OctaveC4"
        QT_MOC_LITERAL(331, 8)   // "OctaveC5"
    },
    "drumstick::widgets",
    "LabelVisibility",
    "ShowNever",
    "ShowMinimum",
    "ShowActivated",
    "ShowAlways",
    "LabelAlteration",
    "ShowSharps",
    "ShowFlats",
    "ShowNothing",
    "LabelOrientation",
    "HorizontalOrientation",
    "VerticalOrientation",
    "AutomaticOrientation",
    "LabelNaming",
    "StandardNames",
    "CustomNamesWithSharps",
    "CustomNamesWithFlats",
    "LabelCentralOctave",
    "OctaveNothing",
    "OctaveC3",
    "OctaveC4",
    "OctaveC5"
};
#undef QT_MOC_LITERAL
} // unnamed namespace

Q_CONSTINIT static const uint qt_meta_data_drumstick__widgets[] = {

 // content:
      10,       // revision
       0,       // classname
       0,    0, // classinfo
       0,    0, // methods
       0,    0, // properties
       5,   14, // enums/sets
       0,    0, // constructors
       4,       // flags
       0,       // signalCount

 // enums: name, alias, flags, count, data
       1,    1, 0x0,    4,   39,
       6,    6, 0x0,    3,   47,
      10,   10, 0x0,    3,   53,
      14,   14, 0x0,    3,   59,
      18,   18, 0x0,    4,   65,

 // enum data: key, value
       2, uint(drumstick::widgets::ShowNever),
       3, uint(drumstick::widgets::ShowMinimum),
       4, uint(drumstick::widgets::ShowActivated),
       5, uint(drumstick::widgets::ShowAlways),
       7, uint(drumstick::widgets::ShowSharps),
       8, uint(drumstick::widgets::ShowFlats),
       9, uint(drumstick::widgets::ShowNothing),
      11, uint(drumstick::widgets::HorizontalOrientation),
      12, uint(drumstick::widgets::VerticalOrientation),
      13, uint(drumstick::widgets::AutomaticOrientation),
      15, uint(drumstick::widgets::StandardNames),
      16, uint(drumstick::widgets::CustomNamesWithSharps),
      17, uint(drumstick::widgets::CustomNamesWithFlats),
      19, uint(drumstick::widgets::OctaveNothing),
      20, uint(drumstick::widgets::OctaveC3),
      21, uint(drumstick::widgets::OctaveC4),
      22, uint(drumstick::widgets::OctaveC5),

       0        // eod
};

Q_CONSTINIT const QMetaObject drumstick::widgets::staticMetaObject = { {
    nullptr,
    qt_meta_stringdata_drumstick__widgets.offsetsAndSizes,
    qt_meta_data_drumstick__widgets,
    nullptr,
    nullptr,
    qt_incomplete_metaTypeArray<qt_meta_stringdata_drumstick__widgets_t,
        // Q_OBJECT / Q_GADGET
        QtPrivate::TypeAndForceComplete<void, std::true_type>
    >,
    nullptr
} };

QT_WARNING_POP
QT_END_MOC_NAMESPACE
