QGIS API Documentation 3.41.0-Master (cea29feecf2)
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 "qgis.h"
22#include "qgis_gui.h"
23#include "ui_qgsmodelinputreorderwidgetbase.h"
25#include <QDialog>
26
27class QStandardItemModel;
28class QgsProcessingModelAlgorithm;
29
31
38class GUI_EXPORT QgsModelInputReorderWidget : public QWidget, private Ui::QgsModelInputReorderWidgetBase
39{
40 Q_OBJECT
41
42 public:
46 QgsModelInputReorderWidget( QWidget *parent = nullptr );
47
51 void setModel( QgsProcessingModelAlgorithm *model );
52
56 QStringList inputOrder() const;
57
58 private:
59 QgsProcessingModelAlgorithm *mModel;
60 QList<QgsProcessingModelParameter> mParameters;
61 QStandardItemModel *mItemModel = nullptr;
62};
63
64
71class GUI_EXPORT QgsModelInputReorderDialog : public QDialog
72{
73 Q_OBJECT
74
75 public:
79 QgsModelInputReorderDialog( QWidget *parent = nullptr );
80
84 void setModel( QgsProcessingModelAlgorithm *model );
85
89 QStringList inputOrder() const;
90
91 private:
92 QgsModelInputReorderWidget *mWidget = nullptr;
93};
94
96
97#endif // QGSMODELINPUTREORDERWIDGET_H