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

#include "../../../src/avogadro-1.2.0/libavogadro/src/plotwidget.h"
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'plotwidget.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 63
#error "This file was generated using the moc from 4.8.7. 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
static const uint qt_meta_data_Avogadro__PlotWidget[] = {

 // content:
       6,       // revision
       0,       // classname
       0,    0, // classinfo
      16,   14, // methods
       9,   94, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       4,       // signalCount

 // signals: signature, parameters, type, tag, flags
      26,   22,   21,   21, 0x05,
      57,   54,   21,   21, 0x05,
      89,   21,   21,   21, 0x05,
     114,   22,   21,   21, 0x05,

 // slots: signature, parameters, type, tag, flags
     149,  144,   21,   21, 0x0a,
     167,  144,   21,   21, 0x0a,
     243,  200,  195,   21, 0x0a,
     294,  288,   21,   21, 0x0a,
     325,  318,   21,   21, 0x0a,
     357,  288,   21,   21, 0x0a,
     389,  318,   21,   21, 0x0a,
     429,   21,   21,   21, 0x0a,
     448,  446,   21,   21, 0x0a,
     474,  446,   21,   21, 0x0a,
     513,  500,   21,   21, 0x0a,
     557,  553,   21,   21, 0x2a,

 // properties: name, type, flags
     595,  591, 0x02095001,
     607,  591, 0x02095001,
     620,  591, 0x02095001,
     631,  591, 0x02095001,
     652,  645, 0x43095103,
     668,  645, 0x43095103,
     684,  645, 0x43095103,
     694,  195, 0x01095003,
     699,  195, 0x01095003,

       0        // eod
};

static const char qt_meta_stringdata_Avogadro__PlotWidget[] = {
    "Avogadro::PlotWidget\0\0x,y\0"
    "pointClicked(double,double)\0pl\0"
    "pointClicked(QList<PlotPoint*>)\0"
    "pointClicked(PlotPoint*)\0"
    "mouseOverPoint(double,double)\0show\0"
    "setShowGrid(bool)\0setObjectToolTipShown(bool)\0"
    "bool\0filename,width,height,dpi,optimizeFontSize\0"
    "saveImage(QString,double,double,double,bool)\0"
    "point\0selectPoint(PlotPoint*)\0points\0"
    "selectPoints(QList<PlotPoint*>)\0"
    "clearAndSelectPoint(PlotPoint*)\0"
    "clearAndSelectPoints(QList<PlotPoint*>)\0"
    "clearSelection()\0b\0setPointFollowMouse(bool)\0"
    "setJailedInDefaults(bool)\0dir,priority\0"
    "setLabelShiftDirection(Direction,float)\0"
    "dir\0setLabelShiftDirection(Direction)\0"
    "int\0leftPadding\0rightPadding\0topPadding\0"
    "bottomPadding\0QColor\0backgroundColor\0"
    "foregroundColor\0gridColor\0grid\0"
    "objectToolTip\0"
};

