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

#include "../../src/focuswriter-1.6.5/src/document.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'document.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.6.2. 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
struct qt_meta_stringdata_Document_t {
    QByteArrayData data[44];
    char stringdata0[517];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Document_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Document_t qt_meta_stringdata_Document = {
    {
QT_MOC_LITERAL(0, 0, 8), // "Document"
QT_MOC_LITERAL(1, 9, 5), // "alert"
QT_MOC_LITERAL(2, 15, 0), // ""
QT_MOC_LITERAL(3, 16, 6), // "Alert*"
QT_MOC_LITERAL(4, 23, 16), // "replaceCacheFile"
QT_MOC_LITERAL(5, 40, 9), // "Document*"
QT_MOC_LITERAL(6, 50, 8), // "document"
QT_MOC_LITERAL(7, 59, 4), // "file"
QT_MOC_LITERAL(8, 64, 14), // "writeCacheFile"
QT_MOC_LITERAL(9, 79, 15), // "DocumentWriter*"
QT_MOC_LITERAL(10, 95, 6), // "writer"
QT_MOC_LITERAL(11, 102, 7), // "changed"
QT_MOC_LITERAL(12, 110, 11), // "changedName"
QT_MOC_LITERAL(13, 122, 11), // "loadStarted"
QT_MOC_LITERAL(14, 134, 4), // "path"
QT_MOC_LITERAL(15, 139, 12), // "loadFinished"
QT_MOC_LITERAL(16, 152, 13), // "footerVisible"
QT_MOC_LITERAL(17, 166, 7), // "visible"
QT_MOC_LITERAL(18, 174, 13), // "headerVisible"
QT_MOC_LITERAL(19, 188, 13), // "scenesVisible"
QT_MOC_LITERAL(20, 202, 13), // "indentChanged"
QT_MOC_LITERAL(21, 216, 8), // "indented"
QT_MOC_LITERAL(22, 225, 19), // "modificationChanged"
QT_MOC_LITERAL(23, 245, 8), // "modified"
QT_MOC_LITERAL(24, 254, 16), // "alignmentChanged"
QT_MOC_LITERAL(25, 271, 12), // "centerCursor"
QT_MOC_LITERAL(26, 284, 5), // "force"
QT_MOC_LITERAL(27, 290, 21), // "cursorPositionChanged"
QT_MOC_LITERAL(28, 312, 9), // "focusText"
QT_MOC_LITERAL(29, 322, 9), // "hideMouse"
QT_MOC_LITERAL(30, 332, 14), // "moveToBlockEnd"
QT_MOC_LITERAL(31, 347, 16), // "moveToBlockStart"
QT_MOC_LITERAL(32, 364, 24), // "scrollBarActionTriggered"
QT_MOC_LITERAL(33, 389, 6), // "action"
QT_MOC_LITERAL(34, 396, 21), // "scrollBarRangeChanged"
QT_MOC_LITERAL(35, 418, 3), // "min"
QT_MOC_LITERAL(36, 422, 3), // "max"
QT_MOC_LITERAL(37, 426, 17), // "dictionaryChanged"
QT_MOC_LITERAL(38, 444, 16), // "selectionChanged"
QT_MOC_LITERAL(39, 461, 16), // "undoCommandAdded"
QT_MOC_LITERAL(40, 478, 15), // "updateWordCount"
QT_MOC_LITERAL(41, 494, 8), // "position"
QT_MOC_LITERAL(42, 503, 7), // "removed"
QT_MOC_LITERAL(43, 511, 5) // "added"

    },
    "Document\0alert\0\0Alert*\0replaceCacheFile\0"
    "Document*\0document\0file\0writeCacheFile\0"
    "DocumentWriter*\0writer\0changed\0"
    "changedName\0loadStarted\0path\0loadFinished\0"
    "footerVisible\0visible\0headerVisible\0"
    "scenesVisible\0indentChanged\0indented\0"
    "modificationChanged\0modified\0"
    "alignmentChanged\0centerCursor\0force\0"
    "cursorPositionChanged\0focusText\0"
    "hideMouse\0moveToBlockEnd\0moveToBlockStart\0"
    "scrollBarActionTriggered\0action\0"
    "scrollBarRangeChanged\0min\0max\0"
    "dictionaryChanged\0selectionChanged\0"
    "undoCommandAdded\0updateWordCount\0"
    "position\0removed\0added"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Document[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    1,  144,    2, 0x06 /* Public */,
       4,    2,  147,    2, 0x06 /* Public */,
       8,    2,  152,    2, 0x06 /* Public */,
      11,    0,  157,    2, 0x06 /* Public */,
      12,    0,  158,    2, 0x06 /* Public */,
      13,    1,  159,    2, 0x06 /* Public */,
      15,    0,  162,    2, 0x06 /* Public */,
      16,    1,  163,    2, 0x06 /* Public */,
      18,    1,  166,    2, 0x06 /* Public */,
      19,    1,  169,    2, 0x06 /* Public */,
      20,    1,  172,    2, 0x06 /* Public */,
      22,    1,  175,    2, 0x06 /* Public */,
      24,    0,  178,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      25,    1,  179,    2, 0x0a /* Public */,
      25,    0,  182,    2, 0x2a /* Public | MethodCloned */,
      27,    0,  183,    2, 0x08 /* Private */,
      28,    0,  184,    2, 0x08 /* Private */,
      29,    0,  185,    2, 0x08 /* Private */,
      30,    0,  186,    2, 0x08 /* Private */,
      31,    0,  187,    2, 0x08 /* Private */,
      32,    1,  188,    2, 0x08 /* Private */,
      34,    2,  191,    2, 0x08 /* Private */,
      37,    0,  196,    2, 0x08 /* Private */,
      38,    0,  197,    2, 0x08 /* Private */,
      39,    0,  198,    2, 0x08 /* Private */,
      40,    3,  199,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3,    1,
    QMetaType::Void, 0x80000000 | 5, QMetaType::QString,    6,    7,
    QMetaType::Void, 0x80000000 | 5, 0x80000000 | 9,    6,   10,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString,   14,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Bool,   17,
    QMetaType::Void, QMetaType::Bool,   17,
    QMetaType::Void, QMetaType::Bool,   17,
    QMetaType::Void, QMetaType::Bool,   21,
    QMetaType::Void, QMetaType::Bool,   23,
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void, QMetaType::Bool,   26,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int,   33,
    QMetaType::Void, QMetaType::Int, QMetaType::Int,   35,   36,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int, QMetaType::Int, QMetaType::Int,   41,   42,   43,

       0        // eod
};

void Document::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        Document *_t = static_cast<Document *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->alert((*reinterpret_cast< Alert*(*)>(_a[1]))); break;
        case 1: _t->replaceCacheFile((*reinterpret_cast< Document*(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break;
        case 2: _t->writeCacheFile((*reinterpret_cast< Document*(*)>(_a[1])),(*reinterpret_cast< DocumentWriter*(*)>(_a[2]))); break;
        case 3: _t->changed(); break;
        case 4: _t->changedName(); break;
        case 5: _t->loadStarted((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 6: _t->loadFinished(); break;
        case 7: _t->footerVisible((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 8: _t->headerVisible((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 9: _t->scenesVisible((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 10: _t->indentChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 11: _t->modificationChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 12: _t->alignmentChanged(); break;
        case 13: _t->centerCursor((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 14: _t->centerCursor(); break;
        case 15: _t->cursorPositionChanged(); break;
        case 16: _t->focusText(); break;
        case 17: _t->hideMouse(); break;
        case 18: _t->moveToBlockEnd(); break;
        case 19: _t->moveToBlockStart(); break;
        case 20: _t->scrollBarActionTriggered((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 21: _t->scrollBarRangeChanged((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 22: _t->dictionaryChanged(); break;
        case 23: _t->selectionChanged(); break;
        case 24: _t->undoCommandAdded(); break;
        case 25: _t->updateWordCount((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; 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< Document* >(); break;
            }
            break;
        case 2:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Document* >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (Document::*_t)(Alert * );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Document::alert)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (Document::*_t)(Document * , const QString & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Document::replaceCacheFile)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (Document::*_t)(Document * , DocumentWriter * );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Document::writeCacheFile)) {
                *result = 2;
                return;
            }
        }
        {
            typedef void (Document::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Document::changed)) {
                *result = 3;
                return;
            }
        }
        {
            typedef void (Document::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Document::changedName)) {
                *result = 4;
                return;
            }
        }
        {
            typedef void (Document::*_t)(const QString & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Document::loadStarted)) {
                *result = 5;
                return;
            }
        }
        {
            typedef void (Document::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Document::loadFinished)) {
                *result = 6;
                return;
            }
        }
        {
            typedef void (Document::*_t)(bool );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Document::footerVisible)) {
                *result = 7;
                return;
            }
        }
        {
            typedef void (Document::*_t)(bool );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Document::headerVisible)) {
                *result = 8;
                return;
            }
        }
        {
            typedef void (Document::*_t)(bool );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Document::scenesVisible)) {
                *result = 9;
                return;
            }
        }
        {
            typedef void (Document::*_t)(bool );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Document::indentChanged)) {
                *result = 10;
                return;
            }
        }
        {
            typedef void (Document::*_t)(bool );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Document::modificationChanged)) {
                *result = 11;
                return;
            }
        }
        {
            typedef void (Document::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Document::alignmentChanged)) {
                *result = 12;
                return;
            }
        }
    }
}

