Fri, 04 Jul 2014 22:40:35 +0300
- more work on edit modes
#include "abstracteditmode.h" class DrawMode : public AbstractDrawMode { DEFINE_CLASS (DrawMode, AbstractDrawMode) bool _rectdraw; public: DrawMode (GLRenderer* renderer); virtual void render (QPainter& painter) const override; virtual EditModeType type() const override; virtual bool preAddVertex (Vertex const& pos) override; virtual bool mouseReleased (MouseEventData const& data) override; };