.TH "KDirOperator" kde3 "11 Jun 2005" "Version Version 3.4.1" "kio Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KDirOperator \- This widget works as a network transparent filebrowser. A widget for displaying files and browsing directories.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kdiroperator.h>\fP
.PP
Inherits \fBQWidget\fP.
.PP
.SS "Public Types"

.in +1c
.ti -1c
.RI "enum \fBActionTypes\fP { \fBSortActions\fP =  1, \fBViewActions\fP =  2, \fBNavActions\fP =  4, \fBFileActions\fP =  8, \fBAllActions\fP =  15 }"
.br
.in -1c
.SS "Public Slots"

.in +1c
.ti -1c
.RI "void \fBback\fP ()"
.br
.ti -1c
.RI "void \fBforward\fP ()"
.br
.ti -1c
.RI "void \fBhome\fP ()"
.br
.ti -1c
.RI "void \fBcdUp\fP ()"
.br
.ti -1c
.RI "void \fBupdateDir\fP ()"
.br
.ti -1c
.RI "void \fBrereadDir\fP ()"
.br
.ti -1c
.RI "void \fBmkdir\fP ()"
.br
.ti -1c
.RI "void \fBdeleteSelected\fP ()"
.br
.ti -1c
.RI "void \fBupdateSelectionDependentActions\fP ()"
.br
.ti -1c
.RI "\fBQString\fP \fBmakeCompletion\fP (const \fBQString\fP &)"
.br
.ti -1c
.RI "\fBQString\fP \fBmakeDirCompletion\fP (const \fBQString\fP &)"
.br
.ti -1c
.RI "void \fBtrashSelected\fP (\fBKAction::ActivationReason\fP, Qt::ButtonState)"
.br
.in -1c
.SS "Signals"

.in +1c
.ti -1c
.RI "void \fBurlEntered\fP (const \fBKURL\fP &)"
.br
.ti -1c
.RI "void \fBupdateInformation\fP (int files, int dirs)"
.br
.ti -1c
.RI "void \fBcompletion\fP (const \fBQString\fP &)"
.br
.ti -1c
.RI "void \fBfinishedLoading\fP ()"
.br
.ti -1c
.RI "void \fBviewChanged\fP (\fBKFileView\fP *newView)"
.br
.ti -1c
.RI "void \fBfileHighlighted\fP (const \fBKFileItem\fP *item)"
.br
.ti -1c
.RI "void \fBdirActivated\fP (const \fBKFileItem\fP *item)"
.br
.ti -1c
.RI "void \fBfileSelected\fP (const \fBKFileItem\fP *item)"
.br
.ti -1c
.RI "void \fBdropped\fP (const \fBKFileItem\fP *item, \fBQDropEvent\fP *\fBevent\fP, const \fBKURL::List\fP &urls)"
.br
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKDirOperator\fP (const \fBKURL\fP &urlName=\fBKURL\fP(), \fBQWidget\fP *parent=0, const char *name=0)"
.br
.ti -1c
.RI "virtual \fB~KDirOperator\fP ()"
.br
.ti -1c
.RI "void \fBsetShowHiddenFiles\fP (bool s)"
.br
.ti -1c
.RI "bool \fBshowHiddenFiles\fP () const "
.br
.ti -1c
.RI "void \fBclose\fP ()"
.br
.ti -1c
.RI "virtual bool \fBclose\fP (bool alsoDelete)"
.br
.ti -1c
.RI "void \fBsetNameFilter\fP (const \fBQString\fP &filter)"
.br
.ti -1c
.RI "const \fBQString\fP & \fBnameFilter\fP () const "
.br
.ti -1c
.RI "void \fBsetMimeFilter\fP (const \fBQStringList\fP &mimetypes)"
.br
.ti -1c
.RI "\fBQStringList\fP \fBmimeFilter\fP () const "
.br
.ti -1c
.RI "void \fBclearFilter\fP ()"
.br
.ti -1c
.RI "\fBKURL\fP \fBurl\fP () const "
.br
.ti -1c
.RI "void \fBsetURL\fP (const \fBKURL\fP &url, bool clearforward)"
.br
.ti -1c
.RI "void \fBsetCurrentItem\fP (const \fBQString\fP &filename)"
.br
.ti -1c
.RI "void \fBsetView\fP (\fBKFileView\fP *view)"
.br
.ti -1c
.RI "\fBKFileView\fP * \fBview\fP () const "
.br
.ti -1c
.RI "\fBQWidget\fP * \fBviewWidget\fP () const "
.br
.ti -1c
.RI "void \fBsetView\fP (KFile::FileView view)"
.br
.ti -1c
.RI "void \fBsetSorting\fP (QDir::SortSpec)"
.br
.ti -1c
.RI "QDir::SortSpec \fBsorting\fP () const "
.br
.ti -1c
.RI "bool \fBisRoot\fP () const "
.br
.ti -1c
.RI "\fBKDirLister\fP * \fBdirLister\fP () const "
.br
.ti -1c
.RI "\fBKProgress\fP * \fBprogressBar\fP () const "
.br
.ti -1c
.RI "void \fBsetMode\fP (\fBKFile::Mode\fP m)"
.br
.ti -1c
.RI "\fBKFile::Mode\fP \fBmode\fP () const "
.br
.ti -1c
.RI "void \fBsetPreviewWidget\fP (const \fBQWidget\fP *w)"
.br
.ti -1c
.RI "const \fBKFileItemList\fP * \fBselectedItems\fP () const "
.br
.ti -1c
.RI "bool \fBisSelected\fP (const \fBKFileItem\fP *item) const "
.br
.ti -1c
.RI "int \fBnumDirs\fP () const "
.br
.ti -1c
.RI "int \fBnumFiles\fP () const "
.br
.ti -1c
.RI "\fBKCompletion\fP * \fBcompletionObject\fP () const "
.br
.ti -1c
.RI "\fBKCompletion\fP * \fBdirCompletionObject\fP () const "
.br
.ti -1c
.RI "\fBKActionCollection\fP * \fBactionCollection\fP () const "
.br
.ti -1c
.RI "void \fBsetViewConfig\fP (\fBKConfig\fP *config, const \fBQString\fP &group)"
.br
.ti -1c
.RI "\fBKConfig\fP * \fBviewConfig\fP ()"
.br
.ti -1c
.RI "\fBQString\fP \fBviewConfigGroup\fP () const "
.br
.ti -1c
.RI "virtual void \fBreadConfig\fP (\fBKConfig\fP *, const \fBQString\fP &group=QString::null)"
.br
.ti -1c
.RI "virtual void \fBwriteConfig\fP (\fBKConfig\fP *, const \fBQString\fP &group=QString::null)"
.br
.ti -1c
.RI "void \fBsetOnlyDoubleClickSelectsFiles\fP (bool enable)"
.br
.ti -1c
.RI "bool \fBonlyDoubleClickSelectsFiles\fP () const "
.br
.ti -1c
.RI "bool \fBmkdir\fP (const \fBQString\fP &directory, bool enterDirectory=true)"
.br
.ti -1c
.RI "\fBKIO::DeleteJob\fP * \fBdel\fP (const \fBKFileItemList\fP &items, bool ask=true, bool showProgress=true)"
.br
.ti -1c
.RI "\fBKIO::DeleteJob\fP * \fBdel\fP (const \fBKFileItemList\fP &items, \fBQWidget\fP *parent, bool ask=true, bool showProgress=true)"
.br
.ti -1c
.RI "void \fBclearHistory\fP ()"
.br
.ti -1c
.RI "void \fBsetEnableDirHighlighting\fP (bool enable)"
.br
.ti -1c
.RI "bool \fBdirHighlighting\fP () const "
.br
.ti -1c
.RI "bool \fBdirOnlyMode\fP () const "
.br
.ti -1c
.RI "void \fBsetupMenu\fP (int whichActions)"
.br
.ti -1c
.RI "virtual void \fBsetAcceptDrops\fP (bool b)"
.br
.ti -1c
.RI "void \fBsetDropOptions\fP (int options)"
.br
.ti -1c
.RI "\fBKIO::CopyJob\fP * \fBtrash\fP (const \fBKFileItemList\fP &items, \fBQWidget\fP *parent, bool ask=true, bool showProgress=true)"
.br
.in -1c
.SS "Static Public Member Functions"

