2017-06-08 11:26:03 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgssubstitutionlistwidget.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class QgsSubstitutionListWidget : QgsPanelWidget
|
2016-10-04 21:31:17 +10:00
|
|
|
{
|
2017-06-08 11:26:03 +02:00
|
|
|
%Docstring
|
|
|
|
A widget which allows users to specify a list of substitutions to apply to a string, with
|
|
|
|
options for exporting and importing substitution lists.
|
|
|
|
.. versionadded:: 3.0
|
|
|
|
.. seealso:: QgsSubstitutionListDialog
|
2016-10-04 21:31:17 +10:00
|
|
|
%End
|
|
|
|
|
2017-06-08 11:26:03 +02:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgssubstitutionlistwidget.h"
|
|
|
|
%End
|
2016-10-04 21:31:17 +10:00
|
|
|
public:
|
|
|
|
|
2017-05-02 07:21:20 +02:00
|
|
|
QgsSubstitutionListWidget( QWidget *parent /TransferThis/ = 0 );
|
2017-06-08 11:26:03 +02:00
|
|
|
%Docstring
|
|
|
|
Constructor for QgsSubstitutionListWidget.
|
|
|
|
\param parent parent widget
|
|
|
|
%End
|
2016-10-04 21:31:17 +10:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
void setSubstitutions( const QgsStringReplacementCollection &substitutions );
|
2017-06-08 11:26:03 +02:00
|
|
|
%Docstring
|
|
|
|
Sets the list of substitutions to show in the widget.
|
|
|
|
\param substitutions substitution list
|
|
|
|
.. seealso:: substitutions()
|
|
|
|
%End
|
2016-10-04 21:31:17 +10:00
|
|
|
|
|
|
|
QgsStringReplacementCollection substitutions() const;
|
2017-06-08 11:26:03 +02:00
|
|
|
%Docstring
|
|
|
|
Returns the list of substitutions currently defined by the widget.
|
|
|
|
.. seealso:: setSubstitutions()
|
|
|
|
:rtype: QgsStringReplacementCollection
|
|
|
|
%End
|
2016-10-04 21:31:17 +10:00
|
|
|
|
|
|
|
signals:
|
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
void substitutionsChanged( const QgsStringReplacementCollection &substitutions );
|
2017-06-08 11:26:03 +02:00
|
|
|
%Docstring
|
|
|
|
Emitted when the substitution definitions change.
|
|
|
|
%End
|
2016-10-04 21:31:17 +10:00
|
|
|
|
|
|
|
};
|
|
|
|
|
2017-06-08 11:26:03 +02:00
|
|
|
class QgsSubstitutionListDialog : QDialog
|
2016-10-04 21:31:17 +10:00
|
|
|
{
|
2017-06-08 11:26:03 +02:00
|
|
|
%Docstring
|
|
|
|
A dialog which allows users to specify a list of substitutions to apply to a string, with
|
|
|
|
options for exporting and importing substitution lists.
|
|
|
|
.. versionadded:: 3.0
|
|
|
|
.. seealso:: QgsSubstitutionListWidget
|
2016-10-04 21:31:17 +10:00
|
|
|
%End
|
|
|
|
|
2017-06-08 11:26:03 +02:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgssubstitutionlistwidget.h"
|
|
|
|
%End
|
2016-10-04 21:31:17 +10:00
|
|
|
public:
|
|
|
|
|
2017-05-02 07:21:20 +02:00
|
|
|
QgsSubstitutionListDialog( QWidget *parent /TransferThis/ = 0 );
|
2017-06-08 11:26:03 +02:00
|
|
|
%Docstring
|
|
|
|
Constructor for QgsSubstitutionListDialog.
|
|
|
|
\param parent parent widget
|
|
|
|
%End
|
2016-10-04 21:31:17 +10:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
void setSubstitutions( const QgsStringReplacementCollection &substitutions );
|
2017-06-08 11:26:03 +02:00
|
|
|
%Docstring
|
|
|
|
Sets the list of substitutions to show in the dialog.
|
|
|
|
\param substitutions substitution list
|
|
|
|
.. seealso:: substitutions()
|
|
|
|
%End
|
2016-10-04 21:31:17 +10:00
|
|
|
|
|
|
|
QgsStringReplacementCollection substitutions() const;
|
2017-06-08 11:26:03 +02:00
|
|
|
%Docstring
|
|
|
|
Returns the list of substitutions currently defined by the dialog.
|
|
|
|
.. seealso:: setSubstitutions()
|
|
|
|
:rtype: QgsStringReplacementCollection
|
|
|
|
%End
|
|
|
|
|
2016-10-04 21:31:17 +10:00
|
|
|
|
|
|
|
};
|
2017-06-08 11:26:03 +02:00
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgssubstitutionlistwidget.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|