-
Notifications
You must be signed in to change notification settings - Fork 59
/
batchigramwizard.h
101 lines (86 loc) · 2.36 KB
/
batchigramwizard.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
#ifndef BATCHIGRAMWIZARD_H
#define BATCHIGRAMWIZARD_H
#include <QWizard>
#include <QPushButton>
#include <QRadioButton>
#include <QStringList>
#include <QCheckBox>
#include <QPointF>
#include <QProgressBar>
class wavefrontFilterDlg;
class QwtPlot;
class astigScatterPlot;
class rmsPlot;
class SurfaceManager;
namespace Ui {
class batchIgramWizard;
}
class QListWidget;
class batchIntro;
class QLabel;
class batchIgramWizard : public QWizard
{
Q_OBJECT
enum { Page_Intro, Page_Process};
public:
static QCheckBox *autoCb;
static QCheckBox *filterCb;
static QPushButton *goPb;
static QPushButton *skipFile;
static QPushButton *addFiles;
static QCheckBox *saveFile;
static QCheckBox *deletePreviousWave;
static QCheckBox *showProcessPlots;
static QPushButton *saveZerns;
static QCheckBox *makeReviewAvi;
static QLabel *memStatus;
static QString reviewFileName;
static QCheckBox *autoOutlineOutside;
static QCheckBox *autoOutlineCenter;
explicit batchIgramWizard(QStringList files, QWidget *parent = 0 , Qt::WindowFlags flags = Qt::Widget);
~batchIgramWizard();
void listReady(QStringList list);
void addAstig(QString name, QPointF value);
void addRms(QString name, QPointF p);
void progressValue(int min, int max, int value);
void select(int n);
void showPlots(bool flags);
batchIntro *introPage;
signals:
void swapBathConnections(bool);
void abort();
private slots:
void on_batchIgramWizard_finished(int result);
private:
Ui::batchIgramWizard *ui;
};
class batchIntro : public QWizardPage
{
Q_OBJECT
public:
batchIntro(QStringList files, QWidget *manger, QWidget *parent = 0);
QListWidget *filesList;
QProgressBar *pgrBar;
astigScatterPlot *astigPlot;
rmsPlot *m_rmsPlot;
bool filterFile;
bool filterWavefront;
double filterRms;
bool shouldFilterFile(double rms);
bool shouldFilterWavefront(double rms);
public slots:
void processBatch();
void addFiles();
void showContextMenu(const QPoint &pos);
void eraseItem();
void showPlots(bool flags);
void on_filter(bool);
void on_saveFiles(bool);
void on_deletePreviousWave(bool);
signals:
void processBatchList(QStringList);
private:
wavefrontFilterDlg *filterDlg;
void setupPlots();
};
#endif // BATCHIGRAMWIZARD_H