.in +1c
.ti -1c
.RI "static bool \fBdirOnlyMode\fP (uint mode)"
.br
.in -1c
.SS "Protected Slots"

.in +1c
.ti -1c
.RI "void \fBresetCursor\fP ()"
.br
.ti -1c
.RI "void \fBpathChanged\fP ()"
.br
.ti -1c
.RI "void \fBinsertNewFiles\fP (const \fBKFileItemList\fP &newone)"
.br
.ti -1c
.RI "void \fBitemDeleted\fP (\fBKFileItem\fP *)"
.br
.ti -1c
.RI "void \fBselectDir\fP (const \fBKFileItem\fP *item)"
.br
.ti -1c
.RI "void \fBselectFile\fP (const \fBKFileItem\fP *item)"
.br
.ti -1c
.RI "void \fBhighlightFile\fP (const \fBKFileItem\fP *i)"
.br
.ti -1c
.RI "virtual void \fBactivatedMenu\fP (const \fBKFileItem\fP *, const \fBQPoint\fP &\fBpos\fP)"
.br
.ti -1c
.RI "void \fBsortByName\fP ()"
.br
.ti -1c
.RI "void \fBsortBySize\fP ()"
.br
.ti -1c
.RI "void \fBsortByDate\fP ()"
.br
.ti -1c
.RI "void \fBsortReversed\fP ()"
.br
.ti -1c
.RI "void \fBtoggleDirsFirst\fP ()"
.br
.ti -1c
.RI "void \fBtoggleIgnoreCase\fP ()"
.br
.ti -1c
.RI "void \fBslotCompletionMatch\fP (const \fBQString\fP &match)"
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "virtual \fBKFileView\fP * \fBcreateView\fP (\fBQWidget\fP *parent, KFile::FileView view)"
.br
.ti -1c
.RI "void \fBsetDirLister\fP (\fBKDirLister\fP *lister)"
.br
.ti -1c
.RI "virtual void \fBresizeEvent\fP (\fBQResizeEvent\fP *)"
.br
.ti -1c
.RI "void \fBsetupActions\fP ()"
.br
.ti -1c
.RI "void \fBupdateSortActions\fP ()"
.br
.ti -1c
.RI "void \fBupdateViewActions\fP ()"
.br
.ti -1c
.RI "void \fBsetupMenu\fP ()"
.br
.ti -1c
.RI "void \fBprepareCompletionObjects\fP ()"
.br
.ti -1c
.RI "bool \fBcheckPreviewSupport\fP ()"
.br
.ti -1c
.RI "virtual void \fBvirtual_hook\fP (int id, void *data)"
.br
.in -1c
.SH "Detailed Description"
.PP 
This widget works as a network transparent filebrowser. A widget for displaying files and browsing directories. 

You specify a URL to display and this url will be loaded via \fBKDirLister\fP. The user can browse through directories, highlight and select files, delete or rename files.
.PP
It supports different views, e.g. a detailed view (see \fBKFileDetailView\fP), a simple icon view (see \fBKFileIconView\fP), a combination of two views, separating directories and files ( \fBKCombiView\fP).
.PP
Additionally, a preview view is available (see \fBKFilePreview\fP), which can show either a simple or detailed view and additionally a preview widget (see \fBsetPreviewWidget()\fP). \fBKImageFilePreview\fP is one implementation of a preview widget, that displays previews for all supported filetypes utilizing \fBKIO::PreviewJob\fP.
.PP
Currently, those classes don't support Drag&Drop out of the box -- there you have to use your own view-classes. You can use some DnD-aware views from Bj�n Sahlstr� <bjorn@kbear.org> until they will be integrated into this library. See http://devel-home.kde.org/~pfeiffer/DnD-classes.tar.gz
.PP
This widget is the one used in the \fBKFileDialog\fP.
.PP
Basic usage is like this: 
.PP
.nf
   KDirOperator *op = new KDirOperator( KURL( 'file:/home/gis' ), this );
   // some signals you might be interested in
   connect(op, SIGNAL(urlEntered(const KURL&)),
           SLOT(urlEntered(const KURL&)));
   connect(op, SIGNAL(fileHighlighted(const KFileItem *)),
           SLOT(fileHighlighted(const KFileItem *)));
   connect(op, SIGNAL(fileSelected(const KFileItem *)),
           SLOT(fileSelected(const KFileItem *)));
   connect(op, SIGNAL(finishedLoading()),
           SLOT(slotLoadingFinished()));

   op->readConfig( KGlobal::config(), 'Your KDiroperator ConfigGroup' );
   op->setView(KFile::Default);

.fi
.PP
.PP
This will create a childwidget of 'this' showing the directory contents of /home/gis in the default-view. The view is determined by the \fBreadConfig()\fP call, which will read the KDirOperator settings, the user left your program with (and which you saved with op->\fBwriteConfig()\fP).
.PP
\fBAuthor:\fP
.RS 4
Stephan Kulow <coolo@kde.org>, Carsten Pfeiffer <pfeiffer@kde.org> 
.RE
.PP

.PP
Definition at line 97 of file kdiroperator.h.
.SH "Member Enumeration Documentation"
.PP 
.SS "\fBenum\fP \fBKDirOperator::ActionTypes\fP"
.PP
The various action types. 
.PP
These values can be or'd together 
.PP
\fBSince:\fP
.RS 4
3.1 
.RE
.PP

