7#include <QDialogButtonBox>
14 const std::list<std::string>& msh_names,
32 _layout =
new QVBoxLayout(
this);
33 QString dialog_text(
"Select Mesh");
38 for (
const auto& msh_name : msh_names)
40 _msh_names->addItem(QString::fromStdString(msh_name));
43 setWindowTitle(
"Select Mesh...");
47 new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
60 this->done(QDialog::Accepted);
65 this->done(QDialog::Rejected);
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
~SelectMeshDialog() override
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