16#ifndef QGSADVANCEDDIGITIZINGFLOATER
17#define QGSADVANCEDDIGITIZINGFLOATER
19#include "ui_qgsadvanceddigitizingfloaterbase.h"
55 CommonAngleSnapping = 1 << 6,
60 TotalLength = 1 << 11,
155 void changeX(
const QString &text );
156 void changeY(
const QString &text );
157 void changeZ(
const QString &text );
158 void changeM(
const QString &text );
159 void changeCommonAngleSnapping(
double angle );
160 void changeDistance(
const QString &text );
161 void changeAngle(
const QString &text );
162 void changeBearing(
const QString &text );
163 void changeArea(
const QString &text );
164 void changeTotalLength(
const QString &text );
165 void changeLockX(
bool locked );
166 void changeLockY(
bool locked );
167 void changeLockZ(
bool locked );
168 void changeLockM(
bool locked );
169 void changeLockDistance(
bool locked );
170 void changeLockAngle(
bool locked );
171 void changeRelativeX(
bool relative );
172 void changeRelativeY(
bool relative );
173 void changeRelativeZ(
bool relative );
174 void changeRelativeM(
bool relative );
176 void changeRelativeAngle(
bool relative );
182 void focusOnDistance();
183 void enabledChangedX(
bool enabled );
184 void enabledChangedY(
bool enabled );
185 void enabledChangedZ(
bool enabled );
186 void enabledChangedM(
bool enabled );
187 void enabledChangedAngle(
bool enabled );
188 void enabledChangedDistance(
bool enabled );
189 void enabledCommonAngleSnapping(
bool enabled );
190 void enabledChangedBearing(
bool enabled );
197 QPointer<QgsAdvancedDigitizingDockWidget> mCadDockWidget;
203 bool eventFilter( QObject *obj, QEvent *event )
override SIP_FORCE;
209 void updatePos(
const QPoint &pos );
214 void hideIfDisabled();
217 bool mActive =
false;
CadMeasurementDisplayType
Advanced digitizing measurement display types.
bool itemVisibility(QgsAdvancedDigitizingFloater::FloaterItem item) const
Returns true if the floater item visibility setting is enabled.
void setItemVisibility(QgsAdvancedDigitizingFloater::FloaterItem item, bool visible)
Set whether the floater item should be visible or not.
QgsAdvancedDigitizingFloater(QgsMapCanvas *canvas, QgsAdvancedDigitizingDockWidget *cadDockWidget)
Create an advanced digitizing floater widget.
FloaterItem
Available floater items.
void setActive(bool active)
Set whether the floater should be active or not.
void setItemMeasurementType(QgsAdvancedDigitizingFloater::FloaterItem item, Qgis::CadMeasurementDisplayType type)
Set whether the measurement display type for a floater item.
void enabledChangedWeight(bool enabled)
Shows or hides the weight widget in the floater for NURBSCurve.
void focusOnWeight()
Requests focus on the weight input field for NURBSCurve.
void changeWeight(const QString &text)
Updates the weight value displayed in the floater for NURBSCurve.
QFlags< FloaterItem > FloaterItems
static bool itemSupportsMeasurementType(QgsAdvancedDigitizingFloater::FloaterItem item)
Returns true if a floater item supports display in different Qgis::CadMeasurementDisplayType values.
bool active()
Whether the floater is active or not.
Qgis::CadMeasurementDisplayType itemMeasurementDisplayType(QgsAdvancedDigitizingFloater::FloaterItem item) const
Returns the measurement display type for a floater item.
Map canvas is a class for displaying all GIS data types on a canvas.
#define SIP_ENUM_BASETYPE(type)