\section{KDir\-Operator Class Reference}
\label{classKDirOperator}\index{KDirOperator@{KDirOperator}}
This widget works as a network transparent filebrowser. A widget for displaying files and browsing directories.  


{\tt \#include $<$kdiroperator.h$>$}

Inheritance diagram for KDir\-Operator:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=55pt]{classKDirOperator__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KDir\-Operator:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=420pt]{classKDirOperator__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{CompactItemize}
\item 
enum {\bf Action\-Types} \{ \par
{\bf Sort\-Actions} =  1, 
{\bf View\-Actions} =  2, 
{\bf Nav\-Actions} =  4, 
{\bf File\-Actions} =  8, 
\par
{\bf All\-Actions} =  15
 \}
\end{CompactItemize}
\subsection*{Public Slots}
\begin{CompactItemize}
\item 
void {\bf back} ()
\item 
void {\bf forward} ()
\item 
void {\bf home} ()
\item 
void {\bf cd\-Up} ()
\item 
void {\bf update\-Dir} ()
\item 
void {\bf reread\-Dir} ()
\item 
void {\bf mkdir} ()
\item 
void {\bf delete\-Selected} ()
\item 
void {\bf update\-Selection\-Dependent\-Actions} ()
\item 
{\bf QString} {\bf make\-Completion} (const {\bf QString} \&)
\item 
{\bf QString} {\bf make\-Dir\-Completion} (const {\bf QString} \&)
\item 
void {\bf trash\-Selected} ({\bf KAction::Activation\-Reason}, Qt::Button\-State)
\end{CompactItemize}
\subsection*{Signals}
\begin{CompactItemize}
\item 
void {\bf url\-Entered} (const {\bf KURL} \&)\label{classKDirOperator_l0}

\item 
void {\bf update\-Information} (int files, int dirs)\label{classKDirOperator_l1}

\item 
void {\bf completion} (const {\bf QString} \&)\label{classKDirOperator_l2}

\item 
void {\bf finished\-Loading} ()\label{classKDirOperator_l3}

\item 
void {\bf view\-Changed} ({\bf KFile\-View} $\ast$new\-View)
\item 
void {\bf file\-Highlighted} (const {\bf KFile\-Item} $\ast$item)
\item 
void {\bf dir\-Activated} (const {\bf KFile\-Item} $\ast$item)\label{classKDirOperator_l6}

\item 
void {\bf file\-Selected} (const {\bf KFile\-Item} $\ast$item)\label{classKDirOperator_l7}

\item 
void {\bf dropped} (const {\bf KFile\-Item} $\ast$item, {\bf QDrop\-Event} $\ast${\bf event}, const {\bf KURL::List} \&urls)
\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KDir\-Operator} (const {\bf KURL} \&url\-Name={\bf KURL}(), {\bf QWidget} $\ast$parent=0, const char $\ast$name=0)
\item 
virtual {\bf $\sim$KDir\-Operator} ()
\item 
void {\bf set\-Show\-Hidden\-Files} (bool s)
\item 
bool {\bf show\-Hidden\-Files} () const 
\item 
void {\bf close} ()
\item 
virtual bool {\bf close} (bool also\-Delete)
\item 
void {\bf set\-Name\-Filter} (const {\bf QString} \&filter)
\item 
const {\bf QString} \& {\bf name\-Filter} () const 
\item 
void {\bf set\-Mime\-Filter} (const {\bf QString\-List} \&mimetypes)
\item 
{\bf QString\-List} {\bf mime\-Filter} () const 
\item 
void {\bf clear\-Filter} ()
\item 
{\bf KURL} {\bf url} () const 
\item 
void {\bf set\-URL} (const {\bf KURL} \&url, bool clearforward)
\item 
void {\bf set\-Current\-Item} (const {\bf QString} \&filename)
\item 
void {\bf set\-View} ({\bf KFile\-View} $\ast$view)
\item 
{\bf KFile\-View} $\ast$ {\bf view} () const 
\item 
{\bf QWidget} $\ast$ {\bf view\-Widget} () const 
\item 
void {\bf set\-View} (KFile::File\-View view)
\item 
void {\bf set\-Sorting} (QDir::Sort\-Spec)
\item 
QDir::Sort\-Spec {\bf sorting} () const 
\item 
bool {\bf is\-Root} () const 
\item 
{\bf KDir\-Lister} $\ast$ {\bf dir\-Lister} () const 
\item 
{\bf KProgress} $\ast$ {\bf progress\-Bar} () const 
\item 
void {\bf set\-Mode} ({\bf KFile::Mode} m)
\item 
{\bf KFile::Mode} {\bf mode} () const 
\item 
void {\bf set\-Preview\-Widget} (const {\bf QWidget} $\ast$w)
\item 
const {\bf KFile\-Item\-List} $\ast$ {\bf selected\-Items} () const 
\item 
bool {\bf is\-Selected} (const {\bf KFile\-Item} $\ast$item) const 
\item 
int {\bf num\-Dirs} () const 
\item 
int {\bf num\-Files} () const 
\item 
{\bf KCompletion} $\ast$ {\bf completion\-Object} () const 
\item 
{\bf KCompletion} $\ast$ {\bf dir\-Completion\-Object} () const 
\item 
{\bf KAction\-Collection} $\ast$ {\bf action\-Collection} () const 
\item 
void {\bf set\-View\-Config} ({\bf KConfig} $\ast$config, const {\bf QString} \&group)
\item 
{\bf KConfig} $\ast$ {\bf view\-Config} ()
\item 
{\bf QString} {\bf view\-Config\-Group} () const 
\item 
virtual void {\bf read\-Config} ({\bf KConfig} $\ast$, const {\bf QString} \&group=QString::null)
\item 
virtual void {\bf write\-Config} ({\bf KConfig} $\ast$, const {\bf QString} \&group=QString::null)
\item 
void {\bf set\-Only\-Double\-Click\-Selects\-Files} (bool enable)
\item 
bool {\bf only\-Double\-Click\-Selects\-Files} () const 
\item 
bool {\bf mkdir} (const {\bf QString} \&directory, bool enter\-Directory=true)
\item 
{\bf KIO::Delete\-Job} $\ast$ {\bf del} (const {\bf KFile\-Item\-List} \&items, bool ask=true, bool show\-Progress=true)
\item 
{\bf KIO::Delete\-Job} $\ast$ {\bf del} (const {\bf KFile\-Item\-List} \&items, {\bf QWidget} $\ast$parent, bool ask=true, bool show\-Progress=true)
\item 
void {\bf clear\-History} ()
\item 
void {\bf set\-Enable\-Dir\-Highlighting} (bool enable)
\item 
bool {\bf dir\-Highlighting} () const 
\item 
bool {\bf dir\-Only\-Mode} () const 
\item 
void {\bf setup\-Menu} (int which\-Actions)
\item 
virtual void {\bf set\-Accept\-Drops} (bool b)
\item 
void {\bf set\-Drop\-Options} (int options)
\item 
{\bf KIO::Copy\-Job} $\ast$ {\bf trash} (const {\bf KFile\-Item\-List} \&items, {\bf QWidget} $\ast$parent, bool ask=true, bool show\-Progress=true)
\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
static bool {\bf dir\-Only\-Mode} (uint mode)\label{classKDirOperator_e0}

\end{CompactItemize}
\subsection*{Protected Slots}
\begin{CompactItemize}
\item 
void {\bf reset\-Cursor} ()
\item 
void {\bf path\-Changed} ()
\item 
void {\bf insert\-New\-Files} (const {\bf KFile\-Item\-List} \&newone)
\item 
void {\bf item\-Deleted} ({\bf KFile\-Item} $\ast$)
\item 
void {\bf select\-Dir} (const {\bf KFile\-Item} $\ast$item)
\item 
void {\bf select\-File} (const {\bf KFile\-Item} $\ast$item)
\item 
void {\bf highlight\-File} (const {\bf KFile\-Item} $\ast$i)
\item 
virtual void {\bf activated\-Menu} (const {\bf KFile\-Item} $\ast$, const {\bf QPoint} \&{\bf pos})
\item 
void {\bf sort\-By\-Name} ()
\item 
void {\bf sort\-By\-Size} ()
\item 
void {\bf sort\-By\-Date} ()
\item 
void {\bf sort\-Reversed} ()
\item 
void {\bf toggle\-Dirs\-First} ()
\item 
void {\bf toggle\-Ignore\-Case} ()
\item 
void {\bf slot\-Completion\-Match} (const {\bf QString} \&match)
\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
virtual {\bf KFile\-View} $\ast$ {\bf create\-View} ({\bf QWidget} $\ast$parent, KFile::File\-View view)
\item 
void {\bf set\-Dir\-Lister} ({\bf KDir\-Lister} $\ast$lister)
\item 
virtual void {\bf resize\-Event} ({\bf QResize\-Event} $\ast$)\label{classKDirOperator_b2}

\item 
void {\bf setup\-Actions} ()
\item 
void {\bf update\-Sort\-Actions} ()
\item 
void {\bf update\-View\-Actions} ()
\item 
void {\bf setup\-Menu} ()
\item 
void {\bf prepare\-Completion\-Objects} ()
\item 
bool {\bf check\-Preview\-Support} ()
\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)\label{classKDirOperator_b9}

