src/editmodes/linePathMode.h

Sun, 04 Oct 2015 04:27:38 +0300

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Sun, 04 Oct 2015 04:27:38 +0300
changeset 1001
024cbc902e75
parent 1000
c064cc048f14
child 1006
a6b462051ae0
permissions
-rw-r--r--

Added some pretty pics that I left out of the previous commit.
I seriously need to make a Mercurial hook to warn me if I'm going to commit with unignored, untracked files lying around..

#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() override;
};

mercurial