OGS
SelectMeshDialog.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 <QDialog>
7
8namespace GeoLib {
9struct GeoObject;
10}
11
12class QDialogButtonBox;
13class QLabel;
14class QComboBox;
15class QVBoxLayout;
16
20class SelectMeshDialog : public QDialog
21{
22 Q_OBJECT
23
24public:
26 SelectMeshDialog(const GeoLib::GeoObject* geo_object,
27 const std::list<std::string>& msh_names,
28 QDialog* parent = nullptr);
29 ~SelectMeshDialog() override;
30
31 QDialogButtonBox* _buttonBox;
32
33private:
35 void setupDialog(const std::list<std::string> &msh_names);
36
37 QLabel* _txt_label;
38 QComboBox* _msh_names;
39 QVBoxLayout* _layout;
41
42
43private slots:
45 void accept() override;
46
48 void reject() override;
49
50signals:
51 //void requestNameChange(const std::string&, const GeoLib::GEOTYPE, std::size_t, std::string);
52};
void setupDialog(const std::list< std::string > &msh_names)
The buttons used in this dialog.
SelectMeshDialog(const GeoLib::GeoObject *geo_object, const std::list< std::string > &msh_names, QDialog *parent=nullptr)
Constructor.
QDialogButtonBox * _buttonBox
QComboBox * _msh_names
~SelectMeshDialog() override
QVBoxLayout * _layout
void accept() override
Instructions if the OK-Button has been pressed.
void reject() override
Instructions if the Cancel-Button has been pressed.
const GeoLib::GeoObject * _geo_object