\end{CompactItemize}


\subsection{Detailed Description}
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 {\bf KDir\-Lister}{\rm (p.\,\pageref{classKDirLister})}. The user can browse through directories, highlight and select files, delete or rename files.

It supports different views, e.g. a detailed view (see {\bf KFile\-Detail\-View}{\rm (p.\,\pageref{classKFileDetailView})}), a simple icon view (see {\bf KFile\-Icon\-View}{\rm (p.\,\pageref{classKFileIconView})}), a combination of two views, separating directories and files ( {\bf KCombi\-View}{\rm (p.\,\pageref{classKCombiView})}).

Additionally, a preview view is available (see {\bf KFile\-Preview}{\rm (p.\,\pageref{classKFilePreview})}), which can show either a simple or detailed view and additionally a preview widget (see {\bf set\-Preview\-Widget()}{\rm (p.\,\pageref{classKDirOperator_a25})}). {\bf KImage\-File\-Preview}{\rm (p.\,\pageref{classKImageFilePreview})} is one implementation of a preview widget, that displays previews for all supported filetypes utilizing {\bf KIO::Preview\-Job}{\rm (p.\,\pageref{classKIO_1_1PreviewJob})}.

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 Dn\-D-aware views from Bj\"{\i}?`189n Sahlstr\"{\i}?`189 $<${\tt bjorn@kbear.org}$>$ until they will be integrated into this library. See {\tt http://devel-home.kde.org/$\sim$pfeiffer/Dn\-D-classes.tar.gz}

This widget is the one used in the {\bf KFile\-Dialog}{\rm (p.\,\pageref{classKFileDialog})}.

Basic usage is like this: 

\footnotesize\begin{verbatim}   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);
\end{verbatim}
\normalsize


This will create a childwidget of 'this' showing the directory contents of /home/gis in the default-view. The view is determined by the {\bf read\-Config()}{\rm (p.\,\pageref{classKDirOperator_a36})} call, which will read the KDir\-Operator settings, the user left your program with (and which you saved with op-$>${\bf write\-Config()}{\rm (p.\,\pageref{classKDirOperator_a37})}).

\begin{Desc}
\item[Author:]Stephan Kulow $<${\tt coolo@kde.org}$>$, Carsten Pfeiffer $<${\tt pfeiffer@kde.org}$>$ \end{Desc}




Definition at line 97 of file kdiroperator.h.

\subsection{Member Enumeration Documentation}
\index{KDirOperator@{KDir\-Operator}!ActionTypes@{ActionTypes}}
\index{ActionTypes@{ActionTypes}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf enum} {\bf KDir\-Operator::Action\-Types}}\label{classKDirOperator_w5}


The various action types. 

These values can be or'd together \begin{Desc}
\item[Since:]3.1 \end{Desc}


Definition at line 106 of file kdiroperator.h.

\subsection{Constructor \& Destructor Documentation}
\index{KDirOperator@{KDir\-Operator}!KDirOperator@{KDirOperator}}
\index{KDirOperator@{KDirOperator}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDir\-Operator::KDir\-Operator (const {\bf KURL} \& {\em url\-Name} = {\tt {\bf KURL}()}, {\bf QWidget} $\ast$ {\em parent} = {\tt 0}, const char $\ast$ {\em name} = {\tt 0})}\label{classKDirOperator_a0}


Constructs the KDir\-Operator with no initial view. 

As the views are configurable, call {\bf read\-Config()}{\rm (p.\,\pageref{classKDirOperator_a36})} to load the user's configuration and then set\-View to explicitly set a view.

This constructor doesn't start loading the url, set\-View will do it. 

Definition at line 97 of file kdiroperator.cpp.

References KURL::add\-Path(), QString::append(), QDir::current\-Dir\-Path(), QWidget::height(), QString::is\-Empty(), KURL::protocol(), QPtr\-Stack::set\-Auto\-Delete(), set\-Dir\-Lister(), QWidget::set\-Focus\-Policy(), KURL::set\-Path(), KURL::set\-Protocol(), setup\-Actions(), setup\-Menu(), and slot\-Completion\-Match().\index{KDirOperator@{KDir\-Operator}!~KDirOperator@{$\sim$KDirOperator}}
\index{~KDirOperator@{$\sim$KDirOperator}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDir\-Operator::$\sim${\bf KDir\-Operator} ()\hspace{0.3cm}{\tt  [virtual]}}\label{classKDirOperator_a1}


Destroys the KDir\-Operator. 



Definition at line 150 of file kdiroperator.cpp.

References reset\-Cursor(), and KFile\-View::write\-Config().

\subsection{Member Function Documentation}
\index{KDirOperator@{KDir\-Operator}!setShowHiddenFiles@{setShowHiddenFiles}}
\index{setShowHiddenFiles@{setShowHiddenFiles}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::set\-Show\-Hidden\-Files (bool {\em s})\hspace{0.3cm}{\tt  [inline]}}\label{classKDirOperator_a2}


Enables/disables showing hidden files. 



Definition at line 129 of file kdiroperator.h.\index{KDirOperator@{KDir\-Operator}!showHiddenFiles@{showHiddenFiles}}
\index{showHiddenFiles@{showHiddenFiles}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KDir\-Operator::show\-Hidden\-Files () const\hspace{0.3cm}{\tt  [inline]}}\label{classKDirOperator_a3}


\begin{Desc}
\item[Returns:]true when hidden files are shown or false otherwise. \end{Desc}


Definition at line 134 of file kdiroperator.h.\index{KDirOperator@{KDir\-Operator}!close@{close}}
\index{close@{close}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::close ()}\label{classKDirOperator_a4}


Stops loading immediately. 

You don't need to call this, usually. 

Reimplemented from {\bf QWidget}.

Definition at line 573 of file kdiroperator.cpp.

References KCompletion::clear(), QPtr\-List::clear(), reset\-Cursor(), and KDir\-Lister::stop().\index{KDirOperator@{KDir\-Operator}!close@{close}}
\index{close@{close}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual bool KDir\-Operator::close (bool {\em also\-Delete})\hspace{0.3cm}{\tt  [inline, virtual]}}\label{classKDirOperator_a5}


Reimplemented to avoid \char`\"{}hidden virtual\char`\"{} warnings. 



Reimplemented from {\bf QWidget}.

Definition at line 141 of file kdiroperator.h.

References QWidget::close().\index{KDirOperator@{KDir\-Operator}!setNameFilter@{setNameFilter}}
\index{setNameFilter@{setNameFilter}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::set\-Name\-Filter (const {\bf QString} \& {\em filter})}\label{classKDirOperator_a6}


Sets a filter like \char`\"{}$\ast$.cpp $\ast$.h $\ast$.o\char`\"{}. 

Only files matching that filter will be shown. Call {\bf update\-Dir()}{\rm (p.\,\pageref{classKDirOperator_i4})} to apply it.

\begin{Desc}
\item[See also:]{\bf KDir\-Lister::set\-Name\-Filter}{\rm (p.\,\pageref{classKDirLister_a22})} 

{\bf name\-Filter}{\rm (p.\,\pageref{classKDirOperator_a7})} \end{Desc}


Definition at line 788 of file kdiroperator.cpp.

References check\-Preview\-Support(), and KDir\-Lister::set\-Name\-Filter().

Referenced by KFile\-Dialog::set\-Filter().\index{KDirOperator@{KDir\-Operator}!nameFilter@{nameFilter}}
\index{nameFilter@{nameFilter}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const {\bf QString}\& KDir\-Operator::name\-Filter () const\hspace{0.3cm}{\tt  [inline]}}\label{classKDirOperator_a7}


\begin{Desc}
\item[Returns:]the current namefilter. \end{Desc}
\begin{Desc}
\item[See also:]{\bf set\-Name\-Filter}{\rm (p.\,\pageref{classKDirOperator_a6})} \end{Desc}


Definition at line 156 of file kdiroperator.h.\index{KDirOperator@{KDir\-Operator}!setMimeFilter@{setMimeFilter}}
\index{setMimeFilter@{setMimeFilter}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::set\-Mime\-Filter (const {\bf QString\-List} \& {\em mimetypes})}\label{classKDirOperator_a8}


Sets a list of mimetypes as filter. 

Only files of those mimetypes will be shown.

Example: 

\footnotesize\begin{verbatim} QStringList filter;
 filter << "text/html" << "image/png" << "inode/directory";
 dirOperator->setMimefilter( filter );
\end{verbatim}
\normalsize


Node: Without the mimetype inode/directory, only files would be shown. Call {\bf update\-Dir()}{\rm (p.\,\pageref{classKDirOperator_i4})} to apply it.

\begin{Desc}
\item[See also:]{\bf KDir\-Lister::set\-Mime\-Filter}{\rm (p.\,\pageref{classKDirLister_a24})} 

{\bf mime\-Filter}{\rm (p.\,\pageref{classKDirOperator_a9})} \end{Desc}


Definition at line 794 of file kdiroperator.cpp.

