Falkon Develop
Cross-platform Qt-based web browser
popupwebview.h
Go to the documentation of this file.
1/* ============================================================
2* Falkon - Qt web browser
3* Copyright (C) 2010-2015 David Rosca <nowrep@gmail.com>
4*
5* This program is free software: you can redistribute it and/or modify
6* it under the terms of the GNU General Public License as published by
7* the Free Software Foundation, either version 3 of the License, or
8* (at your option) any later version.
9*
10* This program is distributed in the hope that it will be useful,
11* but WITHOUT ANY WARRANTY; without even the implied warranty of
12* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13* GNU General Public License for more details.
14*
15* You should have received a copy of the GNU General Public License
16* along with this program. If not, see <http://www.gnu.org/licenses/>.
17* ============================================================ */
18#ifndef POPUPWEBVIEW_H
19#define POPUPWEBVIEW_H
20
21#include <QPointer>
22
23#include "qzcommon.h"
24#include "webview.h"
25
26class Menu;
27class LoadRequest;
28class WebInspector;
29
31{
32 Q_OBJECT
33public:
34 explicit PopupWebView(QWidget* parent = nullptr);
35
36 QWidget* overlayWidget() override;
37 void loadInNewTab(const LoadRequest &req, Qz::NewTabPositionFlags position) override;
38
39 void closeView() override;
40 bool isFullScreen() override;
41 void requestFullScreen(bool enable) override;
42
43public Q_SLOTS:
44 void inspectElement();
45
46private:
47 void _contextMenuEvent(QContextMenuEvent *event) override;
48
49 Menu* m_menu;
50 QPointer<WebInspector> m_inspector;
51};
52
53#endif // POPUPWEBVIEW_H
virtual QWidget * overlayWidget()=0
virtual void closeView()=0
virtual void requestFullScreen(bool enable)=0
virtual bool isFullScreen()=0
virtual void _contextMenuEvent(QContextMenuEvent *event)
Definition: webview.cpp:1237
virtual void loadInNewTab(const LoadRequest &req, Qz::NewTabPositionFlags position)=0
#define FALKON_EXPORT
Definition: qzcommon.h:28