Falkon
Develop
Cross-platform Qt-based web browser
siteinfo.h
Go to the documentation of this file.
1
/* ============================================================
2
* Falkon - Qt web browser
3
* Copyright (C) 2010-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 SITEINFO_H
19
#define SITEINFO_H
20
21
#include "
qzcommon.h
"
22
#include "
sitesettingsmanager.h
"
23
#include "
siteinfopermissionitem.h
"
24
25
#include <QUrl>
26
#include <QDialog>
27
28
namespace
Ui
29
{
30
class
SiteInfo
;
31
}
32
33
class
QNetworkReply;
34
class
QTreeWidgetItem;
35
class
QTreeWidget;
36
37
class
WebView
;
38
class
CertificateInfoWidget
;
39
40
class
FALKON_EXPORT
SiteInfo
:
public
QDialog
41
{
42
Q_OBJECT
43
44
public
:
45
explicit
SiteInfo
(
WebView
*view);
46
~SiteInfo
();
47
48
static
bool
canShowSiteInfo(
const
QUrl &url);
49
50
private
Q_SLOTS:
51
void
showImagePreview(QTreeWidgetItem *item);
52
void
imagesCustomContextMenuRequested(
const
QPoint &p);
53
void
tagsCustomContextMenuRequested(
const
QPoint &p);
54
void
copySelectedItems(
const
QTreeWidget* treeWidget,
const
bool
both);
55
void
saveImage();
56
void
saveSiteSettings();
57
58
private
:
59
void
showLoadingText();
60
void
showPixmap(QPixmap pixmap);
61
62
void
addSiteSettings();
63
SiteInfoPermissionItem
* addPermissionOption(
SiteSettingsManager::Permission
perm);
64
65
Ui::SiteInfo* ui;
66
CertificateInfoWidget
* m_certWidget;
67
WebView
* m_view;
68
QNetworkReply *m_imageReply;
69
70
QUrl m_baseUrl;
71
};
72
73
#endif
// SITEINFO_H
CertificateInfoWidget
Definition:
certificateinfowidget.h:33
SiteInfo
Definition:
siteinfo.h:41
SiteInfoPermissionItem
Definition:
siteinfopermissionitem.h:35
SiteSettingsManager::Permission
Permission
Definition:
sitesettingsmanager.h:34
WebView
Definition:
webview.h:33
Ui
Definition:
adblockaddsubscriptiondialog.h:27
qzcommon.h
FALKON_EXPORT
#define FALKON_EXPORT
Definition:
qzcommon.h:28
siteinfopermissionitem.h
sitesettingsmanager.h
src
lib
other
siteinfo.h
Generated by
1.9.3