References check\-Preview\-Support(), and KDir\-Lister::set\-Mime\-Filter().

Referenced by KFile\-Dialog::set\-Mime\-Filter().\index{KDirOperator@{KDir\-Operator}!mimeFilter@{mimeFilter}}
\index{mimeFilter@{mimeFilter}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString\-List} KDir\-Operator::mime\-Filter () const\hspace{0.3cm}{\tt  [inline]}}\label{classKDirOperator_a9}


\begin{Desc}
\item[Returns:]the current mime filter. \end{Desc}


Definition at line 180 of file kdiroperator.h.\index{KDirOperator@{KDir\-Operator}!clearFilter@{clearFilter}}
\index{clearFilter@{clearFilter}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::clear\-Filter ()}\label{classKDirOperator_a10}


Clears both the namefilter and mimetype filter, so that all files and directories will be shown. 

Call {\bf update\-Dir()}{\rm (p.\,\pageref{classKDirOperator_i4})} to apply it.

\begin{Desc}
\item[See also:]{\bf set\-Mime\-Filter}{\rm (p.\,\pageref{classKDirOperator_a8})} 

{\bf set\-Name\-Filter}{\rm (p.\,\pageref{classKDirOperator_a6})} \end{Desc}


Definition at line 781 of file kdiroperator.cpp.

References check\-Preview\-Support(), KDir\-Lister::clear\-Mime\-Filter(), and KDir\-Lister::set\-Name\-Filter().

Referenced by KFile\-Dialog::clear\-Filter(), KFile\-Dialog::set\-Filter(), and KFile\-Dialog::set\-Mime\-Filter().\index{KDirOperator@{KDir\-Operator}!url@{url}}
\index{url@{url}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KURL} KDir\-Operator::url () const}\label{classKDirOperator_a11}


\begin{Desc}
\item[Returns:]the current url \end{Desc}


Definition at line 762 of file kdiroperator.cpp.

Referenced by KFile\-Dialog::base\-URL(), del(), KFile\-Dialog::get\-Complete\-URL(), mkdir(), KFile\-Dialog::read\-Config(), KFile\-Dialog::set\-Selection(), set\-View(), KFile\-Dialog::tokenize(), and trash().\index{KDirOperator@{KDir\-Operator}!setURL@{setURL}}
\index{setURL@{setURL}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::set\-URL (const {\bf KURL} \& {\em url}, bool {\em clearforward})}\label{classKDirOperator_a12}


Sets a new url to list. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em clearforward}]specifies whether the \char`\"{}forward\char`\"{} history should be cleared. \item[{\em url}]the URL to set \end{description}
\end{Desc}


Definition at line 636 of file kdiroperator.cpp.

References KURL::cd(), QPtr\-Stack::clear(), KURL::equals(), KMessage\-Box::error(), QPtr\-Stack::is\-Empty(), is\-Root(), KDir\-Lister::open\-URL(), KURL::path(), path\-Changed(), QPtr\-Stack::push(), reset\-Cursor(), KAction::set\-Enabled(), KURL::set\-Path(), KURL::url(), and view\-Widget().

Referenced by back(), cd\-Up(), forward(), home(), mkdir(), select\-Dir(), and KFile\-Dialog::set\-URL().\index{KDirOperator@{KDir\-Operator}!setCurrentItem@{setCurrentItem}}
\index{setCurrentItem@{setCurrentItem}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::set\-Current\-Item (const {\bf QString} \& {\em filename})}\label{classKDirOperator_a13}


Clears the current selection and attempts to set {\tt filename} the current file. 

filename is just the name, no path or url. 

Definition at line 1181 of file kdiroperator.cpp.

References KFile\-View::clear\-Selection(), KFile\-View::ensure\-Item\-Visible(), KDir\-Lister::find\-By\-Name(), QString::is\-Null(), KFile\-View::set\-Current\-Item(), and KFile\-View::set\-Selected().

Referenced by slot\-Completion\-Match().\index{KDirOperator@{KDir\-Operator}!setView@{setView}}
\index{setView@{setView}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::set\-View ({\bf KFile\-View} $\ast$ {\em view})}\label{classKDirOperator_a14}


Sets a new {\bf KFile\-View}{\rm (p.\,\pageref{classKFileView})} to be used for showing and browsing files. 

Note: this will read the current {\bf url()}{\rm (p.\,\pageref{classKDirOperator_a11})} to fill the view.

\begin{Desc}
\item[See also:]{\bf KFile\-View}{\rm (p.\,\pageref{classKFileView})} 

{\bf KFile\-Icon\-View}{\rm (p.\,\pageref{classKFileIconView})} 

{\bf KFile\-Detail\-View}{\rm (p.\,\pageref{classKFileDetailView})} 

KFile\-Combi\-View 

{\bf view}{\rm (p.\,\pageref{classKDirOperator_a15})} \end{Desc}


Definition at line 1089 of file kdiroperator.cpp.

References QWidget::set\-Focus\-Proxy(), KFile\-View::set\-Only\-Double\-Click\-Selects\-Files(), KFile\-View::set\-Sorting(), view(), view\-Changed(), and KFile\-View::widget().

Referenced by set\-Mode(), set\-Preview\-Widget(), and set\-View().\index{KDirOperator@{KDir\-Operator}!view@{view}}
\index{view@{view}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KFile\-View}$\ast$ KDir\-Operator::view () const\hspace{0.3cm}{\tt  [inline]}}\label{classKDirOperator_a15}


\begin{Desc}
\item[Returns:]the currently used view. \end{Desc}
\begin{Desc}
\item[See also:]{\bf set\-View}{\rm (p.\,\pageref{classKDirOperator_a14})} \end{Desc}


Definition at line 227 of file kdiroperator.h.

Referenced by set\-View().\index{KDirOperator@{KDir\-Operator}!viewWidget@{viewWidget}}
\index{viewWidget@{viewWidget}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QWidget}$\ast$ KDir\-Operator::view\-Widget () const\hspace{0.3cm}{\tt  [inline]}}\label{classKDirOperator_a16}


Returns the widget of the current view. 

0L if there is no view/widget. ({\bf KFile\-View}{\rm (p.\,\pageref{classKFileView})} itself is not a widget.) 

Definition at line 233 of file kdiroperator.h.

Referenced by mkdir(), path\-Changed(), and set\-URL().\index{KDirOperator@{KDir\-Operator}!setView@{setView}}
\index{setView@{setView}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::set\-View (KFile::File\-View {\em view})}\label{classKDirOperator_a17}


Sets one of the predefined fileviews. 

\begin{Desc}
\item[See also:]KFile::File\-View \end{Desc}


Definition at line 936 of file kdiroperator.cpp.

References KAction\-Collection::action(), create\-View(), KAction::is\-Enabled(), KFile::is\-Preview\-Info(), mode(), KToggle\-Action::set\-Checked(), KAction::set\-Enabled(), set\-View(), and url().\index{KDirOperator@{KDir\-Operator}!setSorting@{setSorting}}
\index{setSorting@{setSorting}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::set\-Sorting (QDir::Sort\-Spec)}\label{classKDirOperator_a18}


Sets the way to sort files and directories. 



Definition at line 168 of file kdiroperator.cpp.

References KFile\-View::set\-Sorting(), and update\-Sort\-Actions().

Referenced by read\-Config().\index{KDirOperator@{KDir\-Operator}!sorting@{sorting}}
\index{sorting@{sorting}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}QDir::Sort\-Spec KDir\-Operator::sorting () const\hspace{0.3cm}{\tt  [inline]}}\label{classKDirOperator_a19}


\begin{Desc}
\item[Returns:]the current way of sorting files and directories \end{Desc}


Definition at line 250 of file kdiroperator.h.\index{KDirOperator@{KDir\-Operator}!isRoot@{isRoot}}
\index{isRoot@{isRoot}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KDir\-Operator::is\-Root () const\hspace{0.3cm}{\tt  [inline]}}\label{classKDirOperator_a20}


\begin{Desc}
\item[Returns:]true if we are displaying the root directory of the current url \end{Desc}


Definition at line 255 of file kdiroperator.h.

Referenced by set\-URL().\index{KDirOperator@{KDir\-Operator}!dirLister@{dirLister}}
\index{dirLister@{dirLister}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KDir\-Lister}$\ast$ KDir\-Operator::dir\-Lister () const\hspace{0.3cm}{\tt  [inline]}}\label{classKDirOperator_a21}


\begin{Desc}
\item[Returns:]the object listing the directory \end{Desc}


Definition at line 260 of file kdiroperator.h.\index{KDirOperator@{KDir\-Operator}!progressBar@{progressBar}}
\index{progressBar@{progressBar}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KProgress} $\ast$ KDir\-Operator::progress\-Bar () const}\label{classKDirOperator_a22}


\begin{Desc}
\item[Returns:]the progress widget, that is shown during directory listing. You can for example {\bf reparent()} it to put it into a statusbar. \end{Desc}


Definition at line 1612 of file kdiroperator.cpp.\index{KDirOperator@{KDir\-Operator}!setMode@{setMode}}
\index{setMode@{setMode}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::set\-Mode ({\bf KFile::Mode} {\em m})}\label{classKDirOperator_a23}


