QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
processing
models
qgsmodelinputreorderwidget.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsmodelinputreorderwidget.h
3
----------------------------------
4
Date : April 2020
5
Copyright : (C) 2020 Nyall Dawson
6
Email : nyall dot dawson at gmail dot com
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
16
#ifndef QGSMODELINPUTREORDERWIDGET_H
17
#define QGSMODELINPUTREORDERWIDGET_H
18
19
20
#include "ui_qgsmodelinputreorderwidgetbase.h"
21
22
#include "
qgis.h
"
23
#include "qgis_gui.h"
24
#include "
qgsprocessingmodelparameter.h
"
25
26
#include <QDialog>
27
28
#define SIP_NO_FILE
29
30
class
QStandardItemModel;
31
class
QgsProcessingModelAlgorithm;
32
34
41
class
GUI_EXPORT QgsModelInputReorderWidget :
public
QWidget,
private
Ui::QgsModelInputReorderWidgetBase
42
{
43
Q_OBJECT
44
45
public
:
49
QgsModelInputReorderWidget( QWidget *parent =
nullptr
);
50
54
void
setModel( QgsProcessingModelAlgorithm *model );
55
59
QStringList inputOrder()
const
;
60
61
private
:
62
QgsProcessingModelAlgorithm *mModel;
63
QList<QgsProcessingModelParameter> mParameters;
64
QStandardItemModel *mItemModel =
nullptr
;
65
};
66
67
74
class
GUI_EXPORT QgsModelInputReorderDialog :
public
QDialog
75
{
76
Q_OBJECT
77
78
public
:
82
QgsModelInputReorderDialog( QWidget *parent =
nullptr
);
83
87
void
setModel( QgsProcessingModelAlgorithm *model );
88
92
QStringList inputOrder()
const
;
93
94
private
:
95
QgsModelInputReorderWidget *mWidget =
nullptr
;
96
};
97
99
100
#endif
// QGSMODELINPUTREORDERWIDGET_H
qgis.h
qgsprocessingmodelparameter.h
Generated on
for QGIS API Documentation by
1.17.0