-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmainwindow.h
58 lines (46 loc) · 1.13 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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include "capturer.h"
#include "radon_scanner.h"
#include "inverse_radon_scanner.h"
#include <QMainWindow>
#include <QDir>
#include <QtCore>
#include "ui_mainwindow.h"
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
public slots:
void confirmCameraStop();
void handleError(QString errorCaption);
private slots:
void handleCamButton();
void takePicture();
void openFolder();
void closeIfNeeded();
void ackShot();
void doRadon();
void doInverseRadon();
void handleRadonFinish();
void generateTestImages();
private:
Ui_MainWindow ui;
QScopedPointer<QRegularExpression> regexp;
QScopedPointer<QDir> currentDir;
QFileInfoList fileList;
bool cameraEnabled;
bool closeRequested;
Capturer* capturer;
QThread* capThread;
RadonScanner* radonScanner;
InverseRadonScanner* inverseRadonScanner;
QThread* scanThread;
void startCamera();
void stopCamera();
void closeEvent(QCloseEvent *event);
void reloadFolder();
};
#endif // MAINWINDOW_H