00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #include "mapscene.h"
00011 #if !defined(Q_MOC_OUTPUT_REVISION)
00012 #error "The header file 'mapscene.h' doesn't include <QObject>."
00013 #elif Q_MOC_OUTPUT_REVISION != 59
00014 #error "This file was generated using the moc from 4.3.4. 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 static const uint qt_meta_data_MapScene[] = {
00020
00021
00022 1,
00023 0,
00024 0, 0,
00025 4, 10,
00026 0, 0,
00027 0, 0,
00028
00029
00030 10, 9, 9, 9, 0x05,
00031 43, 30, 9, 9, 0x05,
00032 71, 9, 9, 9, 0x05,
00033 91, 9, 9, 9, 0x05,
00034
00035 0
00036 };
00037
00038 static const char qt_meta_stringdata_MapScene[] = {
00039 "MapScene\0\0messagemap(QString)\0"
00040 "clickedPoint\0mapScenePressEvent(QPointF)\0"
00041 "changeRobot(QPoint)\0ungrabRobot()\0"
00042 };
00043
00044 const QMetaObject MapScene::staticMetaObject = {
00045 { &QGraphicsScene::staticMetaObject, qt_meta_stringdata_MapScene,
00046 qt_meta_data_MapScene, 0 }
00047 };
00048
00049 const QMetaObject *MapScene::metaObject() const
00050 {
00051 return &staticMetaObject;
00052 }
00053
00054 void *MapScene::qt_metacast(const char *_clname)
00055 {
00056 if (!_clname) return 0;
00057 if (!strcmp(_clname, qt_meta_stringdata_MapScene))
00058 return static_cast<void*>(const_cast< MapScene*>(this));
00059 return QGraphicsScene::qt_metacast(_clname);
00060 }
00061
00062 int MapScene::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
00063 {
00064 _id = QGraphicsScene::qt_metacall(_c, _id, _a);
00065 if (_id < 0)
00066 return _id;
00067 if (_c == QMetaObject::InvokeMetaMethod) {
00068 switch (_id) {
00069 case 0: messagemap((*reinterpret_cast< QString(*)>(_a[1]))); break;
00070 case 1: mapScenePressEvent((*reinterpret_cast< QPointF(*)>(_a[1]))); break;
00071 case 2: changeRobot((*reinterpret_cast< QPoint(*)>(_a[1]))); break;
00072 case 3: ungrabRobot(); break;
00073 }
00074 _id -= 4;
00075 }
00076 return _id;
00077 }
00078
00079
00080 void MapScene::messagemap(QString _t1)
00081 {
00082 void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
00083 QMetaObject::activate(this, &staticMetaObject, 0, _a);
00084 }
00085
00086
00087 void MapScene::mapScenePressEvent(QPointF _t1)
00088 {
00089 void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
00090 QMetaObject::activate(this, &staticMetaObject, 1, _a);
00091 }
00092
00093
00094 void MapScene::changeRobot(QPoint _t1)
00095 {
00096 void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
00097 QMetaObject::activate(this, &staticMetaObject, 2, _a);
00098 }
00099
00100
00101 void MapScene::ungrabRobot()
00102 {
00103 QMetaObject::activate(this, &staticMetaObject, 3, 0);
00104 }