src/ui/multiplyfactordialog.h

Wed, 22 Jun 2022 20:10:57 +0300

author
Teemu Piippo <teemu.s.piippo@gmail.com>
date
Wed, 22 Jun 2022 20:10:57 +0300
changeset 251
94b0a30a1886
parent 206
654661eab7f3
permissions
-rw-r--r--

Add object editor into main

#pragma once
#include <QDialog>
#include "../basics.h"
#include "../widgets/vec3editor.h"

namespace Ui
{
	class MultiplyFactorDialog;
}

class MultiplyFactorDialog : public QDialog
{
	Q_OBJECT
public:
	explicit MultiplyFactorDialog(const glm::vec3& baseVector = glm::vec3{}, QWidget *parent = nullptr);
	~MultiplyFactorDialog();
	glm::vec3 value() const;
private:
	Q_SLOT void updatePreview();
	std::unique_ptr<Ui::MultiplyFactorDialog> ui;
	const glm::vec3 baseVector;
	Vec3Editor preview;
};

mercurial