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

template <> constexpr inline auto TabWidget::qt_create_metaobjectdata<qt_meta_tag_ZN9TabWidgetE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "TabWidget",
        "closeLastTabNotification",
        "",
        "tabRenameRequested",
        "tabTitleColorChangeRequested",
        "currentTitleChanged",
        "addNewTab",
        "TerminalConfig",
        "cfg",
        "removeTab",
        "index",
        "prompt",
        "switchTab",
        "onAction",
        "onCurrentChanged",
        "removeCurrentTab",
        "switchToRight",
        "switchToLeft",
        "removeFinished",
        "moveLeft",
        "moveRight",
        "renameSession",
        "renameCurrentSession",
        "setTitleColor",
        "switchLeftSubterminal",
        "switchRightSubterminal",
        "switchTopSubterminal",
        "switchBottomSubterminal",
        "splitHorizontally",
        "splitVertically",
        "splitCollapse",
        "copySelection",
        "pasteClipboard",
        "pasteSelection",
        "zoomIn",
        "zoomOut",
        "zoomReset",
        "changeTabPosition",
        "QAction*",
        "changeScrollPosition",
        "changeKeyboardCursorShape",
        "propertiesChanged",
        "clearActiveTerminal",
        "saveSession",
        "loadSession",
        "preset2Horizontal",
        "preset2Vertical",
        "preset4Terminals",
        "switchToNext",
        "switchToPrev",
        "updateTabIndices",
        "onTermTitleChanged",
        "title",
        "icon"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'closeLastTabNotification'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'tabRenameRequested'
        QtMocHelpers::SignalData<void(int)>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 2 },
        }}),
        // Signal 'tabTitleColorChangeRequested'
        QtMocHelpers::SignalData<void(int)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 2 },
        }}),
        // Signal 'currentTitleChanged'
        QtMocHelpers::SignalData<void(int)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 2 },
        }}),
        // Slot 'addNewTab'
        QtMocHelpers::SlotData<int(TerminalConfig)>(6, 2, QMC::AccessPublic, QMetaType::Int, {{
            { 0x80000000 | 7, 8 },
        }}),
        // Slot 'removeTab'
        QtMocHelpers::SlotData<void(int, bool)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 10 }, { QMetaType::Bool, 11 },
        }}),
        // Slot 'removeTab'
        QtMocHelpers::SlotData<void(int)>(9, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
            { QMetaType::Int, 10 },
        }}),
        // Slot 'switchTab'
        QtMocHelpers::SlotData<void(int)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 2 },
        }}),
        // Slot 'onAction'
        QtMocHelpers::SlotData<void()>(13, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'onCurrentChanged'
        QtMocHelpers::SlotData<void(int)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 2 },
        }}),
        // Slot 'removeCurrentTab'
        QtMocHelpers::SlotData<void()>(15, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'switchToRight'
        QtMocHelpers::SlotData<int()>(16, 2, QMC::AccessPublic, QMetaType::Int),
        // Slot 'switchToLeft'
        QtMocHelpers::SlotData<int()>(17, 2, QMC::AccessPublic, QMetaType::Int),
        // Slot 'removeFinished'
        QtMocHelpers::SlotData<void()>(18, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'moveLeft'
        QtMocHelpers::SlotData<void()>(19, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'moveRight'
        QtMocHelpers::SlotData<void()>(20, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'renameSession'
        QtMocHelpers::SlotData<void(int)>(21, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 2 },
        }}),
        // Slot 'renameCurrentSession'
        QtMocHelpers::SlotData<void()>(22, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'setTitleColor'
        QtMocHelpers::SlotData<void(int)>(23, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 2 },
        }}),
        // Slot 'switchLeftSubterminal'
        QtMocHelpers::SlotData<void()>(24, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'switchRightSubterminal'
        QtMocHelpers::SlotData<void()>(25, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'switchTopSubterminal'
        QtMocHelpers::SlotData<void()>(26, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'switchBottomSubterminal'
        QtMocHelpers::SlotData<void()>(27, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'splitHorizontally'
        QtMocHelpers::SlotData<void()>(28, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'splitVertically'
        QtMocHelpers::SlotData<void()>(29, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'splitCollapse'
        QtMocHelpers::SlotData<void()>(30, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'copySelection'
        QtMocHelpers::SlotData<void()>(31, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'pasteClipboard'
        QtMocHelpers::SlotData<void()>(32, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'pasteSelection'
        QtMocHelpers::SlotData<void()>(33, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'zoomIn'
        QtMocHelpers::SlotData<void()>(34, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'zoomOut'
        QtMocHelpers::SlotData<void()>(35, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'zoomReset'
        QtMocHelpers::SlotData<void()>(36, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'changeTabPosition'
        QtMocHelpers::SlotData<void(QAction *)>(37, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 38, 2 },
        }}),
        // Slot 'changeScrollPosition'
        QtMocHelpers::SlotData<void(QAction *)>(39, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 38, 2 },
        }}),
        // Slot 'changeKeyboardCursorShape'
        QtMocHelpers::SlotData<void(QAction *)>(40, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 38, 2 },
        }}),
        // Slot 'propertiesChanged'
        QtMocHelpers::SlotData<void()>(41, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'clearActiveTerminal'
        QtMocHelpers::SlotData<void()>(42, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'saveSession'
        QtMocHelpers::SlotData<void()>(43, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'loadSession'
        QtMocHelpers::SlotData<void()>(44, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'preset2Horizontal'
        QtMocHelpers::SlotData<void()>(45, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'preset2Vertical'
        QtMocHelpers::SlotData<void()>(46, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'preset4Terminals'
        QtMocHelpers::SlotData<void()>(47, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'switchToNext'
        QtMocHelpers::SlotData<void()>(48, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'switchToPrev'
        QtMocHelpers::SlotData<void()>(49, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'updateTabIndices'
        QtMocHelpers::SlotData<void()>(50, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'onTermTitleChanged'
        QtMocHelpers::SlotData<void(const QString &, const QString &)>(51, 2, QMC::AccessProtected, QMetaType::Void, {{
            { QMetaType::QString, 52 }, { QMetaType::QString, 53 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<TabWidget, qt_meta_tag_ZN9TabWidgetE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject TabWidget::staticMetaObject = { {
    QMetaObject::SuperData::link<QTabWidget::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9TabWidgetE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9TabWidgetE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN9TabWidgetE_t>.metaTypes,
    nullptr
} };

void TabWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<TabWidget *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->closeLastTabNotification(); break;
        case 1: _t->tabRenameRequested((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 2: _t->tabTitleColorChangeRequested((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 3: _t->currentTitleChanged((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 4: { int _r = _t->addNewTab((*reinterpret_cast<std::add_pointer_t<TerminalConfig>>(_a[1])));
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 5: _t->removeTab((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2]))); break;
        case 6: _t->removeTab((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 7: _t->switchTab((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 8: _t->onAction(); break;
        case 9: _t->onCurrentChanged((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 10: _t->removeCurrentTab(); break;
        case 11: { int _r = _t->switchToRight();
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 12: { int _r = _t->switchToLeft();
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 13: _t->removeFinished(); break;
        case 14: _t->moveLeft(); break;
        case 15: _t->moveRight(); break;
        case 16: _t->renameSession((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 17: _t->renameCurrentSession(); break;
        case 18: _t->setTitleColor((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 19: _t->switchLeftSubterminal(); break;
        case 20: _t->switchRightSubterminal(); break;
        case 21: _t->switchTopSubterminal(); break;
        case 22: _t->switchBottomSubterminal(); break;
        case 23: _t->splitHorizontally(); break;
        case 24: _t->splitVertically(); break;
        case 25: _t->splitCollapse(); break;
        case 26: _t->copySelection(); break;
        case 27: _t->pasteClipboard(); break;
        case 28: _t->pasteSelection(); break;
        case 29: _t->zoomIn(); break;
        case 30: _t->zoomOut(); break;
        case 31: _t->zoomReset(); break;
        case 32: _t->changeTabPosition((*reinterpret_cast<std::add_pointer_t<QAction*>>(_a[1]))); break;
        case 33: _t->changeScrollPosition((*reinterpret_cast<std::add_pointer_t<QAction*>>(_a[1]))); break;
        case 34: _t->changeKeyboardCursorShape((*reinterpret_cast<std::add_pointer_t<QAction*>>(_a[1]))); break;
        case 35: _t->propertiesChanged(); break;
        case 36: _t->clearActiveTerminal(); break;
        case 37: _t->saveSession(); break;
        case 38: _t->loadSession(); break;
        case 39: _t->preset2Horizontal(); break;
        case 40: _t->preset2Vertical(); break;
        case 41: _t->preset4Terminals(); break;
        case 42: _t->switchToNext(); break;
        case 43: _t->switchToPrev(); break;
        case 44: _t->updateTabIndices(); break;
        case 45: _t->onTermTitleChanged((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (TabWidget::*)()>(_a, &TabWidget::closeLastTabNotification, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (TabWidget::*)(int )>(_a, &TabWidget::tabRenameRequested, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (TabWidget::*)(int )>(_a, &TabWidget::tabTitleColorChangeRequested, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (TabWidget::*)(int )>(_a, &TabWidget::currentTitleChanged, 3))
            return;
    }
}

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

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

int TabWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QTabWidget::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 46)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 46;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 46)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 46;
    }
    return _id;
}

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

// SIGNAL 1
void TabWidget::tabRenameRequested(int _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void TabWidget::tabTitleColorChangeRequested(int _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void TabWidget::currentTitleChanged(int _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}
QT_WARNING_POP
