00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #include "../include/wstatistics.h"
00011 #if !defined(Q_MOC_OUTPUT_REVISION)
00012 #error "The header file 'wstatistics.h' doesn't include <QObject>."
00013 #elif Q_MOC_OUTPUT_REVISION != 62
00014 #error "This file was generated using the moc from 4.7.0. 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_WStatistics[] = {
00021
00022
00023 5,
00024 0,
00025 0, 0,
00026 3, 14,
00027 0, 0,
00028 0, 0,
00029 0, 0,
00030 0,
00031 2,
00032
00033
00034 13, 12, 12, 12, 0x05,
00035 29, 12, 12, 12, 0x05,
00036
00037
00038 54, 45, 12, 12, 0x0a,
00039
00040 0
00041 };
00042
00043 static const char qt_meta_stringdata_WStatistics[] = {
00044 "WStatistics\0\0SaveSelection()\0"
00045 "ReadSelection()\0s,pImage\0"
00046 "UpdateStats(Selection*,Image*)\0"
00047 };
00048
00049 const QMetaObject WStatistics::staticMetaObject = {
00050 { &QWidget::staticMetaObject, qt_meta_stringdata_WStatistics,
00051 qt_meta_data_WStatistics, 0 }
00052 };
00053
00054 #ifdef Q_NO_DATA_RELOCATION
00055 const QMetaObject &WStatistics::getStaticMetaObject() { return staticMetaObject; }
00056 #endif //Q_NO_DATA_RELOCATION
00057
00058 const QMetaObject *WStatistics::metaObject() const
00059 {
00060 return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
00061 }
00062
00063 void *WStatistics::qt_metacast(const char *_clname)
00064 {
00065 if (!_clname) return 0;
00066 if (!strcmp(_clname, qt_meta_stringdata_WStatistics))
00067 return static_cast<void*>(const_cast< WStatistics*>(this));
00068 return QWidget::qt_metacast(_clname);
00069 }
00070
00071 int WStatistics::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
00072 {
00073 _id = QWidget::qt_metacall(_c, _id, _a);
00074 if (_id < 0)
00075 return _id;
00076 if (_c == QMetaObject::InvokeMetaMethod) {
00077 switch (_id) {
00078 case 0: SaveSelection(); break;
00079 case 1: ReadSelection(); break;
00080 case 2: UpdateStats((*reinterpret_cast< Selection*(*)>(_a[1])),(*reinterpret_cast< Image*(*)>(_a[2]))); break;
00081 default: ;
00082 }
00083 _id -= 3;
00084 }
00085 return _id;
00086 }
00087
00088
00089 void WStatistics::SaveSelection()
00090 {
00091 QMetaObject::activate(this, &staticMetaObject, 0, 0);
00092 }
00093
00094
00095 void WStatistics::ReadSelection()
00096 {
00097 QMetaObject::activate(this, &staticMetaObject, 1, 0);
00098 }
00099 QT_END_MOC_NAMESPACE