2
* This file is part of the KDE Help Center
4
* Copyright (C) 2002 Frerich Raabe <raabe@kde.org>
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28
class KActionCollection;
30
class KToolBarPopupAction;
37
class History : public QObject
41
friend class foo; // to make gcc shut up
44
Entry() : view( 0 ), search( false ) {}
53
static History &self();
55
void setupActions( KActionCollection *coll );
58
void installMenuBarHook( KMainWindow *mainWindow );
61
void updateCurrentEntry( KHC::View *view );
64
void goInternalUrl( const KURL & );
65
void goUrl( const KURL & );
68
void backActivated( int id );
70
void forwardActivated( int id );
71
void fillForwardMenu();
72
void goMenuActivated( int id );
76
void goHistoryActivated( int steps );
77
void goHistory( int steps );
78
void goHistoryDelayed();
82
History( const History &rhs );
83
History &operator=( const History &rhs );
86
bool canGoBack() const;
87
bool canGoForward() const;
88
void fillHistoryPopup( QPopupMenu *, bool, bool, bool, uint = 0 );
90
static History *m_instance;
92
QPtrList<Entry> m_entries;
97
int m_goMenuHistoryStartPos;
98
int m_goMenuHistoryCurrentPos;
100
KToolBarPopupAction *m_backAction;
101
KToolBarPopupAction *m_forwardAction;