const QMetaObject Document::staticMetaObject = {
    { &QWidget::staticMetaObject, qt_meta_stringdata_Document.data,
      qt_meta_data_Document,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

void *Document::qt_metacast(const char *_clname)
{
    if (!_clname) return Q_NULLPTR;
    if (!strcmp(_clname, qt_meta_stringdata_Document.stringdata0))
        return static_cast<void*>(const_cast< Document*>(this));
    return QWidget::qt_metacast(_clname);
}

int Document::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 < 26)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 26;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 26)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 26;
    }
    return _id;
}

// SIGNAL 0
void Document::alert(Alert * _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void Document::replaceCacheFile(Document * _t1, const QString & _t2)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

// SIGNAL 2
void Document::writeCacheFile(Document * _t1, DocumentWriter * _t2)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}

// SIGNAL 3
void Document::changed()
{
    QMetaObject::activate(this, &staticMetaObject, 3, Q_NULLPTR);
}

// SIGNAL 4
void Document::changedName()
{
    QMetaObject::activate(this, &staticMetaObject, 4, Q_NULLPTR);
}

// SIGNAL 5
void Document::loadStarted(const QString & _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 5, _a);
}

// SIGNAL 6
void Document::loadFinished()
{
    QMetaObject::activate(this, &staticMetaObject, 6, Q_NULLPTR);
}

// SIGNAL 7
void Document::footerVisible(bool _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 7, _a);
}

// SIGNAL 8
void Document::headerVisible(bool _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 8, _a);
}

// SIGNAL 9
void Document::scenesVisible(bool _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 9, _a);
}

// SIGNAL 10
void Document::indentChanged(bool _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 10, _a);
}

// SIGNAL 11
void Document::modificationChanged(bool _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 11, _a);
}

// SIGNAL 12
void Document::alignmentChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 12, Q_NULLPTR);
}
QT_END_MOC_NAMESPACE
