\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=57pt]{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
 \}
\begin{CompactList}\small\item\em The various action types. \item\end{CompactList}\end{CompactItemize}
\subsection*{Public Slots}
\begin{CompactItemize}
\item 
void {\bf back} ()
\begin{CompactList}\small\item\em Goes one step back in the history and opens that url. \item\end{CompactList}\item 
void {\bf forward} ()
\begin{CompactList}\small\item\em Goes one step forward in the history and opens that url. \item\end{CompactList}\item 
void {\bf home} ()
\begin{CompactList}\small\item\em Enters the home directory. \item\end{CompactList}\item 
void {\bf cd\-Up} ()
\begin{CompactList}\small\item\em Goes one directory up from the current url. \item\end{CompactList}\item 
void {\bf update\-Dir} ()
\begin{CompactList}\small\item\em to update the view after changing the settings \item\end{CompactList}\item 
void {\bf reread\-Dir} ()
\begin{CompactList}\small\item\em Re-reads the current url. \item\end{CompactList}\item 
void {\bf mkdir} ()
\begin{CompactList}\small\item\em Opens a dialog to create a new directory. \item\end{CompactList}\item 
void {\bf delete\-Selected} ()
\begin{CompactList}\small\item\em Deletes the currently selected files/directories. \item\end{CompactList}\item 
void {\bf update\-Selection\-Dependent\-Actions} ()
\begin{CompactList}\small\item\em Enables/disables actions that are selection dependent. \item\end{CompactList}\item 
{\bf QString} {\bf make\-Completion} (const  {\bf QString} \&)
\begin{CompactList}\small\item\em Tries to complete the given string (only completes files). \item\end{CompactList}\item 
{\bf QString} {\bf make\-Dir\-Completion} (const  {\bf QString} \&)
\begin{CompactList}\small\item\em Tries to complete the given string (only completes directores). \item\end{CompactList}\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)
\begin{CompactList}\small\item\em Emitted whenever the current fileview is changed, either by an explicit call to {\bf set\-View}{\rm (p.\,\pageref{classKDirOperator_a13})}() or by the user selecting a different view thru the GUI. \item\end{CompactList}\item 
void {\bf file\-Highlighted} (const  {\bf KFile\-Item} $\ast$item)
\begin{CompactList}\small\item\em Emitted when a file is highlighted or generally the selection changes in multiselection mode. \item\end{CompactList}\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}

