Files
qt5-legatus-legacy/Lts/Application/THP/thpwidgets/thp_html_widget.h
T
2026-08-13 18:33:10 +02:00

47 lines
797 B
C++
Executable File

/**
* @RDE_HEADER@
* Handle HTML output for thp
* $Id$
* $HeadURL$
* $Author$
*/
#pragma once
#include <QWidget>
#include <NGLLogger/INGLLogger.h>
class QUrl;
class QPrinter;
namespace Ui
{
class HtmlWidget;
}
namespace THP
{
class HtmlWidget : public QWidget
{
Q_OBJECT
public:
explicit HtmlWidget(QWidget *parent = nullptr);
~HtmlWidget();
void back();
void print(QPrinter *printer) const;
void setZoomFactor(double newZoomFactor);
QString title() const;
QUrl url() const;
public Q_SLOTS:
bool showHTML(const QUrl &url);
Q_SIGNALS:
void linkClicked(const QUrl &link);
void loadFinished(bool);
void urlChanged(const QUrl &url);
void titleChanged(const QString &title);
protected:
Ui::HtmlWidget *ui;
NGL::INGLLogger &m_logger;
};
} // namespace THP