Sets the listing/selection mode for the views, an OR'ed combination of \begin{itemize}
\item File \item Directory \item Files \item Existing\-Only \item Local\-Only. \end{itemize}


You cannot mix File and Files of course, as the former means single-selection mode, the latter multi-selection. 

Definition at line 1076 of file kdiroperator.cpp.

References dir\-Only\-Mode(), KDir\-Lister::set\-Dir\-Only\-Mode(), and set\-View().

Referenced by KFile\-Dialog::set\-Mode().\index{KDirOperator@{KDir\-Operator}!mode@{mode}}
\index{mode@{mode}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KFile::Mode} KDir\-Operator::mode () const}\label{classKDirOperator_a24}


\begin{Desc}
\item[Returns:]the listing/selection mode. \end{Desc}


Definition at line 1071 of file kdiroperator.cpp.

Referenced by KFile\-Dialog::mode(), KFile\-Dialog::selected\-Files(), KFile\-Dialog::selected\-URLs(), and set\-View().\index{KDirOperator@{KDir\-Operator}!setPreviewWidget@{setPreviewWidget}}
\index{setPreviewWidget@{setPreviewWidget}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::set\-Preview\-Widget (const {\bf QWidget} $\ast$ {\em w})}\label{classKDirOperator_a25}


Sets a preview-widget to be shown next to the file-view. 

The ownership of {\tt w} is transferred to KDir\-Operator, so don't delete it yourself! 

Definition at line 264 of file kdiroperator.cpp.

References KAction\-Collection::action(), KToggle\-Action::set\-Checked(), KAction::set\-Enabled(), and set\-View().

Referenced by KFile\-Dialog::set\-Preview\-Widget().\index{KDirOperator@{KDir\-Operator}!selectedItems@{selectedItems}}
\index{selectedItems@{selectedItems}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const {\bf KFile\-Item\-List}$\ast$ KDir\-Operator::selected\-Items () const\hspace{0.3cm}{\tt  [inline]}}\label{classKDirOperator_a26}


\begin{Desc}
\item[Returns:]a list of all currently selected items. If there is no view, then 0L is returned. \end{Desc}


Definition at line 298 of file kdiroperator.h.

Referenced by KFile\-Dialog::multi\-Selection\-Changed().\index{KDirOperator@{KDir\-Operator}!isSelected@{isSelected}}
\index{isSelected@{isSelected}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KDir\-Operator::is\-Selected (const {\bf KFile\-Item} $\ast$ {\em item}) const\hspace{0.3cm}{\tt  [inline]}}\label{classKDirOperator_a27}


\begin{Desc}
\item[Returns:]true if {\tt item} is currently selected, or false otherwise. \end{Desc}


Definition at line 305 of file kdiroperator.h.\index{KDirOperator@{KDir\-Operator}!numDirs@{numDirs}}
\index{numDirs@{numDirs}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KDir\-Operator::num\-Dirs () const}\label{classKDirOperator_a28}


\begin{Desc}
\item[Returns:]the number of directories in the currently listed url. Returns 0 if there is no view. \end{Desc}


Definition at line 280 of file kdiroperator.cpp.

References KFile\-View::num\-Dirs().\index{KDirOperator@{KDir\-Operator}!numFiles@{numFiles}}
\index{numFiles@{numFiles}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KDir\-Operator::num\-Files () const}\label{classKDirOperator_a29}


\begin{Desc}
\item[Returns:]the number of files in the currently listed url. Returns 0 if there is no view. \end{Desc}


Definition at line 285 of file kdiroperator.cpp.

References KFile\-View::num\-Files().\index{KDirOperator@{KDir\-Operator}!completionObject@{completionObject}}
\index{completionObject@{completionObject}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KCompletion}$\ast$ KDir\-Operator::completion\-Object () const\hspace{0.3cm}{\tt  [inline]}}\label{classKDirOperator_a30}


\begin{Desc}
\item[Returns:]a {\bf KCompletion} object, containing all filenames and directories of the current directory/URL. You can use it to insert it into a {\bf KLine\-Edit} or {\bf KCombo\-Box} Note: it will only contain files, after {\bf prepare\-Completion\-Objects()}{\rm (p.\,\pageref{classKDirOperator_b7})} has been called. It will be implicitly called from {\bf make\-Completion()}{\rm (p.\,\pageref{classKDirOperator_i9})} or {\bf make\-Dir\-Completion()}{\rm (p.\,\pageref{classKDirOperator_i10})} \end{Desc}


Definition at line 329 of file kdiroperator.h.\index{KDirOperator@{KDir\-Operator}!dirCompletionObject@{dirCompletionObject}}
\index{dirCompletionObject@{dirCompletionObject}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KCompletion}$\ast$ KDir\-Operator::dir\-Completion\-Object () const\hspace{0.3cm}{\tt  [inline]}}\label{classKDirOperator_a31}


\begin{Desc}
\item[Returns:]a {\bf KCompletion} object, containing only all directories of the current directory/URL. You can use it to insert it into a {\bf KLine\-Edit} or {\bf KCombo\-Box} Note: it will only contain directories, after {\bf prepare\-Completion\-Objects()}{\rm (p.\,\pageref{classKDirOperator_b7})} has been called. It will be implicitly called from {\bf make\-Completion()}{\rm (p.\,\pageref{classKDirOperator_i9})} or {\bf make\-Dir\-Completion()}{\rm (p.\,\pageref{classKDirOperator_i10})} \end{Desc}


Definition at line 341 of file kdiroperator.h.\index{KDirOperator@{KDir\-Operator}!actionCollection@{actionCollection}}
\index{actionCollection@{actionCollection}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KAction\-Collection}$\ast$ KDir\-Operator::action\-Collection () const\hspace{0.3cm}{\tt  [inline]}}\label{classKDirOperator_a32}


an accessor to a collection of all available Actions. 

