Offer cumulative as well as current 2-d plot.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@2656 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor
2012-10-11 00:51:16 +00:00
parent a0759bf0ff
commit 47b8c44521
6 changed files with 56 additions and 1 deletions
+16
View File
@@ -1,5 +1,6 @@
#include "widegraph.h"
#include "ui_widegraph.h"
#include "commons.h"
#define NSMAX 22000
@@ -14,6 +15,7 @@ WideGraph::WideGraph(QWidget *parent) :
this->setMaximumWidth(2048);
this->setMaximumHeight(880);
ui->widePlot->setMaximumHeight(800);
ui->widePlot->m_bCurrent=false;
connect(ui->widePlot, SIGNAL(freezeDecode1(int)),this,
SLOT(wideFreezeDecode(int)));
@@ -38,6 +40,9 @@ WideGraph::WideGraph(QWidget *parent) :
ui->waterfallAvgSpinBox->setValue(m_waterfallAvg);
m_dialFreq=settings.value("DialFreqMHz",473.000).toDouble();
ui->fDialLineEdit->setText(QString::number(m_dialFreq));
ui->widePlot->m_bCurrent=settings.value("Current",true).toBool();
ui->rbCurrent->setChecked(ui->widePlot->m_bCurrent);
ui->rbCumulative->setChecked(!ui->widePlot->m_bCurrent);
settings.endGroup();
}
@@ -62,6 +67,7 @@ void WideGraph::saveSettings()
settings.setValue("FreqSpan",ui->freqSpanSpinBox->value());
settings.setValue("WaterfallAvg",ui->waterfallAvgSpinBox->value());
settings.setValue("DialFreqMHz",m_dialFreq);
settings.setValue("Current",ui->widePlot->m_bCurrent);
settings.endGroup();
}
@@ -256,3 +262,13 @@ void WideGraph::setPeriod(int ntrperiod, int nsps)
m_nsps=nsps;
ui->widePlot->setNsps(nsps);
}
void WideGraph::on_rbCurrent_toggled(bool checked)
{
ui->widePlot->m_bCurrent=checked;
}
void WideGraph::on_rbCumulative_toggled(bool checked)
{
ui->widePlot->m_bCurrent=!checked;
}