/****************************************************************************
** Meta object code from reading C++ file 'GuiViewSource.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 "GuiViewSource.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 'GuiViewSource.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_ZN3lyx8frontend16ViewSourceWidgetE_t {};
} // unnamed namespace

template <> constexpr inline auto lyx::frontend::ViewSourceWidget::qt_create_metaobjectdata<qt_meta_tag_ZN3lyx8frontend16ViewSourceWidgetE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "lyx::frontend::ViewSourceWidget",
        "needUpdate",
        "",
        "updateView",
        "const BufferView*",
        "bv",
        "setViewFormat",
        "index",
        "updateDefaultFormat",
        "BufferView",
        "contentsChanged",
        "goToCursor",
        "currentFormatName",
        "docstring"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'needUpdate'
        QtMocHelpers::SignalData<void() const>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'updateView'
        QtMocHelpers::SlotData<void(BufferView const *)>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 4, 5 },
        }}),
        // Slot 'setViewFormat'
        QtMocHelpers::SlotData<void(int const)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 7 },
        }}),
        // Slot 'updateDefaultFormat'
        QtMocHelpers::SlotData<void(BufferView const &)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 9, 5 },
        }}),
        // Slot 'contentsChanged'
        QtMocHelpers::SlotData<void()>(10, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'goToCursor'
        QtMocHelpers::SlotData<void() const>(11, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'currentFormatName'
        QtMocHelpers::SlotData<docstring(BufferView const *) const>(12, 2, QMC::AccessPublic, 0x80000000 | 13, {{
            { 0x80000000 | 4, 5 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<ViewSourceWidget, qt_meta_tag_ZN3lyx8frontend16ViewSourceWidgetE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject lyx::frontend::ViewSourceWidget::staticMetaObject = { {
    QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3lyx8frontend16ViewSourceWidgetE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3lyx8frontend16ViewSourceWidgetE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN3lyx8frontend16ViewSourceWidgetE_t>.metaTypes,
    nullptr
} };

void lyx::frontend::ViewSourceWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<ViewSourceWidget *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->needUpdate(); break;
        case 1: _t->updateView((*reinterpret_cast<std::add_pointer_t<const BufferView*>>(_a[1]))); break;
        case 2: _t->setViewFormat((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 3: _t->updateDefaultFormat((*reinterpret_cast<std::add_pointer_t<BufferView>>(_a[1]))); break;
        case 4: _t->contentsChanged(); break;
        case 5: _t->goToCursor(); break;
        case 6: { docstring _r = _t->currentFormatName((*reinterpret_cast<std::add_pointer_t<const BufferView*>>(_a[1])));
            if (_a[0]) *reinterpret_cast<docstring*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (ViewSourceWidget::*)() const>(_a, &ViewSourceWidget::needUpdate, 0))
            return;
    }
}

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

void *lyx::frontend::ViewSourceWidget::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3lyx8frontend16ViewSourceWidgetE_t>.strings))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "Ui::ViewSourceUi"))
        return static_cast< Ui::ViewSourceUi*>(this);
    return QWidget::qt_metacast(_clname);
}

int lyx::frontend::ViewSourceWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QWidget::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 7)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 7;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 7)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 7;
    }
    return _id;
}

// SIGNAL 0
void lyx::frontend::ViewSourceWidget::needUpdate()const
{
    QMetaObject::activate(const_cast< lyx::frontend::ViewSourceWidget *>(this), &staticMetaObject, 0, nullptr);
}
namespace {
struct qt_meta_tag_ZN3lyx8frontend13GuiViewSourceE_t {};
} // unnamed namespace

template <> constexpr inline auto lyx::frontend::GuiViewSource::qt_create_metaobjectdata<qt_meta_tag_ZN3lyx8frontend13GuiViewSourceE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "lyx::frontend::GuiViewSource",
        "onBufferViewChanged",
        "",
        "updateTitle",
        "scheduleUpdate",
        "scheduleUpdateNow",
        "realUpdateView"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'onBufferViewChanged'
        QtMocHelpers::SlotData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'updateTitle'
        QtMocHelpers::SlotData<void()>(3, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'scheduleUpdate'
        QtMocHelpers::SlotData<void()>(4, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'scheduleUpdateNow'
        QtMocHelpers::SlotData<void()>(5, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'realUpdateView'
        QtMocHelpers::SlotData<void()>(6, 2, QMC::AccessPrivate, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<GuiViewSource, qt_meta_tag_ZN3lyx8frontend13GuiViewSourceE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject lyx::frontend::GuiViewSource::staticMetaObject = { {
    QMetaObject::SuperData::link<DockView::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3lyx8frontend13GuiViewSourceE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3lyx8frontend13GuiViewSourceE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN3lyx8frontend13GuiViewSourceE_t>.metaTypes,
    nullptr
} };

void lyx::frontend::GuiViewSource::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<GuiViewSource *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->onBufferViewChanged(); break;
        case 1: _t->updateTitle(); break;
        case 2: _t->scheduleUpdate(); break;
        case 3: _t->scheduleUpdateNow(); break;
        case 4: _t->realUpdateView(); break;
        default: ;
        }
    }
    (void)_a;
}

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

void *lyx::frontend::GuiViewSource::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN3lyx8frontend13GuiViewSourceE_t>.strings))
        return static_cast<void*>(this);
    return DockView::qt_metacast(_clname);
}

int lyx::frontend::GuiViewSource::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = DockView::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 5)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 5;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 5)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 5;
    }
    return _id;
}
QT_WARNING_POP
