Commit ed2a90ab authored by Wuttke, Joachim's avatar Wuttke, Joachim Committed by Wuttke, Joachim
Browse files

rm unused fcts from RawDataDialog

parent 1d5fcf0e
Pipeline #72292 passed with stage
in 5 minutes and 54 seconds
......@@ -141,7 +141,7 @@ int RawDataDialog::bpp()
void RawDataDialog::verify()
{
// confirm overwrite if the name already exists
const QString& dname = dataset_name();
const QString& dname = _datasetName->text();
const bool name_exists = _dataset_names.contains(dname);
bool dialog_accepted = true;
......@@ -154,7 +154,7 @@ void RawDataDialog::verify()
// check wavelength
const double eps = 1e-8;
const double waveln = wavelength();
const double waveln = _wavelength->value();
if (waveln < eps) {
const QString msg{
QString::fromStdString("Wavelength, " + std::to_string(waveln) + ", must be > 0")};
......
......@@ -36,25 +36,15 @@ class RawDataDialog : public QDialog {
const ohkl::RawDataReaderParameters& parameters0,
const QStringList& datanames_cur = QStringList());
QString dataset_name() { return _datasetName->text(); }
double wavelength() { return _wavelength->value(); }
double deltaChi() { return _chi->value(); }
double deltaOmega() { return _omega->value(); }
double deltaPhi() { return _phi->value(); }
bool swapEndian() { return _swapEndianness->isChecked(); }
double baseline() { return _baseline->value(); }
double gain() { return _gain->value(); }
bool rowMajor();
int bpp();
void setWavelength(double newWavelength) { _wavelength->setValue(newWavelength); }
//! Return a copy of the parameters acquired from the dialog
ohkl::RawDataReaderParameters parameters();
private:
//! Verify user-provided parameters
void verify();
bool rowMajor();
int bpp();
private:
QComboBox* _dataArrangement;
QComboBox* _dataFormat;
QCheckBox* _swapEndianness;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment