OGS
CreateStructuredGridDialog.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_CreateStructuredGrid.h"
7#include <QDialog>
8
9#include "MeshLib/Mesh.h"
10
14class CreateStructuredGridDialog : public QDialog, private Ui_CreateStructuredGrid
15{
16 Q_OBJECT
17
18public:
19 explicit CreateStructuredGridDialog(QDialog* parent = nullptr);
20
21private slots:
22 void on_lineButton_toggled() const;
29
31 void accept() override;
32
34 void reject() override { this->done(QDialog::Rejected); };
35
36private:
37 void enable2dWidgets() const;
38 void enable3dWidgets() const;
39 void setValidators();
40
42 bool inputIsEmpty() const;
43
44signals:
46};
void accept() override
Instructions if the OK-Button has been pressed.
CreateStructuredGridDialog(QDialog *parent=nullptr)
void meshAdded(MeshLib::Mesh *mesh)
bool inputIsEmpty() const
Checks if all necessary inputs have been specified.
void reject() override
Instructions if the Cancel-Button has been pressed.