-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHeaders.hpp
More file actions
76 lines (56 loc) · 1.26 KB
/
Copy pathHeaders.hpp
File metadata and controls
76 lines (56 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
// SPDX-FileCopyrightText: 2026 Błażej Szczygieł <mumei6102@gmail.com>
// SPDX-License-Identifier: BSD-3-Clause
#pragma once
#ifndef Q_MOC_RUN
#include <QAbstractListModel>
#include <QRegularExpression>
#include <QElapsedTimer>
#include <QSaveFile>
#include <QFileInfo>
#include <QUrlQuery>
#include <QSettings>
#include <QtEndian>
#include <QThread>
#include <QFile>
#include <QDir>
#ifndef ALGORITHM_TESTS
# include <QQmlApplicationEngine>
# include <QColorSpace>
# include <QStyleHints>
# include <QQuickWindow>
# include <QQuickStyle>
# ifdef USE_QT_SERIAL_PORT
# include <QSerialPortInfo>
# include <QSerialPort>
# else
# include <libusb.h>
# endif
# ifdef Q_OS_ANDROID
# include <QJniObject>
# endif
#else
# include <QtTest/QtTest>
# include <QProcess>
#endif
#include <algorithm>
#include <numbers>
#include <ranges>
#include <thread>
#include <chrono>
#include <mutex>
#include <cmath>
using namespace Qt::StringLiterals;
using namespace std;
constexpr qsizetype g_limitedVisSize = 401; // [380 - 780], 1 nm step
using Entry = pair<double, double>;
using Data = QList<Entry>;
using VisData = QVarLengthArray<double, g_limitedVisSize>;
struct XYZ
{
double X = 0.0;
double Y = 0.0;
double Z = 0.0;
};
#else
#include <QtQml/qqmlregistration.h>
#endif