diff options
| author | Iain R. Learmonth <irl@debian.org> | 2015-10-18 18:51:03 +0100 |
|---|---|---|
| committer | Iain R. Learmonth <irl@debian.org> | 2015-10-18 18:51:03 +0100 |
| commit | 7ccc963875ee66fe4c817da95461d891039ba1a2 (patch) | |
| tree | 742cb44e4987b2dfe2db2aac83cd052040a97a8c /displaytext.h | |
| parent | 5c4ba866a16d2d10d751152dd162d3761d68aacd (diff) | |
| parent | d63dd8d081a6fcd0715cd13f26df59fb831769d2 (diff) | |
Merge tag 'upstream/1.5.0'
Upstream version 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 |
