mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Add missing docs
This commit is contained in:
parent
0736bf726d
commit
21eab8c2ea
@ -447,6 +447,12 @@ class QgsMapLayer : QObject
|
||||
*/
|
||||
virtual QString loadNamedStyle( const QString& uri, bool &resultFlag /Out/ );
|
||||
|
||||
/** Retrieve a named style for this layer from a sqlite database.
|
||||
* @param db path to sqlite database
|
||||
* @param uri uri for table
|
||||
* @param qml will be set to QML style content from database
|
||||
* @returns true if style was successfully loaded
|
||||
*/
|
||||
virtual bool loadNamedStyleFromDb( const QString &db, const QString &uri, QString &qml /Out/ );
|
||||
|
||||
/**
|
||||
@ -500,7 +506,22 @@ class QgsMapLayer : QObject
|
||||
*/
|
||||
virtual QString saveNamedStyle( const QString &uri, bool &resultFlag /Out/ );
|
||||
|
||||
/** Saves the properties of this layer to an SLD format file.
|
||||
* @param uri uri of destination for exported SLD file.
|
||||
* @param resultFlag a reference to a flag that will be set to false if
|
||||
* the SLD file could not be generated
|
||||
* @returns a string with any status or error messages
|
||||
* @see loadSldStyle()
|
||||
*/
|
||||
virtual QString saveSldStyle( const QString &uri, bool &resultFlag ) const;
|
||||
|
||||
/** Attempts to style the layer using the formatting from an SLD type file.
|
||||
* @param uri uri of source SLD file
|
||||
* @param resultFlag a reference to a flag that will be set to false if
|
||||
* the SLD file could not be loaded
|
||||
* @returns a string with any status or error messages
|
||||
* @see saveSldStyle()
|
||||
*/
|
||||
virtual QString loadSldStyle( const QString &uri, bool &resultFlag );
|
||||
|
||||
virtual bool readSld( const QDomNode &node, QString &errorMessage );
|
||||
|
@ -1083,8 +1083,14 @@ class QgsVectorLayer : QgsMapLayer
|
||||
* so if a stage fails, it's difficult to roll back cleanly.
|
||||
* Therefore any error message also includes which stage failed so
|
||||
* that the user has some chance of repairing the damage cleanly.
|
||||
* @see commitErrors()
|
||||
*/
|
||||
bool commitChanges();
|
||||
|
||||
/** Returns a list containing any error messages generated when attempting
|
||||
* to commit changes to the layer.
|
||||
* @see commitChanges()
|
||||
*/
|
||||
QStringList commitErrors() const;
|
||||
|
||||
/** Stop editing and discard the edits
|
||||
|
@ -466,6 +466,12 @@ class CORE_EXPORT QgsMapLayer : public QObject
|
||||
*/
|
||||
virtual QString loadNamedStyle( const QString& uri, bool &resultFlag );
|
||||
|
||||
/** Retrieve a named style for this layer from a sqlite database.
|
||||
* @param db path to sqlite database
|
||||
* @param uri uri for table
|
||||
* @param qml will be set to QML style content from database
|
||||
* @returns true if style was successfully loaded
|
||||
*/
|
||||
virtual bool loadNamedStyleFromDb( const QString &db, const QString &uri, QString &qml );
|
||||
|
||||
/**
|
||||
@ -520,7 +526,22 @@ class CORE_EXPORT QgsMapLayer : public QObject
|
||||
*/
|
||||
virtual QString saveNamedStyle( const QString &uri, bool &resultFlag );
|
||||
|
||||
/** Saves the properties of this layer to an SLD format file.
|
||||
* @param uri uri of destination for exported SLD file.
|
||||
* @param resultFlag a reference to a flag that will be set to false if
|
||||
* the SLD file could not be generated
|
||||
* @returns a string with any status or error messages
|
||||
* @see loadSldStyle()
|
||||
*/
|
||||
virtual QString saveSldStyle( const QString &uri, bool &resultFlag ) const;
|
||||
|
||||
/** Attempts to style the layer using the formatting from an SLD type file.
|
||||
* @param uri uri of source SLD file
|
||||
* @param resultFlag a reference to a flag that will be set to false if
|
||||
* the SLD file could not be loaded
|
||||
* @returns a string with any status or error messages
|
||||
* @see saveSldStyle()
|
||||
*/
|
||||
virtual QString loadSldStyle( const QString &uri, bool &resultFlag );
|
||||
|
||||
virtual bool readSld( const QDomNode &node, QString &errorMessage )
|
||||
|
@ -1472,8 +1472,14 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer
|
||||
* so if a stage fails, it's difficult to roll back cleanly.
|
||||
* Therefore any error message also includes which stage failed so
|
||||
* that the user has some chance of repairing the damage cleanly.
|
||||
* @see commitErrors()
|
||||
*/
|
||||
bool commitChanges();
|
||||
|
||||
/** Returns a list containing any error messages generated when attempting
|
||||
* to commit changes to the layer.
|
||||
* @see commitChanges()
|
||||
*/
|
||||
QStringList commitErrors() const;
|
||||
|
||||
/** Stop editing and discard the edits
|
||||
|
@ -37,7 +37,12 @@ class QgsVectorLayerFeatureIterator;
|
||||
class QgsVectorLayerFeatureSource : public QgsAbstractFeatureSource
|
||||
{
|
||||
public:
|
||||
|
||||
/** Constructor for QgsVectorLayerFeatureSource.
|
||||
* @param layer source layer
|
||||
*/
|
||||
explicit QgsVectorLayerFeatureSource( const QgsVectorLayer* layer );
|
||||
|
||||
~QgsVectorLayerFeatureSource();
|
||||
|
||||
virtual QgsFeatureIterator getFeatures( const QgsFeatureRequest& request ) override;
|
||||
|
Loading…
x
Reference in New Issue
Block a user