\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)
\begin{CompactList}\small\item\em Constructs the KDir\-Operator with no initial view. \item\end{CompactList}\item 
virtual {\bf $\sim$KDir\-Operator} ()
\begin{CompactList}\small\item\em Destroys the KDir\-Operator. \item\end{CompactList}\item 
void {\bf set\-Show\-Hidden\-Files} (bool s)
\begin{CompactList}\small\item\em Enables/disables showing hidden files. \item\end{CompactList}\item 
bool {\bf show\-Hidden\-Files} () const 
\item 
void {\bf close} ()
\begin{CompactList}\small\item\em Stops loading immediately. \item\end{CompactList}\item 
void {\bf set\-Name\-Filter} (const  {\bf QString} \&filter)
\begin{CompactList}\small\item\em Sets a filter like \char`\"{}$\ast$.cpp $\ast$.h $\ast$.o\char`\"{}. \item\end{CompactList}\item 
const  {\bf QString} \& {\bf name\-Filter} () const 
\item 
void {\bf set\-Mime\-Filter} (const  {\bf QString\-List} \&mimetypes)
\begin{CompactList}\small\item\em Sets a list of mimetypes as filter. \item\end{CompactList}\item 
{\bf QString\-List} {\bf mime\-Filter} () const 
\item 
void {\bf clear\-Filter} ()
\begin{CompactList}\small\item\em Clears both the namefilter and mimetype filter, so that all files and directories will be shown. \item\end{CompactList}\item 
{\bf KURL} {\bf url} () const 
\item 
void {\bf set\-URL} (const  {\bf KURL} \&url, bool clearforward)
\begin{CompactList}\small\item\em Sets a new url to list. \item\end{CompactList}\item 
void {\bf set\-Current\-Item} (const  {\bf QString} \&filename)
\begin{CompactList}\small\item\em Clears the current selection and attempts to set {\tt filename} the current file. \item\end{CompactList}\item 
void {\bf set\-View} ({\bf KFile\-View} $\ast$view)
\begin{CompactList}\small\item\em Sets a new {\bf KFile\-View}{\rm (p.\,\pageref{classKFileView})} to be used for showing and browsing files. \item\end{CompactList}\item 
{\bf KFile\-View} $\ast$ {\bf view} () const 
\item 
{\bf QWidget} $\ast$ {\bf view\-Widget} () const 
\begin{CompactList}\small\item\em Returns the widget of the current view. \item\end{CompactList}\item 
void {\bf set\-View} (KFile::File\-View view)
\begin{CompactList}\small\item\em Sets one of the predefined fileviews. \item\end{CompactList}\item 
void {\bf set\-Sorting} (QDir::Sort\-Spec)
\begin{CompactList}\small\item\em Sets the way to sort files and directories. \item\end{CompactList}\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)
\begin{CompactList}\small\item\em 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}
\item\end{CompactList}\item 
{\bf KFile::Mode} {\bf mode} () const 
\item 
void {\bf set\-Preview\-Widget} (const  {\bf QWidget} $\ast$w)
\begin{CompactList}\small\item\em Sets a preview-widget to be shown next to the file-view. \item\end{CompactList}\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 
\begin{CompactList}\small\item\em an accessor to a collection of all available Actions. \item\end{CompactList}\item 
void {\bf set\-View\-Config} ({\bf KConfig} $\ast$config, const  {\bf QString} \&group)
\begin{CompactList}\small\item\em Sets the config object and the to be used group in KDir\-Operator. \item\end{CompactList}\item 
{\bf KConfig} $\ast$ {\bf view\-Config} ()
\begin{CompactList}\small\item\em Returns the {\bf KConfig} object used for saving and restoring view's configuration. \item\end{CompactList}\item 
{\bf QString} {\bf view\-Config\-Group} () const 
\begin{CompactList}\small\item\em Returns the group name used for saving and restoring view's configuration. \item\end{CompactList}\item 
virtual void {\bf read\-Config} ({\bf KConfig} $\ast$, const  {\bf QString} \&group=QString::null)
\begin{CompactList}\small\item\em Reads the default settings for a view, i.e. \item\end{CompactList}\item 
virtual void {\bf write\-Config} ({\bf KConfig} $\ast$, const  {\bf QString} \&group=QString::null)
\begin{CompactList}\small\item\em Saves the current settings like sorting, simple or detailed view. \item\end{CompactList}\item 
void {\bf set\-Only\-Double\-Click\-Selects\-Files} (bool enable)
\begin{CompactList}\small\item\em This is a {\bf KFile\-Dialog}{\rm (p.\,\pageref{classKFileDialog})} specific hack: we want to select directories with single click, but not files. \item\end{CompactList}\item 
bool {\bf only\-Double\-Click\-Selects\-Files} () const 
\item 
bool {\bf mkdir} (const  {\bf QString} \&directory, bool enter\-Directory=true)
\begin{CompactList}\small\item\em Creates the given directory/url. \item\end{CompactList}\item 
{\bf KIO::Delete\-Job} $\ast$ {\bf del} (const  {\bf KFile\-Item\-List} \&items, bool ask=true, bool show\-Progress=true)
\begin{CompactList}\small\item\em Starts and returns a {\bf KIO::Delete\-Job}{\rm (p.\,\pageref{classKIO_1_1DeleteJob})} to delete the given {\tt items}. \item\end{CompactList}\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)
\begin{CompactList}\small\item\em Starts and returns a {\bf KIO::Delete\-Job}{\rm (p.\,\pageref{classKIO_1_1DeleteJob})} to delete the given {\tt items}. \item\end{CompactList}\item 
void {\bf clear\-History} ()
\begin{CompactList}\small\item\em Clears the forward and backward history. \item\end{CompactList}\item 
void {\bf set\-Enable\-Dir\-Highlighting} (bool enable)
\begin{CompactList}\small\item\em When going up in the directory hierarchy, KDir\-Operator can highlight the directory that was just left. \item\end{CompactList}\item 
bool {\bf dir\-Highlighting} () const 
\item 
bool {\bf dir\-Only\-Mode} () const 
\item 
void {\bf setup\-Menu} (int which\-Actions)
\begin{CompactList}\small\item\em Sets up the action menu. \item\end{CompactList}\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
bool {\bf dir\-Only\-Mode} (uint mode)\label{classKDirOperator_e0}

