16 #ifndef QGSPROCESSINGMESHDATASETWIDGET_H
17 #define QGSPROCESSINGMESHDATASETWIDGET_H
25 #include "ui_qgsprocessingmeshdatasettimewidget.h"
31 class GUI_EXPORT QgsProcessingMeshDatasetGroupsWidget :
public QWidget
42 void setMeshLayer(
QgsMeshLayer *layer,
bool layerFromProject =
false );
43 void setValue(
const QVariant &value );
44 QVariant value()
const;
51 void selectCurrentActiveDatasetGroup();
57 QPointer<QLineEdit> mLineEdit =
nullptr;
58 QPointer<QToolButton> mToolButton =
nullptr;
59 QPointer<QAction> mActionCurrentActiveDatasetGroups =
nullptr;
60 QPointer<QAction> mActionAvailableDatasetGroups =
nullptr;
62 QMap<int, QString> mDatasetGroupsNames;
64 QStringList datasetGroupsNames();
65 void updateSummaryText();
67 friend class TestProcessingGui;
86 void postInitialize(
const QList<QgsAbstractProcessingParameterWidgetWrapper *> &wrappers )
override;
99 QgsProcessingMeshDatasetGroupsWidget *mWidget =
nullptr;
101 friend class TestProcessingGui;
115 QComboBox *mParentLayerComboBox =
nullptr;
118 class GUI_EXPORT QgsProcessingMeshDatasetTimeWidget :
public QWidget,
private Ui::QgsProcessingMeshDatasetTimeWidgetBase
122 QgsProcessingMeshDatasetTimeWidget( QWidget *parent =
nullptr,
131 void setMeshLayer(
QgsMeshLayer *layer,
bool layerFromProject =
false );
132 void setDatasetGroupIndexes(
const QList<int> datasetGroupIndexes );
134 void setValue(
const QVariant &value );
135 QVariant value()
const;
148 QLineEdit *mLineEdit =
nullptr;
149 QToolButton *mToolButton =
nullptr;
151 QList<int> mDatasetGroupIndexes;
152 QDateTime mReferenceTime;
154 void populateTimeSteps();
155 bool hasTemporalDataset()
const;
157 void populateTimeStepsFromLayer();
160 QMap<int, QList<qint64>> mDatasetTimeSteps;
165 friend class TestProcessingGui;
178 void postInitialize(
const QList<QgsAbstractProcessingParameterWidgetWrapper *> &wrappers )
override;
199 QgsProcessingMeshDatasetTimeWidget *mWidget =
nullptr;
200 std::unique_ptr<QgsMeshLayer> mTemporarytMeshLayer;
201 friend class TestProcessingGui;
215 QComboBox *mParentDatasetComboBox =
nullptr;
216 QString mMeshLayerParameterName;
222 #endif // QGSPROCESSINGMESHDATASETWIDGET_H