The actions are static, they will be there all the time (no need to connect to the signals {\bf KAction\-Collection::inserted()} or removed().

There are the following actions:

\begin{itemize}
\item popup\-Menu : an Action\-Menu presenting a popupmenu with all actions \item up : changes to the parent directory \item back : goes back to the previous directory \item forward : goes forward in the history \item home : changes to the user's home directory \item reload : reloads the current directory \item separator : a separator \item mkdir : opens a dialog box to create a directory \item delete : deletes the selected files/directories \item sorting menu : an Action\-Menu containing all sort-options \item by name : sorts by name \item by date : sorts by date \item by size : sorts by size \item reversed : reverses the sort order \item dirs first : sorts directories before files \item case insensitive : sorts case insensitively \item view menu : an Action\-Menu containing all actions concerning the view \item short view : shows a simple fileview \item detailed view : shows a detailed fileview (dates, permissions ,...) \item show hidden : shows hidden files \item separate dirs : shows directories in a separate pane \item preview : shows a preview next to the fileview \item single : hides the separate view for directories or the preview \item properties : shows a {\bf KProperties\-Dialog}{\rm (p.\,\pageref{classKPropertiesDialog})} for the selected files\end{itemize}
The short and detailed view are in an exclusive group. The sort-by actions are in an exclusive group as well. Also the \char`\"{}separate dirs\char`\"{}, \char`\"{}preview\char`\"{} and \char`\"{}single\char`\"{} actions are in an exclusive group.

You can e.g. use 

\footnotesize\begin{verbatim} actionCollection()->action( "up" )->plug( someToolBar );
\end{verbatim}
\normalsize
 to add a button into a toolbar, which makes the dir\-Operator change to its parent directory.

\begin{Desc}
\item[Returns:]all available Actions \end{Desc}


Definition at line 390 of file kdiroperator.h.

Referenced by KFile\-Dialog::action\-Collection(), KFile\-Dialog::init(), and KFile\-Dialog::toggle\-Speedbar().\index{KDirOperator@{KDir\-Operator}!setViewConfig@{setViewConfig}}
\index{setViewConfig@{setViewConfig}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::set\-View\-Config ({\bf KConfig} $\ast$ {\em config}, const {\bf QString} \& {\em group})}\label{classKDirOperator_a33}


Sets the config object and the to be used group in KDir\-Operator. 

This will be used to store the view's configuration via KFile\-View::write\-Config() (and for KFile\-View::read\-Config()). If you don't set this, the views cannot save and restore their configuration.

Usually you call this right after KDir\-Operator creation so that the view instantiation can make use of it already.

Note that KDir\-Operator does NOT take ownership of that object (typically it's {\bf KGlobal::config()} anyway.

\begin{Desc}
\item[See also:]{\bf view\-Config}{\rm (p.\,\pageref{classKDirOperator_a34})} 

{\bf view\-Config\-Group}{\rm (p.\,\pageref{classKDirOperator_a35})} \end{Desc}
\begin{Desc}
\item[Since:]3.1 \end{Desc}


Definition at line 1710 of file kdiroperator.cpp.

Referenced by KFile\-Dialog::init().\index{KDirOperator@{KDir\-Operator}!viewConfig@{viewConfig}}
\index{viewConfig@{viewConfig}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KConfig} $\ast$ KDir\-Operator::view\-Config ()}\label{classKDirOperator_a34}


Returns the {\bf KConfig} object used for saving and restoring view's configuration. 

\begin{Desc}
\item[Returns:]the {\bf KConfig} object used for saving and restoring view's configuration. \end{Desc}
\begin{Desc}
\item[Since:]3.1 \end{Desc}


Definition at line 1716 of file kdiroperator.cpp.\index{KDirOperator@{KDir\-Operator}!viewConfigGroup@{viewConfigGroup}}
\index{viewConfigGroup@{viewConfigGroup}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KDir\-Operator::view\-Config\-Group () const}\label{classKDirOperator_a35}


Returns the group name used for saving and restoring view's configuration. 

\begin{Desc}
\item[Returns:]the group name used for saving and restoring view's configuration. \end{Desc}
\begin{Desc}
\item[Since:]3.1 \end{Desc}


Definition at line 1721 of file kdiroperator.cpp.\index{KDirOperator@{KDir\-Operator}!readConfig@{readConfig}}
\index{readConfig@{readConfig}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::read\-Config ({\bf KConfig} $\ast$, const {\bf QString} \& {\em group} = {\tt QString::null})\hspace{0.3cm}{\tt  [virtual]}}\label{classKDirOperator_a36}


Reads the default settings for a view, i.e. 

the default KFile::File\-View. Also reads the sorting and whether hidden files should be shown. Note: the default view will not be set - you have to call 

\footnotesize\begin{verbatim} setView( KFile::Default )
\end{verbatim}
\normalsize
 to apply it.

\begin{Desc}
\item[See also:]{\bf set\-View}{\rm (p.\,\pageref{classKDirOperator_a14})} 

{\bf set\-View\-Config}{\rm (p.\,\pageref{classKDirOperator_a33})} 

{\bf write\-Config}{\rm (p.\,\pageref{classKDirOperator_a37})} \end{Desc}


Definition at line 1431 of file kdiroperator.cpp.

References QString::from\-Latin1(), KAction::group, KToggle\-Action::set\-Checked(), KAction::set\-Group(), KDir\-Lister::set\-Showing\-Dot\-Files(), and set\-Sorting().

Referenced by KFile\-Dialog::read\-Config().\index{KDirOperator@{KDir\-Operator}!writeConfig@{writeConfig}}
\index{writeConfig@{writeConfig}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::write\-Config ({\bf KConfig} $\ast$, const {\bf QString} \& {\em group} = {\tt QString::null})\hspace{0.3cm}{\tt  [virtual]}}\label{classKDirOperator_a37}


Saves the current settings like sorting, simple or detailed view. 

\begin{Desc}
\item[See also:]{\bf read\-Config}{\rm (p.\,\pageref{classKDirOperator_a36})} 

{\bf set\-View\-Config}{\rm (p.\,\pageref{classKDirOperator_a33})} \end{Desc}


Definition at line 1487 of file kdiroperator.cpp.

References KAction\-Collection::action(), QString::from\-Latin1(), KAction::group, KToggle\-Action::is\-Checked(), and KAction::is\-Enabled().

Referenced by KFile\-Dialog::write\-Config().\index{KDirOperator@{KDir\-Operator}!setOnlyDoubleClickSelectsFiles@{setOnlyDoubleClickSelectsFiles}}
\index{setOnlyDoubleClickSelectsFiles@{setOnlyDoubleClickSelectsFiles}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::set\-Only\-Double\-Click\-Selects\-Files (bool {\em enable})}\label{classKDirOperator_a38}


This is a {\bf KFile\-Dialog}{\rm (p.\,\pageref{classKFileDialog})} specific hack: we want to select directories with single click, but not files. 

But as a generic class, we have to be able to select files on single click as well.

This gives us the opportunity to do both.

The default is false, set it to true if you don't want files selected with single click. 

Definition at line 1556 of file kdiroperator.cpp.

References KFile\-View::set\-Only\-Double\-Click\-Selects\-Files().

Referenced by KFile\-Dialog::init().\index{KDirOperator@{KDir\-Operator}!onlyDoubleClickSelectsFiles@{onlyDoubleClickSelectsFiles}}
\index{onlyDoubleClickSelectsFiles@{onlyDoubleClickSelectsFiles}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KDir\-Operator::only\-Double\-Click\-Selects\-Files () const}\label{classKDirOperator_a39}


\begin{Desc}
\item[Returns:]whether files (not directories) should only be select()ed by double-clicks. \end{Desc}
\begin{Desc}
\item[See also:]{\bf set\-Only\-Double\-Click\-Selects\-Files}{\rm (p.\,\pageref{classKDirOperator_a38})} \end{Desc}


Definition at line 1563 of file kdiroperator.cpp.

References KFile\-View::only\-Double\-Click\-Selects\-Files().\index{KDirOperator@{KDir\-Operator}!mkdir@{mkdir}}
\index{mkdir@{mkdir}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KDir\-Operator::mkdir (const {\bf QString} \& {\em directory}, bool {\em enter\-Directory} = {\tt true})}\label{classKDirOperator_a40}


Creates the given directory/url. 

If it is a relative path, it will be completed with the current directory. If enter\-Directory is true, the directory will be entered after a successful operation. If unsuccessful, a messagebox will be presented to the user. \begin{Desc}
\item[Returns:]true if the directory could be created. \end{Desc}


Definition at line 400 of file kdiroperator.cpp.

References KURL::add\-Path(), KIO::Net\-Access$<$ T, K $>$::exists(), KIO::Net\-Access$<$ T, K $>$::mkdir(), KURL::path\-Or\-URL(), set\-URL(), KMessage\-Box::sorry(), QString\-List::split(), QWidget::top\-Level\-Widget(), url(), and view\-Widget().\index{KDirOperator@{KDir\-Operator}!del@{del}}
\index{del@{del}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KIO::Delete\-Job} $\ast$ KDir\-Operator::del (const {\bf KFile\-Item\-List} \& {\em items}, bool {\em ask} = {\tt true}, bool {\em show\-Progress} = {\tt true})}\label{classKDirOperator_a41}


Starts and returns a {\bf KIO::Delete\-Job}{\rm (p.\,\pageref{classKIO_1_1DeleteJob})} to delete the given {\tt items}. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em items}]the list of items to be deleted \item[{\em ask}]specifies whether a confirmation dialog should be shown \item[{\em show\-Progress}]passed to the Delete\-Job to show a progress dialog \end{description}
\end{Desc}


Definition at line 436 of file kdiroperator.cpp.

Referenced by delete\-Selected().\index{KDirOperator@{KDir\-Operator}!del@{del}}
\index{del@{del}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KIO::Delete\-Job} $\ast$ KDir\-Operator::del (const {\bf KFile\-Item\-List} \& {\em items}, {\bf QWidget} $\ast$ {\em parent}, bool {\em ask} = {\tt true}, bool {\em show\-Progress} = {\tt true})}\label{classKDirOperator_a42}


Starts and returns a {\bf KIO::Delete\-Job}{\rm (p.\,\pageref{classKIO_1_1DeleteJob})} to delete the given {\tt items}. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em items}]the list of items to be deleted \item[{\em parent}]the parent widget used for the confirmation dialog \item[{\em ask}]specifies whether a confirmation dialog should be shown \item[{\em show\-Progress}]passed to the Delete\-Job to show a progress dialog \end{description}
\end{Desc}
\begin{Desc}
\item[Since:]3.1 \end{Desc}


Definition at line 442 of file kdiroperator.cpp.

References QValue\-List::append(), QPtr\-List\-Iterator::current(), KIO::del(), KStd\-Gui\-Item::del(), KMessage\-Box::information(), KURL::is\-Local\-File(), KURL::path(), KURL::pretty\-URL(), KIO::Job::set\-Auto\-Error\-Handling\-Enabled(), KIO::Job::set\-Window(), QWidget::top\-Level\-Widget(), KURL::url(), url(), KMessage\-Box::warning\-Continue\-Cancel(), and KMessage\-Box::warning\-Continue\-Cancel\-List().\index{KDirOperator@{KDir\-Operator}!clearHistory@{clearHistory}}
\index{clearHistory@{clearHistory}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::clear\-History ()}\label{classKDirOperator_a43}


Clears the forward and backward history. 



Definition at line 1617 of file kdiroperator.cpp.

References QPtr\-Stack::clear(), and KAction::set\-Enabled().

Referenced by KFile\-Dialog::get\-Open\-File\-Name(), KFile\-Dialog::get\-Open\-File\-Names(), KFile\-Dialog::get\-Open\-File\-Name\-WId(), KFile\-Dialog::get\-Open\-URL(), KFile\-Dialog::get\-Open\-URLs(), and KFile\-Dialog::set\-Preview\-Widget().\index{KDirOperator@{KDir\-Operator}!setEnableDirHighlighting@{setEnableDirHighlighting}}
\index{setEnableDirHighlighting@{setEnableDirHighlighting}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::set\-Enable\-Dir\-Highlighting (bool {\em enable})}\label{classKDirOperator_a44}