\end{CompactItemize}
\subsection*{Protected Slots}
\begin{CompactItemize}
\item 
void {\bf reset\-Cursor} ()
\begin{CompactList}\small\item\em Restores the normal cursor after showing the busy-cursor. \item\end{CompactList}\item 
void {\bf path\-Changed} ()
\begin{CompactList}\small\item\em Called after {\bf set\-URL}{\rm (p.\,\pageref{classKDirOperator_a11})}() to load the directory, update the history, etc. \item\end{CompactList}\item 
void {\bf insert\-New\-Files} (const  {\bf KFile\-Item\-List} \&newone)
\begin{CompactList}\small\item\em Adds a new list of KFile\-Items to the view (coming from {\bf KDir\-Lister}{\rm (p.\,\pageref{classKDirLister})}). \item\end{CompactList}\item 
void {\bf item\-Deleted} ({\bf KFile\-Item} $\ast$)
\begin{CompactList}\small\item\em Removes the given {\bf KFile\-Item}{\rm (p.\,\pageref{classKFileItem})} item from the view (usually called from {\bf KDir\-Lister}{\rm (p.\,\pageref{classKDirLister})}). \item\end{CompactList}\item 
void {\bf select\-Dir} (const  {\bf KFile\-Item} $\ast$item)
\begin{CompactList}\small\item\em Enters the directory specified by the given {\tt item}. \item\end{CompactList}\item 
void {\bf select\-File} (const  {\bf KFile\-Item} $\ast$item)
\begin{CompactList}\small\item\em Emits file\-Selected( item ). \item\end{CompactList}\item 
void {\bf highlight\-File} (const  {\bf KFile\-Item} $\ast$i)
\begin{CompactList}\small\item\em Emits file\-Highlighted( i ). \item\end{CompactList}\item 
virtual void {\bf activated\-Menu} (const  {\bf KFile\-Item} $\ast$, const  {\bf QPoint} \&{\bf pos})
\begin{CompactList}\small\item\em Called upon right-click to activate the popupmenu. \item\end{CompactList}\item 
void {\bf sort\-By\-Name} ()
\begin{CompactList}\small\item\em Changes sorting to sort by name. \item\end{CompactList}\item 
void {\bf sort\-By\-Size} ()
\begin{CompactList}\small\item\em Changes sorting to sort by size. \item\end{CompactList}\item 
void {\bf sort\-By\-Date} ()
\begin{CompactList}\small\item\em Changes sorting to sort by date. \item\end{CompactList}\item 
void {\bf sort\-Reversed} ()
\begin{CompactList}\small\item\em Changes sorting to reverse sorting. \item\end{CompactList}\item 
void {\bf toggle\-Dirs\-First} ()
\begin{CompactList}\small\item\em Toggles showing directories first / having them sorted like files. \item\end{CompactList}\item 
void {\bf toggle\-Ignore\-Case} ()
\begin{CompactList}\small\item\em Toggles case sensitive / case insensitive sorting. \item\end{CompactList}\item 
void {\bf slot\-Completion\-Match} (const  {\bf QString} \&match)
\begin{CompactList}\small\item\em Tries to make the given {\tt match} as current item in the view and emits completion( match ). \item\end{CompactList}\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)
\begin{CompactList}\small\item\em A view factory for creating predefined fileviews. \item\end{CompactList}\item 
void {\bf set\-Dir\-Lister} ({\bf KDir\-Lister} $\ast$lister)
\begin{CompactList}\small\item\em Sets a custom KFile\-Reader to list directories. \item\end{CompactList}\item 
void {\bf resize\-Event} ({\bf QResize\-Event} $\ast$)\label{classKDirOperator_b2}

