Skip to content

Commit

Permalink
Requests for QgsMapToolAddCircle
Browse files Browse the repository at this point in the history
  • Loading branch information
lbartoletti committed Oct 9, 2017
1 parent 79a2fd7 commit d377970
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/app/qgsmaptooladdcircle.cpp
Expand Up @@ -26,7 +26,6 @@
QgsMapToolAddCircle::QgsMapToolAddCircle( QgsMapToolCapture *parentTool, QgsMapCanvas *canvas, CaptureMode mode )
: QgsMapToolCapture( canvas, QgisApp::instance()->cadDockWidget(), mode )
, mParentTool( parentTool )
, mCircle( QgsCircle() )
{
clean();
}
Expand Down
10 changes: 6 additions & 4 deletions src/app/qgsmaptooladdcircle.h
Expand Up @@ -29,7 +29,7 @@ struct EdgesOnlyFilter : public QgsPointLocator::MatchFilter
class QgsMapToolAddCircle: public QgsMapToolCapture
{
Q_OBJECT
void clean();

public:
QgsMapToolAddCircle( QgsMapToolCapture *parentTool, QgsMapCanvas *canvas, CaptureMode mode = CaptureLine );
~QgsMapToolAddCircle();
Expand All @@ -38,22 +38,24 @@ class QgsMapToolAddCircle: public QgsMapToolCapture
void keyReleaseEvent( QKeyEvent *e ) override;

void deactivate() override;

void activate() override;

protected:
explicit QgsMapToolAddCircle( QgsMapCanvas *canvas ); //forbidden
explicit QgsMapToolAddCircle( QgsMapCanvas *canvas ) = delete; //forbidden

/** The parent map tool, e.g. the add feature tool.
* Completed circle will be added to this tool by calling its addCurve() method.
* */
QgsMapToolCapture *mParentTool;
QgsMapToolCapture *mParentTool = nullptr;
//! Circle points (in map coordinates)
QgsPointSequence mPoints;
//! The rubberband to show the circular string currently working on
QgsGeometryRubberBand *mTempRubberBand = nullptr;
//! Circle
QgsCircle mCircle;

private:
void clean();
};

#endif // QGSMAPTOOLADDCIRCLE_H

0 comments on commit d377970

Please sign in to comment.