mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-28 23:28:49 -05:00
9bc2586bff
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8335 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
49 lines
1.3 KiB
C++
49 lines
1.3 KiB
C++
// -*- Mode: C++ -*-
|
|
#ifndef DISPLAYTEXT_H
|
|
#define DISPLAYTEXT_H
|
|
|
|
#include <QTextEdit>
|
|
#include <QFont>
|
|
|
|
#include "logbook/logbook.h"
|
|
#include "decodedtext.h"
|
|
|
|
class QAction;
|
|
|
|
class DisplayText
|
|
: public QTextEdit
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit DisplayText(QWidget *parent = 0);
|
|
|
|
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, bool ppfx, bool bCQonly=false);
|
|
void displayTransmittedText(QString text, QString modeTx, qint32 txFreq,
|
|
QColor color_TxMsg, bool bFastMode);
|
|
void displayQSY(QString text);
|
|
void displayFoxToBeCalled(QString t, QColor bg);
|
|
|
|
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);
|
|
|
|
private:
|
|
bool m_bPrincipalPrefix;
|
|
QString appendDXCCWorkedB4(QString message, QString const& callsign, QColor * bg, LogBook const& logBook,
|
|
QColor color_CQ, QColor color_DXCC, QColor color_NewCall);
|
|
|
|
QFont char_font_;
|
|
QAction * erase_action_;
|
|
};
|
|
|
|
#endif // DISPLAYTEXT_H
|