KFileTreeBranch Class Reference
This is the branch class of the KFileTreeView, which represents one branch in the treeview. Branch object for KFileTreeView object. More...
#include <kfiletreebranch.h>
Inheritance diagram for KFileTreeBranch:

Public Slots | |
virtual bool | populate (const KURL &url, KFileTreeViewItem *currItem) |
populates a branch. | |
virtual void | setShowExtensions (bool visible=true) |
sets printing of the file extensions on or off. | |
Signals | |
void | populateFinished (KFileTreeViewItem *) |
emitted with the item of a directory which was finished to populate | |
void | newTreeViewItems (KFileTreeBranch *, const KFileTreeViewItemList &) |
emitted with a list of new or updated KFileTreeViewItem which were found in a branch. | |
void | directoryChildCount (KFileTreeViewItem *item, int count) |
emitted with the exact count of children for a directory. | |
Public Methods | |
KFileTreeBranch (KFileTreeView *, const KURL &url, const QString &name, const QPixmap &pix, bool showHidden=false, KFileTreeViewItem *branchRoot=0) | |
constructs a branch for KFileTreeView. | |
KURL | rootUrl () const |
virtual void | setRoot (KFileTreeViewItem *r) |
sets a KFileTreeViewItem as root widget for the branch. | |
KFileTreeViewItem * | root () |
QString | name () const |
virtual void | setName (const QString n) |
sets the name of the branch. | |
bool | showExtensions () const |
void | setOpen (bool setopen=true) |
sets the root of the branch open or closed. | |
void | setChildRecurse (bool t=true) |
sets if children recursion is wanted or not. | |
bool | childRecurse () |
virtual KFileTreeViewItem * | findTVIByURL (const KURL &) |
find the according KFileTreeViewItem by an url | |
Protected Methods | |
virtual KFileTreeViewItem * | createTreeViewItem (KFileTreeViewItem *parent, KFileItem *fileItem) |
allocates a KFileTreeViewItem for the branch for new items. | |
virtual void | virtual_hook (int id, void *data) |
Detailed Description
This is the branch class of the KFileTreeView, which represents one branch in the treeview. Branch object for KFileTreeView object.Every branch has a root which is an url. The branch lists the files unter the root. Every branch uses its own dirlister and can have its own filter etc.
Definition at line 49 of file kfiletreebranch.h.
Constructor & Destructor Documentation
|
constructs a branch for KFileTreeView. Does not yet start to list it.
Definition at line 37 of file kfiletreebranch.cpp. References KDirLister::canceled(), KDirLister::clear(), KDirLister::completed(), QObject::connect(), KDirLister::deleteItem(), KDirLister::newItems(), KURL::prettyURL(), KDirLister::redirection(), QListViewItem::setExpandable(), QListViewItem::setPixmap(), KDirLister::setShowingDotFiles(), QListViewItem::setText(), and KDirLister::started(). |
Member Function Documentation
|
Definition at line 70 of file kfiletreebranch.h. Referenced by KFileTreeView::findItem(). |
|
sets a KFileTreeViewItem 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.
Definition at line 78 of file kfiletreebranch.h. |
|
Definition at line 83 of file kfiletreebranch.h. Referenced by KFileTreeView::findItem(), and KFileTreeView::removeBranch(). |
|
Definition at line 88 of file kfiletreebranch.h. Referenced by KFileTreeView::branch(). |
|
sets the name of the branch.
Definition at line 93 of file kfiletreebranch.h. |
|
Definition at line 243 of file kfiletreebranch.cpp. |
|
sets the root of the branch open or closed.
Definition at line 121 of file kfiletreebranch.h. References QListViewItem::setOpen(). |
|
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.
Definition at line 230 of file kfiletreebranch.cpp. |
|
Definition at line 138 of file kfiletreebranch.h. |
|
populates a branch. This method must be called after a branch was added to a KFileTreeView using method addBranch.
Definition at line 463 of file kfiletreebranch.cpp. References KFileTreeViewItem::alreadyListed(), KDirLister::openURL(), and KURL::prettyURL(). |
|
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.
Definition at line 238 of file kfiletreebranch.cpp. |
|
allocates a KFileTreeViewItem for the branch for new items.
Definition at line 212 of file kfiletreebranch.cpp. |
|
find the according KFileTreeViewItem by an url
Definition at line 336 of file kfiletreebranch.cpp. References KURL::equals(), KFileItem::extraData(), KDirLister::findByURL(), and KURL::url(). |
|
emitted with the item of a directory which was finished to populate
|
|
emitted with a list of new or updated KFileTreeViewItem which were found in a branch. Note that this signal is emitted very often and may slow down the performance of the treeview ! |
|
emitted with the exact count of children for a directory.
|
The documentation for this class was generated from the following files: