EnergySpectrumAnalyer/src/ConformToTheEnergySpectrum/ConformToTheEnergySpectrum.h
徐海 d1d5b1d3d0 1、修改添加图表的还原
2、修改bug
3、更新测量数据接收代码
2026-05-12 20:57:54 +08:00

41 lines
1.0 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#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