From 4908d110394006faa1f6f2ad398e389add6d20ca Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Sat, 29 Sep 2012 23:52:01 +0000 Subject: [PATCH] GUI tweaks git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@2620 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- plotter.cpp | 14 ++++++++++---- widegraph.cpp | 4 ++-- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/plotter.cpp b/plotter.cpp index 36fad608d..7266c712d 100644 --- a/plotter.cpp +++ b/plotter.cpp @@ -194,7 +194,8 @@ void CPlotter::DrawOverlay() //DrawOverlay() m_freqPerDiv=10; if(n>25) m_freqPerDiv=50; if(n>70) m_freqPerDiv=100; - if(n>250) m_freqPerDiv=500; + if(n>140) m_freqPerDiv=200; + if(n>310) m_freqPerDiv=500; m_hdivs = w*df/m_freqPerDiv + 0.9999; m_ScalePixmap.fill(Qt::white); painter0.drawRect(0, 0, w, 30); @@ -205,8 +206,10 @@ void CPlotter::DrawOverlay() //DrawOverlay() x = (int)( (float)i*pixperdiv ); painter0.drawLine(x,18,x,30); } - for( int i=1; i<5*m_hdivs; i++) { //minor ticks - x = i*pixperdiv/5.0; + int minor=5; + if(m_freqPerDiv==200) minor=4; + for( int i=1; ifreqSpanSpinBox->setValue(n); ui->widePlot->setNSpan(n); - int nbpp = n * 32768.0/(w*96.0) + 0.5; - ui->widePlot->setBinsPerPixel(nbpp); +// int nbpp = n * 32768.0/(w*96.0) + 0.5; + ui->widePlot->setBinsPerPixel(1); m_waterfallAvg = settings.value("WaterfallAvg",10).toInt(); ui->waterfallAvgSpinBox->setValue(m_waterfallAvg); m_dialFreq=settings.value("DialFreqMHz",473.000).toDouble();