#include <kfiletreeview.h>
Inheritance diagram for KFileTreeView:

Public Slots | |
| virtual void | setShowFolderOpenPixmap (bool showIt=true) |
Signals | |
| void | dropped (QDropEvent *, QListViewItem *) |
| void | dropped (QDropEvent *, QListViewItem *, QListViewItem *) |
Public Methods | |
| KFileTreeViewItem * | currentKFileTreeViewItem () const |
| KURL | currentURL () const |
| KFileTreeBranch * | addBranch (const KURL &path, const QString &name, bool showHidden=false) |
| virtual KFileTreeBranch * | addBranch (const KURL &path, const QString &name, const QPixmap &pix, bool showHidden=false) |
| virtual KFileTreeBranch * | addBranch (KFileTreeBranch *) |
| virtual bool | removeBranch (KFileTreeBranch *branch) |
| KFileTreeBranch * | branch (const QString &searchName) |
| KFileTreeBranchList & | branches () |
| virtual void | setDirOnlyMode (KFileTreeBranch *brnch, bool) |
| KFileTreeViewItem * | findItem (KFileTreeBranch *brnch, const QString &relUrl) |
| KFileTreeViewItem * | findItem (const QString &branchName, const QString &relUrl) |
| bool | showFolderOpenPixmap () const |
Protected Methods | |
| virtual bool | acceptDrag (QDropEvent *event) const |
| virtual QDragObject * | dragObject () |
| virtual void | contentsDragEnterEvent (QDragEnterEvent *e) |
| virtual void | contentsDragMoveEvent (QDragMoveEvent *e) |
| virtual void | contentsDragLeaveEvent (QDragLeaveEvent *e) |
| virtual void | contentsDropEvent (QDropEvent *ev) |
| virtual void | virtual_hook (int id, void *data) |
KFileTreeView is able to handle more than one URL, represented by KFileTreeBranch.
Typical usage: 1. create a KFileTreeView fitting in your layout and add columns to it 2. call addBranch to create one or more branches 3. retrieve the root item with KFileTreeBranch::root() and set it open if desired. That starts the listing.
Definition at line 66 of file kfiletreeview.h.
|
|
Reimplemented from KListView. |
|
|
same as the function above but letting the user create the branch. |
|
||||||||||||||||||||
|
same as the function above but with a pixmap to set for the branch. |
|
||||||||||||||||
|
Adds a branch to the treeview item. This high-level function creates the branch, adds it to the treeview and connects some signals. Note that directory listing does not start until a branch is expanded either by opening the root item by user or by setOpen on the root item.
|
|
|
|
|
|
|
|
|
Reimplemented for internal reasons. Further reimplementations should call this function or else some features may not work correctly. The API is unaffected. Reimplemented from KListView. |
|
|
Reimplemented for internal reasons. Further reimplementations should call this function or else some features may not work correctly. The API is unaffected. Reimplemented from KListView. |
|
|
Reimplemented for internal reasons. Further reimplementations should call this function or else some features may not work correctly. The API is unaffected. Reimplemented from KListView. |
|
|
Reimplemented for internal reasons. Further reimplementations should call this function or else some features may not work correctly. The API is unaffected. Reimplemented from KListView. |
|
|
|
|
|
|
|
|
Reimplemented from KListView. |
|
||||||||||||||||
|
This signal gets emitted whenever something acceptable is dropped onto the listview. This function also provides a parent, in the event that your listview is a tree
Reimplemented from KListView. |
|
||||||||||||
|
This signal gets emitted whenever something acceptable is dropped onto the listview.
Reimplemented from KListView. |
|
||||||||||||
|
see method above, differs only in the first parameter. Finds the branch by its name. |
|
||||||||||||
|
searches a branch for a KFileTreeViewItem identified by the relative url given as second parameter. The method adds the branches base url to the relative path and finds the item.
|
|
|
removes the branch from the treeview.
|
|
||||||||||||
|
set the directory mode for branches. If true is passed, only directories will be loaded.
|
|
|
set the flag to show 'extended' folder icons on or off. If switched on, folders will have an open folder pixmap displayed if their children are visible, and the standard closed folder pixmap (from mimetype folder) if they are closed. If switched off, the plain mime pixmap is displayed.
Definition at line 163 of file kfiletreeview.h. |
|
|
Definition at line 152 of file kfiletreeview.h. |
1.2.18