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

#include <memory>
#include "../../../muse-4.2.1/src/muse/ctrl/ctrlpanel.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'ctrlpanel.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.19. 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_MusEGui__CtrlPanel_t {
    QByteArrayData data[24];
    char stringdata0[281];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_MusEGui__CtrlPanel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_MusEGui__CtrlPanel_t qt_meta_stringdata_MusEGui__CtrlPanel = {
    {
QT_MOC_LITERAL(0, 0, 18), // "MusEGui::CtrlPanel"
QT_MOC_LITERAL(1, 19, 12), // "destroyPanel"
QT_MOC_LITERAL(2, 32, 0), // ""
QT_MOC_LITERAL(3, 33, 17), // "controllerChanged"
QT_MOC_LITERAL(4, 51, 16), // "patchCtrlChanged"
QT_MOC_LITERAL(5, 68, 3), // "val"
QT_MOC_LITERAL(6, 72, 11), // "ctrlChanged"
QT_MOC_LITERAL(7, 84, 3), // "off"
QT_MOC_LITERAL(8, 88, 2), // "id"
QT_MOC_LITERAL(9, 91, 10), // "scrollMode"
QT_MOC_LITERAL(10, 102, 16), // "ctrlRightClicked"
QT_MOC_LITERAL(11, 119, 1), // "p"
QT_MOC_LITERAL(12, 121, 18), // "ctrlPopupTriggered"
QT_MOC_LITERAL(13, 140, 8), // "QAction*"
QT_MOC_LITERAL(14, 149, 3), // "act"
QT_MOC_LITERAL(15, 153, 17), // "velPerNoteClicked"
QT_MOC_LITERAL(16, 171, 11), // "songChanged"
QT_MOC_LITERAL(17, 183, 29), // "MusECore::SongChangedStruct_t"
QT_MOC_LITERAL(18, 213, 4), // "type"
QT_MOC_LITERAL(19, 218, 13), // "configChanged"
QT_MOC_LITERAL(20, 232, 9), // "heartBeat"
QT_MOC_LITERAL(21, 242, 9), // "setHeight"
QT_MOC_LITERAL(22, 252, 9), // "ctrlPopup"
QT_MOC_LITERAL(23, 262, 18) // "setVeloPerNoteMode"

    },
    "MusEGui::CtrlPanel\0destroyPanel\0\0"
    "controllerChanged\0patchCtrlChanged\0"
    "val\0ctrlChanged\0off\0id\0scrollMode\0"
    "ctrlRightClicked\0p\0ctrlPopupTriggered\0"
    "QAction*\0act\0velPerNoteClicked\0"
    "songChanged\0MusECore::SongChangedStruct_t\0"
    "type\0configChanged\0heartBeat\0setHeight\0"
    "ctrlPopup\0setVeloPerNoteMode"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_MusEGui__CtrlPanel[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
      13,   14, // methods
       0,    0, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       2,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    0,   79,    2, 0x06 /* Public */,
       3,    1,   80,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       4,    1,   83,    2, 0x08 /* Private */,
       6,    4,   86,    2, 0x08 /* Private */,
      10,    2,   95,    2, 0x08 /* Private */,
      12,    1,  100,    2, 0x08 /* Private */,
      15,    0,  103,    2, 0x08 /* Private */,
      16,    1,  104,    2, 0x08 /* Private */,
      19,    0,  107,    2, 0x08 /* Private */,
      20,    0,  108,    2, 0x09 /* Protected */,
      21,    1,  109,    2, 0x0a /* Public */,
      22,    0,  112,    2, 0x0a /* Public */,
      23,    1,  113,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int,    2,

 // slots: parameters
    QMetaType::Void, QMetaType::Int,    5,
    QMetaType::Void, QMetaType::Double, QMetaType::Bool, QMetaType::Int, QMetaType::Int,    5,    7,    8,    9,
    QMetaType::Void, QMetaType::QPoint, QMetaType::Int,   11,    8,
    QMetaType::Void, 0x80000000 | 13,   14,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 17,   18,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int,    2,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Bool,    2,

       0        // eod
};

void MusEGui::CtrlPanel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<CtrlPanel *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->destroyPanel(); break;
        case 1: _t->controllerChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 2: _t->patchCtrlChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 3: _t->ctrlChanged((*reinterpret_cast< double(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3])),(*reinterpret_cast< int(*)>(_a[4]))); break;
        case 4: _t->ctrlRightClicked((*reinterpret_cast< const QPoint(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 5: _t->ctrlPopupTriggered((*reinterpret_cast< QAction*(*)>(_a[1]))); break;
        case 6: _t->velPerNoteClicked(); break;
        case 7: _t->songChanged((*reinterpret_cast< MusECore::SongChangedStruct_t(*)>(_a[1]))); break;
        case 8: _t->configChanged(); break;
        case 9: _t->heartBeat(); break;
        case 10: _t->setHeight((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 11: _t->ctrlPopup(); break;
        case 12: _t->setVeloPerNoteMode((*reinterpret_cast< bool(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (CtrlPanel::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&CtrlPanel::destroyPanel)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (CtrlPanel::*)(int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&CtrlPanel::controllerChanged)) {
                *result = 1;
                return;
            }
        }
    }
}

QT_INIT_METAOBJECT const QMetaObject MusEGui::CtrlPanel::staticMetaObject = { {
    QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
    qt_meta_stringdata_MusEGui__CtrlPanel.data,
    qt_meta_data_MusEGui__CtrlPanel,
    qt_static_metacall,
    nullptr,
    nullptr
} };


const QMetaObject *MusEGui::CtrlPanel::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}

void *MusEGui::CtrlPanel::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_MusEGui__CtrlPanel.stringdata0))
        return static_cast<void*>(this);
    return QWidget::qt_metacast(_clname);
}

int MusEGui::CtrlPanel::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;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 13)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 13;
    }
    return _id;
}

// SIGNAL 0
void MusEGui::CtrlPanel::destroyPanel()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void MusEGui::CtrlPanel::controllerChanged(int _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
