2014-04-03 15:29:13 -04:00
|
|
|
// -*- Mode: C++ -*-
|
2012-05-22 13:09:48 -04:00
|
|
|
#ifndef DISPLAYTEXT_H
|
|
|
|
#define DISPLAYTEXT_H
|
|
|
|
|
2015-02-13 03:53:02 -05:00
|
|
|
#include <QTextEdit>
|
2013-08-15 08:24:12 -04:00
|
|
|
#include "logbook/logbook.h"
|
2013-08-24 21:48:45 -04:00
|
|
|
#include "decodedtext.h"
|
|
|
|
|
2012-05-22 13:09:48 -04:00
|
|
|
|
2015-02-13 03:53:02 -05:00
|
|
|
class DisplayText : public QTextEdit
|
2012-05-22 13:09:48 -04:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2013-08-15 08:24:12 -04:00
|
|
|
explicit DisplayText(QWidget *parent = 0);
|
2013-08-11 07:45:17 -04:00
|
|
|
|
2015-04-05 08:22:01 -04:00
|
|
|
void setContentFont (QFont const&);
|
2015-04-10 16:25:14 -04:00
|
|
|
void insertLineSpacer(QString const&);
|
2015-02-10 19:50:35 -05:00
|
|
|
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,
|
2015-11-17 20:28:12 -05:00
|
|
|
QColor color_TxMsg, bool bFastMode);
|
|
|
|
void displayQSY(QString text);
|
2012-05-22 13:09:48 -04:00
|
|
|
|
|
|
|
signals:
|
2017-07-24 15:27:23 -04:00
|
|
|
void selectCallsign(bool alt, bool ctrl);
|
2012-05-22 13:09:48 -04:00
|
|
|
|
|
|
|
public slots:
|
2015-06-09 10:30:23 -04:00
|
|
|
void appendText(QString const& text, QString const& bg = "white");
|
2013-08-11 07:45:17 -04:00
|
|
|
|
2012-05-22 13:09:48 -04:00
|
|
|
protected:
|
2013-08-15 08:24:12 -04:00
|
|
|
void mouseDoubleClickEvent(QMouseEvent *e);
|
2013-08-11 07:45:17 -04:00
|
|
|
|
|
|
|
private:
|
2017-07-24 15:27:23 -04:00
|
|
|
QString _appendDXCCWorkedB4(QString message, QString const& callsign, QString * bg, LogBook logBook,
|
2015-02-10 19:50:35 -05:00
|
|
|
QColor color_CQ, QColor color_DXCC, QColor color_NewCall);
|
2012-05-22 13:09:48 -04:00
|
|
|
|
2015-04-07 08:08:55 -04:00
|
|
|
QTextCharFormat m_charFormat;
|
2012-05-22 13:09:48 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // DISPLAYTEXT_H
|