diff options
Diffstat (limited to 'kdejava/koala/org/kde/koala/KFileTreeBranch.java')
-rw-r--r-- | kdejava/koala/org/kde/koala/KFileTreeBranch.java | 148 |
1 files changed, 148 insertions, 0 deletions
diff --git a/kdejava/koala/org/kde/koala/KFileTreeBranch.java b/kdejava/koala/org/kde/koala/KFileTreeBranch.java new file mode 100644 index 00000000..13b9e251 --- /dev/null +++ b/kdejava/koala/org/kde/koala/KFileTreeBranch.java @@ -0,0 +1,148 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.Qt; +import org.kde.qt.QMetaObject; +import org.kde.qt.QtSupport; +import org.kde.qt.QPixmap; + +/** + + 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 {@link KFileTreeBranchSignals} for signals emitted by KFileTreeBranch + @short Branch object for KFileTreeView object. + +*/ +public class KFileTreeBranch extends KDirLister { + protected KFileTreeBranch(Class dummy){super((Class) null);} + public native QMetaObject metaObject(); + public native String className(); + /** + constructs a branch for KFileTreeView. Does not yet start to list it. + @param url start url of the branch. + @param name the name of the branch, which is displayed in the first column of the treeview. + @param pix is a pixmap to display as an icon of the branch. + @param showHidden flag to make hidden files visible or not. + @param branchRoot is the KFileTreeViewItem to use as the root of the + branch, with the default 0 meaning to let KFileTreeBranch create + it for you. + @short constructs a branch for KFileTreeView. + */ + public KFileTreeBranch(KFileTreeView arg1, KURL url, String name, QPixmap pix, boolean showHidden, KFileTreeViewItem branchRoot) { + super((Class) null); + newKFileTreeBranch(arg1,url,name,pix,showHidden,branchRoot); + } + private native void newKFileTreeBranch(KFileTreeView arg1, KURL url, String name, QPixmap pix, boolean showHidden, KFileTreeViewItem branchRoot); + public KFileTreeBranch(KFileTreeView arg1, KURL url, String name, QPixmap pix, boolean showHidden) { + super((Class) null); + newKFileTreeBranch(arg1,url,name,pix,showHidden); + } + private native void newKFileTreeBranch(KFileTreeView arg1, KURL url, String name, QPixmap pix, boolean showHidden); + public KFileTreeBranch(KFileTreeView arg1, KURL url, String name, QPixmap pix) { + super((Class) null); + newKFileTreeBranch(arg1,url,name,pix); + } + private native void newKFileTreeBranch(KFileTreeView arg1, KURL url, String name, QPixmap pix); + /** + @return the root url of the branch. + + @short + */ + public native KURL rootUrl(); + /** + 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. + @param r the KFileTreeViewItem to become the root item. + @short sets a KFileTreeViewItem as root widget for the branch. + */ + public native void setRoot(KFileTreeViewItem r); + /** + @return the root item. + + @short + */ + public native KFileTreeViewItem root(); + /** + @return the name of the branch. + + @short + */ + public native String name(); + /** + sets the name of the branch. + @short sets the name of the branch. + */ + public native void setName(String n); + public native QPixmap pixmap(); + public native QPixmap openPixmap(); + /** + @return whether the items in the branch show their file extensions in the + tree or not. See setShowExtensions for more information. + + @short + */ + public native boolean showExtensions(); + /** + sets the root of the branch open or closed. + @short sets the root of the branch open or closed. + */ + public native void setOpen(boolean setopen); + public native void 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. + @param t set to true to switch on child recursion + @short sets if children recursion is wanted or not. + */ + public native void setChildRecurse(boolean t); + public native void setChildRecurse(); + /** + @return if child recursion is on or off. + + @short + @see #setChildRecurse + */ + public native boolean childRecurse(); + /** + find the according KFileTreeViewItem by an url + @short find the according KFileTreeViewItem by an url + */ + public native KFileTreeViewItem findTVIByURL(KURL arg1); + /** + populates a branch. This method must be called after a branch was added + to a KFileTreeView using method addBranch. + @param url is the url of the root item where the branch starts. + @param currItem is the current parent. + @short populates a branch. + */ + public native boolean populate(KURL url, KFileTreeViewItem currItem); + /** + 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. + @param visible flags if the extensions should be visible or not. + @short sets printing of the file extensions on or off. + */ + public native void setShowExtensions(boolean visible); + public native void setShowExtensions(); + public native void setOpenPixmap(QPixmap pix); + /** + allocates a KFileTreeViewItem for the branch + for new items. + @short allocates a KFileTreeViewItem for the branch for new items. + */ + protected native KFileTreeViewItem createTreeViewItem(KFileTreeViewItem parent, KFileItem fileItem); + /** Deletes the wrapped C++ instance */ + protected native void finalize() throws InternalError; + /** Delete the wrapped C++ instance ahead of finalize() */ + public native void dispose(); + /** Has the wrapped C++ instance been deleted? */ + public native boolean isDisposed(); +} |