Falkon
Develop
Cross-platform Qt-based web browser
historysidebar.h
Go to the documentation of this file.
1
/* ============================================================
2
* Falkon - Qt web browser
3
* Copyright (C) 2010-2014 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 HISTORYSIDEBAR_H
19
#define HISTORYSIDEBAR_H
20
21
#include <QWidget>
22
#include <QUrl>
23
24
#include "
qzcommon.h
"
25
26
namespace
Ui
27
{
28
class
HistorySideBar
;
29
}
30
31
class
BrowserWindow
;
32
33
class
FALKON_EXPORT
HistorySideBar
:
public
QWidget
34
{
35
Q_OBJECT
36
37
public
:
38
explicit
HistorySideBar
(
BrowserWindow
* window, QWidget* parent =
nullptr
);
39
~HistorySideBar
()
override
;
40
41
private
Q_SLOTS:
42
void
urlActivated(
const
QUrl &url);
43
void
urlCtrlActivated(
const
QUrl &url);
44
void
urlShiftActivated(
const
QUrl &url);
45
46
void
openUrl(
const
QUrl &url = QUrl());
47
void
openUrlInNewTab(
const
QUrl &url = QUrl());
48
void
openUrlInNewWindow(
const
QUrl &url = QUrl());
49
void
openUrlInNewPrivateWindow(
const
QUrl &url = QUrl());
50
51
void
createContextMenu(
const
QPoint &pos);
52
53
private
:
54
void
showEvent(QShowEvent *event)
override
;
55
56
Ui::HistorySideBar* ui;
57
BrowserWindow
* m_window;
58
};
59
60
#endif
// HISTORYSIDEBAR_H
BrowserWindow
Definition:
browserwindow.h:58
HistorySideBar
Definition:
historysidebar.h:34
Ui
Definition:
adblockaddsubscriptiondialog.h:27
qzcommon.h
FALKON_EXPORT
#define FALKON_EXPORT
Definition:
qzcommon.h:28
src
lib
sidebar
historysidebar.h
Generated by
1.9.3