QGIS API Documentation 3.99.0-Master (26c88405ac0)
Loading...
Searching...
No Matches
qgsmodeloutputreorderwidget.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsmodeloutputreorderwidget.h
3 ----------------------------------
4 Date : April 2023
5 Copyright : (C) 2023 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 QGSMODELOUTPUTREORDERWIDGET_H
17#define QGSMODELOUTPUTREORDERWIDGET_H
18
19#define SIP_NO_FILE
20
21#include "ui_qgsmodeloutputreorderwidgetbase.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 QgsModelOutputReorderWidget : public QWidget, private Ui::QgsModelOutputReorderWidgetBase
41{
42 Q_OBJECT
43
44 public:
45
49 QgsModelOutputReorderWidget( QWidget *parent = nullptr );
50
54 void setModel( QgsProcessingModelAlgorithm *model );
55
59 QStringList outputOrder() const;
60
64 QString outputGroup() const;
65
66 private:
67 QgsProcessingModelAlgorithm *mModel;
68 QList<QgsProcessingModelOutput> mOutputs;
69 QStandardItemModel *mItemModel = nullptr;
70};
71
72
79class GUI_EXPORT QgsModelOutputReorderDialog : public QDialog
80{
81 Q_OBJECT
82
83 public:
84
88 QgsModelOutputReorderDialog( QWidget *parent = nullptr );
89
93 void setModel( QgsProcessingModelAlgorithm *model );
94
98 QStringList outputOrder() const;
99
103 QString outputGroup() const;
104
105 private:
106 QgsModelOutputReorderWidget *mWidget = nullptr;
107};
108
110
111#endif // QGSMODELOUTPUTREORDERWIDGET_H