Skip to content

Commit cdbd4e4

Browse files
committedMay 29, 2016
Docstring updates
1 parent d5512a9 commit cdbd4e4

9 files changed

+72
-5
lines changed
 

‎python/core/qgsbillboardregistry.sip

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ class QgsBillBoardRegistry : public QObject
3838
* @param parent The parent
3939
*/
4040
void removeItem( void* parent );
41+
42+
/**
43+
* @brief Retreive all registered billboard items
44+
* @return List of registered billboard items
45+
*/
4146
QList<QgsBillBoardItem*> items() const;
4247

4348
signals:

‎python/core/qgsplugininterface.sip

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,16 @@
1313
* *
1414
***************************************************************************/
1515

16+
/**
17+
* @brief Trivial base class for plugin interfaces
18+
*/
1619
class QgsPluginInterface : QObject
1720
{
1821
%TypeHeaderCode
1922
#include "qgsplugininterface.h"
2023
%End
2124

22-
// Should only be instantiated from subclasses
23-
private:
25+
protected:
26+
/** Should only be instantiated from subclasses */
2427
QgsPluginInterface( QObject* parent = 0 );
2528
};

‎python/gui/qgsmaplayerpropertiesfactory.sip

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,25 @@ class QgsMapLayerPropertiesFactory
88
%End
99

1010
public:
11+
/** Constructor */
1112
QgsMapLayerPropertiesFactory();
1213

14+
/** Destructor */
15+
virtual ~QgsMapLayerPropertiesFactory();
16+
17+
/**
18+
* @brief Create a new properties page
19+
* @param layer The layer for which to create the page
20+
* @param parent The parent widget
21+
* @return The new properties page instance
22+
*/
1323
virtual QgsVectorLayerPropertiesPage* createVectorLayerPropertiesPage( QgsVectorLayer* layer, QWidget* parent ) = 0;
24+
25+
/**
26+
* @brief Creates the QListWidgetItem for the properties page
27+
* @param layer The layer for which to create the item
28+
* @param view The parent QListView
29+
* @return The QListWidgetItem for the properties page
30+
*/
1431
virtual QListWidgetItem* createVectorLayerPropertiesItem( QgsVectorLayer* layer, QListWidget* view ) = 0;
1532
};
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
11
/** \ingroup gui
22
* \note added in 2.1
33
*/
4+
5+
/**
6+
* @brief Base class for custom vector layer property pages
7+
*/
48
class QgsVectorLayerPropertiesPage : QWidget
59
{
610
%TypeHeaderCode
711
#include <qgsvectorlayerpropertiespage.h>
812
%End
913

1014
public:
15+
/** Constructor */
1116
explicit QgsVectorLayerPropertiesPage( QWidget *parent = 0 );
1217

1318
public slots:
19+
/** Apply changes */
1420
virtual void apply() = 0;
1521
};

‎src/core/qgsbillboardregistry.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ class CORE_EXPORT QgsBillBoardRegistry : public QObject
5959
* @param parent The parent
6060
*/
6161
void removeItem( void* parent );
62+
63+
/**
64+
* @brief Retreive all registered billboard items
65+
* @return List of registered billboard items
66+
*/
6267
QList<QgsBillBoardItem*> items() const;
6368

6469
signals:

‎src/core/qgsplugininterface.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,15 @@
1818

1919
#include <QObject>
2020

21+
/**
22+
* @brief Trivial base class for plugin interfaces
23+
*/
2124
class CORE_EXPORT QgsPluginInterface : public QObject
2225
{
2326
Q_OBJECT
2427

25-
public:
28+
protected:
29+
/** Should only be instantiated from subclasses */
2630
QgsPluginInterface( QObject* parent = 0 ) : QObject( parent ) {}
2731
};
2832

‎src/gui/qgsmaplayerpropertiesfactory.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,7 @@
1818
QgsMapLayerPropertiesFactory::QgsMapLayerPropertiesFactory()
1919
{
2020
}
21+
22+
QgsMapLayerPropertiesFactory::~QgsMapLayerPropertiesFactory()
23+
{
24+
}

‎src/gui/qgsmaplayerpropertiesfactory.h

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,32 @@
2020

2121
#include "qgsvectorlayerpropertiespage.h"
2222

23+
/**
24+
* @brief Factory class for creating custom map layer property pages
25+
*/
2326
class GUI_EXPORT QgsMapLayerPropertiesFactory
2427
{
2528
public:
29+
/** Constructor */
2630
QgsMapLayerPropertiesFactory();
2731

32+
/** Destructor */
33+
virtual ~QgsMapLayerPropertiesFactory();
34+
35+
/**
36+
* @brief Create a new properties page
37+
* @param layer The layer for which to create the page
38+
* @param parent The parent widget
39+
* @return The new properties page instance
40+
*/
2841
virtual QgsVectorLayerPropertiesPage* createVectorLayerPropertiesPage( QgsVectorLayer* layer, QWidget* parent ) = 0;
42+
43+
/**
44+
* @brief Creates the QListWidgetItem for the properties page
45+
* @param layer The layer for which to create the item
46+
* @param view The parent QListView
47+
* @return The QListWidgetItem for the properties page
48+
*/
2949
virtual QListWidgetItem* createVectorLayerPropertiesItem( QgsVectorLayer* layer, QListWidget* view ) = 0;
3050
};
3151

‎src/gui/qgsvectorlayerpropertiespage.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,18 @@
2020

2121
class QgsVectorLayer;
2222

23+
/**
24+
* @brief Base class for custom vector layer property pages
25+
*/
2326
class GUI_EXPORT QgsVectorLayerPropertiesPage : public QWidget
2427
{
2528
Q_OBJECT
2629
public:
30+
/** Constructor */
2731
explicit QgsVectorLayerPropertiesPage( QWidget *parent = 0 );
2832

29-
signals:
30-
3133
public slots:
34+
/** Apply changes */
3235
virtual void apply() = 0;
3336
};
3437

0 commit comments

Comments
 (0)
Please sign in to comment.