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"
24
25#include <QUrl>
26#include <QDialog>
27
28namespace Ui
29{
30class SiteInfo;
31}
32
33class QNetworkReply;
34class QTreeWidgetItem;
35class QTreeWidget;
36
37class WebView;
39
40class FALKON_EXPORT SiteInfo : public QDialog
41{
42 Q_OBJECT
43
44public:
45 explicit SiteInfo(WebView *view);
46 ~SiteInfo();
47
48 static bool canShowSiteInfo(const QUrl &url);
49
50private 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
58private:
59 void showLoadingText();
60 void showPixmap(QPixmap pixmap);
61
62 void addSiteSettings();
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
#define FALKON_EXPORT
Definition: qzcommon.h:28