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

#include "../../../../../../../../mauikit-imagetools-4.0.2/src/code/modules/editor/src/imagedocument.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 'imagedocument.h' 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_ZN13ImageDocumentE_t {};
} // unnamed namespace

template <> constexpr inline auto ImageDocument::qt_create_metaobjectdata<qt_meta_tag_ZN13ImageDocumentE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "ImageDocument",
        "QML.Element",
        "auto",
        "pathChanged",
        "",
        "QUrl",
        "url",
        "imageChanged",
        "editedChanged",
        "brightnessChanged",
        "contrastChanged",
        "saturationChanged",
        "areaChanged",
        "hueChanged",
        "sharpnessChanged",
        "gammaChanged",
        "thresholdChanged",
        "changesAppliedChanged",
        "gaussianBlurChanged",
        "changesSavedChanged",
        "rotate",
        "angle",
        "mirror",
        "horizontal",
        "vertical",
        "crop",
        "x",
        "y",
        "width",
        "height",
        "resize",
        "undo",
        "cancel",
        "save",
        "saveAs",
        "location",
        "adjustBrightness",
        "value",
        "adjustContrast",
        "adjustSaturation",
        "adjustHue",
        "adjustGamma",
        "adjustSharpness",
        "adjustThreshold",
        "adjustGaussianBlur",
        "toGray",
        "toBW",
        "toSketch",
        "addVignette",
        "addBorder",
        "thickness",
        "QColor",
        "color",
        "applyChanges",
        "path",
        "image",
        "QImage",
        "edited",
        "changesApplied",
        "changesSaved",
        "brightness",
        "contrast",
        "saturation",
        "hue",
        "gamma",
        "sharpness",
        "threshold",
        "gaussianBlur",
        "area",
        "QRectF"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'pathChanged'
        QtMocHelpers::SignalData<void(const QUrl &)>(3, 4, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 5, 6 },
        }}),
        // Signal 'imageChanged'
        QtMocHelpers::SignalData<void()>(7, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'editedChanged'
        QtMocHelpers::SignalData<void()>(8, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'brightnessChanged'
        QtMocHelpers::SignalData<void()>(9, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'contrastChanged'
        QtMocHelpers::SignalData<void()>(10, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'saturationChanged'
        QtMocHelpers::SignalData<void()>(11, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'areaChanged'
        QtMocHelpers::SignalData<void()>(12, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'hueChanged'
        QtMocHelpers::SignalData<void()>(13, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'sharpnessChanged'
        QtMocHelpers::SignalData<void()>(14, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'gammaChanged'
        QtMocHelpers::SignalData<void()>(15, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'thresholdChanged'
        QtMocHelpers::SignalData<void()>(16, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'changesAppliedChanged'
        QtMocHelpers::SignalData<void()>(17, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'gaussianBlurChanged'
        QtMocHelpers::SignalData<void()>(18, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'changesSavedChanged'
        QtMocHelpers::SignalData<void()>(19, 4, QMC::AccessPublic, QMetaType::Void),
        // Method 'rotate'
        QtMocHelpers::MethodData<void(int)>(20, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 21 },
        }}),
        // Method 'mirror'
        QtMocHelpers::MethodData<void(bool, bool)>(22, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 23 }, { QMetaType::Bool, 24 },
        }}),
        // Method 'crop'
        QtMocHelpers::MethodData<void(int, int, int, int)>(25, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 26 }, { QMetaType::Int, 27 }, { QMetaType::Int, 28 }, { QMetaType::Int, 29 },
        }}),
        // Method 'resize'
        QtMocHelpers::MethodData<void(int, int)>(30, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 28 }, { QMetaType::Int, 29 },
        }}),
        // Method 'undo'
        QtMocHelpers::MethodData<void()>(31, 4, QMC::AccessPublic, QMetaType::Void),
        // Method 'cancel'
        QtMocHelpers::MethodData<void()>(32, 4, QMC::AccessPublic, QMetaType::Void),
        // Method 'save'
        QtMocHelpers::MethodData<bool()>(33, 4, QMC::AccessPublic, QMetaType::Bool),
        // Method 'saveAs'
        QtMocHelpers::MethodData<bool(const QUrl &)>(34, 4, QMC::AccessPublic, QMetaType::Bool, {{
            { 0x80000000 | 5, 35 },
        }}),
        // Method 'adjustBrightness'
        QtMocHelpers::MethodData<void(int)>(36, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 37 },
        }}),
        // Method 'adjustContrast'
        QtMocHelpers::MethodData<void(int)>(38, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 37 },
        }}),
        // Method 'adjustSaturation'
        QtMocHelpers::MethodData<void(int)>(39, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 37 },
        }}),
        // Method 'adjustHue'
        QtMocHelpers::MethodData<void(int)>(40, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 37 },
        }}),
        // Method 'adjustGamma'
        QtMocHelpers::MethodData<void(int)>(41, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 37 },
        }}),
        // Method 'adjustSharpness'
        QtMocHelpers::MethodData<void(int)>(42, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 37 },
        }}),
        // Method 'adjustThreshold'
        QtMocHelpers::MethodData<void(int)>(43, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 37 },
        }}),
        // Method 'adjustGaussianBlur'
        QtMocHelpers::MethodData<void(int)>(44, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 37 },
        }}),
        // Method 'toGray'
        QtMocHelpers::MethodData<void()>(45, 4, QMC::AccessPublic, QMetaType::Void),
        // Method 'toBW'
        QtMocHelpers::MethodData<void()>(46, 4, QMC::AccessPublic, QMetaType::Void),
        // Method 'toSketch'
        QtMocHelpers::MethodData<void()>(47, 4, QMC::AccessPublic, QMetaType::Void),
        // Method 'addVignette'
        QtMocHelpers::MethodData<void()>(48, 4, QMC::AccessPublic, QMetaType::Void),
        // Method 'addBorder'
        QtMocHelpers::MethodData<void(int, const QColor &)>(49, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 50 }, { 0x80000000 | 51, 52 },
        }}),
        // Method 'applyChanges'
        QtMocHelpers::MethodData<void()>(53, 4, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'path'
        QtMocHelpers::PropertyData<QUrl>(54, 0x80000000 | 5, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 0),
        // property 'image'
        QtMocHelpers::PropertyData<QImage>(55, 0x80000000 | 56, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 1),
        // property 'edited'
        QtMocHelpers::PropertyData<bool>(57, QMetaType::Bool, QMC::DefaultPropertyFlags, 2),
        // property 'changesApplied'
        QtMocHelpers::PropertyData<bool>(58, QMetaType::Bool, QMC::DefaultPropertyFlags, 11),
        // property 'changesSaved'
        QtMocHelpers::PropertyData<bool>(59, QMetaType::Bool, QMC::DefaultPropertyFlags, 13),
        // property 'brightness'
        QtMocHelpers::PropertyData<int>(60, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Final, 3),
        // property 'contrast'
        QtMocHelpers::PropertyData<int>(61, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Final, 4),
        // property 'saturation'
        QtMocHelpers::PropertyData<int>(62, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Final, 5),
        // property 'hue'
        QtMocHelpers::PropertyData<int>(63, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Final, 7),
        // property 'gamma'
        QtMocHelpers::PropertyData<int>(64, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Final, 9),
        // property 'sharpness'
        QtMocHelpers::PropertyData<int>(65, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Final, 8),
        // property 'threshold'
        QtMocHelpers::PropertyData<int>(66, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Final, 10),
        // property 'gaussianBlur'
        QtMocHelpers::PropertyData<int>(67, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Final, 12),
        // property 'area'
        QtMocHelpers::PropertyData<QRectF>(68, 0x80000000 | 69, QMC::DefaultPropertyFlags | QMC::Writable | QMC::Resettable | QMC::EnumOrFlag | QMC::StdCppSet, 6),
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
    });
    return QtMocHelpers::metaObjectData<ImageDocument, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject ImageDocument::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN13ImageDocumentE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN13ImageDocumentE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN13ImageDocumentE_t>.metaTypes,
    nullptr
} };

