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

#include "../../../../src/Tabs/TextTab.h"
#include <QtGui/qtextcursor.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 'TextTab.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.10.2. 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_ZN7TextTabE_t {};
} // unnamed namespace

template <> constexpr inline auto TextTab::qt_create_metaobjectdata<qt_meta_tag_ZN7TextTabE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "TextTab",
        "SelectionChanged",
        "",
        "OpenClipEditorRequest",
        "ClipEditorModel::clipEntry*",
        "clip",
        "Undo",
        "Redo",
        "Cut",
        "Copy",
        "Paste",
        "DeleteLine",
        "MarkSelection",
        "ClearMarkedText",
        "CutCodeTags",
        "ChangeCasing",
        "Utility::Casing",
        "casing",
        "Print",
        "PrintPreview",
        "ThemeChangeRefresh",
        "SaveTabContent",
        "QWidget*",
        "editor",
        "LoadTabContent",
        "EmitUpdateCursorPosition",
        "DelayedInitialization"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'SelectionChanged'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'OpenClipEditorRequest'
        QtMocHelpers::SignalData<void(ClipEditorModel::clipEntry *)>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 4, 5 },
        }}),
        // Slot 'Undo'
        QtMocHelpers::SlotData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'Redo'
        QtMocHelpers::SlotData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'Cut'
        QtMocHelpers::SlotData<void()>(8, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'Copy'
        QtMocHelpers::SlotData<void()>(9, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'Paste'
        QtMocHelpers::SlotData<void()>(10, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'DeleteLine'
        QtMocHelpers::SlotData<void()>(11, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'MarkSelection'
        QtMocHelpers::SlotData<bool()>(12, 2, QMC::AccessPublic, QMetaType::Bool),
        // Slot 'ClearMarkedText'
        QtMocHelpers::SlotData<bool()>(13, 2, QMC::AccessPublic, QMetaType::Bool),
        // Slot 'CutCodeTags'
        QtMocHelpers::SlotData<void()>(14, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'ChangeCasing'
        QtMocHelpers::SlotData<void(const Utility::Casing)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 16, 17 },
        }}),
        // Slot 'Print'
        QtMocHelpers::SlotData<void()>(18, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'PrintPreview'
        QtMocHelpers::SlotData<void()>(19, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'ThemeChangeRefresh'
        QtMocHelpers::SlotData<void()>(20, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'SaveTabContent'
        QtMocHelpers::SlotData<void()>(21, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'SaveTabContent'
        QtMocHelpers::SlotData<void(QWidget *)>(21, 2, QMC::AccessProtected, QMetaType::Void, {{
            { 0x80000000 | 22, 23 },
        }}),
        // Slot 'LoadTabContent'
        QtMocHelpers::SlotData<void()>(24, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'LoadTabContent'
        QtMocHelpers::SlotData<void(QWidget *)>(24, 2, QMC::AccessProtected, QMetaType::Void, {{
            { 0x80000000 | 22, 23 },
        }}),
        // Slot 'EmitUpdateCursorPosition'
        QtMocHelpers::SlotData<void()>(25, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'DelayedInitialization'
        QtMocHelpers::SlotData<void()>(26, 2, QMC::AccessPrivate, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<TextTab, qt_meta_tag_ZN7TextTabE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject TextTab::staticMetaObject = { {
    QMetaObject::SuperData::link<ContentTab::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN7TextTabE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN7TextTabE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN7TextTabE_t>.metaTypes,
    nullptr
} };

void TextTab::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<TextTab *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->SelectionChanged(); break;
        case 1: _t->OpenClipEditorRequest((*reinterpret_cast<std::add_pointer_t<ClipEditorModel::clipEntry*>>(_a[1]))); break;
        case 2: _t->Undo(); break;
        case 3: _t->Redo(); break;
        case 4: _t->Cut(); break;
        case 5: _t->Copy(); break;
        case 6: _t->Paste(); break;
        case 7: _t->DeleteLine(); break;
        case 8: { bool _r = _t->MarkSelection();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 9: { bool _r = _t->ClearMarkedText();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 10: _t->CutCodeTags(); break;
        case 11: _t->ChangeCasing((*reinterpret_cast<std::add_pointer_t<Utility::Casing>>(_a[1]))); break;
        case 12: _t->Print(); break;
        case 13: _t->PrintPreview(); break;
        case 14: _t->ThemeChangeRefresh(); break;
        case 15: _t->SaveTabContent(); break;
        case 16: _t->SaveTabContent((*reinterpret_cast<std::add_pointer_t<QWidget*>>(_a[1]))); break;
        case 17: _t->LoadTabContent(); break;
        case 18: _t->LoadTabContent((*reinterpret_cast<std::add_pointer_t<QWidget*>>(_a[1]))); break;
        case 19: _t->EmitUpdateCursorPosition(); break;
        case 20: _t->DelayedInitialization(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 16:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QWidget* >(); break;
            }
            break;
        case 18:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QWidget* >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (TextTab::*)()>(_a, &TextTab::SelectionChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (TextTab::*)(ClipEditorModel::clipEntry * )>(_a, &TextTab::OpenClipEditorRequest, 1))
            return;
    }
}

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

void *TextTab::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN7TextTabE_t>.strings))
        return static_cast<void*>(this);
    return ContentTab::qt_metacast(_clname);
}

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

// SIGNAL 0
void TextTab::SelectionChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void TextTab::OpenClipEditorRequest(ClipEditorModel::clipEntry * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}
QT_WARNING_POP