void Avogadro::PlotWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        Q_ASSERT(staticMetaObject.cast(_o));
        PlotWidget *_t = static_cast<PlotWidget *>(_o);
        switch (_id) {
        case 0: _t->pointClicked((*reinterpret_cast< double(*)>(_a[1])),(*reinterpret_cast< double(*)>(_a[2]))); break;
        case 1: _t->pointClicked((*reinterpret_cast< const QList<PlotPoint*>(*)>(_a[1]))); break;
        case 2: _t->pointClicked((*reinterpret_cast< PlotPoint*(*)>(_a[1]))); break;
        case 3: _t->mouseOverPoint((*reinterpret_cast< double(*)>(_a[1])),(*reinterpret_cast< double(*)>(_a[2]))); break;
        case 4: _t->setShowGrid((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 5: _t->setObjectToolTipShown((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 6: { bool _r = _t->saveImage((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< double(*)>(_a[2])),(*reinterpret_cast< double(*)>(_a[3])),(*reinterpret_cast< double(*)>(_a[4])),(*reinterpret_cast< bool(*)>(_a[5])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; }  break;
        case 7: _t->selectPoint((*reinterpret_cast< PlotPoint*(*)>(_a[1]))); break;
        case 8: _t->selectPoints((*reinterpret_cast< const QList<PlotPoint*>(*)>(_a[1]))); break;
        case 9: _t->clearAndSelectPoint((*reinterpret_cast< PlotPoint*(*)>(_a[1]))); break;
        case 10: _t->clearAndSelectPoints((*reinterpret_cast< const QList<PlotPoint*>(*)>(_a[1]))); break;
        case 11: _t->clearSelection(); break;
        case 12: _t->setPointFollowMouse((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 13: _t->setJailedInDefaults((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 14: _t->setLabelShiftDirection((*reinterpret_cast< Direction(*)>(_a[1])),(*reinterpret_cast< float(*)>(_a[2]))); break;
        case 15: _t->setLabelShiftDirection((*reinterpret_cast< Direction(*)>(_a[1]))); break;
        default: ;
        }
    }
}

const QMetaObjectExtraData Avogadro::PlotWidget::staticMetaObjectExtraData = {
    0,  qt_static_metacall 
};

const QMetaObject Avogadro::PlotWidget::staticMetaObject = {
    { &QFrame::staticMetaObject, qt_meta_stringdata_Avogadro__PlotWidget,
      qt_meta_data_Avogadro__PlotWidget, &staticMetaObjectExtraData }
};

#ifdef Q_NO_DATA_RELOCATION
const QMetaObject &Avogadro::PlotWidget::getStaticMetaObject() { return staticMetaObject; }
#endif //Q_NO_DATA_RELOCATION

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

void *Avogadro::PlotWidget::qt_metacast(const char *_clname)
{
    if (!_clname) return 0;
    if (!strcmp(_clname, qt_meta_stringdata_Avogadro__PlotWidget))
        return static_cast<void*>(const_cast< PlotWidget*>(this));
    return QFrame::qt_metacast(_clname);
}

int Avogadro::PlotWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QFrame::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 16)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 16;
    }
#ifndef QT_NO_PROPERTIES
      else if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< int*>(_v) = leftPadding(); break;
        case 1: *reinterpret_cast< int*>(_v) = rightPadding(); break;
        case 2: *reinterpret_cast< int*>(_v) = topPadding(); break;
        case 3: *reinterpret_cast< int*>(_v) = bottomPadding(); break;
        case 4: *reinterpret_cast< QColor*>(_v) = backgroundColor(); break;
        case 5: *reinterpret_cast< QColor*>(_v) = foregroundColor(); break;
        case 6: *reinterpret_cast< QColor*>(_v) = gridColor(); break;
        case 7: *reinterpret_cast< bool*>(_v) = isGridShown(); break;
        case 8: *reinterpret_cast< bool*>(_v) = isObjectToolTipShown(); break;
        }
        _id -= 9;
    } else if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 4: setBackgroundColor(*reinterpret_cast< QColor*>(_v)); break;
        case 5: setForegroundColor(*reinterpret_cast< QColor*>(_v)); break;
        case 6: setGridColor(*reinterpret_cast< QColor*>(_v)); break;
        case 7: setShowGrid(*reinterpret_cast< bool*>(_v)); break;
        case 8: setObjectToolTipShown(*reinterpret_cast< bool*>(_v)); break;
        }
        _id -= 9;
    } else if (_c == QMetaObject::ResetProperty) {
        _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 Avogadro::PlotWidget::pointClicked(double _t1, double _t2)
{
    void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void Avogadro::PlotWidget::pointClicked(const QList<PlotPoint*> & _t1)
{
    void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

// SIGNAL 2
void Avogadro::PlotWidget::pointClicked(PlotPoint * _t1)
{
    void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}

// SIGNAL 3
void Avogadro::PlotWidget::mouseOverPoint(double _t1, double _t2)
{
    void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}
QT_END_MOC_NAMESPACE
