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-02-08 13:29:22 +00:00
|
|
|
SettingsWindow(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-30 10:31:37 +00:00
|
|
|
void sendHeadlight(bool value);
|
2017-01-29 22:47:14 +00:00
|
|
|
void sendBackfaceCulling(bool value);
|
|
|
|
void sendZommSpeed(int percent);
|
2017-02-08 13:29:22 +00:00
|
|
|
void changeLightType(int value);
|
2017-01-30 10:31:37 +00:00
|
|
|
|
2017-01-23 15:09:06 +00:00
|
|
|
};
|