2017-01-23 16:09:06 +01:00
|
|
|
#pragma once
|
|
|
|
#include <QWidget>
|
|
|
|
#include "ui_SettingsWindow.h"
|
2017-01-24 17:09:51 +01:00
|
|
|
#include <QVector3D>
|
2017-01-23 16:09:06 +01:00
|
|
|
|
2017-01-28 16:54:36 +01:00
|
|
|
|
2017-01-23 16:09:06 +01:00
|
|
|
class SettingsWindow : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2017-02-08 14:29:22 +01:00
|
|
|
SettingsWindow(QWidget * parent = Q_NULLPTR);
|
2017-01-23 16:09:06 +01:00
|
|
|
~SettingsWindow();
|
2017-05-30 21:38:51 -05:00
|
|
|
QString getDirList();
|
2017-01-23 16:09:06 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::SettingsWindow* ui;
|
|
|
|
|
2017-01-26 18:17:54 +01:00
|
|
|
void setupConnections();
|
|
|
|
|
2017-05-31 03:09:20 -05:00
|
|
|
private:
|
|
|
|
QString dirList;
|
|
|
|
|
2017-01-23 16:09:06 +01:00
|
|
|
private slots:
|
|
|
|
void autoColorToggled();
|
|
|
|
void radioToggled();
|
2017-01-24 17:09:51 +01:00
|
|
|
void backgroundColorOffChanged();
|
|
|
|
void backgroundColorOnChanged();
|
|
|
|
void lightColorChanged();
|
|
|
|
|
2017-05-31 03:09:20 -05:00
|
|
|
void on_addItem_clicked();
|
|
|
|
void on_removeItem_clicked();
|
|
|
|
|
2017-01-24 17:09:51 +01: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 11:31:37 +01:00
|
|
|
void sendHeadlight(bool value);
|
2017-01-29 23:47:14 +01:00
|
|
|
void sendBackfaceCulling(bool value);
|
|
|
|
void sendZommSpeed(int percent);
|
2017-02-08 14:29:22 +01:00
|
|
|
void changeLightType(int value);
|
2017-01-30 11:31:37 +01:00
|
|
|
|
2017-05-30 21:38:51 -05:00
|
|
|
};
|