mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-27 14:48:46 -05:00
227a7907df
Ensure that these windows have their viewport scrolled fully to the left after deocdes and font changes. Add the band to the separator line but only if we are certain that the decodes below it are on that band. Thanks to Ton PA0TBR for the implementation and testing of the core features of this change. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@5207 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
42 lines
1.1 KiB
C++
42 lines
1.1 KiB
C++
// -*- Mode: C++ -*-
|
|
#ifndef DISPLAYTEXT_H
|
|
#define DISPLAYTEXT_H
|
|
|
|
#include <QTextEdit>
|
|
#include "logbook/logbook.h"
|
|
#include "decodedtext.h"
|
|
|
|
|
|
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);
|
|
|
|
public slots:
|
|
|
|
|
|
protected:
|
|
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
|