moc_mainwindow.cpp 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. /****************************************************************************
  2. ** Meta object code from reading C++ file 'mainwindow.h'
  3. **
  4. ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.3.2)
  5. **
  6. ** WARNING! All changes made in this file will be lost!
  7. *****************************************************************************/
  8. #include "../RM_CPanel/mainwindow.h"
  9. #include <QtCore/qbytearray.h>
  10. #include <QtCore/qmetatype.h>
  11. #if !defined(Q_MOC_OUTPUT_REVISION)
  12. #error "The header file 'mainwindow.h' doesn't include <QObject>."
  13. #elif Q_MOC_OUTPUT_REVISION != 67
  14. #error "This file was generated using the moc from 5.3.2. 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_MainWindow_t {
  20. QByteArrayData data[25];
  21. char stringdata[470];
  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_MainWindow_t, stringdata) + ofs \
  26. - idx * sizeof(QByteArrayData)) \
  27. )
  28. static const qt_meta_stringdata_MainWindow_t qt_meta_stringdata_MainWindow = {
  29. {
  30. QT_MOC_LITERAL(0, 0, 10),
  31. QT_MOC_LITERAL(1, 11, 12),
  32. QT_MOC_LITERAL(2, 24, 0),
  33. QT_MOC_LITERAL(3, 25, 10),
  34. QT_MOC_LITERAL(4, 36, 18),
  35. QT_MOC_LITERAL(5, 55, 10),
  36. QT_MOC_LITERAL(6, 66, 11),
  37. QT_MOC_LITERAL(7, 78, 22),
  38. QT_MOC_LITERAL(8, 101, 20),
  39. QT_MOC_LITERAL(9, 122, 20),
  40. QT_MOC_LITERAL(10, 143, 19),
  41. QT_MOC_LITERAL(11, 163, 20),
  42. QT_MOC_LITERAL(12, 184, 22),
  43. QT_MOC_LITERAL(13, 207, 22),
  44. QT_MOC_LITERAL(14, 230, 22),
  45. QT_MOC_LITERAL(15, 253, 21),
  46. QT_MOC_LITERAL(16, 275, 21),
  47. QT_MOC_LITERAL(17, 297, 21),
  48. QT_MOC_LITERAL(18, 319, 18),
  49. QT_MOC_LITERAL(19, 338, 18),
  50. QT_MOC_LITERAL(20, 357, 11),
  51. QT_MOC_LITERAL(21, 369, 32),
  52. QT_MOC_LITERAL(22, 402, 5),
  53. QT_MOC_LITERAL(23, 408, 30),
  54. QT_MOC_LITERAL(24, 439, 30)
  55. },
  56. "MainWindow\0send_command\0\0OpenSerial\0"
  57. "recv_graph_pointer\0GraphData*\0Show_Errors\0"
  58. "on_mode_manual_pressed\0on_mode_stop_clicked\0"
  59. "on_mode_auto_clicked\0on_force_up_clicked\0"
  60. "on_sensor_up_clicked\0on_sensor_down_clicked\0"
  61. "on_sensor_stop_clicked\0on_mode_manual_clicked\0"
  62. "on_force_down_clicked\0on_force_stop_clicked\0"
  63. "on_ConnSerial_clicked\0on_m_reset_clicked\0"
  64. "on_f_reset_clicked\0updateGraph\0"
  65. "on_GraphType_currentIndexChanged\0index\0"
  66. "on_P_Scale_currentIndexChanged\0"
  67. "on_F_Scale_currentIndexChanged"
  68. };
  69. #undef QT_MOC_LITERAL
  70. static const uint qt_meta_data_MainWindow[] = {
  71. // content:
  72. 7, // revision
  73. 0, // classname
  74. 0, 0, // classinfo
  75. 21, 14, // methods
  76. 0, 0, // properties
  77. 0, 0, // enums/sets
  78. 0, 0, // constructors
  79. 0, // flags
  80. 2, // signalCount
  81. // signals: name, argc, parameters, tag, flags
  82. 1, 1, 119, 2, 0x06 /* Public */,
  83. 3, 1, 122, 2, 0x06 /* Public */,
  84. // slots: name, argc, parameters, tag, flags
  85. 4, 1, 125, 2, 0x0a /* Public */,
  86. 6, 1, 128, 2, 0x0a /* Public */,
  87. 7, 0, 131, 2, 0x08 /* Private */,
  88. 8, 0, 132, 2, 0x08 /* Private */,
  89. 9, 0, 133, 2, 0x08 /* Private */,
  90. 10, 0, 134, 2, 0x08 /* Private */,
  91. 11, 0, 135, 2, 0x08 /* Private */,
  92. 12, 0, 136, 2, 0x08 /* Private */,
  93. 13, 0, 137, 2, 0x08 /* Private */,
  94. 14, 0, 138, 2, 0x08 /* Private */,
  95. 15, 0, 139, 2, 0x08 /* Private */,
  96. 16, 0, 140, 2, 0x08 /* Private */,
  97. 17, 0, 141, 2, 0x08 /* Private */,
  98. 18, 0, 142, 2, 0x08 /* Private */,
  99. 19, 0, 143, 2, 0x08 /* Private */,
  100. 20, 0, 144, 2, 0x08 /* Private */,
  101. 21, 1, 145, 2, 0x08 /* Private */,
  102. 23, 1, 148, 2, 0x08 /* Private */,
  103. 24, 1, 151, 2, 0x08 /* Private */,
  104. // signals: parameters
  105. QMetaType::Void, QMetaType::QString, 2,
  106. QMetaType::Void, QMetaType::QString, 2,
  107. // slots: parameters
  108. QMetaType::Void, 0x80000000 | 5, 2,
  109. QMetaType::Void, QMetaType::QString, 2,
  110. QMetaType::Void,
  111. QMetaType::Void,
  112. QMetaType::Void,
  113. QMetaType::Void,
  114. QMetaType::Void,
  115. QMetaType::Void,
  116. QMetaType::Void,
  117. QMetaType::Void,
  118. QMetaType::Void,
  119. QMetaType::Void,
  120. QMetaType::Void,
  121. QMetaType::Void,
  122. QMetaType::Void,
  123. QMetaType::Void,
  124. QMetaType::Void, QMetaType::Int, 22,
  125. QMetaType::Void, QMetaType::Int, 22,
  126. QMetaType::Void, QMetaType::Int, 22,
  127. 0 // eod
  128. };
  129. void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
  130. {
  131. if (_c == QMetaObject::InvokeMetaMethod) {
  132. MainWindow *_t = static_cast<MainWindow *>(_o);
  133. switch (_id) {
  134. case 0: _t->send_command((*reinterpret_cast< QString(*)>(_a[1]))); break;
  135. case 1: _t->OpenSerial((*reinterpret_cast< QString(*)>(_a[1]))); break;
  136. case 2: _t->recv_graph_pointer((*reinterpret_cast< GraphData*(*)>(_a[1]))); break;
  137. case 3: _t->Show_Errors((*reinterpret_cast< QString(*)>(_a[1]))); break;
  138. case 4: _t->on_mode_manual_pressed(); break;
  139. case 5: _t->on_mode_stop_clicked(); break;
  140. case 6: _t->on_mode_auto_clicked(); break;
  141. case 7: _t->on_force_up_clicked(); break;
  142. case 8: _t->on_sensor_up_clicked(); break;
  143. case 9: _t->on_sensor_down_clicked(); break;
  144. case 10: _t->on_sensor_stop_clicked(); break;
  145. case 11: _t->on_mode_manual_clicked(); break;
  146. case 12: _t->on_force_down_clicked(); break;
  147. case 13: _t->on_force_stop_clicked(); break;
  148. case 14: _t->on_ConnSerial_clicked(); break;
  149. case 15: _t->on_m_reset_clicked(); break;
  150. case 16: _t->on_f_reset_clicked(); break;
  151. case 17: _t->updateGraph(); break;
  152. case 18: _t->on_GraphType_currentIndexChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
  153. case 19: _t->on_P_Scale_currentIndexChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
  154. case 20: _t->on_F_Scale_currentIndexChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
  155. default: ;
  156. }
  157. } else if (_c == QMetaObject::IndexOfMethod) {
  158. int *result = reinterpret_cast<int *>(_a[0]);
  159. void **func = reinterpret_cast<void **>(_a[1]);
  160. {
  161. typedef void (MainWindow::*_t)(QString );
  162. if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&MainWindow::send_command)) {
  163. *result = 0;
  164. }
  165. }
  166. {
  167. typedef void (MainWindow::*_t)(QString );
  168. if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&MainWindow::OpenSerial)) {
  169. *result = 1;
  170. }
  171. }
  172. }
  173. }
  174. const QMetaObject MainWindow::staticMetaObject = {
  175. { &QMainWindow::staticMetaObject, qt_meta_stringdata_MainWindow.data,
  176. qt_meta_data_MainWindow, qt_static_metacall, 0, 0}
  177. };
  178. const QMetaObject *MainWindow::metaObject() const
  179. {
  180. return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
  181. }
  182. void *MainWindow::qt_metacast(const char *_clname)
  183. {
  184. if (!_clname) return 0;
  185. if (!strcmp(_clname, qt_meta_stringdata_MainWindow.stringdata))
  186. return static_cast<void*>(const_cast< MainWindow*>(this));
  187. return QMainWindow::qt_metacast(_clname);
  188. }
  189. int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
  190. {
  191. _id = QMainWindow::qt_metacall(_c, _id, _a);
  192. if (_id < 0)
  193. return _id;
  194. if (_c == QMetaObject::InvokeMetaMethod) {
  195. if (_id < 21)
  196. qt_static_metacall(this, _c, _id, _a);
  197. _id -= 21;
  198. } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
  199. if (_id < 21)
  200. *reinterpret_cast<int*>(_a[0]) = -1;
  201. _id -= 21;
  202. }
  203. return _id;
  204. }
  205. // SIGNAL 0
  206. void MainWindow::send_command(QString _t1)
  207. {
  208. void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
  209. QMetaObject::activate(this, &staticMetaObject, 0, _a);
  210. }
  211. // SIGNAL 1
  212. void MainWindow::OpenSerial(QString _t1)
  213. {
  214. void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
  215. QMetaObject::activate(this, &staticMetaObject, 1, _a);
  216. }
  217. QT_END_MOC_NAMESPACE