Docstring updates

This commit is contained in:
Sandro Mani 2016-05-29 19:44:28 +02:00
parent d5512a931f
commit cdbd4e45d4
9 changed files with 72 additions and 5 deletions

View File

@ -38,6 +38,11 @@ class QgsBillBoardRegistry : public QObject
* @param parent The parent
*/
void removeItem( void* parent );
/**
* @brief Retreive all registered billboard items
* @return List of registered billboard items
*/
QList<QgsBillBoardItem*> items() const;
signals:

View File

@ -13,13 +13,16 @@
* *
***************************************************************************/
/**
* @brief Trivial base class for plugin interfaces
*/
class QgsPluginInterface : QObject
{
%TypeHeaderCode
#include "qgsplugininterface.h"
%End
// Should only be instantiated from subclasses
private:
protected:
/** Should only be instantiated from subclasses */
QgsPluginInterface( QObject* parent = 0 );
};

View File

@ -8,8 +8,25 @@ class QgsMapLayerPropertiesFactory
%End
public:
/** Constructor */
QgsMapLayerPropertiesFactory();
/** Destructor */
virtual ~QgsMapLayerPropertiesFactory();
/**
* @brief Create a new properties page
* @param layer The layer for which to create the page
* @param parent The parent widget
* @return The new properties page instance
*/
virtual QgsVectorLayerPropertiesPage* createVectorLayerPropertiesPage( QgsVectorLayer* layer, QWidget* parent ) = 0;
/**
* @brief Creates the QListWidgetItem for the properties page
* @param layer The layer for which to create the item
* @param view The parent QListView
* @return The QListWidgetItem for the properties page
*/
virtual QListWidgetItem* createVectorLayerPropertiesItem( QgsVectorLayer* layer, QListWidget* view ) = 0;
};

View File

@ -1,6 +1,10 @@
/** \ingroup gui
* \note added in 2.1
*/
/**
* @brief Base class for custom vector layer property pages
*/
class QgsVectorLayerPropertiesPage : QWidget
{
%TypeHeaderCode
@ -8,8 +12,10 @@ class QgsVectorLayerPropertiesPage : QWidget
%End
public:
/** Constructor */
explicit QgsVectorLayerPropertiesPage( QWidget *parent = 0 );
public slots:
/** Apply changes */
virtual void apply() = 0;
};

View File

@ -59,6 +59,11 @@ class CORE_EXPORT QgsBillBoardRegistry : public QObject
* @param parent The parent
*/
void removeItem( void* parent );
/**
* @brief Retreive all registered billboard items
* @return List of registered billboard items
*/
QList<QgsBillBoardItem*> items() const;
signals:

View File

@ -18,11 +18,15 @@
#include <QObject>
/**
* @brief Trivial base class for plugin interfaces
*/
class CORE_EXPORT QgsPluginInterface : public QObject
{
Q_OBJECT
public:
protected:
/** Should only be instantiated from subclasses */
QgsPluginInterface( QObject* parent = 0 ) : QObject( parent ) {}
};

View File

@ -18,3 +18,7 @@
QgsMapLayerPropertiesFactory::QgsMapLayerPropertiesFactory()
{
}
QgsMapLayerPropertiesFactory::~QgsMapLayerPropertiesFactory()
{
}

View File

@ -20,12 +20,32 @@
#include "qgsvectorlayerpropertiespage.h"
/**
* @brief Factory class for creating custom map layer property pages
*/
class GUI_EXPORT QgsMapLayerPropertiesFactory
{
public:
/** Constructor */
QgsMapLayerPropertiesFactory();
/** Destructor */
virtual ~QgsMapLayerPropertiesFactory();
/**
* @brief Create a new properties page
* @param layer The layer for which to create the page
* @param parent The parent widget
* @return The new properties page instance
*/
virtual QgsVectorLayerPropertiesPage* createVectorLayerPropertiesPage( QgsVectorLayer* layer, QWidget* parent ) = 0;
/**
* @brief Creates the QListWidgetItem for the properties page
* @param layer The layer for which to create the item
* @param view The parent QListView
* @return The QListWidgetItem for the properties page
*/
virtual QListWidgetItem* createVectorLayerPropertiesItem( QgsVectorLayer* layer, QListWidget* view ) = 0;
};

View File

@ -20,15 +20,18 @@
class QgsVectorLayer;
/**
* @brief Base class for custom vector layer property pages
*/
class GUI_EXPORT QgsVectorLayerPropertiesPage : public QWidget
{
Q_OBJECT
public:
/** Constructor */
explicit QgsVectorLayerPropertiesPage( QWidget *parent = 0 );
signals:
public slots:
/** Apply changes */
virtual void apply() = 0;
};