16 #ifndef QGSADVANCEDDIGITIZINGDOCK 17 #define QGSADVANCEDDIGITIZINGDOCK 23 #include <ui_qgsadvanceddigitizingdockwidgetbase.h> 46 Q_FLAGS( CadCapacities )
59 RelativeCoordinates = 4,
98 : mLineEdit( lineEdit )
99 , mLockerButton( lockerButton )
100 , mRelativeButton( relativeButton )
101 , mRepeatingLockButton( repeatingLockButton )
102 , mLockMode( NoLock )
103 , mRepeatingLock( false )
116 bool isLocked()
const {
return mLockMode != NoLock; }
132 double value()
const {
return mValue; }
150 void setRepeatingLock(
bool repeating );
155 void setRelative(
bool relative );
162 void setValue(
double value,
bool updateWidget =
true );
172 void toggleRelative();
229 bool canvasKeyPressEventFilter(
QKeyEvent *e );
247 void keyPressEvent(
QKeyEvent* e )
override;
273 QgsPoint currentPoint(
bool* exists =
nullptr )
const;
280 QgsPoint previousPoint(
bool* exists =
nullptr )
const;
287 QgsPoint penultimatePoint(
bool* exists =
nullptr )
const;
326 void pushWarning(
const QString& message );
339 void pointChanged(
const QgsPoint& point );
343 void addtionalConstraintClicked(
bool activated );
346 void lockConstraint(
bool activate =
true );
350 void constraintTextEdited(
const QString& textValue );
354 void constraintFocusOut();
358 void releaseLocks(
bool releaseRepeatingLocks =
true );
361 void setConstraintRelative(
bool activate );
364 void setConstraintRepeatingLock(
bool activate );
368 void activateCad(
bool enabled );
371 void setConstructionMode(
bool enabled );
374 void settingsButtonTriggered(
QAction* action );
378 void setCadEnabled(
bool enabled );
384 void updateCapacity(
bool updateUIwithoutChange =
false );
396 void addPoint(
const QgsPoint& point );
398 void updateCurrentPoint(
const QgsPoint& point );
400 void removePreviousPoint();
412 void triggerMouseMoveEvent();
418 double parseUserInput(
const QString& inputValue,
bool& ok )
const;
425 void updateConstraintValue(
CadConstraint* constraint,
const QString& textValue,
bool convertExpression =
false );
430 CadCapacities mCapacities;
432 bool mCurrentMapToolSupportsCad;
437 bool mConstructionMode;
446 int mCommonAngleConstraint;
451 bool mSnappedToVertex;
465 Q_DECLARE_OPERATORS_FOR_FLAGS( QgsAdvancedDigitizingDockWidget::CadCapacities )
467 #endif // QGSADVANCEDDIGITIZINGDOCK_H
A QgsMapMouseEvent is the result of a user interaction with the mouse on a QgsMapCanvas.
Map canvas is a class for displaying all GIS data types on a canvas.
A class to represent a point.
The QgsAdvancedDigitizingCanvasItem class draws the graphical elements of the CAD tools (...