src/ui/multiplyfactordialog.h

Fri, 04 Mar 2022 11:37:50 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Fri, 04 Mar 2022 11:37:50 +0200
changeset 152
03f8e6d42e13
parent 81
62373840e33a
child 206
654661eab7f3
permissions
-rw-r--r--

Major refactoring
- Model now just stores objects
- Document contains business logic
- Model::EditContext is now ModelEditor, no longer a nested class

#pragma once
#include <QDialog>
#include "../main.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