22#include <QWebEngineView>
37 explicit WebView(QWidget* parent =
nullptr);
40 QIcon icon(
bool allowNull =
false)
const;
41 QString title(
bool allowEmpty =
false)
const;
46 void load(
const QUrl &url);
48 bool isLoading()
const;
50 int loadingProgress()
const;
52 bool backgroundActivity()
const;
55 int zoomLevel()
const;
56 void setZoomLevel(
int level);
58 QPointF mapToViewport(
const QPointF &pos)
const;
59 QRect scrollBarGeometry(Qt::Orientation orientation)
const;
61 void addNotification(QWidget* notif);
62 bool eventFilter(QObject *obj, QEvent *event)
override;
64 QWidget *inputWidget()
const;
67 static bool isUrlValid(
const QUrl &url);
68 static QList<int> zoomLevels();
72 static bool forceContextMenuOnMouseRelease();
73 static void setForceContextMenuOnMouseRelease(
bool force);
97 void reloadBypassCache();
104 void sendPageByMail();
106 void openUrlInNewTab(
const QUrl &url, Qz::NewTabPositionFlags position);
115 void slotLoadStarted();
116 void slotLoadProgress(
int progress);
117 void slotLoadFinished(
bool ok);
118 void slotIconChanged();
119 void slotUrlChanged(
const QUrl &url);
120 void slotTitleChanged(
const QString &title);
123 void openUrlInNewWindow();
124 void sendTextByMail();
125 void copyLinkToClipboard();
127 void copyImageToClipboard();
128 void downloadLinkToDisk();
129 void downloadImageToDisk();
130 void downloadMediaToDisk();
131 void openActionUrl();
133 void searchSelectedText();
134 void searchSelectedTextInBackgroundTab();
136 void openUrlInSelectedTab();
137 void openUrlInBackgroundTab();
140 void userDefinedOpenUrlInNewTab(
const QUrl &url = QUrl(),
bool invert =
false);
141 void userDefinedOpenUrlInBgTab(
const QUrl &url = QUrl());
144 void showEvent(QShowEvent *event)
override;
145 void resizeEvent(QResizeEvent *event)
override;
146 void contextMenuEvent(QContextMenuEvent *event)
override;
148 bool focusNextPrevChild(
bool next)
override;
150 virtual void _wheelEvent(QWheelEvent *event);
151 virtual void _mousePressEvent(QMouseEvent *event);
152 virtual void _mouseReleaseEvent(QMouseEvent *event);
153 virtual void _mouseMoveEvent(QMouseEvent *event);
154 virtual void _keyPressEvent(QKeyEvent *event);
155 virtual void _keyReleaseEvent(QKeyEvent *event);
156 virtual void _contextMenuEvent(QContextMenuEvent *event);
162 void createPageContextMenu(QMenu *menu);
165 void createSelectedTextContextMenu(QMenu *menu,
const WebHitTestResult &hitTest);
168 void checkForForm(QAction *action,
const QPoint &pos);
169 void createSearchEngine();
173 void configureSpeedDial();
174 void reloadAllSpeedDials();
176 void toggleMediaPause();
177 void toggleMediaMute();
180 void initializeActions();
182 int m_currentZoomLevel;
184 bool m_backgroundActivity;
187 QPointF m_clickedPos;
192 QPointer<QWidget> m_rwhvqt;
195 static bool s_forceContextMenuOnMouseRelease;
virtual QWidget * overlayWidget()=0
void showNotification(QWidget *)
virtual void closeView()=0
void backgroundActivityChanged(bool)
virtual void requestFullScreen(bool enable)=0
virtual bool isFullScreen()=0
void pageChanged(WebPage *page)
void privacyChanged(bool)
void zoomLevelChanged(int)
void viewportResized(QSize)
virtual void loadInNewTab(const LoadRequest &req, Qz::NewTabPositionFlags position)=0