/****************************************************************************
** Meta object code from reading C++ file 'multi_editor.hpp'
**
** 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/editors/sc-ide/widgets/multi_editor.hpp"
#include <QtCore/qmetatype.h>
#include <QtCore/QList>

#include <QtCore/qtmochelpers.h>

#include <memory>


#include <QtCore/qxptype_traits.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'multi_editor.hpp' 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_ZN5ScIDE12EditorTabBarE_t {};
} // unnamed namespace

template <> constexpr inline auto ScIDE::EditorTabBar::qt_create_metaobjectdata<qt_meta_tag_ZN5ScIDE12EditorTabBarE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "ScIDE::EditorTabBar",
        "onCloseTab",
        "",
        "onCloseOtherTabs",
        "onCloseTabsToTheRight"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'onCloseTab'
        QtMocHelpers::SlotData<void()>(1, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'onCloseOtherTabs'
        QtMocHelpers::SlotData<void()>(3, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'onCloseTabsToTheRight'
        QtMocHelpers::SlotData<void()>(4, 2, QMC::AccessPrivate, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<EditorTabBar, qt_meta_tag_ZN5ScIDE12EditorTabBarE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject ScIDE::EditorTabBar::staticMetaObject = { {
    QMetaObject::SuperData::link<QTabBar::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN5ScIDE12EditorTabBarE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN5ScIDE12EditorTabBarE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN5ScIDE12EditorTabBarE_t>.metaTypes,
    nullptr
} };

void ScIDE::EditorTabBar::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<EditorTabBar *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->onCloseTab(); break;
        case 1: _t->onCloseOtherTabs(); break;
        case 2: _t->onCloseTabsToTheRight(); break;
        default: ;
        }
    }
    (void)_a;
}

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

void *ScIDE::EditorTabBar::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN5ScIDE12EditorTabBarE_t>.strings))
        return static_cast<void*>(this);
    return QTabBar::qt_metacast(_clname);
}

int ScIDE::EditorTabBar::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QTabBar::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 3)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 3;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 3)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 3;
    }
    return _id;
}
namespace {
struct qt_meta_tag_ZN5ScIDE11MultiEditorE_t {};
} // unnamed namespace

template <> constexpr inline auto ScIDE::MultiEditor::qt_create_metaobjectdata<qt_meta_tag_ZN5ScIDE11MultiEditorE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "ScIDE::MultiEditor",
        "currentDocumentChanged",
        "",
        "Document*",
        "splitViewActivated",
        "splitViewDeactivated",
        "updateDockletOrder",
        "setCurrent",
        "showNextDocument",
        "showPreviousDocument",
        "switchDocument",
        "splitHorizontally",
        "splitVertically",
        "removeCurrentSplit",
        "removeAllSplits",
        "setShowWhitespace",
        "on",
        "setShowLinenumber",
        "setShowAutocompleteHelp",
        "updateTabsOrder",
        "QList<Document*>",
        "applySettings",
        "Settings::Manager*",
        "onOpen",
        "initialCursorPosition",
        "selectionLength",
        "onClose",
        "show",
        "cursorPosition",
        "selectionLenght",
        "update",
        "onCloseRequest",
        "index",
        "onCurrentTabChanged",
        "onCurrentEditorChanged",
        "GenericCodeEditor*",
        "onBoxActivated",
        "CodeEditorBox*",
        "onDocModified",
        "updateDocOrder"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'currentDocumentChanged'
        QtMocHelpers::SignalData<void(Document *)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 2 },
        }}),
        // Signal 'splitViewActivated'
        QtMocHelpers::SignalData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'splitViewDeactivated'
        QtMocHelpers::SignalData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'updateDockletOrder'
        QtMocHelpers::SignalData<void(int, int)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 2 }, { QMetaType::Int, 2 },
        }}),
        // Slot 'setCurrent'
        QtMocHelpers::SlotData<void(Document *)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 2 },
        }}),
        // Slot 'showNextDocument'
        QtMocHelpers::SlotData<void()>(8, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'showPreviousDocument'
        QtMocHelpers::SlotData<void()>(9, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'switchDocument'
        QtMocHelpers::SlotData<void()>(10, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'splitHorizontally'
        QtMocHelpers::SlotData<void()>(11, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'splitVertically'
        QtMocHelpers::SlotData<void()>(12, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'removeCurrentSplit'
        QtMocHelpers::SlotData<void()>(13, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'removeAllSplits'
        QtMocHelpers::SlotData<void()>(14, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'setShowWhitespace'
        QtMocHelpers::SlotData<void(bool)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 16 },
        }}),
        // Slot 'setShowLinenumber'
        QtMocHelpers::SlotData<void(bool)>(17, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 16 },
        }}),
        // Slot 'setShowAutocompleteHelp'
        QtMocHelpers::SlotData<void(bool)>(18, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 16 },
        }}),
        // Slot 'updateTabsOrder'
        QtMocHelpers::SlotData<void(QList<Document*>)>(19, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 20, 2 },
        }}),
        // Slot 'applySettings'
        QtMocHelpers::SlotData<void(Settings::Manager *)>(21, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 22, 2 },
        }}),
        // Slot 'onOpen'
        QtMocHelpers::SlotData<void(Document *, int, int)>(23, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 3, 2 }, { QMetaType::Int, 24 }, { QMetaType::Int, 25 },
        }}),
        // Slot 'onClose'
        QtMocHelpers::SlotData<void(Document *)>(26, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 3, 2 },
        }}),
        // Slot 'show'
        QtMocHelpers::SlotData<void(Document *, int, int)>(27, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 3, 2 }, { QMetaType::Int, 28 }, { QMetaType::Int, 29 },
        }}),
        // Slot 'show'
        QtMocHelpers::SlotData<void(Document *, int)>(27, 2, QMC::AccessPrivate | QMC::MethodCloned, QMetaType::Void, {{
            { 0x80000000 | 3, 2 }, { QMetaType::Int, 28 },
        }}),
        // Slot 'show'
        QtMocHelpers::SlotData<void(Document *)>(27, 2, QMC::AccessPrivate | QMC::MethodCloned, QMetaType::Void, {{
            { 0x80000000 | 3, 2 },
        }}),
        // Slot 'update'
        QtMocHelpers::SlotData<void(Document *)>(30, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 3, 2 },
        }}),
        // Slot 'onCloseRequest'
        QtMocHelpers::SlotData<void(int)>(31, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 32 },
        }}),
        // Slot 'onCurrentTabChanged'
        QtMocHelpers::SlotData<void(int)>(33, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 32 },
        }}),
        // Slot 'onCurrentEditorChanged'
        QtMocHelpers::SlotData<void(GenericCodeEditor *)>(34, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 35, 2 },
        }}),
        // Slot 'onBoxActivated'
        QtMocHelpers::SlotData<void(CodeEditorBox *)>(36, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 37, 2 },
        }}),
        // Slot 'onDocModified'
        QtMocHelpers::SlotData<void(Document *)>(38, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 3, 2 },
        }}),
        // Slot 'updateDocOrder'
        QtMocHelpers::SlotData<void(int, int)>(39, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 2 }, { QMetaType::Int, 2 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<MultiEditor, qt_meta_tag_ZN5ScIDE11MultiEditorE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject ScIDE::MultiEditor::staticMetaObject = { {
    QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN5ScIDE11MultiEditorE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN5ScIDE11MultiEditorE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN5ScIDE11MultiEditorE_t>.metaTypes,
    nullptr
} };

void ScIDE::MultiEditor::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<MultiEditor *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->currentDocumentChanged((*reinterpret_cast<std::add_pointer_t<Document*>>(_a[1]))); break;
        case 1: _t->splitViewActivated(); break;
        case 2: _t->splitViewDeactivated(); break;
        case 3: _t->updateDockletOrder((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 4: _t->setCurrent((*reinterpret_cast<std::add_pointer_t<Document*>>(_a[1]))); break;
        case 5: _t->showNextDocument(); break;
        case 6: _t->showPreviousDocument(); break;
        case 7: _t->switchDocument(); break;
        case 8: _t->splitHorizontally(); break;
        case 9: _t->splitVertically(); break;
        case 10: _t->removeCurrentSplit(); break;
        case 11: _t->removeAllSplits(); break;
        case 12: _t->setShowWhitespace((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 13: _t->setShowLinenumber((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 14: _t->setShowAutocompleteHelp((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 15: _t->updateTabsOrder((*reinterpret_cast<std::add_pointer_t<QList<Document*>>>(_a[1]))); break;
        case 16: _t->applySettings((*reinterpret_cast<std::add_pointer_t<Settings::Manager*>>(_a[1]))); break;
        case 17: _t->onOpen((*reinterpret_cast<std::add_pointer_t<Document*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3]))); break;
        case 18: _t->onClose((*reinterpret_cast<std::add_pointer_t<Document*>>(_a[1]))); break;
        case 19: _t->show((*reinterpret_cast<std::add_pointer_t<Document*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3]))); break;
        case 20: _t->show((*reinterpret_cast<std::add_pointer_t<Document*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 21: _t->show((*reinterpret_cast<std::add_pointer_t<Document*>>(_a[1]))); break;
        case 22: _t->update((*reinterpret_cast<std::add_pointer_t<Document*>>(_a[1]))); break;
        case 23: _t->onCloseRequest((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 24: _t->onCurrentTabChanged((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 25: _t->onCurrentEditorChanged((*reinterpret_cast<std::add_pointer_t<GenericCodeEditor*>>(_a[1]))); break;
        case 26: _t->onBoxActivated((*reinterpret_cast<std::add_pointer_t<CodeEditorBox*>>(_a[1]))); break;
        case 27: _t->onDocModified((*reinterpret_cast<std::add_pointer_t<Document*>>(_a[1]))); break;
        case 28: _t->updateDocOrder((*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 (MultiEditor::*)(Document * )>(_a, &MultiEditor::currentDocumentChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (MultiEditor::*)()>(_a, &MultiEditor::splitViewActivated, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (MultiEditor::*)()>(_a, &MultiEditor::splitViewDeactivated, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (MultiEditor::*)(int , int )>(_a, &MultiEditor::updateDockletOrder, 3))
            return;
    }
}

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

void *ScIDE::MultiEditor::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN5ScIDE11MultiEditorE_t>.strings))
        return static_cast<void*>(this);
    return QWidget::qt_metacast(_clname);
}

int ScIDE::MultiEditor::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 < 29)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 29;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 29)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 29;
    }
    return _id;
}

// SIGNAL 0
void ScIDE::MultiEditor::currentDocumentChanged(Document * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void ScIDE::MultiEditor::splitViewActivated()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void ScIDE::MultiEditor::splitViewDeactivated()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void ScIDE::MultiEditor::updateDockletOrder(int _t1, int _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1, _t2);
}
QT_WARNING_POP
