29class WideGraph :
public QWidget {
33 explicit WideGraph(QSettings *, QWidget * =
nullptr);
38 int centerFreq()
const;
39 int filterMinimum()
const;
40 int filterMaximum()
const;
41 bool filterEnabled()
const;
42 int filterCenter()
const;
43 int filterWidth()
const;
45 bool isAutoSyncEnabled()
const;
46 int nStartFreq()
const;
47 bool shouldDisplayDecodeAttempts()
const;
48 bool shouldAutoSyncSubmode(
int)
const;
49 int smoothYellow()
const;
53 void dataSink(WF::SPlot
const &,
float);
54 void drawDecodeLine(QColor
const &,
int,
int);
55 void drawHorizontalLine(QColor
const &,
int,
int);
57 void setBand(QString
const &);
58 void setFilterCenter(
int);
59 void setFilterWidth(
int);
60 void setFilterMinimumBandwidth(
int);
61 void setFilterEnabled(
bool);
62 void setFilterOpacityPercent(
int);
72 void want_new_drift(qint64);
75 void setDialFreq(
float);
76 void setTimeControlsVisible(
bool);
77 bool timeControlsVisible()
const;
78 void setControlsVisible(
bool,
bool =
true);
79 bool controlsVisible()
const;
80 void onDriftChanged(qint64 drift_ms);
81 void setPaused(
bool paused) { m_paused = paused; }
82 void notifyDriftedSignalsDecoded(
int);
85 void keyPressEvent(QKeyEvent *e)
override;
86 void closeEvent(QCloseEvent *)
override;
90 void on_qsyPushButton_clicked();
91 void on_offsetSpinBox_valueChanged(
int n);
92 void on_waterfallAvgSpinBox_valueChanged(
int arg1);
93 void on_bppSpinBox_valueChanged(
int arg1);
94 void on_spec2dComboBox_currentIndexChanged(
int);
95 void on_fStartSpinBox_valueChanged(
int n);
96 void on_paletteComboBox_activated(
int);
97 void on_cbFlatten_toggled(
bool b);
98 void on_adjust_palette_push_button_clicked(
bool);
99 void on_gainSlider_valueChanged(
int value);
100 void on_zeroSlider_valueChanged(
int value);
101 void on_gain2dSlider_valueChanged(
int value);
102 void on_zero2dSlider_valueChanged(
int value);
103 void on_smoSpinBox_valueChanged(
int n);
104 void on_sbPercent2dPlot_valueChanged(
int n);
105 void on_filterCenterSpinBox_valueChanged(
int n);
106 void on_filterCenterSpinBox_editingFinished();
107 void on_filterWidthSpinBox_valueChanged(
int n);
108 void on_filterWidthSpinBox_editingFinished();
109 void on_filterCenterSyncButton_clicked();
110 void on_filterCheckBox_toggled(
bool b);
111 void on_filterOpacitySpinBox_valueChanged(
int n);
113 void on_autoDriftButton_toggled(
bool checked);
114 void on_driftSpinBox_valueChanged(
int n);
115 void on_driftSyncButton_clicked();
116 void on_driftSyncEndButton_clicked();
117 void on_driftSyncMinuteButton_clicked();
118 void on_driftSyncResetButton_clicked();
123 QScopedPointer<Ui::WideGraph> ui;
125 int m_waterfallAvg = 1;
126 int m_waterfallNow = 0;
127 int m_filterCenter = 1500;
128 int m_filterWidth = 120;
129 int m_filterMinWidth = 120;
132 int m_lastSecondInPeriod = 0;
133 int m_autoSyncTimeLeft = 0;
134 int m_autoSyncDecodesLeft = 0;
135 bool m_paused =
false;
136 bool m_filterEnabled =
false;
137 bool m_autoSyncConnected =
false;
139 QSettings *m_settings;
141 QTimer *m_autoSyncTimer;
142 QDir m_palettes_path;
144 WF::SWide m_swide = {};
145 WF::SPlot m_splot = {};
146 WF::State m_state = WF::Sink::Drained;
148 QStringView m_timeFormat;
149 QString m_waterfallPalette;