/****************************************************************************
** Meta object code from reading C++ file 'kptdocumentseditor.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/libs/ui/kptdocumentseditor.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#include <QtCore/QList>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'kptdocumentseditor.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_KPlato__DocumentTreeView_t {
    QByteArrayData data[7];
    char stringdata0[104];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KPlato__DocumentTreeView_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KPlato__DocumentTreeView_t qt_meta_stringdata_KPlato__DocumentTreeView = {
    {
QT_MOC_LITERAL(0, 0, 24), // "KPlato::DocumentTreeView"
QT_MOC_LITERAL(1, 25, 16), // "selectionChanged"
QT_MOC_LITERAL(2, 42, 0), // ""
QT_MOC_LITERAL(3, 43, 15), // "QModelIndexList"
QT_MOC_LITERAL(4, 59, 20), // "slotSelectionChanged"
QT_MOC_LITERAL(5, 80, 14), // "QItemSelection"
QT_MOC_LITERAL(6, 95, 8) // "selected"

    },
    "KPlato::DocumentTreeView\0selectionChanged\0"
    "\0QModelIndexList\0slotSelectionChanged\0"
    "QItemSelection\0selected"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KPlato__DocumentTreeView[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    1,   24,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       4,    1,   27,    2, 0x09 /* Protected */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3,    2,

 // slots: parameters
    QMetaType::Void, 0x80000000 | 5,    6,

       0        // eod
};

void KPlato::DocumentTreeView::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        DocumentTreeView *_t = static_cast<DocumentTreeView *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->selectionChanged((*reinterpret_cast< const QModelIndexList(*)>(_a[1]))); break;
        case 1: _t->slotSelectionChanged((*reinterpret_cast< const QItemSelection(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 0:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QModelIndexList >(); break;
            }
            break;
        case 1:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QItemSelection >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (DocumentTreeView::*_t)(const QModelIndexList & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DocumentTreeView::selectionChanged)) {
                *result = 0;
                return;
            }
        }
    }
}

const QMetaObject KPlato::DocumentTreeView::staticMetaObject = {
    { &TreeViewBase::staticMetaObject, qt_meta_stringdata_KPlato__DocumentTreeView.data,
      qt_meta_data_KPlato__DocumentTreeView,  qt_static_metacall, nullptr, nullptr}
};


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

void *KPlato::DocumentTreeView::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_KPlato__DocumentTreeView.stringdata0))
        return static_cast<void*>(this);
    return TreeViewBase::qt_metacast(_clname);
}

int KPlato::DocumentTreeView::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = TreeViewBase::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 2)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 2;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 2)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 2;
    }
    return _id;
}

