OGS
AddLayerToMeshDialog.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 "ui_AddLayerToMesh.h"
7
8#include <QDialog>
9#include <QLineEdit>
10
14class AddLayerToMeshDialog : public QDialog, private Ui_AddLayerToMesh
15{
16 Q_OBJECT
17
18public:
19 explicit AddLayerToMeshDialog(QDialog* parent = nullptr);
20
22 bool isTopLayer() const { return this->topButton->isChecked(); };
23
25 double getThickness() const { return this->thicknessEdit->text().toDouble(); };
26
28 std::string getName() const { return this->nameEdit->text().toStdString(); };
29
30private slots:
32 void accept() override;
33
35 void reject() override;
36};
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.