mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
Docstring updates
This commit is contained in:
parent
d5512a931f
commit
cdbd4e45d4
@ -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:
|
||||
|
@ -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 );
|
||||
};
|
||||
|
@ -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;
|
||||
};
|
||||
|
@ -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;
|
||||
};
|
||||
|
@ -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:
|
||||
|
@ -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 ) {}
|
||||
};
|
||||
|
||||
|
@ -18,3 +18,7 @@
|
||||
QgsMapLayerPropertiesFactory::QgsMapLayerPropertiesFactory()
|
||||
{
|
||||
}
|
||||
|
||||
QgsMapLayerPropertiesFactory::~QgsMapLayerPropertiesFactory()
|
||||
{
|
||||
}
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user