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

template <> constexpr inline auto ToolManager::qt_create_metaobjectdata<qt_meta_tag_ZN11ToolManagerE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "ToolManager",
        "penWidthValueChanged",
        "",
        "penFeatherValueChanged",
        "toleranceValueChanged",
        "toolChanged",
        "ToolType",
        "toolPropertyChanged",
        "ToolPropertyType",
        "resetAllTools",
        "setWidth",
        "setFeather",
        "setUseFeather",
        "setInvisibility",
        "setPreserveAlpha",
        "setVectorMergeEnabled",
        "setBezier",
        "setPressure",
        "setAA",
        "setFillMode",
        "setStabilizerLevel",
        "setTolerance",
        "setBucketColorToleranceEnabled",
        "enabled",
        "setBucketFillExpandEnabled",
        "setBucketFillReferenceMode",
        "referenceMode",
        "setBucketFillExpand",
        "setUseFillContour",
        "setShowSelectionInfo",
        "b",
        "setShowCameraPath",
        "resetCameraPath",
        "setCameraPathDotColor",
        "resetCameraTransform",
        "CameraFieldOption",
        "option",
        "bucketReferenceModeIsCurrentLayer"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'penWidthValueChanged'
        QtMocHelpers::SignalData<void(float)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 2 },
        }}),
        // Signal 'penFeatherValueChanged'
        QtMocHelpers::SignalData<void(float)>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 2 },
        }}),
        // Signal 'toleranceValueChanged'
        QtMocHelpers::SignalData<void(qreal)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QReal, 2 },
        }}),
        // Signal 'toolChanged'
        QtMocHelpers::SignalData<void(ToolType)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 6, 2 },
        }}),
        // Signal 'toolPropertyChanged'
        QtMocHelpers::SignalData<void(ToolType, ToolPropertyType)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 6, 2 }, { 0x80000000 | 8, 2 },
        }}),
        // Slot 'resetAllTools'
        QtMocHelpers::SlotData<void()>(9, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'setWidth'
        QtMocHelpers::SlotData<void(float)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 2 },
        }}),
        // Slot 'setFeather'
        QtMocHelpers::SlotData<void(float)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 2 },
        }}),
        // Slot 'setUseFeather'
        QtMocHelpers::SlotData<void(bool)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 2 },
        }}),
        // Slot 'setInvisibility'
        QtMocHelpers::SlotData<void(bool)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 2 },
        }}),
        // Slot 'setPreserveAlpha'
        QtMocHelpers::SlotData<void(bool)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 2 },
        }}),
        // Slot 'setVectorMergeEnabled'
        QtMocHelpers::SlotData<void(bool)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 2 },
        }}),
        // Slot 'setBezier'
        QtMocHelpers::SlotData<void(bool)>(16, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 2 },
        }}),
        // Slot 'setPressure'
        QtMocHelpers::SlotData<void(bool)>(17, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 2 },
        }}),
        // Slot 'setAA'
        QtMocHelpers::SlotData<void(int)>(18, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 2 },
        }}),
        // Slot 'setFillMode'
        QtMocHelpers::SlotData<void(int)>(19, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 2 },
        }}),
        // Slot 'setStabilizerLevel'
        QtMocHelpers::SlotData<void(int)>(20, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 2 },
        }}),
        // Slot 'setTolerance'
        QtMocHelpers::SlotData<void(int)>(21, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 2 },
        }}),
        // Slot 'setBucketColorToleranceEnabled'
        QtMocHelpers::SlotData<void(bool)>(22, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 23 },
        }}),
        // Slot 'setBucketFillExpandEnabled'
        QtMocHelpers::SlotData<void(bool)>(24, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 23 },
        }}),
        // Slot 'setBucketFillReferenceMode'
        QtMocHelpers::SlotData<void(int)>(25, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 26 },
        }}),
        // Slot 'setBucketFillExpand'
        QtMocHelpers::SlotData<void(int)>(27, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 2 },
        }}),
        // Slot 'setUseFillContour'
        QtMocHelpers::SlotData<void(bool)>(28, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 2 },
        }}),
        // Slot 'setShowSelectionInfo'
        QtMocHelpers::SlotData<void(bool)>(29, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 30 },
        }}),
        // Slot 'setShowCameraPath'
        QtMocHelpers::SlotData<void(bool)>(31, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 2 },
        }}),
        // Slot 'resetCameraPath'
        QtMocHelpers::SlotData<void()>(32, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'setCameraPathDotColor'
        QtMocHelpers::SlotData<void(int)>(33, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 2 },
        }}),
        // Slot 'resetCameraTransform'
        QtMocHelpers::SlotData<void(CameraFieldOption)>(34, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 35, 36 },
        }}),
        // Slot 'bucketReferenceModeIsCurrentLayer'
        QtMocHelpers::SlotData<bool(int) const>(37, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { QMetaType::Int, 26 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<ToolManager, qt_meta_tag_ZN11ToolManagerE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject ToolManager::staticMetaObject = { {
    QMetaObject::SuperData::link<BaseManager::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11ToolManagerE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11ToolManagerE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN11ToolManagerE_t>.metaTypes,
    nullptr
} };

void ToolManager::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<ToolManager *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->penWidthValueChanged((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 1: _t->penFeatherValueChanged((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 2: _t->toleranceValueChanged((*reinterpret_cast<std::add_pointer_t<qreal>>(_a[1]))); break;
        case 3: _t->toolChanged((*reinterpret_cast<std::add_pointer_t<ToolType>>(_a[1]))); break;
        case 4: _t->toolPropertyChanged((*reinterpret_cast<std::add_pointer_t<ToolType>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<ToolPropertyType>>(_a[2]))); break;
        case 5: _t->resetAllTools(); break;
        case 6: _t->setWidth((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 7: _t->setFeather((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 8: _t->setUseFeather((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 9: _t->setInvisibility((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 10: _t->setPreserveAlpha((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 11: _t->setVectorMergeEnabled((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 12: _t->setBezier((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 13: _t->setPressure((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 14: _t->setAA((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 15: _t->setFillMode((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 16: _t->setStabilizerLevel((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 17: _t->setTolerance((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 18: _t->setBucketColorToleranceEnabled((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 19: _t->setBucketFillExpandEnabled((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 20: _t->setBucketFillReferenceMode((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 21: _t->setBucketFillExpand((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 22: _t->setUseFillContour((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 23: _t->setShowSelectionInfo((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 24: _t->setShowCameraPath((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 25: _t->resetCameraPath(); break;
        case 26: _t->setCameraPathDotColor((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 27: _t->resetCameraTransform((*reinterpret_cast<std::add_pointer_t<CameraFieldOption>>(_a[1]))); break;
        case 28: { bool _r = _t->bucketReferenceModeIsCurrentLayer((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (ToolManager::*)(float )>(_a, &ToolManager::penWidthValueChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (ToolManager::*)(float )>(_a, &ToolManager::penFeatherValueChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (ToolManager::*)(qreal )>(_a, &ToolManager::toleranceValueChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (ToolManager::*)(ToolType )>(_a, &ToolManager::toolChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (ToolManager::*)(ToolType , ToolPropertyType )>(_a, &ToolManager::toolPropertyChanged, 4))
            return;
    }
}

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

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

int ToolManager::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = BaseManager::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 ToolManager::penWidthValueChanged(float _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void ToolManager::penFeatherValueChanged(float _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void ToolManager::toleranceValueChanged(qreal _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void ToolManager::toolChanged(ToolType _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void ToolManager::toolPropertyChanged(ToolType _t1, ToolPropertyType _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1, _t2);
}
QT_WARNING_POP
