diff --git a/plotter.cpp b/plotter.cpp index cf31661..a9195d9 100644 --- a/plotter.cpp +++ b/plotter.cpp @@ -36,7 +36,7 @@ CPlotter::CPlotter(QWidget *parent) : //CPlotter Constructor m_line {0}, m_fSample {12000}, m_nsps {6912}, - m_Percent2DScreen {30}, //percent of screen used for 2D display + m_Percent2DScreen {0}, //percent of screen used for 2D display m_Percent2DScreen0 {0}, m_rxFreq {1020}, m_txFreq {0}, diff --git a/widegraph.cpp b/widegraph.cpp index 350eae9..d2feeb3 100644 --- a/widegraph.cpp +++ b/widegraph.cpp @@ -64,8 +64,8 @@ WideGraph::WideGraph(QSettings * settings, QWidget *parent) : ui->bppSpinBox->setValue(n); m_nsmo=m_settings->value("SmoothYellow",1).toInt(); ui->smoSpinBox->setValue(m_nsmo); - m_Percent2DScreen=m_settings->value("Percent2D",30).toInt(); - m_waterfallAvg = m_settings->value("WaterfallAvg",5).toInt(); + m_Percent2DScreen=m_settings->value("Percent2D", 0).toInt(); + m_waterfallAvg = m_settings->value("WaterfallAvg", 1).toInt(); ui->waterfallAvgSpinBox->setValue(m_waterfallAvg); ui->widePlot->setWaterfallAvg(m_waterfallAvg); ui->widePlot->setCurrent(m_settings->value("Current",false).toBool()); @@ -76,17 +76,18 @@ WideGraph::WideGraph(QSettings * settings, QWidget *parent) : if(ui->widePlot->cumulative()) ui->spec2dComboBox->setCurrentIndex(1); if(ui->widePlot->linearAvg()) ui->spec2dComboBox->setCurrentIndex(2); if(ui->widePlot->Reference()) ui->spec2dComboBox->setCurrentIndex(3); - int nbpp=m_settings->value("BinsPerPixel",2).toInt(); + int nbpp=m_settings->value("BinsPerPixel", 4).toInt(); ui->widePlot->setBinsPerPixel(nbpp); ui->sbPercent2dPlot->setValue(m_Percent2DScreen); + ui->widePlot->SetPercent2DScreen(m_Percent2DScreen); ui->widePlot->setStartFreq(m_settings->value("StartFreq",0).toInt()); ui->fStartSpinBox->setValue(ui->widePlot->startFreq()); m_waterfallPalette=m_settings->value("WaterfallPalette","Default").toString(); m_userPalette = WFPalette {m_settings->value("UserPalette").value ()}; m_fMinPerBand = m_settings->value ("FminPerBand").toHash (); setRxRange (); - ui->controls_widget->setVisible(!m_settings->value("HideControls",false).toBool()); - ui->cbControls->setChecked(!m_settings->value("HideControls",false).toBool()); + ui->controls_widget->setVisible(!m_settings->value("HideControls", true).toBool()); + ui->cbControls->setChecked(!m_settings->value("HideControls", true).toBool()); } int index=0; diff --git a/widegraph.ui b/widegraph.ui index 3b5f84c..05b4ede 100644 --- a/widegraph.ui +++ b/widegraph.ui @@ -6,7 +6,7 @@ 0 0 - 799 + 942 337 @@ -68,7 +68,7 @@ Controls - true + false @@ -219,7 +219,7 @@ 5 - 30 + 0 @@ -293,7 +293,7 @@ 1 - 2 + 5