When going up in the directory hierarchy, KDir\-Operator can highlight the directory that was just left. 

I.e. when you go from /home/gis/src to /home/gis, the item \char`\"{}src\char`\"{} will be made the current item.

Default is off. 

Definition at line 1647 of file kdiroperator.cpp.\index{KDirOperator@{KDir\-Operator}!dirHighlighting@{dirHighlighting}}
\index{dirHighlighting@{dirHighlighting}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KDir\-Operator::dir\-Highlighting () const}\label{classKDirOperator_a45}


\begin{Desc}
\item[Returns:]whether the last directory will be made the current item when going up in the directory hierarchy.\end{Desc}
Default is false. 

Definition at line 1652 of file kdiroperator.cpp.\index{KDirOperator@{KDir\-Operator}!dirOnlyMode@{dirOnlyMode}}
\index{dirOnlyMode@{dirOnlyMode}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KDir\-Operator::dir\-Only\-Mode () const\hspace{0.3cm}{\tt  [inline]}}\label{classKDirOperator_a46}


\begin{Desc}
\item[Returns:]true if we are in directory-only mode, that is, no files are shown. \end{Desc}


Definition at line 537 of file kdiroperator.h.

Referenced by KFile\-Dialog::set\-Mode(), and set\-Mode().\index{KDirOperator@{KDir\-Operator}!setupMenu@{setupMenu}}
\index{setupMenu@{setupMenu}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::setup\-Menu (int {\em which\-Actions})}\label{classKDirOperator_a47}


Sets up the action menu. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em which\-Actions}]is an value of OR'd Action\-Types that controls which actions to show in the action menu \end{description}
\end{Desc}


Definition at line 1349 of file kdiroperator.cpp.

References KAction\-Collection::action(), QPopup\-Menu::clear(), KGlobal::config(), KAction\-Menu::insert(), KURL::is\-Local\-File(), KApplication::keyboard\-Mouse\-State(), KAction\-Menu::popup\-Menu(), and KConfig\-Base::read\-Bool\-Entry().

Referenced by KFile\-Dialog::init().\index{KDirOperator@{KDir\-Operator}!setAcceptDrops@{setAcceptDrops}}
\index{setAcceptDrops@{setAcceptDrops}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::set\-Accept\-Drops (bool {\em b})\hspace{0.3cm}{\tt  [virtual]}}\label{classKDirOperator_a48}


Reimplemented - allow dropping of files if {\tt b} is true. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em b}]true if the widget should allow dropping of files \end{description}
\end{Desc}


Reimplemented from {\bf QWidget}.

Definition at line 922 of file kdiroperator.cpp.

References QWidget::set\-Accept\-Drops(), and KFile\-View::widget().\index{KDirOperator@{KDir\-Operator}!setDropOptions@{setDropOptions}}
\index{setDropOptions@{setDropOptions}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::set\-Drop\-Options (int {\em options})}\label{classKDirOperator_a49}


Sets the options for dropping files. 

\begin{Desc}
\item[See also:]{\bf KFile\-View::Drop\-Options}{\rm (p.\,\pageref{classKFileView_w5})} \end{Desc}
\begin{Desc}
\item[Since:]3.2 \end{Desc}


Definition at line 929 of file kdiroperator.cpp.

References KFile\-View::set\-Drop\-Options().\index{KDirOperator@{KDir\-Operator}!trash@{trash}}
\index{trash@{trash}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KIO::Copy\-Job} $\ast$ KDir\-Operator::trash (const {\bf KFile\-Item\-List} \& {\em items}, {\bf QWidget} $\ast$ {\em parent}, bool {\em ask} = {\tt true}, bool {\em show\-Progress} = {\tt true})}\label{classKDirOperator_a50}


Starts and returns a {\bf KIO::Copy\-Job}{\rm (p.\,\pageref{classKIO_1_1CopyJob})} to trash the given {\tt items}. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em items}]the list of items to be trashed \item[{\em parent}]the parent widget used for the confirmation dialog \item[{\em ask}]specifies whether a confirmation dialog should be shown \item[{\em show\-Progress}]passed to the Copy\-Job to show a progress dialog \end{description}
\end{Desc}
\begin{Desc}
\item[Since:]3.4 \end{Desc}


Definition at line 505 of file kdiroperator.cpp.

References QValue\-List::append(), QPtr\-List\-Iterator::current(), KMessage\-Box::information(), KURL::is\-Local\-File(), KURL::path(), KURL::pretty\-URL(), KIO::Job::set\-Auto\-Error\-Handling\-Enabled(), KIO::Job::set\-Window(), QWidget::top\-Level\-Widget(), KIO::trash(), KURL::url(), url(), KMessage\-Box::warning\-Continue\-Cancel(), and KMessage\-Box::warning\-Continue\-Cancel\-List().

Referenced by setup\-Actions(), and trash\-Selected().\index{KDirOperator@{KDir\-Operator}!createView@{createView}}
\index{createView@{createView}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KFile\-View} $\ast$ KDir\-Operator::create\-View ({\bf QWidget} $\ast$ {\em parent}, KFile::File\-View {\em view})\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKDirOperator_b0}


A view factory for creating predefined fileviews. 

Called internally by set\-View , but you can also call it directly. Reimplement this if you depend on self defined fileviews. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em parent}]is the {\bf QWidget} to be set as parent \item[{\em view}]is the predefined view to be set, note: this can be several ones OR:ed together. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]the created {\bf KFile\-View}{\rm (p.\,\pageref{classKFileView})} \end{Desc}
\begin{Desc}
\item[See also:]{\bf KFile\-View}{\rm (p.\,\pageref{classKFileView})} 

{\bf KCombi\-View}{\rm (p.\,\pageref{classKCombiView})} 

{\bf KFile\-Detail\-View}{\rm (p.\,\pageref{classKFileDetailView})} 

{\bf KFile\-Icon\-View}{\rm (p.\,\pageref{classKFileIconView})} 

{\bf KFile\-Preview}{\rm (p.\,\pageref{classKFilePreview})} 

KFile::File\-View 

{\bf set\-View}{\rm (p.\,\pageref{classKDirOperator_a14})} \end{Desc}


Definition at line 874 of file kdiroperator.cpp.

References QWidget::accept\-Drops(), KFile::is\-Preview\-Info(), QWidget::set\-Accept\-Drops(), KFile\-View::set\-Only\-Double\-Click\-Selects\-Files(), KCombi\-View::set\-Right(), KFile\-View::set\-View\-Name(), and KFile\-View::widget().

Referenced by set\-View().\index{KDirOperator@{KDir\-Operator}!setDirLister@{setDirLister}}
\index{setDirLister@{setDirLister}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::set\-Dir\-Lister ({\bf KDir\-Lister} $\ast$ {\em lister})\hspace{0.3cm}{\tt  [protected]}}\label{classKDirOperator_b1}


Sets a custom {\bf KDir\-Lister}{\rm (p.\,\pageref{classKDirLister})} to list directories. 



Definition at line 1103 of file kdiroperator.cpp.

References endl(), insert\-New\-Files(), item\-Deleted(), kd\-Debug(), KDir\-Lister::set\-Auto\-Update(), KDir\-Lister::set\-Main\-Window(), and QWidget::top\-Level\-Widget().

Referenced by KDir\-Operator().\index{KDirOperator@{KDir\-Operator}!setupActions@{setupActions}}
\index{setupActions@{setupActions}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::setup\-Actions ()\hspace{0.3cm}{\tt  [protected]}}\label{classKDirOperator_b3}


Sets up all the actions. 

Called from the constructor, you usually better not call this. 

Definition at line 1244 of file kdiroperator.cpp.

References back(), KStd\-Action::back(), cd\-Up(), delete\-Selected(), forward(), KStd\-Action::forward(), QString::from\-Latin1(), home(), KStd\-Action::home(), mkdir(), KAction\-Menu::popup\-Menu(), KStd\-Action::redisplay(), reread\-Dir(), KToggle\-Action::set\-Checked\-State(), KToggle\-Action::set\-Exclusive\-Group(), KAction::set\-Icon(), KAction::set\-Shortcut(), KAction::set\-Text(), trash(), trash\-Selected(), and KStd\-Action::up().

Referenced by KDir\-Operator().\index{KDirOperator@{KDir\-Operator}!updateSortActions@{updateSortActions}}
\index{updateSortActions@{updateSortActions}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::update\-Sort\-Actions ()\hspace{0.3cm}{\tt  [protected]}}\label{classKDirOperator_b4}


Updates the sorting-related actions to comply with the current sorting. 

\begin{Desc}
\item[See also:]{\bf sorting}{\rm (p.\,\pageref{classKDirOperator_a19})} \end{Desc}


Definition at line 1403 of file kdiroperator.cpp.

References KFile\-View::is\-Reversed(), KToggle\-Action::set\-Checked(), and KAction::set\-Enabled().

Referenced by set\-Sorting().\index{KDirOperator@{KDir\-Operator}!updateViewActions@{updateViewActions}}
\index{updateViewActions@{updateViewActions}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::update\-View\-Actions ()\hspace{0.3cm}{\tt  [protected]}}\label{classKDirOperator_b5}


