mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-18 10:01:57 -05:00
4bade4865d
2. Moved some of the text handling code from MainWindow to Displaytext git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3550 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
36 lines
727 B
C++
36 lines
727 B
C++
#ifndef DISPLAYTEXT_H
|
|
#define DISPLAYTEXT_H
|
|
|
|
#include <QTextBrowser>
|
|
#include "logbook/logbook.h"
|
|
|
|
class DisplayText : public QTextBrowser
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit DisplayText(QWidget *parent = 0);
|
|
|
|
void setFont(QFont font);
|
|
|
|
void insertLineSpacer();
|
|
void displayDecodedText(QString decodedText, QString myCall, bool displayDXCCEntity, LogBook logBook);
|
|
|
|
signals:
|
|
void selectCallsign(bool shift, bool ctrl);
|
|
|
|
public slots:
|
|
|
|
|
|
protected:
|
|
void mouseDoubleClickEvent(QMouseEvent *e);
|
|
void resizeEvent(QResizeEvent * event);
|
|
|
|
private:
|
|
int _fontWidth;
|
|
int _maxDisplayedCharacters;
|
|
void _appendDXCCWorkedB4(/*mod*/QString& t1, QString &bg, LogBook logBook);
|
|
|
|
};
|
|
|
|
#endif // DISPLAYTEXT_H
|