2017-04-11 14:25:50 +10:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgsoptionswidgetfactory.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-03-07 15:39:31 +10:00
|
|
|
class QgsOptionsPageWidget : QWidget
|
|
|
|
{
|
2017-04-11 14:25:50 +10:00
|
|
|
%Docstring
|
|
|
|
Base class for widgets for pages included in the options dialog.
|
|
|
|
.. versionadded:: 3.0
|
2017-03-07 15:39:31 +10:00
|
|
|
%End
|
|
|
|
|
2017-04-11 14:25:50 +10:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsoptionswidgetfactory.h"
|
|
|
|
%End
|
2017-03-07 15:39:31 +10:00
|
|
|
public:
|
|
|
|
|
|
|
|
QgsOptionsPageWidget( QWidget *parent /TransferThis/ = 0 );
|
2017-04-11 14:25:50 +10:00
|
|
|
%Docstring
|
|
|
|
Constructor for QgsOptionsPageWidget.
|
|
|
|
%End
|
2017-04-26 08:22:27 +02:00
|
|
|
|
2017-09-24 08:29:39 +10:00
|
|
|
virtual QString helpKey() const;
|
|
|
|
%Docstring
|
|
|
|
Returns the optional help key for the options page. The default implementation
|
|
|
|
returns an empty string.
|
|
|
|
|
|
|
|
If a non-empty string is returned by this method, it will be used as the help key
|
|
|
|
retrieved when the "help" button is clicked while this options page is active.
|
|
|
|
|
|
|
|
If an empty string is returned by this method the default QGIS options
|
|
|
|
help will be retrieved.
|
|
|
|
:rtype: str
|
|
|
|
%End
|
|
|
|
|
2017-03-07 15:39:31 +10:00
|
|
|
public slots:
|
|
|
|
|
|
|
|
virtual void apply() = 0;
|
2017-04-11 14:25:50 +10:00
|
|
|
%Docstring
|
|
|
|
Called to permanently apply the settings shown in the options page (e.g. save them to
|
|
|
|
QgsSettings objects). This is usually called when the options dialog is accepted.
|
|
|
|
%End
|
2017-03-07 15:39:31 +10:00
|
|
|
|
|
|
|
};
|
|
|
|
|
2017-04-11 14:25:50 +10:00
|
|
|
class QgsOptionsWidgetFactory : QObject
|
2017-03-07 15:39:31 +10:00
|
|
|
{
|
|
|
|
|
2017-04-11 14:25:50 +10:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsoptionswidgetfactory.h"
|
|
|
|
%End
|
2017-03-07 15:39:31 +10:00
|
|
|
public:
|
|
|
|
|
|
|
|
QgsOptionsWidgetFactory();
|
2017-04-11 14:25:50 +10:00
|
|
|
%Docstring
|
|
|
|
Constructor
|
|
|
|
%End
|
2017-04-26 08:22:27 +02:00
|
|
|
|
2017-03-07 15:39:31 +10:00
|
|
|
QgsOptionsWidgetFactory( const QString &title, const QIcon &icon );
|
2017-04-11 14:25:50 +10:00
|
|
|
%Docstring
|
|
|
|
Constructor
|
|
|
|
%End
|
2017-04-26 08:22:27 +02:00
|
|
|
|
2017-03-07 15:39:31 +10:00
|
|
|
virtual QIcon icon() const;
|
2017-04-11 14:25:50 +10:00
|
|
|
%Docstring
|
|
|
|
The icon that will be shown in the UI for the panel.
|
|
|
|
:return: A QIcon for the panel icon.
|
2017-04-30 16:51:18 +02:00
|
|
|
.. seealso:: setIcon()
|
2017-04-11 14:25:50 +10:00
|
|
|
:rtype: QIcon
|
|
|
|
%End
|
|
|
|
|
2017-03-07 15:39:31 +10:00
|
|
|
void setIcon( const QIcon &icon );
|
2017-04-11 14:25:50 +10:00
|
|
|
%Docstring
|
2017-04-17 13:49:59 +10:00
|
|
|
Set the ``icon`` to show in the interface for the factory object.
|
2017-04-30 16:51:18 +02:00
|
|
|
.. seealso:: icon()
|
2017-04-11 14:25:50 +10:00
|
|
|
%End
|
|
|
|
|
2017-03-07 15:39:31 +10:00
|
|
|
virtual QString title() const;
|
2017-04-11 14:25:50 +10:00
|
|
|
%Docstring
|
|
|
|
The title of the panel.
|
2017-04-30 16:51:18 +02:00
|
|
|
.. seealso:: setTitle()
|
2017-04-11 14:25:50 +10:00
|
|
|
:rtype: str
|
|
|
|
%End
|
|
|
|
|
2017-03-07 15:39:31 +10:00
|
|
|
void setTitle( const QString &title );
|
2017-04-11 14:25:50 +10:00
|
|
|
%Docstring
|
2017-04-17 13:49:59 +10:00
|
|
|
Set the ``title`` for the interface.
|
2017-04-30 16:51:18 +02:00
|
|
|
.. seealso:: title()
|
2017-04-11 14:25:50 +10:00
|
|
|
%End
|
2017-03-07 15:39:31 +10:00
|
|
|
|
|
|
|
virtual QgsOptionsPageWidget *createWidget( QWidget *parent = 0 ) const = 0 /Factory/;
|
2017-04-11 14:25:50 +10:00
|
|
|
%Docstring
|
|
|
|
Factory function to create the widget on demand as needed by the options dialog.
|
|
|
|
\param parent The parent of the widget.
|
|
|
|
:return: A new widget to show as a page in the options dialog.
|
|
|
|
:rtype: QgsOptionsPageWidget
|
|
|
|
%End
|
2017-03-07 15:39:31 +10:00
|
|
|
|
|
|
|
};
|
|
|
|
|
2017-04-11 14:25:50 +10:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgsoptionswidgetfactory.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|