From d25348d869937b3959fd96fde32c9d54be44c92a Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Sat, 7 Jul 2012 15:56:31 +0000 Subject: [PATCH] Removing more unused code. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/jtms3@2500 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- plotter.cpp | 21 --------------------- plotter.h | 13 ------------- widegraph.cpp | 4 ++-- 3 files changed, 2 insertions(+), 36 deletions(-) diff --git a/plotter.cpp b/plotter.cpp index a16d8de63..19696e039 100644 --- a/plotter.cpp +++ b/plotter.cpp @@ -356,15 +356,6 @@ void CPlotter::setTol(int n) //setTol() DrawOverlay(); } -void CPlotter::setBinsPerPixel(int n) {m_binsPerPixel = n;} //set nbpp - -int CPlotter::binsPerPixel(){return m_binsPerPixel;} //get nbpp - -void CPlotter::setNkhz(int n) //setNkhz() -{ - m_nkhz=n; -} - int CPlotter::DF() {return m_DF;} // get DF void CPlotter::mousePressEvent(QMouseEvent *event) //mousePressEvent @@ -510,18 +501,6 @@ void CPlotter::setPalette(QString palette) //setPalette() } -void CPlotter::setFsample(int n) -{ - m_fSample=n; -} - -void CPlotter::setMode65(int n) -{ - m_mode65=n; - DrawOverlay(); //Redraw scales and ticks - update(); //trigger a new paintEvent -} - void CPlotter::set2Dspec(bool b) { m_2Dspec=b; diff --git a/plotter.h b/plotter.h index 50235180c..5e9c105e1 100644 --- a/plotter.h +++ b/plotter.h @@ -28,7 +28,6 @@ public: QColor m_ColorTbl[256]; int m_plotZero; int m_plotGain; - qint32 m_binsPerPixel; qint32 m_DF; qint32 m_tol; @@ -38,28 +37,16 @@ public: int getPlotZero(); void setPlotGain(int plotGain); int getPlotGain(); - void SetCenterFreq(int f); - qint64 centerFreq(); - void SetStartFreq(quint64 f); - qint64 startFreq(); - void SetFreqOffset(quint64 f); - qint64 freqOffset(); int plotWidth(); void setNSpan(int n); void UpdateOverlay(); void setDataFromDisk(bool b); void setTol(int n); - void setBinsPerPixel(int n); - int binsPerPixel(); - void setFcal(int n); - void setNkhz(int n); void DrawOverlay(); int fQSO(); int DF(); int autoZero(); void setPalette(QString palette); - void setFsample(int n); - void setMode65(int n); void set2Dspec(bool b); signals: diff --git a/widegraph.cpp b/widegraph.cpp index 8e3123bde..6cdae822e 100644 --- a/widegraph.cpp +++ b/widegraph.cpp @@ -32,8 +32,8 @@ WideGraph::WideGraph(QWidget *parent) : int w = settings.value("PlotWidth",1000).toInt(); ui->freqSpanSpinBox->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(nbpp); m_waterfallAvg = settings.value("WaterfallAvg",10).toInt(); ui->waterfallAvgSpinBox->setValue(m_waterfallAvg); settings.endGroup();