#if defined (HAVE_CONFIG_H)
#  include "config.h"
#endif
/****************************************************************************
** Meta object code from reading C++ file 'moc-command-widget.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 "libgui/src/moc-command-widget.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 'moc-command-widget.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_ZN6octave7consoleE_t {};
} // unnamed namespace

template <> constexpr inline auto octave::console::qt_create_metaobjectdata<qt_meta_tag_ZN6octave7consoleE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "octave::console",
        "interpreter_event",
        "",
        "fcn_callback",
        "fcn",
        "meth_callback",
        "meth",
        "cursor_position_changed",
        "line",
        "col",
        "text_changed",
        "move_cursor_to_end",
        "new_command_line",
        "command",
        "execute_command",
        "find_incremental",
        "find"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'interpreter_event'
        QtMocHelpers::SignalData<void(const fcn_callback &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'interpreter_event'
        QtMocHelpers::SignalData<void(const meth_callback &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 5, 6 },
        }}),
        // Slot 'cursor_position_changed'
        QtMocHelpers::SlotData<void(int, int)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 8 }, { QMetaType::Int, 9 },
        }}),
        // Slot 'text_changed'
        QtMocHelpers::SlotData<void()>(10, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'move_cursor_to_end'
        QtMocHelpers::SlotData<void()>(11, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'new_command_line'
        QtMocHelpers::SlotData<void(const QString &)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 13 },
        }}),
        // Slot 'new_command_line'
        QtMocHelpers::SlotData<void()>(12, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void),
        // Slot 'execute_command'
        QtMocHelpers::SlotData<void(const QString &)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 13 },
        }}),
        // Slot 'find_incremental'
        QtMocHelpers::SlotData<void(const QString &)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 2 },
        }}),
        // Slot 'find'
        QtMocHelpers::SlotData<void(const QString &, bool)>(16, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 2 }, { QMetaType::Bool, 2 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<console, qt_meta_tag_ZN6octave7consoleE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject octave::console::staticMetaObject = { {
    QMetaObject::SuperData::link<QsciScintilla::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6octave7consoleE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6octave7consoleE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN6octave7consoleE_t>.metaTypes,
    nullptr
} };

void octave::console::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<console *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->interpreter_event((*reinterpret_cast<std::add_pointer_t<fcn_callback>>(_a[1]))); break;
        case 1: _t->interpreter_event((*reinterpret_cast<std::add_pointer_t<meth_callback>>(_a[1]))); break;
        case 2: _t->cursor_position_changed((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 3: _t->text_changed(); break;
        case 4: _t->move_cursor_to_end(); break;
        case 5: _t->new_command_line((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 6: _t->new_command_line(); break;
        case 7: _t->execute_command((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 8: _t->find_incremental((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 9: _t->find((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (console::*)(const fcn_callback & )>(_a, &console::interpreter_event, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (console::*)(const meth_callback & )>(_a, &console::interpreter_event, 1))
            return;
    }
}

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

void *octave::console::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6octave7consoleE_t>.strings))
        return static_cast<void*>(this);
    return QsciScintilla::qt_metacast(_clname);
}

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

// SIGNAL 0
void octave::console::interpreter_event(const fcn_callback & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void octave::console::interpreter_event(const meth_callback & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}
namespace {
struct qt_meta_tag_ZN6octave14command_widgetE_t {};
} // unnamed namespace

template <> constexpr inline auto octave::command_widget::qt_create_metaobjectdata<qt_meta_tag_ZN6octave14command_widgetE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "octave::command_widget",
        "clear_line_edit",
        "",
        "interpreter_pause",
        "interpreter_resume",
        "interpreter_stop",
        "update_prompt_signal",
        "prompt",
        "new_command_line_signal",
        "command",
        "interpreter_event",
        "fcn_callback",
        "fcn",
        "meth_callback",
        "meth",
        "process_redirected_streams",
        "const char*",
        "buf",
        "len",
        "fd",
        "process_input_line",
        "input_line",
        "update_prompt",
        "insert_interpreter_output",
        "msg",
        "style",
        "notice_settings"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'clear_line_edit'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'interpreter_pause'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'interpreter_resume'
        QtMocHelpers::SignalData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'interpreter_stop'
        QtMocHelpers::SignalData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'update_prompt_signal'
        QtMocHelpers::SignalData<void(const QString &)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 7 },
        }}),
        // Signal 'new_command_line_signal'
        QtMocHelpers::SignalData<void(const QString &)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 9 },
        }}),
        // Signal 'new_command_line_signal'
        QtMocHelpers::SignalData<void()>(8, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void),
        // Signal 'interpreter_event'
        QtMocHelpers::SignalData<void(const fcn_callback &)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 11, 12 },
        }}),
        // Signal 'interpreter_event'
        QtMocHelpers::SignalData<void(const meth_callback &)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 13, 14 },
        }}),
        // Slot 'process_redirected_streams'
        QtMocHelpers::SlotData<void(const char *, int, int)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 16, 17 }, { QMetaType::Int, 18 }, { QMetaType::Int, 19 },
        }}),
        // Slot 'process_input_line'
        QtMocHelpers::SlotData<void(const QString &)>(20, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 21 },
        }}),
        // Slot 'update_prompt'
        QtMocHelpers::SlotData<void(const QString &)>(22, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 7 },
        }}),
        // Slot 'insert_interpreter_output'
        QtMocHelpers::SlotData<void(const QString &, int)>(23, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 24 }, { QMetaType::Int, 25 },
        }}),
        // Slot 'notice_settings'
        QtMocHelpers::SlotData<void()>(26, 2, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<command_widget, qt_meta_tag_ZN6octave14command_widgetE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject octave::command_widget::staticMetaObject = { {
    QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6octave14command_widgetE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6octave14command_widgetE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN6octave14command_widgetE_t>.metaTypes,
    nullptr
} };

void octave::command_widget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<command_widget *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->clear_line_edit(); break;
        case 1: _t->interpreter_pause(); break;
        case 2: _t->interpreter_resume(); break;
        case 3: _t->interpreter_stop(); break;
        case 4: _t->update_prompt_signal((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 5: _t->new_command_line_signal((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 6: _t->new_command_line_signal(); break;
        case 7: _t->interpreter_event((*reinterpret_cast<std::add_pointer_t<fcn_callback>>(_a[1]))); break;
        case 8: _t->interpreter_event((*reinterpret_cast<std::add_pointer_t<meth_callback>>(_a[1]))); break;
        case 9: _t->process_redirected_streams((*reinterpret_cast<std::add_pointer_t<const char*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3]))); break;
        case 10: _t->process_input_line((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 11: _t->update_prompt((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 12: _t->insert_interpreter_output((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 13: _t->notice_settings(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (command_widget::*)()>(_a, &command_widget::clear_line_edit, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (command_widget::*)()>(_a, &command_widget::interpreter_pause, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (command_widget::*)()>(_a, &command_widget::interpreter_resume, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (command_widget::*)()>(_a, &command_widget::interpreter_stop, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (command_widget::*)(const QString & )>(_a, &command_widget::update_prompt_signal, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (command_widget::*)(const QString & )>(_a, &command_widget::new_command_line_signal, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (command_widget::*)(const fcn_callback & )>(_a, &command_widget::interpreter_event, 7))
            return;
        if (QtMocHelpers::indexOfMethod<void (command_widget::*)(const meth_callback & )>(_a, &command_widget::interpreter_event, 8))
            return;
    }
}

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

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

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

// SIGNAL 0
void octave::command_widget::clear_line_edit()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void octave::command_widget::interpreter_pause()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void octave::command_widget::interpreter_resume()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void octave::command_widget::interpreter_stop()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void octave::command_widget::update_prompt_signal(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}

// SIGNAL 5
void octave::command_widget::new_command_line_signal(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1);
}

// SIGNAL 7
void octave::command_widget::interpreter_event(const fcn_callback & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 7, nullptr, _t1);
}

// SIGNAL 8
void octave::command_widget::interpreter_event(const meth_callback & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 8, nullptr, _t1);
}
QT_WARNING_POP
