46 lines
920 B
C++
46 lines
920 B
C++
#ifndef SETTINGSDIALOG__H
|
|
#define SETTINGSDIALOG__H
|
|
|
|
#include <QDialog>
|
|
#include <QColorDialog>
|
|
#include <QCheckBox>
|
|
#include <QLineEdit>
|
|
#include <QPushButton>
|
|
#include <QLabel>
|
|
#include <QVBoxLayout>
|
|
#include <QHBoxLayout>
|
|
#include <QGridLayout>
|
|
|
|
class SettingsDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit SettingsDialog(QWidget *parent = nullptr);
|
|
~SettingsDialog();
|
|
|
|
double getXMin() const;
|
|
double getXMax() const;
|
|
double getYMin() const;
|
|
double getYMax() const;
|
|
|
|
QColor getCurveColor(int index) const;
|
|
QColor getBackgroundColor() const;
|
|
|
|
bool isGridVisible() const;
|
|
|
|
private:
|
|
QLineEdit *xMinLineEdit;
|
|
QLineEdit *xMaxLineEdit;
|
|
QLineEdit *yMinLineEdit;
|
|
QLineEdit *yMaxLineEdit;
|
|
|
|
QPushButton *curveColor1Button;
|
|
QPushButton *curveColor2Button;
|
|
QPushButton *backgroundColorButton;
|
|
|
|
QCheckBox *gridCheckBox;
|
|
};
|
|
|
|
#endif // SETTINGSDIALOG__H
|