This repository has been archived on 2020-03-08. You can view files and clone it, but cannot push or open issues or pull requests.
pg-tp3/settingsdialog.h

35 lines
941 B
C++

#ifndef SETTINGSDIALOG_H
#define SETTINGSDIALOG_H
#include "ui_settingsdialog.h"
#include "glarea.h"
class SettingsDialog : public QDialog, private Ui::SettingsDialog
{
Q_OBJECT
GLArea *glarea;
// static void setupSlider(const Property<double> &p, QSlider *s);
// static int rawToSlider(const Property<double> &p);
// static double sliderToRaw(const Property<double> &p, int value);
public:
explicit SettingsDialog(QWidget *parent = nullptr);
void setGLArea(GLArea *area);
// public slots:
// void setDistance(double raw_value);
// void setFocalLength(double raw_value);
// void setNearClip(double raw_value);
// void setFarClip(double raw_value);
// void setAngle(double raw_value);
// protected slots:
// void onSliderDistance(int value);
// void onSliderFocalLength(int value);
// void onSliderNearClip(int value);
// void onSliderFarClip(int value);
// void onSliderAngle(int value);
};
#endif // SETTINGSDIALOG_H