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();
|
2017-05-31 02:38:51 +00:00
|
|
|
QString getDirList();
|
2017-01-23 15:09:06 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::SettingsWindow* ui;
|
|
|
|
|
2017-01-26 17:17:54 +00:00
|
|
|
void setupConnections();
|
|
|
|
|
2017-05-31 08:09:20 +00:00
|
|
|
private:
|
|
|
|
QString dirList;
|
|
|
|
|
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();
|
|
|
|
|
2017-05-31 08:09:20 +00:00
|
|
|
void on_addItem_clicked();
|
|
|
|
void on_removeItem_clicked();
|
|
|
|
|
2017-01-24 16:09:51 +00:00
|
|
|
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-05-31 02:38:51 +00:00
|
|
|
};
|