/****************************************************************************
** Meta object code from reading C++ file 'TopWidget.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/TopWidget.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'TopWidget.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__TopWidget_t {
    QByteArrayData data[56];
    char stringdata0[749];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Kwave__TopWidget_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Kwave__TopWidget_t qt_meta_stringdata_Kwave__TopWidget = {
    {
QT_MOC_LITERAL(0, 0, 16), // "Kwave::TopWidget"
QT_MOC_LITERAL(1, 17, 22), // "sigFileContextSwitched"
QT_MOC_LITERAL(2, 40, 0), // ""
QT_MOC_LITERAL(3, 41, 19), // "Kwave::FileContext*"
QT_MOC_LITERAL(4, 61, 7), // "context"
QT_MOC_LITERAL(5, 69, 17), // "updateRecentFiles"
QT_MOC_LITERAL(6, 87, 14), // "executeCommand"
QT_MOC_LITERAL(7, 102, 7), // "command"
QT_MOC_LITERAL(8, 110, 14), // "forwardCommand"
QT_MOC_LITERAL(9, 125, 10), // "closeEvent"
QT_MOC_LITERAL(10, 136, 12), // "QCloseEvent*"
QT_MOC_LITERAL(11, 149, 1), // "e"
QT_MOC_LITERAL(12, 151, 14), // "dragEnterEvent"
QT_MOC_LITERAL(13, 166, 16), // "QDragEnterEvent*"
QT_MOC_LITERAL(14, 183, 5), // "event"
QT_MOC_LITERAL(15, 189, 9), // "dropEvent"
QT_MOC_LITERAL(16, 199, 11), // "QDropEvent*"
QT_MOC_LITERAL(17, 211, 15), // "metaDataChanged"
QT_MOC_LITERAL(18, 227, 19), // "Kwave::MetaDataList"
QT_MOC_LITERAL(19, 247, 9), // "meta_data"
QT_MOC_LITERAL(20, 257, 16), // "selectionChanged"
QT_MOC_LITERAL(21, 274, 14), // "sample_index_t"
QT_MOC_LITERAL(22, 289, 6), // "offset"
QT_MOC_LITERAL(23, 296, 6), // "length"
QT_MOC_LITERAL(24, 303, 15), // "setUndoRedoInfo"
QT_MOC_LITERAL(25, 319, 4), // "undo"
QT_MOC_LITERAL(26, 324, 4), // "redo"
QT_MOC_LITERAL(27, 329, 16), // "clipboardChanged"
QT_MOC_LITERAL(28, 346, 14), // "data_available"
QT_MOC_LITERAL(29, 361, 10), // "updateMenu"
QT_MOC_LITERAL(30, 372, 22), // "resetToolbarToDefaults"
QT_MOC_LITERAL(31, 395, 13), // "updateToolbar"
QT_MOC_LITERAL(32, 409, 13), // "toolbarRecord"
QT_MOC_LITERAL(33, 423, 14), // "toolbarFileNew"
QT_MOC_LITERAL(34, 438, 15), // "toolbarFileOpen"
QT_MOC_LITERAL(35, 454, 15), // "toolbarFileSave"
QT_MOC_LITERAL(36, 470, 17), // "toolbarFileSaveAs"
QT_MOC_LITERAL(37, 488, 16), // "toolbarFileClose"
QT_MOC_LITERAL(38, 505, 15), // "toolbarEditUndo"
QT_MOC_LITERAL(39, 521, 15), // "toolbarEditRedo"
QT_MOC_LITERAL(40, 537, 14), // "toolbarEditCut"
QT_MOC_LITERAL(41, 552, 15), // "toolbarEditCopy"
QT_MOC_LITERAL(42, 568, 16), // "toolbarEditPaste"
QT_MOC_LITERAL(43, 585, 16), // "toolbarEditErase"
QT_MOC_LITERAL(44, 602, 17), // "toolbarEditDelete"
QT_MOC_LITERAL(45, 620, 15), // "modifiedChanged"
QT_MOC_LITERAL(46, 636, 17), // "showInSplashSreen"
QT_MOC_LITERAL(47, 654, 7), // "message"
QT_MOC_LITERAL(48, 662, 20), // "showStatusBarMessage"
QT_MOC_LITERAL(49, 683, 3), // "msg"
QT_MOC_LITERAL(50, 687, 2), // "ms"
QT_MOC_LITERAL(51, 690, 18), // "subWindowActivated"
QT_MOC_LITERAL(52, 709, 14), // "QMdiSubWindow*"
QT_MOC_LITERAL(53, 724, 3), // "sub"
QT_MOC_LITERAL(54, 728, 16), // "subWindowDeleted"
QT_MOC_LITERAL(55, 745, 3) // "obj"

    },
    "Kwave::TopWidget\0sigFileContextSwitched\0"
    "\0Kwave::FileContext*\0context\0"
    "updateRecentFiles\0executeCommand\0"
    "command\0forwardCommand\0closeEvent\0"
    "QCloseEvent*\0e\0dragEnterEvent\0"
    "QDragEnterEvent*\0event\0dropEvent\0"
    "QDropEvent*\0metaDataChanged\0"
    "Kwave::MetaDataList\0meta_data\0"
    "selectionChanged\0sample_index_t\0offset\0"
    "length\0setUndoRedoInfo\0undo\0redo\0"
    "clipboardChanged\0data_available\0"
    "updateMenu\0resetToolbarToDefaults\0"
    "updateToolbar\0toolbarRecord\0toolbarFileNew\0"
    "toolbarFileOpen\0toolbarFileSave\0"
    "toolbarFileSaveAs\0toolbarFileClose\0"
    "toolbarEditUndo\0toolbarEditRedo\0"
    "toolbarEditCut\0toolbarEditCopy\0"
    "toolbarEditPaste\0toolbarEditErase\0"
    "toolbarEditDelete\0modifiedChanged\0"
    "showInSplashSreen\0message\0"
    "showStatusBarMessage\0msg\0ms\0"
    "subWindowActivated\0QMdiSubWindow*\0sub\0"
    "subWindowDeleted\0obj"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Kwave__TopWidget[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    1,  174,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       5,    0,  177,    2, 0x0a /* Public */,
       6,    1,  178,    2, 0x0a /* Public */,
       8,    1,  181,    2, 0x0a /* Public */,
       9,    1,  184,    2, 0x09 /* Protected */,
      12,    1,  187,    2, 0x09 /* Protected */,
      15,    1,  190,    2, 0x09 /* Protected */,
      17,    1,  193,    2, 0x08 /* Private */,
      20,    2,  196,    2, 0x08 /* Private */,
      24,    2,  201,    2, 0x08 /* Private */,
      27,    1,  206,    2, 0x08 /* Private */,
      29,    0,  209,    2, 0x08 /* Private */,
      30,    0,  210,    2, 0x08 /* Private */,
      31,    0,  211,    2, 0x08 /* Private */,
      32,    0,  212,    2, 0x08 /* Private */,
      33,    0,  213,    2, 0x08 /* Private */,
      34,    0,  214,    2, 0x08 /* Private */,
      35,    0,  215,    2, 0x08 /* Private */,
      36,    0,  216,    2, 0x08 /* Private */,
      37,    0,  217,    2, 0x08 /* Private */,
      38,    0,  218,    2, 0x08 /* Private */,
      39,    0,  219,    2, 0x08 /* Private */,
      40,    0,  220,    2, 0x08 /* Private */,
      41,    0,  221,    2, 0x08 /* Private */,
      42,    0,  222,    2, 0x08 /* Private */,
      43,    0,  223,    2, 0x08 /* Private */,
      44,    0,  224,    2, 0x08 /* Private */,
      45,    0,  225,    2, 0x08 /* Private */,
      46,    1,  226,    2, 0x08 /* Private */,
      48,    2,  229,    2, 0x08 /* Private */,
      51,    1,  234,    2, 0x08 /* Private */,
      54,    1,  237,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3,    4,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Int, QMetaType::QString,    7,
    QMetaType::Int, QMetaType::QString,    7,
    QMetaType::Void, 0x80000000 | 10,   11,
    QMetaType::Void, 0x80000000 | 13,   14,
    QMetaType::Void, 0x80000000 | 16,   14,
    QMetaType::Void, 0x80000000 | 18,   19,
    QMetaType::Void, 0x80000000 | 21, 0x80000000 | 21,   22,   23,
    QMetaType::Void, QMetaType::QString, QMetaType::QString,   25,   26,
    QMetaType::Void, QMetaType::Bool,   28,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString,   47,
    QMetaType::Void, QMetaType::QString, QMetaType::UInt,   49,   50,
    QMetaType::Void, 0x80000000 | 52,   53,
    QMetaType::Void, QMetaType::QObjectStar,   55,

       0        // eod
};

