KIO
KBookmarkMenu Class Reference
#include <kbookmarkmenu.h>

Detailed Description
This class provides a bookmark menu.It is typically used in cooperation with KActionMenu but doesn't have to be.
If you use this class by itself, then it will use KDE defaults for everything -- the bookmark path, bookmark editor, bookmark launcher.. everything. These defaults reside in the classes KBookmarkOwner (editing bookmarks) and KBookmarkManager (almost everything else). If you wish to change the defaults in any way, you must reimplement either this class or KBookmarkOwner.
Using this class is very simple:
1) Create a popup menu (either KActionMenu or KMenu will do) 2) Instantiate a new KBookmarkMenu object using the above popup menu as a parameter 3) Insert your (now full) popup menu wherever you wish
Definition at line 76 of file kbookmarkmenu.h.
Constructor & Destructor Documentation
KBookmarkMenu::KBookmarkMenu | ( | KBookmarkManager * | mgr, | |
KBookmarkOwner * | owner, | |||
KMenu * | parentMenu, | |||
KActionCollection * | collec | |||
) |
Fills a bookmark menu (one instance of KBookmarkMenu is created for the toplevel menu, but also one per submenu).
- Parameters:
-
mgr The bookmark manager to use (i.e. for reading and writing) owner implementation of the KBookmarkOwner callback interface. Note: If you pass a null KBookmarkOwner to the constructor, the openBookmark signal is not emitted, instead KRun is used to open the bookmark. parentMenu menu to be filled collec parent collection for the KActions.
Definition at line 50 of file kbookmarkmenu.cc.
KBookmarkMenu::KBookmarkMenu | ( | KBookmarkManager * | mgr, | |
KBookmarkOwner * | owner, | |||
KMenu * | parentMenu, | |||
const QString & | parentAddress | |||
) |
KBookmarkMenu::~KBookmarkMenu | ( | ) |
Definition at line 120 of file kbookmarkmenu.cc.
Member Function Documentation
void KBookmarkMenu::addActions | ( | ) | [protected] |
Definition at line 79 of file kbookmarkmenu.cc.
void KBookmarkMenu::addAddBookmark | ( | ) | [protected] |
Definition at line 462 of file kbookmarkmenu.cc.
void KBookmarkMenu::addAddBookmarksList | ( | ) | [protected] |
Definition at line 445 of file kbookmarkmenu.cc.
void KBookmarkMenu::addEditBookmarks | ( | ) | [protected] |
Definition at line 480 of file kbookmarkmenu.cc.
void KBookmarkMenu::addNewFolder | ( | ) | [protected] |
Definition at line 492 of file kbookmarkmenu.cc.
void KBookmarkMenu::addOpenInTabs | ( | ) | [protected] |
Definition at line 428 of file kbookmarkmenu.cc.
void KBookmarkMenu::clear | ( | ) | [protected, virtual] |
Definition at line 403 of file kbookmarkmenu.cc.
void KBookmarkMenu::ensureUpToDate | ( | ) |
Call ensureUpToDate() if you need KBookmarkMenu to adjust to its final size before it is executed.
Definition at line 126 of file kbookmarkmenu.cc.
void KBookmarkMenu::fillBookmarks | ( | ) | [protected] |
Definition at line 507 of file kbookmarkmenu.cc.
bool KBookmarkMenu::isDirty | ( | ) | const [protected] |
Definition at line 166 of file kbookmarkmenu.cc.
bool KBookmarkMenu::isRoot | ( | ) | const [protected] |
Definition at line 161 of file kbookmarkmenu.cc.
KBookmarkManager * KBookmarkMenu::manager | ( | ) | const [protected] |
Definition at line 176 of file kbookmarkmenu.cc.
KBookmarkOwner * KBookmarkMenu::owner | ( | ) | const [protected] |
Definition at line 181 of file kbookmarkmenu.cc.
QString KBookmarkMenu::parentAddress | ( | ) | const [protected] |
KMenu * KBookmarkMenu::parentMenu | ( | ) | const [protected] |
The menu in which we insert our actions Supplied in the constructor.
Definition at line 186 of file kbookmarkmenu.cc.
void KBookmarkMenu::refill | ( | ) | [protected, virtual] |
void KBookmarkMenu::slotAboutToShow | ( | ) | [protected, slot] |
Definition at line 131 of file kbookmarkmenu.cc.
void KBookmarkMenu::slotAddBookmark | ( | ) | [protected, slot] |
Definition at line 565 of file kbookmarkmenu.cc.
void KBookmarkMenu::slotAddBookmarksList | ( | ) | [protected, slot] |
Definition at line 552 of file kbookmarkmenu.cc.
void KBookmarkMenu::slotBookmarksChanged | ( | const QString & | groupAddress | ) | [slot] |
Definition at line 385 of file kbookmarkmenu.cc.
void KBookmarkMenu::slotNewFolder | ( | ) | [protected, slot] |
Definition at line 589 of file kbookmarkmenu.cc.
void KBookmarkMenu::slotOpenFolderInTabs | ( | ) | [protected, slot] |
Definition at line 584 of file kbookmarkmenu.cc.
Member Data Documentation
KActionCollection* KBookmarkMenu::m_actionCollection [protected] |
Definition at line 154 of file kbookmarkmenu.h.
QList<QAction *> KBookmarkMenu::m_actions [protected] |
QList<KBookmarkMenu *> KBookmarkMenu::m_lstSubMenus [protected] |
The documentation for this class was generated from the following files: