Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename QgsGeometryCheckFix to QgsGeometryCheckResolutionMethod
- Loading branch information
Showing
14 changed files
with
154 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 0 additions & 29 deletions
29
src/analysis/vector/geometry_checker/qgsgeometrycheckfix.cpp
This file was deleted.
Oops, something went wrong.
42 changes: 0 additions & 42 deletions
42
src/analysis/vector/geometry_checker/qgsgeometrycheckfix.h
This file was deleted.
Oops, something went wrong.
44 changes: 44 additions & 0 deletions
44
src/analysis/vector/geometry_checker/qgsgeometrycheckresolutionmethod.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/*************************************************************************** | ||
qgsgeometrycheckresolutionmethod.cpp | ||
-------------------------------------- | ||
Date : January 2020 | ||
Copyright : (C) 2020 Matthias Kuhn | ||
Email : matthias@opengis.ch | ||
*************************************************************************** | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
* the Free Software Foundation; either version 2 of the License, or * | ||
* (at your option) any later version. * | ||
* * | ||
***************************************************************************/ | ||
|
||
#include "qgsgeometrycheckresolutionmethod.h" | ||
|
||
QgsGeometryCheckResolutionMethod::QgsGeometryCheckResolutionMethod( int id, const QString &name, const QString &description, bool isStable ) | ||
{ | ||
mId = id; | ||
mName = name; | ||
mDescription = description; | ||
mIsStable = isStable; | ||
} | ||
|
||
int QgsGeometryCheckResolutionMethod::id() const | ||
{ | ||
return mId; | ||
} | ||
|
||
bool QgsGeometryCheckResolutionMethod::isStable() const | ||
{ | ||
return mIsStable; | ||
} | ||
|
||
QString QgsGeometryCheckResolutionMethod::name() const | ||
{ | ||
return mName; | ||
} | ||
|
||
QString QgsGeometryCheckResolutionMethod::description() const | ||
{ | ||
return mDescription; | ||
} |
56 changes: 56 additions & 0 deletions
56
src/analysis/vector/geometry_checker/qgsgeometrycheckresolutionmethod.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/*************************************************************************** | ||
qgsgeometrycheckresolutionmethod.h | ||
-------------------------------------- | ||
Date : January 2020 | ||
Copyright : (C) 2020 Matthias Kuhn | ||
Email : matthias@opengis.ch | ||
*************************************************************************** | ||
* * | ||
* This program is free software; you can redistribute it and/or modify * | ||
* it under the terms of the GNU General Public License as published by * | ||
* the Free Software Foundation; either version 2 of the License, or * | ||
* (at your option) any later version. * | ||
* * | ||
***************************************************************************/ | ||
|
||
#ifndef QGSGEOMETRYCHECKRESOLUTIONMETHOD_H | ||
#define QGSGEOMETRYCHECKRESOLUTIONMETHOD_H | ||
|
||
#include <QString> | ||
#include "qgis_analysis.h" | ||
|
||
/** | ||
* This class implements a fix for problems detected in geometry checks. | ||
* | ||
* \since QGIS 3.12 | ||
*/ | ||
class ANALYSIS_EXPORT QgsGeometryCheckResolutionMethod | ||
{ | ||
public: | ||
QgsGeometryCheckResolutionMethod( int id, const QString &name, const QString &description, bool isStable = true ); | ||
|
||
int id() const; | ||
|
||
/** | ||
* If this fix is stable enough to be listed by default. | ||
*/ | ||
bool isStable() const; | ||
|
||
/** | ||
* A human readable and translated name for this fix. | ||
*/ | ||
QString name() const; | ||
|
||
/** | ||
* A human readable and translated description for this fix. | ||
*/ | ||
QString description() const; | ||
|
||
private: | ||
int mId = -1; | ||
bool mIsStable = false; | ||
QString mName; | ||
QString mDescription; | ||
}; | ||
|
||
#endif // QGSGEOMETRYCHECKRESOLUTIONMETHOD_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters