mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
Allows plugins to embed their options into the standard options dialog, instead of implementing their own config dialog and having to have extra menu items just for those...
40 lines
720 B
Plaintext
40 lines
720 B
Plaintext
class QgsOptionsPageWidget : QWidget
|
|
{
|
|
%TypeHeaderCode
|
|
#include <qgsoptionswidgetfactory.h>
|
|
%End
|
|
|
|
public:
|
|
|
|
QgsOptionsPageWidget( QWidget *parent /TransferThis/ = 0 );
|
|
|
|
public slots:
|
|
|
|
virtual void apply() = 0;
|
|
|
|
};
|
|
|
|
class QgsOptionsWidgetFactory
|
|
{
|
|
%TypeHeaderCode
|
|
#include <qgsoptionswidgetfactory.h>
|
|
%End
|
|
|
|
public:
|
|
|
|
QgsOptionsWidgetFactory();
|
|
|
|
QgsOptionsWidgetFactory( const QString &title, const QIcon &icon );
|
|
virtual ~QgsOptionsWidgetFactory();
|
|
|
|
virtual QIcon icon() const;
|
|
void setIcon( const QIcon &icon );
|
|
virtual QString title() const;
|
|
void setTitle( const QString &title );
|
|
|
|
virtual QgsOptionsPageWidget *createWidget( QWidget *parent = 0 ) const = 0 /Factory/;
|
|
|
|
|
|
};
|
|
|