25 this->meshNameEdit->setText(QString::fromStdString(mesh_name) +
"_Raster");
27 this->noDataValueEdit->setValidator(no_data_validator);
33 QString filename = QFileDialog::getOpenFileName(
34 this,
"Select raster file to open",
35 settings.value(
"lastOpenedRasterFileDirectory").toString(),
36 "ASCII raster files (*.asc);;All files (* *.*)");
37 this->rasterPathEdit->setText(filename);
38 QFileInfo fi(filename);
39 settings.setValue(
"lastOpenedRasterFileDirectory", fi.absolutePath());
44 if (this->rasterPathEdit->text().isEmpty())
49 else if (this->arrayNameEdit->text().isEmpty())
54 else if (this->noDataValueEdit->text().isEmpty())
59 else if (this->meshNameEdit->text().isEmpty())
65 this->done(QDialog::Accepted);
Definition of the OGSError class.
Implementation of the StrictDoubleValidator class.
static void box(const QString &e)
RasterDataToMeshDialog(std::string const &mesh_name, QDialog *parent=nullptr)
void on_rasterSelectButton_pressed()
A validator for an input field which only accepts decimals. Source code adapted from StackOverflow