mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-07-15 07:14:42 -04:00
Basic functionality of Echo spectrum is in place.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@5557 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
+10
-1
@@ -1,4 +1,4 @@
|
||||
//#include "commons.h"
|
||||
#include "commons.h"
|
||||
#include <QSettings>
|
||||
#include "echoplot.h"
|
||||
#include "echograph.h"
|
||||
@@ -27,6 +27,7 @@ EchoGraph::EchoGraph(QSettings * settings, QWidget *parent) :
|
||||
ui->zeroSlider->setValue(ui->echoPlot->getPlotZero());
|
||||
ui->gainSlider->setValue(ui->echoPlot->getPlotGain());
|
||||
ui->smoothSpinBox->setValue(m_settings->value("Smooth",0).toInt());
|
||||
ui->binsPerPixelSpinBox->setValue(m_settings->value("EchoBPP",0).toInt());
|
||||
ui->echoPlot->m_blue=m_settings->value("BlueCurve",false).toBool();
|
||||
ui->cbBlue->setChecked(ui->echoPlot->m_blue);
|
||||
m_settings->endGroup();
|
||||
@@ -52,6 +53,7 @@ void EchoGraph::saveSettings()
|
||||
m_settings->setValue("PlotZero",ui->echoPlot->m_plotZero);
|
||||
m_settings->setValue("PlotGain",ui->echoPlot->m_plotGain);
|
||||
m_settings->setValue("Smooth",ui->echoPlot->m_smooth);
|
||||
m_settings->setValue("EchoBPP",ui->echoPlot->m_binsPerPixel);
|
||||
m_settings->setValue("BlueCurve",ui->echoPlot->m_blue);
|
||||
m_settings->endGroup();
|
||||
}
|
||||
@@ -84,3 +86,10 @@ void EchoGraph::on_zeroSlider_valueChanged(int value)
|
||||
ui->echoPlot->setPlotZero(value);
|
||||
ui->echoPlot->draw();
|
||||
}
|
||||
|
||||
void EchoGraph::on_binsPerPixelSpinBox_valueChanged(int n)
|
||||
{
|
||||
ui->echoPlot->m_binsPerPixel=n;
|
||||
ui->echoPlot->DrawOverlay();
|
||||
ui->echoPlot->draw();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user