src/editmodes/linePathMode.h

Tue, 03 Mar 2015 17:42:21 +0200

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Tue, 03 Mar 2015 17:42:21 +0200
changeset 932
738673e8a6b4
parent 876
f040f0fb3795
child 1000
c064cc048f14
permissions
-rw-r--r--

- moved ui files to src/

#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