/****************************************************************************
** Meta object code from reading C++ file 'mainwindow.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 "mainwindow.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'mainwindow.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_MainWindow_t {
    QByteArrayData data[53];
    char stringdata0[567];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_MainWindow_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_MainWindow_t qt_meta_stringdata_MainWindow = {
    {
QT_MOC_LITERAL(0, 0, 10), // "MainWindow"
QT_MOC_LITERAL(1, 11, 8), // "newTempo"
QT_MOC_LITERAL(2, 20, 0), // ""
QT_MOC_LITERAL(3, 21, 11), // "nsmOpenFile"
QT_MOC_LITERAL(4, 33, 4), // "name"
QT_MOC_LITERAL(5, 38, 7), // "fileNew"
QT_MOC_LITERAL(6, 46, 8), // "fileOpen"
QT_MOC_LITERAL(7, 55, 8), // "openFile"
QT_MOC_LITERAL(8, 64, 8), // "fileSave"
QT_MOC_LITERAL(9, 73, 10), // "fileSaveAs"
QT_MOC_LITERAL(10, 84, 6), // "arpNew"
QT_MOC_LITERAL(11, 91, 6), // "lfoNew"
QT_MOC_LITERAL(12, 98, 6), // "seqNew"
QT_MOC_LITERAL(13, 105, 12), // "removeModule"
QT_MOC_LITERAL(14, 118, 11), // "cloneModule"
QT_MOC_LITERAL(15, 130, 9), // "helpAbout"
QT_MOC_LITERAL(16, 140, 11), // "helpAboutQt"
QT_MOC_LITERAL(17, 152, 11), // "updateTempo"
QT_MOC_LITERAL(18, 164, 5), // "tempo"
QT_MOC_LITERAL(19, 170, 12), // "displayTempo"
QT_MOC_LITERAL(20, 183, 7), // "p_tempo"
QT_MOC_LITERAL(21, 191, 21), // "updateTransportStatus"
QT_MOC_LITERAL(22, 213, 2), // "on"
QT_MOC_LITERAL(23, 216, 15), // "midiClockToggle"
QT_MOC_LITERAL(24, 232, 14), // "jackSyncToggle"
QT_MOC_LITERAL(25, 247, 12), // "jackShutdown"
QT_MOC_LITERAL(26, 260, 16), // "showMidiCCDialog"
QT_MOC_LITERAL(27, 277, 6), // "showIO"
QT_MOC_LITERAL(28, 284, 6), // "hideIO"
QT_MOC_LITERAL(29, 291, 20), // "updatePatternPresets"
QT_MOC_LITERAL(30, 312, 1), // "n"
QT_MOC_LITERAL(31, 314, 1), // "p"
QT_MOC_LITERAL(32, 316, 5), // "index"
QT_MOC_LITERAL(33, 322, 19), // "recentFileActivated"
QT_MOC_LITERAL(34, 342, 8), // "QAction*"
QT_MOC_LITERAL(35, 351, 20), // "setupRecentFilesMenu"
QT_MOC_LITERAL(36, 372, 12), // "signalAction"
QT_MOC_LITERAL(37, 385, 8), // "jsAction"
QT_MOC_LITERAL(38, 394, 2), // "ev"
QT_MOC_LITERAL(39, 397, 22), // "ctb_update_orientation"
QT_MOC_LITERAL(40, 420, 15), // "Qt::Orientation"
QT_MOC_LITERAL(41, 436, 6), // "orient"
QT_MOC_LITERAL(42, 443, 22), // "ftb_update_orientation"
QT_MOC_LITERAL(43, 466, 11), // "cb_nsm_open"
QT_MOC_LITERAL(44, 478, 11), // "const char*"
QT_MOC_LITERAL(45, 490, 12), // "display_name"
QT_MOC_LITERAL(46, 503, 9), // "client_id"
QT_MOC_LITERAL(47, 513, 6), // "char**"
QT_MOC_LITERAL(48, 520, 7), // "out_msg"
QT_MOC_LITERAL(49, 528, 8), // "userdata"
QT_MOC_LITERAL(50, 537, 11), // "cb_nsm_save"
QT_MOC_LITERAL(51, 549, 8), // "nsm_open"
QT_MOC_LITERAL(52, 558, 8) // "nsm_save"

    },
    "MainWindow\0newTempo\0\0nsmOpenFile\0name\0"
    "fileNew\0fileOpen\0openFile\0fileSave\0"
    "fileSaveAs\0arpNew\0lfoNew\0seqNew\0"
    "removeModule\0cloneModule\0helpAbout\0"
    "helpAboutQt\0updateTempo\0tempo\0"
    "displayTempo\0p_tempo\0updateTransportStatus\0"
    "on\0midiClockToggle\0jackSyncToggle\0"
    "jackShutdown\0showMidiCCDialog\0showIO\0"
    "hideIO\0updatePatternPresets\0n\0p\0index\0"
    "recentFileActivated\0QAction*\0"
    "setupRecentFilesMenu\0signalAction\0"
    "jsAction\0ev\0ctb_update_orientation\0"
    "Qt::Orientation\0orient\0ftb_update_orientation\0"
    "cb_nsm_open\0const char*\0display_name\0"
    "client_id\0char**\0out_msg\0userdata\0"
    "cb_nsm_save\0nsm_open\0nsm_save"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_MainWindow[] = {

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

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

 // slots: name, argc, parameters, tag, flags
       5,    0,  190,    2, 0x0a /* Public */,
       6,    0,  191,    2, 0x0a /* Public */,
       7,    1,  192,    2, 0x0a /* Public */,
       8,    0,  195,    2, 0x0a /* Public */,
       9,    0,  196,    2, 0x0a /* Public */,
      10,    0,  197,    2, 0x0a /* Public */,
      11,    0,  198,    2, 0x0a /* Public */,
      12,    0,  199,    2, 0x0a /* Public */,
      13,    0,  200,    2, 0x0a /* Public */,
      14,    0,  201,    2, 0x0a /* Public */,
      15,    0,  202,    2, 0x0a /* Public */,
      16,    0,  203,    2, 0x0a /* Public */,
      17,    1,  204,    2, 0x0a /* Public */,
      19,    1,  207,    2, 0x0a /* Public */,
      21,    1,  210,    2, 0x0a /* Public */,
      23,    1,  213,    2, 0x0a /* Public */,
      24,    1,  216,    2, 0x0a /* Public */,
      25,    0,  219,    2, 0x0a /* Public */,
      26,    0,  220,    2, 0x0a /* Public */,
      27,    0,  221,    2, 0x0a /* Public */,
      28,    0,  222,    2, 0x0a /* Public */,
      29,    3,  223,    2, 0x0a /* Public */,
      33,    1,  230,    2, 0x0a /* Public */,
      35,    0,  233,    2, 0x0a /* Public */,
      36,    1,  234,    2, 0x0a /* Public */,
      37,    1,  237,    2, 0x0a /* Public */,
      39,    1,  240,    2, 0x0a /* Public */,
      42,    1,  243,    2, 0x0a /* Public */,
      43,    5,  246,    2, 0x0a /* Public */,
      50,    2,  257,    2, 0x0a /* Public */,
      51,    4,  262,    2, 0x0a /* Public */,
      52,    1,  271,    2, 0x0a /* Public */,

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

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString,    2,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int,   18,
    QMetaType::Void, QMetaType::Double,   20,
    QMetaType::Void, QMetaType::Bool,   22,
    QMetaType::Void, QMetaType::Bool,   22,
    QMetaType::Void, QMetaType::Bool,   22,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString, QMetaType::QString, QMetaType::Int,   30,   31,   32,
    QMetaType::Void, 0x80000000 | 34,    2,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int,    2,
    QMetaType::Void, QMetaType::Int,   38,
    QMetaType::Void, 0x80000000 | 40,   41,
    QMetaType::Void, 0x80000000 | 40,   41,
    QMetaType::Int, 0x80000000 | 44, 0x80000000 | 44, 0x80000000 | 44, 0x80000000 | 47, QMetaType::VoidStar,    4,   45,   46,   48,   49,
    QMetaType::Int, 0x80000000 | 47, QMetaType::VoidStar,   48,   49,
    QMetaType::Int, 0x80000000 | 44, 0x80000000 | 44, 0x80000000 | 44, 0x80000000 | 47,    4,   45,   46,   48,
    QMetaType::Int, 0x80000000 | 47,   48,

       0        // eod
};