.PP
Definition at line 106 of file kdiroperator.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KDirOperator::KDirOperator (const \fBKURL\fP & urlName = \fC\fBKURL\fP()\fP, \fBQWidget\fP * parent = \fC0\fP, const char * name = \fC0\fP)"
.PP
Constructs the KDirOperator with no initial view. 
.PP
As the views are configurable, call \fBreadConfig()\fP to load the user's configuration and then setView to explicitly set a view.
.PP
This constructor doesn't start loading the url, setView will do it. 
.PP
Definition at line 97 of file kdiroperator.cpp.
.PP
References KURL::addPath(), QString::append(), QDir::currentDirPath(), QWidget::height(), QString::isEmpty(), KURL::protocol(), QPtrStack::setAutoDelete(), setDirLister(), QWidget::setFocusPolicy(), KURL::setPath(), KURL::setProtocol(), setupActions(), setupMenu(), and slotCompletionMatch().
.SS "KDirOperator::~\fBKDirOperator\fP ()\fC [virtual]\fP"
.PP
Destroys the KDirOperator. 
.PP
Definition at line 150 of file kdiroperator.cpp.
.PP
References resetCursor(), and KFileView::writeConfig().
.SH "Member Function Documentation"
.PP 
.SS "void KDirOperator::setShowHiddenFiles (bool s)\fC [inline]\fP"
.PP
Enables/disables showing hidden files. 
.PP
Definition at line 129 of file kdiroperator.h.
.SS "bool KDirOperator::showHiddenFiles () const\fC [inline]\fP"
.PP
\fBReturns:\fP
.RS 4
true when hidden files are shown or false otherwise. 
.RE
.PP

.PP
Definition at line 134 of file kdiroperator.h.
.SS "void KDirOperator::close ()"
.PP
Stops loading immediately. 
.PP
You don't need to call this, usually. 
.PP
Reimplemented from \fBQWidget\fP.
.PP
Definition at line 573 of file kdiroperator.cpp.
.PP
References KCompletion::clear(), QPtrList::clear(), resetCursor(), and KDirLister::stop().
.SS "virtual bool KDirOperator::close (bool alsoDelete)\fC [inline, virtual]\fP"
.PP
Reimplemented to avoid 'hidden virtual' warnings. 
.PP
Reimplemented from \fBQWidget\fP.
.PP
Definition at line 141 of file kdiroperator.h.
.PP
References QWidget::close().
.SS "void KDirOperator::setNameFilter (const \fBQString\fP & filter)"
.PP
Sets a filter like '*.cpp *.h *.o'. 
.PP
Only files matching that filter will be shown. Call \fBupdateDir()\fP to apply it.
.PP
\fBSee also:\fP
.RS 4
\fBKDirLister::setNameFilter\fP 
.PP
\fBnameFilter\fP 
.RE
.PP

.PP
Definition at line 788 of file kdiroperator.cpp.
.PP
References checkPreviewSupport(), and KDirLister::setNameFilter().
.PP
Referenced by KFileDialog::setFilter().
.SS "const \fBQString\fP& KDirOperator::nameFilter () const\fC [inline]\fP"
.PP
\fBReturns:\fP
.RS 4
the current namefilter. 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBsetNameFilter\fP 
.RE
.PP

.PP
Definition at line 156 of file kdiroperator.h.
.SS "void KDirOperator::setMimeFilter (const \fBQStringList\fP & mimetypes)"
.PP
Sets a list of mimetypes as filter. 
.PP
Only files of those mimetypes will be shown.
.PP
Example: 
.PP
.nf
 QStringList filter;
 filter << 'text/html' << 'image/png' << 'inode/directory';
 dirOperator->setMimefilter( filter );

.fi
.PP
.PP
Node: Without the mimetype inode/directory, only files would be shown. Call \fBupdateDir()\fP to apply it.
.PP
\fBSee also:\fP
.RS 4
\fBKDirLister::setMimeFilter\fP 
.PP
\fBmimeFilter\fP 
.RE
.PP

.PP
Definition at line 794 of file kdiroperator.cpp.
.PP
References checkPreviewSupport(), and KDirLister::setMimeFilter().
.PP
Referenced by KFileDialog::setMimeFilter().
.SS "\fBQStringList\fP KDirOperator::mimeFilter () const\fC [inline]\fP"
.PP
\fBReturns:\fP
.RS 4
the current mime filter. 
.RE
.PP

.PP
Definition at line 180 of file kdiroperator.h.
.SS "void KDirOperator::clearFilter ()"
.PP
Clears both the namefilter and mimetype filter, so that all files and directories will be shown. 
.PP
Call \fBupdateDir()\fP to apply it.
.PP
\fBSee also:\fP
.RS 4
\fBsetMimeFilter\fP 
.PP
\fBsetNameFilter\fP 
.RE
.PP

.PP
Definition at line 781 of file kdiroperator.cpp.
.PP
References checkPreviewSupport(), KDirLister::clearMimeFilter(), and KDirLister::setNameFilter().
.PP
Referenced by KFileDialog::clearFilter(), KFileDialog::setFilter(), and KFileDialog::setMimeFilter().
.SS "\fBKURL\fP KDirOperator::url () const"
.PP
\fBReturns:\fP
.RS 4
the current url 
.RE
.PP

.PP
Definition at line 762 of file kdiroperator.cpp.
.PP
Referenced by KFileDialog::baseURL(), del(), KFileDialog::getCompleteURL(), mkdir(), KFileDialog::readConfig(), KFileDialog::setSelection(), setView(), KFileDialog::tokenize(), and trash().
.SS "void KDirOperator::setURL (const \fBKURL\fP & url, bool clearforward)"
.PP
Sets a new url to list. 
.PP
\fBParameters:\fP
.RS 4
\fIclearforward\fP specifies whether the 'forward' history should be cleared. 
.br
\fIurl\fP the URL to set 
.RE
.PP

.PP
Definition at line 636 of file kdiroperator.cpp.
.PP
References KURL::cd(), QPtrStack::clear(), KURL::equals(), KMessageBox::error(), QPtrStack::isEmpty(), isRoot(), KDirLister::openURL(), KURL::path(), pathChanged(), QPtrStack::push(), resetCursor(), KAction::setEnabled(), KURL::setPath(), KURL::url(), and viewWidget().
.PP
Referenced by back(), cdUp(), forward(), home(), mkdir(), selectDir(), and KFileDialog::setURL().
.SS "void KDirOperator::setCurrentItem (const \fBQString\fP & filename)"
.PP
Clears the current selection and attempts to set \fCfilename\fP the current file. 
.PP
filename is just the name, no path or url. 
.PP
Definition at line 1181 of file kdiroperator.cpp.
.PP
References KFileView::clearSelection(), KFileView::ensureItemVisible(), KDirLister::findByName(), QString::isNull(), KFileView::setCurrentItem(), and KFileView::setSelected().
.PP
Referenced by slotCompletionMatch().
.SS "void KDirOperator::setView (\fBKFileView\fP * view)"
.PP
Sets a new \fBKFileView\fP to be used for showing and browsing files. 
.PP
Note: this will read the current \fBurl()\fP to fill the view.
.PP
\fBSee also:\fP
.RS 4
\fBKFileView\fP 
.PP
\fBKFileIconView\fP 
.PP
\fBKFileDetailView\fP 
.PP
KFileCombiView 
.PP
\fBview\fP 
.RE
.PP

.PP
Definition at line 1089 of file kdiroperator.cpp.
.PP
References QWidget::setFocusProxy(), KFileView::setOnlyDoubleClickSelectsFiles(), KFileView::setSorting(), view(), viewChanged(), and KFileView::widget().
.PP
Referenced by setMode(), setPreviewWidget(), and setView().
.SS "\fBKFileView\fP* KDirOperator::view () const\fC [inline]\fP"
.PP
\fBReturns:\fP
.RS 4
the currently used view. 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBsetView\fP 
.RE
.PP

