kio Library API Documentation

kbookmarkbar.h

00001 // -*- c-basic-offset:4; indent-tabs-mode:nil -*- 00002 // vim: set ts=4 sts=4 sw=4 et: 00003 /* This file is part of the KDE project 00004 Copyright (C) 1999 Kurt Granroth <granroth@kde.org> 00005 00006 This library is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU Library General Public 00008 License as published by the Free Software Foundation; either 00009 version 2 of the License, or (at your option) any later version. 00010 00011 This library is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 Library General Public License for more details. 00015 00016 You should have received a copy of the GNU Library General Public License 00017 along with this library; see the file COPYING.LIB. If not, write to 00018 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00019 Boston, MA 02111-1307, USA. 00020 */ 00021 #ifndef KBOOKMARKBAR_H 00022 #define KBOOKMARKBAR_H 00023 00024 #include <qobject.h> 00025 #include <qguardedptr.h> 00026 #include <qptrlist.h> 00027 #include <kbookmark.h> 00028 00029 class KToolBar; 00030 class KBookmarkMenu; 00031 class KBookmarkOwner; 00032 class KActionCollection; 00033 class KAction; 00034 class QPopupMenu; 00035 00041 class KBookmarkBar : public QObject 00042 { 00043 Q_OBJECT 00044 friend class RMB; 00045 public: 00054 KBookmarkBar( KBookmarkManager* manager, 00055 KBookmarkOwner *owner, KToolBar *toolBar, 00056 KActionCollection *, 00057 QObject *parent = 0L, const char *name = 0L); 00058 00059 virtual ~KBookmarkBar(); 00060 00064 bool isReadOnly() const; 00065 00069 void setReadOnly(bool); 00070 00074 QString parentAddress(); 00075 00076 signals: 00080 void aboutToShowContextMenu( const KBookmark &, QPopupMenu * ); 00081 00082 public slots: 00083 void clear(); 00084 00085 void slotBookmarksChanged( const QString & ); 00086 void slotBookmarkSelected(); 00087 00091 void slotRMBActionRemove( int ); 00092 void slotRMBActionInsert( int ); 00093 void slotRMBActionCopyLocation( int ); 00094 void slotRMBActionEditAt( int ); 00095 void slotRMBActionProperties( int ); 00096 00097 protected: 00098 void fillBookmarkBar( KBookmarkGroup & parent ); 00099 virtual bool eventFilter( QObject *o, QEvent *e ); 00100 00101 private: 00102 KBookmarkGroup getToolbar(); 00103 00104 KBookmarkOwner *m_pOwner; 00105 QGuardedPtr<KToolBar> m_toolBar; 00106 KActionCollection *m_actionCollection; 00107 KBookmarkManager *m_pManager; 00108 QPtrList<KBookmarkMenu> m_lstSubMenus; 00109 00110 private: 00111 class KBookmarkBarPrivate* dptr() const; 00112 }; 00113 00114 #endif // KBOOKMARKBAR_H
KDE Logo
This file is part of the documentation for kio Library Version 3.2.3.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sun Oct 10 18:55:25 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003