From c56f852a85cd5f7da075c295b634b54d9e9cc0be Mon Sep 17 00:00:00 2001 From: f4exb Date: Thu, 9 Feb 2017 18:44:20 +0100 Subject: [PATCH] New scope: added trace and trigger number display methods --- sdrbase/gui/glscopenggui.cpp | 10 ++++++++++ sdrbase/gui/glscopenggui.h | 2 ++ 2 files changed, 12 insertions(+) diff --git a/sdrbase/gui/glscopenggui.cpp b/sdrbase/gui/glscopenggui.cpp index 7f822533b..75bead96b 100644 --- a/sdrbase/gui/glscopenggui.cpp +++ b/sdrbase/gui/glscopenggui.cpp @@ -384,6 +384,11 @@ void GLScopeNGGUI::on_freerun_toggled(bool checked) ui->freerun->isChecked()); // TODO: implement one shot feature } +void GLScopeNGGUI::setTraceIndexDisplay() +{ + ui->traceText->setText(tr("%1").arg(ui->trace->value())); +} + void GLScopeNGGUI::setTimeScaleDisplay() { m_sampleRate = m_glScope->getSampleRate(); @@ -514,6 +519,11 @@ void GLScopeNGGUI::setAmpOfsDisplay() } } +void GLScopeNGGUI::setTrigIndexDisplay() +{ + ui->trigText->setText(tr("%1").arg(ui->trig->value())); +} + void GLScopeNGGUI::setTrigLevelDisplay() { double t = (ui->trigLevelCoarse->value() / 100.0f) + (ui->trigLevelFine->value() / 20000.0f); diff --git a/sdrbase/gui/glscopenggui.h b/sdrbase/gui/glscopenggui.h index 367496c80..bc79bb995 100644 --- a/sdrbase/gui/glscopenggui.h +++ b/sdrbase/gui/glscopenggui.h @@ -65,6 +65,7 @@ private: void applySettings(); // First row + void setTraceIndexDisplay(); void setTimeScaleDisplay(); void setTraceLenDisplay(); void setTimeOfsDisplay(); @@ -72,6 +73,7 @@ private: void setAmpScaleDisplay(); void setAmpOfsDisplay(); // Third row + void setTrigIndexDisplay(); void setTrigLevelDisplay(); void setTrigDelayDisplay(); void setTrigPreDisplay();