Updates the view-related actions to comply with the current KFile::File\-View. 



Definition at line 1420 of file kdiroperator.cpp.

References KAction::is\-Enabled(), and KToggle\-Action::set\-Checked().\index{KDirOperator@{KDir\-Operator}!setupMenu@{setupMenu}}
\index{setupMenu@{setupMenu}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::setup\-Menu ()\hspace{0.3cm}{\tt  [protected]}}\label{classKDirOperator_b6}


Sets up the context-menu with all the necessary actions. 

Called from the constructor, you usually don't need to call this. \begin{Desc}
\item[Since:]3.1 \end{Desc}


Definition at line 1344 of file kdiroperator.cpp.

Referenced by activated\-Menu(), and KDir\-Operator().\index{KDirOperator@{KDir\-Operator}!prepareCompletionObjects@{prepareCompletionObjects}}
\index{prepareCompletionObjects@{prepareCompletionObjects}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::prepare\-Completion\-Objects ()\hspace{0.3cm}{\tt  [protected]}}\label{classKDirOperator_b7}


Synchronizes the completion objects with the entries of the currently listed url. 

Automatically called from {\bf make\-Completion()}{\rm (p.\,\pageref{classKDirOperator_i9})} and {\bf make\-Dir\-Completion()}{\rm (p.\,\pageref{classKDirOperator_i10})} 

Definition at line 1220 of file kdiroperator.cpp.

References KCompletion::add\-Item(), KFile\-Item::is\-Dir(), KFile\-View::items(), and KFile\-Item::name().

Referenced by make\-Completion(), and make\-Dir\-Completion().\index{KDirOperator@{KDir\-Operator}!checkPreviewSupport@{checkPreviewSupport}}
\index{checkPreviewSupport@{checkPreviewSupport}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KDir\-Operator::check\-Preview\-Support ()\hspace{0.3cm}{\tt  [protected]}}\label{classKDirOperator_b8}


Checks if there support from {\bf KIO::Preview\-Job}{\rm (p.\,\pageref{classKIO_1_1PreviewJob})} for the currently shown files, taking {\bf mime\-Filter()}{\rm (p.\,\pageref{classKDirOperator_a9})} and {\bf name\-Filter()}{\rm (p.\,\pageref{classKDirOperator_a7})} into account Enables/disables the preview-action accordingly. 



Definition at line 800 of file kdiroperator.cpp.

References KAction\-Collection::action(), KGlobal::config(), KConfig\-Base::read\-Bool\-Entry(), and KAction::set\-Enabled().

Referenced by clear\-Filter(), set\-Mime\-Filter(), and set\-Name\-Filter().\index{KDirOperator@{KDir\-Operator}!back@{back}}
\index{back@{back}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::back ()\hspace{0.3cm}{\tt  [slot]}}\label{classKDirOperator_i0}


Goes one step back in the history and opens that url. 



Definition at line 736 of file kdiroperator.cpp.

References QPtr\-Stack::is\-Empty(), QPtr\-Stack::pop(), QPtr\-Stack::push(), and set\-URL().

Referenced by path\-Changed(), and setup\-Actions().\index{KDirOperator@{KDir\-Operator}!forward@{forward}}
\index{forward@{forward}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::forward ()\hspace{0.3cm}{\tt  [slot]}}\label{classKDirOperator_i1}


Goes one step forward in the history and opens that url. 



Definition at line 750 of file kdiroperator.cpp.

References QPtr\-Stack::is\-Empty(), QPtr\-Stack::pop(), QPtr\-Stack::push(), and set\-URL().

Referenced by setup\-Actions().\index{KDirOperator@{KDir\-Operator}!home@{home}}
\index{home@{home}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::home ()\hspace{0.3cm}{\tt  [slot]}}\label{classKDirOperator_i2}


Enters the home directory. 



Definition at line 774 of file kdiroperator.cpp.

References KURL::set\-Path(), and set\-URL().

Referenced by path\-Changed(), and setup\-Actions().\index{KDirOperator@{KDir\-Operator}!cdUp@{cdUp}}
\index{cdUp@{cdUp}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::cd\-Up ()\hspace{0.3cm}{\tt  [slot]}}\label{classKDirOperator_i3}


Goes one directory up from the current url. 



Definition at line 767 of file kdiroperator.cpp.

References KURL::cd(), and set\-URL().

Referenced by setup\-Actions().\index{KDirOperator@{KDir\-Operator}!updateDir@{updateDir}}
\index{updateDir@{updateDir}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::update\-Dir ()\hspace{0.3cm}{\tt  [slot]}}\label{classKDirOperator_i4}


to update the view after changing the settings 



Definition at line 684 of file kdiroperator.cpp.

References KDir\-Lister::emit\-Changes(), and KFile\-View::listing\-Completed().\index{KDirOperator@{KDir\-Operator}!rereadDir@{rereadDir}}
\index{rereadDir@{rereadDir}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::reread\-Dir ()\hspace{0.3cm}{\tt  [slot]}}\label{classKDirOperator_i5}


Re-reads the current url. 



Definition at line 691 of file kdiroperator.cpp.

References KDir\-Lister::open\-URL(), and path\-Changed().

Referenced by setup\-Actions().\index{KDirOperator@{KDir\-Operator}!mkdir@{mkdir}}
\index{mkdir@{mkdir}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::mkdir ()\hspace{0.3cm}{\tt  [slot]}}\label{classKDirOperator_i6}


Opens a dialog to create a new directory. 



Definition at line 385 of file kdiroperator.cpp.

References KInput\-Dialog::get\-Text(), KURL::path\-Or\-URL(), KIO::Rename\-Dlg::suggest\-Name(), and url().

Referenced by setup\-Actions().\index{KDirOperator@{KDir\-Operator}!deleteSelected@{deleteSelected}}
\index{deleteSelected@{deleteSelected}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::delete\-Selected ()\hspace{0.3cm}{\tt  [slot]}}\label{classKDirOperator_i7}


Deletes the currently selected files/directories. 



Definition at line 495 of file kdiroperator.cpp.

References del(), and KFile\-View::selected\-Items().

Referenced by setup\-Actions(), and trash\-Selected().\index{KDirOperator@{KDir\-Operator}!updateSelectionDependentActions@{updateSelectionDependentActions}}
\index{updateSelectionDependentActions@{updateSelectionDependentActions}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::update\-Selection\-Dependent\-Actions ()\hspace{0.3cm}{\tt  [slot]}}\label{classKDirOperator_i8}


Enables/disables actions that are selection dependent. 

Call this e.g. when you are about to show a popup menu using some of KDir\-Operators actions. 

Definition at line 255 of file kdiroperator.cpp.

References KAction\-Collection::action(), QPtr\-List::is\-Empty(), KFile\-View::selected\-Items(), and KAction::set\-Enabled().

Referenced by activated\-Menu().\index{KDirOperator@{KDir\-Operator}!makeCompletion@{makeCompletion}}
\index{makeCompletion@{makeCompletion}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KDir\-Operator::make\-Completion (const {\bf QString} \&)\hspace{0.3cm}{\tt  [slot]}}\label{classKDirOperator_i9}


Tries to complete the given string (only completes files). 



Definition at line 1198 of file kdiroperator.cpp.

References KFile\-View::clear\-Selection(), KCompletion::make\-Completion(), and prepare\-Completion\-Objects().\index{KDirOperator@{KDir\-Operator}!makeDirCompletion@{makeDirCompletion}}
\index{makeDirCompletion@{makeDirCompletion}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KDir\-Operator::make\-Dir\-Completion (const {\bf QString} \&)\hspace{0.3cm}{\tt  [slot]}}\label{classKDirOperator_i10}


Tries to complete the given string (only completes directores). 



Definition at line 1209 of file kdiroperator.cpp.

References KFile\-View::clear\-Selection(), KCompletion::make\-Completion(), and prepare\-Completion\-Objects().\index{KDirOperator@{KDir\-Operator}!trashSelected@{trashSelected}}
\index{trashSelected@{trashSelected}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::trash\-Selected ({\bf KAction::Activation\-Reason}, Qt::Button\-State)\hspace{0.3cm}{\tt  [slot]}}\label{classKDirOperator_i11}


Trashes the currently selected files/directories. 

\begin{Desc}
\item[Since:]3.4 \end{Desc}


Definition at line 558 of file kdiroperator.cpp.

References delete\-Selected(), KFile\-View::selected\-Items(), and trash().

Referenced by setup\-Actions().\index{KDirOperator@{KDir\-Operator}!resetCursor@{resetCursor}}
\index{resetCursor@{resetCursor}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::reset\-Cursor ()\hspace{0.3cm}{\tt  [protected, slot]}}\label{classKDirOperator_j0}


Restores the normal cursor after showing the busy-cursor. 

Also hides the progressbar. 

Definition at line 176 of file kdiroperator.cpp.

References QApplication::restore\-Override\-Cursor().

Referenced by close(), insert\-New\-Files(), set\-URL(), and $\sim$KDir\-Operator().\index{KDirOperator@{KDir\-Operator}!pathChanged@{pathChanged}}
\index{pathChanged@{pathChanged}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::path\-Changed ()\hspace{0.3cm}{\tt  [protected, slot]}}\label{classKDirOperator_j1}


