diff options
| author | Iain R. Learmonth <irl@debian.org> | 2015-10-18 18:51:00 +0100 |
|---|---|---|
| committer | Iain R. Learmonth <irl@debian.org> | 2015-10-18 18:51:00 +0100 |
| commit | d63dd8d081a6fcd0715cd13f26df59fb831769d2 (patch) | |
| tree | b9c1f6245147a310aac3762630bad389bbb57335 /displaytext.h | |
| parent | c720a3d55c5ec832c29cb7ce50b6fb4b70c55b11 (diff) | |
Imported Upstream version 1.5.0upstream/1.5.0
Diffstat (limited to 'displaytext.h')
| -rw-r--r-- | displaytext.h | 27 |
1 files changed, 23 insertions, 4 deletions
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 <QTextBrowser> +#include <QTextEdit> +#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 |
