You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

270 lines
11 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /****************************************************************************
  2. ** Meta object code from reading C++ file 'mapcontrol.h'
  3. **
  4. ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.5.1)
  5. **
  6. ** WARNING! All changes made in this file will be lost!
  7. *****************************************************************************/
  8. #include "mapcontrol.h"
  9. #include <QtCore/qbytearray.h>
  10. #include <QtCore/qmetatype.h>
  11. #if !defined(Q_MOC_OUTPUT_REVISION)
  12. #error "The header file 'mapcontrol.h' doesn't include <QObject>."
  13. #elif Q_MOC_OUTPUT_REVISION != 67
  14. #error "This file was generated using the moc from 5.5.1. It"
  15. #error "cannot be used with the include files from this version of Qt."
  16. #error "(The moc has changed too much.)"
  17. #endif
  18. QT_BEGIN_MOC_NAMESPACE
  19. struct qt_meta_stringdata_MapControl_t {
  20. QByteArrayData data[32];
  21. char stringdata0[322];
  22. };
  23. #define QT_MOC_LITERAL(idx, ofs, len) \
  24. Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
  25. qptrdiff(offsetof(qt_meta_stringdata_MapControl_t, stringdata0) + ofs \
  26. - idx * sizeof(QByteArrayData)) \
  27. )
  28. static const qt_meta_stringdata_MapControl_t qt_meta_stringdata_MapControl = {
  29. {
  30. QT_MOC_LITERAL(0, 0, 10), // "MapControl"
  31. QT_MOC_LITERAL(1, 11, 20), // "mouseEventCoordinate"
  32. QT_MOC_LITERAL(2, 32, 0), // ""
  33. QT_MOC_LITERAL(3, 33, 18), // "const QMouseEvent*"
  34. QT_MOC_LITERAL(4, 52, 4), // "evnt"
  35. QT_MOC_LITERAL(5, 57, 10), // "coordinate"
  36. QT_MOC_LITERAL(6, 68, 10), // "boxDragged"
  37. QT_MOC_LITERAL(7, 79, 15), // "geometryClicked"
  38. QT_MOC_LITERAL(8, 95, 9), // "Geometry*"
  39. QT_MOC_LITERAL(9, 105, 8), // "geometry"
  40. QT_MOC_LITERAL(10, 114, 8), // "coord_px"
  41. QT_MOC_LITERAL(11, 123, 11), // "viewChanged"
  42. QT_MOC_LITERAL(12, 135, 4), // "zoom"
  43. QT_MOC_LITERAL(13, 140, 6), // "zoomIn"
  44. QT_MOC_LITERAL(14, 147, 7), // "zoomOut"
  45. QT_MOC_LITERAL(15, 155, 7), // "setZoom"
  46. QT_MOC_LITERAL(16, 163, 9), // "zoomlevel"
  47. QT_MOC_LITERAL(17, 173, 10), // "scrollLeft"
  48. QT_MOC_LITERAL(18, 184, 5), // "pixel"
  49. QT_MOC_LITERAL(19, 190, 11), // "scrollRight"
  50. QT_MOC_LITERAL(20, 202, 8), // "scrollUp"
  51. QT_MOC_LITERAL(21, 211, 10), // "scrollDown"
  52. QT_MOC_LITERAL(22, 222, 6), // "scroll"
  53. QT_MOC_LITERAL(23, 229, 13), // "updateRequest"
  54. QT_MOC_LITERAL(24, 243, 4), // "rect"
  55. QT_MOC_LITERAL(25, 248, 16), // "updateRequestNew"
  56. QT_MOC_LITERAL(26, 265, 6), // "resize"
  57. QT_MOC_LITERAL(27, 272, 7), // "newSize"
  58. QT_MOC_LITERAL(28, 280, 4), // "tick"
  59. QT_MOC_LITERAL(29, 285, 15), // "loadingFinished"
  60. QT_MOC_LITERAL(30, 301, 15), // "positionChanged"
  61. QT_MOC_LITERAL(31, 317, 4) // "geom"
  62. },
  63. "MapControl\0mouseEventCoordinate\0\0"
  64. "const QMouseEvent*\0evnt\0coordinate\0"
  65. "boxDragged\0geometryClicked\0Geometry*\0"
  66. "geometry\0coord_px\0viewChanged\0zoom\0"
  67. "zoomIn\0zoomOut\0setZoom\0zoomlevel\0"
  68. "scrollLeft\0pixel\0scrollRight\0scrollUp\0"
  69. "scrollDown\0scroll\0updateRequest\0rect\0"
  70. "updateRequestNew\0resize\0newSize\0tick\0"
  71. "loadingFinished\0positionChanged\0geom"
  72. };
  73. #undef QT_MOC_LITERAL
  74. static const uint qt_meta_data_MapControl[] = {
  75. // content:
  76. 7, // revision
  77. 0, // classname
  78. 0, 0, // classinfo
  79. 22, 14, // methods
  80. 0, 0, // properties
  81. 0, 0, // enums/sets
  82. 0, 0, // constructors
  83. 0, // flags
  84. 4, // signalCount
  85. // signals: name, argc, parameters, tag, flags
  86. 1, 2, 124, 2, 0x06 /* Public */,
  87. 6, 1, 129, 2, 0x06 /* Public */,
  88. 7, 2, 132, 2, 0x06 /* Public */,
  89. 11, 2, 137, 2, 0x06 /* Public */,
  90. // slots: name, argc, parameters, tag, flags
  91. 13, 0, 142, 2, 0x0a /* Public */,
  92. 14, 0, 143, 2, 0x0a /* Public */,
  93. 15, 1, 144, 2, 0x0a /* Public */,
  94. 17, 1, 147, 2, 0x0a /* Public */,
  95. 17, 0, 150, 2, 0x2a /* Public | MethodCloned */,
  96. 19, 1, 151, 2, 0x0a /* Public */,
  97. 19, 0, 154, 2, 0x2a /* Public | MethodCloned */,
  98. 20, 1, 155, 2, 0x0a /* Public */,
  99. 20, 0, 158, 2, 0x2a /* Public | MethodCloned */,
  100. 21, 1, 159, 2, 0x0a /* Public */,
  101. 21, 0, 162, 2, 0x2a /* Public | MethodCloned */,
  102. 22, 1, 163, 2, 0x0a /* Public */,
  103. 23, 1, 166, 2, 0x0a /* Public */,
  104. 25, 0, 169, 2, 0x0a /* Public */,
  105. 26, 1, 170, 2, 0x0a /* Public */,
  106. 28, 0, 173, 2, 0x0a /* Public */,
  107. 29, 0, 174, 2, 0x0a /* Public */,
  108. 30, 1, 175, 2, 0x0a /* Public */,
  109. // signals: parameters
  110. QMetaType::Void, 0x80000000 | 3, QMetaType::QPointF, 4, 5,
  111. QMetaType::Void, QMetaType::QRectF, 2,
  112. QMetaType::Void, 0x80000000 | 8, QMetaType::QPoint, 9, 10,
  113. QMetaType::Void, QMetaType::QPointF, QMetaType::Int, 5, 12,
  114. // slots: parameters
  115. QMetaType::Void,
  116. QMetaType::Void,
  117. QMetaType::Void, QMetaType::Int, 16,
  118. QMetaType::Void, QMetaType::Int, 18,
  119. QMetaType::Void,
  120. QMetaType::Void, QMetaType::Int, 18,
  121. QMetaType::Void,
  122. QMetaType::Void, QMetaType::Int, 18,
  123. QMetaType::Void,
  124. QMetaType::Void, QMetaType::Int, 18,
  125. QMetaType::Void,
  126. QMetaType::Void, QMetaType::QPoint, 22,
  127. QMetaType::Void, QMetaType::QRect, 24,
  128. QMetaType::Void,
  129. QMetaType::Void, QMetaType::QSize, 27,
  130. QMetaType::Void,
  131. QMetaType::Void,
  132. QMetaType::Void, 0x80000000 | 8, 31,
  133. 0 // eod
  134. };
  135. void MapControl::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
  136. {
  137. if (_c == QMetaObject::InvokeMetaMethod) {
  138. MapControl *_t = static_cast<MapControl *>(_o);
  139. Q_UNUSED(_t)
  140. switch (_id) {
  141. case 0: _t->mouseEventCoordinate((*reinterpret_cast< const QMouseEvent*(*)>(_a[1])),(*reinterpret_cast< const QPointF(*)>(_a[2]))); break;
  142. case 1: _t->boxDragged((*reinterpret_cast< const QRectF(*)>(_a[1]))); break;
  143. case 2: _t->geometryClicked((*reinterpret_cast< Geometry*(*)>(_a[1])),(*reinterpret_cast< QPoint(*)>(_a[2]))); break;
  144. case 3: _t->viewChanged((*reinterpret_cast< const QPointF(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
  145. case 4: _t->zoomIn(); break;
  146. case 5: _t->zoomOut(); break;
  147. case 6: _t->setZoom((*reinterpret_cast< int(*)>(_a[1]))); break;
  148. case 7: _t->scrollLeft((*reinterpret_cast< int(*)>(_a[1]))); break;
  149. case 8: _t->scrollLeft(); break;
  150. case 9: _t->scrollRight((*reinterpret_cast< int(*)>(_a[1]))); break;
  151. case 10: _t->scrollRight(); break;
  152. case 11: _t->scrollUp((*reinterpret_cast< int(*)>(_a[1]))); break;
  153. case 12: _t->scrollUp(); break;
  154. case 13: _t->scrollDown((*reinterpret_cast< int(*)>(_a[1]))); break;
  155. case 14: _t->scrollDown(); break;
  156. case 15: _t->scroll((*reinterpret_cast< const QPoint(*)>(_a[1]))); break;
  157. case 16: _t->updateRequest((*reinterpret_cast< QRect(*)>(_a[1]))); break;
  158. case 17: _t->updateRequestNew(); break;
  159. case 18: _t->resize((*reinterpret_cast< const QSize(*)>(_a[1]))); break;
  160. case 19: _t->tick(); break;
  161. case 20: _t->loadingFinished(); break;
  162. case 21: _t->positionChanged((*reinterpret_cast< Geometry*(*)>(_a[1]))); break;
  163. default: ;
  164. }
  165. } else if (_c == QMetaObject::IndexOfMethod) {
  166. int *result = reinterpret_cast<int *>(_a[0]);
  167. void **func = reinterpret_cast<void **>(_a[1]);
  168. {
  169. typedef void (MapControl::*_t)(const QMouseEvent * , const QPointF );
  170. if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&MapControl::mouseEventCoordinate)) {
  171. *result = 0;
  172. }
  173. }
  174. {
  175. typedef void (MapControl::*_t)(const QRectF );
  176. if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&MapControl::boxDragged)) {
  177. *result = 1;
  178. }
  179. }
  180. {
  181. typedef void (MapControl::*_t)(Geometry * , QPoint );
  182. if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&MapControl::geometryClicked)) {
  183. *result = 2;
  184. }
  185. }
  186. {
  187. typedef void (MapControl::*_t)(const QPointF & , int ) const;
  188. if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&MapControl::viewChanged)) {
  189. *result = 3;
  190. }
  191. }
  192. }
  193. }
  194. const QMetaObject MapControl::staticMetaObject = {
  195. { &QFrame::staticMetaObject, qt_meta_stringdata_MapControl.data,
  196. qt_meta_data_MapControl, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
  197. };
  198. const QMetaObject *MapControl::metaObject() const
  199. {
  200. return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
  201. }
  202. void *MapControl::qt_metacast(const char *_clname)
  203. {
  204. if (!_clname) return Q_NULLPTR;
  205. if (!strcmp(_clname, qt_meta_stringdata_MapControl.stringdata0))
  206. return static_cast<void*>(const_cast< MapControl*>(this));
  207. return QFrame::qt_metacast(_clname);
  208. }
  209. int MapControl::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
  210. {
  211. _id = QFrame::qt_metacall(_c, _id, _a);
  212. if (_id < 0)
  213. return _id;
  214. if (_c == QMetaObject::InvokeMetaMethod) {
  215. if (_id < 22)
  216. qt_static_metacall(this, _c, _id, _a);
  217. _id -= 22;
  218. } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
  219. if (_id < 22)
  220. *reinterpret_cast<int*>(_a[0]) = -1;
  221. _id -= 22;
  222. }
  223. return _id;
  224. }
  225. /*
  226. // SIGNAL 0
  227. void MapControl::mouseEventCoordinate(const QMouseEvent * _t1, const QPointF _t2)
  228. {
  229. void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
  230. QMetaObject::activate(this, &staticMetaObject, 0, _a);
  231. }
  232. // SIGNAL 1
  233. void MapControl::boxDragged(const QRectF _t1)
  234. {
  235. void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
  236. QMetaObject::activate(this, &staticMetaObject, 1, _a);
  237. }
  238. // SIGNAL 2
  239. void MapControl::geometryClicked(Geometry * _t1, QPoint _t2)
  240. {
  241. void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
  242. QMetaObject::activate(this, &staticMetaObject, 2, _a);
  243. }
  244. // SIGNAL 3
  245. void MapControl::viewChanged(const QPointF & _t1, int _t2)const
  246. {
  247. void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
  248. QMetaObject::activate(const_cast< MapControl *>(this), &staticMetaObject, 3, _a);
  249. }
  250. */
  251. QT_END_MOC_NAMESPACE