Skip to content

Commit

Permalink
Fix doxygen warnings/missing docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Oct 24, 2016
1 parent 2fb8695 commit 2fab1b8
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 10 deletions.
5 changes: 4 additions & 1 deletion src/analysis/vector/qgszonalstatistics.h
Expand Up @@ -52,8 +52,11 @@ class ANALYSIS_EXPORT QgsZonalStatistics
};
Q_DECLARE_FLAGS( Statistics, Statistic )

/**
* Constructor for QgsZonalStatistics.
*/
QgsZonalStatistics( QgsVectorLayer* polygonLayer, const QString& rasterFile, const QString& attributePrefix = "", int rasterBand = 1,
QgsZonalStatistics::Statistics stats = Statistics( Count | Sum | Mean ) );
Statistics stats = Statistics( Count | Sum | Mean ) );

/** Starts the calculation
@return 0 in case of success*/
Expand Down
25 changes: 21 additions & 4 deletions src/core/qgsdataitem.h
Expand Up @@ -186,13 +186,18 @@ class CORE_EXPORT QgsDataItem : public QObject
};
Q_DECLARE_FLAGS( Capabilities, Capability )

// This will _write_ selected crs in data source
virtual bool setCrs( const QgsCoordinateReferenceSystem& crs )
{ Q_UNUSED( crs ); return false; }
/**
* Writes the selected crs into data source. The original data source will be modified when calling this
* method.
*/
virtual bool setCrs( const QgsCoordinateReferenceSystem& crs ) { Q_UNUSED( crs ); return false; }

// ### QGIS 3 - rename to capabilities()
virtual Capabilities capabilities2() const { return mCapabilities; }

/**
* Sets the capabilities for the data item.
*/
virtual void setCapabilities( Capabilities capabilities ) { mCapabilities = capabilities; }

// static methods
Expand Down Expand Up @@ -236,7 +241,12 @@ class CORE_EXPORT QgsDataItem : public QObject

protected:
virtual void populate( const QVector<QgsDataItem*>& children );

/**
* Refresh the items from a specified list of child items.
*/
virtual void refresh( const QVector<QgsDataItem *> &children );

/** The item is scheduled to be deleted. E.g. if deleteLater() is called when
* item is in Populating state (createChildren() running in another thread),
* the deferredDelete() returns true and item will be deleted once Populating finished.
Expand Down Expand Up @@ -555,8 +565,15 @@ class CORE_EXPORT QgsZipItem : public QgsDataCollectionItem

static QString vsiPrefix( const QString& uri ) { return qgsVsiPrefix( uri ); }

/**
* Creates a new data item from the specified path.
*/
static QgsDataItem* itemFromPath( QgsDataItem* parent, const QString &path, const QString &name );
//! @note available in python as itemFromFilePath

/**
* Creates a new data item from the specified path.
* @note available in python as itemFromFilePath
*/
static QgsDataItem* itemFromPath( QgsDataItem* parent, const QString& filePath, const QString& name, const QString& path );

static const QIcon &iconZip();
Expand Down
4 changes: 4 additions & 0 deletions src/gui/qgsdialog.h
Expand Up @@ -31,6 +31,10 @@ class GUI_EXPORT QgsDialog : public QDialog
{
Q_OBJECT
public:

/**
* Constructor for QgsDialog.
*/
QgsDialog( QWidget *parent = nullptr, Qt::WindowFlags fl = QgisGui::ModalDialogFlags,
QDialogButtonBox::StandardButtons buttons = QDialogButtonBox::Close,
Qt::Orientation orientation = Qt::Horizontal );
Expand Down
6 changes: 3 additions & 3 deletions src/gui/qgsmaplayeractionregistry.h
Expand Up @@ -45,13 +45,13 @@ class GUI_EXPORT QgsMapLayerAction : public QAction

//! Creates a map layer action which can run on any layer
//! @note using AllActions as a target probably does not make a lot of sense. This default action was settled for API compatiblity reasons.
QgsMapLayerAction( const QString& name, QObject *parent, QgsMapLayerAction::Targets targets = AllActions, const QIcon& icon = QIcon() );
QgsMapLayerAction( const QString& name, QObject *parent, Targets targets = AllActions, const QIcon& icon = QIcon() );

//! Creates a map layer action which can run only on a specific layer
QgsMapLayerAction( const QString& name, QObject *parent, QgsMapLayer* layer, QgsMapLayerAction::Targets targets = AllActions, const QIcon& icon = QIcon() );
QgsMapLayerAction( const QString& name, QObject *parent, QgsMapLayer* layer, Targets targets = AllActions, const QIcon& icon = QIcon() );

//! Creates a map layer action which can run on a specific type of layer
QgsMapLayerAction( const QString& name, QObject *parent, QgsMapLayer::LayerType layerType, QgsMapLayerAction::Targets targets = AllActions, const QIcon& icon = QIcon() );
QgsMapLayerAction( const QString& name, QObject *parent, QgsMapLayer::LayerType layerType, Targets targets = AllActions, const QIcon& icon = QIcon() );

~QgsMapLayerAction();

Expand Down
4 changes: 2 additions & 2 deletions src/gui/qgsmaptoolidentify.h
Expand Up @@ -123,7 +123,7 @@ class GUI_EXPORT QgsMapToolIdentify : public QgsMapTool
@param mode Identification mode. Can use Qgis default settings or a defined mode.
@param layerType Only performs identification in a certain type of layers (raster, vector). Default value is AllLayers.
@return a list of IdentifyResult*/
QList<IdentifyResult> identify( int x, int y, IdentifyMode mode, QgsMapToolIdentify::LayerType layerType = AllLayers );
QList<IdentifyResult> identify( int x, int y, IdentifyMode mode, LayerType layerType = AllLayers );

//! return a pointer to the identify menu which will be used in layer selection mode
//! this menu can also be customized
Expand All @@ -147,7 +147,7 @@ class GUI_EXPORT QgsMapToolIdentify : public QgsMapTool
@param layerList Performs the identification within the given list of layers.
@param layerType Only performs identification in a certain type of layers (raster, vector).
@return a list of IdentifyResult*/
QList<IdentifyResult> identify( int x, int y, IdentifyMode mode, const QList<QgsMapLayer*>& layerList, QgsMapToolIdentify::LayerType layerType = AllLayers );
QList<IdentifyResult> identify( int x, int y, IdentifyMode mode, const QList<QgsMapLayer*>& layerList, LayerType layerType = AllLayers );

QgsIdentifyMenu* mIdentifyMenu;

Expand Down
4 changes: 4 additions & 0 deletions src/gui/symbology-ng/qgssvgselectorwidget.h
Expand Up @@ -276,6 +276,10 @@ class GUI_EXPORT QgsSvgSelectorDialog : public QDialog
{
Q_OBJECT
public:

/**
* Constructor for QgsSvgSelectorDialog.
*/
QgsSvgSelectorDialog( QWidget* parent = nullptr, Qt::WindowFlags fl = QgisGui::ModalDialogFlags,
QDialogButtonBox::StandardButtons buttons = QDialogButtonBox::Close | QDialogButtonBox::Ok,
Qt::Orientation orientation = Qt::Horizontal );
Expand Down
3 changes: 3 additions & 0 deletions src/plugins/qgisplugin.h
Expand Up @@ -73,6 +73,9 @@ class QgisPlugin
};


/**
* Constructor for QgisPlugin
*/
QgisPlugin( QString const & name = "",
QString const & description = "",
QString const & category = "",
Expand Down

0 comments on commit 2fab1b8

Please sign in to comment.