OGS
SelectMeshDialog.h
Go to the documentation of this file.
1
15#pragma once
16
17#include <QDialog>
18
19namespace GeoLib {
20struct GeoObject;
21}
22
23class QDialogButtonBox;
24class QLabel;
25class QComboBox;
26class QVBoxLayout;
27
31class SelectMeshDialog : public QDialog
32{
33 Q_OBJECT
34
35public:
37 SelectMeshDialog(const GeoLib::GeoObject* geo_object,
38 const std::list<std::string>& msh_names,
39 QDialog* parent = nullptr);
40 ~SelectMeshDialog() override;
41
42 QDialogButtonBox* _buttonBox;
43
44private:
46 void setupDialog(const std::list<std::string> &msh_names);
47
48 QLabel* _txt_label;
49 QComboBox* _msh_names;
50 QVBoxLayout* _layout;
52
53
54private slots:
56 void accept() override;
57
59 void reject() override;
60
61signals:
62 //void requestNameChange(const std::string&, const GeoLib::GEOTYPE, std::size_t, std::string);
63};
Small dialog for setting a name for an object.
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