add statistics to GraphicAnalysis
This commit is contained in:
@@ -29,11 +29,13 @@ namespace Ui {
|
||||
class GraphicAnalysis;
|
||||
}
|
||||
class GraphicAnalysisPlugin;
|
||||
class GraphicAnalysisStatistics;
|
||||
|
||||
class QAD_GRAPHIC_ANALYSIS_EXPORT GraphicAnalysis: public GraphicRanges {
|
||||
Q_OBJECT
|
||||
friend class GraphicAnalysisPlugin;
|
||||
Q_PROPERTY(bool toolboxVisible READ isToolboxVisible WRITE setToolboxVisible)
|
||||
Q_PROPERTY(bool showSpectrum READ isShowSpectrum WRITE setShowSpectrum)
|
||||
|
||||
public:
|
||||
GraphicAnalysis(QWidget * parent = 0);
|
||||
@@ -49,8 +51,8 @@ public:
|
||||
bool isToolboxVisible() const;
|
||||
void setToolboxVisible(bool yes);
|
||||
void setLabelX(const QString & str);
|
||||
QBoxLayout * toolboxLayout();
|
||||
QWidget * toolboxWidget();
|
||||
void setShowSpectrum(bool on);
|
||||
bool isShowSpectrum() const;
|
||||
|
||||
void setGraphicsCount(int cnt, bool update = true);
|
||||
@@ -70,6 +72,7 @@ protected:
|
||||
void checkRangeRequest();
|
||||
|
||||
Ui::GraphicAnalysis * ui = nullptr;
|
||||
GraphicAnalysisStatistics * window_stat;
|
||||
QWidget * widget_toolbox = nullptr;
|
||||
QMap<int, QPolygonF> src_data;
|
||||
GraphicRanges::Range range_fft;
|
||||
@@ -91,6 +94,7 @@ private slots:
|
||||
void checkSpectrum_toggled(bool on);
|
||||
void buttonSpectrumRange_toggled(bool on);
|
||||
void checkSpectrumFixDuration_toggled(bool on);
|
||||
void buttonStatistics_toggled(bool on);
|
||||
|
||||
signals:
|
||||
void showSpectrumChanged(bool);
|
||||
|
||||
Reference in New Issue
Block a user