/****************************************************************************
** Meta object code from reading C++ file 'rkcommandeditorwindow.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 "../../../../../rkward-0.8.3/rkward/windows/rkcommandeditorwindow.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 'rkcommandeditorwindow.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_ZN21RKCommandEditorWindowE_t {};
} // unnamed namespace

template <> constexpr inline auto RKCommandEditorWindow::qt_create_metaobjectdata<qt_meta_tag_ZN21RKCommandEditorWindowE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "RKCommandEditorWindow",
        "previewModeChanged",
        "",
        "RKPreviewMode*",
        "active_mode",
        "updateCaption",
        "runCurrent",
        "runAll",
        "enterAndSubmit",
        "copyLinesToOutput",
        "selectionChanged",
        "KTextEditor::View*",
        "view",
        "setWDToScript",
        "paste",
        "text",
        "fixupPartGUI",
        "markBlock",
        "index",
        "unmarkBlock",
        "runBlock",
        "clearUnusedBlocks",
        "textChanged",
        "doRenderPreview",
        "doAutoSave",
        "autoSaveHandlerModifiedChanged",
        "autoSaveHandlerJobFinished",
        "RKJobSequence*",
        "seq",
        "documentSaved"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'previewModeChanged'
        QtMocHelpers::SignalData<void(RKPreviewMode *)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Slot 'updateCaption'
        QtMocHelpers::SlotData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'runCurrent'
        QtMocHelpers::SlotData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'runAll'
        QtMocHelpers::SlotData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'enterAndSubmit'
        QtMocHelpers::SlotData<void()>(8, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'copyLinesToOutput'
        QtMocHelpers::SlotData<void()>(9, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'selectionChanged'
        QtMocHelpers::SlotData<void(KTextEditor::View *)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 11, 12 },
        }}),
        // Slot 'setWDToScript'
        QtMocHelpers::SlotData<void()>(13, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'paste'
        QtMocHelpers::SlotData<void(const QString &)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 15 },
        }}),
        // Slot 'fixupPartGUI'
        QtMocHelpers::SlotData<void()>(16, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'markBlock'
        QtMocHelpers::SlotData<void(int)>(17, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 18 },
        }}),
        // Slot 'unmarkBlock'
        QtMocHelpers::SlotData<void(int)>(19, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 18 },
        }}),
        // Slot 'runBlock'
        QtMocHelpers::SlotData<void(int)>(20, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 18 },
        }}),
        // Slot 'clearUnusedBlocks'
        QtMocHelpers::SlotData<void()>(21, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'textChanged'
        QtMocHelpers::SlotData<void()>(22, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'doRenderPreview'
        QtMocHelpers::SlotData<void()>(23, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'doAutoSave'
        QtMocHelpers::SlotData<void()>(24, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'autoSaveHandlerModifiedChanged'
        QtMocHelpers::SlotData<void()>(25, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'autoSaveHandlerJobFinished'
        QtMocHelpers::SlotData<void(RKJobSequence *)>(26, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 27, 28 },
        }}),
        // Slot 'documentSaved'
        QtMocHelpers::SlotData<void()>(29, 2, QMC::AccessPrivate, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<RKCommandEditorWindow, qt_meta_tag_ZN21RKCommandEditorWindowE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject RKCommandEditorWindow::staticMetaObject = { {
    QMetaObject::SuperData::link<RKMDIWindow::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN21RKCommandEditorWindowE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN21RKCommandEditorWindowE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN21RKCommandEditorWindowE_t>.metaTypes,
    nullptr
} };

void RKCommandEditorWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<RKCommandEditorWindow *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->previewModeChanged((*reinterpret_cast<std::add_pointer_t<RKPreviewMode*>>(_a[1]))); break;
        case 1: _t->updateCaption(); break;
        case 2: _t->runCurrent(); break;
        case 3: _t->runAll(); break;
        case 4: _t->enterAndSubmit(); break;
        case 5: _t->copyLinesToOutput(); break;
        case 6: _t->selectionChanged((*reinterpret_cast<std::add_pointer_t<KTextEditor::View*>>(_a[1]))); break;
        case 7: _t->setWDToScript(); break;
        case 8: _t->paste((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 9: _t->fixupPartGUI(); break;
        case 10: _t->markBlock((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 11: _t->unmarkBlock((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 12: _t->runBlock((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 13: _t->clearUnusedBlocks(); break;
        case 14: _t->textChanged(); break;
        case 15: _t->doRenderPreview(); break;
        case 16: _t->doAutoSave(); break;
        case 17: _t->autoSaveHandlerModifiedChanged(); break;
        case 18: _t->autoSaveHandlerJobFinished((*reinterpret_cast<std::add_pointer_t<RKJobSequence*>>(_a[1]))); break;
        case 19: _t->documentSaved(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 6:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< KTextEditor::View* >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (RKCommandEditorWindow::*)(RKPreviewMode * )>(_a, &RKCommandEditorWindow::previewModeChanged, 0))
            return;
    }
}

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

void *RKCommandEditorWindow::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN21RKCommandEditorWindowE_t>.strings))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "RKScriptContextProvider"))
        return static_cast< RKScriptContextProvider*>(this);
    return RKMDIWindow::qt_metacast(_clname);
}

int RKCommandEditorWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = RKMDIWindow::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 20)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 20;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 20)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 20;
    }
    return _id;
}

// SIGNAL 0
void RKCommandEditorWindow::previewModeChanged(RKPreviewMode * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}
QT_WARNING_POP
