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

#include "../../../../kwave-26.07.90/libgui/SignalView.h"
#include <QtGui/qtextcursor.h>
#include <QtCore/qmetatype.h>

#include <QtCore/qtmochelpers.h>

#include <memory>


#include <QtCore/qxptype_traits.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'SignalView.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.12.0. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

#ifndef Q_CONSTINIT
#define Q_CONSTINIT
#endif

QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
QT_WARNING_DISABLE_GCC("-Wuseless-cast")
namespace {
struct qt_meta_tag_ZN5Kwave10SignalViewE_t {};
} // unnamed namespace

template <> constexpr inline auto Kwave::SignalView::qt_create_metaobjectdata<qt_meta_tag_ZN5Kwave10SignalViewE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Kwave::SignalView",
        "contentSizeChanged",
        "",
        "sigCursorChanged",
        "sample_index_t",
        "pos",
        "sigNeedRepaint",
        "Kwave::SignalView*",
        "view",
        "sigCommand",
        "command",
        "setTrack",
        "track",
        "setZoomAndOffset",
        "zoom",
        "offset",
        "setVerticalZoom",
        "showCursor",
        "showPosition",
        "text",
        "QPoint",
        "mouse",
        "hidePosition"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'contentSizeChanged'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'sigCursorChanged'
        QtMocHelpers::SignalData<void(sample_index_t)>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 4, 5 },
        }}),
        // Signal 'sigNeedRepaint'
        QtMocHelpers::SignalData<void(Kwave::SignalView *)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 7, 8 },
        }}),
        // Signal 'sigCommand'
        QtMocHelpers::SignalData<void(const QString &)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 10 },
        }}),
        // Slot 'setTrack'
        QtMocHelpers::SlotData<void(int)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 12 },
        }}),
        // Slot 'setZoomAndOffset'
        QtMocHelpers::SlotData<void(double, sample_index_t)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Double, 14 }, { 0x80000000 | 4, 15 },
        }}),
        // Slot 'setVerticalZoom'
        QtMocHelpers::SlotData<void(double)>(16, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Double, 14 },
        }}),
        // Slot 'showCursor'
        QtMocHelpers::SlotData<void(sample_index_t)>(17, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 4, 5 },
        }}),
        // Slot 'showCursor'
        QtMocHelpers::SlotData<void()>(17, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void),
        // Slot 'showPosition'
        QtMocHelpers::SlotData<void(const QString &, sample_index_t, const QPoint &)>(18, 2, QMC::AccessProtected, QMetaType::Void, {{
            { QMetaType::QString, 19 }, { 0x80000000 | 4, 5 }, { 0x80000000 | 20, 21 },
        }}),
        // Slot 'hidePosition'
        QtMocHelpers::SlotData<void()>(22, 2, QMC::AccessProtected, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<SignalView, qt_meta_tag_ZN5Kwave10SignalViewE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Kwave::SignalView::staticMetaObject = { {
    QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN5Kwave10SignalViewE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN5Kwave10SignalViewE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN5Kwave10SignalViewE_t>.metaTypes,
    nullptr
} };

void Kwave::SignalView::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<SignalView *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->contentSizeChanged(); break;
        case 1: _t->sigCursorChanged((*reinterpret_cast<std::add_pointer_t<sample_index_t>>(_a[1]))); break;
        case 2: _t->sigNeedRepaint((*reinterpret_cast<std::add_pointer_t<Kwave::SignalView*>>(_a[1]))); break;
        case 3: _t->sigCommand((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 4: _t->setTrack((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 5: _t->setZoomAndOffset((*reinterpret_cast<std::add_pointer_t<double>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<sample_index_t>>(_a[2]))); break;
        case 6: _t->setVerticalZoom((*reinterpret_cast<std::add_pointer_t<double>>(_a[1]))); break;
        case 7: _t->showCursor((*reinterpret_cast<std::add_pointer_t<sample_index_t>>(_a[1]))); break;
        case 8: _t->showCursor(); break;
        case 9: _t->showPosition((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<sample_index_t>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QPoint>>(_a[3]))); break;
        case 10: _t->hidePosition(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 2:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Kwave::SignalView* >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (SignalView::*)()>(_a, &SignalView::contentSizeChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (SignalView::*)(sample_index_t )>(_a, &SignalView::sigCursorChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (SignalView::*)(Kwave::SignalView * )>(_a, &SignalView::sigNeedRepaint, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (SignalView::*)(const QString & )>(_a, &SignalView::sigCommand, 3))
            return;
    }
}

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

void *Kwave::SignalView::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN5Kwave10SignalViewE_t>.strings))
        return static_cast<void*>(this);
    return QWidget::qt_metacast(_clname);
}

int Kwave::SignalView::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 < 11)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 11;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 11)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 11;
    }
    return _id;
}

// SIGNAL 0
void Kwave::SignalView::contentSizeChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void Kwave::SignalView::sigCursorChanged(sample_index_t _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void Kwave::SignalView::sigNeedRepaint(Kwave::SignalView * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void Kwave::SignalView::sigCommand(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}
QT_WARNING_POP
