summaryrefslogtreecommitdiff
path: root/gr-qtgui/lib/spectrumUpdateEvents.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gr-qtgui/lib/spectrumUpdateEvents.cc')
-rw-r--r--gr-qtgui/lib/spectrumUpdateEvents.cc26
1 files changed, 26 insertions, 0 deletions
diff --git a/gr-qtgui/lib/spectrumUpdateEvents.cc b/gr-qtgui/lib/spectrumUpdateEvents.cc
index f48e079861..1294587409 100644
--- a/gr-qtgui/lib/spectrumUpdateEvents.cc
+++ b/gr-qtgui/lib/spectrumUpdateEvents.cc
@@ -296,6 +296,32 @@ FreqUpdateEvent::getNumDataPoints() const
}
+
+SetFreqEvent::SetFreqEvent(const double centerFreq,
+ const double bandwidth)
+ : QEvent(QEvent::Type(SpectrumFrequencyRangeEventType))
+{
+ _centerFrequency = centerFreq;
+ _bandwidth = bandwidth;
+}
+
+SetFreqEvent::~SetFreqEvent()
+{
+}
+
+double
+SetFreqEvent::getCenterFrequency() const
+{
+ return _centerFrequency;
+}
+
+double
+SetFreqEvent::getBandwidth() const
+{
+ return _bandwidth;
+}
+
+
/***************************************************************************/