\item 
void {\bf setup\-Actions} ()
\begin{CompactList}\small\item\em Sets up all the actions. \item\end{CompactList}\item 
void {\bf update\-Sort\-Actions} ()
\begin{CompactList}\small\item\em Updates the sorting-related actions to comply with the current sorting. \item\end{CompactList}\item 
void {\bf update\-View\-Actions} ()
\begin{CompactList}\small\item\em Updates the view-related actions to comply with the current KFile::File\-View. \item\end{CompactList}\item 
void {\bf setup\-Menu} ()
\begin{CompactList}\small\item\em Sets up the context-menu with all the necessary actions. \item\end{CompactList}\item 
void {\bf prepare\-Completion\-Objects} ()
\begin{CompactList}\small\item\em Synchronizes the completion objects with the entries of the currently listed url. \item\end{CompactList}\item 
bool {\bf check\-Preview\-Support} ()
\begin{CompactList}\small\item\em 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_a8})}() and {\bf name\-Filter}{\rm (p.\,\pageref{classKDirOperator_a6})}() into account Enables/disables the preview-action accordingly. \item\end{CompactList}\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_a24})}()). {\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\"{o}rn Sahlstr\"{o}m $<${\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: \small\begin{alltt}
   KDirOperator *op = new KDirOperator( {\bf 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({\bf fileHighlighted(const KFileItem *)}{\rm (p.\,\pageref{classKDirOperator_l5})}),
           SLOT({\bf fileHighlighted(const KFileItem *)}{\rm (p.\,\pageref{classKDirOperator_l5})}));
   connect(op, SIGNAL(fileSelected(const KFileItem *)),
           SLOT(fileSelected(const KFileItem *)));
   connect(op, SIGNAL(finishedLoading()),
           SLOT(slotLoadingFinished()));\end{alltt}\normalsize 


\small\begin{alltt}   op-$>$readConfig( {\bf KGlobal::config()}, "Your KDiroperator ConfigGroup" );
   op-$>$setView(KFile::Default);
 \end{alltt}\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_a35})} 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_a36})}).

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




Definition at line 98 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 107 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} = {\bf KURL}(), {\bf QWidget} $\ast$ {\em parent} = 0, const char $\ast$ {\em name} = 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_a35})}() to load the user's configuration and then {\bf set\-View}{\rm (p.\,\pageref{classKDirOperator_a13})} to explicitly set a view.

This constructor doesn't start loading the url, {\bf set\-View}{\rm (p.\,\pageref{classKDirOperator_a13})} will do it. 

Definition at line 93 of file kdiroperator.cpp.

References KURL::add\-Path(), QString::append(), QDir::current\-Dir\-Path(), QString::from\-Latin1(), QWidget::height(), QString::is\-Empty(), KURL::is\-Empty(), KURL::protocol(), QPtr\-Stack$<$ KURL $>$::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 146 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.

References KToggle\-Action::set\-Checked().\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.

References KToggle\-Action::is\-Checked().\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 470 of file kdiroperator.cpp.

References KCompletion::clear(), QPtr\-List::clear(), reset\-Cursor(), and KDir\-Lister::stop().\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_a5}


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_a21})} 

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


Definition at line 683 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_a6}


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


Definition at line 154 of file kdiroperator.h.

References KDir\-Lister::name\-Filter().\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_a7}


Sets a list of mimetypes as filter. 

Only files of those mimetypes will be shown.

Example: \small\begin{alltt}
 {\bf QStringList} filter;
 filter $<$$<$ "text/html" $<$$<$ "image/png" $<$$<$ "inode/directory";
 dirOperator-$>$setMimefilter( filter );
 \end{alltt}\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_a23})} 

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


Definition at line 689 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_a8}


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


Definition at line 178 of file kdiroperator.h.

References KDir\-Lister::mime\-Filters().\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_a9}


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_a7})} 

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


Definition at line 676 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_a10}


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


Definition at line 659 of file kdiroperator.cpp.

Referenced by KFile\-Dialog::base\-URL(), del(), is\-Root(), mkdir(), KFile\-Dialog::read\-Config(), KFile\-Dialog::set\-Selection(), set\-View(), and KFile\-Dialog::tokenize().\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_a11}


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. \end{description}
\end{Desc}


Definition at line 533 of file kdiroperator.cpp.

References KURL::cd(), QPtr\-Stack$<$ KURL $>$::clear(), KURL::cmp(), KMessage\-Box::error(), QString::from\-Latin1(), QDir::home\-Dir\-Path(), QPtr\-Stack$<$ KURL $>$::is\-Empty(), KURL::is\-Malformed(), is\-Root(), KDir\-Lister::open\-URL(), KURL::path(), path\-Changed(), QPtr\-Stack$<$ KURL $>$::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_a12}


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 1049 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_a13}


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_a10})}() 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_a14})} \end{Desc}


Definition at line 964 of file kdiroperator.cpp.

