38 lines
971 B
C++
38 lines
971 B
C++
#ifndef FINDPEAKSRESULTDIALOG_H
|
|
#define FINDPEAKSRESULTDIALOG_H
|
|
|
|
#include <QDialog>
|
|
#include <QObject>
|
|
#include <QVariantMap>
|
|
|
|
class QTableWidget;
|
|
class QTableWidgetItem;
|
|
class QAbstractTableModel;
|
|
class QComboBox;
|
|
|
|
class FindPeaksResultDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
FindPeaksResultDialog(QWidget* parent = nullptr);
|
|
virtual ~FindPeaksResultDialog();
|
|
void SetPeakResultDataFilename(const QString& data_filename);
|
|
void SetChannelNameList(const QStringList& ch_name_list);
|
|
void UpdatePeakResult();
|
|
QAbstractTableModel *GetPeakResultDataModel() const;
|
|
|
|
private:
|
|
void saveCurrentPeakResult();
|
|
QVariantMap peakInfo(QTableWidgetItem* item, bool show_peak, bool show_peak_area);
|
|
|
|
signals:
|
|
void peakInfoChanged(QVariantMap peak_infos);
|
|
|
|
private:
|
|
QComboBox* _filter_channel_combo_box = nullptr;
|
|
QTableWidget* _peaks_result_table = nullptr;
|
|
QString _peaks_result_data_filename;
|
|
};
|
|
|
|
#endif // FINDPEAKSRESULTDIALOG_H
|