Falkon Develop
Cross-platform Qt-based web browser
popupwindow.h
Go to the documentation of this file.
1/* ============================================================
2* Falkon - Qt web browser
3* Copyright (C) 2010-2017 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 POPUPWINDOW_H
19#define POPUPWINDOW_H
20
21#include <QWidget>
22#include <QPointer>
23
24#include "qzcommon.h"
25
26class QVBoxLayout;
27class QStatusBar;
28class QMenuBar;
29class QMenu;
30
31class WebPage;
32class PopupWebView;
35class ProgressBar;
36class SearchToolBar;
37
38class FALKON_EXPORT PopupWindow : public QWidget
39{
40 Q_OBJECT
41public:
42 explicit PopupWindow(PopupWebView* view);
43
44 QStatusBar* statusBar();
45 PopupWebView* webView();
46
47public Q_SLOTS:
48 void setWindowGeometry(QRect newRect);
49
50private Q_SLOTS:
51 void titleChanged();
52 void showNotification(QWidget* notif);
53 void showStatusBarMessage(const QString &message);
54
55 void loadStarted();
56 void loadProgress(int value);
57 void loadFinished();
58
59 void searchOnPage();
60
61private:
62 void closeEvent(QCloseEvent *event) override;
63 void resizeEvent(QResizeEvent *event) override;
64
65 PopupWebView* m_view;
66 PopupLocationBar* m_locationBar;
67 PopupStatusBarMessage* m_statusBarMessage;
68 ProgressBar* m_progressBar;
69
70 QVBoxLayout* m_layout;
71 QStatusBar* m_statusBar;
72 QMenuBar* m_menuBar;
73 QMenu* m_menuEdit;
74 QMenu* m_menuView;
75 QAction* m_actionReload;
76 QAction* m_actionStop;
77 QPointer<SearchToolBar> m_search;
78 QWidget *m_notificationWidget;
79};
80
81#endif // POPUPWINDOW_H
int value(const QColor &c)
Definition: colors.cpp:238
#define FALKON_EXPORT
Definition: qzcommon.h:28