src/editmodes/linePathMode.h

Wed, 22 Oct 2014 20:53:15 +0300

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Wed, 22 Oct 2014 20:53:15 +0300
changeset 901
6e89eaa1df70
parent 876
f040f0fb3795
child 1000
c064cc048f14
permissions
-rw-r--r--

- zoom-to-fit now works.. better than before
- zooming no longer jumps to absurd values when zooming in enough

#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