src/editmodes/linePathMode.h

Wed, 05 Nov 2014 03:49:29 +0200

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Wed, 05 Nov 2014 03:49:29 +0200
branch
experimental
changeset 907
cf150959ccc4
parent 876
f040f0fb3795
child 1000
c064cc048f14
permissions
-rw-r--r--

- bfc stuff (at least it works now...)

#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