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:
Joe Taylor
2015-06-08 19:42:20 +00:00
parent 477d45a72c
commit be5eb31884
10 changed files with 215 additions and 30 deletions
+10 -1
View File
@@ -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();
}