OGS
MeshLayerEditDialog.h
Go to the documentation of this file.
1 
15 #pragma once
16 
17 #include "ui_MeshLayerEdit.h"
18 #include <QDialog>
19 #include <QLineEdit>
20 
22 
23 class QPushButton;
24 class QCheckBox;
25 class QGroupBox;
26 class QGridLayout;
27 class QVBoxLayout;
28 class QRadioButton;
29 
30 namespace MeshLib
31 {
32 class Mesh;
33 }
34 
38 class MeshLayerEditDialog : public QDialog, private Ui_MeshLayerEdit
39 {
40  Q_OBJECT
41 
42 public:
43  explicit MeshLayerEditDialog(const MeshLib::Mesh* mesh,
44  QDialog* parent = nullptr);
46 
47 private:
51 
53  unsigned _n_layers;
54  QMap<QPushButton*, QLineEdit*> _fileButtonMap;
55  QVector<QLineEdit*> _edits;
56 
57  QLineEdit* _layerEdit;
59  QLineEdit* _minThicknessEdit;
60  QPushButton* _nextButton;
61  QGroupBox* _layerBox;
62  QGroupBox* _radioButtonBox;
63  QRadioButton* _ogsMeshButton;
64  QGridLayout* _layerSelectionLayout;
66 
67 private slots:
68  void getFileName();
69 
70  void nextButtonPressed();
71 
72  void createWithRasters();
73 
74  void createStatic();
75 
77  void accept() override;
78 
80  void reject() override;
81 
82 signals:
84 };
Definition of the MeshLayerMapper class.
A dialog window for editing meshes in various ways.
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