References QWidget::set\-Focus\-Proxy(), KFile\-View::set\-Only\-Double\-Click\-Selects\-Files(), KFile\-View::set\-Sorting(), 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_a14}


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


Definition at line 223 of file kdiroperator.h.\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_a15}


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 229 of file kdiroperator.h.

References KFile\-View::widget().

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_a16}


Sets one of the predefined fileviews. 

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


Definition at line 815 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_a17}


Sets the way to sort files and directories. 



Definition at line 164 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_a18}


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


Definition at line 245 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_a19}


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


Definition at line 250 of file kdiroperator.h.

References KURL::path(), and url().

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_a20}


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


Definition at line 255 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_a21}


\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 1471 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_a22}


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 951 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_a23}


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


Definition at line 946 of file kdiroperator.cpp.

References KFile::Mode.

Referenced by KFile\-Dialog::init(), 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_a24}


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 244 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_a25}


\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 291 of file kdiroperator.h.

References KFile\-View::selected\-Items().

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_a26}


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


Definition at line 298 of file kdiroperator.h.

References KFile\-View::is\-Selected().\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_a27}


\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 260 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_a28}


\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 265 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_a29}


\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 322 of file kdiroperator.h.

Referenced by KFile\-Dialog::init().\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_a30}


\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 334 of file kdiroperator.h.

Referenced by KFile\-Dialog::init().\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_a31}


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 \small\begin{alltt}{\bf actionCollection()}{\rm (p.\,\pageref{classKDirOperator_a31})}-$>$action( "up" )-$>$plug( someToolBar );\end{alltt}\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 381 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_a32}


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_a33})} 

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


Definition at line 1569 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_a33}


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 1575 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_a34}


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 1580 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} = QString::null)\hspace{0.3cm}{\tt  [virtual]}}\label{classKDirOperator_a35}


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 \small\begin{alltt}
 setView( KFile::Default )
 \end{alltt}\normalsize 
 to apply it.

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

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

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


Definition at line 1288 of file kdiroperator.cpp.

References QString::from\-Latin1(), KConfig\-Base::group(), QString::is\-Empty(), KStd\-Accel::name(), KConfig\-Base::read\-Bool\-Entry(), KConfig\-Base::read\-Entry(), KToggle\-Action::set\-Checked(), KConfig\-Base::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} = QString::null)\hspace{0.3cm}{\tt  [virtual]}}\label{classKDirOperator_a36}


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

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

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


Definition at line 1346 of file kdiroperator.cpp.

References KAction\-Collection::action(), QString::from\-Latin1(), KConfig\-Base::group(), KToggle\-Action::is\-Checked(), QString::is\-Empty(), KAction::is\-Enabled(), KConfig\-Base::set\-Group(), QWidget::style(), and KConfig\-Base::write\-Entry().

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_a37}


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 1415 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_a38}


\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_a37})} \end{Desc}


Definition at line 1422 of file kdiroperator.cpp.\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} = true)}\label{classKDirOperator_a39}


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 376 of file kdiroperator.cpp.

References KURL::add\-Path(), KURL::is\-Local\-File(), KIO::Net\-Access::mkdir(), KURL::path(), set\-URL(), KMessage\-Box::sorry(), 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} = true, bool {\em show\-Progress} = true)}\label{classKDirOperator_a40}


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 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 402 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} = true, bool {\em show\-Progress} = 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 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 408 of file kdiroperator.cpp.

References QValue\-List$<$ KURL $>$::append(), QPtr\-List::count(), QPtr\-List\-Iterator::current(), KIO::del(), KMessage\-Box::information(), QPtr\-List::is\-Empty(), KURL::is\-Local\-File(), KURL::path(), KURL::pretty\-URL(), KIO::Job::set\-Auto\-Error\-Handling\-Enabled(), 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_a42}


Clears the forward and backward history. 



Definition at line 1476 of file kdiroperator.cpp.

References QPtr\-Stack$<$ KURL $>$::clear(), and KAction::set\-Enabled().

Referenced by KFile\-Dialog::get\-Existing\-Directory(), KFile\-Dialog::get\-Existing\-URL(), KFile\-Dialog::get\-Open\-File\-Name(), KFile\-Dialog::get\-Open\-File\-Names(), 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_a43}


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 1506 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_a44}


\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 1511 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_a45}


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


