41 lines
1.0 KiB
C++
41 lines
1.0 KiB
C++
#ifndef CONFORMTOTHEENERGYSPECTRUM_H
|
||
#define CONFORMTOTHEENERGYSPECTRUM_H
|
||
|
||
#include "MeasureAnalysisView.h"
|
||
|
||
class QMenu;
|
||
class CustomQwtPlot;
|
||
class QwtPlotCurve;
|
||
class BusyIndicator;
|
||
|
||
class ConformToTheEnergySpectrum : public MeasureAnalysisView
|
||
{
|
||
Q_OBJECT
|
||
public:
|
||
explicit ConformToTheEnergySpectrum(QWidget *parent = nullptr);
|
||
virtual ~ConformToTheEnergySpectrum();
|
||
virtual void InitViewWorkspace(const QString& project_name) override final;
|
||
virtual void SetAnalyzeDataFilename(const QMap<QString, QVariant>& data_files_set) override;
|
||
|
||
protected:
|
||
virtual void showEvent(QShowEvent* e) override final;
|
||
|
||
private:
|
||
void setupMenu();
|
||
void loadAndProcess(); // 读取CSV,执行符合处理,绘制能谱折线图
|
||
|
||
private slots:
|
||
void onActionPlotConfigure();
|
||
|
||
private:
|
||
QMenu* _menu = nullptr;
|
||
BusyIndicator* _busy_indicator = nullptr;
|
||
CustomQwtPlot* _plot = nullptr;
|
||
QwtPlotCurve* _curve = nullptr;
|
||
QString _data_filename;
|
||
};
|
||
|
||
#endif // CONFORMTOTHEENERGYSPECTRUM_H
|
||
|
||
|