diff options
| author | hibby <d@vehibberd.com> | 2018-02-16 15:17:14 +0000 |
|---|---|---|
| committer | hibby <d@vehibberd.com> | 2018-02-16 15:17:14 +0000 |
| commit | 37f727ac0746fd85504aa46c1f023c09b3eff33a (patch) | |
| tree | c8a7ce04545040a8f161ba279528730bd9a3e6ab /displaytext.h | |
| parent | d63dd8d081a6fcd0715cd13f26df59fb831769d2 (diff) | |
New upstream version 1.8.0+repackupstream/1.8.0+repack
Diffstat (limited to 'displaytext.h')
| -rw-r--r-- | displaytext.h | 43 |
1 files changed, 24 insertions, 19 deletions
diff --git a/displaytext.h b/displaytext.h index 7bca6a0e..318a5d1b 100644 --- a/displaytext.h +++ b/displaytext.h @@ -3,39 +3,44 @@ #define DISPLAYTEXT_H #include <QTextEdit> +#include <QFont> + #include "logbook/logbook.h" #include "decodedtext.h" +class QAction; -class DisplayText : public QTextEdit +class DisplayText + : public QTextEdit { - Q_OBJECT + 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); + explicit DisplayText(QWidget *parent = 0); -signals: - void selectCallsign(bool shift, bool ctrl); + 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); + void displayTransmittedText(QString text, QString modeTx, qint32 txFreq, + QColor color_TxMsg, bool bFastMode); + void displayQSY(QString text); -public slots: + Q_SIGNAL void selectCallsign (Qt::KeyboardModifiers); + Q_SIGNAL void erased (); + Q_SLOT void appendText (QString const& text, QColor bg = Qt::white); + Q_SLOT void erase (); 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); + QString appendDXCCWorkedB4(QString message, QString const& callsign, QColor * bg, LogBook const& logBook, + QColor color_CQ, QColor color_DXCC, QColor color_NewCall); - QTextCharFormat m_charFormat; + QFont char_font_; + QAction * erase_action_; }; #endif // DISPLAYTEXT_H |
