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

#include "../../../ImageLounge/src/DkCore/DkBaseViewPort.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 'DkBaseViewPort.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.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_ZN3nmc14DkBaseViewPortE_t {};
} // unnamed namespace

template <> constexpr inline auto nmc::DkBaseViewPort::qt_create_metaobjectdata<qt_meta_tag_ZN3nmc14DkBaseViewPortE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "nmc::DkBaseViewPort",
        "keyReleaseSignal",
        "",
        "QKeyEvent*",
        "event",
        "imageUpdated",
        "togglePattern",
        "show",
        "panLeft",
        "panRight",
        "panUp",
        "panDown",
        "moveView",
        "QPointF",
        "zoomIn",
        "zoomOut",
        "resetView",
        "fullView",
        "resizeEvent",
        "QResizeEvent*",
        "stopBlockZooming",
        "setBackgroundBrush",
        "QBrush",
        "brush",
        "scrollVertically",
        "val",
        "scrollHorizontally",
        "setImage",
        "QImage",
        "newImg",
        "hideCursor"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'keyReleaseSignal'
        QtMocHelpers::SignalData<void(QKeyEvent *) const>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'imageUpdated'
        QtMocHelpers::SignalData<void() const>(5, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'togglePattern'
        QtMocHelpers::SlotData<void(bool)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 7 },
        }}),
        // Slot 'panLeft'
        QtMocHelpers::SlotData<void()>(8, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'panRight'
        QtMocHelpers::SlotData<void()>(9, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'panUp'
        QtMocHelpers::SlotData<void()>(10, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'panDown'
        QtMocHelpers::SlotData<void()>(11, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'moveView'
        QtMocHelpers::SlotData<void(const QPointF &)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 13, 2 },
        }}),
        // Slot 'zoomIn'
        QtMocHelpers::SlotData<void()>(14, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'zoomOut'
        QtMocHelpers::SlotData<void()>(15, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'resetView'
        QtMocHelpers::SlotData<void()>(16, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'fullView'
        QtMocHelpers::SlotData<void()>(17, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'resizeEvent'
        QtMocHelpers::SlotData<void(QResizeEvent *)>(18, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 19, 4 },
        }}),
        // Slot 'stopBlockZooming'
        QtMocHelpers::SlotData<void()>(20, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'setBackgroundBrush'
        QtMocHelpers::SlotData<void(const QBrush &)>(21, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 22, 23 },
        }}),
        // Slot 'scrollVertically'
        QtMocHelpers::SlotData<void(int)>(24, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 25 },
        }}),
        // Slot 'scrollHorizontally'
        QtMocHelpers::SlotData<void(int)>(26, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 25 },
        }}),
        // Slot 'setImage'
        QtMocHelpers::SlotData<void(QImage)>(27, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 28, 29 },
        }}),
        // Slot 'hideCursor'
        QtMocHelpers::SlotData<void()>(30, 2, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<DkBaseViewPort, qt_meta_tag_ZN3nmc14DkBaseViewPortE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject nmc::DkBaseViewPort::staticMetaObject = { {
    QMetaObject::SuperData::link<QGraphicsView::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3nmc14DkBaseViewPortE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3nmc14DkBaseViewPortE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN3nmc14DkBaseViewPortE_t>.metaTypes,
    nullptr
} };

void nmc::DkBaseViewPort::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<DkBaseViewPort *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->keyReleaseSignal((*reinterpret_cast<std::add_pointer_t<QKeyEvent*>>(_a[1]))); break;
        case 1: _t->imageUpdated(); break;
        case 2: _t->togglePattern((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 3: _t->panLeft(); break;
        case 4: _t->panRight(); break;
        case 5: _t->panUp(); break;
        case 6: _t->panDown(); break;
        case 7: _t->moveView((*reinterpret_cast<std::add_pointer_t<QPointF>>(_a[1]))); break;
        case 8: _t->zoomIn(); break;
        case 9: _t->zoomOut(); break;
        case 10: _t->resetView(); break;
        case 11: _t->fullView(); break;
        case 12: _t->resizeEvent((*reinterpret_cast<std::add_pointer_t<QResizeEvent*>>(_a[1]))); break;
        case 13: _t->stopBlockZooming(); break;
        case 14: _t->setBackgroundBrush((*reinterpret_cast<std::add_pointer_t<QBrush>>(_a[1]))); break;
        case 15: _t->scrollVertically((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 16: _t->scrollHorizontally((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 17: _t->setImage((*reinterpret_cast<std::add_pointer_t<QImage>>(_a[1]))); break;
        case 18: _t->hideCursor(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (DkBaseViewPort::*)(QKeyEvent * ) const>(_a, &DkBaseViewPort::keyReleaseSignal, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (DkBaseViewPort::*)() const>(_a, &DkBaseViewPort::imageUpdated, 1))
            return;
    }
}

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

void *nmc::DkBaseViewPort::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3nmc14DkBaseViewPortE_t>.strings))
        return static_cast<void*>(this);
    return QGraphicsView::qt_metacast(_clname);
}

int nmc::DkBaseViewPort::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QGraphicsView::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;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 19)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 19;
    }
    return _id;
}

// SIGNAL 0
void nmc::DkBaseViewPort::keyReleaseSignal(QKeyEvent * _t1)const
{
    QMetaObject::activate<void>(const_cast< nmc::DkBaseViewPort *>(this), &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void nmc::DkBaseViewPort::imageUpdated()const
{
    QMetaObject::activate(const_cast< nmc::DkBaseViewPort *>(this), &staticMetaObject, 1, nullptr);
}
QT_WARNING_POP
