Skip to content

Commit 31e5041

Browse files
committed
Add comments for new functions
1 parent 2ef84cc commit 31e5041

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

python/core/qgsproject.sip

+9
Original file line numberDiff line numberDiff line change
@@ -240,12 +240,21 @@ public:
240240
@note added in 1.4 */
241241
void setBadLayerHandler( QgsProjectBadLayerHandler* handler );
242242

243+
/**Convenience function to set snap settings per layer
244+
@note added in version 1.9*/
243245
void setSnapSettingsForLayer( const QString& layerId, bool enabled, QgsSnapper::SnappingType type, QgsTolerance::UnitType unit, double tolerance, bool avoidIntersection );
244246

247+
/**Convenience function to query snap settings of a layer
248+
@note added in version 1.9*/
245249
bool snapSettingsForLayer( const QString& layerId, bool& enabled /Out/, QgsSnapper::SnappingType& type /Out/, QgsTolerance::UnitType& units /Out/, double& tolerance /Out/,
246250
bool& avoidIntersection /Out/ );
247251

252+
/**Convenience function to set topological editing
253+
@note added in version 1.9*/
248254
void setTopologicalEditing( bool enabled );
255+
256+
/**Convenience function to query topological editing status
257+
@note added in version 1.9*/
249258
bool topologicalEditing() const;
250259

251260
protected:

src/core/qgsproject.h

+9-1
Original file line numberDiff line numberDiff line change
@@ -290,14 +290,22 @@ class CORE_EXPORT QgsProject : public QObject
290290
bool createEmbeddedLayer( const QString& layerId, const QString& projectFilePath, QList<QDomNode>& brokenNodes,
291291
QList< QPair< QgsVectorLayer*, QDomElement > >& vectorLayerList, bool saveFlag = true );
292292

293-
//convenience interface for querying / modifying the project snap settings per layer
293+
/**Convenience function to set snap settings per layer
294+
@note added in version 1.9*/
294295
void setSnapSettingsForLayer( const QString& layerId, bool enabled, QgsSnapper::SnappingType type, QgsTolerance::UnitType unit, double tolerance,
295296
bool avoidIntersection );
296297

298+
/**Convenience function to query snap settings of a layer
299+
@note added in version 1.9*/
297300
bool snapSettingsForLayer( const QString& layerId, bool& enabled, QgsSnapper::SnappingType& type, QgsTolerance::UnitType& units, double& tolerance,
298301
bool& avoidIntersection ) const;
299302

303+
/**Convenience function to set topological editing
304+
@note added in version 1.9*/
300305
void setTopologicalEditing( bool enabled );
306+
307+
/**Convenience function to query topological editing status
308+
@note added in version 1.9*/
301309
bool topologicalEditing() const;
302310

303311
protected:

0 commit comments

Comments
 (0)