summaryrefslogtreecommitdiff
path: root/widgets/echoplot.h
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2026-04-07 19:02:45 +0200
committerChristoph Berg <myon@debian.org>2026-04-07 19:02:45 +0200
commitf647d78463c1250ce9c99af664615fafccf5e959 (patch)
tree5b00428cef68aef1c9d407e2d4535687422419b6 /widgets/echoplot.h
parent0a13f1fdb9928b6d012569dd65f7f6ef18fac2f8 (diff)
New upstream version 3.0.0upstream/3.0.0
Diffstat (limited to 'widgets/echoplot.h')
-rw-r--r--[-rwxr-xr-x]widgets/echoplot.h196
1 files changed, 98 insertions, 98 deletions
diff --git a/widgets/echoplot.h b/widgets/echoplot.h
index e23adfee..44286fb6 100755..100644
--- a/widgets/echoplot.h
+++ b/widgets/echoplot.h
@@ -1,98 +1,98 @@
-///////////////////////////////////////////////////////////////////////////
-// Some code in this file and accompanying files is based on work by
-// Moe Wheatley, AE4Y, released under the "Simplified BSD License".
-// For more details see the accompanying file LICENSE_WHEATLEY.TXT
-///////////////////////////////////////////////////////////////////////////
-
-#ifndef EPLOTTER_H_
-#define EPLOTTER_H_
-
-#include <QFrame>
-#include <QSize>
-#include <QImage>
-#include <QString>
-
-#define VERT_DIVS 7 //specify grid screen divisions
-#define HORZ_DIVS 20
-
-class QPaintEvent;
-class QResizeEvent;
-
-class EPlotter : public QFrame
-{
- Q_OBJECT
-public:
- explicit EPlotter(QWidget *parent = 0);
- ~EPlotter();
-
- QSize minimumSizeHint() const;
- QSize sizeHint() const;
- float m_fSpan;
- qint32 m_TxFreq;
- qint32 m_w;
- qint32 m_plotZero;
- qint32 m_plotGain;
- qint32 m_smooth;
- qint32 m_binsPerPixel;
- qint32 m_nColor;
- bool m_blue;
- bool m_bBaseline;
-
- void draw(); //Update the Echo plot
- void SetRunningState(bool running);
- void setPlotZero(int plotZero);
- int getPlotZero();
- void setPlotGain(int plotGain);
- int getPlotGain();
- int plotWidth();
- void UpdateOverlay();
- void DrawOverlay();
- void setSmooth(int n);
- int getSmooth();
- void setColors(qint32 n);
- void setBaseline(bool b);
-
-// void SetPercent2DScreen(int percent){m_Percent2DScreen=percent;}
-
-protected:
- //re-implemented widget event handlers
- void paintEvent(QPaintEvent *event);
- void resizeEvent(QResizeEvent* event);
-
-private:
-
- void MakeFrequencyStrs();
- int XfromFreq(float f);
- float FreqfromX(int x);
- qint64 RoundFreq(qint64 freq, int resolution);
-
- QPixmap m_2DPixmap;
- QPixmap m_ScalePixmap;
- QPixmap m_OverlayPixmap;
- QSize m_Size;
- QString m_Str;
- QString m_HDivText[483];
-
- double m_fftBinWidth;
-
- qint64 m_StartFreq;
-
- qint32 m_dBStepSize;
- qint32 m_hdivs;
- qint32 m_line;
- qint32 m_freqPerDiv;
- qint32 m_h;
- qint32 m_h1;
- qint32 m_h2;
-
- bool m_Running;
- bool m_paintEventBusy;
-
-};
-
-extern "C" {
-//--------------------------------------------------- C and Fortran routines
-
-void smo121_(float x[], int* npts);
-}
-#endif // EPLOTTER_H
+///////////////////////////////////////////////////////////////////////////
+// Some code in this file and accompanying files is based on work by
+// Moe Wheatley, AE4Y, released under the "Simplified BSD License".
+// For more details see the accompanying file LICENSE_WHEATLEY.TXT
+///////////////////////////////////////////////////////////////////////////
+
+#ifndef EPLOTTER_H_
+#define EPLOTTER_H_
+
+#include <QFrame>
+#include <QSize>
+#include <QImage>
+#include <QString>
+
+#define VERT_DIVS 7 //specify grid screen divisions
+#define HORZ_DIVS 20
+
+class QPaintEvent;
+class QResizeEvent;
+
+class EPlotter : public QFrame
+{
+ Q_OBJECT
+public:
+ explicit EPlotter(QWidget *parent = 0);
+ ~EPlotter();
+
+ QSize minimumSizeHint() const;
+ QSize sizeHint() const;
+ float m_fSpan;
+ qint32 m_TxFreq;
+ qint32 m_w;
+ qint32 m_plotZero;
+ qint32 m_plotGain;
+ qint32 m_smooth;
+ qint32 m_binsPerPixel;
+ qint32 m_nColor;
+ bool m_blue;
+ bool m_bBaseline;
+
+ void draw(); //Update the Echo plot
+ void SetRunningState(bool running);
+ void setPlotZero(int plotZero);
+ int getPlotZero();
+ void setPlotGain(int plotGain);
+ int getPlotGain();
+ int plotWidth();
+ void UpdateOverlay();
+ void DrawOverlay();
+ void setSmooth(int n);
+ int getSmooth();
+ void setColors(qint32 n);
+ void setBaseline(bool b);
+
+// void SetPercent2DScreen(int percent){m_Percent2DScreen=percent;}
+
+protected:
+ //re-implemented widget event handlers
+ void paintEvent(QPaintEvent *event);
+ void resizeEvent(QResizeEvent* event);
+
+private:
+
+ void MakeFrequencyStrs();
+ int XfromFreq(float f);
+ float FreqfromX(int x);
+ qint64 RoundFreq(qint64 freq, int resolution);
+
+ QPixmap m_2DPixmap;
+ QPixmap m_ScalePixmap;
+ QPixmap m_OverlayPixmap;
+ QSize m_Size;
+ QString m_Str;
+ QString m_HDivText[483];
+
+ double m_fftBinWidth;
+
+ qint64 m_StartFreq;
+
+ qint32 m_dBStepSize;
+ qint32 m_hdivs;
+ qint32 m_line;
+ qint32 m_freqPerDiv;
+ qint32 m_h;
+ qint32 m_h1;
+ qint32 m_h2;
+
+ bool m_Running;
+ bool m_paintEventBusy;
+
+};
+
+extern "C" {
+//--------------------------------------------------- C and Fortran routines
+
+void smo121_(float x[], int* npts);
+}
+#endif // EPLOTTER_H