33 lines
764 B
C++
33 lines
764 B
C++
#pragma once
|
|
#include <QWidget>
|
|
#include "ui_SettingsWindow.h"
|
|
#include <QVector3D>
|
|
|
|
|
|
class SettingsWindow : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
SettingsWindow(QVector3D bgOffColor, QVector3D bgOnColor, QVector3D lightColor, bool autoColor, double ambCoef, double attFac, int lightType, QWidget * parent = Q_NULLPTR);
|
|
~SettingsWindow();
|
|
|
|
private:
|
|
Ui::SettingsWindow* ui;
|
|
|
|
void setupConnections();
|
|
|
|
private slots:
|
|
void autoColorToggled();
|
|
void radioToggled();
|
|
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);
|
|
}; |