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

#include "../../src/kwave-17.08.3/kwave/MainWidget.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'MainWidget.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.9.2. 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_Kwave__MainWidget_t {
    QByteArrayData data[32];
    char stringdata0[367];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Kwave__MainWidget_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Kwave__MainWidget_t qt_meta_stringdata_Kwave__MainWidget = {
    {
QT_MOC_LITERAL(0, 0, 17), // "Kwave::MainWidget"
QT_MOC_LITERAL(1, 18, 14), // "sigZoomChanged"
QT_MOC_LITERAL(2, 33, 0), // ""
QT_MOC_LITERAL(3, 34, 4), // "zoom"
QT_MOC_LITERAL(4, 39, 10), // "sigCommand"
QT_MOC_LITERAL(5, 50, 7), // "command"
QT_MOC_LITERAL(6, 58, 22), // "sigVisibleRangeChanged"
QT_MOC_LITERAL(7, 81, 14), // "sample_index_t"
QT_MOC_LITERAL(8, 96, 6), // "offset"
QT_MOC_LITERAL(9, 103, 7), // "visible"
QT_MOC_LITERAL(10, 111, 5), // "total"
QT_MOC_LITERAL(11, 117, 15), // "updateViewRange"
QT_MOC_LITERAL(12, 133, 14), // "executeCommand"
QT_MOC_LITERAL(13, 148, 9), // "setOffset"
QT_MOC_LITERAL(14, 158, 10), // "new_offset"
QT_MOC_LITERAL(15, 169, 8), // "scrollTo"
QT_MOC_LITERAL(16, 178, 3), // "pos"
QT_MOC_LITERAL(17, 182, 7), // "setZoom"
QT_MOC_LITERAL(18, 190, 8), // "new_zoom"
QT_MOC_LITERAL(19, 199, 13), // "zoomSelection"
QT_MOC_LITERAL(20, 213, 7), // "zoomAll"
QT_MOC_LITERAL(21, 221, 10), // "zoomNormal"
QT_MOC_LITERAL(22, 232, 6), // "zoomIn"
QT_MOC_LITERAL(23, 239, 7), // "zoomOut"
QT_MOC_LITERAL(24, 247, 17), // "slotTrackInserted"
QT_MOC_LITERAL(25, 265, 5), // "index"
QT_MOC_LITERAL(26, 271, 13), // "Kwave::Track*"
QT_MOC_LITERAL(27, 285, 5), // "track"
QT_MOC_LITERAL(28, 291, 16), // "slotTrackDeleted"
QT_MOC_LITERAL(29, 308, 26), // "refreshHorizontalScrollBar"
QT_MOC_LITERAL(30, 335, 24), // "horizontalScrollBarMoved"
QT_MOC_LITERAL(31, 360, 6) // "newval"

    },
    "Kwave::MainWidget\0sigZoomChanged\0\0"
    "zoom\0sigCommand\0command\0sigVisibleRangeChanged\0"
    "sample_index_t\0offset\0visible\0total\0"
    "updateViewRange\0executeCommand\0setOffset\0"
    "new_offset\0scrollTo\0pos\0setZoom\0"
    "new_zoom\0zoomSelection\0zoomAll\0"
    "zoomNormal\0zoomIn\0zoomOut\0slotTrackInserted\0"
    "index\0Kwave::Track*\0track\0slotTrackDeleted\0"
    "refreshHorizontalScrollBar\0"
    "horizontalScrollBarMoved\0newval"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Kwave__MainWidget[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
      19,   14, // methods
       0,    0, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       3,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    1,  109,    2, 0x06 /* Public */,
       4,    1,  112,    2, 0x06 /* Public */,
       6,    3,  115,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      11,    0,  122,    2, 0x09 /* Protected */,
      12,    1,  123,    2, 0x0a /* Public */,
      13,    1,  126,    2, 0x0a /* Public */,
      15,    1,  129,    2, 0x0a /* Public */,
      17,    1,  132,    2, 0x0a /* Public */,
      19,    0,  135,    2, 0x0a /* Public */,
      20,    0,  136,    2, 0x0a /* Public */,
      21,    0,  137,    2, 0x0a /* Public */,
      22,    1,  138,    2, 0x0a /* Public */,
      22,    0,  141,    2, 0x2a /* Public | MethodCloned */,
      23,    1,  142,    2, 0x0a /* Public */,
      23,    0,  145,    2, 0x2a /* Public | MethodCloned */,
      24,    2,  146,    2, 0x08 /* Private */,
      28,    2,  151,    2, 0x08 /* Private */,
      29,    0,  156,    2, 0x08 /* Private */,
      30,    1,  157,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, QMetaType::Double,    3,
    QMetaType::Void, QMetaType::QString,    5,
    QMetaType::Void, 0x80000000 | 7, 0x80000000 | 7, 0x80000000 | 7,    8,    9,   10,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Int, QMetaType::QString,    5,
    QMetaType::Void, 0x80000000 | 7,   14,
    QMetaType::Void, 0x80000000 | 7,   16,
    QMetaType::Void, QMetaType::Double,   18,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int,   16,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int,   16,
    QMetaType::Void,
    QMetaType::Void, QMetaType::UInt, 0x80000000 | 26,   25,   27,
    QMetaType::Void, QMetaType::UInt, 0x80000000 | 26,   25,   27,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int,   31,

       0        // eod
};

void Kwave::MainWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        MainWidget *_t = static_cast<MainWidget *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->sigZoomChanged((*reinterpret_cast< double(*)>(_a[1]))); break;
        case 1: _t->sigCommand((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 2: _t->sigVisibleRangeChanged((*reinterpret_cast< sample_index_t(*)>(_a[1])),(*reinterpret_cast< sample_index_t(*)>(_a[2])),(*reinterpret_cast< sample_index_t(*)>(_a[3]))); break;
        case 3: _t->updateViewRange(); break;
        case 4: { int _r = _t->executeCommand((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 5: _t->setOffset((*reinterpret_cast< sample_index_t(*)>(_a[1]))); break;
        case 6: _t->scrollTo((*reinterpret_cast< sample_index_t(*)>(_a[1]))); break;
        case 7: _t->setZoom((*reinterpret_cast< double(*)>(_a[1]))); break;
        case 8: _t->zoomSelection(); break;
        case 9: _t->zoomAll(); break;
        case 10: _t->zoomNormal(); break;
        case 11: _t->zoomIn((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 12: _t->zoomIn(); break;
        case 13: _t->zoomOut((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 14: _t->zoomOut(); break;
        case 15: _t->slotTrackInserted((*reinterpret_cast< uint(*)>(_a[1])),(*reinterpret_cast< Kwave::Track*(*)>(_a[2]))); break;
        case 16: _t->slotTrackDeleted((*reinterpret_cast< uint(*)>(_a[1])),(*reinterpret_cast< Kwave::Track*(*)>(_a[2]))); break;
        case 17: _t->refreshHorizontalScrollBar(); break;
        case 18: _t->horizontalScrollBarMoved((*reinterpret_cast< int(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (MainWidget::*_t)(double );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&MainWidget::sigZoomChanged)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (MainWidget::*_t)(const QString & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&MainWidget::sigCommand)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (MainWidget::*_t)(sample_index_t , sample_index_t , sample_index_t );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&MainWidget::sigVisibleRangeChanged)) {
                *result = 2;
                return;
            }
        }
    }
}

const QMetaObject Kwave::MainWidget::staticMetaObject = {
    { &QWidget::staticMetaObject, qt_meta_stringdata_Kwave__MainWidget.data,
      qt_meta_data_Kwave__MainWidget,  qt_static_metacall, nullptr, nullptr}
};


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

void *Kwave::MainWidget::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_Kwave__MainWidget.stringdata0))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "CommandHandler"))
        return static_cast< CommandHandler*>(this);
    if (!strcmp(_clname, "Zoomable"))
        return static_cast< Zoomable*>(this);
    return QWidget::qt_metacast(_clname);
}

int Kwave::MainWidget::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 < 19)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 19;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 19)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 19;
    }
    return _id;
}

// SIGNAL 0
void Kwave::MainWidget::sigZoomChanged(double _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void Kwave::MainWidget::sigCommand(const QString & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

// SIGNAL 2
void Kwave::MainWidget::sigVisibleRangeChanged(sample_index_t _t1, sample_index_t _t2, sample_index_t _t3)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
