Falkon Develop
Cross-platform Qt-based web browser
sbi_javascripticon.h
Go to the documentation of this file.
1/* ============================================================
2* StatusBarIcons - Extra icons in statusbar for Falkon
3* Copyright (C) 2013-2018 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 SBI_JAVASCRIPTICON_H
19#define SBI_JAVASCRIPTICON_H
20
21#include <QIcon>
22#include <QHash>
23
24#include "sbi_icon.h"
25
27{
28 Q_OBJECT
29
30public:
31 explicit SBI_JavaScriptIcon(BrowserWindow* window);
32
33private Q_SLOTS:
34 void showMenu(const QPoint &point);
35 void updateIcon();
36
37 void toggleJavaScript();
38 void openJavaScriptSettings();
39
40private:
41 QIcon m_icon;
42 QHash<WebPage*, bool> m_settings;
43};
44
45#endif // SBI_JAVASCRIPTICON_H
SBI_JavaScriptIcon(BrowserWindow *window)