src/widgets/vertexobjecteditor.h

Sat, 17 Mar 2018 23:59:15 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Sat, 17 Mar 2018 23:59:15 +0200
changeset 1296
aee618d087ff
child 1297
389516787a4c
permissions
-rw-r--r--

Added vertex object editing dialog

#pragma once
#include <QDialog>
#include "../main.h"

class VertexObjectEditor : public QDialog
{
	Q_OBJECT

public:
	VertexObjectEditor(LDObject* object = nullptr, QWidget* parent = nullptr);
	~VertexObjectEditor();

	void accept() override;

private:
	class QDoubleSpinBox* spinboxAt(int i, Axis axis);
	void setColorButton(LDColor color);

	class Ui_VertexObjectEditor& ui;
	class QGridLayout* vertexGrid;
	LDObject* const object;
	LDColor currentColor;
};

mercurial