KBookmarks
kbookmarkcontextmenu.cpp
20KBookmarkContextMenu::KBookmarkContextMenu(const KBookmark &bk, KBookmarkManager *manager, KBookmarkOwner *owner, QWidget *parent)
53 addAction(QIcon::fromTheme(QStringLiteral("bookmark-new")), tr("Add Bookmark Here", "@action:inmenu"), this, &KBookmarkContextMenu::slotInsert);
59 addAction(tr("Open Folder in Bookmark Editor", "@action:inmenu"), this, &KBookmarkContextMenu::slotEditAt);
62 addAction(QIcon::fromTheme(QStringLiteral("edit-delete")), tr("Delete Folder", "@action:inmenu"), this, &KBookmarkContextMenu::slotRemove);
72 addAction(tr("Copy Link Address", "@action:inmenu"), this, &KBookmarkContextMenu::slotCopyLocation);
75 addAction(QIcon::fromTheme(QStringLiteral("edit-delete")), tr("Delete Bookmark", "@action:inmenu"), this, &KBookmarkContextMenu::slotRemove);
81 addAction(QIcon::fromTheme(QStringLiteral("tab-new")), tr("Open Folder in Tabs", "@action:inmenu"), this, &KBookmarkContextMenu::slotOpenFolderInTabs);
93 QMessageBox::critical(QApplication::activeWindow(), QApplication::applicationDisplayName(), result.errorMessage());
112 QMessageBox::critical(QApplication::activeWindow(), QApplication::applicationName(), tr("Cannot add bookmark with empty URL.", "@info"));
128 KBookmark newBookmark = parentBookmark.addBookmark(title, m_pOwner->currentUrl(), m_pOwner->currentIcon());
141 folder ? tr("Bookmark Folder Deletion", "@title:window") : tr("Bookmark Deletion", "@title:window"),
void setBrowserMode(bool browserMode)
Set this to true to make any "Edit Bookmarks" dialog show UI elements that are specific to browsers.
Definition kbookmarkcontextmenu.cpp:188
bool browserMode() const
Whether any "Edit Bookmarks" dialog shows UI elements that are specific to browsers.
Definition kbookmarkcontextmenu.cpp:193
This class provides a Dialog for editing properties, adding Bookmarks and creating new folders.
Definition kbookmarkdialog.h:31
KBookmark editBookmark(const KBookmark &bm)
Shows a properties dialog Note: this updates the bookmark and calls KBookmarkManager::emitChanged.
Definition kbookmarkdialog.cpp:171
void deleteBookmark(const KBookmark &bk)
Delete a bookmark - it has to be one of our children ! Don't forget to use KBookmarkManager::self()->...
Definition kbookmark.cpp:238
KBookmark previous(const KBookmark ¤t) const
Return the previous sibling of a child bookmark of this group.
Definition kbookmark.cpp:124
bool moveBookmark(const KBookmark &bookmark, const KBookmark &after)
Moves bookmark after after (which should be a child of ours).
Definition kbookmark.cpp:187
KBookmark addBookmark(const KBookmark &bm)
Create a new bookmark, as the last child of this group Don't forget to use KBookmarkManager::self()->...
Definition kbookmark.cpp:212
This class implements the reading/writing of bookmarks in XML.
Definition kbookmarkmanager.h:48
QString path() const
This will return the path that this manager is using to read the bookmarks.
Definition kbookmarkmanager.cpp:280
The KBookmarkMenu and KBookmarkBar classes gives the user the ability to either edit bookmarks or add...
Definition kbookmarkowner.h:43
virtual QString currentIcon() const
This function is called whenever the user wants to add the current page to the bookmarks list.
Definition kbookmarkowner.h:90
virtual bool enableOption(BookmarkOption option) const
Returns true if action should be shown in the menu The default is to show both a add and editBookmark...
Definition kbookmarkowner.cpp:66
virtual QString currentTitle() const
This function is called whenever the user wants to add the current page to the bookmarks list.
Definition kbookmarkowner.h:57
virtual bool supportsTabs() const
This function returns whether the owner supports tabs.
Definition kbookmarkowner.h:99
virtual void openFolderinTabs(const KBookmarkGroup &bm)
Called if the user wants to open every bookmark in this folder in a new tab.
Definition kbookmarkowner.cpp:77
virtual QUrl currentUrl() const
This function is called whenever the user wants to add the current page to the bookmarks list.
Definition kbookmarkowner.h:72
QString text() const
Text shown for the bookmark If bigger than 40, the text is shortened by replacing middle characters w...
Definition kbookmark.cpp:308
bool isGroup() const
Whether the bookmark is a group or a normal bookmark.
Definition kbookmark.cpp:285
KBookmarkGroup toGroup() const
Convert this to a group - do this only if isGroup() returns true.
Definition kbookmark.cpp:471
QString address() const
Return the "address" of this bookmark in the whole tree.
Definition kbookmark.cpp:477
void populateMimeData(QMimeData *mimeData) const
Adds this bookmark into the given QMimeData.
Definition kbookmark.cpp:663
QAction * editBookmarks(const QObject *recvr, const char *slot, QObject *parent)
QWidget * activeWindow()
Selection
void setMimeData(QMimeData *src, Mode mode)
applicationName
applicationDisplayName
QClipboard * clipboard()
QIcon fromTheme(const QString &name)
StandardButton critical(QWidget *parent, const QString &title, const QString &text, StandardButtons buttons, StandardButton defaultButton)
StandardButton warning(QWidget *parent, const QString &title, const QString &text, StandardButtons buttons, StandardButton defaultButton)
QString tr(const char *sourceText, const char *disambiguation, int n)
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
bool isEmpty() const const
QString toDisplayString(FormattingOptions options) const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 27 2024 11:52:58 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 27 2024 11:52:58 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.