KDE3Support
#include <kfiletreebranch.h>
Public Slots | |
virtual bool | populate (const KUrl &url, K3FileTreeViewItem *currItem) |
void | setOpenPixmap (const QPixmap &pix) |
virtual void | setShowExtensions (bool visible=true) |
Signals | |
void | directoryChildCount (K3FileTreeViewItem *item, int count) |
void | newTreeViewItems (KFileTreeBranch *, const K3FileTreeViewItemList &) |
void | populateFinished (K3FileTreeViewItem *) |
Signals inherited from KDirLister | |
void | canceled () |
void | canceled (const KUrl &_url) |
void | clear (const KUrl &_url) |
void | clear () |
void | completed () |
void | completed (const KUrl &_url) |
QT_MOC_COMPAT void | deleteItem (const KFileItem &_fileItem) |
void | infoMessage (const QString &msg) |
void | itemsAdded (const KUrl &directoryUrl, const KFileItemList &items) |
void | itemsDeleted (const KFileItemList &items) |
void | itemsFilteredByMime (const KFileItemList &items) |
void | newItems (const KFileItemList &items) |
void | percent (int percent) |
void | processedSize (KIO::filesize_t size) |
void | redirection (const KUrl &oldUrl, const KUrl &newUrl) |
void | redirection (const KUrl &_url) |
void | refreshItems (const QList< QPair< KFileItem, KFileItem > > &items) |
void | speed (int bytes_per_second) |
void | started (const KUrl &_url) |
void | totalSize (KIO::filesize_t size) |
Protected Member Functions | |
virtual K3FileTreeViewItem * | createTreeViewItem (K3FileTreeViewItem *parent, const KFileItem &fileItem) |
Protected Member Functions inherited from KDirLister | |
virtual bool | doMimeFilter (const QString &mime, const QStringList &filters) const |
virtual bool | doNameFilter (const QString &name, const QList< QRegExp > &filters) const |
virtual void | handleError (KIO::Job *) |
virtual bool | matchesFilter (const KFileItem &) const |
virtual bool | matchesMimeFilter (const KFileItem &) const |
Additional Inherited Members | |
Public Types inherited from KDirLister | |
enum | OpenUrlFlag |
enum | WhichItems |
Static Public Member Functions inherited from KDirLister | |
static KFileItem | cachedItemForUrl (const KUrl &url) |
Protected Types inherited from KDirLister | |
enum | Changes |
Properties inherited from KDirLister | |
bool | autoErrorHandlingEnabled |
bool | autoUpdate |
bool | delayedMimeTypes |
bool | dirOnlyMode |
QStringList | mimeFilter |
QString | nameFilter |
bool | showingDotFiles |
Detailed Description
This is the branch class of the K3FileTreeView, which represents one branch in the treeview.
Every branch has a root which is an url. The branch lists the files under the root. Every branch uses its own dirlister and can have its own filter etc.
Branch object for K3FileTreeView object.
Definition at line 49 of file kfiletreebranch.h.
Constructor & Destructor Documentation
KFileTreeBranch::KFileTreeBranch | ( | K3FileTreeView * | parent, |
const KUrl & | url, | ||
const QString & | name, | ||
const QPixmap & | pix, | ||
bool | showHidden = false , |
||
K3FileTreeViewItem * | branchRoot = 0 |
||
) |
constructs a branch for K3FileTreeView.
Does not yet start to list it.
- Parameters
-
url start url of the branch. name the name of the branch, which is displayed in the first column of the treeview. pix is a pixmap to display as an icon of the branch. showHidden flag to make hidden files visible or not. branchRoot is the K3FileTreeViewItem to use as the root of the branch, with the default 0 meaning to let KFileTreeBranch create it for you.
Definition at line 34 of file kfiletreebranch.cpp.
Member Function Documentation
bool KFileTreeBranch::childRecurse | ( | ) |
- Returns
- if child recursion is on or off.
- See also
- setChildRecurse
Definition at line 304 of file kfiletreebranch.cpp.
|
protectedvirtual |
allocates a K3FileTreeViewItem for the branch for new items.
Definition at line 280 of file kfiletreebranch.cpp.
|
signal |
emitted with the exact count of children for a directory.
|
virtual |
find the according K3FileTreeViewItem by an url
Definition at line 413 of file kfiletreebranch.cpp.
QString KFileTreeBranch::name | ( | ) | const |
- Returns
- the name of the branch.
Definition at line 110 of file kfiletreebranch.cpp.
|
signal |
emitted with a list of new or updated K3FileTreeViewItem which were found in a branch.
Note that this signal is emitted very often and may slow down the performance of the treeview !
QPixmap KFileTreeBranch::openPixmap | ( | ) | const |
Definition at line 125 of file kfiletreebranch.cpp.
QPixmap KFileTreeBranch::pixmap | ( | ) | const |
Definition at line 120 of file kfiletreebranch.cpp.
|
virtualslot |
populates a branch.
This method must be called after a branch was added to a K3FileTreeView using method addBranch.
- Parameters
-
url is the url of the root item where the branch starts. currItem is the current parent.
Definition at line 540 of file kfiletreebranch.cpp.
|
signal |
emitted with the item of a directory which was finished to populate
K3FileTreeViewItem * KFileTreeBranch::root | ( | ) |
- Returns
- the root item.
Definition at line 105 of file kfiletreebranch.cpp.
KUrl KFileTreeBranch::rootUrl | ( | ) | const |
- Returns
- the root url of the branch.
Definition at line 95 of file kfiletreebranch.cpp.
void KFileTreeBranch::setChildRecurse | ( | bool | t = true | ) |
sets if children recursion is wanted or not.
If this is switched off, the child directories of a just opened directory are not listed internally. That means that it can not be determined if the sub directories are expandable or not. If this is switched off there will be no call to setExpandable.
- Parameters
-
t set to true to switch on child recursion
Definition at line 297 of file kfiletreebranch.cpp.
|
virtual |
sets the name of the branch.
Definition at line 115 of file kfiletreebranch.cpp.
void KFileTreeBranch::setOpen | ( | bool | setopen = true | ) |
sets the root of the branch open or closed.
Definition at line 130 of file kfiletreebranch.cpp.
|
slot |
Definition at line 137 of file kfiletreebranch.cpp.
|
virtual |
sets a K3FileTreeViewItem as root widget for the branch.
That must be created outside of the branch. All KFileTreeViewItems the branch is allocating will become children of that object.
- Parameters
-
r the K3FileTreeViewItem to become the root item.
Definition at line 100 of file kfiletreebranch.cpp.
|
virtualslot |
sets printing of the file extensions on or off.
If you pass false to this slot, all items of this branch will not show their file extensions in the tree.
- Parameters
-
visible flags if the extensions should be visible or not.
Definition at line 310 of file kfiletreebranch.cpp.
bool KFileTreeBranch::showExtensions | ( | ) | const |
- Returns
- whether the items in the branch show their file extensions in the tree or not. See setShowExtensions for more information.
Definition at line 315 of file kfiletreebranch.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.