-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainWindow.h
166 lines (91 loc) · 2.45 KB
/
mainWindow.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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
#ifndef MAINWINDOWS_H
#define MAINWINDOWS_H
#include <QtCore/QtCore>
#include <QtCore/QDateTime>
#include <QtWidgets/QMainWindow>
#include <QWidget>
#include <QtSerialPort/QSerialPort>
#include "selectionWindows.h"
#include "selectionCounterWindows.h"
#include "controlwindows.h"
#include "spiedino.h"
#include "counterino.h"
#include "ui_mainWindow.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent=0);
~MainWindow();
signals:
void blockingInterface();
void unBlockingInterface();
void enableControl();
void blockingSpiedoInterface();
void unBlockingSpiedoInterface();
void blockingCounterInterface();
void unBlockingCounterInterface();
void somethingToSave();
private slots:
/**
* @brief slot that update the plot
*
* @return void
*/
void updatePlot();
/**
* @brief slot that update the Lcd and del status bar.
*
* @return void
*/
void updateDisplay( int duty, double mean, double sigma);
void m_close();
void save( QByteArray*CacheToSave);
void addReader();
void addCounter();
void openControl();
void connectSpiedino( Spiedino *spiedinoSelected );
void connectCounterino( Counterino *counterinoSelected );
void activeControl();
void askForSave();
void disconnectCache();
void blockInterface();
void unBlockInterface();
void blockCounterInterface();
void blockSpiedoInterface();
void unBlockCounterInterface();
void unBlockSpiedoInterface();
// Buttom
// Spiedo
void Scan();
void Acquire();
void SetDuty();
void WarmUp();
void StopAcquire();
//Counterino
void StartCount();
void StopCount();
private:
bool m_interfaceIsBlocked;
bool isAllConnect;
static QDateTime sm_datelog;
static QTextStream sm_streamlog;
SelectionWindows *m_selectionReaderWindow;
SelectionCounterWindows * m_selectionCounterWindow;
ControlWindows *m_controlWindows;
Spiedino * m_spiedino;
Counterino *m_counterino;
QByteArray m_scanByteCache;
unsigned int m_indexScanCache;
const Spiedino::ScanData *m_scanCache;
QByteArray m_acquireByteCache;
unsigned int m_indexAcquireCache;
const Spiedino::AcquireData * m_acquireCache;
QTimer *m_counterinoTimer;
QTimer *m_spiedinoTimer;
Ui::MainWindow * m_ui;
};
#endif //MainWindows.h