-
Notifications
You must be signed in to change notification settings - Fork 3
/
ChronoPlotter.h
112 lines (87 loc) · 1.76 KB
/
ChronoPlotter.h
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
#ifndef CHRONOPLOTTER_H
#define CHRONOPLOTTER_H
#include <sstream>
#include <QWidget>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QLabel>
#include <QTabWidget>
#include <QTabBar>
#include <QGroupBox>
#include <QFormLayout>
#include <QLineEdit>
#include <QComboBox>
#include <QFrame>
#include <QCheckBox>
#include <QPushButton>
#include <QStackedWidget>
#include <QDoubleSpinBox>
#include <QScrollArea>
#include <QGridLayout>
#include <QDialog>
#include <QMainWindow>
#include "qcustomplot/qcustomplot.h"
#define CHRONOPLOTTER_VERSION "2.2.0"
#define SCATTER 0
#define LINE_SD 1
#define SOLID_LINE 0
#define DASHED_LINE 1
#define GRAINS 0
#define GRAMS 1
#define FPS 0
#define MPS 1
#define CBTO 0
#define COAL 1
#define ES 0
#define YSTDEV 1
#define XSTDEV 2
#define RSD 3
#define MR 4
#define INCH 0
#define MOA 1
#define CENTIMETER 2
#define MIL 3
#define ABOVE_STRING 0
#define BELOW_STRING 1
#define PROPORTIONAL 0
#define CONSTANT 1
int scaleFontSize ( int );
struct SplineSet
{
double a;
double b;
double c;
double d;
double x;
};
std::vector<SplineSet> spline(QVector<double> &x, QVector<double> &y);
std::vector<double> GetLinearFit( QVector<double>&, QVector<double>& );
QString StringListJoin ( QStringList, const char * );
template<typename T>
double sampleStdev ( T );
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow() : QMainWindow() {};
~MainWindow() {};
protected:
void closeEvent(QCloseEvent *);
};
class QHLine : public QFrame
{
public:
QHLine(QFrame *parent = 0);
~QHLine() {};
};
class GraphPreview : public QWidget
{
public:
GraphPreview(QPixmap&, QWidget *parent = 0);
~GraphPreview() {};
protected:
virtual void resizeEvent(QResizeEvent *);
private:
QLabel *label;
};
#endif // CHRONOPLOTTER_H