void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<MainWindow *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->newTempo((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 1: _t->nsmOpenFile((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 2: _t->fileNew(); break;
        case 3: _t->fileOpen(); break;
        case 4: _t->openFile((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 5: _t->fileSave(); break;
        case 6: _t->fileSaveAs(); break;
        case 7: _t->arpNew(); break;
        case 8: _t->lfoNew(); break;
        case 9: _t->seqNew(); break;
        case 10: _t->removeModule(); break;
        case 11: _t->cloneModule(); break;
        case 12: _t->helpAbout(); break;
        case 13: _t->helpAboutQt(); break;
        case 14: _t->updateTempo((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 15: _t->displayTempo((*reinterpret_cast< double(*)>(_a[1]))); break;
        case 16: _t->updateTransportStatus((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 17: _t->midiClockToggle((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 18: _t->jackSyncToggle((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 19: _t->jackShutdown(); break;
        case 20: _t->showMidiCCDialog(); break;
        case 21: _t->showIO(); break;
        case 22: _t->hideIO(); break;
        case 23: _t->updatePatternPresets((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
        case 24: _t->recentFileActivated((*reinterpret_cast< QAction*(*)>(_a[1]))); break;
        case 25: _t->setupRecentFilesMenu(); break;
        case 26: _t->signalAction((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 27: _t->jsAction((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 28: _t->ctb_update_orientation((*reinterpret_cast< Qt::Orientation(*)>(_a[1]))); break;
        case 29: _t->ftb_update_orientation((*reinterpret_cast< Qt::Orientation(*)>(_a[1]))); break;
        case 30: { int _r = _t->cb_nsm_open((*reinterpret_cast< const char*(*)>(_a[1])),(*reinterpret_cast< const char*(*)>(_a[2])),(*reinterpret_cast< const char*(*)>(_a[3])),(*reinterpret_cast< char**(*)>(_a[4])),(*reinterpret_cast< void*(*)>(_a[5])));
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 31: { int _r = _t->cb_nsm_save((*reinterpret_cast< char**(*)>(_a[1])),(*reinterpret_cast< void*(*)>(_a[2])));
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 32: { int _r = _t->nsm_open((*reinterpret_cast< const char*(*)>(_a[1])),(*reinterpret_cast< const char*(*)>(_a[2])),(*reinterpret_cast< const char*(*)>(_a[3])),(*reinterpret_cast< char**(*)>(_a[4])));
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 33: { int _r = _t->nsm_save((*reinterpret_cast< char**(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (MainWindow::*)(int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MainWindow::newTempo)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (MainWindow::*)(const QString & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MainWindow::nsmOpenFile)) {
                *result = 1;
                return;
            }
        }
    }
}

QT_INIT_METAOBJECT const QMetaObject MainWindow::staticMetaObject = { {
    QMetaObject::SuperData::link<QMainWindow::staticMetaObject>(),
    qt_meta_stringdata_MainWindow.data,
    qt_meta_data_MainWindow,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

void *MainWindow::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_MainWindow.stringdata0))
        return static_cast<void*>(this);
    return QMainWindow::qt_metacast(_clname);
}

int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QMainWindow::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 34)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 34;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 34)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 34;
    }
    return _id;
}

// SIGNAL 0
void MainWindow::newTempo(int _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void MainWindow::nsmOpenFile(const QString & _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
