21 #include "ui_representativespectrumdialog.h" 29 dataset_ = ws->GetDataset(dataset_key);
37 void RepresentativeSpectrumDialog::on_buttonBox_accepted()
39 if (!dataset_.isNull()){
40 QString name = ui->nameLineEdit->text();
41 QString metric = ui->metricComboBox->currentText().toLower();
43 QString statistic = ui->statisticComboBox->currentText().toLower();
45 dataset_->CalculateRepresentativeSpectrum(name, statistic, metric);
47 workspace_->main_window()->DisplayExceptionWarning(
"VespucciDataset::CalculateRepresentativeSpectrum", e);
RepresentativeSpectrumDialog(QWidget *parent, QSharedPointer< VespucciWorkspace > ws, const QString &dataset_key)
~RepresentativeSpectrumDialog()