• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 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
25class KIO_EXPORT KonqBookmarkOwner : public KBookmarkOwner // KDE5 TODO: merge with KBookmarkOwner
26{
27public:
28 virtual ~KonqBookmarkOwner();
29 virtual void openInNewTab(const KBookmark &bm) = 0;
30 virtual void openInNewWindow(const KBookmark &bm) = 0;
31};
32
33class KIO_EXPORT KonqBookmarkMenu : public KBookmarkMenu
34{
35 //friend class KBookmarkBar;
36 Q_OBJECT
37public:
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
66protected:
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();
102private:
103 KonqBookmarkOwner * owner()
104 { return static_cast<KonqBookmarkOwner *>(KBookmarkMenu::owner());}
105};
106
107class KIO_EXPORT KonqBookmarkContextMenu : public KBookmarkContextMenu
108{
109 Q_OBJECT
110public:
111 KonqBookmarkContextMenu(const KBookmark & bm, KBookmarkManager * mgr, KonqBookmarkOwner * owner );
112 virtual ~KonqBookmarkContextMenu();
113 virtual void addActions();
114
115public Q_SLOTS:
116 void openInNewTab();
117 void openInNewWindow();
118 void toggleShowInToolbar();
119private:
120 KonqBookmarkOwner * owner()
121 { return static_cast<KonqBookmarkOwner *>(KBookmarkContextMenu::owner());}
122};
123#endif
124
KActionCollection
KBookmarkActionMenu
Definition: kbookmarkmenu.h:241
KBookmarkContextMenu
Definition: kbookmarkmenu.h:189
KBookmarkContextMenu::owner
KBookmarkOwner * owner() const
Definition: kbookmarkmenu.cc:391
KBookmarkManager
This class implements the reading/writing of bookmarks in XML.
Definition: kbookmarkmanager.h:66
KBookmarkMenu
This class provides a bookmark menu.
Definition: kbookmarkmenu.h:77
KBookmarkMenu::owner
KBookmarkOwner * owner() const
Definition: kbookmarkmenu.cc:200
KBookmarkOwner
The KBookmarkMenu and KBookmarkBar classes gives the user the ability to either edit bookmarks or add...
Definition: kbookmarkmanager.h:383
KBookmark
Definition: kbookmark.h:35
KMenu
KonqBookmarkContextMenu
Definition: konqbookmarkmenu.h:108
KonqBookmarkMenu
Definition: konqbookmarkmenu.h:34
KonqBookmarkMenu::~KonqBookmarkMenu
~KonqBookmarkMenu()
Definition: konqbookmarkmenu.h:54
KonqBookmarkMenu::KonqBookmarkMenu
KonqBookmarkMenu(KBookmarkManager *mgr, KonqBookmarkOwner *owner, KBookmarkActionMenu *parentMenu, QString parentAddress)
Creates a bookmark submenu.
Definition: konqbookmarkmenu.h:61
KonqBookmarkMenu::KonqBookmarkMenu
KonqBookmarkMenu(KBookmarkManager *mgr, KonqBookmarkOwner *owner, KBookmarkActionMenu *parentMenu, KActionCollection *collec)
Fills a bookmark menu with konquerors bookmarks (one instance of KonqBookmarkMenu is created for the ...
Definition: konqbookmarkmenu.h:50
KonqBookmarkOwner
Definition: konqbookmarkmenu.h:26
KonqBookmarkOwner::openInNewTab
virtual void openInNewTab(const KBookmark &bm)=0
KonqBookmarkOwner::openInNewWindow
virtual void openInNewWindow(const KBookmark &bm)=0
QAction
kbookmarkmenu.h
KonqBookmarkMenu::DynMenuInfo
Structure used for storing information about the dynamic menu setting.
Definition: konqbookmarkmenu.h:71
KonqBookmarkMenu::DynMenuInfo::d
class DynMenuInfoPrivate * d
Definition: konqbookmarkmenu.h:76
KonqBookmarkMenu::DynMenuInfo::show
bool show
Definition: konqbookmarkmenu.h:72
KonqBookmarkMenu::DynMenuInfo::name
QString name
Definition: konqbookmarkmenu.h:75
KonqBookmarkMenu::DynMenuInfo::location
QString location
Definition: konqbookmarkmenu.h:73
KonqBookmarkMenu::DynMenuInfo::type
QString type
Definition: konqbookmarkmenu.h:74
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 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.14.38 API Reference

Skip menu "kdelibs-4.14.38 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