//Auto-generated by kalyptus. DO NOT EDIT.
package org.trinitydesktop.koala;

import org.trinitydesktop.qt.Qt;
import org.trinitydesktop.qt.TQMetaObject;
import org.trinitydesktop.qt.QtSupport;
import org.trinitydesktop.qt.TQPixmap;

/**

 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 TQMetaObject 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, TQPixmap 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, TQPixmap pix, boolean showHidden, KFileTreeViewItem branchRoot);
	public KFileTreeBranch(KFileTreeView arg1, KURL url, String name, TQPixmap pix, boolean showHidden) {
		super((Class) null);
		newKFileTreeBranch(arg1,url,name,pix,showHidden);
	}
	private native void newKFileTreeBranch(KFileTreeView arg1, KURL url, String name, TQPixmap pix, boolean showHidden);
	public KFileTreeBranch(KFileTreeView arg1, KURL url, String name, TQPixmap pix) {
		super((Class) null);
		newKFileTreeBranch(arg1,url,name,pix);
	}
	private native void newKFileTreeBranch(KFileTreeView arg1, KURL url, String name, TQPixmap 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 TQPixmap pixmap();
	public native TQPixmap 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(TQPixmap 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();
}
