18#include <QDialogButtonBox>
25 const std::list<std::string>& msh_names,
27 : QDialog(parent), _geo_object(geo_object)
43 _layout =
new QVBoxLayout(
this);
44 QString dialog_text(
"Select Mesh");
49 for (
const auto& msh_name : msh_names)
51 _msh_names->addItem(QString::fromStdString(msh_name));
54 setWindowTitle(
"Select Mesh...");
58 new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
71 this->done(QDialog::Accepted);
76 this->done(QDialog::Rejected);
Base class for classes Point, Polyline, Surface.
Definition of the SelectMeshDialog class.
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.