// SIGNAL 0
void KPlato::DocumentTreeView::selectionChanged(const QModelIndexList & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}
struct qt_meta_stringdata_KPlato__DocumentsEditor_t {
    QByteArrayData data[25];
    char stringdata0[360];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KPlato__DocumentsEditor_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KPlato__DocumentsEditor_t qt_meta_stringdata_KPlato__DocumentsEditor = {
    {
QT_MOC_LITERAL(0, 0, 23), // "KPlato::DocumentsEditor"
QT_MOC_LITERAL(1, 24, 11), // "addDocument"
QT_MOC_LITERAL(2, 36, 0), // ""
QT_MOC_LITERAL(3, 37, 18), // "deleteDocumentList"
QT_MOC_LITERAL(4, 56, 16), // "QList<Document*>"
QT_MOC_LITERAL(5, 73, 12), // "editDocument"
QT_MOC_LITERAL(6, 86, 9), // "Document*"
QT_MOC_LITERAL(7, 96, 3), // "doc"
QT_MOC_LITERAL(8, 100, 12), // "viewDocument"
QT_MOC_LITERAL(9, 113, 12), // "setGuiActive"
QT_MOC_LITERAL(10, 126, 8), // "activate"
QT_MOC_LITERAL(11, 135, 11), // "slotOptions"
QT_MOC_LITERAL(12, 147, 24), // "slotContextMenuRequested"
QT_MOC_LITERAL(13, 172, 5), // "index"
QT_MOC_LITERAL(14, 178, 3), // "pos"
QT_MOC_LITERAL(15, 182, 30), // "slotHeaderContextMenuRequested"
QT_MOC_LITERAL(16, 213, 20), // "slotSelectionChanged"
QT_MOC_LITERAL(17, 234, 15), // "QModelIndexList"
QT_MOC_LITERAL(18, 250, 18), // "slotCurrentChanged"
QT_MOC_LITERAL(19, 269, 17), // "slotEnableActions"
QT_MOC_LITERAL(20, 287, 2), // "on"
QT_MOC_LITERAL(21, 290, 16), // "slotEditDocument"
QT_MOC_LITERAL(22, 307, 16), // "slotViewDocument"
QT_MOC_LITERAL(23, 324, 15), // "slotAddDocument"
QT_MOC_LITERAL(24, 340, 19) // "slotDeleteSelection"

    },
    "KPlato::DocumentsEditor\0addDocument\0"
    "\0deleteDocumentList\0QList<Document*>\0"
    "editDocument\0Document*\0doc\0viewDocument\0"
    "setGuiActive\0activate\0slotOptions\0"
    "slotContextMenuRequested\0index\0pos\0"
    "slotHeaderContextMenuRequested\0"
    "slotSelectionChanged\0QModelIndexList\0"
    "slotCurrentChanged\0slotEnableActions\0"
    "on\0slotEditDocument\0slotViewDocument\0"
    "slotAddDocument\0slotDeleteSelection"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KPlato__DocumentsEditor[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    0,   89,    2, 0x06 /* Public */,
       3,    1,   90,    2, 0x06 /* Public */,
       5,    1,   93,    2, 0x06 /* Public */,
       8,    1,   96,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       9,    1,   99,    2, 0x0a /* Public */,
      11,    0,  102,    2, 0x09 /* Protected */,
      12,    2,  103,    2, 0x08 /* Private */,
      15,    1,  108,    2, 0x08 /* Private */,
      16,    1,  111,    2, 0x08 /* Private */,
      18,    1,  114,    2, 0x08 /* Private */,
      19,    1,  117,    2, 0x08 /* Private */,
      21,    0,  120,    2, 0x08 /* Private */,
      22,    0,  121,    2, 0x08 /* Private */,
      23,    0,  122,    2, 0x08 /* Private */,
      24,    0,  123,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 4,    2,
    QMetaType::Void, 0x80000000 | 6,    7,
    QMetaType::Void, 0x80000000 | 6,    7,

 // slots: parameters
    QMetaType::Void, QMetaType::Bool,   10,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QModelIndex, QMetaType::QPoint,   13,   14,
    QMetaType::Void, QMetaType::QPoint,   14,
    QMetaType::Void, 0x80000000 | 17,    2,
    QMetaType::Void, QMetaType::QModelIndex,    2,
    QMetaType::Void, QMetaType::Bool,   20,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,

       0        // eod
};

void KPlato::DocumentsEditor::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        DocumentsEditor *_t = static_cast<DocumentsEditor *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->addDocument(); break;
        case 1: _t->deleteDocumentList((*reinterpret_cast< const QList<Document*>(*)>(_a[1]))); break;
        case 2: _t->editDocument((*reinterpret_cast< Document*(*)>(_a[1]))); break;
        case 3: _t->viewDocument((*reinterpret_cast< Document*(*)>(_a[1]))); break;
        case 4: _t->setGuiActive((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 5: _t->slotOptions(); break;
        case 6: _t->slotContextMenuRequested((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< const QPoint(*)>(_a[2]))); break;
        case 7: _t->slotHeaderContextMenuRequested((*reinterpret_cast< const QPoint(*)>(_a[1]))); break;
        case 8: _t->slotSelectionChanged((*reinterpret_cast< const QModelIndexList(*)>(_a[1]))); break;
        case 9: _t->slotCurrentChanged((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break;
        case 10: _t->slotEnableActions((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 11: _t->slotEditDocument(); break;
        case 12: _t->slotViewDocument(); break;
        case 13: _t->slotAddDocument(); break;
        case 14: _t->slotDeleteSelection(); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 8:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QModelIndexList >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (DocumentsEditor::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DocumentsEditor::addDocument)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (DocumentsEditor::*_t)(const QList<Document*> & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DocumentsEditor::deleteDocumentList)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (DocumentsEditor::*_t)(Document * );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DocumentsEditor::editDocument)) {
                *result = 2;
                return;
            }
        }
        {
            typedef void (DocumentsEditor::*_t)(Document * );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DocumentsEditor::viewDocument)) {
                *result = 3;
                return;
            }
        }
    }
}

const QMetaObject KPlato::DocumentsEditor::staticMetaObject = {
    { &ViewBase::staticMetaObject, qt_meta_stringdata_KPlato__DocumentsEditor.data,
      qt_meta_data_KPlato__DocumentsEditor,  qt_static_metacall, nullptr, nullptr}
};


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

void *KPlato::DocumentsEditor::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_KPlato__DocumentsEditor.stringdata0))
        return static_cast<void*>(this);
    return ViewBase::qt_metacast(_clname);
}

int KPlato::DocumentsEditor::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = ViewBase::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 15)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 15;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 15)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 15;
    }
    return _id;
}

// SIGNAL 0
void KPlato::DocumentsEditor::addDocument()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void KPlato::DocumentsEditor::deleteDocumentList(const QList<Document*> & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

// SIGNAL 2
void KPlato::DocumentsEditor::editDocument(Document * _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}

// SIGNAL 3
void KPlato::DocumentsEditor::viewDocument(Document * _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
