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

#include "../../../src/calligraplan-3.1.0/src/workpackage/mainwindow.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'mainwindow.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.9.4. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_KPlatoWork_MainWindow_t {
    QByteArrayData data[11];
    char stringdata0[109];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KPlatoWork_MainWindow_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KPlatoWork_MainWindow_t qt_meta_stringdata_KPlatoWork_MainWindow = {
    {
QT_MOC_LITERAL(0, 0, 21), // "KPlatoWork_MainWindow"
QT_MOC_LITERAL(1, 22, 4), // "undo"
QT_MOC_LITERAL(2, 27, 0), // ""
QT_MOC_LITERAL(3, 28, 4), // "redo"
QT_MOC_LITERAL(4, 33, 13), // "slotFileClose"
QT_MOC_LITERAL(5, 47, 10), // "setCaption"
QT_MOC_LITERAL(6, 58, 4), // "text"
QT_MOC_LITERAL(7, 63, 8), // "modified"
QT_MOC_LITERAL(8, 72, 10), // "queryClose"
QT_MOC_LITERAL(9, 83, 12), // "slotFileOpen"
QT_MOC_LITERAL(10, 96, 12) // "slotFileSave"

    },
    "KPlatoWork_MainWindow\0undo\0\0redo\0"
    "slotFileClose\0setCaption\0text\0modified\0"
    "queryClose\0slotFileOpen\0slotFileSave"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KPlatoWork_MainWindow[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
       8,   14, // methods
       0,    0, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       2,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    0,   54,    2, 0x06 /* Public */,
       3,    0,   55,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       4,    0,   56,    2, 0x0a /* Public */,
       5,    1,   57,    2, 0x0a /* Public */,
       5,    2,   60,    2, 0x0a /* Public */,
       8,    0,   65,    2, 0x09 /* Protected */,
       9,    0,   66,    2, 0x09 /* Protected */,
      10,    0,   67,    2, 0x09 /* Protected */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString,    6,
    QMetaType::Void, QMetaType::QString, QMetaType::Bool,    6,    7,
    QMetaType::Bool,
    QMetaType::Void,
    QMetaType::Void,

       0        // eod
};

void KPlatoWork_MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        KPlatoWork_MainWindow *_t = static_cast<KPlatoWork_MainWindow *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->undo(); break;
        case 1: _t->redo(); break;
        case 2: _t->slotFileClose(); break;
        case 3: _t->setCaption((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 4: _t->setCaption((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
        case 5: { bool _r = _t->queryClose();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 6: _t->slotFileOpen(); break;
        case 7: _t->slotFileSave(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (KPlatoWork_MainWindow::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&KPlatoWork_MainWindow::undo)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (KPlatoWork_MainWindow::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&KPlatoWork_MainWindow::redo)) {
                *result = 1;
                return;
            }
        }
    }
}

const QMetaObject KPlatoWork_MainWindow::staticMetaObject = {
    { &KParts::MainWindow::staticMetaObject, qt_meta_stringdata_KPlatoWork_MainWindow.data,
      qt_meta_data_KPlatoWork_MainWindow,  qt_static_metacall, nullptr, nullptr}
};


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

void *KPlatoWork_MainWindow::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_KPlatoWork_MainWindow.stringdata0))
        return static_cast<void*>(this);
    return KParts::MainWindow::qt_metacast(_clname);
}

int KPlatoWork_MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = KParts::MainWindow::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 8)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 8;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 8)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 8;
    }
    return _id;
}

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

// SIGNAL 1
void KPlatoWork_MainWindow::redo()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
