mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-08-05 07:32:25 -04:00
show SFox tx messages in ALL.TXT
This commit is contained in:
parent
2e6a4f597b
commit
0d7612218f
@ -4961,7 +4961,10 @@ void MainWindow::guiUpdate()
|
|||||||
foxcom_.bSendMsg=ui->cbSendMsg->isChecked();
|
foxcom_.bSendMsg=ui->cbSendMsg->isChecked();
|
||||||
memcpy(foxcom_.textMsg, m_freeTextMsg.leftJustified(26,' ').toLatin1(),26);
|
memcpy(foxcom_.textMsg, m_freeTextMsg.leftJustified(26,' ').toLatin1(),26);
|
||||||
foxgen_(&bSuperFox, fname.constData(), (FCL)fname.size());
|
foxgen_(&bSuperFox, fname.constData(), (FCL)fname.size());
|
||||||
if(bSuperFox) sfox_tx();
|
if(bSuperFox) {
|
||||||
|
writeFoxTxMsgs();
|
||||||
|
sfox_tx();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -10578,7 +10581,10 @@ Transmit:
|
|||||||
::memcpy(foxcom_.textMsg, m_freeTextMsg0.leftJustified(26,' ').toLatin1(),26);
|
::memcpy(foxcom_.textMsg, m_freeTextMsg0.leftJustified(26,' ').toLatin1(),26);
|
||||||
auto fname {QDir::toNativeSeparators(m_config.writeable_data_dir().absoluteFilePath("sfox_1.dat")).toLocal8Bit()};
|
auto fname {QDir::toNativeSeparators(m_config.writeable_data_dir().absoluteFilePath("sfox_1.dat")).toLocal8Bit()};
|
||||||
foxgen_(&bSuperFox, fname.constData(), (FCL)fname.size());
|
foxgen_(&bSuperFox, fname.constData(), (FCL)fname.size());
|
||||||
if(bSuperFox) sfox_tx();
|
if(bSuperFox) {
|
||||||
|
writeFoxTxMsgs();
|
||||||
|
sfox_tx();
|
||||||
|
}
|
||||||
m_tFoxTxSinceCQ++;
|
m_tFoxTxSinceCQ++;
|
||||||
|
|
||||||
for(QString hc: m_foxQSO.keys()) { //Check for strikeout or timeout
|
for(QString hc: m_foxQSO.keys()) { //Check for strikeout or timeout
|
||||||
@ -10711,6 +10717,23 @@ void MainWindow::foxGenWaveform(int i,QString fm)
|
|||||||
writeFoxQSO(t + fm.trimmed());
|
writeFoxQSO(t + fm.trimmed());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MainWindow::writeFoxTxMsgs() {
|
||||||
|
// references extern struct foxcom_
|
||||||
|
QString t;
|
||||||
|
for (int i = 0; i < 5; i++) {
|
||||||
|
t = QString::fromLatin1(foxcom_.cmsg[i]).left(40);
|
||||||
|
if (t.length() > 0) {
|
||||||
|
write_all("Tx", t);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
t = QString::fromLatin1(foxcom_.textMsg).left(38);
|
||||||
|
if (foxcom_.bSendMsg) {
|
||||||
|
write_all("Tx", "-Free Text- "+t);
|
||||||
|
}
|
||||||
|
if (foxcom_.bMoreCQs) {
|
||||||
|
write_all("Tx", "-MoreCQs- ");
|
||||||
|
}
|
||||||
|
}
|
||||||
void MainWindow::writeFoxQSO(QString const& msg)
|
void MainWindow::writeFoxQSO(QString const& msg)
|
||||||
{
|
{
|
||||||
QString t;
|
QString t;
|
||||||
|
@ -889,6 +889,7 @@ private:
|
|||||||
void activeWorked(QString call, QString band);
|
void activeWorked(QString call, QString band);
|
||||||
void read_log();
|
void read_log();
|
||||||
void refreshPileupList();
|
void refreshPileupList();
|
||||||
|
void writeFoxTxMsgs();
|
||||||
};
|
};
|
||||||
|
|
||||||
extern int killbyname(const char* progName);
|
extern int killbyname(const char* progName);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user