1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
|
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/labeling/qgslabelingengineruleswidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
class QgsLabelingEngineRulesWidget : QgsPanelWidget
{
%Docstring(signature="appended")
A widget which allows configuration of a list of labeling engine rules.
This widget allows users to add, remove, and edit the properties of a
list of :py:class:`QgsAbstractLabelingEngineRule` objects.
.. seealso:: :py:class:`QgsLabelingEngineRuleWidget` for a widget for configuring a single rule
.. versionadded:: 3.40
%End
%TypeHeaderCode
#include "qgslabelingengineruleswidget.h"
%End
public:
QgsLabelingEngineRulesWidget( QWidget *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsLabelingEngineRulesWidget.
%End
void setRules( const QList<QgsAbstractLabelingEngineRule *> &rules );
%Docstring
Sets the ``rules`` to show in the widget.
Ownership is not transferred, an internal copy will be made.
%End
QList<QgsAbstractLabelingEngineRule *> rules() const /TransferBack/;
%Docstring
Returns the rules shown in the widget.
The caller takes ownership of all returned rules.
%End
signals:
void changed();
%Docstring
Emitted when the rules configured in the widget are changed.
%End
};
class QgsLabelingEngineRulesDialog : QDialog
{
%Docstring(signature="appended")
A dialog which allows configuration of a list of labeling engine rules.
This dialog allows users to add, remove, and edit the properties of a
list of :py:class:`QgsAbstractLabelingEngineRule` objects.
.. seealso:: :py:class:`QgsLabelingEngineRulesWidget`
.. versionadded:: 3.40
%End
%TypeHeaderCode
#include "qgslabelingengineruleswidget.h"
%End
public:
QgsLabelingEngineRulesDialog( QWidget *parent /TransferThis/ = 0, Qt::WindowFlags flags = QgsGuiUtils::ModalDialogFlags );
%Docstring
Constructor for QgsLabelingEngineRulesDialog.
:param parent: parent widget
:param flags: window flags for dialog
%End
void setRules( const QList<QgsAbstractLabelingEngineRule *> &rules );
%Docstring
Sets the ``rules`` to show in the dialog.
Ownership is not transferred, an internal copy will be made.
%End
QList<QgsAbstractLabelingEngineRule *> rules() const /TransferBack/;
%Docstring
Returns the rules shown in the dialog.
The caller takes ownership of all returned rules.
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/labeling/qgslabelingengineruleswidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
|