-
Notifications
You must be signed in to change notification settings - Fork 0
/
settingsdialog.h
41 lines (31 loc) · 1.01 KB
/
settingsdialog.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
#ifndef SETTINGSDIALOG_H
#define SETTINGSDIALOG_H
#include <QDialog>
#include <QIntValidator>
namespace Ui {
class SettingsDialog;
}
class SettingsDialog : public QDialog // New Class inherited from QDialog
{
Q_OBJECT
public:
// Default Constructor & Destructor
explicit SettingsDialog(QWidget *parent = nullptr);
~SettingsDialog();
// Variable Declarations used to temporarily store data within the settings dialog
int imgIterations;
int imgWidth;
int imgHeight;
int rendIterations;
signals:
// Sends local variables back to plotWindow
void sendSettingsData(const int& imgiterations, const int& imgWidth, const int& imgHeight, const int& renderIterations);
private slots:
void on_buttonBox_accepted();
public slots:
// Populates settings fields with variables from plotWindow
void receiveCurrentSettings(const int& imgWidth,const int& imgHeight, const int& imgIterations, const int&renderIterations);
private:
Ui::SettingsDialog *ui;
};
#endif // SETTINGSDIALOG_H