src/editmodes/linePathMode.h

Thu, 06 Nov 2014 15:49:43 +0200

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Thu, 06 Nov 2014 15:49:43 +0200
branch
experimental
changeset 919
fde3eadb1132
parent 876
f040f0fb3795
child 1000
c064cc048f14
permissions
-rw-r--r--

- closed old head

#pragma once
#include "abstractEditMode.h"

class LinePathMode : public AbstractDrawMode
{
	DEFINE_CLASS (LinePathMode, AbstractDrawMode)

public:
	LinePathMode (GLRenderer* renderer);

	void render (QPainter& painter) const override;
	EditModeType type() const override { return EditModeType::LinePath; }
	bool mouseReleased (MouseEventData const& data) override;
	bool preAddVertex (Vertex const& pos) override;
	bool keyReleased (QKeyEvent*) override;
	void endDraw();
};

mercurial