-
Notifications
You must be signed in to change notification settings - Fork 0
/
settingswindow.h
49 lines (42 loc) · 1.15 KB
/
settingswindow.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
#ifndef SETTINGSWINDOW_H
#define SETTINGSWINDOW_H
#include "qcheckbox.h"
#include <QLocale>
#include <QDialog>
#include <QLineEdit>
#include <QFormLayout>
#include <QPushButton>
#include <QSettings>
#include <QComboBox>
class MainWindow;
class SettingsWindow : public QDialog {
Q_OBJECT
public:
SettingsWindow(MainWindow *parent, QSettings* settings);
int getMaxCandela();
QLocale getLocation();;
int getTimeoutPythonServer();
int getPortPythonServer();
int getLabelCount();
QString getIpPythonServer();
bool isClaibrationMode();
double getexposureTime();
private slots:
void saveSettings();
private:
const QStringList LANGUAGE_OPTIONS = { "German", "English"};
QSettings *settings;
QLineEdit *maxCandelaLineEdit;
QLineEdit *ipLineEdit;
QLineEdit *portLineEdit;
QLineEdit *timeoutLineEdit;
QLineEdit *skalaLabelCount;
QLineEdit *exposureTimeTrainedLineEdit;
QLineEdit *exposureTimeImageLineEdit;
QPushButton *calibrateButton;
QComboBox* languageComboBox;
QCheckBox* calibrationModeCheckbox;
MainWindow* mainWindow;
void createWidgets();
};
#endif // SETTINGSWINDOW_H