.PP
Definition at line 227 of file kdiroperator.h.
.PP
Referenced by setView().
.SS "\fBQWidget\fP* KDirOperator::viewWidget () const\fC [inline]\fP"
.PP
Returns the widget of the current view. 
.PP
0L if there is no view/widget. (\fBKFileView\fP itself is not a widget.) 
.PP
Definition at line 233 of file kdiroperator.h.
.PP
Referenced by mkdir(), pathChanged(), and setURL().
.SS "void KDirOperator::setView (KFile::FileView view)"
.PP
Sets one of the predefined fileviews. 
.PP
\fBSee also:\fP
.RS 4
KFile::FileView 
.RE
.PP

.PP
Definition at line 936 of file kdiroperator.cpp.
.PP
References KActionCollection::action(), createView(), KAction::isEnabled(), KFile::isPreviewInfo(), mode(), KToggleAction::setChecked(), KAction::setEnabled(), setView(), and url().
.SS "void KDirOperator::setSorting (QDir::SortSpec)"
.PP
Sets the way to sort files and directories. 
.PP
Definition at line 168 of file kdiroperator.cpp.
.PP
References KFileView::setSorting(), and updateSortActions().
.PP
Referenced by readConfig().
.SS "QDir::SortSpec KDirOperator::sorting () const\fC [inline]\fP"
.PP
\fBReturns:\fP
.RS 4
the current way of sorting files and directories 
.RE
.PP

.PP
Definition at line 250 of file kdiroperator.h.
.SS "bool KDirOperator::isRoot () const\fC [inline]\fP"
.PP
\fBReturns:\fP
.RS 4
true if we are displaying the root directory of the current url 
.RE
.PP

.PP
Definition at line 255 of file kdiroperator.h.
.PP
Referenced by setURL().
.SS "\fBKDirLister\fP* KDirOperator::dirLister () const\fC [inline]\fP"
.PP
\fBReturns:\fP
.RS 4
the object listing the directory 
.RE
.PP

.PP
Definition at line 260 of file kdiroperator.h.
.SS "\fBKProgress\fP * KDirOperator::progressBar () const"
.PP
\fBReturns:\fP
.RS 4
the progress widget, that is shown during directory listing. You can for example \fBreparent()\fP it to put it into a statusbar. 
.RE
.PP

.PP
Definition at line 1612 of file kdiroperator.cpp.
.SS "void KDirOperator::setMode (\fBKFile::Mode\fP m)"
.PP
Sets the listing/selection mode for the views, an OR'ed combination of 
.PD 0

.IP "\(bu" 2
File 
.IP "\(bu" 2
Directory 
.IP "\(bu" 2
Files 
.IP "\(bu" 2
ExistingOnly 
.IP "\(bu" 2
LocalOnly. 
.PP

.PP
You cannot mix File and Files of course, as the former means single-selection mode, the latter multi-selection. 
.PP
Definition at line 1076 of file kdiroperator.cpp.
.PP
References dirOnlyMode(), KDirLister::setDirOnlyMode(), and setView().
.PP
Referenced by KFileDialog::setMode().
.SS "\fBKFile::Mode\fP KDirOperator::mode () const"
.PP
\fBReturns:\fP
.RS 4
the listing/selection mode. 
.RE
.PP

.PP
Definition at line 1071 of file kdiroperator.cpp.
.PP
Referenced by KFileDialog::mode(), KFileDialog::selectedFiles(), KFileDialog::selectedURLs(), and setView().
.SS "void KDirOperator::setPreviewWidget (const \fBQWidget\fP * w)"
.PP
Sets a preview-widget to be shown next to the file-view. 
.PP
The ownership of \fCw\fP is transferred to KDirOperator, so don't delete it yourself! 
.PP
Definition at line 264 of file kdiroperator.cpp.
.PP
References KActionCollection::action(), KToggleAction::setChecked(), KAction::setEnabled(), and setView().
.PP
Referenced by KFileDialog::setPreviewWidget().
.SS "const \fBKFileItemList\fP* KDirOperator::selectedItems () const\fC [inline]\fP"
.PP
\fBReturns:\fP
.RS 4
a list of all currently selected items. If there is no view, then 0L is returned. 
.RE
.PP

.PP
Definition at line 298 of file kdiroperator.h.
.PP
Referenced by KFileDialog::multiSelectionChanged().
.SS "bool KDirOperator::isSelected (const \fBKFileItem\fP * item) const\fC [inline]\fP"
.PP
\fBReturns:\fP
.RS 4
true if \fCitem\fP is currently selected, or false otherwise. 
.RE
.PP

.PP
Definition at line 305 of file kdiroperator.h.
.SS "int KDirOperator::numDirs () const"
.PP
\fBReturns:\fP
.RS 4
the number of directories in the currently listed url. Returns 0 if there is no view. 
.RE
.PP

.PP
Definition at line 280 of file kdiroperator.cpp.
.PP
References KFileView::numDirs().
.SS "int KDirOperator::numFiles () const"
.PP
\fBReturns:\fP
.RS 4
the number of files in the currently listed url. Returns 0 if there is no view. 
.RE
.PP

.PP
Definition at line 285 of file kdiroperator.cpp.
.PP
References KFileView::numFiles().
.SS "\fBKCompletion\fP* KDirOperator::completionObject () const\fC [inline]\fP"
.PP
\fBReturns:\fP
.RS 4
a \fBKCompletion\fP object, containing all filenames and directories of the current directory/URL. You can use it to insert it into a \fBKLineEdit\fP or \fBKComboBox\fP Note: it will only contain files, after \fBprepareCompletionObjects()\fP has been called. It will be implicitly called from \fBmakeCompletion()\fP or \fBmakeDirCompletion()\fP 
.RE
.PP

.PP
Definition at line 329 of file kdiroperator.h.
.SS "\fBKCompletion\fP* KDirOperator::dirCompletionObject () const\fC [inline]\fP"
.PP
\fBReturns:\fP
.RS 4
a \fBKCompletion\fP object, containing only all directories of the current directory/URL. You can use it to insert it into a \fBKLineEdit\fP or \fBKComboBox\fP Note: it will only contain directories, after \fBprepareCompletionObjects()\fP has been called. It will be implicitly called from \fBmakeCompletion()\fP or \fBmakeDirCompletion()\fP 
.RE
.PP

