org.kde.koala

Class KFileTreeBranch

public class KFileTreeBranch extends KDirLister

This is the branch class of the KFileTreeView, 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. See KFileTreeBranchSignals for signals emitted by KFileTreeBranch

UNKNOWN: Branch object for KFileTreeView object.

Constructor Summary
protected KFileTreeBranch(Class dummy)
KFileTreeBranch(KFileTreeView arg1, KURL url, String name, QPixmap pix, boolean showHidden, KFileTreeViewItem branchRoot)
constructs a branch for KFileTreeView.
KFileTreeBranch(KFileTreeView arg1, KURL url, String name, QPixmap pix, boolean showHidden)
KFileTreeBranch(KFileTreeView arg1, KURL url, String name, QPixmap pix)
Method Summary
booleanchildRecurse()
StringclassName()
protected KFileTreeViewItemcreateTreeViewItem(KFileTreeViewItem parent, KFileItem fileItem)
allocates a KFileTreeViewItem for the branch for new items.
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
protected voidfinalize()
Deletes the wrapped C++ instance
KFileTreeViewItemfindTVIByURL(KURL arg1)
find the according KFileTreeViewItem by an url
booleanisDisposed()
Has the wrapped C++ instance been deleted?
QMetaObjectmetaObject()
Stringname()
QPixmapopenPixmap()
QPixmappixmap()
booleanpopulate(KURL url, KFileTreeViewItem currItem)
populates a branch.
KFileTreeViewItemroot()
KURLrootUrl()
voidsetChildRecurse(boolean t)
sets if children recursion is wanted or not.
voidsetChildRecurse()
voidsetName(String n)
sets the name of the branch.
voidsetOpen(boolean setopen)
sets the root of the branch open or closed.
voidsetOpen()
voidsetOpenPixmap(QPixmap pix)
voidsetRoot(KFileTreeViewItem r)
sets a KFileTreeViewItem as root widget for the branch.
voidsetShowExtensions(boolean visible)
sets printing of the file extensions on or off.
voidsetShowExtensions()
booleanshowExtensions()

Constructor Detail

KFileTreeBranch

protected KFileTreeBranch(Class dummy)

KFileTreeBranch

public KFileTreeBranch(KFileTreeView arg1, KURL url, String name, QPixmap pix, boolean showHidden, KFileTreeViewItem branchRoot)
constructs a branch for KFileTreeView. 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 KFileTreeViewItem to use as the root of the branch, with the default 0 meaning to let KFileTreeBranch create it for you.

UNKNOWN: constructs a branch for KFileTreeView.

KFileTreeBranch

public KFileTreeBranch(KFileTreeView arg1, KURL url, String name, QPixmap pix, boolean showHidden)

KFileTreeBranch

public KFileTreeBranch(KFileTreeView arg1, KURL url, String name, QPixmap pix)

Method Detail

childRecurse

public boolean childRecurse()

Returns: if child recursion is on or off.

See Also: KFileTreeBranch

UNKNOWN:

className

public String className()

createTreeViewItem

protected KFileTreeViewItem createTreeViewItem(KFileTreeViewItem parent, KFileItem fileItem)
allocates a KFileTreeViewItem for the branch for new items.

UNKNOWN: allocates a KFileTreeViewItem for the branch for new items.

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()

finalize

protected void finalize()
Deletes the wrapped C++ instance

findTVIByURL

public KFileTreeViewItem findTVIByURL(KURL arg1)
find the according KFileTreeViewItem by an url

UNKNOWN: find the according KFileTreeViewItem by an url

isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?

metaObject

public QMetaObject metaObject()

name

public String name()

Returns: the name of the branch.

UNKNOWN:

openPixmap

public QPixmap openPixmap()

pixmap

public QPixmap pixmap()

populate

public boolean populate(KURL url, KFileTreeViewItem currItem)
populates a branch. This method must be called after a branch was added to a KFileTreeView using method addBranch.

Parameters: url is the url of the root item where the branch starts. currItem is the current parent.

UNKNOWN: populates a branch.

root

public KFileTreeViewItem root()

Returns: the root item.

UNKNOWN:

rootUrl

public KURL rootUrl()

Returns: the root url of the branch.

UNKNOWN:

setChildRecurse

public void setChildRecurse(boolean t)
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

UNKNOWN: sets if children recursion is wanted or not.

setChildRecurse

public void setChildRecurse()

setName

public void setName(String n)
sets the name of the branch.

UNKNOWN: sets the name of the branch.

setOpen

public void setOpen(boolean setopen)
sets the root of the branch open or closed.

UNKNOWN: sets the root of the branch open or closed.

setOpen

public void setOpen()

setOpenPixmap

public void setOpenPixmap(QPixmap pix)

setRoot

public void setRoot(KFileTreeViewItem r)
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.

Parameters: r the KFileTreeViewItem to become the root item.

UNKNOWN: sets a KFileTreeViewItem as root widget for the branch.

setShowExtensions

public void setShowExtensions(boolean visible)
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.

UNKNOWN: sets printing of the file extensions on or off.

setShowExtensions

public void setShowExtensions()

showExtensions

public boolean showExtensions()

Returns: whether the items in the branch show their file extensions in the tree or not. See setShowExtensions for more information.

UNKNOWN: