KIO
kbookmarkdialog.cc
Go to the documentation of this file.
63 KBookmark KBookmarkDialog::addBookmark(const QString & title, const KUrl & url, KBookmark parent)
92 KBookmarkGroup KBookmarkDialog::addBookmarks(const QList<QPair<QString, QString> > & list, const QString & name, KBookmarkGroup parent)
335 QString text = KInputDialog::getText( caption, i18nc("@label:textbox", "New folder:" ), QString(), &ok );
355 void KBookmarkDialog::fillGroup(QTreeWidgetItem* parentItem, const KBookmarkGroup& group, const KBookmarkGroup& selectGroup)
381 KBookmarkTreeItem::KBookmarkTreeItem(QTreeWidgetItem * parent, QTreeWidget * tree, const KBookmarkGroup &bk)
QString caption()
virtual void aboutToShow(BookmarkDialogMode mode)
aboutToShow is called immediately before exec() Reimplement this to show or hide UI elements for cert...
Definition: kbookmarkdialog.cc:264
KBookmarkTreeItem(QTreeWidget *tree)
Definition: kbookmarkdialog.cc:371
KBookmarkGroup createNewFolder(const QString &name, KBookmark parent=KBookmark())
A dialog to create a new folder.
Definition: kbookmarkdialog.cc:151
Definition: kbookmarkdialog.h:78
KBookmarkGroup toGroup() const
Convert this to a group - do this only if isGroup() returns true.
Definition: kbookmark.cc:465
This class implements the reading/writing of bookmarks in XML.
Definition: kbookmarkmanager.h:65
void setParentBookmark(const KBookmark &bm)
selects the specified bookmark in the folder tree
Definition: kbookmarkdialog.cc:178
virtual void save(BookmarkDialogMode mode, const KBookmark &)
save all your custom data in this method This is called after the users has accepted() the dialog...
Definition: kbookmarkdialog.cc:259
Definition: kbookmark.h:34
QString i18nc(const char *ctxt, const char *text)
KBookmark addBookmark(const QString &title, const KUrl &url, KBookmark parent=KBookmark())
shows a add Bookmark dialog Note: That this updates the bookmark and calls KBookmarkManager::emitChan...
Definition: kbookmarkdialog.cc:63
void setFullText(const QString &fullText)
Set the text shown for the bookmark.
Definition: kbookmark.cc:321
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.cc:212
bool isGroup() const
Whether the bookmark is a group or a normal bookmark.
Definition: kbookmark.cc:283
KBookmark editBookmark(const KBookmark &bm)
shows a propeties dialog Note: That this updates the bookmark and calls KBookmarkManager::emitChanged...
Definition: kbookmarkdialog.cc:36
KBookmarkGroup selectFolder(KBookmark start=KBookmark())
A dialog to select a folder.
Definition: kbookmarkdialog.cc:123
KBookmarkGroup parentBookmark()
returns the selected bookmark in the folder tree, or the root (top-level) bookmark if none was select...
Definition: kbookmarkdialog.cc:201
QString getText(const QString &caption, const QString &label, const QString &value=QString(), bool *ok=0, QWidget *parent=0, QValidator *validator=0, const QString &mask=QString(), const QString &whatsThis=QString(), const QStringList &completionList=QStringList())
KBookmarkGroup 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 KBookmarkMan...
Definition: kbookmarkdialog.cc:92
KGuiItem ok()
KBookmark findByAddress(const QString &address)
Definition: kbookmarkmanager.cc:515
void emitChanged()
Saves the bookmark file and notifies everyone.
Definition: kbookmarkmanager.cc:545
QPixmap SmallIcon(const QString &name, int force_size, int state, const QStringList &overlays)
void fillGroup(QTreeWidgetItem *parentItem, const KBookmarkGroup &group)
Definition: kbookmarkdialog.cc:350
static QString commonParent(const QString &A, const QString &B)
Definition: kbookmark.cc:512
virtual void initLayout()
initLayout is called to set the dialog up, indepent from the mode If you want to add widgets or a cus...
Definition: kbookmarkdialog.cc:269
Definition: kbookmarkmenu_p.h:73
QString url(AdjustPathOption trailing=LeaveTrailingSlash) const
Definition: kbookmarkdialog.h:78
virtual void setText(const QString &)
KBookmark next(const KBookmark ¤t) const
Return the next sibling of a child bookmark of this group.
Definition: kbookmark.cc:123
const KShortcut & end()
KBookmarkDialog(KBookmarkManager *, QWidget *=0)
Creates a new KBookmarkDialog.
Definition: kbookmarkdialog.cc:320
QString address() const
Return the "address" of this bookmark in the whole tree.
Definition: kbookmark.cc:471
KBookmarkGroup createNewFolder(const QString &text)
Create a new bookmark folder, as the last child of this group.
Definition: kbookmark.cc:157
void setDescription(const QString &description)
Set the description of the bookmark.
Definition: kbookmark.cc:412
QStringList list(const QString &fileClass)
Returns a list of directories associated with this file-class.
Definition: krecentdirs.cpp:60
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.