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

#include "../../freeciv/client/gui-qt/diplodlg.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 'diplodlg.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.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_ZN9diplo_wdgE_t {};
} // unnamed namespace

template <> constexpr inline auto diplo_wdg::qt_create_metaobjectdata<qt_meta_tag_ZN9diplo_wdgE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "diplo_wdg",
        "all_advances",
        "",
        "dbl_click",
        "QTableWidgetItem*",
        "item",
        "give_advance",
        "tech",
        "give_city",
        "city_num",
        "give_embassy",
        "give_shared_vision",
        "gold_changed1",
        "val",
        "gold_changed2",
        "pact_allianze",
        "pact_ceasfire",
        "pact_peace",
        "response_accept",
        "response_cancel",
        "sea_map_clause",
        "show_menu",
        "player*",
        "pplayer",
        "show_menu_p1",
        "show_menu_p2",
        "world_map_clause",
        "restore_pixmap"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'all_advances'
        QtMocHelpers::SlotData<void()>(1, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'dbl_click'
        QtMocHelpers::SlotData<void(QTableWidgetItem *)>(3, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 4, 5 },
        }}),
        // Slot 'give_advance'
        QtMocHelpers::SlotData<void(int)>(6, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 7 },
        }}),
        // Slot 'give_city'
        QtMocHelpers::SlotData<void(int)>(8, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 9 },
        }}),
        // Slot 'give_embassy'
        QtMocHelpers::SlotData<void()>(10, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'give_shared_vision'
        QtMocHelpers::SlotData<void()>(11, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'gold_changed1'
        QtMocHelpers::SlotData<void(int)>(12, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 13 },
        }}),
        // Slot 'gold_changed2'
        QtMocHelpers::SlotData<void(int)>(14, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 13 },
        }}),
        // Slot 'pact_allianze'
        QtMocHelpers::SlotData<void()>(15, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'pact_ceasfire'
        QtMocHelpers::SlotData<void()>(16, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'pact_peace'
        QtMocHelpers::SlotData<void()>(17, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'response_accept'
        QtMocHelpers::SlotData<void()>(18, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'response_cancel'
        QtMocHelpers::SlotData<void()>(19, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'sea_map_clause'
        QtMocHelpers::SlotData<void()>(20, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'show_menu'
        QtMocHelpers::SlotData<void(player *)>(21, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 22, 23 },
        }}),
        // Slot 'show_menu_p1'
        QtMocHelpers::SlotData<void()>(24, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'show_menu_p2'
        QtMocHelpers::SlotData<void()>(25, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'world_map_clause'
        QtMocHelpers::SlotData<void()>(26, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'restore_pixmap'
        QtMocHelpers::SlotData<void()>(27, 2, QMC::AccessPrivate, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<diplo_wdg, qt_meta_tag_ZN9diplo_wdgE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject diplo_wdg::staticMetaObject = { {
    QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9diplo_wdgE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9diplo_wdgE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN9diplo_wdgE_t>.metaTypes,
    nullptr
} };

void diplo_wdg::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<diplo_wdg *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->all_advances(); break;
        case 1: _t->dbl_click((*reinterpret_cast<std::add_pointer_t<QTableWidgetItem*>>(_a[1]))); break;
        case 2: _t->give_advance((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 3: _t->give_city((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 4: _t->give_embassy(); break;
        case 5: _t->give_shared_vision(); break;
        case 6: _t->gold_changed1((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 7: _t->gold_changed2((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 8: _t->pact_allianze(); break;
        case 9: _t->pact_ceasfire(); break;
        case 10: _t->pact_peace(); break;
        case 11: _t->response_accept(); break;
        case 12: _t->response_cancel(); break;
        case 13: _t->sea_map_clause(); break;
        case 14: _t->show_menu((*reinterpret_cast<std::add_pointer_t<player*>>(_a[1]))); break;
        case 15: _t->show_menu_p1(); break;
        case 16: _t->show_menu_p2(); break;
        case 17: _t->world_map_clause(); break;
        case 18: _t->restore_pixmap(); break;
        default: ;
        }
    }
}

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

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

int diplo_wdg::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 < 19)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 19;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 19)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 19;
    }
    return _id;
}
namespace {
struct qt_meta_tag_ZN9diplo_dlgE_t {};
} // unnamed namespace

template <> constexpr inline auto diplo_dlg::qt_create_metaobjectdata<qt_meta_tag_ZN9diplo_dlgE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "diplo_dlg"
    };

    QtMocHelpers::UintData qt_methods {
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<diplo_dlg, qt_meta_tag_ZN9diplo_dlgE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject diplo_dlg::staticMetaObject = { {
    QMetaObject::SuperData::link<QTabWidget::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9diplo_dlgE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9diplo_dlgE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN9diplo_dlgE_t>.metaTypes,
    nullptr
} };

void diplo_dlg::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<diplo_dlg *>(_o);
    (void)_t;
    (void)_c;
    (void)_id;
    (void)_a;
}

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

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

int diplo_dlg::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QTabWidget::qt_metacall(_c, _id, _a);
    return _id;
}
QT_WARNING_POP
