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

#include <memory>
#include "../../../../../../drumstick-2.6.1/library/include/drumstick/pianokeybd.h"
#include <QtCore/qbytearray.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 != 67
#error "This file was generated using the moc from 5.15.4. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_drumstick__widgets__PianoKeybd_t {
    QByteArrayData data[21];
    char stringdata0[250];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_drumstick__widgets__PianoKeybd_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_drumstick__widgets__PianoKeybd_t qt_meta_stringdata_drumstick__widgets__PianoKeybd = {
    {
QT_MOC_LITERAL(0, 0, 30), // "drumstick::widgets::PianoKeybd"
QT_MOC_LITERAL(1, 31, 6), // "noteOn"
QT_MOC_LITERAL(2, 38, 0), // ""
QT_MOC_LITERAL(3, 39, 8), // "midiNote"
QT_MOC_LITERAL(4, 48, 3), // "vel"
QT_MOC_LITERAL(5, 52, 7), // "noteOff"
QT_MOC_LITERAL(6, 60, 10), // "signalName"
QT_MOC_LITERAL(7, 71, 4), // "name"
QT_MOC_LITERAL(8, 76, 10), // "baseOctave"
QT_MOC_LITERAL(9, 87, 7), // "numKeys"
QT_MOC_LITERAL(10, 95, 8), // "rotation"
QT_MOC_LITERAL(11, 104, 15), // "keyPressedColor"
QT_MOC_LITERAL(12, 120, 10), // "showLabels"
QT_MOC_LITERAL(13, 131, 15), // "LabelVisibility"
QT_MOC_LITERAL(14, 147, 11), // "alterations"
QT_MOC_LITERAL(15, 159, 15), // "LabelAlteration"
QT_MOC_LITERAL(16, 175, 16), // "labelOrientation"
QT_MOC_LITERAL(17, 192, 16), // "LabelOrientation"
QT_MOC_LITERAL(18, 209, 11), // "labelOctave"
QT_MOC_LITERAL(19, 221, 18), // "LabelCentralOctave"
QT_MOC_LITERAL(20, 240, 9) // "transpose"

    },
    "drumstick::widgets::PianoKeybd\0noteOn\0"
    "\0midiNote\0vel\0noteOff\0signalName\0name\0"
    "baseOctave\0numKeys\0rotation\0keyPressedColor\0"
    "showLabels\0LabelVisibility\0alterations\0"
    "LabelAlteration\0labelOrientation\0"
    "LabelOrientation\0labelOctave\0"
    "LabelCentralOctave\0transpose"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_drumstick__widgets__PianoKeybd[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
       3,   14, // methods
       9,   42, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       3,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    2,   29,    2, 0x06 /* Public */,
       5,    2,   34,    2, 0x06 /* Public */,
       6,    1,   39,    2, 0x06 /* 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, 0x00095103,
       9, QMetaType::Int, 0x00095103,
      10, QMetaType::Int, 0x00095103,
      11, QMetaType::QColor, 0x00095103,
      12, 0x80000000 | 13, 0x0009510b,
      14, 0x80000000 | 15, 0x0009500b,
      16, 0x80000000 | 17, 0x0009510b,
      18, 0x80000000 | 19, 0x0009510b,
      20, QMetaType::Int, 0x00095103,

 // enums: name, alias, flags, count, data

 // enum data: key, value

       0        // eod
};

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< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 1: _t->noteOff((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 2: _t->signalName((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (PianoKeybd::*)(int , int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&PianoKeybd::noteOn)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (PianoKeybd::*)(int , int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&PianoKeybd::noteOff)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (PianoKeybd::*)(const QString & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&PianoKeybd::signalName)) {
                *result = 2;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    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< LabelVisibility*>(_v) = _t->showLabels(); break;
        case 5: *reinterpret_cast< LabelAlteration*>(_v) = _t->labelAlterations(); break;
        case 6: *reinterpret_cast< LabelOrientation*>(_v) = _t->labelOrientation(); break;
        case 7: *reinterpret_cast< LabelCentralOctave*>(_v) = _t->labelOctave(); break;
        case 8: *reinterpret_cast< int*>(_v) = _t->getTranspose(); 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< LabelVisibility*>(_v)); break;
        case 5: _t->setLabelAlterations(*reinterpret_cast< LabelAlteration*>(_v)); break;
        case 6: _t->setLabelOrientation(*reinterpret_cast< LabelOrientation*>(_v)); break;
        case 7: _t->setLabelOctave(*reinterpret_cast< LabelCentralOctave*>(_v)); break;
        case 8: _t->setTranspose(*reinterpret_cast< int*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

QT_INIT_METAOBJECT const QMetaObject drumstick::widgets::PianoKeybd::staticMetaObject = { {
    QMetaObject::SuperData::link<QGraphicsView::staticMetaObject>(),
    qt_meta_stringdata_drumstick__widgets__PianoKeybd.data,
    qt_meta_data_drumstick__widgets__PianoKeybd,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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<int*>(_a[0]) = -1;
        _id -= 3;
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 9;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 9;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 9;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 9;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 9;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 9;
    }
#endif // QT_NO_PROPERTIES
    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);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
