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

#include "../../../gimagereader-3.4.3/qt/src/OutputEditorText.hh"
#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 'OutputEditorText.hh' 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_ZN16OutputEditorTextE_t {};
} // unnamed namespace

template <> constexpr inline auto OutputEditorText::qt_create_metaobjectdata<qt_meta_tag_ZN16OutputEditorTextE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "OutputEditorText",
        "open",
        "",
        "filename",
        "onVisibilityChanged",
        "visible",
        "clear",
        "hide",
        "save",
        "page",
        "setLanguage",
        "Config::Lang",
        "lang",
        "addText",
        "text",
        "insert",
        "filterBuffer",
        "findReplace",
        "searchstr",
        "replacestr",
        "matchCase",
        "backwards",
        "replace",
        "replaceAll",
        "applySubstitutions",
        "QMap<QString,QString>",
        "substitutions",
        "setFont",
        "setInsertMode",
        "QAction*",
        "action",
        "tabChanged",
        "closeTab",
        "prepareRecentMenu"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'open'
        QtMocHelpers::SlotData<bool(const QString &)>(1, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::QString, 3 },
        }}),
        // Slot 'open'
        QtMocHelpers::SlotData<bool()>(1, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Bool),
        // Slot 'onVisibilityChanged'
        QtMocHelpers::SlotData<void(bool)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 5 },
        }}),
        // Slot 'clear'
        QtMocHelpers::SlotData<bool(bool)>(6, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::Bool, 7 },
        }}),
        // Slot 'clear'
        QtMocHelpers::SlotData<bool()>(6, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Bool),
        // Slot 'save'
        QtMocHelpers::SlotData<bool(int, const QString &)>(8, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::Int, 9 }, { QMetaType::QString, 3 },
        }}),
        // Slot 'save'
        QtMocHelpers::SlotData<bool(int)>(8, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Bool, {{
            { QMetaType::Int, 9 },
        }}),
        // Slot 'save'
        QtMocHelpers::SlotData<bool()>(8, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Bool),
        // Slot 'setLanguage'
        QtMocHelpers::SlotData<void(const Config::Lang &)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 11, 12 },
        }}),
        // Slot 'addText'
        QtMocHelpers::SlotData<void(const QString &, bool)>(13, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QString, 14 }, { QMetaType::Bool, 15 },
        }}),
        // Slot 'filterBuffer'
        QtMocHelpers::SlotData<void()>(16, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'findReplace'
        QtMocHelpers::SlotData<void(const QString &, const QString &, bool, bool, bool)>(17, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QString, 18 }, { QMetaType::QString, 19 }, { QMetaType::Bool, 20 }, { QMetaType::Bool, 21 },
            { QMetaType::Bool, 22 },
        }}),
        // Slot 'replaceAll'
        QtMocHelpers::SlotData<void(const QString &, const QString &, bool)>(23, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QString, 18 }, { QMetaType::QString, 19 }, { QMetaType::Bool, 20 },
        }}),
        // Slot 'applySubstitutions'
        QtMocHelpers::SlotData<void(const QMap<QString,QString> &, bool)>(24, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 25, 26 }, { QMetaType::Bool, 20 },
        }}),
        // Slot 'setFont'
        QtMocHelpers::SlotData<void()>(27, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'setInsertMode'
        QtMocHelpers::SlotData<void(QAction *)>(28, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 29, 30 },
        }}),
        // Slot 'tabChanged'
        QtMocHelpers::SlotData<void(int)>(31, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 2 },
        }}),
        // Slot 'closeTab'
        QtMocHelpers::SlotData<void(int)>(32, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 2 },
        }}),
        // Slot 'prepareRecentMenu'
        QtMocHelpers::SlotData<void()>(33, 2, QMC::AccessPrivate, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<OutputEditorText, qt_meta_tag_ZN16OutputEditorTextE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject OutputEditorText::staticMetaObject = { {
    QMetaObject::SuperData::link<OutputEditor::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN16OutputEditorTextE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN16OutputEditorTextE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN16OutputEditorTextE_t>.metaTypes,
    nullptr
} };

void OutputEditorText::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<OutputEditorText *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: { bool _r = _t->open((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 1: { bool _r = _t->open();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 2: _t->onVisibilityChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 3: { bool _r = _t->clear((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 4: { bool _r = _t->clear();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 5: { bool _r = _t->save((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 6: { bool _r = _t->save((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 7: { bool _r = _t->save();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 8: _t->setLanguage((*reinterpret_cast<std::add_pointer_t<Config::Lang>>(_a[1]))); break;
        case 9: _t->addText((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2]))); break;
        case 10: _t->filterBuffer(); break;
        case 11: _t->findReplace((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[4])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[5]))); break;
        case 12: _t->replaceAll((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[3]))); break;
        case 13: _t->applySubstitutions((*reinterpret_cast<std::add_pointer_t<QMap<QString,QString>>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2]))); break;
        case 14: _t->setFont(); break;
        case 15: _t->setInsertMode((*reinterpret_cast<std::add_pointer_t<QAction*>>(_a[1]))); break;
        case 16: _t->tabChanged((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 17: _t->closeTab((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 18: _t->prepareRecentMenu(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 8:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Config::Lang >(); break;
            }
            break;
        case 15:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QAction* >(); break;
            }
            break;
        }
    }
}

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

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

int OutputEditorText::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = OutputEditor::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 19)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 19;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 19)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 19;
    }
    return _id;
}
QT_WARNING_POP
