QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
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#define SIP_NO_FILE
20
21#include "ui_qgsmodelinputreorderwidgetbase.h"
22
23#include "qgis.h"
24#include "qgis_gui.h"
26
27#include <QDialog>
28
29class QStandardItemModel;
30class QgsProcessingModelAlgorithm;
31
33
40class GUI_EXPORT QgsModelInputReorderWidget : public QWidget, private Ui::QgsModelInputReorderWidgetBase
41{
42 Q_OBJECT
43
44 public:
48 QgsModelInputReorderWidget( QWidget *parent = nullptr );
49
53 void setModel( QgsProcessingModelAlgorithm *model );
54
58 QStringList inputOrder() const;
59
60 private:
61 QgsProcessingModelAlgorithm *mModel;
62 QList<QgsProcessingModelParameter> mParameters;
63 QStandardItemModel *mItemModel = nullptr;
64};
65
66
73class GUI_EXPORT QgsModelInputReorderDialog : public QDialog
74{
75 Q_OBJECT
76
77 public:
81 QgsModelInputReorderDialog( QWidget *parent = nullptr );
82
86 void setModel( QgsProcessingModelAlgorithm *model );
87
91 QStringList inputOrder() const;
92
93 private:
94 QgsModelInputReorderWidget *mWidget = nullptr;
95};
96
98
99#endif // QGSMODELINPUTREORDERWIDGET_H