src/widgets/vec3editor.h

changeset 252
da4876bfd822
parent 251
94b0a30a1886
child 253
8b994c917f69
--- a/src/widgets/vec3editor.h	Wed Jun 22 20:10:57 2022 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,30 +0,0 @@
-#pragma once
-#include <QWidget>
-#include "basics.h"
-
-namespace Ui
-{
-	class Vec3Editor;
-}
-
-class Vec3Editor : public QWidget
-{
-	Q_OBJECT
-public:
-	enum Flag
-	{
-		NoMultiplyButton = 0x1
-	};
-	explicit Vec3Editor(const glm::vec3& value, QWidget* parent = nullptr, QFlags<Flag> flags = {});
-	~Vec3Editor();
-	glm::vec3 value() const;
-	void setValue(const glm::vec3& value);
-Q_SIGNALS:
-	void valueChanged(const glm::vec3& value);
-private:
-	std::array<class DoubleSpinBox*, 3> spinboxes();
-	Q_SLOT void multiplyPressed();
-	std::unique_ptr<Ui::Vec3Editor> ui;
-};
-
-Q_DECLARE_OPERATORS_FOR_FLAGS(QFlags<Vec3Editor::Flag>)

mercurial