Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
|
@@ -24,13 +24,10 @@ email : matthias@opengis.ch |
|
|
QgsGeometryValidationService::QgsGeometryValidationService( QgsProject *project ) |
|
|
{ |
|
|
connect( project, &QgsProject::layersAdded, this, &QgsGeometryValidationService::onLayersAdded ); |
|
|
|
|
|
mIsValidGeometryCheck = new QgsIsValidGeometryCheck(); |
|
|
} |
|
|
|
|
|
QgsGeometryValidationService::~QgsGeometryValidationService() |
|
|
{ |
|
|
delete mIsValidGeometryCheck; |
|
|
} |
|
|
|
|
|
bool QgsGeometryValidationService::validationActive( QgsVectorLayer *layer, QgsFeatureId feature ) const |
|
|
|
@@ -27,6 +27,11 @@ class QgsVectorLayer; |
|
|
// TODO: Should be retrieved from registry!! |
|
|
class QgsIsValidGeometryCheck; |
|
|
|
|
|
|
|
|
/** |
|
|
* This service connects to all layers in a project and triggers validation |
|
|
* of features whenever they are edited. |
|
|
*/ |
|
|
class QgsGeometryValidationService : public QObject |
|
|
{ |
|
|
Q_OBJECT |
|
@@ -49,6 +54,10 @@ class QgsGeometryValidationService : public QObject |
|
|
QgsGeometryValidationService( QgsProject *project ); |
|
|
~QgsGeometryValidationService(); |
|
|
|
|
|
/** |
|
|
* Returns if a validation is active for the specified \a feature on |
|
|
* \a layer. |
|
|
*/ |
|
|
bool validationActive( QgsVectorLayer *layer, QgsFeatureId feature ) const; |
|
|
|
|
|
signals: |
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.