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

#include "../../../../../SuperCollider-3.14.1-Source/QtCollider/widgets/QcTextEdit.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 'QcTextEdit.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.1. 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_ZN10QcTextEditE_t {};
} // unnamed namespace

template <> constexpr inline auto QcTextEdit::qt_create_metaobjectdata<qt_meta_tag_ZN10QcTextEditE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "QcTextEdit",
        "interpret",
        "",
        "code",
        "select",
        "start",
        "size",
        "document",
        "selectionStart",
        "selectionSize",
        "selectedString",
        "currentLine",
        "textFont",
        "QFont",
        "textColor",
        "QColor",
        "rangeColor",
        "QVariantList",
        "rangeFont",
        "rangeText",
        "enterInterpretsSelection"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'interpret'
        QtMocHelpers::SignalData<void(const QString &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 3 },
        }}),
        // Method 'select'
        QtMocHelpers::MethodData<void(int, int)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 5 }, { QMetaType::Int, 6 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'document'
        QtMocHelpers::PropertyData<QString>(7, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'selectionStart'
        QtMocHelpers::PropertyData<int>(8, QMetaType::Int, QMC::DefaultPropertyFlags),
        // property 'selectionSize'
        QtMocHelpers::PropertyData<int>(9, QMetaType::Int, QMC::DefaultPropertyFlags),
        // property 'selectedString'
        QtMocHelpers::PropertyData<QString>(10, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable),
        // property 'currentLine'
        QtMocHelpers::PropertyData<QString>(11, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'textFont'
        QtMocHelpers::PropertyData<QFont>(12, 0x80000000 | 13, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet),
        // property 'textColor'
        QtMocHelpers::PropertyData<QColor>(14, 0x80000000 | 15, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet),
        // property 'rangeColor'
        QtMocHelpers::PropertyData<QVariantList>(16, 0x80000000 | 17, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet),
        // property 'rangeFont'
        QtMocHelpers::PropertyData<QVariantList>(18, 0x80000000 | 17, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet),
        // property 'rangeText'
        QtMocHelpers::PropertyData<QVariantList>(19, 0x80000000 | 17, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet),
        // property 'enterInterpretsSelection'
        QtMocHelpers::PropertyData<bool>(20, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<QcTextEdit, qt_meta_tag_ZN10QcTextEditE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject QcTextEdit::staticMetaObject = { {
    QMetaObject::SuperData::link<QTextEdit::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10QcTextEditE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10QcTextEditE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10QcTextEditE_t>.metaTypes,
    nullptr
} };

void QcTextEdit::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<QcTextEdit *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->interpret((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 1: _t->select((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (QcTextEdit::*)(const QString & )>(_a, &QcTextEdit::interpret, 0))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QString*>(_v) = _t->documentFilename(); break;
        case 1: *reinterpret_cast<int*>(_v) = _t->selectionStart(); break;
        case 2: *reinterpret_cast<int*>(_v) = _t->selectionSize(); break;
        case 3: *reinterpret_cast<QString*>(_v) = _t->selectedString(); break;
        case 4: *reinterpret_cast<QString*>(_v) = _t->currentLine(); break;
        case 5: *reinterpret_cast<QFont*>(_v) = _t->dummyFont(); break;
        case 6: *reinterpret_cast<QColor*>(_v) = _t->dummyColor(); break;
        case 7: *reinterpret_cast<QVariantList*>(_v) = _t->dummyVariantList(); break;
        case 8: *reinterpret_cast<QVariantList*>(_v) = _t->dummyVariantList(); break;
        case 9: *reinterpret_cast<QVariantList*>(_v) = _t->dummyVariantList(); break;
        case 10: *reinterpret_cast<bool*>(_v) = _t->interpretSelection(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setDocument(*reinterpret_cast<QString*>(_v)); break;
        case 3: _t->replaceSelectedText(*reinterpret_cast<QString*>(_v)); break;
        case 5: _t->setTextFont(*reinterpret_cast<QFont*>(_v)); break;
        case 6: _t->setTextColor(*reinterpret_cast<QColor*>(_v)); break;
        case 7: _t->setRangeColor(*reinterpret_cast<QVariantList*>(_v)); break;
        case 8: _t->setRangeFont(*reinterpret_cast<QVariantList*>(_v)); break;
        case 9: _t->setRangeText(*reinterpret_cast<QVariantList*>(_v)); break;
        case 10: _t->setInterpretSelection(*reinterpret_cast<bool*>(_v)); break;
        default: break;
        }
    }
}

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

void *QcTextEdit::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10QcTextEditE_t>.strings))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "QcHelper"))
        return static_cast< QcHelper*>(this);
    return QTextEdit::qt_metacast(_clname);
}

int QcTextEdit::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QTextEdit::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 2)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 2;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 2)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 2;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 11;
    }
    return _id;
}

// SIGNAL 0
void QcTextEdit::interpret(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}
QT_WARNING_POP
