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

#include "../../src/analitza-17.08.3/declarative/graph2dmobile.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#include <QtCore/QSharedPointer>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'graph2dmobile.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.9.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
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_Graph2DMobile_t {
    QByteArrayData data[31];
    char stringdata0[315];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Graph2DMobile_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Graph2DMobile_t qt_meta_stringdata_Graph2DMobile = {
    {
QT_MOC_LITERAL(0, 0, 13), // "Graph2DMobile"
QT_MOC_LITERAL(1, 14, 15), // "showGridChanged"
QT_MOC_LITERAL(2, 30, 0), // ""
QT_MOC_LITERAL(3, 31, 9), // "translate"
QT_MOC_LITERAL(4, 41, 1), // "x"
QT_MOC_LITERAL(5, 43, 1), // "y"
QT_MOC_LITERAL(6, 45, 5), // "scale"
QT_MOC_LITERAL(7, 51, 1), // "s"
QT_MOC_LITERAL(8, 53, 13), // "resetViewport"
QT_MOC_LITERAL(9, 67, 11), // "addFunction"
QT_MOC_LITERAL(10, 79, 10), // "expression"
QT_MOC_LITERAL(11, 90, 35), // "QSharedPointer<Analitza::Vari..."
QT_MOC_LITERAL(12, 126, 4), // "vars"
QT_MOC_LITERAL(13, 131, 4), // "save"
QT_MOC_LITERAL(14, 136, 3), // "url"
QT_MOC_LITERAL(15, 140, 11), // "updateFuncs"
QT_MOC_LITERAL(16, 152, 5), // "start"
QT_MOC_LITERAL(17, 158, 3), // "end"
QT_MOC_LITERAL(18, 162, 8), // "addFuncs"
QT_MOC_LITERAL(19, 171, 6), // "parent"
QT_MOC_LITERAL(20, 178, 11), // "removeFuncs"
QT_MOC_LITERAL(21, 190, 5), // "model"
QT_MOC_LITERAL(22, 196, 19), // "QAbstractItemModel*"
QT_MOC_LITERAL(23, 216, 8), // "viewport"
QT_MOC_LITERAL(24, 225, 8), // "showGrid"
QT_MOC_LITERAL(25, 234, 13), // "showMinorGrid"
QT_MOC_LITERAL(26, 248, 15), // "keepAspectRatio"
QT_MOC_LITERAL(27, 264, 15), // "currentFunction"
QT_MOC_LITERAL(28, 280, 10), // "ticksShown"
QT_MOC_LITERAL(29, 291, 15), // "minorTicksShown"
QT_MOC_LITERAL(30, 307, 7) // "filters"

    },
    "Graph2DMobile\0showGridChanged\0\0translate\0"
    "x\0y\0scale\0s\0resetViewport\0addFunction\0"
    "expression\0QSharedPointer<Analitza::Variables>\0"
    "vars\0save\0url\0updateFuncs\0start\0end\0"
    "addFuncs\0parent\0removeFuncs\0model\0"
    "QAbstractItemModel*\0viewport\0showGrid\0"
    "showMinorGrid\0keepAspectRatio\0"
    "currentFunction\0ticksShown\0minorTicksShown\0"
    "filters"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Graph2DMobile[] = {

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

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

 // slots: name, argc, parameters, tag, flags
       3,    2,   65,    2, 0x0a /* Public */,
       6,    3,   70,    2, 0x0a /* Public */,
       8,    0,   77,    2, 0x0a /* Public */,
       9,    2,   78,    2, 0x0a /* Public */,
       9,    1,   83,    2, 0x2a /* Public | MethodCloned */,
      13,    1,   86,    2, 0x0a /* Public */,
      15,    2,   89,    2, 0x08 /* Private */,
      18,    3,   94,    2, 0x08 /* Private */,
      20,    3,  101,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void, QMetaType::QReal, QMetaType::QReal,    4,    5,
    QMetaType::Void, QMetaType::QReal, QMetaType::Int, QMetaType::Int,    7,    4,    5,
    QMetaType::Void,
    QMetaType::QStringList, QMetaType::QString, 0x80000000 | 11,   10,   12,
    QMetaType::QStringList, QMetaType::QString,   10,
    QMetaType::Bool, QMetaType::QUrl,   14,
    QMetaType::Void, QMetaType::QModelIndex, QMetaType::QModelIndex,   16,   17,
    QMetaType::Void, QMetaType::QModelIndex, QMetaType::Int, QMetaType::Int,   19,   16,   17,
    QMetaType::Void, QMetaType::QModelIndex, QMetaType::Int, QMetaType::Int,   19,   16,   17,

 // properties: name, type, flags
      21, 0x80000000 | 22, 0x0009510b,
      23, QMetaType::QRectF, 0x00095107,
      24, QMetaType::Bool, 0x00495103,
      25, QMetaType::Bool, 0x00095103,
      26, QMetaType::Bool, 0x00095103,
      27, QMetaType::Bool, 0x00095103,
      28, QMetaType::Bool, 0x00095003,
      29, QMetaType::Bool, 0x00095003,
      30, QMetaType::QStringList, 0x00095401,

 // properties: notify_signal_id
       0,
       0,
       0,
       0,
       0,
       0,
       0,
       0,
       0,

       0        // eod
};

void Graph2DMobile::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        Graph2DMobile *_t = static_cast<Graph2DMobile *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->showGridChanged(); break;
        case 1: _t->translate((*reinterpret_cast< qreal(*)>(_a[1])),(*reinterpret_cast< qreal(*)>(_a[2]))); break;
        case 2: _t->scale((*reinterpret_cast< qreal(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
        case 3: _t->resetViewport(); break;
        case 4: { QStringList _r = _t->addFunction((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QSharedPointer<Analitza::Variables>(*)>(_a[2])));
            if (_a[0]) *reinterpret_cast< QStringList*>(_a[0]) = std::move(_r); }  break;
        case 5: { QStringList _r = _t->addFunction((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QStringList*>(_a[0]) = std::move(_r); }  break;
        case 6: { bool _r = _t->save((*reinterpret_cast< const QUrl(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 7: _t->updateFuncs((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< const QModelIndex(*)>(_a[2]))); break;
        case 8: _t->addFuncs((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
        case 9: _t->removeFuncs((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (Graph2DMobile::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Graph2DMobile::showGridChanged)) {
                *result = 0;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        Graph2DMobile *_t = static_cast<Graph2DMobile *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QAbstractItemModel**>(_v) = _t->model(); break;
        case 1: *reinterpret_cast< QRectF*>(_v) = _t->lastViewport(); break;
        case 2: *reinterpret_cast< bool*>(_v) = _t->showGrid(); break;
        case 3: *reinterpret_cast< bool*>(_v) = _t->showMinorGrid(); break;
        case 4: *reinterpret_cast< bool*>(_v) = _t->keepAspectRatio(); break;
        case 5: *reinterpret_cast< bool*>(_v) = _t->currentFunction(); break;
        case 6: *reinterpret_cast< bool*>(_v) = _t->ticksShownAtAll(); break;
        case 7: *reinterpret_cast< bool*>(_v) = _t->minorTicksShown(); break;
        case 8: *reinterpret_cast< QStringList*>(_v) = _t->filters(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        Graph2DMobile *_t = static_cast<Graph2DMobile *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setModel(*reinterpret_cast< QAbstractItemModel**>(_v)); break;
        case 1: _t->setViewport(*reinterpret_cast< QRectF*>(_v)); break;
        case 2: _t->setShowGrid(*reinterpret_cast< bool*>(_v)); break;
        case 3: _t->setShowMinorGrid(*reinterpret_cast< bool*>(_v)); break;
        case 4: _t->setKeepAspectRatio(*reinterpret_cast< bool*>(_v)); break;
        case 5: _t->setCurrentFunction(*reinterpret_cast< bool*>(_v)); break;
        case 6: _t->setTicksShownAtAll(*reinterpret_cast< bool*>(_v)); break;
        case 7: _t->setShowMinorTicks(*reinterpret_cast< bool*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
        Graph2DMobile *_t = static_cast<Graph2DMobile *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 1: _t->resetViewport(); break;
        default: break;
        }
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject Graph2DMobile::staticMetaObject = {
    { &QQuickItem::staticMetaObject, qt_meta_stringdata_Graph2DMobile.data,
      qt_meta_data_Graph2DMobile,  qt_static_metacall, nullptr, nullptr}
};


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

void *Graph2DMobile::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_Graph2DMobile.stringdata0))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "Analitza::Plotter2D"))
        return static_cast< Analitza::Plotter2D*>(this);
    return QQuickItem::qt_metacast(_clname);
}

int Graph2DMobile::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QQuickItem::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 10)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 10;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 10)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 10;
    }
#ifndef QT_NO_PROPERTIES
   else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 9;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 9;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 9;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 9;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 9;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 9;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

// SIGNAL 0
void Graph2DMobile::showGridChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
