KBookmarkMenu Class Reference
This class provides a bookmark menu. More...
#include <kbookmarkmenu.h>
Inheritance diagram for KBookmarkMenu:

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 and instantiate those classes before this class is ever called.
Using this class is very simple:
1) Create a popup menu (either KActionMenu or KPopupMenu 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
Again, if you wish to modify any defaults, the procedure is:
1a) Reimplement your own KBookmarkOwner 1b) Reimplement and instantiate your own KBookmarkManager
Definition at line 79 of file kbookmarkmenu.h.
Constructor & Destructor Documentation
|
Fills a bookmark menu (one instance of KBookmarkMenu is created for the toplevel menu, but also one per submenu).
Definition at line 79 of file kbookmarkmenu.cc. References addAddBookmark(), addAddBookmarksList(), addEditBookmarks(), QObject::connect(), QObject::disconnect(), extOwner(), QString::isNull(), m_actionCollection, m_actions, m_bAddBookmark, m_bDirty, m_bIsRoot, m_bNSBookmark, m_lstSubMenus, m_parentAddress, m_parentMenu, m_pManager, QPtrList::setAutoDelete(), KActionCollection::setHighlightingEnabled(), KPopupMenu::setKeyboardShortcutsEnabled(), slotAboutToShow(), slotAboutToShowContextMenu(), slotActionHighlighted(), and slotBookmarksChanged(). Referenced by fillBookmarkMenu(). |
Member Function Documentation
|
|
Call ensureUpToDate() if you need KBookmarkMenu to adjust to its final size before it is executed.
Definition at line 153 of file kbookmarkmenu.cc. References slotAboutToShow(). |
|
Definition at line 1100 of file kbookmarkmenu.cc. References QDomElement::attribute(), KConfigBase::hasGroup(), KConfigBase::hasKey(), KBookmark::internalElement(), KBookmarkMenu::DynMenuInfo::location, KBookmarkMenu::DynMenuInfo::name, KNSBookmarkImporter::netscapeBookmarksFile(), KConfigBase::readBoolEntry(), KConfigBase::readEntry(), KConfigBase::readPathEntry(), KBookmarkManager::root(), KConfigBase::setGroup(), KBookmarkMenu::DynMenuInfo::show, KBookmarkMenu::DynMenuInfo::type, and KBookmarkManager::userBookmarksManager(). Referenced by fillBookmarkMenu(), setDynamicBookmarks(), KBookmarkManager::setShowNSBookmarks(), and KBookmarkManager::showNSBookmarks(). |
|
Shows an extra menu for the given bookmarks file and type. Upgrades from option inside XBEL to option in rc file on first call of this function.
Definition at line 1146 of file kbookmarkmenu.cc. References KConfigBase::hasKey(), KBookmarkMenu::DynMenuInfo::location, KBookmarkMenu::DynMenuInfo::name, KConfigBase::readListEntry(), KConfigBase::setGroup(), KBookmarkMenu::DynMenuInfo::show, showDynamicBookmarks(), KConfigBase::sync(), KBookmarkMenu::DynMenuInfo::type, KConfigBase::writeEntry(), and KConfigBase::writePathEntry(). Referenced by KBookmarkManager::setShowNSBookmarks(). |
|
Definition at line 1132 of file kbookmarkmenu.cc. References KConfigBase::hasKey(), KConfigBase::readListEntry(), and KConfigBase::setGroup(). Referenced by fillBookmarkMenu(). |
|
Referenced by fillBookmarkMenu(), and slotBookmarkSelected(). |
|
@ since 3.4
Definition at line 746 of file kbookmarkmenu.cc. References kdDebug(), m_pOwner, openBookmark(), KBookmarkOwner::openBookmarkURL(), and QObject::sender(). |
|
load Netscape's bookmarks
Definition at line 769 of file kbookmarkmenu.cc. References m_actionCollection, KBookmarkMenuNSImporter::openBookmarks(), s_highlightedImportLocation, and s_highlightedImportType. Referenced by fillBookmarkMenu(). |
Member Data Documentation
|
The menu in which we plug our actions. Supplied in the constructor. Definition at line 217 of file kbookmarkmenu.h. Referenced by KBookmarkMenu(). |
|
List of our sub menus.
Definition at line 221 of file kbookmarkmenu.h. Referenced by fillBookmarkMenu(), KBookmarkMenu(), refill(), slotBookmarksChanged(), and ~KBookmarkMenu(). |
|
List of our actions.
Definition at line 226 of file kbookmarkmenu.h. Referenced by addAddBookmark(), addAddBookmarksList(), addEditBookmarks(), addNewFolder(), fillBookmarkMenu(), KBookmarkMenu(), refill(), and ~KBookmarkMenu(). |
|
Parent bookmark for this menu.
Definition at line 230 of file kbookmarkmenu.h. Referenced by fillBookmarkMenu(), KBookmarkMenu(), slotAddBookmark(), slotAddBookmarksList(), slotBookmarksChanged(), and slotNewFolder(). |
The documentation for this class was generated from the following files: