Falkon
Develop
Cross-platform Qt-based web browser
bookmarkssidebar.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 BOOKMARKSSIDEBAR_H
19
#define BOOKMARKSSIDEBAR_H
20
21
#include <QWidget>
22
23
#include "
qzcommon.h
"
24
25
namespace
Ui
26
{
27
class
BookmarksSideBar;
28
}
29
30
class
BrowserWindow
;
31
class
Bookmarks
;
32
class
BookmarkItem
;
33
34
class
FALKON_EXPORT
BookmarksSidebar
:
public
QWidget
35
{
36
Q_OBJECT
37
38
public
:
39
explicit
BookmarksSidebar
(
BrowserWindow
* window, QWidget* parent =
nullptr
);
40
~BookmarksSidebar
()
override
;
41
42
private
Q_SLOTS:
43
void
bookmarkActivated(
BookmarkItem
* item);
44
void
bookmarkCtrlActivated(
BookmarkItem
* item);
45
void
bookmarkShiftActivated(
BookmarkItem
* item);
46
47
void
openBookmark(
BookmarkItem
* item =
nullptr
);
48
void
openBookmarkInNewTab(
BookmarkItem
* item =
nullptr
);
49
void
openBookmarkInNewWindow(
BookmarkItem
* item =
nullptr
);
50
void
openBookmarkInNewPrivateWindow(
BookmarkItem
* item =
nullptr
);
51
52
void
deleteBookmarks();
53
void
createContextMenu(
const
QPoint &pos);
54
55
private
:
56
void
showEvent(QShowEvent *event)
override
;
57
58
Ui::BookmarksSideBar* ui;
59
BrowserWindow
* m_window;
60
Bookmarks
* m_bookmarks;
61
};
62
63
#endif
// BOOKMARKSSIDEBAR_H
BookmarkItem
Definition:
bookmarkitem.h:30
Bookmarks
Definition:
bookmarks.h:33
BookmarksSidebar
Definition:
bookmarkssidebar.h:35
BrowserWindow
Definition:
browserwindow.h:58
Ui
Definition:
adblockaddsubscriptiondialog.h:27
qzcommon.h
FALKON_EXPORT
#define FALKON_EXPORT
Definition:
qzcommon.h:28
src
lib
sidebar
bookmarkssidebar.h
Generated by
1.9.3