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 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266
|
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/processing/qgsprocessingmultipleselectiondialog.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
class QgsProcessingMultipleSelectionPanelWidget : QgsPanelWidget
{
%Docstring(signature="appended")
A panel widget for selection of multiple options from a fixed list of
options.
.. note::
Not stable API
.. versionadded:: 3.14
%End
%TypeHeaderCode
#include "qgsprocessingmultipleselectiondialog.h"
%End
public:
QgsProcessingMultipleSelectionPanelWidget( const QVariantList &availableOptions = QVariantList(), const QVariantList &selectedOptions = QVariantList(), QWidget *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsProcessingMultipleSelectionPanelWidget.
The ``availableOptions`` list specifies the list of standard known
options for the parameter, whilst the ``selectedOptions`` list specifies
which options should be initially selected.
The ``selectedOptions`` list may contain extra options which are not
present in ``availableOptions``, in which case they will be also added
as existing options within the dialog.
%End
void setValueFormatter( SIP_PYCALLABLE );
%Docstring
Sets a callback function to use when encountering an invalid geometry
and
%End
%MethodCode
Py_BEGIN_ALLOW_THREADS
sipCpp->setValueFormatter( [a0]( const QVariant &v ) -> QString {
QString res;
SIP_BLOCK_THREADS
PyObject *s = sipCallMethod( NULL, a0, "D", &v, sipType_QVariant, NULL );
int state;
int sipIsError = 0;
QString *t1 = reinterpret_cast<QString *>( sipConvertToType( s, sipType_QString, 0, SIP_NOT_NONE, &state, &sipIsError ) );
if ( sipIsError == 0 )
{
res = QString( *t1 );
}
sipReleaseType( t1, sipType_QString, state );
SIP_UNBLOCK_THREADS
return res;
} );
Py_END_ALLOW_THREADS
%End
QVariantList selectedOptions() const;
%Docstring
Returns the ordered list of selected options.
%End
QDialogButtonBox *buttonBox();
%Docstring
Returns the widget's button box.
%End
signals:
void acceptClicked();
%Docstring
Emitted when the accept button is clicked.
%End
void selectionChanged();
%Docstring
Emitted when the selection changes in the widget.
%End
protected:
void addOption( const QVariant &value, const QString &title, bool selected, bool updateExistingTitle = false );
%Docstring
Adds a new option to the widget.
%End
QListView *listView() const;
%Docstring
Returns pointer to the list view
%End
virtual void dragEnterEvent( QDragEnterEvent *event );
%Docstring
Value formatter
%End
virtual void dropEvent( QDropEvent *event );
};
class QgsProcessingMultipleSelectionDialog : QDialog
{
%Docstring(signature="appended")
A dialog for selection of multiple options from a fixed list of options.
.. note::
Not stable API
.. versionadded:: 3.6
%End
%TypeHeaderCode
#include "qgsprocessingmultipleselectiondialog.h"
%End
public:
QgsProcessingMultipleSelectionDialog( const QVariantList &availableOptions = QVariantList(), const QVariantList &selectedOptions = QVariantList(), QWidget *parent /TransferThis/ = 0, Qt::WindowFlags flags = Qt::WindowFlags() );
%Docstring
Constructor for :py:class:`QgsProcessingMultipleSelectionPanelWidget`.
The ``availableOptions`` list specifies the list of standard known
options for the parameter, whilst the ``selectedOptions`` list specifies
which options should be initially selected.
The ``selectedOptions`` list may contain extra options which are not
present in ``availableOptions``, in which case they will be also added
as existing options within the dialog.
%End
void setValueFormatter( SIP_PYCALLABLE );
%Docstring
Sets a callback function to use when encountering an invalid geometry
and
%End
%MethodCode
Py_BEGIN_ALLOW_THREADS
sipCpp->setValueFormatter( [a0]( const QVariant &v ) -> QString {
QString res;
SIP_BLOCK_THREADS
PyObject *s = sipCallMethod( NULL, a0, "D", &v, sipType_QVariant, NULL );
int state;
int sipIsError = 0;
QString *t1 = reinterpret_cast<QString *>( sipConvertToType( s, sipType_QString, 0, SIP_NOT_NONE, &state, &sipIsError ) );
if ( sipIsError == 0 )
{
res = QString( *t1 );
}
sipReleaseType( t1, sipType_QString, state );
SIP_UNBLOCK_THREADS
return res;
} );
Py_END_ALLOW_THREADS
%End
QVariantList selectedOptions() const;
%Docstring
Returns the ordered list of selected options.
%End
};
class QgsProcessingMultipleInputPanelWidget : QgsProcessingMultipleSelectionPanelWidget
{
%Docstring(signature="appended")
A panel widget for selection of multiple inputs from a fixed list of
options.
.. note::
Not stable API
.. versionadded:: 3.14
%End
%TypeHeaderCode
#include "qgsprocessingmultipleselectiondialog.h"
%End
public:
QgsProcessingMultipleInputPanelWidget( const QgsProcessingParameterMultipleLayers *parameter, const QVariantList &selectedOptions, const QList<QgsProcessingModelChildParameterSource> &modelSources, QgsProcessingModelAlgorithm *model = 0, QWidget *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsProcessingMultipleInputPanelWidget.
%End
void setProject( QgsProject *project );
%Docstring
Sets the project associated with the widget.
%End
protected:
virtual void dragEnterEvent( QDragEnterEvent *event );
virtual void dropEvent( QDropEvent *event );
};
class QgsProcessingMultipleInputDialog : QDialog
{
%Docstring(signature="appended")
A dialog for selection of multiple layer inputs.
.. note::
Not stable API
.. versionadded:: 3.14
%End
%TypeHeaderCode
#include "qgsprocessingmultipleselectiondialog.h"
%End
public:
QgsProcessingMultipleInputDialog( const QgsProcessingParameterMultipleLayers *parameter, const QVariantList &selectedOptions, const QList<QgsProcessingModelChildParameterSource> &modelSources, QgsProcessingModelAlgorithm *model = 0, QWidget *parent /TransferThis/ = 0, Qt::WindowFlags flags = Qt::WindowFlags() );
%Docstring
Constructor for QgsProcessingMultipleInputDialog.
The ``selectedOptions`` list may contain extra options which are not
present in ``availableOptions``, in which case they will be also added
as existing options within the dialog.
%End
QVariantList selectedOptions() const;
%Docstring
Returns the ordered list of selected options.
%End
void setProject( QgsProject *project );
%Docstring
Sets the project associated with the dialog.
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/processing/qgsprocessingmultipleselectiondialog.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
|