KIO
konqbookmarkmenu.cc
Go to the documentation of this file.
39 KonqBookmarkContextMenu::KonqBookmarkContextMenu(const KBookmark & bm, KBookmarkManager * mgr, KonqBookmarkOwner * owner)
51 KConfigGroup config = KSharedConfig::openConfig("kbookmarkrc", KConfig::NoGlobals)->group("Bookmarks");
71 addAction( SmallIcon("window-new"), i18n( "Open in New Window" ), this, SLOT( openInNewWindow() ) );
203 KConfigGroup config = KSharedConfig::openConfig("kbookmarkrc", KConfig::NoGlobals)->group("Bookmarks");
QString i18n(const char *text)
QString readPathEntry(const QString &pKey, const QString &aDefault) const
virtual void openInNewTab(const KBookmark &bm)=0
void writePathEntry(const QString &pKey, const QString &path, WriteConfigFlags pFlags=Normal)
virtual QAction * actionForBookmark(const KBookmark &bm)
Definition: kbookmarkmenu.cc:543
virtual void openInNewWindow(const KBookmark &bm)=0
static void setDynamicBookmarks(const QString &id, const DynMenuInfo &info)
Shows an extra menu for the given bookmarks file and type.
Definition: konqbookmarkmenu.cc:212
bool contains(const QString &str, Qt::CaseSensitivity cs) const
void setShowInToolbar(bool show)
Set whether this bookmark is show in a filterd toolbar.
Definition: kbookmark.cc:455
bool hasGroup(const QString &group) const
KConfigGroup group(const QByteArray &group)
QAction * addAction(const QString &name, QAction *action)
void writeEntry(const QString &key, const QVariant &value, WriteConfigFlags pFlags=Normal)
This class implements the reading/writing of bookmarks in XML.
Definition: kbookmarkmanager.h:65
static DynMenuInfo showDynamicBookmarks(const QString &id)
Definition: konqbookmarkmenu.cc:181
bool exists() const
virtual ~KonqBookmarkContextMenu()
Definition: konqbookmarkmenu.cc:44
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
Definition: kbookmark.h:34
KSharedConfigPtr config()
virtual ~KonqBookmarkOwner()
Definition: konqbookmarkmenu.cc:238
QString text() const
Text shown for the bookmark If bigger than 40, the text is shortened by replacing middle characters w...
Definition: kbookmark.cc:306
void append(const T &value)
KMenu * parentMenu() const
The menu in which we insert our actions Supplied in the constructor.
Definition: kbookmarkmenu.cc:205
Structure used for storing information about the dynamic menu setting.
Definition: konqbookmarkmenu.h:71
objectName
Definition: konqbookmarkmenu.h:25
bool isGroup() const
Whether the bookmark is a group or a normal bookmark.
Definition: kbookmark.cc:283
Definition: kbookmarkmenu.h:255
static KBookmarkManager * userBookmarksManager()
Returns a pointer to the user's main (konqueror) bookmark collection.
Definition: kbookmarkmanager.cc:673
KMenu * menu()
KonqBookmarkContextMenu(const KBookmark &bm, KBookmarkManager *mgr, KonqBookmarkOwner *owner)
Definition: konqbookmarkmenu.cc:39
iterator end()
Definition: kbookmarkmenu.h:188
bool hasKey(const QString &key) const
void fillDynamicBookmarks()
Definition: konqbookmarkmenu.cc:106
void emitChanged()
Saves the bookmark file and notifies everyone.
Definition: kbookmarkmanager.cc:549
QPixmap SmallIcon(const QString &name, int force_size, int state, const QStringList &overlays)
virtual QAction * actionForBookmark(const KBookmark &bm)
Definition: konqbookmarkmenu.cc:153
void toggleShowInToolbar()
Definition: konqbookmarkmenu.cc:86
Definition: kbookmarkmenu_p.h:51
void sync()
static QStringList dynamicBookmarksList()
Definition: konqbookmarkmenu.cc:201
KActionCollection * m_actionCollection
Definition: kbookmarkmenu.h:164
Definition: kbookmarkmenu.h:225
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
T readEntry(const QString &key, const T &aDefault) const
iterator begin()
virtual KMenu * contextMenu(QAction *act)
Definition: konqbookmarkmenu.cc:242
Definition: kbookmarkmenu.h:240
Definition: konqbookmarkmenu.h:107
QString address() const
Return the "address" of this bookmark in the whole tree.
Definition: kbookmark.cc:471
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:53 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:53 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.