From d8a592af510267b8f4d56c946569a6ee34e85cc1 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Mon, 5 Aug 2013 15:00:38 +0000 Subject: [PATCH] Move the PSKreporter functions in Windows to our built-in code. No more need for PSKReporter.dll. Remove the no-longer-needed "#ifdef WIN32", "#ifdef UNIX" blocks. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3524 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 14 ++++++++++---- widegraph.h | 2 ++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index d3b25779c..95a199511 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -350,6 +350,7 @@ MainWindow::MainWindow(QSharedMemory *shdmem, QString *thekey, \ ui->decodedTextLabel->setText(t); ui->decodedTextLabel2->setText(t); + /* #ifdef WIN32 if(m_pskReporter) { rc=ReporterInitialize(NULL,NULL); @@ -364,9 +365,10 @@ MainWindow::MainWindow(QSharedMemory *shdmem, QString *thekey, \ #endif #ifdef UNIX +*/ psk_Reporter = new PSK_Reporter(this); psk_Reporter->setLocalStation(m_myCall,m_myGrid, m_antDescription[m_band], "WSJT-X r" + rev.mid(6,4) ); -#endif +//#endif m_logBook.init(); @@ -813,6 +815,7 @@ void MainWindow::on_actionDeviceSetup_triggered() //Setup Dialog ui->bandComboBox->addItems(dlg.m_bandDescription); ui->bandComboBox->setCurrentIndex(m_band); +/* #ifdef WIN32 if(dlg.m_pskReporter!=m_pskReporter) { if(dlg.m_pskReporter) { @@ -830,13 +833,14 @@ void MainWindow::on_actionDeviceSetup_triggered() //Setup Dialog } } #endif +*/ m_pskReporter=dlg.m_pskReporter; -#ifdef UNIX +//#ifdef UNIX if(m_pskReporter) { psk_Reporter->setLocalStation(m_myCall, m_myGrid, m_antDescription[m_band], "WSJT-X r" + rev.mid(6,4) ); } -#endif +//#endif m_After73=dlg.m_After73; @@ -1591,6 +1595,7 @@ void MainWindow::readFromStdout() //readFromStdout wchar_t tremote[256]; remote.toWCharArray(tremote); +/* #ifdef WIN32 if(m_pskReporterInit and b and !m_diskData and okToPost) { @@ -1613,6 +1618,7 @@ void MainWindow::readFromStdout() //readFromStdout } } #else +*/ if(m_pskReporter and b and !m_diskData and okToPost) { psk_Reporter->setLocalStation(m_myCall, m_myGrid, m_antDescription[m_band], "WSJT-X r" + rev.mid(6,4) ); QString freq = QString::number(nfreq); @@ -1622,7 +1628,7 @@ void MainWindow::readFromStdout() //readFromStdout QString::number(QDateTime::currentDateTime().toTime_t())); } } -#endif +//#endif } } } diff --git a/widegraph.h b/widegraph.h index c2f2c27b1..d58a656a4 100644 --- a/widegraph.h +++ b/widegraph.h @@ -83,8 +83,10 @@ private: Ui::WideGraph *ui; }; +/* #ifdef WIN32 extern int set570(double freq_MHz); #endif +*/ #endif // WIDEGRAPH_H