• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kio/bookmarks
 

kio/bookmarks

  • kio
  • bookmarks
kbookmarkbar.h
1 // -*- c-basic-offset:4; indent-tabs-mode:nil -*-
2 // vim: set ts=4 sts=4 sw=4 et:
3 /* This file is part of the KDE project
4  Copyright (C) 1999 Kurt Granroth <granroth@kde.org>
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Library General Public
8  License as published by the Free Software Foundation; either
9  version 2 of the License, or (at your option) any later version.
10 
11  This library 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 GNU
14  Library General Public License for more details.
15 
16  You should have received a copy of the GNU Library General Public License
17  along with this library; see the file COPYING.LIB. If not, write to
18  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  Boston, MA 02110-1301, USA.
20 */
21 #ifndef KBOOKMARKBAR_H
22 #define KBOOKMARKBAR_H
23 
24 #include <tqobject.h>
25 #include <tqguardedptr.h>
26 #include <tqptrlist.h>
27 #include <kbookmark.h>
28 #include <kaction.h>
29 
30 class KToolBar;
31 class KBookmarkMenu;
32 class KBookmarkOwner;
33 class KActionCollection;
34 class KAction;
35 class TQPopupMenu;
36 
42 class KIO_EXPORT KBookmarkBar : public TQObject
43 {
44  Q_OBJECT
45  TQ_OBJECT
46  friend class RMB;
47 public:
60  KBookmarkBar( KBookmarkManager* manager,
61  KBookmarkOwner *owner, KToolBar *toolBar,
62  KActionCollection *,
63  TQObject *parent = 0L, const char *name = 0L);
64 
65  virtual ~KBookmarkBar();
66 
70  bool isReadOnly() const;
71 
75  void setReadOnly(bool);
76 
80  TQString parentAddress();
81 
82 signals:
86  void aboutToShowContextMenu( const KBookmark &, TQPopupMenu * );
90  void openBookmark( const TQString& url, TQt::ButtonState state );
91 
92 public slots:
93  void clear();
94 
95  void slotBookmarksChanged( const TQString & );
96  void slotBookmarkSelected();
97 
101  void slotBookmarkSelected( KAction::ActivationReason reason, TQt::ButtonState state );
102 
104  void slotRMBActionRemove( int );
106  void slotRMBActionInsert( int );
108  void slotRMBActionCopyLocation( int );
110  void slotRMBActionEditAt( int );
112  void slotRMBActionProperties( int );
113 
114 protected:
115  void fillBookmarkBar( KBookmarkGroup & parent );
116  virtual bool eventFilter( TQObject *o, TQEvent *e );
117 
118 private:
119  KBookmarkGroup getToolbar();
120 
121  KBookmarkOwner *m_pOwner;
122  TQGuardedPtr<KToolBar> m_toolBar;
123  KActionCollection *m_actionCollection;
124  KBookmarkManager *m_pManager;
125  TQPtrList<KBookmarkMenu> m_lstSubMenus;
126 
127 private:
128  class KBookmarkBarPrivate* dptr() const;
129 };
130 
131 #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
KBookmarkMenu
This class provides a bookmark menu.
Definition: kbookmarkmenu.h:79

kio/bookmarks

Skip menu "kio/bookmarks"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

kio/bookmarks

Skip menu "kio/bookmarks"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kio/bookmarks by doxygen 1.8.11
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |