Skip to content

Commit

Permalink
Docstring updates
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed May 29, 2016
1 parent d5512a9 commit cdbd4e4
Show file tree
Hide file tree
Showing 9 changed files with 72 additions and 5 deletions.
5 changes: 5 additions & 0 deletions python/core/qgsbillboardregistry.sip
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
7 changes: 5 additions & 2 deletions python/core/qgsplugininterface.sip
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
};
17 changes: 17 additions & 0 deletions python/gui/qgsmaplayerpropertiesfactory.sip
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
6 changes: 6 additions & 0 deletions python/gui/qgsvectorlayerpropertiespage.sip
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
/** \ingroup gui
* \note added in 2.1
*/

/**
* @brief Base class for custom vector layer property pages
*/
class QgsVectorLayerPropertiesPage : QWidget
{
%TypeHeaderCode
#include <qgsvectorlayerpropertiespage.h>
%End

public:
/** Constructor */
explicit QgsVectorLayerPropertiesPage( QWidget *parent = 0 );

public slots:
/** Apply changes */
virtual void apply() = 0;
};
5 changes: 5 additions & 0 deletions src/core/qgsbillboardregistry.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 5 additions & 1 deletion src/core/qgsplugininterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {}
};

Expand Down
4 changes: 4 additions & 0 deletions src/gui/qgsmaplayerpropertiesfactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@
QgsMapLayerPropertiesFactory::QgsMapLayerPropertiesFactory()
{
}

QgsMapLayerPropertiesFactory::~QgsMapLayerPropertiesFactory()
{
}
20 changes: 20 additions & 0 deletions src/gui/qgsmaplayerpropertiesfactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand Down
7 changes: 5 additions & 2 deletions src/gui/qgsvectorlayerpropertiespage.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand Down

0 comments on commit cdbd4e4

Please sign in to comment.