mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-08-14 23:43:44 -04:00
1. Fix a bug that could cause decoder to hang when presented with
bad data. 2. Fix a bug that could allow a Koetter-Vardy false decode instead of a valid Berlekamp-Massey decode, sometimes leading to program crash. 3. Many more edits in the User's Guide, *.adoc files. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3664 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
+28
-1
@@ -1,4 +1,4 @@
|
||||
//------------------------------------------------------------- MainWindow
|
||||
//------------------------------------------------------------ MainWindow
|
||||
#include "mainwindow.h"
|
||||
#include "ui_mainwindow.h"
|
||||
|
||||
@@ -31,6 +31,7 @@ wchar_t buffer[256];
|
||||
|
||||
Rig* rig = NULL;
|
||||
QTextEdit* pShortcuts;
|
||||
QTextEdit* pPrefixes;
|
||||
QTcpSocket* commanderSocket = new QTcpSocket(0);
|
||||
|
||||
QString rev="$Rev$";
|
||||
@@ -3053,3 +3054,29 @@ void MainWindow::on_outAttenuation_valueChanged (int a)
|
||||
ui->outAttenuation->setToolTip (tr ("Transmit digital gain ") + (a ? QString::number (-dBAttn, 'f', 1) : "0") + "dB");
|
||||
Q_EMIT outAttenuationChanged (dBAttn);
|
||||
}
|
||||
|
||||
void MainWindow::on_actionShort_list_of_add_on_prefixes_and_suffixes_triggered()
|
||||
{
|
||||
pPrefixes = new QTextEdit(0);
|
||||
pPrefixes->setReadOnly(true);
|
||||
pPrefixes->setFontPointSize(10);
|
||||
pPrefixes->setWindowTitle("Prefixes");
|
||||
pPrefixes->setGeometry(QRect(45,50,565,450));
|
||||
Qt::WindowFlags flags = Qt::WindowCloseButtonHint |
|
||||
Qt::WindowMinimizeButtonHint;
|
||||
pPrefixes->setWindowFlags(flags);
|
||||
QString prefixes = m_appDir + "/prefixes.txt";
|
||||
QFile f(prefixes);
|
||||
if(!f.open(QIODevice::ReadOnly | QIODevice::Text)) {
|
||||
msgBox("Cannot open " + prefixes);
|
||||
return;
|
||||
}
|
||||
QTextStream s(&f);
|
||||
QString t;
|
||||
for(int i=0; i<100; i++) {
|
||||
t=s.readLine();
|
||||
pPrefixes->append(t);
|
||||
if(s.atEnd()) break;
|
||||
}
|
||||
pPrefixes->show();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user