void ImageDocument::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<ImageDocument *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->pathChanged((*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[1]))); break;
        case 1: _t->imageChanged(); break;
        case 2: _t->editedChanged(); break;
        case 3: _t->brightnessChanged(); break;
        case 4: _t->contrastChanged(); break;
        case 5: _t->saturationChanged(); break;
        case 6: _t->areaChanged(); break;
        case 7: _t->hueChanged(); break;
        case 8: _t->sharpnessChanged(); break;
        case 9: _t->gammaChanged(); break;
        case 10: _t->thresholdChanged(); break;
        case 11: _t->changesAppliedChanged(); break;
        case 12: _t->gaussianBlurChanged(); break;
        case 13: _t->changesSavedChanged(); break;
        case 14: _t->rotate((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 15: _t->mirror((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2]))); break;
        case 16: _t->crop((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[4]))); break;
        case 17: _t->resize((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 18: _t->undo(); break;
        case 19: _t->cancel(); break;
        case 20: { bool _r = _t->save();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 21: { bool _r = _t->saveAs((*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 22: _t->adjustBrightness((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 23: _t->adjustContrast((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 24: _t->adjustSaturation((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 25: _t->adjustHue((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 26: _t->adjustGamma((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 27: _t->adjustSharpness((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 28: _t->adjustThreshold((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 29: _t->adjustGaussianBlur((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 30: _t->toGray(); break;
        case 31: _t->toBW(); break;
        case 32: _t->toSketch(); break;
        case 33: _t->addVignette(); break;
        case 34: _t->addBorder((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QColor>>(_a[2]))); break;
        case 35: _t->applyChanges(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (ImageDocument::*)(const QUrl & )>(_a, &ImageDocument::pathChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (ImageDocument::*)()>(_a, &ImageDocument::imageChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (ImageDocument::*)()>(_a, &ImageDocument::editedChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (ImageDocument::*)()>(_a, &ImageDocument::brightnessChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (ImageDocument::*)()>(_a, &ImageDocument::contrastChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (ImageDocument::*)()>(_a, &ImageDocument::saturationChanged, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (ImageDocument::*)()>(_a, &ImageDocument::areaChanged, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (ImageDocument::*)()>(_a, &ImageDocument::hueChanged, 7))
            return;
        if (QtMocHelpers::indexOfMethod<void (ImageDocument::*)()>(_a, &ImageDocument::sharpnessChanged, 8))
            return;
        if (QtMocHelpers::indexOfMethod<void (ImageDocument::*)()>(_a, &ImageDocument::gammaChanged, 9))
            return;
        if (QtMocHelpers::indexOfMethod<void (ImageDocument::*)()>(_a, &ImageDocument::thresholdChanged, 10))
            return;
        if (QtMocHelpers::indexOfMethod<void (ImageDocument::*)()>(_a, &ImageDocument::changesAppliedChanged, 11))
            return;
        if (QtMocHelpers::indexOfMethod<void (ImageDocument::*)()>(_a, &ImageDocument::gaussianBlurChanged, 12))
            return;
        if (QtMocHelpers::indexOfMethod<void (ImageDocument::*)()>(_a, &ImageDocument::changesSavedChanged, 13))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QUrl*>(_v) = _t->path(); break;
        case 1: *reinterpret_cast<QImage*>(_v) = _t->image(); break;
        case 2: *reinterpret_cast<bool*>(_v) = _t->edited(); break;
        case 3: *reinterpret_cast<bool*>(_v) = _t->changesApplied(); break;
        case 4: *reinterpret_cast<bool*>(_v) = _t->changesSaved(); break;
        case 5: *reinterpret_cast<int*>(_v) = _t->brightness(); break;
        case 6: *reinterpret_cast<int*>(_v) = _t->contrast(); break;
        case 7: *reinterpret_cast<int*>(_v) = _t->saturation(); break;
        case 8: *reinterpret_cast<int*>(_v) = _t->hue(); break;
        case 9: *reinterpret_cast<int*>(_v) = _t->gamma(); break;
        case 10: *reinterpret_cast<int*>(_v) = _t->sharpness(); break;
        case 11: *reinterpret_cast<int*>(_v) = _t->threshold(); break;
        case 12: *reinterpret_cast<int*>(_v) = _t->gaussianBlur(); break;
        case 13: *reinterpret_cast<QRectF*>(_v) = _t->area(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setPath(*reinterpret_cast<QUrl*>(_v)); break;
        case 13: _t->setArea(*reinterpret_cast<QRectF*>(_v)); break;
        default: break;
        }
    }
    if (_c == QMetaObject::ResetProperty) {
        switch (_id) {
        case 13: _t->resetArea(); break;
        default: break;
        }
    }
}

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

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

int ImageDocument::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 36)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 36;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 36)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 36;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 14;
    }
    return _id;
}

// SIGNAL 0
void ImageDocument::pathChanged(const QUrl & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void ImageDocument::imageChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void ImageDocument::editedChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void ImageDocument::brightnessChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void ImageDocument::contrastChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}

// SIGNAL 5
void ImageDocument::saturationChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}

// SIGNAL 6
void ImageDocument::areaChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
}

// SIGNAL 7
void ImageDocument::hueChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 7, nullptr);
}

// SIGNAL 8
void ImageDocument::sharpnessChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 8, nullptr);
}

// SIGNAL 9
void ImageDocument::gammaChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 9, nullptr);
}

// SIGNAL 10
void ImageDocument::thresholdChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 10, nullptr);
}

// SIGNAL 11
void ImageDocument::changesAppliedChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 11, nullptr);
}

// SIGNAL 12
void ImageDocument::gaussianBlurChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 12, nullptr);
}

// SIGNAL 13
void ImageDocument::changesSavedChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 13, nullptr);
}
QT_WARNING_POP
