diff options
| author | Enrico Rossi <e.rossi@tecnobrain.com> | 2018-11-03 17:52:26 +0100 |
|---|---|---|
| committer | Enrico Rossi <e.rossi@tecnobrain.com> | 2018-11-03 17:52:26 +0100 |
| commit | b4aebf2d137b892f53503b13785ecae900062ff7 (patch) | |
| tree | 3ba99b2baec2292f2e13bfe90a5e401a5f4c47a5 /displaytext.h | |
| parent | 37f727ac0746fd85504aa46c1f023c09b3eff33a (diff) | |
New upstream version 1.9.1+repackupstream/1.9.1+repack
* Drop local hamlib copy (commit d1b545be).
* Drop local boost copy (1.63.0).
Diffstat (limited to 'displaytext.h')
| -rw-r--r-- | displaytext.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/displaytext.h b/displaytext.h index 318a5d1b..0f1ef01b 100644 --- a/displaytext.h +++ b/displaytext.h @@ -4,6 +4,9 @@ #include <QTextEdit> #include <QFont> +#include <QHash> +#include <QPair> +#include <QString> #include "logbook/logbook.h" #include "decodedtext.h" @@ -20,27 +23,32 @@ public: void setContentFont (QFont const&); void insertLineSpacer(QString const&); void displayDecodedText(DecodedText const& decodedText, QString const& myCall, bool displayDXCCEntity, - LogBook const& logBook, QColor color_CQ, QColor color_MyCall, - QColor color_DXCC, QColor color_NewCall); + LogBook const& logBook, QColor color_CQ, QColor color_MyCall, + QColor color_DXCC, QColor color_NewCall, bool ppfx, bool bCQonly=false); void displayTransmittedText(QString text, QString modeTx, qint32 txFreq, QColor color_TxMsg, bool bFastMode); void displayQSY(QString text); + void displayFoxToBeCalled(QString t, QColor bg); Q_SIGNAL void selectCallsign (Qt::KeyboardModifiers); Q_SIGNAL void erased (); - Q_SLOT void appendText (QString const& text, QColor bg = Qt::white); + Q_SLOT void appendText (QString const& text, QColor bg = Qt::white + , QString const& call1 = QString {}, QString const& call2 = QString {}); Q_SLOT void erase (); + Q_SLOT void highlight_callsign (QString const& callsign, QColor const& bg, QColor const& fg, bool last_only); protected: void mouseDoubleClickEvent(QMouseEvent *e); private: + bool m_bPrincipalPrefix; QString appendDXCCWorkedB4(QString message, QString const& callsign, QColor * bg, LogBook const& logBook, QColor color_CQ, QColor color_DXCC, QColor color_NewCall); QFont char_font_; QAction * erase_action_; + QHash<QString, QPair<QColor, QColor>> highlighted_calls_; }; #endif // DISPLAYTEXT_H |