Called after {\bf set\-URL()}{\rm (p.\,\pageref{classKDirOperator_a12})} to load the directory, update the history, etc. 



Definition at line 698 of file kdiroperator.cpp.

References back(), KCompletion::clear(), KFile\-View::clear(), QPtr\-List::clear(), KMessage\-Box::error(), home(), QPtr\-Stack::is\-Empty(), QApplication::restore\-Override\-Cursor(), QApplication::set\-Override\-Cursor(), and view\-Widget().

Referenced by reread\-Dir(), and set\-URL().\index{KDirOperator@{KDir\-Operator}!insertNewFiles@{insertNewFiles}}
\index{insertNewFiles@{insertNewFiles}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::insert\-New\-Files (const {\bf KFile\-Item\-List} \& {\em newone})\hspace{0.3cm}{\tt  [protected, slot]}}\label{classKDirOperator_j2}


Adds a new list of KFile\-Items to the view (coming from {\bf KDir\-Lister}{\rm (p.\,\pageref{classKDirLister})}). 



Definition at line 1133 of file kdiroperator.cpp.

References KFile\-View::add\-Item\-List(), QPtr\-List\-Iterator::current(), KFile\-View::ensure\-Item\-Visible(), KFile\-Item::is\-Dir(), KFile\-View::num\-Dirs(), KFile\-View::num\-Files(), reset\-Cursor(), KFile\-View::set\-Current\-Item(), QTimer::single\-Shot(), KURL::url(), and KFile\-Item::url().

Referenced by set\-Dir\-Lister().\index{KDirOperator@{KDir\-Operator}!itemDeleted@{itemDeleted}}
\index{itemDeleted@{itemDeleted}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::item\-Deleted ({\bf KFile\-Item} $\ast$)\hspace{0.3cm}{\tt  [protected, slot]}}\label{classKDirOperator_j3}


Removes the given {\bf KFile\-Item}{\rm (p.\,\pageref{classKFileItem})} item from the view (usually called from {\bf KDir\-Lister}{\rm (p.\,\pageref{classKDirLister})}). 



Definition at line 1164 of file kdiroperator.cpp.

References KFile\-View::num\-Dirs(), KFile\-View::num\-Files(), KFile\-View::remove\-Item(), and QPtr\-List::remove\-Ref().

Referenced by set\-Dir\-Lister().\index{KDirOperator@{KDir\-Operator}!selectDir@{selectDir}}
\index{selectDir@{selectDir}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::select\-Dir (const {\bf KFile\-Item} $\ast$ {\em item})\hspace{0.3cm}{\tt  [protected, slot]}}\label{classKDirOperator_j4}


Enters the directory specified by the given {\tt item}. 



Definition at line 1159 of file kdiroperator.cpp.

References set\-URL().\index{KDirOperator@{KDir\-Operator}!selectFile@{selectFile}}
\index{selectFile@{selectFile}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::select\-File (const {\bf KFile\-Item} $\ast$ {\em item})\hspace{0.3cm}{\tt  [protected, slot]}}\label{classKDirOperator_j5}


Emits file\-Selected( item ). 



Definition at line 1174 of file kdiroperator.cpp.

References QApplication::restore\-Override\-Cursor().\index{KDirOperator@{KDir\-Operator}!highlightFile@{highlightFile}}
\index{highlightFile@{highlightFile}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::highlight\-File (const {\bf KFile\-Item} $\ast$ {\em i})\hspace{0.3cm}{\tt  [inline, protected, slot]}}\label{classKDirOperator_j6}


Emits file\-Highlighted( i ). 



Definition at line 753 of file kdiroperator.h.\index{KDirOperator@{KDir\-Operator}!activatedMenu@{activatedMenu}}
\index{activatedMenu@{activatedMenu}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::activated\-Menu (const {\bf KFile\-Item} $\ast$, const {\bf QPoint} \& {\em pos})\hspace{0.3cm}{\tt  [protected, virtual, slot]}}\label{classKDirOperator_j7}


Called upon right-click to activate the popupmenu. 



Definition at line 247 of file kdiroperator.cpp.

References KAction\-Menu::popup(), setup\-Menu(), and update\-Selection\-Dependent\-Actions().\index{KDirOperator@{KDir\-Operator}!sortByName@{sortByName}}
\index{sortByName@{sortByName}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::sort\-By\-Name ()\hspace{0.3cm}{\tt  [inline, protected, slot]}}\label{classKDirOperator_j8}


Changes sorting to sort by name. 



Definition at line 763 of file kdiroperator.h.\index{KDirOperator@{KDir\-Operator}!sortBySize@{sortBySize}}
\index{sortBySize@{sortBySize}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::sort\-By\-Size ()\hspace{0.3cm}{\tt  [inline, protected, slot]}}\label{classKDirOperator_j9}


Changes sorting to sort by size. 



Definition at line 768 of file kdiroperator.h.\index{KDirOperator@{KDir\-Operator}!sortByDate@{sortByDate}}
\index{sortByDate@{sortByDate}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::sort\-By\-Date ()\hspace{0.3cm}{\tt  [inline, protected, slot]}}\label{classKDirOperator_j10}


Changes sorting to sort by date. 



Definition at line 773 of file kdiroperator.h.\index{KDirOperator@{KDir\-Operator}!sortReversed@{sortReversed}}
\index{sortReversed@{sortReversed}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::sort\-Reversed ()\hspace{0.3cm}{\tt  [inline, protected, slot]}}\label{classKDirOperator_j11}


Changes sorting to reverse sorting. 



Definition at line 778 of file kdiroperator.h.\index{KDirOperator@{KDir\-Operator}!toggleDirsFirst@{toggleDirsFirst}}
\index{toggleDirsFirst@{toggleDirsFirst}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::toggle\-Dirs\-First ()\hspace{0.3cm}{\tt  [inline, protected, slot]}}\label{classKDirOperator_j12}


Toggles showing directories first / having them sorted like files. 



Definition at line 783 of file kdiroperator.h.\index{KDirOperator@{KDir\-Operator}!toggleIgnoreCase@{toggleIgnoreCase}}
\index{toggleIgnoreCase@{toggleIgnoreCase}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::toggle\-Ignore\-Case ()\hspace{0.3cm}{\tt  [inline, protected, slot]}}\label{classKDirOperator_j13}


Toggles case sensitive / case insensitive sorting. 



Definition at line 788 of file kdiroperator.h.\index{KDirOperator@{KDir\-Operator}!slotCompletionMatch@{slotCompletionMatch}}
\index{slotCompletionMatch@{slotCompletionMatch}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::slot\-Completion\-Match (const {\bf QString} \& {\em match})\hspace{0.3cm}{\tt  [protected, slot]}}\label{classKDirOperator_j14}


Tries to make the given {\tt match} as current item in the view and emits completion( match ). 



Definition at line 1238 of file kdiroperator.cpp.

References set\-Current\-Item().

Referenced by KDir\-Operator().\index{KDirOperator@{KDir\-Operator}!viewChanged@{viewChanged}}
\index{viewChanged@{viewChanged}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::view\-Changed ({\bf KFile\-View} $\ast$ {\em new\-View})\hspace{0.3cm}{\tt  [signal]}}\label{classKDirOperator_l4}


Emitted whenever the current fileview is changed, either by an explicit call to {\bf set\-View()}{\rm (p.\,\pageref{classKDirOperator_a14})} or by the user selecting a different view thru the GUI. 



Referenced by set\-View().\index{KDirOperator@{KDir\-Operator}!fileHighlighted@{fileHighlighted}}
\index{fileHighlighted@{fileHighlighted}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::file\-Highlighted (const {\bf KFile\-Item} $\ast$ {\em item})\hspace{0.3cm}{\tt  [signal]}}\label{classKDirOperator_l5}


Emitted when a file is highlighted or generally the selection changes in multiselection mode. 

In the latter case, {\tt item} is 0L. You can access the selected items with {\bf selected\-Items()}{\rm (p.\,\pageref{classKDirOperator_a26})}. \index{KDirOperator@{KDir\-Operator}!dropped@{dropped}}
\index{dropped@{dropped}!KDirOperator@{KDir\-Operator}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDir\-Operator::dropped (const {\bf KFile\-Item} $\ast$ {\em item}, {\bf QDrop\-Event} $\ast$ {\em event}, const {\bf KURL::List} \& {\em urls})\hspace{0.3cm}{\tt  [signal]}}\label{classKDirOperator_l8}


Emitted when files are dropped. 

Dropping files is disabled by default. You need to enable it with {\bf set\-Accept\-Drops()}{\rm (p.\,\pageref{classKDirOperator_a48})} \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em item}]the item on which the drop occurred or 0. \item[{\em event}]the drop event itself. \item[{\em urls}]the urls that where dropped. \end{description}
\end{Desc}
\begin{Desc}
\item[Since:]3.2 \end{Desc}


The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
kdiroperator.h\item 
kdiroperator.cpp\end{CompactItemize}
