15#ifndef QGSPROJECTGPSSETTINGS_H
16#define QGSPROJECTGPSSETTINGS_H
42 Q_PROPERTY(
bool automaticallyAddTrackVertices READ automaticallyAddTrackVertices WRITE setAutomaticallyAddTrackVertices NOTIFY automaticallyAddTrackVerticesChanged )
43 Q_PROPERTY(
bool automaticallyCommitFeatures READ automaticallyCommitFeatures WRITE setAutomaticallyCommitFeatures NOTIFY automaticallyCommitFeaturesChanged )
44 Q_PROPERTY(
QgsVectorLayer *destinationLayer READ destinationLayer WRITE setDestinationLayer NOTIFY destinationLayerChanged )
56 void resolveReferences(
const QgsProject *project );
82 bool automaticallyAddTrackVertices()
const;
92 bool automaticallyCommitFeatures()
const;
101 bool destinationFollowsActiveLayer()
const;
121 QMap< QString, QString > destinationTimeStampFields()
const;
130 QString destinationTimeStampField()
const;
141 void setAutomaticallyAddTrackVertices(
bool enabled );
151 void setAutomaticallyCommitFeatures(
bool enabled );
160 void setDestinationFollowsActiveLayer(
bool follow );
238 bool mAutoAddTrackVertices =
false;
239 bool mAutoCommitFeatures =
false;
241 bool mDestinationFollowsActiveLayer =
true;
244 QMap<QString, QString> mDestinationTimestampFields;
Contains settings and properties relating to how a QgsProject should interact with a GPS device.
void destinationFollowsActiveLayerChanged(bool follows)
Emitted whenever the destinationFollowsActiveLayer() setting is changed.
void destinationLayerChanged(QgsVectorLayer *layer)
Emitted whenever the destination layer for features digitized from GPS is changed.
void destinationTimeStampFieldChanged(const QString &field)
Emitted whenever the destination field for automatic time stamps is changed.
~QgsProjectGpsSettings() override
void automaticallyCommitFeaturesChanged(bool enabled)
Emitted whenever the automaticallyCommitFeatures() setting is changed.
void automaticallyAddTrackVerticesChanged(bool enabled)
Emitted whenever the automaticallyAddTrackVertices() setting is changed.
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
The class is used as a container of context for various read/write operations on other objects.
Represents a vector layer which manages a vector based data sets.