OGS
AddLayerToMeshDialog.h
Go to the documentation of this file.
1
15#pragma once
16
17#include "ui_AddLayerToMesh.h"
18
19#include <QDialog>
20#include <QLineEdit>
21
25class AddLayerToMeshDialog : public QDialog, private Ui_AddLayerToMesh
26{
27 Q_OBJECT
28
29public:
30 explicit AddLayerToMeshDialog(QDialog* parent = nullptr);
31
33 bool isTopLayer() const { return this->topButton->isChecked(); };
34
36 double getThickness() const { return this->thicknessEdit->text().toDouble(); };
37
39 std::string getName() const { return this->nameEdit->text().toStdString(); };
40
41private slots:
43 void accept() override;
44
46 void reject() override;
47};
A dialog window for adding a layer to the top or bottom of a mesh.
void accept() override
Instructions if the OK-Button has been pressed.
std::string getName() const
Returns the name of the new mesh.
bool isTopLayer() const
Returns if the top layer button is selected (if false, bottom is selected).
AddLayerToMeshDialog(QDialog *parent=nullptr)
double getThickness() const
Returns the thickness of the new layer.
void reject() override
Instructions if the Cancel-Button has been pressed.