mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-08-03 14:42:25 -04:00
As a trial, add a CQ-only checkbox.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8335 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
02fee1fe27
commit
9bc2586bff
@ -187,7 +187,8 @@ QString DisplayText::appendDXCCWorkedB4(QString message, QString const& callsign
|
|||||||
void DisplayText::displayDecodedText(DecodedText const& decodedText, QString const& myCall,
|
void DisplayText::displayDecodedText(DecodedText const& decodedText, QString const& myCall,
|
||||||
bool displayDXCCEntity, LogBook const& logBook,
|
bool displayDXCCEntity, LogBook const& logBook,
|
||||||
QColor color_CQ, QColor color_MyCall,
|
QColor color_CQ, QColor color_MyCall,
|
||||||
QColor color_DXCC, QColor color_NewCall,bool ppfx)
|
QColor color_DXCC, QColor color_NewCall, bool ppfx,
|
||||||
|
bool bCQonly)
|
||||||
{
|
{
|
||||||
m_bPrincipalPrefix=ppfx;
|
m_bPrincipalPrefix=ppfx;
|
||||||
QColor bg {Qt::white};
|
QColor bg {Qt::white};
|
||||||
@ -199,6 +200,7 @@ void DisplayText::displayDecodedText(DecodedText const& decodedText, QString con
|
|||||||
CQcall = true;
|
CQcall = true;
|
||||||
bg = color_CQ;
|
bg = color_CQ;
|
||||||
}
|
}
|
||||||
|
if(bCQonly and !CQcall) return;
|
||||||
if (myCall != "" and (
|
if (myCall != "" and (
|
||||||
decodedText.indexOf (" " + myCall + " ") >= 0
|
decodedText.indexOf (" " + myCall + " ") >= 0
|
||||||
or decodedText.indexOf (" " + myCall + "/") >= 0
|
or decodedText.indexOf (" " + myCall + "/") >= 0
|
||||||
|
@ -21,7 +21,7 @@ public:
|
|||||||
void insertLineSpacer(QString const&);
|
void insertLineSpacer(QString const&);
|
||||||
void displayDecodedText(DecodedText const& decodedText, QString const& myCall, bool displayDXCCEntity,
|
void displayDecodedText(DecodedText const& decodedText, QString const& myCall, bool displayDXCCEntity,
|
||||||
LogBook const& logBook, QColor color_CQ, QColor color_MyCall,
|
LogBook const& logBook, QColor color_CQ, QColor color_MyCall,
|
||||||
QColor color_DXCC, QColor color_NewCall, bool ppfx);
|
QColor color_DXCC, QColor color_NewCall, bool ppfx, bool bCQonly=false);
|
||||||
void displayTransmittedText(QString text, QString modeTx, qint32 txFreq,
|
void displayTransmittedText(QString text, QString modeTx, qint32 txFreq,
|
||||||
QColor color_TxMsg, bool bFastMode);
|
QColor color_TxMsg, bool bFastMode);
|
||||||
void displayQSY(QString text);
|
void displayQSY(QString text);
|
||||||
|
@ -2865,7 +2865,8 @@ void MainWindow::readFromStdout() //readFromStdout
|
|||||||
} else {
|
} else {
|
||||||
ui->decodedTextBrowser->displayDecodedText(decodedtext,m_baseCall,m_config.DXCC(),
|
ui->decodedTextBrowser->displayDecodedText(decodedtext,m_baseCall,m_config.DXCC(),
|
||||||
m_logBook,m_config.color_CQ(),m_config.color_MyCall(),
|
m_logBook,m_config.color_CQ(),m_config.color_MyCall(),
|
||||||
m_config.color_DXCC(), m_config.color_NewCall(),m_config.ppfx());
|
m_config.color_DXCC(), m_config.color_NewCall(),
|
||||||
|
m_config.ppfx(),ui->cbCQonly->isChecked());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -334,7 +334,14 @@
|
|||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_2" stretch="2,2,2,2,2,2,2,2,2,1">
|
<layout class="QHBoxLayout" name="horizontalLayout_2" stretch="0,2,2,2,2,2,2,2,2,2,1">
|
||||||
|
<item>
|
||||||
|
<widget class="QCheckBox" name="cbCQonly">
|
||||||
|
<property name="text">
|
||||||
|
<string>CQ only</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="logQSOButton">
|
<widget class="QPushButton" name="logQSOButton">
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user