From d63dd8d081a6fcd0715cd13f26df59fb831769d2 Mon Sep 17 00:00:00 2001 From: "Iain R. Learmonth" Date: Sun, 18 Oct 2015 18:51:00 +0100 Subject: Imported Upstream version 1.5.0 --- displaytext.h | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) (limited to 'displaytext.h') diff --git a/displaytext.h b/displaytext.h index c07f00ec..7bca6a0e 100644 --- a/displaytext.h +++ b/displaytext.h @@ -1,22 +1,41 @@ +// -*- Mode: C++ -*- #ifndef DISPLAYTEXT_H #define DISPLAYTEXT_H -#include +#include +#include "logbook/logbook.h" +#include "decodedtext.h" -class DisplayText : public QTextBrowser + +class DisplayText : public QTextEdit { Q_OBJECT public: explicit DisplayText(QWidget *parent = 0); + void setContentFont (QFont const&); + void insertLineSpacer(QString const&); + void displayDecodedText(DecodedText decodedText, QString myCall, bool displayDXCCEntity, + LogBook logBook, QColor color_CQ, QColor color_MyCall, + QColor color_DXCC, QColor color_NewCall); + void displayTransmittedText(QString text, QString modeTx, qint32 txFreq, + QColor color_TxMsg); + signals: - void selectCallsign(bool shift, bool ctrl); + void selectCallsign(bool shift, bool ctrl); public slots: + protected: - void mouseDoubleClickEvent(QMouseEvent *e); + void mouseDoubleClickEvent(QMouseEvent *e); + +private: + void _insertText(const QString text, const QString bg); + void _appendDXCCWorkedB4(/*mod*/DecodedText& t1, QString &bg, LogBook logBook, + QColor color_CQ, QColor color_DXCC, QColor color_NewCall); + QTextCharFormat m_charFormat; }; #endif // DISPLAYTEXT_H -- cgit v1.2.3