mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-05-29 12:52:28 -04:00
Write dial frequency and JT9 submode to all.txt.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3232 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
0cbfbc6bb7
commit
22dad6327a
@ -300,6 +300,14 @@ MainWindow::MainWindow(QSharedMemory *shdmem, QWidget *parent) :
|
|||||||
ui->labDialFreq->setStyleSheet( \
|
ui->labDialFreq->setStyleSheet( \
|
||||||
"QLabel { background-color : black; color : yellow; }");
|
"QLabel { background-color : black; color : yellow; }");
|
||||||
ui->frame->hide();
|
ui->frame->hide();
|
||||||
|
|
||||||
|
QFile f2("ALL.TXT");
|
||||||
|
f2.open(QIODevice::WriteOnly | QIODevice::Text | QIODevice::Append);
|
||||||
|
QTextStream out(&f2);
|
||||||
|
out << QDateTime::currentDateTimeUtc().toString("yyyy-MMM-dd hh:mm")
|
||||||
|
<< m_dialFreq << " MHz " << m_mode << endl;
|
||||||
|
f2.close();
|
||||||
|
|
||||||
} // End of MainWindow constructor
|
} // End of MainWindow constructor
|
||||||
|
|
||||||
//--------------------------------------------------- MainWindow destructor
|
//--------------------------------------------------- MainWindow destructor
|
||||||
@ -1276,9 +1284,9 @@ void MainWindow::readFromStdout() //readFromStdout
|
|||||||
QFile f("ALL.TXT");
|
QFile f("ALL.TXT");
|
||||||
f.open(QIODevice::WriteOnly | QIODevice::Text | QIODevice::Append);
|
f.open(QIODevice::WriteOnly | QIODevice::Text | QIODevice::Append);
|
||||||
QTextStream out(&f);
|
QTextStream out(&f);
|
||||||
if(m_RxLog & 1) {
|
if(m_RxLog && 1) {
|
||||||
out << QDateTime::currentDateTimeUtc().toString("yyyy-MMM-dd hh:mm")
|
out << QDateTime::currentDateTimeUtc().toString("yyyy-MMM-dd hh:mm")
|
||||||
<< endl;
|
<< m_dialFreq << " MHz " << m_mode << endl;
|
||||||
m_RxLog=0;
|
m_RxLog=0;
|
||||||
}
|
}
|
||||||
int n=t.length();
|
int n=t.length();
|
||||||
@ -1526,7 +1534,8 @@ void MainWindow::guiUpdate()
|
|||||||
f.open(QIODevice::WriteOnly | QIODevice::Text | QIODevice::Append);
|
f.open(QIODevice::WriteOnly | QIODevice::Text | QIODevice::Append);
|
||||||
QTextStream out(&f);
|
QTextStream out(&f);
|
||||||
out << QDateTime::currentDateTimeUtc().toString("hhmm")
|
out << QDateTime::currentDateTimeUtc().toString("hhmm")
|
||||||
<< " Transmitting: " << t << endl;
|
<< " Transmitting " << m_dialFreq << " MHz " << m_mode
|
||||||
|
<< ": " << t << endl;
|
||||||
f.close();
|
f.close();
|
||||||
if(m_tx2QSO) displayTxMsg(t);
|
if(m_tx2QSO) displayTxMsg(t);
|
||||||
}
|
}
|
||||||
@ -1593,12 +1602,15 @@ void MainWindow::guiUpdate()
|
|||||||
soundInThread.setMonitoring(false);
|
soundInThread.setMonitoring(false);
|
||||||
btxok=true;
|
btxok=true;
|
||||||
m_transmitting=true;
|
m_transmitting=true;
|
||||||
QFile f("ALL.TXT");
|
if(!m_tune) {
|
||||||
f.open(QIODevice::WriteOnly | QIODevice::Text | QIODevice::Append);
|
QFile f("ALL.TXT");
|
||||||
QTextStream out(&f);
|
f.open(QIODevice::WriteOnly | QIODevice::Text | QIODevice::Append);
|
||||||
out << QDateTime::currentDateTimeUtc().toString("hhmm")
|
QTextStream out(&f);
|
||||||
<< " Transmitting: " << t << endl;
|
out << QDateTime::currentDateTimeUtc().toString("hhmm")
|
||||||
f.close();
|
<< " Transmitting " << m_dialFreq << " MHz " << m_mode
|
||||||
|
<< ": " << t << endl;
|
||||||
|
f.close();
|
||||||
|
}
|
||||||
if(m_tx2QSO and !m_tune) displayTxMsg(t);
|
if(m_tx2QSO and !m_tune) displayTxMsg(t);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user