Definition at line 521 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_a46}


Sets up the action menu. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em action\-Types}]is an value of OR'd {\bf Action\-Types}{\rm (p.\,\pageref{classKDirOperator_w5})} that controls which actions to show in the action menu \end{description}
\end{Desc}


Definition at line 1212 of file kdiroperator.cpp.

References KAction\-Collection::action(), QPopup\-Menu::clear(), KAction\-Menu::insert(), and KAction\-Menu::popup\-Menu().

Referenced by KFile\-Dialog::init().\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 {\bf set\-View}{\rm (p.\,\pageref{classKDirOperator_a13})} , 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_a13})} \end{Desc}


Definition at line 769 of file kdiroperator.cpp.

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

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 KFile\-Reader to list directories. 



Definition at line 978 of file kdiroperator.cpp.

References insert\-New\-Files(), item\-Deleted(), and KDir\-Lister::set\-Auto\-Update().

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 1112 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\-Exclusive\-Group(), KAction::set\-Icon(), KAction::set\-Shortcut(), KAction::set\-Text(), 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_a18})} \end{Desc}


Definition at line 1260 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 1277 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 1207 of file kdiroperator.cpp.

Referenced by 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 1088 of file kdiroperator.cpp.

References KCompletion::add\-Item(), QPtr\-List\-Iterator::current(), 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_a8})}() and {\bf name\-Filter}{\rm (p.\,\pageref{classKDirOperator_a6})}() into account Enables/disables the preview-action accordingly. 



Definition at line 695 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 633 of file kdiroperator.cpp.

References QPtr\-Stack$<$ KURL $>$::is\-Empty(), QPtr\-Stack$<$ KURL $>$::pop(), QPtr\-Stack$<$ KURL $>$::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 647 of file kdiroperator.cpp.

References QPtr\-Stack$<$ KURL $>$::is\-Empty(), QPtr\-Stack$<$ KURL $>$::pop(), QPtr\-Stack$<$ KURL $>$::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 671 of file kdiroperator.cpp.

References QDir::home\-Dir\-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 664 of file kdiroperator.cpp.

References KURL::cd(), QString::from\-Latin1(), 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 581 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 588 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 365 of file kdiroperator.cpp.

References QDialog::exec(), QString::from\-Latin1(), KDialog::set\-Caption(), KLine\-Edit\-Dlg::text(), 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 460 of file kdiroperator.cpp.

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

Referenced by setup\-Actions().\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 236 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 1066 of file kdiroperator.cpp.

References KFile\-View::clear\-Selection(), QString::is\-Empty(), 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 1077 of file kdiroperator.cpp.

References KFile\-View::clear\-Selection(), QString::is\-Empty(), KCompletion::make\-Completion(), and prepare\-Completion\-Objects().\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 172 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_a11})}() to load the directory, update the history, etc. 



Definition at line 595 of file kdiroperator.cpp.

References back(), KCompletion::clear(), KFile\-View::clear(), QPtr\-List::clear(), KMessage\-Box::error(), home(), QPtr\-Stack$<$ KURL $>$::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 1004 of file kdiroperator.cpp.

References KFile\-View::add\-Item\-List(), QPtr\-List\-Iterator::current(), KFile\-View::ensure\-Item\-Visible(), KFile\-Item::is\-Dir(), QPtr\-List::is\-Empty(), 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 1035 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 1030 of file kdiroperator.cpp.

References set\-URL(), and KFile\-Item::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 1042 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 697 of file kdiroperator.h.

References file\-Highlighted().\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 229 of file kdiroperator.cpp.

References KAction\-Menu::popup(), 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 707 of file kdiroperator.h.

References KToggle\-Action::set\-Checked().\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 712 of file kdiroperator.h.

References KToggle\-Action::set\-Checked().\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 717 of file kdiroperator.h.

References KToggle\-Action::set\-Checked().\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 722 of file kdiroperator.h.

References KToggle\-Action::is\-Checked(), and KToggle\-Action::set\-Checked().\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 727 of file kdiroperator.h.

References KToggle\-Action::is\-Checked(), and KToggle\-Action::set\-Checked().\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 732 of file kdiroperator.h.

References KToggle\-Action::is\-Checked(), and KToggle\-Action::set\-Checked().\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 1106 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_a13})}() 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_a25})}(). 

Referenced by highlight\-File().

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