00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #include "Interface/WidgetImage.hpp"
00011 #if !defined(Q_MOC_OUTPUT_REVISION)
00012 #error "The header file 'WidgetImage.hpp' doesn't include <QObject>."
00013 #elif Q_MOC_OUTPUT_REVISION != 61
00014 #error "This file was generated using the moc from 4.5.2. It"
00015 #error "cannot be used with the include files from this version of Qt."
00016 #error "(The moc has changed too much.)"
00017 #endif
00018
00019 QT_BEGIN_MOC_NAMESPACE
00020 static const uint qt_meta_data_WidgetImage[] = {
00021
00022
00023 2,
00024 0,
00025 0, 0,
00026 10, 12,
00027 0, 0,
00028 0, 0,
00029 0, 0,
00030
00031
00032 36, 13, 12, 12, 0x05,
00033 77, 13, 12, 12, 0x05,
00034 136, 123, 12, 12, 0x05,
00035 165, 123, 12, 12, 0x05,
00036
00037
00038 205, 199, 12, 12, 0x0a,
00039 236, 226, 12, 12, 0x0a,
00040 266, 12, 12, 12, 0x0a,
00041 285, 226, 12, 12, 0x0a,
00042 320, 12, 12, 12, 0x0a,
00043 353, 344, 12, 12, 0x0a,
00044
00045 0
00046 };
00047
00048 static const char qt_meta_stringdata_WidgetImage[] = {
00049 "WidgetImage\0\0start,end,params,table\0"
00050 "zoom(QPoint,QPoint,Params,QVector<QRgb>)\0"
00051 "zoom(QPoint,QPoint,ParamsCurve,QVector<QRgb>)\0"
00052 "params,table\0unzoom(Params,QVector<QRgb>)\0"
00053 "unzoom(ParamsCurve,QVector<QRgb>)\0"
00054 "value\0gammaChanged(double)\0start,end\0"
00055 "pushSignalZoom(QPoint,QPoint)\0"
00056 "pushSignalUnZoom()\0"
00057 "pushSignalZoomCurve(QPoint,QPoint)\0"
00058 "pushSignalUnZoomCurve()\0newTable\0"
00059 "setColourTable(QVector<QRgb>)\0"
00060 };
00061
00062 const QMetaObject WidgetImage::staticMetaObject = {
00063 { &QScrollArea::staticMetaObject, qt_meta_stringdata_WidgetImage,
00064 qt_meta_data_WidgetImage, 0 }
00065 };
00066
00067 const QMetaObject *WidgetImage::metaObject() const
00068 {
00069 return &staticMetaObject;
00070 }
00071
00072 void *WidgetImage::qt_metacast(const char *_clname)
00073 {
00074 if (!_clname) return 0;
00075 if (!strcmp(_clname, qt_meta_stringdata_WidgetImage))
00076 return static_cast<void*>(const_cast< WidgetImage*>(this));
00077 return QScrollArea::qt_metacast(_clname);
00078 }
00079
00080 int WidgetImage::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
00081 {
00082 _id = QScrollArea::qt_metacall(_c, _id, _a);
00083 if (_id < 0)
00084 return _id;
00085 if (_c == QMetaObject::InvokeMetaMethod) {
00086 switch (_id) {
00087 case 0: zoom((*reinterpret_cast< QPoint(*)>(_a[1])),(*reinterpret_cast< QPoint(*)>(_a[2])),(*reinterpret_cast< Params(*)>(_a[3])),(*reinterpret_cast< QVector<QRgb>(*)>(_a[4]))); break;
00088 case 1: zoom((*reinterpret_cast< QPoint(*)>(_a[1])),(*reinterpret_cast< QPoint(*)>(_a[2])),(*reinterpret_cast< ParamsCurve(*)>(_a[3])),(*reinterpret_cast< QVector<QRgb>(*)>(_a[4]))); break;
00089 case 2: unzoom((*reinterpret_cast< Params(*)>(_a[1])),(*reinterpret_cast< QVector<QRgb>(*)>(_a[2]))); break;
00090 case 3: unzoom((*reinterpret_cast< ParamsCurve(*)>(_a[1])),(*reinterpret_cast< QVector<QRgb>(*)>(_a[2]))); break;
00091 case 4: gammaChanged((*reinterpret_cast< double(*)>(_a[1]))); break;
00092 case 5: pushSignalZoom((*reinterpret_cast< QPoint(*)>(_a[1])),(*reinterpret_cast< QPoint(*)>(_a[2]))); break;
00093 case 6: pushSignalUnZoom(); break;
00094 case 7: pushSignalZoomCurve((*reinterpret_cast< QPoint(*)>(_a[1])),(*reinterpret_cast< QPoint(*)>(_a[2]))); break;
00095 case 8: pushSignalUnZoomCurve(); break;
00096 case 9: setColourTable((*reinterpret_cast< QVector<QRgb>(*)>(_a[1]))); break;
00097 default: ;
00098 }
00099 _id -= 10;
00100 }
00101 return _id;
00102 }
00103
00104
00105 void WidgetImage::zoom(QPoint _t1, QPoint _t2, Params _t3, QVector<QRgb> _t4)
00106 {
00107 void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)), const_cast<void*>(reinterpret_cast<const void*>(&_t4)) };
00108 QMetaObject::activate(this, &staticMetaObject, 0, _a);
00109 }
00110
00111
00112 void WidgetImage::zoom(QPoint _t1, QPoint _t2, ParamsCurve _t3, QVector<QRgb> _t4)
00113 {
00114 void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)), const_cast<void*>(reinterpret_cast<const void*>(&_t4)) };
00115 QMetaObject::activate(this, &staticMetaObject, 1, _a);
00116 }
00117
00118
00119 void WidgetImage::unzoom(Params _t1, QVector<QRgb> _t2)
00120 {
00121 void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
00122 QMetaObject::activate(this, &staticMetaObject, 2, _a);
00123 }
00124
00125
00126 void WidgetImage::unzoom(ParamsCurve _t1, QVector<QRgb> _t2)
00127 {
00128 void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
00129 QMetaObject::activate(this, &staticMetaObject, 3, _a);
00130 }
00131 QT_END_MOC_NAMESPACE