kbookmarkbar.h
// -*- c-basic-offset:4; indent-tabs-mode:nil -*-
// vim: set ts=4 sts=4 sw=4 et:
/* This file is part of the KDE project
Copyright (C) 1999 Kurt Granroth <granroth@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef KBOOKMARKBAR_H
#define KBOOKMARKBAR_H
#include <qobject.h>
#include <qguardedptr.h>
#include <qptrlist.h>
#include <kbookmark.h>
#include <kaction.h>
class KToolBar;
class KBookmarkMenu;
class KBookmarkOwner;
class KActionCollection;
class KAction;
class QPopupMenu;
class KIO_EXPORT KBookmarkBar : public QObject
{
Q_OBJECT
friend class RMB;
public:
KBookmarkBar( KBookmarkManager* manager,
KBookmarkOwner *owner, KToolBar *toolBar,
KActionCollection *,
QObject *parent = 0L, const char *name = 0L);
virtual ~KBookmarkBar();
bool isReadOnly() const;
void setReadOnly(bool);
QString parentAddress();
signals:
void aboutToShowContextMenu( const KBookmark &, QPopupMenu * );
void openBookmark( const QString& url, Qt::ButtonState state );
public slots:
void clear();
void slotBookmarksChanged( const QString & );
void slotBookmarkSelected();
void slotBookmarkSelected( KAction::ActivationReason reason, Qt::ButtonState state );
void slotRMBActionRemove( int );
void slotRMBActionInsert( int );
void slotRMBActionCopyLocation( int );
void slotRMBActionEditAt( int );
void slotRMBActionProperties( int );
protected:
void fillBookmarkBar( KBookmarkGroup & parent );
virtual bool eventFilter( QObject *o, QEvent *e );
private:
KBookmarkGroup getToolbar();
KBookmarkOwner *m_pOwner;
QGuardedPtr<KToolBar> m_toolBar;
KActionCollection *m_actionCollection;
KBookmarkManager *m_pManager;
QPtrList<KBookmarkMenu> m_lstSubMenus;
private:
class KBookmarkBarPrivate* dptr() const;
};
#endif // KBOOKMARKBAR_H
KBookmarkManager
This class implements the reading/writing of bookmarks in XML.
Definition: kbookmarkmanager.h:53
KBookmarkBar
This class provides a bookmark toolbar.
Definition: kbookmarkbar.h:42
KBookmarkGroup
A group of bookmarks.
Definition: kbookmark.h:199
KBookmarkOwner
The KBookmarkMenu and KBookmarkBar classes gives the user the ability to either edit bookmarks or add...
Definition: kbookmarkmanager.h:317

KDE Home | KDE Accessibility Home | Description of Access Keys