00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #include "Interface/PixmapWidget.hpp"
00011 #if !defined(Q_MOC_OUTPUT_REVISION)
00012 #error "The header file 'PixmapWidget.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_PixmapWidget[] = {
00021
00022
00023 2,
00024 0,
00025 0, 0,
00026 2, 12,
00027 0, 0,
00028 0, 0,
00029 0, 0,
00030
00031
00032 24, 14, 13, 13, 0x05,
00033 44, 13, 13, 13, 0x05,
00034
00035 0
00036 };
00037
00038 static const char qt_meta_stringdata_PixmapWidget[] = {
00039 "PixmapWidget\0\0start,end\0zoom(QPoint,QPoint)\0"
00040 "unzoom()\0"
00041 };
00042
00043 const QMetaObject PixmapWidget::staticMetaObject = {
00044 { &QWidget::staticMetaObject, qt_meta_stringdata_PixmapWidget,
00045 qt_meta_data_PixmapWidget, 0 }
00046 };
00047
00048 const QMetaObject *PixmapWidget::metaObject() const
00049 {
00050 return &staticMetaObject;
00051 }
00052
00053 void *PixmapWidget::qt_metacast(const char *_clname)
00054 {
00055 if (!_clname) return 0;
00056 if (!strcmp(_clname, qt_meta_stringdata_PixmapWidget))
00057 return static_cast<void*>(const_cast< PixmapWidget*>(this));
00058 return QWidget::qt_metacast(_clname);
00059 }
00060
00061 int PixmapWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
00062 {
00063 _id = QWidget::qt_metacall(_c, _id, _a);
00064 if (_id < 0)
00065 return _id;
00066 if (_c == QMetaObject::InvokeMetaMethod) {
00067 switch (_id) {
00068 case 0: zoom((*reinterpret_cast< QPoint(*)>(_a[1])),(*reinterpret_cast< QPoint(*)>(_a[2]))); break;
00069 case 1: unzoom(); break;
00070 default: ;
00071 }
00072 _id -= 2;
00073 }
00074 return _id;
00075 }
00076
00077
00078 void PixmapWidget::zoom(QPoint _t1, QPoint _t2)
00079 {
00080 void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
00081 QMetaObject::activate(this, &staticMetaObject, 0, _a);
00082 }
00083
00084
00085 void PixmapWidget::unzoom()
00086 {
00087 QMetaObject::activate(this, &staticMetaObject, 1, 0);
00088 }
00089 QT_END_MOC_NAMESPACE