• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.10.4 API Reference
  • KDE Home
  • Contact Us
 

KIO

  • kio
  • bookmarks
konqbookmarkmenu.h
Go to the documentation of this file.
1 /* This file is part of the KDE project
2  Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
3  Copyright (C) 2006 Daniel Teske <teske@squorn.de>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library 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 library 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  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. 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 __konqbookmarkmenu_h__
22 #define __konqbookmarkmenu_h__
23 #include "kbookmarkmenu.h"
24 
25 class KIO_EXPORT KonqBookmarkOwner : public KBookmarkOwner // KDE5 TODO: merge with KBookmarkOwner
26 {
27 public:
28  virtual ~KonqBookmarkOwner();
29  virtual void openInNewTab(const KBookmark &bm) = 0;
30  virtual void openInNewWindow(const KBookmark &bm) = 0;
31 };
32 
33 class KIO_EXPORT KonqBookmarkMenu : public KBookmarkMenu
34 {
35  //friend class KBookmarkBar;
36  Q_OBJECT
37 public:
50  KonqBookmarkMenu( KBookmarkManager* mgr, KonqBookmarkOwner * owner, KBookmarkActionMenu * parentMenu, KActionCollection *collec)
51  : KBookmarkMenu( mgr, owner, parentMenu->menu(), collec)
52  {
53  }
54  ~KonqBookmarkMenu()
55  {}
56 
61  KonqBookmarkMenu( KBookmarkManager* mgr, KonqBookmarkOwner * owner, KBookmarkActionMenu * parentMenu, QString parentAddress)
62  : KBookmarkMenu( mgr, owner, parentMenu->menu(), parentAddress)
63  {
64  }
65 
66 protected:
71  struct DynMenuInfo {
72  bool show;
73  QString location;
74  QString type;
75  QString name;
76  class DynMenuInfoPrivate *d;
77  };
78 
82  static DynMenuInfo showDynamicBookmarks( const QString &id );
83 
91  static void setDynamicBookmarks( const QString &id, const DynMenuInfo &info );
92 
96  static QStringList dynamicBookmarksList();
97 
98  virtual void refill();
99  virtual QAction* actionForBookmark(const KBookmark &bm);
100  virtual KMenu * contextMenu(QAction * act);
101  void fillDynamicBookmarks();
102 private:
103  KonqBookmarkOwner * owner()
104  { return static_cast<KonqBookmarkOwner *>(KBookmarkMenu::owner());}
105 };
106 
107 class KIO_EXPORT KonqBookmarkContextMenu : public KBookmarkContextMenu
108 {
109  Q_OBJECT
110 public:
111  KonqBookmarkContextMenu(const KBookmark & bm, KBookmarkManager * mgr, KonqBookmarkOwner * owner );
112  virtual ~KonqBookmarkContextMenu();
113  virtual void addActions();
114 
115 public Q_SLOTS:
116  void openInNewTab();
117  void openInNewWindow();
118  void toggleShowInToolbar();
119 private:
120  KonqBookmarkOwner * owner()
121  { return static_cast<KonqBookmarkOwner *>(KBookmarkContextMenu::owner());}
122 };
123 #endif
124 
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Mon Jul 15 2013 05:11:48 by doxygen 1.8.3.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KIO

Skip menu "KIO"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs-4.10.4 API Reference

Skip menu "kdelibs-4.10.4 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal