OGS
MeshLayerEditDialog.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
4#pragma once
5
6#include <QDialog>
7#include <QLineEdit>
8
10#include "ui_MeshLayerEdit.h"
11
12class QPushButton;
13class QCheckBox;
14class QGroupBox;
15class QGridLayout;
16class QVBoxLayout;
17class QRadioButton;
18
19namespace MeshLib
20{
21class Mesh;
22}
23
27class MeshLayerEditDialog : public QDialog, private Ui_MeshLayerEdit
28{
29 Q_OBJECT
30
31public:
32 explicit MeshLayerEditDialog(const MeshLib::Mesh* mesh,
33 QDialog* parent = nullptr);
35
36private:
40
42 unsigned _n_layers;
43 QMap<QPushButton*, QLineEdit*> _fileButtonMap;
44 QVector<QLineEdit*> _edits;
45
46 QLineEdit* _layerEdit;
49 QPushButton* _nextButton;
50 QGroupBox* _layerBox;
51 QGroupBox* _radioButtonBox;
52 QRadioButton* _ogsMeshButton;
55
56private slots:
57 void getFileName();
58
59 void nextButtonPressed();
60
61 void createWithRasters();
62
63 void createStatic();
64
66 void accept() override;
67
69 void reject() override;
70
71signals:
73};
MeshLayerEditDialog(const MeshLib::Mesh *mesh, QDialog *parent=nullptr)
~MeshLayerEditDialog() override
void mshEditFinished(MeshLib::Mesh *)
QRadioButton * _ogsMeshButton
MeshLib::Mesh * createPrismMesh()
QMap< QPushButton *, QLineEdit * > _fileButtonMap
void reject() override
Instructions if the Cancel-Button has been pressed.
MeshLib::Mesh * createTetMesh()
QGridLayout * _layerSelectionLayout
QVector< QLineEdit * > _edits
void accept() override
Instructions if the OK-Button has been pressed.
const MeshLib::Mesh * _msh
QLineEdit * _noDataReplacementEdit