2017-01-23 15:09:06 +00:00
|
|
|
#pragma once
|
|
|
|
#include <QWidget>
|
|
|
|
#include "ui_SettingsWindow.h"
|
2017-01-24 16:09:51 +00:00
|
|
|
#include <QVector3D>
|
2017-01-23 15:09:06 +00:00
|
|
|
|
2017-01-28 15:54:36 +00:00
|
|
|
|
2017-01-23 15:09:06 +00:00
|
|
|
class SettingsWindow : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2017-01-26 17:17:54 +00:00
|
|
|
SettingsWindow(QVector3D bgOffColor, QVector3D bgOnColor, QVector3D lightColor, bool autoColor, double ambCoef, double attFac, int lightType, QWidget * parent = Q_NULLPTR);
|
2017-01-23 15:09:06 +00:00
|
|
|
~SettingsWindow();
|
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::SettingsWindow* ui;
|
|
|
|
|
2017-01-26 17:17:54 +00:00
|
|
|
void setupConnections();
|
|
|
|
|
2017-01-23 15:09:06 +00:00
|
|
|
private slots:
|
|
|
|
void autoColorToggled();
|
|
|
|
void radioToggled();
|
2017-01-24 16:09:51 +00:00
|
|
|
void backgroundColorOffChanged();
|
|
|
|
void backgroundColorOnChanged();
|
|
|
|
void lightColorChanged();
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void updateBGColorOff(QVector3D value);
|
|
|
|
void updateBGColorOn(QVector3D value);
|
|
|
|
void updateLightColor(QVector3D value);
|
|
|
|
void updateAttFac(double value);
|
|
|
|
void updateAmbCoef(double value);
|
2017-01-23 15:09:06 +00:00
|
|
|
};
|