25 : QDialog(parent), _histogram_path(
"")
28 this->choiceEdges->toggle();
34 bool is_checked)
const
36 histogramPathEdit->setEnabled(is_checked);
37 histogramPathButton->setEnabled(is_checked);
43 QFileInfo fi(settings.value(
"lastOpenedFileDirectory").toString());
45 QFileDialog::getSaveFileName(
this,
"Save histogram as", fi.baseName(),
46 "Text files (*.txt);;All files (* *.*)");
47 this->histogramPathEdit->setText(file_name);
53 if (this->choiceEdges->isChecked())
57 else if (this->choiceArea->isChecked())
61 else if (this->choiceVolume->isChecked())
65 else if (this->choiceAngles->isChecked())
69 else if (this->choiceRadius->isChecked())
78 if (this->histogramCheckBox->isChecked())
88 this->done(QDialog::Accepted);
94 this->done(QDialog::Rejected);
Definition of the MshQualitySelectionDialog class.
Definition of the OGSError class.
MeshLib::MeshQualityType _metric
~MeshQualitySelectionDialog() override
void accept() override
Instructions if the OK-Button has been pressed.
MeshQualitySelectionDialog(QDialog *parent=nullptr)
Constructor.
std::string _histogram_path
void on_histogramPathButton_pressed()
void reject() override
Instructions if the Cancel-Button has been pressed.
void on_histogramCheckBox_toggled(bool is_checked) const
static void box(const QString &e)