OGS
MeshLayerEditDialog.h
Go to the documentation of this file.
1
15#pragma once
16
17#include <QDialog>
18#include <QLineEdit>
19
21#include "ui_MeshLayerEdit.h"
22
23class QPushButton;
24class QCheckBox;
25class QGroupBox;
26class QGridLayout;
27class QVBoxLayout;
28class QRadioButton;
29
30namespace MeshLib
31{
32class Mesh;
33}
34
38class MeshLayerEditDialog : public QDialog, private Ui_MeshLayerEdit
39{
40 Q_OBJECT
41
42public:
43 explicit MeshLayerEditDialog(const MeshLib::Mesh* mesh,
44 QDialog* parent = nullptr);
46
47private:
51
53 unsigned _n_layers;
54 QMap<QPushButton*, QLineEdit*> _fileButtonMap;
55 QVector<QLineEdit*> _edits;
56
57 QLineEdit* _layerEdit;
60 QPushButton* _nextButton;
61 QGroupBox* _layerBox;
62 QGroupBox* _radioButtonBox;
63 QRadioButton* _ogsMeshButton;
66
67private 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
82signals:
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