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

#include "../../src/ktexteditor-5.12.0/src/script/katescriptview.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'katescriptview.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.5.1. 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
struct qt_meta_stringdata_KateScriptView_t {
    QByteArrayData data[20];
    char stringdata0[259];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KateScriptView_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KateScriptView_t qt_meta_stringdata_KateScriptView = {
    {
QT_MOC_LITERAL(0, 0, 14), // "KateScriptView"
QT_MOC_LITERAL(1, 15, 14), // "cursorPosition"
QT_MOC_LITERAL(2, 30, 19), // "KTextEditor::Cursor"
QT_MOC_LITERAL(3, 50, 0), // ""
QT_MOC_LITERAL(4, 51, 17), // "setCursorPosition"
QT_MOC_LITERAL(5, 69, 4), // "line"
QT_MOC_LITERAL(6, 74, 6), // "column"
QT_MOC_LITERAL(7, 81, 6), // "cursor"
QT_MOC_LITERAL(8, 88, 21), // "virtualCursorPosition"
QT_MOC_LITERAL(9, 110, 24), // "setVirtualCursorPosition"
QT_MOC_LITERAL(10, 135, 12), // "selectedText"
QT_MOC_LITERAL(11, 148, 12), // "hasSelection"
QT_MOC_LITERAL(12, 161, 9), // "selection"
QT_MOC_LITERAL(13, 171, 18), // "KTextEditor::Range"
QT_MOC_LITERAL(14, 190, 12), // "setSelection"
QT_MOC_LITERAL(15, 203, 5), // "range"
QT_MOC_LITERAL(16, 209, 18), // "removeSelectedText"
QT_MOC_LITERAL(17, 228, 9), // "selectAll"
QT_MOC_LITERAL(18, 238, 14), // "clearSelection"
QT_MOC_LITERAL(19, 253, 5) // "align"

    },
    "KateScriptView\0cursorPosition\0"
    "KTextEditor::Cursor\0\0setCursorPosition\0"
    "line\0column\0cursor\0virtualCursorPosition\0"
    "setVirtualCursorPosition\0selectedText\0"
    "hasSelection\0selection\0KTextEditor::Range\0"
    "setSelection\0range\0removeSelectedText\0"
    "selectAll\0clearSelection\0align"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KateScriptView[] = {

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

 // methods: name, argc, parameters, tag, flags
       1,    0,   84,    3, 0x02 /* Public */,
       4,    2,   85,    3, 0x02 /* Public */,
       4,    1,   90,    3, 0x02 /* Public */,
       8,    0,   93,    3, 0x02 /* Public */,
       9,    2,   94,    3, 0x02 /* Public */,
       9,    1,   99,    3, 0x02 /* Public */,
      10,    0,  102,    3, 0x02 /* Public */,
      11,    0,  103,    3, 0x02 /* Public */,
      12,    0,  104,    3, 0x02 /* Public */,
      14,    1,  105,    3, 0x02 /* Public */,
      16,    0,  108,    3, 0x02 /* Public */,
      17,    0,  109,    3, 0x02 /* Public */,
      18,    0,  110,    3, 0x02 /* Public */,
      19,    1,  111,    3, 0x02 /* Public */,

 // methods: parameters
    0x80000000 | 2,
    QMetaType::Void, QMetaType::Int, QMetaType::Int,    5,    6,
    QMetaType::Void, 0x80000000 | 2,    7,
    0x80000000 | 2,
    QMetaType::Void, QMetaType::Int, QMetaType::Int,    5,    6,
    QMetaType::Void, 0x80000000 | 2,    7,
    QMetaType::QString,
    QMetaType::Bool,
    0x80000000 | 13,
    QMetaType::Void, 0x80000000 | 13,   15,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 13,   15,

       0        // eod
};

void KateScriptView::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        KateScriptView *_t = static_cast<KateScriptView *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: { KTextEditor::Cursor _r = _t->cursorPosition();
            if (_a[0]) *reinterpret_cast< KTextEditor::Cursor*>(_a[0]) = _r; }  break;
        case 1: _t->setCursorPosition((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 2: _t->setCursorPosition((*reinterpret_cast< const KTextEditor::Cursor(*)>(_a[1]))); break;
        case 3: { KTextEditor::Cursor _r = _t->virtualCursorPosition();
            if (_a[0]) *reinterpret_cast< KTextEditor::Cursor*>(_a[0]) = _r; }  break;
        case 4: _t->setVirtualCursorPosition((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 5: _t->setVirtualCursorPosition((*reinterpret_cast< const KTextEditor::Cursor(*)>(_a[1]))); break;
        case 6: { QString _r = _t->selectedText();
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = _r; }  break;
        case 7: { bool _r = _t->hasSelection();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; }  break;
        case 8: { KTextEditor::Range _r = _t->selection();
            if (_a[0]) *reinterpret_cast< KTextEditor::Range*>(_a[0]) = _r; }  break;
        case 9: _t->setSelection((*reinterpret_cast< const KTextEditor::Range(*)>(_a[1]))); break;
        case 10: _t->removeSelectedText(); break;
        case 11: _t->selectAll(); break;
        case 12: _t->clearSelection(); break;
        case 13: _t->align((*reinterpret_cast< const KTextEditor::Range(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 2:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< KTextEditor::Cursor >(); break;
            }
            break;
        case 5:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< KTextEditor::Cursor >(); break;
            }
            break;
        case 9:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< KTextEditor::Range >(); break;
            }
            break;
        case 13:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< KTextEditor::Range >(); break;
            }
            break;
        }
    }
}

const QMetaObject KateScriptView::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_KateScriptView.data,
      qt_meta_data_KateScriptView,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

void *KateScriptView::qt_metacast(const char *_clname)
{
    if (!_clname) return Q_NULLPTR;
    if (!strcmp(_clname, qt_meta_stringdata_KateScriptView.stringdata0))
        return static_cast<void*>(const_cast< KateScriptView*>(this));
    if (!strcmp(_clname, "QScriptable"))
        return static_cast< QScriptable*>(const_cast< KateScriptView*>(this));
    return QObject::qt_metacast(_clname);
}

int KateScriptView::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 < 14)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 14;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 14)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 14;
    }
    return _id;
}
QT_END_MOC_NAMESPACE