.PP
Definition at line 341 of file kdiroperator.h.
.SS "\fBKActionCollection\fP* KDirOperator::actionCollection () const\fC [inline]\fP"
.PP
an accessor to a collection of all available Actions. 
.PP
The actions are static, they will be there all the time (no need to connect to the signals \fBKActionCollection::inserted()\fP or removed().
.PP
There are the following actions:
.PP
.PD 0
.IP "\(bu" 2
popupMenu : an ActionMenu presenting a popupmenu with all actions 
.IP "\(bu" 2
up : changes to the parent directory 
.IP "\(bu" 2
back : goes back to the previous directory 
.IP "\(bu" 2
forward : goes forward in the history 
.IP "\(bu" 2
home : changes to the user's home directory 
.IP "\(bu" 2
reload : reloads the current directory 
.IP "\(bu" 2
separator : a separator 
.IP "\(bu" 2
mkdir : opens a dialog box to create a directory 
.IP "\(bu" 2
delete : deletes the selected files/directories 
.IP "\(bu" 2
sorting menu : an ActionMenu containing all sort-options 
.IP "\(bu" 2
by name : sorts by name 
.IP "\(bu" 2
by date : sorts by date 
.IP "\(bu" 2
by size : sorts by size 
.IP "\(bu" 2
reversed : reverses the sort order 
.IP "\(bu" 2
dirs first : sorts directories before files 
.IP "\(bu" 2
case insensitive : sorts case insensitively 
.IP "\(bu" 2
view menu : an ActionMenu containing all actions concerning the view 
.IP "\(bu" 2
short view : shows a simple fileview 
.IP "\(bu" 2
detailed view : shows a detailed fileview (dates, permissions ,...) 
.IP "\(bu" 2
show hidden : shows hidden files 
.IP "\(bu" 2
separate dirs : shows directories in a separate pane 
.IP "\(bu" 2
preview : shows a preview next to the fileview 
.IP "\(bu" 2
single : hides the separate view for directories or the preview 
.IP "\(bu" 2
properties : shows a \fBKPropertiesDialog\fP for the selected files
.PP
The short and detailed view are in an exclusive group. The sort-by actions are in an exclusive group as well. Also the 'separate dirs', 'preview' and 'single' actions are in an exclusive group.
.PP
You can e.g. use 
.PP
.nf
 actionCollection()->action( 'up' )->plug( someToolBar );

.fi
.PP
 to add a button into a toolbar, which makes the dirOperator change to its parent directory.
.PP
\fBReturns:\fP
.RS 4
all available Actions 
.RE
.PP

.PP
Definition at line 390 of file kdiroperator.h.
.PP
Referenced by KFileDialog::actionCollection(), KFileDialog::init(), and KFileDialog::toggleSpeedbar().
.SS "void KDirOperator::setViewConfig (\fBKConfig\fP * config, const \fBQString\fP & group)"
.PP
Sets the config object and the to be used group in KDirOperator. 
.PP
This will be used to store the view's configuration via KFileView::writeConfig() (and for KFileView::readConfig()). If you don't set this, the views cannot save and restore their configuration.
.PP
Usually you call this right after KDirOperator creation so that the view instantiation can make use of it already.
.PP
Note that KDirOperator does NOT take ownership of that object (typically it's \fBKGlobal::config()\fP anyway.
.PP
\fBSee also:\fP
.RS 4
\fBviewConfig\fP 
.PP
\fBviewConfigGroup\fP 
.RE
.PP
\fBSince:\fP
.RS 4
3.1 
.RE
.PP

.PP
Definition at line 1710 of file kdiroperator.cpp.
.PP
Referenced by KFileDialog::init().
.SS "\fBKConfig\fP * KDirOperator::viewConfig ()"
.PP
Returns the \fBKConfig\fP object used for saving and restoring view's configuration. 
.PP
\fBReturns:\fP
.RS 4
the \fBKConfig\fP object used for saving and restoring view's configuration. 
.RE
.PP
\fBSince:\fP
.RS 4
3.1 
.RE
.PP

.PP
Definition at line 1716 of file kdiroperator.cpp.
.SS "\fBQString\fP KDirOperator::viewConfigGroup () const"
.PP
Returns the group name used for saving and restoring view's configuration. 
.PP
\fBReturns:\fP
.RS 4
the group name used for saving and restoring view's configuration. 
.RE
.PP
\fBSince:\fP
.RS 4
3.1 
.RE
.PP

.PP
Definition at line 1721 of file kdiroperator.cpp.
.SS "void KDirOperator::readConfig (\fBKConfig\fP *, const \fBQString\fP & group = \fCQString::null\fP)\fC [virtual]\fP"
.PP
Reads the default settings for a view, i.e. 
.PP
the default KFile::FileView. Also reads the sorting and whether hidden files should be shown. Note: the default view will not be set - you have to call 
.PP
.nf
 setView( KFile::Default )

.fi
.PP
 to apply it.
.PP
\fBSee also:\fP
.RS 4
\fBsetView\fP 
.PP
\fBsetViewConfig\fP 
.PP
\fBwriteConfig\fP 
.RE
.PP

.PP
Definition at line 1431 of file kdiroperator.cpp.
.PP
References QString::fromLatin1(), KAction::group, KToggleAction::setChecked(), KAction::setGroup(), KDirLister::setShowingDotFiles(), and setSorting().
.PP
Referenced by KFileDialog::readConfig().
.SS "void KDirOperator::writeConfig (\fBKConfig\fP *, const \fBQString\fP & group = \fCQString::null\fP)\fC [virtual]\fP"
.PP
Saves the current settings like sorting, simple or detailed view. 
.PP
\fBSee also:\fP
.RS 4
\fBreadConfig\fP 
.PP
\fBsetViewConfig\fP 
.RE
.PP

.PP
Definition at line 1487 of file kdiroperator.cpp.
.PP
References KActionCollection::action(), QString::fromLatin1(), KAction::group, KToggleAction::isChecked(), and KAction::isEnabled().
.PP
Referenced by KFileDialog::writeConfig().
.SS "void KDirOperator::setOnlyDoubleClickSelectsFiles (bool enable)"
.PP
This is a \fBKFileDialog\fP specific hack: we want to select directories with single click, but not files. 
.PP
But as a generic class, we have to be able to select files on single click as well.
.PP
This gives us the opportunity to do both.
.PP
The default is false, set it to true if you don't want files selected with single click. 
.PP
Definition at line 1556 of file kdiroperator.cpp.
.PP
References KFileView::setOnlyDoubleClickSelectsFiles().
.PP
Referenced by KFileDialog::init().
.SS "bool KDirOperator::onlyDoubleClickSelectsFiles () const"
.PP
\fBReturns:\fP
.RS 4
whether files (not directories) should only be select()ed by double-clicks. 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBsetOnlyDoubleClickSelectsFiles\fP 
.RE
.PP

.PP
Definition at line 1563 of file kdiroperator.cpp.
.PP
References KFileView::onlyDoubleClickSelectsFiles().
.SS "bool KDirOperator::mkdir (const \fBQString\fP & directory, bool enterDirectory = \fCtrue\fP)"
.PP
Creates the given directory/url. 
.PP
If it is a relative path, it will be completed with the current directory. If enterDirectory is true, the directory will be entered after a successful operation. If unsuccessful, a messagebox will be presented to the user. 
.PP
\fBReturns:\fP
.RS 4
true if the directory could be created. 
.RE
.PP

.PP
Definition at line 400 of file kdiroperator.cpp.
.PP
References KURL::addPath(), KIO::NetAccess< T, K >::exists(), KIO::NetAccess< T, K >::mkdir(), KURL::pathOrURL(), setURL(), KMessageBox::sorry(), QStringList::split(), QWidget::topLevelWidget(), url(), and viewWidget().
.SS "\fBKIO::DeleteJob\fP * KDirOperator::del (const \fBKFileItemList\fP & items, bool ask = \fCtrue\fP, bool showProgress = \fCtrue\fP)"
.PP
Starts and returns a \fBKIO::DeleteJob\fP to delete the given \fCitems\fP. 
.PP
\fBParameters:\fP
.RS 4
\fIitems\fP the list of items to be deleted 
.br
\fIask\fP specifies whether a confirmation dialog should be shown 
.br
\fIshowProgress\fP passed to the DeleteJob to show a progress dialog 
.RE
.PP

.PP
Definition at line 436 of file kdiroperator.cpp.
.PP
Referenced by deleteSelected().
.SS "\fBKIO::DeleteJob\fP * KDirOperator::del (const \fBKFileItemList\fP & items, \fBQWidget\fP * parent, bool ask = \fCtrue\fP, bool showProgress = \fCtrue\fP)"
.PP
Starts and returns a \fBKIO::DeleteJob\fP to delete the given \fCitems\fP. 
.PP
\fBParameters:\fP
.RS 4
\fIitems\fP the list of items to be deleted 
.br
\fIparent\fP the parent widget used for the confirmation dialog 
.br
\fIask\fP specifies whether a confirmation dialog should be shown 
.br
\fIshowProgress\fP passed to the DeleteJob to show a progress dialog 
.RE
.PP
\fBSince:\fP
.RS 4
3.1 
.RE
.PP

.PP
Definition at line 442 of file kdiroperator.cpp.
.PP
References QValueList::append(), QPtrListIterator::current(), KIO::del(), KStdGuiItem::del(), KMessageBox::information(), KURL::isLocalFile(), KURL::path(), KURL::prettyURL(), KIO::Job::setAutoErrorHandlingEnabled(), KIO::Job::setWindow(), QWidget::topLevelWidget(), KURL::url(), url(), KMessageBox::warningContinueCancel(), and KMessageBox::warningContinueCancelList().
.SS "void KDirOperator::clearHistory ()"
.PP
Clears the forward and backward history. 
.PP
Definition at line 1617 of file kdiroperator.cpp.
.PP
References QPtrStack::clear(), and KAction::setEnabled().
.PP
Referenced by KFileDialog::getOpenFileName(), KFileDialog::getOpenFileNames(), KFileDialog::getOpenFileNameWId(), KFileDialog::getOpenURL(), KFileDialog::getOpenURLs(), and KFileDialog::setPreviewWidget().
.SS "void KDirOperator::setEnableDirHighlighting (bool enable)"
.PP
When going up in the directory hierarchy, KDirOperator can highlight the directory that was just left. 
.PP
I.e. when you go from /home/gis/src to /home/gis, the item 'src' will be made the current item.
.PP
Default is off. 
.PP
Definition at line 1647 of file kdiroperator.cpp.
.SS "bool KDirOperator::dirHighlighting () const"
.PP
\fBReturns:\fP
.RS 4
whether the last directory will be made the current item when going up in the directory hierarchy.
.RE
.PP
Default is false. 
.PP
Definition at line 1652 of file kdiroperator.cpp.
.SS "bool KDirOperator::dirOnlyMode () const\fC [inline]\fP"
.PP
\fBReturns:\fP
.RS 4
true if we are in directory-only mode, that is, no files are shown. 
.RE
.PP

.PP
Definition at line 537 of file kdiroperator.h.
.PP
Referenced by KFileDialog::setMode(), and setMode().
.SS "void KDirOperator::setupMenu (int whichActions)"
.PP
Sets up the action menu. 
.PP
\fBParameters:\fP
.RS 4
\fIwhichActions\fP is an value of OR'd ActionTypes that controls which actions to show in the action menu 
.RE
.PP

.PP
Definition at line 1349 of file kdiroperator.cpp.
.PP
References KActionCollection::action(), QPopupMenu::clear(), KGlobal::config(), KActionMenu::insert(), KURL::isLocalFile(), KApplication::keyboardMouseState(), KActionMenu::popupMenu(), and KConfigBase::readBoolEntry().
.PP
Referenced by KFileDialog::init().
.SS "void KDirOperator::setAcceptDrops (bool b)\fC [virtual]\fP"
.PP
Reimplemented - allow dropping of files if \fCb\fP is true. 
.PP
\fBParameters:\fP
.RS 4
\fIb\fP true if the widget should allow dropping of files 
.RE
.PP

.PP
Reimplemented from \fBQWidget\fP.
.PP
Definition at line 922 of file kdiroperator.cpp.
.PP
References QWidget::setAcceptDrops(), and KFileView::widget().
.SS "void KDirOperator::setDropOptions (int options)"
.PP
Sets the options for dropping files. 
.PP
\fBSee also:\fP
.RS 4
\fBKFileView::DropOptions\fP 
.RE
.PP
\fBSince:\fP
.RS 4
3.2 
.RE
.PP

.PP
Definition at line 929 of file kdiroperator.cpp.
.PP
References KFileView::setDropOptions().
.SS "\fBKIO::CopyJob\fP * KDirOperator::trash (const \fBKFileItemList\fP & items, \fBQWidget\fP * parent, bool ask = \fCtrue\fP, bool showProgress = \fCtrue\fP)"
.PP
Starts and returns a \fBKIO::CopyJob\fP to trash the given \fCitems\fP. 
.PP
\fBParameters:\fP
.RS 4
\fIitems\fP the list of items to be trashed 
.br
\fIparent\fP the parent widget used for the confirmation dialog 
.br
\fIask\fP specifies whether a confirmation dialog should be shown 
.br
\fIshowProgress\fP passed to the CopyJob to show a progress dialog 
.RE
.PP
\fBSince:\fP
.RS 4
3.4 
.RE
.PP

.PP
Definition at line 505 of file kdiroperator.cpp.
.PP
References QValueList::append(), QPtrListIterator::current(), KMessageBox::information(), KURL::isLocalFile(), KURL::path(), KURL::prettyURL(), KIO::Job::setAutoErrorHandlingEnabled(), KIO::Job::setWindow(), QWidget::topLevelWidget(), KIO::trash(), KURL::url(), url(), KMessageBox::warningContinueCancel(), and KMessageBox::warningContinueCancelList().
.PP
Referenced by setupActions(), and trashSelected().
.SS "\fBKFileView\fP * KDirOperator::createView (\fBQWidget\fP * parent, KFile::FileView view)\fC [protected, virtual]\fP"
.PP
A view factory for creating predefined fileviews. 
.PP
Called internally by setView , but you can also call it directly. Reimplement this if you depend on self defined fileviews. 
.PP
\fBParameters:\fP
.RS 4
\fIparent\fP is the \fBQWidget\fP to be set as parent 
.br
\fIview\fP is the predefined view to be set, note: this can be several ones OR:ed together. 
.RE
.PP
\fBReturns:\fP
.RS 4
the created \fBKFileView\fP 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBKFileView\fP 
.PP
\fBKCombiView\fP 
.PP
\fBKFileDetailView\fP 
.PP
\fBKFileIconView\fP 
.PP
\fBKFilePreview\fP 
.PP
KFile::FileView 
.PP
\fBsetView\fP 
.RE
.PP

.PP
Definition at line 874 of file kdiroperator.cpp.
.PP
References QWidget::acceptDrops(), KFile::isPreviewInfo(), QWidget::setAcceptDrops(), KFileView::setOnlyDoubleClickSelectsFiles(), KCombiView::setRight(), KFileView::setViewName(), and KFileView::widget().
.PP
Referenced by setView().
.SS "void KDirOperator::setDirLister (\fBKDirLister\fP * lister)\fC [protected]\fP"
.PP
Sets a custom \fBKDirLister\fP to list directories. 
.PP
Definition at line 1103 of file kdiroperator.cpp.
.PP
References endl(), insertNewFiles(), itemDeleted(), kdDebug(), KDirLister::setAutoUpdate(), KDirLister::setMainWindow(), and QWidget::topLevelWidget().
.PP
Referenced by KDirOperator().
.SS "void KDirOperator::setupActions ()\fC [protected]\fP"
.PP
Sets up all the actions. 
.PP
Called from the constructor, you usually better not call this. 
.PP
Definition at line 1244 of file kdiroperator.cpp.
.PP
References back(), KStdAction::back(), cdUp(), deleteSelected(), forward(), KStdAction::forward(), QString::fromLatin1(), home(), KStdAction::home(), mkdir(), KActionMenu::popupMenu(), KStdAction::redisplay(), rereadDir(), KToggleAction::setCheckedState(), KToggleAction::setExclusiveGroup(), KAction::setIcon(), KAction::setShortcut(), KAction::setText(), trash(), trashSelected(), and KStdAction::up().
.PP
Referenced by KDirOperator().
.SS "void KDirOperator::updateSortActions ()\fC [protected]\fP"
.PP
Updates the sorting-related actions to comply with the current sorting. 
.PP
\fBSee also:\fP
.RS 4
\fBsorting\fP 
.RE
.PP

.PP
Definition at line 1403 of file kdiroperator.cpp.
.PP
References KFileView::isReversed(), KToggleAction::setChecked(), and KAction::setEnabled().
.PP
Referenced by setSorting().
.SS "void KDirOperator::updateViewActions ()\fC [protected]\fP"
.PP
Updates the view-related actions to comply with the current KFile::FileView. 
.PP
Definition at line 1420 of file kdiroperator.cpp.
.PP
References KAction::isEnabled(), and KToggleAction::setChecked().
.SS "void KDirOperator::setupMenu ()\fC [protected]\fP"
.PP
Sets up the context-menu with all the necessary actions. 
.PP
Called from the constructor, you usually don't need to call this. 
.PP
\fBSince:\fP
.RS 4
3.1 
.RE
.PP

.PP
Definition at line 1344 of file kdiroperator.cpp.
.PP
Referenced by activatedMenu(), and KDirOperator().
.SS "void KDirOperator::prepareCompletionObjects ()\fC [protected]\fP"
.PP
Synchronizes the completion objects with the entries of the currently listed url. 
.PP
Automatically called from \fBmakeCompletion()\fP and \fBmakeDirCompletion()\fP 
.PP
Definition at line 1220 of file kdiroperator.cpp.
.PP
References KCompletion::addItem(), KFileItem::isDir(), KFileView::items(), and KFileItem::name().
.PP
Referenced by makeCompletion(), and makeDirCompletion().
.SS "bool KDirOperator::checkPreviewSupport ()\fC [protected]\fP"
.PP
Checks if there support from \fBKIO::PreviewJob\fP for the currently shown files, taking \fBmimeFilter()\fP and \fBnameFilter()\fP into account Enables/disables the preview-action accordingly. 
.PP
Definition at line 800 of file kdiroperator.cpp.
.PP
References KActionCollection::action(), KGlobal::config(), KConfigBase::readBoolEntry(), and KAction::setEnabled().
.PP
Referenced by clearFilter(), setMimeFilter(), and setNameFilter().
.SS "void KDirOperator::back ()\fC [slot]\fP"
.PP
Goes one step back in the history and opens that url. 
.PP
Definition at line 736 of file kdiroperator.cpp.
.PP
References QPtrStack::isEmpty(), QPtrStack::pop(), QPtrStack::push(), and setURL().
.PP
Referenced by pathChanged(), and setupActions().
.SS "void KDirOperator::forward ()\fC [slot]\fP"
.PP
Goes one step forward in the history and opens that url. 
.PP
Definition at line 750 of file kdiroperator.cpp.
.PP
References QPtrStack::isEmpty(), QPtrStack::pop(), QPtrStack::push(), and setURL().
.PP
Referenced by setupActions().
.SS "void KDirOperator::home ()\fC [slot]\fP"
.PP
Enters the home directory. 
.PP
Definition at line 774 of file kdiroperator.cpp.
.PP
References KURL::setPath(), and setURL().
.PP
Referenced by pathChanged(), and setupActions().
.SS "void KDirOperator::cdUp ()\fC [slot]\fP"
.PP
Goes one directory up from the current url. 
.PP
Definition at line 767 of file kdiroperator.cpp.
.PP
References KURL::cd(), and setURL().
.PP
Referenced by setupActions().
.SS "void KDirOperator::updateDir ()\fC [slot]\fP"
.PP
to update the view after changing the settings 
.PP
Definition at line 684 of file kdiroperator.cpp.
.PP
References KDirLister::emitChanges(), and KFileView::listingCompleted().
.SS "void KDirOperator::rereadDir ()\fC [slot]\fP"
.PP
Re-reads the current url. 
.PP
Definition at line 691 of file kdiroperator.cpp.
.PP
References KDirLister::openURL(), and pathChanged().
.PP
Referenced by setupActions().
.SS "void KDirOperator::mkdir ()\fC [slot]\fP"
.PP
Opens a dialog to create a new directory. 
.PP
Definition at line 385 of file kdiroperator.cpp.
.PP
References KInputDialog::getText(), KURL::pathOrURL(), KIO::RenameDlg::suggestName(), and url().
.PP
Referenced by setupActions().
.SS "void KDirOperator::deleteSelected ()\fC [slot]\fP"
.PP
Deletes the currently selected files/directories. 
.PP
Definition at line 495 of file kdiroperator.cpp.
.PP
References del(), and KFileView::selectedItems().
.PP
Referenced by setupActions(), and trashSelected().
.SS "void KDirOperator::updateSelectionDependentActions ()\fC [slot]\fP"
.PP
Enables/disables actions that are selection dependent. 
.PP
Call this e.g. when you are about to show a popup menu using some of KDirOperators actions. 
.PP
Definition at line 255 of file kdiroperator.cpp.
.PP
References KActionCollection::action(), QPtrList::isEmpty(), KFileView::selectedItems(), and KAction::setEnabled().
.PP
Referenced by activatedMenu().
.SS "\fBQString\fP KDirOperator::makeCompletion (const \fBQString\fP &)\fC [slot]\fP"
.PP
Tries to complete the given string (only completes files). 
.PP
Definition at line 1198 of file kdiroperator.cpp.
.PP
References KFileView::clearSelection(), KCompletion::makeCompletion(), and prepareCompletionObjects().
.SS "\fBQString\fP KDirOperator::makeDirCompletion (const \fBQString\fP &)\fC [slot]\fP"
.PP
Tries to complete the given string (only completes directores). 
.PP
Definition at line 1209 of file kdiroperator.cpp.
.PP
References KFileView::clearSelection(), KCompletion::makeCompletion(), and prepareCompletionObjects().
.SS "void KDirOperator::trashSelected (\fBKAction::ActivationReason\fP, Qt::ButtonState)\fC [slot]\fP"
.PP
Trashes the currently selected files/directories. 
.PP
\fBSince:\fP
.RS 4
3.4 
.RE
.PP

.PP
Definition at line 558 of file kdiroperator.cpp.
.PP
References deleteSelected(), KFileView::selectedItems(), and trash().
.PP
Referenced by setupActions().
.SS "void KDirOperator::resetCursor ()\fC [protected, slot]\fP"
.PP
Restores the normal cursor after showing the busy-cursor. 
.PP
Also hides the progressbar. 
.PP
Definition at line 176 of file kdiroperator.cpp.
.PP
References QApplication::restoreOverrideCursor().
.PP
Referenced by close(), insertNewFiles(), setURL(), and ~KDirOperator().
.SS "void KDirOperator::pathChanged ()\fC [protected, slot]\fP"
.PP
Called after \fBsetURL()\fP to load the directory, update the history, etc. 
.PP
Definition at line 698 of file kdiroperator.cpp.
.PP
References back(), KCompletion::clear(), KFileView::clear(), QPtrList::clear(), KMessageBox::error(), home(), QPtrStack::isEmpty(), QApplication::restoreOverrideCursor(), QApplication::setOverrideCursor(), and viewWidget().
.PP
Referenced by rereadDir(), and setURL().
.SS "void KDirOperator::insertNewFiles (const \fBKFileItemList\fP & newone)\fC [protected, slot]\fP"
.PP
Adds a new list of KFileItems to the view (coming from \fBKDirLister\fP). 
.PP
Definition at line 1133 of file kdiroperator.cpp.
.PP
References KFileView::addItemList(), QPtrListIterator::current(), KFileView::ensureItemVisible(), KFileItem::isDir(), KFileView::numDirs(), KFileView::numFiles(), resetCursor(), KFileView::setCurrentItem(), QTimer::singleShot(), KURL::url(), and KFileItem::url().
.PP
Referenced by setDirLister().
.SS "void KDirOperator::itemDeleted (\fBKFileItem\fP *)\fC [protected, slot]\fP"
.PP
Removes the given \fBKFileItem\fP item from the view (usually called from \fBKDirLister\fP). 
.PP
Definition at line 1164 of file kdiroperator.cpp.
.PP
References KFileView::numDirs(), KFileView::numFiles(), KFileView::removeItem(), and QPtrList::removeRef().
.PP
Referenced by setDirLister().
.SS "void KDirOperator::selectDir (const \fBKFileItem\fP * item)\fC [protected, slot]\fP"
.PP
Enters the directory specified by the given \fCitem\fP. 
.PP
Definition at line 1159 of file kdiroperator.cpp.
.PP
References setURL().
.SS "void KDirOperator::selectFile (const \fBKFileItem\fP * item)\fC [protected, slot]\fP"
.PP
Emits fileSelected( item ). 
.PP
Definition at line 1174 of file kdiroperator.cpp.
.PP
References QApplication::restoreOverrideCursor().
.SS "void KDirOperator::highlightFile (const \fBKFileItem\fP * i)\fC [inline, protected, slot]\fP"
.PP
Emits fileHighlighted( i ). 
.PP
Definition at line 753 of file kdiroperator.h.
.SS "void KDirOperator::activatedMenu (const \fBKFileItem\fP *, const \fBQPoint\fP & pos)\fC [protected, virtual, slot]\fP"
.PP
Called upon right-click to activate the popupmenu. 
.PP
Definition at line 247 of file kdiroperator.cpp.
.PP
References KActionMenu::popup(), setupMenu(), and updateSelectionDependentActions().
.SS "void KDirOperator::sortByName ()\fC [inline, protected, slot]\fP"
.PP
Changes sorting to sort by name. 
.PP
Definition at line 763 of file kdiroperator.h.
.SS "void KDirOperator::sortBySize ()\fC [inline, protected, slot]\fP"
.PP
Changes sorting to sort by size. 
.PP
Definition at line 768 of file kdiroperator.h.
.SS "void KDirOperator::sortByDate ()\fC [inline, protected, slot]\fP"
.PP
Changes sorting to sort by date. 
.PP
Definition at line 773 of file kdiroperator.h.
.SS "void KDirOperator::sortReversed ()\fC [inline, protected, slot]\fP"
.PP
Changes sorting to reverse sorting. 
.PP
Definition at line 778 of file kdiroperator.h.
.SS "void KDirOperator::toggleDirsFirst ()\fC [inline, protected, slot]\fP"
.PP
Toggles showing directories first / having them sorted like files. 
.PP
Definition at line 783 of file kdiroperator.h.
.SS "void KDirOperator::toggleIgnoreCase ()\fC [inline, protected, slot]\fP"
.PP
Toggles case sensitive / case insensitive sorting. 
.PP
Definition at line 788 of file kdiroperator.h.
.SS "void KDirOperator::slotCompletionMatch (const \fBQString\fP & match)\fC [protected, slot]\fP"
.PP
Tries to make the given \fCmatch\fP as current item in the view and emits completion( match ). 
.PP
Definition at line 1238 of file kdiroperator.cpp.
.PP
References setCurrentItem().
.PP
Referenced by KDirOperator().
.SS "void KDirOperator::viewChanged (\fBKFileView\fP * newView)\fC [signal]\fP"
.PP
Emitted whenever the current fileview is changed, either by an explicit call to \fBsetView()\fP or by the user selecting a different view thru the GUI. 
.PP
Referenced by setView().
.SS "void KDirOperator::fileHighlighted (const \fBKFileItem\fP * item)\fC [signal]\fP"
.PP
Emitted when a file is highlighted or generally the selection changes in multiselection mode. 
.PP
In the latter case, \fCitem\fP is 0L. You can access the selected items with \fBselectedItems()\fP. 
.SS "void KDirOperator::dropped (const \fBKFileItem\fP * item, \fBQDropEvent\fP * event, const \fBKURL::List\fP & urls)\fC [signal]\fP"
.PP
Emitted when files are dropped. 
.PP
Dropping files is disabled by default. You need to enable it with \fBsetAcceptDrops()\fP 
.PP
\fBParameters:\fP
.RS 4
\fIitem\fP the item on which the drop occurred or 0. 
.br
\fIevent\fP the drop event itself. 
.br
\fIurls\fP the urls that where dropped. 
.RE
.PP
\fBSince:\fP
.RS 4
3.2 
.RE
.PP


.SH "Author"
.PP 
Generated automatically by Doxygen for kio Library from the source code.
