summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KFileTreeBranch.java
blob: 75dedfa30e65b549165f32619d33a1bee4d6817d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;

import org.kde.qt.Qt;
import org.kde.qt.TQMetaObject;
import org.kde.qt.QtSupport;
import org.kde.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();
}