Files
2026-11-06 14:45:09 +08:00

479 lines
17 KiB
C++

/****************************************************************************
** Meta object code from reading C++ file 'mainwindow.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.15.2)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
#include <memory>
#include "../../../../mainwindow.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#include <QtCore/QVector>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'mainwindow.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.2. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif
QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_MainWindow_t {
QByteArrayData data[50];
char stringdata0[1025];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
qptrdiff(offsetof(qt_meta_stringdata_MainWindow_t, stringdata0) + ofs \
- idx * sizeof(QByteArrayData)) \
)
static const qt_meta_stringdata_MainWindow_t qt_meta_stringdata_MainWindow = {
{
QT_MOC_LITERAL(0, 0, 10), // "MainWindow"
QT_MOC_LITERAL(1, 11, 10), // "onBakeZero"
QT_MOC_LITERAL(2, 22, 0), // ""
QT_MOC_LITERAL(3, 23, 23), // "onControlModeSelectionA"
QT_MOC_LITERAL(4, 47, 23), // "onControlModeSelectionB"
QT_MOC_LITERAL(5, 71, 21), // "onGetAbsolutePosition"
QT_MOC_LITERAL(6, 93, 13), // "onTargetSpeed"
QT_MOC_LITERAL(7, 107, 5), // "speed"
QT_MOC_LITERAL(8, 113, 18), // "onAcceleratedSpeed"
QT_MOC_LITERAL(9, 132, 19), // "onDecelerationSpeed"
QT_MOC_LITERAL(10, 152, 21), // "onMoveTargetPositionA"
QT_MOC_LITERAL(11, 174, 21), // "onMoveTargetPositionB"
QT_MOC_LITERAL(12, 196, 19), // "onSetTargetPosition"
QT_MOC_LITERAL(13, 216, 8), // "position"
QT_MOC_LITERAL(14, 225, 15), // "MeasureFinished"
QT_MOC_LITERAL(15, 241, 22), // "vector<SampleSpectrum>"
QT_MOC_LITERAL(16, 264, 16), // "cutedSpectrumLst"
QT_MOC_LITERAL(17, 281, 32), // "on_but_start_measurement_clicked"
QT_MOC_LITERAL(18, 314, 26), // "on_but_export_data_clicked"
QT_MOC_LITERAL(19, 341, 37), // "on_but_collections_number_add..."
QT_MOC_LITERAL(20, 379, 37), // "on_but_collections_number_sub..."
QT_MOC_LITERAL(21, 417, 27), // "on_but_close_device_clicked"
QT_MOC_LITERAL(22, 445, 26), // "on_but_angle_sub_1_clicked"
QT_MOC_LITERAL(23, 472, 26), // "on_but_angle_add_1_clicked"
QT_MOC_LITERAL(24, 499, 26), // "on_but_angle_sub_2_clicked"
QT_MOC_LITERAL(25, 526, 26), // "on_but_angle_add_2_clicked"
QT_MOC_LITERAL(26, 553, 32), // "on_but_angle_restoration_clicked"
QT_MOC_LITERAL(27, 586, 37), // "on_but_spectral_amplification..."
QT_MOC_LITERAL(28, 624, 33), // "on_but_spectral_reduction_cli..."
QT_MOC_LITERAL(29, 658, 29), // "on_but_spectral_reset_clicked"
QT_MOC_LITERAL(30, 688, 19), // "on_but_test_clicked"
QT_MOC_LITERAL(31, 708, 17), // "onReceiveSpecData"
QT_MOC_LITERAL(32, 726, 19), // "currentSerialNumber"
QT_MOC_LITERAL(33, 746, 14), // "QVector<float>"
QT_MOC_LITERAL(34, 761, 11), // "wavelengths"
QT_MOC_LITERAL(35, 773, 8), // "spectrum"
QT_MOC_LITERAL(36, 782, 8), // "BakeZero"
QT_MOC_LITERAL(37, 791, 21), // "ControlModeSelectionA"
QT_MOC_LITERAL(38, 813, 21), // "ControlModeSelectionB"
QT_MOC_LITERAL(39, 835, 19), // "GetAbsolutePosition"
QT_MOC_LITERAL(40, 855, 11), // "TargetSpeed"
QT_MOC_LITERAL(41, 867, 16), // "AcceleratedSpeed"
QT_MOC_LITERAL(42, 884, 17), // "DecelerationSpeed"
QT_MOC_LITERAL(43, 902, 19), // "MoveTargetPositionA"
QT_MOC_LITERAL(44, 922, 19), // "MoveTargetPositionB"
QT_MOC_LITERAL(45, 942, 17), // "SetTargetPosition"
QT_MOC_LITERAL(46, 960, 13), // "FirstStepOver"
QT_MOC_LITERAL(47, 974, 14), // "SecondStepOver"
QT_MOC_LITERAL(48, 989, 13), // "ThirdStepOver"
QT_MOC_LITERAL(49, 1003, 21) // "doGetcutedSpectrumLst"
},
"MainWindow\0onBakeZero\0\0onControlModeSelectionA\0"
"onControlModeSelectionB\0onGetAbsolutePosition\0"
"onTargetSpeed\0speed\0onAcceleratedSpeed\0"
"onDecelerationSpeed\0onMoveTargetPositionA\0"
"onMoveTargetPositionB\0onSetTargetPosition\0"
"position\0MeasureFinished\0"
"vector<SampleSpectrum>\0cutedSpectrumLst\0"
"on_but_start_measurement_clicked\0"
"on_but_export_data_clicked\0"
"on_but_collections_number_add_clicked\0"
"on_but_collections_number_sub_clicked\0"
"on_but_close_device_clicked\0"
"on_but_angle_sub_1_clicked\0"
"on_but_angle_add_1_clicked\0"
"on_but_angle_sub_2_clicked\0"
"on_but_angle_add_2_clicked\0"
"on_but_angle_restoration_clicked\0"
"on_but_spectral_amplification_clicked\0"
"on_but_spectral_reduction_clicked\0"
"on_but_spectral_reset_clicked\0"
"on_but_test_clicked\0onReceiveSpecData\0"
"currentSerialNumber\0QVector<float>\0"
"wavelengths\0spectrum\0BakeZero\0"
"ControlModeSelectionA\0ControlModeSelectionB\0"
"GetAbsolutePosition\0TargetSpeed\0"
"AcceleratedSpeed\0DecelerationSpeed\0"
"MoveTargetPositionA\0MoveTargetPositionB\0"
"SetTargetPosition\0FirstStepOver\0"
"SecondStepOver\0ThirdStepOver\0"
"doGetcutedSpectrumLst"
};
#undef QT_MOC_LITERAL
static const uint qt_meta_data_MainWindow[] = {
// content:
8, // revision
0, // classname
0, 0, // classinfo
40, 14, // methods
0, 0, // properties
0, 0, // enums/sets
0, 0, // constructors
0, // flags
11, // signalCount
// signals: name, argc, parameters, tag, flags
1, 0, 214, 2, 0x06 /* Public */,
3, 0, 215, 2, 0x06 /* Public */,
4, 0, 216, 2, 0x06 /* Public */,
5, 0, 217, 2, 0x06 /* Public */,
6, 1, 218, 2, 0x06 /* Public */,
8, 1, 221, 2, 0x06 /* Public */,
9, 1, 224, 2, 0x06 /* Public */,
10, 0, 227, 2, 0x06 /* Public */,
11, 0, 228, 2, 0x06 /* Public */,
12, 1, 229, 2, 0x06 /* Public */,
14, 1, 232, 2, 0x06 /* Public */,
// slots: name, argc, parameters, tag, flags
17, 0, 235, 2, 0x0a /* Public */,
18, 0, 236, 2, 0x0a /* Public */,
19, 0, 237, 2, 0x0a /* Public */,
20, 0, 238, 2, 0x0a /* Public */,
21, 0, 239, 2, 0x0a /* Public */,
22, 0, 240, 2, 0x0a /* Public */,
23, 0, 241, 2, 0x0a /* Public */,
24, 0, 242, 2, 0x0a /* Public */,
25, 0, 243, 2, 0x0a /* Public */,
26, 0, 244, 2, 0x0a /* Public */,
27, 0, 245, 2, 0x0a /* Public */,
28, 0, 246, 2, 0x0a /* Public */,
29, 0, 247, 2, 0x0a /* Public */,
30, 0, 248, 2, 0x0a /* Public */,
31, 3, 249, 2, 0x0a /* Public */,
36, 0, 256, 2, 0x08 /* Private */,
37, 0, 257, 2, 0x08 /* Private */,
38, 0, 258, 2, 0x08 /* Private */,
39, 0, 259, 2, 0x08 /* Private */,
40, 0, 260, 2, 0x08 /* Private */,
41, 0, 261, 2, 0x08 /* Private */,
42, 0, 262, 2, 0x08 /* Private */,
43, 0, 263, 2, 0x08 /* Private */,
44, 0, 264, 2, 0x08 /* Private */,
45, 1, 265, 2, 0x08 /* Private */,
46, 0, 268, 2, 0x08 /* Private */,
47, 0, 269, 2, 0x08 /* Private */,
48, 0, 270, 2, 0x08 /* Private */,
49, 1, 271, 2, 0x08 /* Private */,
// signals: parameters
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void, QMetaType::Int, 7,
QMetaType::Void, QMetaType::Int, 7,
QMetaType::Void, QMetaType::Int, 7,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void, QMetaType::Int, 13,
QMetaType::Void, 0x80000000 | 15, 16,
// slots: parameters
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void, QMetaType::QString, 0x80000000 | 33, 0x80000000 | 33, 32, 34, 35,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void, QMetaType::Int, 13,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void,
QMetaType::Void, 0x80000000 | 15, 16,
0 // eod
};
void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
if (_c == QMetaObject::InvokeMetaMethod) {
auto *_t = static_cast<MainWindow *>(_o);
Q_UNUSED(_t)
switch (_id) {
case 0: _t->onBakeZero(); break;
case 1: _t->onControlModeSelectionA(); break;
case 2: _t->onControlModeSelectionB(); break;
case 3: _t->onGetAbsolutePosition(); break;
case 4: _t->onTargetSpeed((*reinterpret_cast< int(*)>(_a[1]))); break;
case 5: _t->onAcceleratedSpeed((*reinterpret_cast< int(*)>(_a[1]))); break;
case 6: _t->onDecelerationSpeed((*reinterpret_cast< int(*)>(_a[1]))); break;
case 7: _t->onMoveTargetPositionA(); break;
case 8: _t->onMoveTargetPositionB(); break;
case 9: _t->onSetTargetPosition((*reinterpret_cast< int(*)>(_a[1]))); break;
case 10: _t->MeasureFinished((*reinterpret_cast< vector<SampleSpectrum>(*)>(_a[1]))); break;
case 11: _t->on_but_start_measurement_clicked(); break;
case 12: _t->on_but_export_data_clicked(); break;
case 13: _t->on_but_collections_number_add_clicked(); break;
case 14: _t->on_but_collections_number_sub_clicked(); break;
case 15: _t->on_but_close_device_clicked(); break;
case 16: _t->on_but_angle_sub_1_clicked(); break;
case 17: _t->on_but_angle_add_1_clicked(); break;
case 18: _t->on_but_angle_sub_2_clicked(); break;
case 19: _t->on_but_angle_add_2_clicked(); break;
case 20: _t->on_but_angle_restoration_clicked(); break;
case 21: _t->on_but_spectral_amplification_clicked(); break;
case 22: _t->on_but_spectral_reduction_clicked(); break;
case 23: _t->on_but_spectral_reset_clicked(); break;
case 24: _t->on_but_test_clicked(); break;
case 25: _t->onReceiveSpecData((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< const QVector<float>(*)>(_a[2])),(*reinterpret_cast< const QVector<float>(*)>(_a[3]))); break;
case 26: _t->BakeZero(); break;
case 27: _t->ControlModeSelectionA(); break;
case 28: _t->ControlModeSelectionB(); break;
case 29: _t->GetAbsolutePosition(); break;
case 30: _t->TargetSpeed(); break;
case 31: _t->AcceleratedSpeed(); break;
case 32: _t->DecelerationSpeed(); break;
case 33: _t->MoveTargetPositionA(); break;
case 34: _t->MoveTargetPositionB(); break;
case 35: _t->SetTargetPosition((*reinterpret_cast< int(*)>(_a[1]))); break;
case 36: _t->FirstStepOver(); break;
case 37: _t->SecondStepOver(); break;
case 38: _t->ThirdStepOver(); break;
case 39: _t->doGetcutedSpectrumLst((*reinterpret_cast< vector<SampleSpectrum>(*)>(_a[1]))); break;
default: ;
}
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
switch (_id) {
default: *reinterpret_cast<int*>(_a[0]) = -1; break;
case 25:
switch (*reinterpret_cast<int*>(_a[1])) {
default: *reinterpret_cast<int*>(_a[0]) = -1; break;
case 2:
case 1:
*reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QVector<float> >(); break;
}
break;
}
} else if (_c == QMetaObject::IndexOfMethod) {
int *result = reinterpret_cast<int *>(_a[0]);
{
using _t = void (MainWindow::*)();
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MainWindow::onBakeZero)) {
*result = 0;
return;
}
}
{
using _t = void (MainWindow::*)();
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MainWindow::onControlModeSelectionA)) {
*result = 1;
return;
}
}
{
using _t = void (MainWindow::*)();
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MainWindow::onControlModeSelectionB)) {
*result = 2;
return;
}
}
{
using _t = void (MainWindow::*)();
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MainWindow::onGetAbsolutePosition)) {
*result = 3;
return;
}
}
{
using _t = void (MainWindow::*)(int );
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MainWindow::onTargetSpeed)) {
*result = 4;
return;
}
}
{
using _t = void (MainWindow::*)(int );
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MainWindow::onAcceleratedSpeed)) {
*result = 5;
return;
}
}
{
using _t = void (MainWindow::*)(int );
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MainWindow::onDecelerationSpeed)) {
*result = 6;
return;
}
}
{
using _t = void (MainWindow::*)();
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MainWindow::onMoveTargetPositionA)) {
*result = 7;
return;
}
}
{
using _t = void (MainWindow::*)();
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MainWindow::onMoveTargetPositionB)) {
*result = 8;
return;
}
}
{
using _t = void (MainWindow::*)(int );
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MainWindow::onSetTargetPosition)) {
*result = 9;
return;
}
}
{
using _t = void (MainWindow::*)(vector<SampleSpectrum> );
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MainWindow::MeasureFinished)) {
*result = 10;
return;
}
}
}
}
QT_INIT_METAOBJECT const QMetaObject MainWindow::staticMetaObject = { {
QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
qt_meta_stringdata_MainWindow.data,
qt_meta_data_MainWindow,
qt_static_metacall,
nullptr,
nullptr
} };
const QMetaObject *MainWindow::metaObject() const
{
return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}
void *MainWindow::qt_metacast(const char *_clname)
{
if (!_clname) return nullptr;
if (!strcmp(_clname, qt_meta_stringdata_MainWindow.stringdata0))
return static_cast<void*>(this);
return QWidget::qt_metacast(_clname);
}
int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
_id = QWidget::qt_metacall(_c, _id, _a);
if (_id < 0)
return _id;
if (_c == QMetaObject::InvokeMetaMethod) {
if (_id < 40)
qt_static_metacall(this, _c, _id, _a);
_id -= 40;
} else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
if (_id < 40)
qt_static_metacall(this, _c, _id, _a);
_id -= 40;
}
return _id;
}
// SIGNAL 0
void MainWindow::onBakeZero()
{
QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}
// SIGNAL 1
void MainWindow::onControlModeSelectionA()
{
QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}
// SIGNAL 2
void MainWindow::onControlModeSelectionB()
{
QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}
// SIGNAL 3
void MainWindow::onGetAbsolutePosition()
{
QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}
// SIGNAL 4
void MainWindow::onTargetSpeed(int _t1)
{
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
QMetaObject::activate(this, &staticMetaObject, 4, _a);
}
// SIGNAL 5
void MainWindow::onAcceleratedSpeed(int _t1)
{
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
QMetaObject::activate(this, &staticMetaObject, 5, _a);
}
// SIGNAL 6
void MainWindow::onDecelerationSpeed(int _t1)
{
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
QMetaObject::activate(this, &staticMetaObject, 6, _a);
}
// SIGNAL 7
void MainWindow::onMoveTargetPositionA()
{
QMetaObject::activate(this, &staticMetaObject, 7, nullptr);
}
// SIGNAL 8
void MainWindow::onMoveTargetPositionB()
{
QMetaObject::activate(this, &staticMetaObject, 8, nullptr);
}
// SIGNAL 9
void MainWindow::onSetTargetPosition(int _t1)
{
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
QMetaObject::activate(this, &staticMetaObject, 9, _a);
}
// SIGNAL 10
void MainWindow::MeasureFinished(vector<SampleSpectrum> _t1)
{
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
QMetaObject::activate(this, &staticMetaObject, 10, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE