/****************************************************************************
** Meta object code from reading C++ file 'kilescriptview.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 "../../../../kile-2.9.94/src/scripting/kilescriptview.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 'kilescriptview.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_ZN10KileScript14KileScriptViewE_t {};
} // unnamed namespace

template <> constexpr inline auto KileScript::KileScriptView::qt_create_metaobjectdata<qt_meta_tag_ZN10KileScript14KileScriptViewE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "KileScript::KileScriptView",
        "cursorPosition",
        "KTextEditor::Cursor",
        "",
        "setCursorPosition",
        "line",
        "column",
        "cursor",
        "backspace",
        "cursorLeft",
        "cursorRight",
        "cursorUp",
        "cursorDown",
        "cursorLine",
        "cursorColumn",
        "setCursorLine",
        "l",
        "setCursorColumn",
        "c",
        "virtualCursorPosition",
        "hasSelection",
        "selectedText",
        "selectionRange",
        "KTextEditor::Range",
        "setSelection",
        "range",
        "selectAll",
        "clearSelection",
        "removeSelectedText",
        "selectLine",
        "selectLines",
        "from",
        "to",
        "selectWord",
        "selectLatexCommand",
        "selectEnvironment",
        "inside",
        "selectTexgroup",
        "selectMathgroup",
        "selectParagraph",
        "wholeLines"
    };

    QtMocHelpers::UintData qt_methods {
        // Method 'cursorPosition'
        QtMocHelpers::MethodData<KTextEditor::Cursor()>(1, 3, QMC::AccessPublic, 0x80000000 | 2),
        // Method 'setCursorPosition'
        QtMocHelpers::MethodData<void(int, int)>(4, 3, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 5 }, { QMetaType::Int, 6 },
        }}),
        // Method 'setCursorPosition'
        QtMocHelpers::MethodData<void(const KTextEditor::Cursor &)>(4, 3, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 2, 7 },
        }}),
        // Method 'backspace'
        QtMocHelpers::MethodData<void()>(8, 3, QMC::AccessPublic, QMetaType::Void),
        // Method 'cursorLeft'
        QtMocHelpers::MethodData<void()>(9, 3, QMC::AccessPublic, QMetaType::Void),
        // Method 'cursorRight'
        QtMocHelpers::MethodData<void()>(10, 3, QMC::AccessPublic, QMetaType::Void),
        // Method 'cursorUp'
        QtMocHelpers::MethodData<void()>(11, 3, QMC::AccessPublic, QMetaType::Void),
        // Method 'cursorDown'
        QtMocHelpers::MethodData<void()>(12, 3, QMC::AccessPublic, QMetaType::Void),
        // Method 'cursorLine'
        QtMocHelpers::MethodData<int()>(13, 3, QMC::AccessPublic, QMetaType::Int),
        // Method 'cursorColumn'
        QtMocHelpers::MethodData<int()>(14, 3, QMC::AccessPublic, QMetaType::Int),
        // Method 'setCursorLine'
        QtMocHelpers::MethodData<void(int)>(15, 3, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 16 },
        }}),
        // Method 'setCursorColumn'
        QtMocHelpers::MethodData<void(int)>(17, 3, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 18 },
        }}),
        // Method 'virtualCursorPosition'
        QtMocHelpers::MethodData<KTextEditor::Cursor()>(19, 3, QMC::AccessPublic, 0x80000000 | 2),
        // Method 'hasSelection'
        QtMocHelpers::MethodData<bool()>(20, 3, QMC::AccessPublic, QMetaType::Bool),
        // Method 'selectedText'
        QtMocHelpers::MethodData<QString()>(21, 3, QMC::AccessPublic, QMetaType::QString),
        // Method 'selectionRange'
        QtMocHelpers::MethodData<KTextEditor::Range()>(22, 3, QMC::AccessPublic, 0x80000000 | 23),
        // Method 'setSelection'
        QtMocHelpers::MethodData<void(const KTextEditor::Range &)>(24, 3, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 23, 25 },
        }}),
        // Method 'selectAll'
        QtMocHelpers::MethodData<void()>(26, 3, QMC::AccessPublic, QMetaType::Void),
        // Method 'clearSelection'
        QtMocHelpers::MethodData<void()>(27, 3, QMC::AccessPublic, QMetaType::Void),
        // Method 'removeSelectedText'
        QtMocHelpers::MethodData<void()>(28, 3, QMC::AccessPublic, QMetaType::Void),
        // Method 'selectLine'
        QtMocHelpers::MethodData<void()>(29, 3, QMC::AccessPublic, QMetaType::Void),
        // Method 'selectLine'
        QtMocHelpers::MethodData<void(int)>(29, 3, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 5 },
        }}),
        // Method 'selectLines'
        QtMocHelpers::MethodData<void(int, int)>(30, 3, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 31 }, { QMetaType::Int, 32 },
        }}),
        // Method 'selectWord'
        QtMocHelpers::MethodData<void()>(33, 3, QMC::AccessPublic, QMetaType::Void),
        // Method 'selectLatexCommand'
        QtMocHelpers::MethodData<void()>(34, 3, QMC::AccessPublic, QMetaType::Void),
        // Method 'selectEnvironment'
        QtMocHelpers::MethodData<void(bool)>(35, 3, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 36 },
        }}),
        // Method 'selectEnvironment'
        QtMocHelpers::MethodData<void()>(35, 3, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void),
        // Method 'selectTexgroup'
        QtMocHelpers::MethodData<void(bool)>(37, 3, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 36 },
        }}),
        // Method 'selectTexgroup'
        QtMocHelpers::MethodData<void()>(37, 3, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void),
        // Method 'selectMathgroup'
        QtMocHelpers::MethodData<void()>(38, 3, QMC::AccessPublic, QMetaType::Void),
        // Method 'selectParagraph'
        QtMocHelpers::MethodData<void(bool)>(39, 3, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 40 },
        }}),
        // Method 'selectParagraph'
        QtMocHelpers::MethodData<void()>(39, 3, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<KileScriptView, qt_meta_tag_ZN10KileScript14KileScriptViewE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject KileScript::KileScriptView::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10KileScript14KileScriptViewE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10KileScript14KileScriptViewE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10KileScript14KileScriptViewE_t>.metaTypes,
    nullptr
} };

void KileScript::KileScriptView::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<KileScriptView *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: { KTextEditor::Cursor _r = _t->cursorPosition();
            if (_a[0]) *reinterpret_cast<KTextEditor::Cursor*>(_a[0]) = std::move(_r); }  break;
        case 1: _t->setCursorPosition((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 2: _t->setCursorPosition((*reinterpret_cast<std::add_pointer_t<KTextEditor::Cursor>>(_a[1]))); break;
        case 3: _t->backspace(); break;
        case 4: _t->cursorLeft(); break;
        case 5: _t->cursorRight(); break;
        case 6: _t->cursorUp(); break;
        case 7: _t->cursorDown(); break;
        case 8: { int _r = _t->cursorLine();
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 9: { int _r = _t->cursorColumn();
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 10: _t->setCursorLine((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 11: _t->setCursorColumn((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 12: { KTextEditor::Cursor _r = _t->virtualCursorPosition();
            if (_a[0]) *reinterpret_cast<KTextEditor::Cursor*>(_a[0]) = std::move(_r); }  break;
        case 13: { bool _r = _t->hasSelection();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 14: { QString _r = _t->selectedText();
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 15: { KTextEditor::Range _r = _t->selectionRange();
            if (_a[0]) *reinterpret_cast<KTextEditor::Range*>(_a[0]) = std::move(_r); }  break;
        case 16: _t->setSelection((*reinterpret_cast<std::add_pointer_t<KTextEditor::Range>>(_a[1]))); break;
        case 17: _t->selectAll(); break;
        case 18: _t->clearSelection(); break;
        case 19: _t->removeSelectedText(); break;
        case 20: _t->selectLine(); break;
        case 21: _t->selectLine((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 22: _t->selectLines((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 23: _t->selectWord(); break;
        case 24: _t->selectLatexCommand(); break;
        case 25: _t->selectEnvironment((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 26: _t->selectEnvironment(); break;
        case 27: _t->selectTexgroup((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 28: _t->selectTexgroup(); break;
        case 29: _t->selectMathgroup(); break;
        case 30: _t->selectParagraph((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 31: _t->selectParagraph(); break;
        default: ;
        }
    }
}

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

void *KileScript::KileScriptView::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10KileScript14KileScriptViewE_t>.strings))
        return static_cast<void*>(this);
    return QObject::qt_metacast(_clname);
}

int KileScript::KileScriptView::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::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;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 32)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 32;
    }
    return _id;
}
QT_WARNING_POP
