1
/* This file is part of the KDE project
2
Copyright 2009 Pino Toscano <pino@kde.org>
3
Copyright 2009 Daivd Faure <faure@kde.org>
5
This program is free software; you can redistribute it and/or
6
modify it under the terms of the GNU General Public
7
License as published by the Free Software Foundation; either
8
version 2 of the License, or (at your option) any later version.
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 GNU
13
General Public License for more details.
15
You should have received a copy of the GNU General Public License
16
along with this program; see the file COPYING. If not, write to
17
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18
Boston, MA 02110-1301, USA.
21
#ifndef KONQHISTORYVIEW_H
22
#define KONQHISTORYVIEW_H
24
#include <konqprivate_export.h>
25
#include <QtGui/QWidget>
31
class KonqHistoryProxyModel;
32
class KonqHistoryModel;
33
class KActionCollection;
36
* The widget containing the tree view showing the history,
37
* and the search lineedit on top of it.
39
* This widget is shared between the history dialog and the
40
* history sidebar module.
42
class KONQUERORPRIVATE_EXPORT KonqHistoryView : public QWidget
47
explicit KonqHistoryView(QWidget* parent);
49
KActionCollection *actionCollection() { return m_collection; }
50
QTreeView* treeView() const;
51
KUrl urlForIndex(const QModelIndex& index) const;
54
void openUrlInNewWindow(const KUrl& url);
55
void openUrlInNewTab(const KUrl& url);
58
void slotContextMenu(const QPoint &pos);
59
void slotRemoveEntry();
60
void slotClearHistory();
61
void slotPreferences();
62
void slotSortChange(QAction *action);
63
void slotFilterTextChanged(const QString &text);
64
void slotTimerTimeout();
67
void slotCopyLinkLocation();
70
QTreeView* m_treeView;
71
KActionCollection *m_collection;
72
KonqHistoryModel *m_historyModel;
73
KonqHistoryProxyModel *m_historyProxyModel;
74
KLineEdit *m_searchLineEdit;
75
QTimer *m_searchTimer;
79
#endif /* KONQHISTORYVIEW_H */