~ubuntu-branches/ubuntu/lucid/kdebase/lucid

« back to all changes in this revision

Viewing changes to apps/konqueror/src/konqhistoryview.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Thomas
  • Date: 2009-12-02 13:28:20 UTC
  • mfrom: (1.1.35 upstream)
  • Revision ID: james.westby@ubuntu.com-20091202132820-yaqzqr7livmarip5
Tags: 4:4.3.80-0ubuntu1
* New upstream release:
  - Drop kubuntu_05_konsole_colour_scheme.diff, applied upstream
  - Drop kubuntu_15-17.diff, applied upstream
  - Bump build-depend versions
  - Add build-depend on shared-desktop-ontologies for nepomuk support
  - Update various .install files

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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>
 
4
 
 
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.
 
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 GNU
 
13
    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; 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.
 
19
*/
 
20
 
 
21
#ifndef KONQHISTORYVIEW_H
 
22
#define KONQHISTORYVIEW_H
 
23
 
 
24
#include <konqprivate_export.h>
 
25
#include <QtGui/QWidget>
 
26
class KUrl;
 
27
class QModelIndex;
 
28
class QTreeView;
 
29
class QTimer;
 
30
class KLineEdit;
 
31
class KonqHistoryProxyModel;
 
32
class KonqHistoryModel;
 
33
class KActionCollection;
 
34
 
 
35
/**
 
36
 * The widget containing the tree view showing the history,
 
37
 * and the search lineedit on top of it.
 
38
 *
 
39
 * This widget is shared between the history dialog and the
 
40
 * history sidebar module.
 
41
 */
 
42
class KONQUERORPRIVATE_EXPORT KonqHistoryView : public QWidget
 
43
{
 
44
    Q_OBJECT
 
45
 
 
46
public:
 
47
    explicit KonqHistoryView(QWidget* parent);
 
48
 
 
49
    KActionCollection *actionCollection() { return m_collection; }
 
50
    QTreeView* treeView() const;
 
51
    KUrl urlForIndex(const QModelIndex& index) const;
 
52
 
 
53
Q_SIGNALS:
 
54
    void openUrlInNewWindow(const KUrl& url);
 
55
    void openUrlInNewTab(const KUrl& url);
 
56
 
 
57
private Q_SLOTS:
 
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();
 
65
    void slotNewWindow();
 
66
    void slotNewTab();
 
67
    void slotCopyLinkLocation();
 
68
 
 
69
private:
 
70
    QTreeView* m_treeView;
 
71
    KActionCollection *m_collection;
 
72
    KonqHistoryModel *m_historyModel;
 
73
    KonqHistoryProxyModel *m_historyProxyModel;
 
74
    KLineEdit *m_searchLineEdit;
 
75
    QTimer *m_searchTimer;
 
76
};
 
77
 
 
78
 
 
79
#endif /* KONQHISTORYVIEW_H */
 
80