More decoder progress.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@2665 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor 2012-10-15 19:55:48 +00:00
parent 30c1266614
commit 465a3c630e
5 changed files with 6 additions and 43 deletions

View File

@ -1,6 +0,0 @@
#include "jt9decode.h"
void JT9DecodeThread::run()
{
qDebug() << "Decode Thread started";
}

View File

@ -1,29 +0,0 @@
#ifndef JT9DECODE_H
#define JT9DECODE_H
#include <QtCore>
#include <QDebug>
class JT9DecodeThread : public QThread
{
Q_OBJECT
protected:
virtual void run();
public:
// Constructs (but does not start) a JT9DecodeThread
JT9DecodeThread()
: quitExecution(false) // Initialize some private members
, m_txOK(false)
{
}
public:
bool quitExecution; //If true, thread exits gracefully
// Private members
private:
bool m_txOK; //Enable Tx audio
};
#endif // JT9DECODE_H

View File

@ -824,8 +824,7 @@ void MainWindow::freezeDecode(int n) //freezeDecode()
void MainWindow::decode() //decode()
{
// jt9DecodeThread.start(QThread::NormalPriority);
m_len1=80;
*future3 = QtConcurrent::run(decoder_, &m_TRperiod);
watcher3->setFuture(*future2);
}

View File

@ -7,7 +7,6 @@
#include <QHash>
#include "soundin.h"
#include "soundout.h"
#include "jt9decode.h"
#include "commons.h"
#include "sleep.h"
@ -136,6 +135,7 @@ private:
qint32 m_TRperiod;
qint32 m_nsps;
qint32 m_hsymStop;
qint32 m_len1;
bool m_monitoring;
bool m_transmitting;
@ -153,6 +153,8 @@ private:
bool m_kb8rq;
bool m_NB;
char m_decoded[80];
float m_pctZap;
QRect m_wideGraphGeom;
@ -192,7 +194,6 @@ private:
SoundInThread soundInThread; //Instantiate the audio threads
SoundOutThread soundOutThread;
JT9DecodeThread jt9DecodeThread;
//---------------------------------------------------- private functions
void readSettings();

View File

@ -35,8 +35,7 @@ QMAKE_EXTRA_COMPILERS += gfortran
SOURCES += main.cpp mainwindow.cpp plotter.cpp about.cpp \
soundin.cpp soundout.cpp devsetup.cpp \
widegraph.cpp getfile.cpp \
displaytext.cpp getdev.cpp \
jt9decode.cpp
displaytext.cpp getdev.cpp
win32 {
SOURCES += killbyname.cpp
@ -44,8 +43,7 @@ SOURCES += killbyname.cpp
HEADERS += mainwindow.h plotter.h soundin.h soundout.h \
about.h devsetup.h widegraph.h getfile.h \
commons.h sleep.h displaytext.h \
jt9decode.h
commons.h sleep.h displaytext.h
DEFINES += __cplusplus