KIO
KBookmarkDialog Class Reference
This class provides a Dialog for editing properties, adding Bookmarks and creating new folders. More...
#include <kbookmarkdialog.h>

Detailed Description
This class provides a Dialog for editing properties, adding Bookmarks and creating new folders.It can be used to show dialogs for common tasks with bookmarks.
It is used by KBookmarkMenu to show a dialog for "Properties", "Add Bookmark" and "Create New Folder" If you want to customize those dialogs, derive from KBookmarkOwner and reimplement bookmarkDialog() Return a KBookmarkDialog subclass and reimplement initLayout(), aboutToShow() and save()
Definition at line 44 of file kbookmarkdialog.h.
Member Enumeration Documentation
enum KBookmarkDialog::BookmarkDialogMode [protected] |
Definition at line 78 of file kbookmarkdialog.h.
Constructor & Destructor Documentation
KBookmarkDialog::KBookmarkDialog | ( | KBookmarkManager * | mgr, | |
QWidget * | parent = 0 | |||
) |
Member Function Documentation
void KBookmarkDialog::aboutToShow | ( | BookmarkDialogMode | mode | ) | [protected, virtual] |
aboutToShow is called immediately before exec() Reimplement this to show or hide UI elements for certain modes.
Definition at line 246 of file kbookmarkdialog.cc.
KBookmark KBookmarkDialog::addBookmark | ( | const QString & | title, | |
const KUrl & | url, | |||
KBookmark | parent = KBookmark() | |||
) |
shows a add Bookmark dialog Note: That this updates the bookmark and calls KBookmarkManager::emitChanged
Definition at line 60 of file kbookmarkdialog.cc.
KBookmarkGroup KBookmarkDialog::addBookmarks | ( | const QList< QPair< QString, QString > > & | list, | |
const QString & | name = QString() , |
|||
KBookmarkGroup | parent = KBookmarkGroup() | |||
) |
Creates a folder from a list of bookmarks Note: That this updates the bookmark and calls KBookmarkManager::emitChanged.
Definition at line 86 of file kbookmarkdialog.cc.
KBookmarkGroup KBookmarkDialog::createNewFolder | ( | const QString & | name, | |
KBookmark | parent = KBookmark() | |||
) |
shows a propeties dialog Note: That this updates the bookmark and calls KBookmarkManager::emitChanged
Definition at line 36 of file kbookmarkdialog.cc.
void KBookmarkDialog::fillGroup | ( | QTreeWidgetItem * | parentItem, | |
const KBookmarkGroup & | group | |||
) | [protected] |
Definition at line 327 of file kbookmarkdialog.cc.
void KBookmarkDialog::initLayout | ( | ) | [protected, virtual] |
initLayout is called to set the dialog up, indepent from the mode If you want to add widgets or a custom layout, reimplement this function.
The default implementation is rather simple, take a look at the source.
Definition at line 251 of file kbookmarkdialog.cc.
void KBookmarkDialog::initLayoutPrivate | ( | ) | [protected] |
Definition at line 267 of file kbookmarkdialog.cc.
void KBookmarkDialog::newFolderButton | ( | ) | [protected, slot] |
Definition at line 304 of file kbookmarkdialog.cc.
KBookmarkGroup KBookmarkDialog::parentBookmark | ( | ) | [protected] |
returns the selected bookmark in the folder tree, or the root (top-level) bookmark if none was selected
Definition at line 187 of file kbookmarkdialog.cc.
void KBookmarkDialog::save | ( | BookmarkDialogMode | mode, | |
const KBookmark & | ||||
) | [protected, virtual] |
save all your custom data in this method This is called after the users has accepted() the dialog.
Definition at line 241 of file kbookmarkdialog.cc.
KBookmarkGroup KBookmarkDialog::selectFolder | ( | KBookmark | start = KBookmark() |
) |
void KBookmarkDialog::setParentBookmark | ( | const KBookmark & | bm | ) | [protected] |
selects the specified bookmark in the folder tree
Definition at line 164 of file kbookmarkdialog.cc.
void KBookmarkDialog::slotButtonClicked | ( | int | button | ) | [protected] |
Definition at line 196 of file kbookmarkdialog.cc.
Member Data Documentation
KBookmark KBookmarkDialog::m_bm [protected] |
Definition at line 121 of file kbookmarkdialog.h.
QTreeWidget* KBookmarkDialog::m_folderTree [protected] |
Definition at line 119 of file kbookmarkdialog.h.
bool KBookmarkDialog::m_layout [protected] |
Definition at line 123 of file kbookmarkdialog.h.
QList<QPair<QString, QString> > KBookmarkDialog::m_list [protected] |
Definition at line 122 of file kbookmarkdialog.h.
QWidget* KBookmarkDialog::m_main [protected] |
Definition at line 114 of file kbookmarkdialog.h.
KBookmarkManager* KBookmarkDialog::m_mgr [protected] |
Definition at line 120 of file kbookmarkdialog.h.
BookmarkDialogMode KBookmarkDialog::m_mode [protected] |
Definition at line 112 of file kbookmarkdialog.h.
KLineEdit* KBookmarkDialog::m_title [protected] |
Definition at line 116 of file kbookmarkdialog.h.
QLabel* KBookmarkDialog::m_titleLabel [protected] |
Definition at line 117 of file kbookmarkdialog.h.
KLineEdit* KBookmarkDialog::m_url [protected] |
Definition at line 115 of file kbookmarkdialog.h.
QLabel* KBookmarkDialog::m_urlLabel [protected] |
Definition at line 118 of file kbookmarkdialog.h.
The documentation for this class was generated from the following files: