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:
Joe Taylor 2017-12-16 14:47:17 +00:00
parent 02fee1fe27
commit 9bc2586bff
4 changed files with 14 additions and 4 deletions

View File

@ -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

View File

@ -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);

View File

@ -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());
} }
} }

View File

@ -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">