QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
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 "qgis.h"
22#include "qgis_gui.h"
23#include "ui_qgsmodeloutputreorderwidgetbase.h"
25#include <QDialog>
26
27class QStandardItemModel;
28class QgsProcessingModelAlgorithm;
29
31
38class GUI_EXPORT QgsModelOutputReorderWidget : public QWidget, private Ui::QgsModelOutputReorderWidgetBase
39{
40 Q_OBJECT
41
42 public:
43
47 QgsModelOutputReorderWidget( QWidget *parent = nullptr );
48
52 void setModel( QgsProcessingModelAlgorithm *model );
53
57 QStringList outputOrder() const;
58
62 QString outputGroup() const;
63
64 private:
65
66 QgsProcessingModelAlgorithm *mModel;
67 QList< QgsProcessingModelOutput > mOutputs;
68 QStandardItemModel *mItemModel = nullptr;
69};
70
71
78class GUI_EXPORT QgsModelOutputReorderDialog : public QDialog
79{
80 Q_OBJECT
81
82 public:
83
87 QgsModelOutputReorderDialog( QWidget *parent = nullptr );
88
92 void setModel( QgsProcessingModelAlgorithm *model );
93
97 QStringList outputOrder() const;
98
102 QString outputGroup() const;
103
104 private:
105
106 QgsModelOutputReorderWidget *mWidget = nullptr;
107};
108
110
111#endif // QGSMODELOUTPUTREORDERWIDGET_H