Loading...
Searching...
No Matches
HTMLView.h
Go to the documentation of this file.
#ifndef BALL_VIEW_WIDGETS_HTMLVIEW_H
#define BALL_VIEW_WIDGETS_HTMLVIEW_H
#ifndef BALL_VIEW_WIDGETS_DOCKWIDGET_H
#include <BALL/VIEW/WIDGETS/dockWidget.h>
#endif
#include <BALL/VIEW/UIC/ui_HTMLViewErrorWidget.h>
#include <QtCore/QUrl>
#include <QtWebEngineWidgets/QWebEngineView>
namespace BALL
{
namespace VIEW
{
class BALL_VIEW_EXPORT HTMLViewErrorWidget :
public QWidget,
public Ui_HTMLViewErrorWidget
{
public:
HTMLViewErrorWidget(QWidget* parent = 0)
: QWidget(parent),
Ui_HTMLViewErrorWidget()
{
setupUi(this);
}
};
class BALL_VIEW_EXPORT HTMLView : public QWebEngineView
{
Q_OBJECT
public:
HTMLView(QWidget* parent = 0);
~HTMLView() override = default;
};
class BALL_VIEW_EXPORT HTMLViewDock : public DockWidget
{
public:
BALL_EMBEDDABLE(HTMLViewDock, DockWidget)
HTMLViewDock(QWidget* parent, const char* title = 0);
HTMLViewDock(HTMLView* view, QWidget* parent, const char* title = 0);
void setHTMLView(HTMLView* view);
HTMLView* getHTMLView();
const HTMLView* getHTMLView() const;
void resetHTMLView(bool skip_checks);
protected:
void checkForIncompatibleDrivers_();
bool skip_checks_;
bool show_error_;
HTMLView* html_view_;
};
}
}
#endif // BALL_VIEW_WIDGETS_HTMLVIEW_H
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition COMMON/global.h:52
BALL::VIEW::DockWidget::DockWidget
DockWidget(QWidget *parent, const char *title=0)
Use this constructor!
BALL::VIEW::HTMLViewDock::html_view_
HTMLView * html_view_
Definition HTMLView.h:62
BALL::VIEW::HTMLViewDock::resetHTMLView
void resetHTMLView(bool skip_checks)
Re-invoke the most recent setHTMLView() call.
BALL::VIEW::HTMLViewDock::getHTMLView
HTMLView * getHTMLView()
BALL::VIEW::HTMLViewDock::setHTMLView
void setHTMLView(HTMLView *view)
BALL::VIEW::HTMLViewDock::checkForIncompatibleDrivers_
void checkForIncompatibleDrivers_()
BALL::VIEW::HTMLViewDock::skip_checks_
bool skip_checks_
Definition HTMLView.h:60
BALL::VIEW::HTMLViewDock::HTMLViewDock
HTMLViewDock(QWidget *parent, const char *title=0)
BALL::VIEW::HTMLViewDock::show_error_
bool show_error_
Definition HTMLView.h:61
BALL::VIEW::HTMLViewErrorWidget::HTMLViewErrorWidget
HTMLViewErrorWidget(QWidget *parent=0)
Definition HTMLView.h:21
BALL::VIEW::HTMLView
Definition HTMLView.h:30
BALL::VIEW::HTMLView::HTMLView
HTMLView(QWidget *parent=0)
BALL::VIEW::HTMLView::~HTMLView
~HTMLView() override=default
QWebEngineView
QWidget
dockWidget.h
BALL_EMBEDDABLE
#define BALL_EMBEDDABLE(TYPE, BASE)
Definition embeddable.h:31
BALL::VIEW
Definition constraints.h:35
BALL
Definition constants.h:13