void Kwave::TopWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        TopWidget *_t = static_cast<TopWidget *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->sigFileContextSwitched((*reinterpret_cast< Kwave::FileContext*(*)>(_a[1]))); break;
        case 1: _t->updateRecentFiles(); break;
        case 2: { int _r = _t->executeCommand((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 3: { int _r = _t->forwardCommand((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 4: _t->closeEvent((*reinterpret_cast< QCloseEvent*(*)>(_a[1]))); break;
        case 5: _t->dragEnterEvent((*reinterpret_cast< QDragEnterEvent*(*)>(_a[1]))); break;
        case 6: _t->dropEvent((*reinterpret_cast< QDropEvent*(*)>(_a[1]))); break;
        case 7: _t->metaDataChanged((*reinterpret_cast< Kwave::MetaDataList(*)>(_a[1]))); break;
        case 8: _t->selectionChanged((*reinterpret_cast< sample_index_t(*)>(_a[1])),(*reinterpret_cast< sample_index_t(*)>(_a[2]))); break;
        case 9: _t->setUndoRedoInfo((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break;
        case 10: _t->clipboardChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 11: _t->updateMenu(); break;
        case 12: _t->resetToolbarToDefaults(); break;
        case 13: _t->updateToolbar(); break;
        case 14: _t->toolbarRecord(); break;
        case 15: _t->toolbarFileNew(); break;
        case 16: _t->toolbarFileOpen(); break;
        case 17: _t->toolbarFileSave(); break;
        case 18: _t->toolbarFileSaveAs(); break;
        case 19: _t->toolbarFileClose(); break;
        case 20: _t->toolbarEditUndo(); break;
        case 21: _t->toolbarEditRedo(); break;
        case 22: _t->toolbarEditCut(); break;
        case 23: _t->toolbarEditCopy(); break;
        case 24: _t->toolbarEditPaste(); break;
        case 25: _t->toolbarEditErase(); break;
        case 26: _t->toolbarEditDelete(); break;
        case 27: _t->modifiedChanged(); break;
        case 28: _t->showInSplashSreen((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 29: _t->showStatusBarMessage((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< uint(*)>(_a[2]))); break;
        case 30: _t->subWindowActivated((*reinterpret_cast< QMdiSubWindow*(*)>(_a[1]))); break;
        case 31: _t->subWindowDeleted((*reinterpret_cast< QObject*(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 0:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Kwave::FileContext* >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (TopWidget::*_t)(Kwave::FileContext * );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&TopWidget::sigFileContextSwitched)) {
                *result = 0;
                return;
            }
        }
    }
}

const QMetaObject Kwave::TopWidget::staticMetaObject = {
    { &KMainWindow::staticMetaObject, qt_meta_stringdata_Kwave__TopWidget.data,
      qt_meta_data_Kwave__TopWidget,  qt_static_metacall, nullptr, nullptr}
};


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

void *Kwave::TopWidget::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_Kwave__TopWidget.stringdata0))
        return static_cast<void*>(this);
    return KMainWindow::qt_metacast(_clname);
}

int Kwave::TopWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = KMainWindow::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 32)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 32;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 32)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 32;
    }
    return _id;
}

// SIGNAL 0
void Kwave::TopWidget::sigFileContextSwitched(Kwave::FileContext * _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
