/****************************************************************************
** Meta object code from reading C++ file 'PDFDocumentWindow.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 "../../../../texworks-release-0.6.11/src/PDFDocumentWindow.h"
#include <QtGui/qtextcursor.h>
#include <QtGui/qscreen.h>
#include <QtCore/qmetatype.h>
#include <QtCore/QWeakPointer>
#include <QtCore/QList>

#include <QtCore/qtmochelpers.h>

#include <memory>


#include <QtCore/qxptype_traits.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'PDFDocumentWindow.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_ZN17PDFDocumentWindowE_t {};
} // unnamed namespace

template <> constexpr inline auto PDFDocumentWindow::qt_create_metaobjectdata<qt_meta_tag_ZN17PDFDocumentWindowE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "PDFDocumentWindow",
        "reloaded",
        "",
        "activatedWindow",
        "QWidget*",
        "texActivated",
        "TeXDocumentWindow*",
        "texDoc",
        "texClosed",
        "obj",
        "reload",
        "retypeset",
        "interrupt",
        "sideBySide",
        "doFindDialog",
        "doFindAgain",
        "newSearch",
        "goToSource",
        "toggleFullScreen",
        "syncFromSource",
        "sourceFile",
        "lineNo",
        "col",
        "activatePreview",
        "print",
        "setMouseMode",
        "newMode",
        "setPageMode",
        "clearSyncHighlight",
        "clearSearchResultHighlight",
        "copySelectedTextToClipboard",
        "updateTypesettingAction",
        "changedDocument",
        "QWeakPointer<QtPDF::Backend::Document>",
        "newDoc",
        "updateRecentFileActions",
        "updateWindowMenu",
        "enablePageActions",
        "PDFDocumentWindow::size_type",
        "syncClick",
        "page",
        "QPointF",
        "pos",
        "syncRange",
        "pageIndex",
        "start",
        "end",
        "TWSynchronizer::Resolution",
        "resolution",
        "invalidateSyncHighlight",
        "scaleLabelClick",
        "QMouseEvent*",
        "event",
        "showScaleContextMenu",
        "QPoint",
        "setScaleFromContextMenu",
        "strZoom",
        "updateStatusBar",
        "updatePageMode",
        "QtPDF::PDFDocumentView::PageMode",
        "doPageDialog",
        "doScaleDialog",
        "jumpToSource",
        "searchResultHighlighted",
        "pageNum",
        "QList<QPolygonF>",
        "pdfRegion",
        "setDefaultScale",
        "maybeOpenUrl",
        "QUrl",
        "url",
        "maybeOpenPdf",
        "filename",
        "QtPDF::PDFDestination",
        "destination",
        "newWindow",
        "maybeZoomToWindow",
        "doZoom",
        "maybeEnableCopyCommand",
        "isTextSelected",
        "fileName"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'reloaded'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'activatedWindow'
        QtMocHelpers::SignalData<void(QWidget *)>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 4, 2 },
        }}),
        // Slot 'texActivated'
        QtMocHelpers::SlotData<void(TeXDocumentWindow *)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 6, 7 },
        }}),
        // Slot 'texClosed'
        QtMocHelpers::SlotData<void(QObject *)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QObjectStar, 9 },
        }}),
        // Slot 'reload'
        QtMocHelpers::SlotData<void()>(10, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'retypeset'
        QtMocHelpers::SlotData<void()>(11, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'interrupt'
        QtMocHelpers::SlotData<void()>(12, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'sideBySide'
        QtMocHelpers::SlotData<void()>(13, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'doFindDialog'
        QtMocHelpers::SlotData<void()>(14, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'doFindAgain'
        QtMocHelpers::SlotData<void(bool)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 16 },
        }}),
        // Slot 'doFindAgain'
        QtMocHelpers::SlotData<void()>(15, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void),
        // Slot 'goToSource'
        QtMocHelpers::SlotData<void()>(17, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'toggleFullScreen'
        QtMocHelpers::SlotData<void()>(18, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'syncFromSource'
        QtMocHelpers::SlotData<void(const QString &, int, int, bool)>(19, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 20 }, { QMetaType::Int, 21 }, { QMetaType::Int, 22 }, { QMetaType::Bool, 23 },
        }}),
        // Slot 'print'
        QtMocHelpers::SlotData<void()>(24, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'setMouseMode'
        QtMocHelpers::SlotData<void(const int)>(25, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 26 },
        }}),
        // Slot 'setPageMode'
        QtMocHelpers::SlotData<void(const int)>(27, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 26 },
        }}),
        // Slot 'clearSyncHighlight'
        QtMocHelpers::SlotData<void()>(28, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'clearSearchResultHighlight'
        QtMocHelpers::SlotData<void()>(29, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'copySelectedTextToClipboard'
        QtMocHelpers::SlotData<void()>(30, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'updateTypesettingAction'
        QtMocHelpers::SlotData<void()>(31, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'changedDocument'
        QtMocHelpers::SlotData<void(const QWeakPointer<QtPDF::Backend::Document> &)>(32, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 33, 34 },
        }}),
        // Slot 'updateRecentFileActions'
        QtMocHelpers::SlotData<void()>(35, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'updateWindowMenu'
        QtMocHelpers::SlotData<void()>(36, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'enablePageActions'
        QtMocHelpers::SlotData<void(PDFDocumentWindow::size_type)>(37, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 38, 2 },
        }}),
        // Slot 'syncClick'
        QtMocHelpers::SlotData<void(PDFDocumentWindow::size_type, const QPointF &)>(39, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 38, 40 }, { 0x80000000 | 41, 42 },
        }}),
        // Slot 'syncRange'
        QtMocHelpers::SlotData<void(const PDFDocumentWindow::size_type, const QPointF &, const QPointF &, const TWSynchronizer::Resolution)>(43, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 38, 44 }, { 0x80000000 | 41, 45 }, { 0x80000000 | 41, 46 }, { 0x80000000 | 47, 48 },
        }}),
        // Slot 'invalidateSyncHighlight'
        QtMocHelpers::SlotData<void()>(49, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'scaleLabelClick'
        QtMocHelpers::SlotData<void(QMouseEvent *)>(50, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 51, 52 },
        }}),
        // Slot 'showScaleContextMenu'
        QtMocHelpers::SlotData<void(const QPoint)>(53, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 54, 42 },
        }}),
        // Slot 'setScaleFromContextMenu'
        QtMocHelpers::SlotData<void(const QString &)>(55, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QString, 56 },
        }}),
        // Slot 'updateStatusBar'
        QtMocHelpers::SlotData<void()>(57, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'updatePageMode'
        QtMocHelpers::SlotData<void(const QtPDF::PDFDocumentView::PageMode)>(58, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 59, 26 },
        }}),
        // Slot 'doPageDialog'
        QtMocHelpers::SlotData<void()>(60, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'doScaleDialog'
        QtMocHelpers::SlotData<void()>(61, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'jumpToSource'
        QtMocHelpers::SlotData<void()>(62, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'searchResultHighlighted'
        QtMocHelpers::SlotData<void(const PDFDocumentWindow::size_type, const QList<QPolygonF> &)>(63, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 38, 64 }, { 0x80000000 | 65, 66 },
        }}),
        // Slot 'setDefaultScale'
        QtMocHelpers::SlotData<void()>(67, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'maybeOpenUrl'
        QtMocHelpers::SlotData<void(const QUrl &)>(68, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 69, 70 },
        }}),
        // Slot 'maybeOpenPdf'
        QtMocHelpers::SlotData<void(const QString &, const QtPDF::PDFDestination &, const bool)>(71, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QString, 72 }, { 0x80000000 | 73, 74 }, { QMetaType::Bool, 75 },
        }}),
        // Slot 'maybeZoomToWindow'
        QtMocHelpers::SlotData<void(bool)>(76, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Bool, 77 },
        }}),
        // Slot 'maybeEnableCopyCommand'
        QtMocHelpers::SlotData<void(const bool)>(78, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Bool, 79 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'fileName'
        QtMocHelpers::PropertyData<QString>(80, QMetaType::QString, QMC::DefaultPropertyFlags),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<PDFDocumentWindow, qt_meta_tag_ZN17PDFDocumentWindowE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject PDFDocumentWindow::staticMetaObject = { {
    QMetaObject::SuperData::link<TWScriptableWindow::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN17PDFDocumentWindowE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN17PDFDocumentWindowE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN17PDFDocumentWindowE_t>.metaTypes,
    nullptr
} };

void PDFDocumentWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<PDFDocumentWindow *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->reloaded(); break;
        case 1: _t->activatedWindow((*reinterpret_cast<std::add_pointer_t<QWidget*>>(_a[1]))); break;
        case 2: _t->texActivated((*reinterpret_cast<std::add_pointer_t<TeXDocumentWindow*>>(_a[1]))); break;
        case 3: _t->texClosed((*reinterpret_cast<std::add_pointer_t<QObject*>>(_a[1]))); break;
        case 4: _t->reload(); break;
        case 5: _t->retypeset(); break;
        case 6: _t->interrupt(); break;
        case 7: _t->sideBySide(); break;
        case 8: _t->doFindDialog(); break;
        case 9: _t->doFindAgain((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 10: _t->doFindAgain(); break;
        case 11: _t->goToSource(); break;
        case 12: _t->toggleFullScreen(); break;
        case 13: _t->syncFromSource((*reinterpret_cast<std::add_pointer_t<QString>>(_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<bool>>(_a[4]))); break;
        case 14: _t->print(); break;
        case 15: _t->setMouseMode((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 16: _t->setPageMode((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 17: _t->clearSyncHighlight(); break;
        case 18: _t->clearSearchResultHighlight(); break;
        case 19: _t->copySelectedTextToClipboard(); break;
        case 20: _t->updateTypesettingAction(); break;
        case 21: _t->changedDocument((*reinterpret_cast<std::add_pointer_t<QWeakPointer<QtPDF::Backend::Document>>>(_a[1]))); break;
        case 22: _t->updateRecentFileActions(); break;
        case 23: _t->updateWindowMenu(); break;
        case 24: _t->enablePageActions((*reinterpret_cast<std::add_pointer_t<PDFDocumentWindow::size_type>>(_a[1]))); break;
        case 25: _t->syncClick((*reinterpret_cast<std::add_pointer_t<PDFDocumentWindow::size_type>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QPointF>>(_a[2]))); break;
        case 26: _t->syncRange((*reinterpret_cast<std::add_pointer_t<PDFDocumentWindow::size_type>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QPointF>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QPointF>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<TWSynchronizer::Resolution>>(_a[4]))); break;
        case 27: _t->invalidateSyncHighlight(); break;
        case 28: _t->scaleLabelClick((*reinterpret_cast<std::add_pointer_t<QMouseEvent*>>(_a[1]))); break;
        case 29: _t->showScaleContextMenu((*reinterpret_cast<std::add_pointer_t<QPoint>>(_a[1]))); break;
        case 30: _t->setScaleFromContextMenu((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 31: _t->updateStatusBar(); break;
        case 32: _t->updatePageMode((*reinterpret_cast<std::add_pointer_t<QtPDF::PDFDocumentView::PageMode>>(_a[1]))); break;
        case 33: _t->doPageDialog(); break;
        case 34: _t->doScaleDialog(); break;
        case 35: _t->jumpToSource(); break;
        case 36: _t->searchResultHighlighted((*reinterpret_cast<std::add_pointer_t<PDFDocumentWindow::size_type>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QList<QPolygonF>>>(_a[2]))); break;
        case 37: _t->setDefaultScale(); break;
        case 38: _t->maybeOpenUrl((*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[1]))); break;
        case 39: _t->maybeOpenPdf((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QtPDF::PDFDestination>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[3]))); break;
        case 40: _t->maybeZoomToWindow((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 41: _t->maybeEnableCopyCommand((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 1:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QWidget* >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (PDFDocumentWindow::*)()>(_a, &PDFDocumentWindow::reloaded, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (PDFDocumentWindow::*)(QWidget * )>(_a, &PDFDocumentWindow::activatedWindow, 1))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QString*>(_v) = _t->fileName(); break;
        default: break;
        }
    }
}

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

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

int PDFDocumentWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = TWScriptableWindow::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 42)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 42;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 42)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 42;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 1;
    }
    return _id;
}

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

// SIGNAL 1
void PDFDocumentWindow::activatedWindow(QWidget * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}
QT_WARNING_POP
