21 std::vector<std::unique_ptr<MeshLib::Mesh>>
const& mesh_vec,
23 : QDialog(parent), _new_geo_name(
"")
27 for (
const auto& mesh : mesh_vec)
29 this->meshNameComboBox->addItem(
30 QString::fromStdString(mesh->getName()));
38 return this->meshNameComboBox->currentIndex();
45 this->normalMappingButton->setChecked(
true);
48 bool is_enabled(idx != 1);
49 this->normalMappingButton->setEnabled(is_enabled);
50 this->advancedMappingButton->setEnabled(is_enabled);
51 this->geoNameEdit->setEnabled(is_enabled &&
52 this->advancedMappingButton->isChecked());
57 if (this->advancedMappingButton->isChecked())
66 this->done(QDialog::Accepted);
Definition of the GeoOnMeshMappingDialog class.
Definition of the Mesh class.
Definition of the OGSError class.
std::string _new_geo_name
int getDataSetChoice() const
void on_meshNameComboBox_currentIndexChanged(int idx)
GeoOnMeshMappingDialog(std::vector< std::unique_ptr< MeshLib::Mesh > > const &mesh_vec, QDialog *parent=nullptr)
~GeoOnMeshMappingDialog() override
void accept() override
Instructions if the OK-Button has been pressed.
static void box(const QString &e)