\section{KFile\-Dialog Class Reference}
\label{classKFileDialog}\index{KFileDialog@{KFileDialog}}
Provides a user (and developer) friendly way to select files and directories. A file selection dialog.  


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

Inheritance diagram for KFile\-Dialog:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=72pt]{classKFileDialog__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KFile\-Dialog:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=240pt]{classKFileDialog__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{CompactItemize}
\item 
enum {\bf Operation\-Mode} \{ {\bf Other} =  0, 
{\bf Opening}, 
{\bf Saving}
 \}
\end{CompactItemize}
\subsection*{Signals}
\begin{CompactItemize}
\item 
void {\bf file\-Selected} (const {\bf QString} \&)
\item 
void {\bf file\-Highlighted} (const {\bf QString} \&)
\item 
void {\bf selection\-Changed} ()
\item 
void {\bf filter\-Changed} (const {\bf QString} \&filter)
\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KFile\-Dialog} (const {\bf QString} \&start\-Dir, const {\bf QString} \&filter, {\bf QWidget} $\ast$parent, const char $\ast$name, bool modal)
\item 
{\bf KFile\-Dialog} (const {\bf QString} \&start\-Dir, const {\bf QString} \&filter, {\bf QWidget} $\ast$parent, const char $\ast$name, bool modal, {\bf QWidget} $\ast$widget)
\item 
{\bf $\sim$KFile\-Dialog} ()
\item 
{\bf KURL} {\bf selected\-URL} () const 
\item 
{\bf KURL::List} {\bf selected\-URLs} () const 
\item 
{\bf KURL} {\bf base\-URL} () const 
\item 
{\bf QString} {\bf selected\-File} () const 
\item 
{\bf QString\-List} {\bf selected\-Files} () const 
\item 
void {\bf set\-URL} (const {\bf KURL} \&url, bool clearforward=true)
\item 
void {\bf set\-Selection} (const {\bf QString} \&name)
\item 
void {\bf set\-Operation\-Mode} ({\bf KFile\-Dialog::Operation\-Mode})
\item 
{\bf Operation\-Mode} {\bf operation\-Mode} () const 
\item 
void {\bf set\-Keep\-Location} (bool keep)
\item 
bool {\bf keeps\-Location} () const 
\item 
void {\bf set\-Filter} (const {\bf QString} \&filter)
\item 
{\bf QString} {\bf current\-Filter} () const 
\item 
void {\bf set\-Filter\-Mime\-Type} (const {\bf QString} \&label, const {\bf KMime\-Type::List} \&types, const {\bf KMime\-Type::Ptr} \&default\-Type) KDE\_\-DEPRECATED
\item 
{\bf KMime\-Type::Ptr} {\bf current\-Filter\-Mime\-Type} ()
\item 
void {\bf set\-Mime\-Filter} (const {\bf QString\-List} \&types, const {\bf QString} \&default\-Type=QString::null)
\item 
{\bf QString} {\bf current\-Mime\-Filter} () const 
\item 
void {\bf clear\-Filter} ()
\item 
void {\bf set\-Preview\-Widget} (const {\bf QWidget} $\ast$w) KDE\_\-DEPRECATED
\item 
void {\bf set\-Preview\-Widget} (const {\bf KPreview\-Widget\-Base} $\ast$w)
\item 
virtual void {\bf show} ()\label{classKFileDialog_a23}

\item 
void {\bf set\-Mode} ({\bf KFile::Mode} m)
\item 
void {\bf set\-Mode} (unsigned int m)
\item 
{\bf KFile::Mode} {\bf mode} () const 
\item 
void {\bf set\-Location\-Label} (const {\bf QString} \&text)
\item 
{\bf KTool\-Bar} $\ast$ {\bf tool\-Bar} () const 
\item 
{\bf KPush\-Button} $\ast$ {\bf ok\-Button} () const 
\item 
{\bf KPush\-Button} $\ast$ {\bf cancel\-Button} () const 
\item 
{\bf KURLBar} $\ast$ {\bf speed\-Bar} ()
\item 
{\bf KAction\-Collection} $\ast$ {\bf action\-Collection} () const 
\item 
int {\bf path\-Combo\-Index} ()
\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
static {\bf QString} {\bf get\-Open\-File\-Name} (const {\bf QString} \&start\-Dir=QString::null, const {\bf QString} \&filter=QString::null, {\bf QWidget} $\ast$parent=0, const {\bf QString} \&caption=QString::null)
\item 
static {\bf QString} {\bf get\-Open\-File\-Name\-WId} (const {\bf QString} \&start\-Dir, const {\bf QString} \&filter, WId parent\_\-id, const {\bf QString} \&caption)
\item 
static {\bf QString\-List} {\bf get\-Open\-File\-Names} (const {\bf QString} \&start\-Dir=QString::null, const {\bf QString} \&filter=QString::null, {\bf QWidget} $\ast$parent=0, const {\bf QString} \&caption=QString::null)
\item 
static {\bf KURL} {\bf get\-Open\-URL} (const {\bf QString} \&start\-Dir=QString::null, const {\bf QString} \&filter=QString::null, {\bf QWidget} $\ast$parent=0, const {\bf QString} \&caption=QString::null)
\item 
static {\bf KURL::List} {\bf get\-Open\-URLs} (const {\bf QString} \&start\-Dir=QString::null, const {\bf QString} \&filter=QString::null, {\bf QWidget} $\ast$parent=0, const {\bf QString} \&caption=QString::null)
\item 
static {\bf QString} {\bf get\-Save\-File\-Name} (const {\bf QString} \&start\-Dir=QString::null, const {\bf QString} \&filter=QString::null, {\bf QWidget} $\ast$parent=0, const {\bf QString} \&caption=QString::null)
\item 
static {\bf QString} {\bf get\-Save\-File\-Name\-WId} (const {\bf QString} \&dir, const {\bf QString} \&filter, WId parent\_\-id, const {\bf QString} \&caption)
\item 
static {\bf KURL} {\bf get\-Save\-URL} (const {\bf QString} \&start\-Dir=QString::null, const {\bf QString} \&filter=QString::null, {\bf QWidget} $\ast$parent=0, const {\bf QString} \&caption=QString::null)
\item 
static {\bf QString} {\bf get\-Existing\-Directory} (const {\bf QString} \&start\-Dir=QString::null, {\bf QWidget} $\ast$parent=0, const {\bf QString} \&caption=QString::null)
\item 
static {\bf KURL} {\bf get\-Existing\-URL} (const {\bf QString} \&start\-Dir=QString::null, {\bf QWidget} $\ast$parent=0, const {\bf QString} \&caption=QString::null)
\item 
static {\bf KURL} {\bf get\-Image\-Open\-URL} (const {\bf QString} \&start\-Dir=QString::null, {\bf QWidget} $\ast$parent=0, const {\bf QString} \&caption=QString::null)
\item 
static {\bf KURL} {\bf get\-Start\-URL} (const {\bf QString} \&start\-Dir, {\bf QString} \&recent\-Dir\-Class)
\item 
static void {\bf set\-Start\-Dir} (const {\bf KURL} \&directory)\label{classKFileDialog_e12}

\end{CompactItemize}
\subsection*{Protected Slots}
\begin{CompactItemize}
\item 
void {\bf url\-Entered} (const {\bf KURL} \&)\label{classKFileDialog_j0}

\item 
void {\bf enter\-URL} (const {\bf KURL} \&url)\label{classKFileDialog_j1}

\item 
void {\bf enter\-URL} (const {\bf QString} \&url)\label{classKFileDialog_j2}

\item 
void {\bf location\-Activated} (const {\bf QString} \&url)\label{classKFileDialog_j3}

\item 
void {\bf toolbar\-Callback} (int)
\item 
void {\bf path\-Combo\-Changed} (const {\bf QString} \&)
\item 
void {\bf dir\-Completion} (const {\bf QString} \&)
\item 
void {\bf slot\-Filter\-Changed} ()\label{classKFileDialog_j7}

\item 
void {\bf file\-Highlighted} (const {\bf KFile\-Item} $\ast$i)\label{classKFileDialog_j8}

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

\item 
void {\bf slot\-Stat\-Result} ({\bf KIO::Job} $\ast$job)\label{classKFileDialog_j10}

\item 
void {\bf slot\-Loading\-Finished} ()\label{classKFileDialog_j11}

\item 
void {\bf file\-Completion} (const {\bf QString} \&)\label{classKFileDialog_j12}

\item 
void {\bf toggle\-Speedbar} (bool)
\item 
void {\bf toggle\-Bookmarks} (bool {\bf show})
\item 
virtual void {\bf update\-Status\-Line} (int dirs, int files)
\item 
virtual void {\bf slot\-Ok} ()\label{classKFileDialog_j16}

\item 
virtual void {\bf accept} ()\label{classKFileDialog_j17}

\item 
virtual void {\bf slot\-Cancel} ()\label{classKFileDialog_j18}

\item 
void {\bf slot\-Auto\-Select\-Ext\-Clicked} ()\label{classKFileDialog_j19}

\item 
void {\bf add\-To\-Recent\-Documents} ()\label{classKFileDialog_j20}

\item 
void {\bf init\-Speedbar} ()\label{classKFileDialog_j21}

\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
virtual void {\bf key\-Press\-Event} ({\bf QKey\-Event} $\ast$e)
\item 
void {\bf init} (const {\bf QString} \&start\-Dir, const {\bf QString} \&filter, {\bf QWidget} $\ast$widget)
\item 
virtual void {\bf init\-GUI} ()
\item 
void {\bf multi\-Selection\-Changed} ()
\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 
virtual void {\bf read\-Recent\-Files} ({\bf KConfig} $\ast$)
\item 
virtual void {\bf save\-Recent\-Files} ({\bf KConfig} $\ast$)
\item 
{\bf KURL::List} {\bf tokenize} (const {\bf QString} \&line) const 
\item 
{\bf KURL} {\bf get\-Complete\-URL} (const {\bf QString} \&)
\item 
{\bf QString} {\bf current\-Filter\-Extension} ()
\item 
void {\bf update\-Auto\-Select\-Extension} ()
\item 
{\bf KURL::List} \& {\bf parse\-Selected\-URLs} () const \label{classKFileDialog_b12}

\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)\label{classKFileDialog_b13}

\end{CompactItemize}
\subsection*{Protected Attributes}
\begin{CompactItemize}
\item 
{\bf KTool\-Bar} $\ast$ {\bf toolbar}\label{classKFileDialog_p0}

\item 
{\bf KURLCombo\-Box} $\ast$ {\bf location\-Edit}\label{classKFileDialog_p1}

\item 
KFile\-Filter\-Combo $\ast$ {\bf filter\-Widget}\label{classKFileDialog_p2}

\item 
{\bf KDir\-Operator} $\ast$ {\bf ops}\label{classKFileDialog_p3}

\item 
bool {\bf auto\-Directory\-Following}\label{classKFileDialog_p4}

\end{CompactItemize}
\subsection*{Static Protected Attributes}
\begin{CompactItemize}
\item 
static {\bf KURL} $\ast$ {\bf last\-Directory}\label{classKFileDialog_t0}

\end{CompactItemize}


\subsection{Detailed Description}
Provides a user (and developer) friendly way to select files and directories. A file selection dialog. 

The widget can be used as a drop in replacement for the {\bf QFile\-Dialog} widget, but has greater functionality and a nicer GUI.

You will usually want to use one of the static methods {\bf get\-Open\-File\-Name()}{\rm (p.\,\pageref{classKFileDialog_e0})}, {\bf get\-Save\-File\-Name()}{\rm (p.\,\pageref{classKFileDialog_e5})}, {\bf get\-Open\-URL()}{\rm (p.\,\pageref{classKFileDialog_e3})} or for multiple files {\bf get\-Open\-File\-Names()}{\rm (p.\,\pageref{classKFileDialog_e2})} or {\bf get\-Open\-URLs()}{\rm (p.\,\pageref{classKFileDialog_e4})}.

The dialog has been designed to allow applications to customise it by subclassing. It uses geometry management to ensure that subclasses can easily add children that will be incorporated into the layout.

 

\begin{Desc}
\item[Author:]Richard J. Moore $<${\tt rich@kde.org}$>$, Carsten Pfeiffer $<${\tt pfeiffer@kde.org}$>$ \end{Desc}




Definition at line 77 of file kfiledialog.h.

\subsection{Member Enumeration Documentation}
\index{KFileDialog@{KFile\-Dialog}!OperationMode@{OperationMode}}
\index{OperationMode@{OperationMode}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf enum} {\bf KFile\-Dialog::Operation\-Mode}}\label{classKFileDialog_w3}


Defines some default behavior of the filedialog. 

E.g. in mode {\tt Opening} and {\tt Saving}, the selected files/urls will be added to the \char`\"{}recent documents\char`\"{} list. The Saving mode also implies {\bf set\-Keep\-Location()}{\rm (p.\,\pageref{classKFileDialog_a12})} being set.

{\tt Other} means that no default actions are performed.

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

{\bf operation\-Mode}{\rm (p.\,\pageref{classKFileDialog_a11})} \end{Desc}


Definition at line 94 of file kfiledialog.h.

\subsection{Constructor \& Destructor Documentation}
\index{KFileDialog@{KFile\-Dialog}!KFileDialog@{KFileDialog}}
\index{KFileDialog@{KFileDialog}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KFile\-Dialog::KFile\-Dialog (const {\bf QString} \& {\em start\-Dir}, const {\bf QString} \& {\em filter}, {\bf QWidget} $\ast$ {\em parent}, const char $\ast$ {\em name}, bool {\em modal})}\label{classKFileDialog_a0}


Constructs a file dialog. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em start\-Dir}]This can either be \begin{itemize}
\item The URL of the directory to start in. \item QString::null to start in the current working directory, or the last directory where a file has been selected. \item ':$<$keyword$>$' to start in the directory last used by a filedialog in the same application that specified the same keyword. \item '::$<$keyword$>$' to start in the directory last used by a filedialog in any application that specified the same keyword.\end{itemize}
\item[{\em filter}]A shell glob or a mime-type-filter that specifies which files to display. \item[{\em parent}]The parent widget of this dialog \item[{\em name}]The name of this object \item[{\em modal}]Whether to create a modal dialog or not See {\bf set\-Filter()}{\rm (p.\,\pageref{classKFileDialog_a14})} for details on how to use this argument. \end{description}
\end{Desc}


Definition at line 168 of file kfiledialog.cpp.

References init().\index{KFileDialog@{KFile\-Dialog}!KFileDialog@{KFileDialog}}
\index{KFileDialog@{KFileDialog}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KFile\-Dialog::KFile\-Dialog (const {\bf QString} \& {\em start\-Dir}, const {\bf QString} \& {\em filter}, {\bf QWidget} $\ast$ {\em parent}, const char $\ast$ {\em name}, bool {\em modal}, {\bf QWidget} $\ast$ {\em widget})}\label{classKFileDialog_a1}


Constructs a file dialog. 

The parameters here are identical to the first constructor except for the addition of a {\bf QWidget} parameter.

Historical note: The original version of KFile\-Dialog did not have this extra parameter. It was added later, and, in order to maintain binary compatibility, it was placed in a new constructor instead of added to the original one.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em start\-Dir}]This can either be \begin{itemize}
\item The URL of the directory to start in. \item QString::null to start in the current working directory, or the last directory where a file has been selected. \item ':$<$keyword$>$' to start in the directory last used by a filedialog in the same application that specified the same keyword. \item '::$<$keyword$>$' to start in the directory last used by a filedialog in any application that specified the same keyword.\end{itemize}
\item[{\em filter}]A shell glob or a mime-type-filter that specifies which files to display. See {\bf set\-Filter()}{\rm (p.\,\pageref{classKFileDialog_a14})} for details on how to use this argument.\item[{\em widget}]A widget, or a widget of widgets, for displaying custom data in the dialog. This can be used, for example, to display a check box with the caption \char`\"{}Open as read-only\char`\"{}. When creating this widget, you don't need to specify a parent, since the widget's parent will be set automatically by KFile\-Dialog. \item[{\em parent}]The parent widget of this dialog \item[{\em name}]The name of this object \item[{\em modal}]Whether to create a modal dialog or not \end{description}
\end{Desc}
\begin{Desc}
\item[Since:]3.1 \end{Desc}


Definition at line 175 of file kfiledialog.cpp.

References init().\index{KFileDialog@{KFile\-Dialog}!~KFileDialog@{$\sim$KFileDialog}}
\index{~KFileDialog@{$\sim$KFileDialog}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KFile\-Dialog::$\sim${\bf KFile\-Dialog} ()}\label{classKFileDialog_a2}


Destructs the file dialog. 



Definition at line 183 of file kfiledialog.cpp.

References KGlobal::config(), and KConfig\-Base::sync().

\subsection{Member Function Documentation}
\index{KFileDialog@{KFile\-Dialog}!selectedURL@{selectedURL}}
\index{selectedURL@{selectedURL}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KURL} KFile\-Dialog::selected\-URL () const}\label{classKFileDialog_a3}


\begin{Desc}
\item[Returns:]The selected fully qualified filename. \end{Desc}


Definition at line 1426 of file kfiledialog.cpp.

References QDialog::result(), and KURL::url().

Referenced by get\-Open\-URL(), get\-Save\-URL(), and KURLRequester::slot\-Open\-Dialog().\index{KFileDialog@{KFile\-Dialog}!selectedURLs@{selectedURLs}}
\index{selectedURLs@{selectedURLs}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KURL::List} KFile\-Dialog::selected\-URLs () const}\label{classKFileDialog_a4}


\begin{Desc}
\item[Returns:]The list of selected URLs. \end{Desc}


Definition at line 1434 of file kfiledialog.cpp.

References QValue\-List::append(), KDir\-Operator::mode(), and QDialog::result().

Referenced by get\-Open\-URLs().\index{KFileDialog@{KFile\-Dialog}!baseURL@{baseURL}}
\index{baseURL@{baseURL}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KURL} KFile\-Dialog::base\-URL () const}\label{classKFileDialog_a5}


\begin{Desc}
\item[Returns:]the currently shown directory. \end{Desc}


Definition at line 1566 of file kfiledialog.cpp.

References KDir\-Operator::url().\index{KFileDialog@{KFile\-Dialog}!selectedFile@{selectedFile}}
\index{selectedFile@{selectedFile}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KFile\-Dialog::selected\-File () const}\label{classKFileDialog_a6}


Returns the full path of the selected file in the local filesystem. 

(Local files only) 

Definition at line 1527 of file kfiledialog.cpp.

References QDialog::result(), and KMessage\-Box::sorry().

Referenced by get\-Open\-File\-Name(), get\-Open\-File\-Name\-WId(), get\-Save\-File\-Name(), and get\-Save\-File\-Name\-WId().\index{KFileDialog@{KFile\-Dialog}!selectedFiles@{selectedFiles}}
\index{selectedFiles@{selectedFiles}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString\-List} KFile\-Dialog::selected\-Files () const}\label{classKFileDialog_a7}


Returns a list of all selected local files. 



Definition at line 1542 of file kfiledialog.cpp.

References QValue\-List::begin(), QValue\-List::end(), KDir\-Operator::mode(), and QDialog::result().

Referenced by get\-Open\-File\-Names().\index{KFileDialog@{KFile\-Dialog}!setURL@{setURL}}
\index{setURL@{setURL}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KFile\-Dialog::set\-URL (const {\bf KURL} \& {\em url}, bool {\em clearforward} = {\tt true})}\label{classKFileDialog_a8}


Sets the directory to view. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em url}]URL to show. \item[{\em clearforward}]Indicates whether the forward queue should be cleared. \end{description}
\end{Desc}


Definition at line 1143 of file kfiledialog.cpp.

References KDir\-Operator::set\-URL().

Referenced by set\-Selection().\index{KFileDialog@{KFile\-Dialog}!setSelection@{setSelection}}
\index{setSelection@{setSelection}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KFile\-Dialog::set\-Selection (const {\bf QString} \& {\em name})}\label{classKFileDialog_a9}


Sets the file name to preselect to {\tt name}. 

This takes absolute URLs and relative file names. 

Definition at line 1204 of file kfiledialog.cpp.

References endl(), QFile::exists(), QString::find\-Rev(), get\-Complete\-URL(), KFile\-Item::is\-Dir(), KURL::is\-Local\-File(), KURL::is\-Valid(), kd\-Debug(), kd\-Warning(), QCombo\-Box::line\-Edit(), KURL::path(), KURL::set\-File\-Name(), KURL::set\-Query(), set\-URL(), KDir\-Operator::url(), and KURL::url().

Referenced by get\-Save\-File\-Name(), get\-Save\-File\-Name\-WId(), get\-Save\-URL(), init(), and KURLRequester::slot\-Open\-Dialog().\index{KFileDialog@{KFile\-Dialog}!setOperationMode@{setOperationMode}}
\index{setOperationMode@{setOperationMode}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KFile\-Dialog::set\-Operation\-Mode ({\bf KFile\-Dialog::Operation\-Mode})}\label{classKFileDialog_a10}


Sets the operational mode of the filedialog to {\tt Saving}, {\tt Opening} or {\tt Other}. 

This will set some flags that are specific to loading or saving files. E.g. {\bf set\-Keep\-Location()}{\rm (p.\,\pageref{classKFileDialog_a12})} makes mostly sense for a save-as dialog. So set\-Operation\-Mode( KFile\-Dialog::Saving ); sets set\-Keep\-Location for example.

The mode {\tt Saving}, together with a default filter set via {\bf set\-Mime\-Filter()}{\rm (p.\,\pageref{classKFileDialog_a18})} will make the filter combobox read-only.

The default mode is {\tt Opening}.

Call this method right after instantiating KFile\-Dialog.

\begin{Desc}
\item[See also:]{\bf operation\-Mode}{\rm (p.\,\pageref{classKFileDialog_a11})} 

{\bf KFile\-Dialog::Operation\-Mode}{\rm (p.\,\pageref{classKFileDialog_w3})} \end{Desc}


Definition at line 1810 of file kfiledialog.cpp.

References update\-Auto\-Select\-Extension().

Referenced by get\-Open\-File\-Name(), get\-Open\-File\-Names(), get\-Open\-File\-Name\-WId(), get\-Open\-URL(), get\-Open\-URLs(), get\-Save\-File\-Name(), get\-Save\-File\-Name\-WId(), get\-Save\-URL(), and KEncoding\-File\-Dialog::KEncoding\-File\-Dialog().\index{KFileDialog@{KFile\-Dialog}!operationMode@{operationMode}}
\index{operationMode@{operationMode}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KFile\-Dialog::Operation\-Mode} KFile\-Dialog::operation\-Mode () const}\label{classKFileDialog_a11}


\begin{Desc}
\item[Returns:]the current operation mode, Opening, Saving or Other. Default is Other.\end{Desc}
\begin{Desc}
\item[See also:]{\bf operation\-Mode}{\rm (p.\,\pageref{classKFileDialog_a11})} 

{\bf KFile\-Dialog::Operation\-Mode}{\rm (p.\,\pageref{classKFileDialog_w3})} \end{Desc}


Definition at line 1825 of file kfiledialog.cpp.

Referenced by update\-Auto\-Select\-Extension().\index{KFileDialog@{KFile\-Dialog}!setKeepLocation@{setKeepLocation}}
\index{setKeepLocation@{setKeepLocation}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KFile\-Dialog::set\-Keep\-Location (bool {\em keep})}\label{classKFileDialog_a12}


Sets whether the filename/url should be kept when changing directories. 

This is for example useful when having a predefined filename where the full path for that file is searched.

This is implicitly set when {\bf operation\-Mode()}{\rm (p.\,\pageref{classKFileDialog_a11})} is KFile\-Dialog::Saving

{\bf get\-Save\-File\-Name()}{\rm (p.\,\pageref{classKFileDialog_e5})} and {\bf get\-Save\-URL()}{\rm (p.\,\pageref{classKFileDialog_e7})} set this to true by default, so that you can type in the filename and change the directory without having to type the name again. 

Definition at line 1800 of file kfiledialog.cpp.\index{KFileDialog@{KFile\-Dialog}!keepsLocation@{keepsLocation}}
\index{keepsLocation@{keepsLocation}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KFile\-Dialog::keeps\-Location () const}\label{classKFileDialog_a13}


\begin{Desc}
\item[Returns:]whether the contents of the location edit are kept when changing directories. \end{Desc}


Definition at line 1805 of file kfiledialog.cpp.\index{KFileDialog@{KFile\-Dialog}!setFilter@{setFilter}}
\index{setFilter@{setFilter}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KFile\-Dialog::set\-Filter (const {\bf QString} \& {\em filter})}\label{classKFileDialog_a14}


Sets the filter to be used to {\tt filter}. 

You can set more filters for the user to select separated by '\par
'. Every filter entry is defined through namefilter$|$text to diplay. If no $|$ is found in the expression, just the namefilter is shown. Examples:



\footnotesize\begin{verbatim} kfile->setFilter("*.cpp|C++ Source Files\n*.h|Header files");
 kfile->setFilter("*.cpp");
 kfile->setFilter("*.cpp|Sources (*.cpp)");
 kfile->setFilter("*.cpp|" + i18n("Sources (*.cpp)"));
 kfile->setFilter("*.cpp *.cc *.C|C++ Source Files\n*.h *.H|Header files");
\end{verbatim}
\normalsize


Note: The text to display is not parsed in any way. So, if you want to show the suffix to select by a specific filter, you must repeat it.

If the filter contains an unescaped '/', a mimetype-filter is assumed. If you would like a '/' visible in your filter it can be escaped with a '$\backslash$'. You can specify multiple mimetypes like this (separated with space):



\footnotesize\begin{verbatim} kfile->setFilter( "image/png text/html text/plain" );
 kfile->setFilter( "*.cue|CUE\\/BIN Files (*.cue)" );
\end{verbatim}
\normalsize


\begin{Desc}
\item[See also:]{\bf filter\-Changed}{\rm (p.\,\pageref{classKFileDialog_l3})} 

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


Definition at line 204 of file kfiledialog.cpp.

References KDir\-Operator::clear\-Filter(), QWidget::find(), KShortcut::remove(), set\-Mime\-Filter(), KDir\-Operator::set\-Name\-Filter(), QString\-List::split(), and update\-Auto\-Select\-Extension().

Referenced by init(), and KURLRequester::set\-Filter().\index{KFileDialog@{KFile\-Dialog}!currentFilter@{currentFilter}}
\index{currentFilter@{currentFilter}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KFile\-Dialog::current\-Filter () const}\label{classKFileDialog_a15}


Returns the current filter as entered by the user or one of the predefined set via {\bf set\-Filter()}{\rm (p.\,\pageref{classKFileDialog_a14})}. 

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

{\bf filter\-Changed()}{\rm (p.\,\pageref{classKFileDialog_l3})} \end{Desc}


Definition at line 233 of file kfiledialog.cpp.

Referenced by update\-Auto\-Select\-Extension().\index{KFileDialog@{KFile\-Dialog}!setFilterMimeType@{setFilterMimeType}}
\index{setFilterMimeType@{setFilterMimeType}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KFile\-Dialog::set\-Filter\-Mime\-Type (const {\bf QString} \& {\em label}, const {\bf KMime\-Type::List} \& {\em types}, const {\bf KMime\-Type::Ptr} \& {\em default\-Type})}\label{classKFileDialog_a16}


Sets the filter up to specify the output type. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em label}]the label to use instead of \char`\"{}Filter:\char`\"{} \item[{\em types}]a list of mimetypes that can be used as output format \item[{\em default\-Type}]the default mimetype to use as output format.\end{description}
\end{Desc}
Do not use in conjunction with {\bf set\-Filter()}{\rm (p.\,\pageref{classKFileDialog_a14})} 

\begin{Desc}
\item[{\bf Deprecated}]\end{Desc}


Definition at line 239 of file kfiledialog.cpp.

References QString::append(), and set\-Mime\-Filter().\index{KFileDialog@{KFile\-Dialog}!currentFilterMimeType@{currentFilterMimeType}}
\index{currentFilterMimeType@{currentFilterMimeType}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KMime\-Type::Ptr} KFile\-Dialog::current\-Filter\-Mime\-Type ()}\label{classKFileDialog_a17}


Returns the mimetype for the desired output format. 

This is only valid if {\bf set\-Filter\-Mime\-Type()}{\rm (p.\,\pageref{classKFileDialog_a16})} has been called previously.

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


Definition at line 292 of file kfiledialog.cpp.

References current\-Mime\-Filter(), and KMime\-Type::mime\-Type().\index{KFileDialog@{KFile\-Dialog}!setMimeFilter@{setMimeFilter}}
\index{setMimeFilter@{setMimeFilter}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KFile\-Dialog::set\-Mime\-Filter (const {\bf QString\-List} \& {\em types}, const {\bf QString} \& {\em default\-Type} = {\tt QString::null})}\label{classKFileDialog_a18}


Sets the filter up to specify the output type. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em types}]a list of mimetypes that can be used as output format \item[{\em default\-Type}]the default mimetype to use as output format, if any. If {\tt default\-Type} is set, it will be set as the current item. Otherwise, a first item showing all the mimetypes will be created. Typically, {\tt default\-Type} should be empty for loading and set for saving.\end{description}
\end{Desc}
Do not use in conjunction with {\bf set\-Filter()}{\rm (p.\,\pageref{classKFileDialog_a14})} 

Definition at line 253 of file kfiledialog.cpp.

References KDir\-Operator::clear\-Filter(), KDir\-Operator::set\-Mime\-Filter(), QString\-List::split(), and update\-Auto\-Select\-Extension().

Referenced by set\-Filter(), and set\-Filter\-Mime\-Type().\index{KFileDialog@{KFile\-Dialog}!currentMimeFilter@{currentMimeFilter}}
\index{currentMimeFilter@{currentMimeFilter}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KFile\-Dialog::current\-Mime\-Filter () const}\label{classKFileDialog_a19}


The mimetype for the desired output format. 

This is only valid if {\bf set\-Mime\-Filter()}{\rm (p.\,\pageref{classKFileDialog_a18})} has been called previously.

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


Definition at line 281 of file kfiledialog.cpp.

Referenced by current\-Filter\-Mime\-Type().\index{KFileDialog@{KFile\-Dialog}!clearFilter@{clearFilter}}
\index{clearFilter@{clearFilter}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KFile\-Dialog::clear\-Filter ()}\label{classKFileDialog_a20}


Clears any mime- or namefilter. 

Does not reload the directory. 

Definition at line 270 of file kfiledialog.cpp.

References KDir\-Operator::clear\-Filter(), and update\-Auto\-Select\-Extension().\index{KFileDialog@{KFile\-Dialog}!setPreviewWidget@{setPreviewWidget}}
\index{setPreviewWidget@{setPreviewWidget}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KFile\-Dialog::set\-Preview\-Widget (const {\bf QWidget} $\ast$ {\em w})}\label{classKFileDialog_a21}


\begin{Desc}
\item[{\bf Deprecated}]Add a preview widget and enter the preview mode. \end{Desc}
In this mode the dialog is split and the right part contains your widget. This widget has to inherit {\bf QWidget} and it has to implement a slot show\-Preview(const KURL \&); which is called every time the file changes. You may want to look at koffice/lib/kofficecore/ko\-Filter\-Manager.cc for some hints :)

Ownership is transferred to KFile\-Dialog. You need to create the preview-widget with \char`\"{}new\char`\"{}, i.e. on the heap. 

Definition at line 297 of file kfiledialog.cpp.

References KDir\-Operator::clear\-History(), and KDir\-Operator::set\-Preview\-Widget().\index{KFileDialog@{KFile\-Dialog}!setPreviewWidget@{setPreviewWidget}}
\index{setPreviewWidget@{setPreviewWidget}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KFile\-Dialog::set\-Preview\-Widget (const {\bf KPreview\-Widget\-Base} $\ast$ {\em w})}\label{classKFileDialog_a22}


Adds a preview widget and enters the preview mode. 

In this mode the dialog is split and the right part contains your preview widget.

Ownership is transferred to KFile\-Dialog. You need to create the preview-widget with \char`\"{}new\char`\"{}, i.e. on the heap.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em w}]The widget to be used for the preview. \end{description}
\end{Desc}


Definition at line 303 of file kfiledialog.cpp.

References KDir\-Operator::clear\-History(), and KDir\-Operator::set\-Preview\-Widget().\index{KFileDialog@{KFile\-Dialog}!getOpenFileName@{getOpenFileName}}
\index{getOpenFileName@{getOpenFileName}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KFile\-Dialog::get\-Open\-File\-Name (const {\bf QString} \& {\em start\-Dir} = {\tt QString::null}, const {\bf QString} \& {\em filter} = {\tt QString::null}, {\bf QWidget} $\ast$ {\em parent} = {\tt 0}, const {\bf QString} \& {\em caption} = {\tt QString::null})\hspace{0.3cm}{\tt  [static]}}\label{classKFileDialog_e0}


Creates a modal file dialog and return the selected filename or an empty string if none was chosen. 

Note that with this method the user must select an existing filename.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em start\-Dir}]This can either be \begin{itemize}
\item The URL of the directory to start in. \item QString::null to start in the current working directory, or the last directory where a file has been selected. \item ':$<$keyword$>$' to start in the directory last used by a filedialog in the same application that specified the same keyword. \item '::$<$keyword$>$' to start in the directory last used by a filedialog in any application that specified the same keyword. \end{itemize}
\item[{\em filter}]This is a space separated list of shell globs. You can set the text to be displayed for the glob, and provide multiple globs. See {\bf set\-Filter()}{\rm (p.\,\pageref{classKFileDialog_a14})} for details on how to do this... \item[{\em parent}]The widget the dialog will be centered on initially. \item[{\em caption}]The name of the dialog widget. \end{description}
\end{Desc}


Definition at line 1298 of file kfiledialog.cpp.

References KDir\-Operator::clear\-History(), QDialog::exec(), ops, selected\-File(), KDialog::set\-Caption(), set\-Mode(), and set\-Operation\-Mode().\index{KFileDialog@{KFile\-Dialog}!getOpenFileNameWId@{getOpenFileNameWId}}
\index{getOpenFileNameWId@{getOpenFileNameWId}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KFile\-Dialog::get\-Open\-File\-Name\-WId (const {\bf QString} \& {\em start\-Dir}, const {\bf QString} \& {\em filter}, WId {\em parent\_\-id}, const {\bf QString} \& {\em caption})\hspace{0.3cm}{\tt  [static]}}\label{classKFileDialog_e1}


Use this version only if you have no {\bf QWidget} available as parent widget. 

This can be the case if the parent widget is a widget in another process or if the parent widget is a non-Qt widget. For example, in a GTK program.

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


Definition at line 1314 of file kfiledialog.cpp.

References KDir\-Operator::clear\-History(), QDialog::exec(), QWidget::find(), ops, selected\-File(), KDialog::set\-Caption(), set\-Mode(), and set\-Operation\-Mode().\index{KFileDialog@{KFile\-Dialog}!getOpenFileNames@{getOpenFileNames}}
\index{getOpenFileNames@{getOpenFileNames}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString\-List} KFile\-Dialog::get\-Open\-File\-Names (const {\bf QString} \& {\em start\-Dir} = {\tt QString::null}, const {\bf QString} \& {\em filter} = {\tt QString::null}, {\bf QWidget} $\ast$ {\em parent} = {\tt 0}, const {\bf QString} \& {\em caption} = {\tt QString::null})\hspace{0.3cm}{\tt  [static]}}\label{classKFileDialog_e2}


Creates a modal file dialog and returns the selected filenames or an empty list if none was chosen. 

Note that with this method the user must select an existing filename.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em start\-Dir}]This can either be \begin{itemize}
\item The URL of the directory to start in. \item QString::null to start in the current working directory, or the last directory where a file has been selected. \item ':$<$keyword$>$' to start in the directory last used by a filedialog in the same application that specified the same keyword. \item '::$<$keyword$>$' to start in the directory last used by a filedialog in any application that specified the same keyword. \end{itemize}
\item[{\em filter}]This is a space separated list of shell globs. You can set the text to be displayed for the glob, and provide multiple globs. See {\bf set\-Filter()}{\rm (p.\,\pageref{classKFileDialog_a14})} for details on how to do this... \item[{\em parent}]The widget the dialog will be centered on initially. \item[{\em caption}]The name of the dialog widget. \end{description}
\end{Desc}


Definition at line 1338 of file kfiledialog.cpp.

References KDir\-Operator::clear\-History(), QDialog::exec(), ops, selected\-Files(), KDialog::set\-Caption(), set\-Mode(), and set\-Operation\-Mode().\index{KFileDialog@{KFile\-Dialog}!getOpenURL@{getOpenURL}}
\index{getOpenURL@{getOpenURL}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KURL} KFile\-Dialog::get\-Open\-URL (const {\bf QString} \& {\em start\-Dir} = {\tt QString::null}, const {\bf QString} \& {\em filter} = {\tt QString::null}, {\bf QWidget} $\ast$ {\em parent} = {\tt 0}, const {\bf QString} \& {\em caption} = {\tt QString::null})\hspace{0.3cm}{\tt  [static]}}\label{classKFileDialog_e3}


Creates a modal file dialog and returns the selected URL or an empty string if none was chosen. 

Note that with this method the user must select an existing URL.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em start\-Dir}]This can either be \begin{itemize}
\item The URL of the directory to start in. \item QString::null to start in the current working directory, or the last directory where a file has been selected. \item ':$<$keyword$>$' to start in the directory last used by a filedialog in the same application that specified the same keyword. \item '::$<$keyword$>$' to start in the directory last used by a filedialog in any application that specified the same keyword. \end{itemize}
\item[{\em filter}]This is a space separated list of shell globs. You can set the text to be displayed for the glob, and provide multiple globs. See {\bf set\-Filter()}{\rm (p.\,\pageref{classKFileDialog_a14})} for details on how to do this... \item[{\em parent}]The widget the dialog will be centered on initially. \item[{\em caption}]The name of the dialog widget. \end{description}
\end{Desc}


Definition at line 1354 of file kfiledialog.cpp.

References KDir\-Operator::clear\-History(), QDialog::exec(), ops, selected\-URL(), KDialog::set\-Caption(), set\-Mode(), and set\-Operation\-Mode().\index{KFileDialog@{KFile\-Dialog}!getOpenURLs@{getOpenURLs}}
\index{getOpenURLs@{getOpenURLs}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KURL::List} KFile\-Dialog::get\-Open\-URLs (const {\bf QString} \& {\em start\-Dir} = {\tt QString::null}, const {\bf QString} \& {\em filter} = {\tt QString::null}, {\bf QWidget} $\ast$ {\em parent} = {\tt 0}, const {\bf QString} \& {\em caption} = {\tt QString::null})\hspace{0.3cm}{\tt  [static]}}\label{classKFileDialog_e4}


Creates a modal file dialog and returns the selected URLs or an empty list if none was chosen. 

Note that with this method the user must select an existing filename.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em start\-Dir}]This can either be \begin{itemize}
\item The URL of the directory to start in. \item QString::null to start in the current working directory, or the last directory where a file has been selected. \item ':$<$keyword$>$' to start in the directory last used by a filedialog in the same application that specified the same keyword. \item '::$<$keyword$>$' to start in the directory last used by a filedialog in any application that specified the same keyword. \end{itemize}
\item[{\em filter}]This is a space separated list of shell globs. You can set the text to be displayed for the glob, and provide multiple globs. See {\bf set\-Filter()}{\rm (p.\,\pageref{classKFileDialog_a14})} for details on how to do this... \item[{\em parent}]The widget the dialog will be centered on initially. \item[{\em caption}]The name of the dialog widget. \end{description}
\end{Desc}


Definition at line 1368 of file kfiledialog.cpp.

References KDir\-Operator::clear\-History(), QDialog::exec(), ops, selected\-URLs(), KDialog::set\-Caption(), set\-Mode(), and set\-Operation\-Mode().\index{KFileDialog@{KFile\-Dialog}!getSaveFileName@{getSaveFileName}}
\index{getSaveFileName@{getSaveFileName}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KFile\-Dialog::get\-Save\-File\-Name (const {\bf QString} \& {\em start\-Dir} = {\tt QString::null}, const {\bf QString} \& {\em filter} = {\tt QString::null}, {\bf QWidget} $\ast$ {\em parent} = {\tt 0}, const {\bf QString} \& {\em caption} = {\tt QString::null})\hspace{0.3cm}{\tt  [static]}}\label{classKFileDialog_e5}


Creates a modal file dialog and returns the selected filename or an empty string if none was chosen. 

Note that with this method the user need not select an existing filename.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em start\-Dir}]This can either be \begin{itemize}
\item The URL of the directory to start in. \item a relative path or a filename determining the directory to start in and the file to be selected. \item QString::null to start in the current working directory, or the last directory where a file has been selected. \item ':$<$keyword$>$' to start in the directory last used by a filedialog in the same application that specified the same keyword. \item '::$<$keyword$>$' to start in the directory last used by a filedialog in any application that specified the same keyword. \end{itemize}
\item[{\em filter}]This is a space separated list of shell globs. You can set the text to be displayed for the glob, and provide multiple globs. See {\bf set\-Filter()}{\rm (p.\,\pageref{classKFileDialog_a14})} for details on how to do this... \item[{\em parent}]The widget the dialog will be centered on initially. \item[{\em caption}]The name of the dialog widget. \end{description}
\end{Desc}


Definition at line 1571 of file kfiledialog.cpp.

References KRecent\-Document::add(), QString::at(), QDialog::exec(), QString::is\-Empty(), selected\-File(), KDialog::set\-Caption(), set\-Operation\-Mode(), and set\-Selection().\index{KFileDialog@{KFile\-Dialog}!getSaveFileNameWId@{getSaveFileNameWId}}
\index{getSaveFileNameWId@{getSaveFileNameWId}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KFile\-Dialog::get\-Save\-File\-Name\-WId (const {\bf QString} \& {\em dir}, const {\bf QString} \& {\em filter}, WId {\em parent\_\-id}, const {\bf QString} \& {\em caption})\hspace{0.3cm}{\tt  [static]}}\label{classKFileDialog_e6}


This function accepts the window id of the parent window, instead of QWidget$\ast$. 

It should be used only when necessary. \begin{Desc}
\item[Since:]3.4 \end{Desc}


Definition at line 1592 of file kfiledialog.cpp.

References KRecent\-Document::add(), QString::at(), QDialog::exec(), QWidget::find(), QString::is\-Empty(), selected\-File(), KDialog::set\-Caption(), set\-Operation\-Mode(), and set\-Selection().\index{KFileDialog@{KFile\-Dialog}!getSaveURL@{getSaveURL}}
\index{getSaveURL@{getSaveURL}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KURL} KFile\-Dialog::get\-Save\-URL (const {\bf QString} \& {\em start\-Dir} = {\tt QString::null}, const {\bf QString} \& {\em filter} = {\tt QString::null}, {\bf QWidget} $\ast$ {\em parent} = {\tt 0}, const {\bf QString} \& {\em caption} = {\tt QString::null})\hspace{0.3cm}{\tt  [static]}}\label{classKFileDialog_e7}


Creates a modal file dialog and returns the selected filename or an empty string if none was chosen. 

Note that with this method the user need not select an existing filename.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em start\-Dir}]This can either be \begin{itemize}
\item The URL of the directory to start in. \item a relative path or a filename determining the directory to start in and the file to be selected. \item QString::null to start in the current working directory, or the last directory where a file has been selected. \item ':$<$keyword$>$' to start in the directory last used by a filedialog in the same application that specified the same keyword. \item '::$<$keyword$>$' to start in the directory last used by a filedialog in any application that specified the same keyword. \end{itemize}
\item[{\em filter}]This is a space separated list of shell globs. You can set the text to be displayed for the glob, and provide multiple globs. See {\bf set\-Filter()}{\rm (p.\,\pageref{classKFileDialog_a14})} for details on how to do this... \item[{\em parent}]The widget the dialog will be centered on initially. \item[{\em caption}]The name of the dialog widget. \end{description}
\end{Desc}


Definition at line 1621 of file kfiledialog.cpp.

References KRecent\-Document::add(), QDialog::exec(), KURL::is\-Valid(), selected\-URL(), KDialog::set\-Caption(), set\-Operation\-Mode(), and set\-Selection().\index{KFileDialog@{KFile\-Dialog}!getExistingDirectory@{getExistingDirectory}}
\index{getExistingDirectory@{getExistingDirectory}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KFile\-Dialog::get\-Existing\-Directory (const {\bf QString} \& {\em start\-Dir} = {\tt QString::null}, {\bf QWidget} $\ast$ {\em parent} = {\tt 0}, const {\bf QString} \& {\em caption} = {\tt QString::null})\hspace{0.3cm}{\tt  [static]}}\label{classKFileDialog_e8}


Creates a modal file dialog and returns the selected directory or an empty string if none was chosen. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em start\-Dir}]This can either be \begin{itemize}
\item The URL of the directory to start in. \item QString::null to start in the current working directory, or the last directory where a file has been selected. \item ':$<$keyword$>$' to start in the directory last used by a filedialog in the same application that specified the same keyword. \item '::$<$keyword$>$' to start in the directory last used by a filedialog in any application that specified the same keyword. \end{itemize}
\item[{\em parent}]The widget the dialog will be centered on initially. \item[{\em caption}]The name of the dialog widget. \end{description}
\end{Desc}


Definition at line 1391 of file kfiledialog.cpp.

References QFile\-Dialog::get\-Existing\-Directory(), KURL::is\-Valid(), KURL::path(), and KDir\-Select\-Dialog::select\-Directory().\index{KFileDialog@{KFile\-Dialog}!getExistingURL@{getExistingURL}}
\index{getExistingURL@{getExistingURL}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KURL} KFile\-Dialog::get\-Existing\-URL (const {\bf QString} \& {\em start\-Dir} = {\tt QString::null}, {\bf QWidget} $\ast$ {\em parent} = {\tt 0}, const {\bf QString} \& {\em caption} = {\tt QString::null})\hspace{0.3cm}{\tt  [static]}}\label{classKFileDialog_e9}


Creates a modal file dialog and returns the selected directory or an empty string if none was chosen. 

Contrary to {\bf get\-Existing\-Directory()}{\rm (p.\,\pageref{classKFileDialog_e8})}, this method allows the selection of a remote directory.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em start\-Dir}]This can either be \begin{itemize}
\item The URL of the directory to start in. \item QString::null to start in the current working directory, or the last directory where a file has been selected. \item ':$<$keyword$>$' to start in the directory last used by a filedialog in the same application that specified the same keyword. \item '::$<$keyword$>$' to start in the directory last used by a filedialog in any application that specified the same keyword. \end{itemize}
\item[{\em parent}]The widget the dialog will be centered on initially. \item[{\em caption}]The name of the dialog widget. \end{description}
\end{Desc}
\begin{Desc}
\item[Since:]3.1 \end{Desc}


Definition at line 1384 of file kfiledialog.cpp.

References KDir\-Select\-Dialog::select\-Directory().\index{KFileDialog@{KFile\-Dialog}!getImageOpenURL@{getImageOpenURL}}
\index{getImageOpenURL@{getImageOpenURL}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KURL} KFile\-Dialog::get\-Image\-Open\-URL (const {\bf QString} \& {\em start\-Dir} = {\tt QString::null}, {\bf QWidget} $\ast$ {\em parent} = {\tt 0}, const {\bf QString} \& {\em caption} = {\tt QString::null})\hspace{0.3cm}{\tt  [static]}}\label{classKFileDialog_e10}


Creates a modal file dialog with an image previewer and returns the selected url or an empty string if none was chosen. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em start\-Dir}]This can either be \begin{itemize}
\item The URL of the directory to start in. \item QString::null to start in the current working directory, or the last directory where a file has been selected. \item ':$<$keyword$>$' to start in the directory last used by a filedialog in the same application that specified the same keyword. \item '::$<$keyword$>$' to start in the directory last used by a filedialog in any application that specified the same keyword. \end{itemize}
\item[{\em parent}]The widget the dialog will be centered on initially. \item[{\em caption}]The name of the dialog widget. \end{description}
\end{Desc}


Definition at line 1408 of file kfiledialog.cpp.

References QString\-List::join(), and KImage\-IO::mime\-Types().\index{KFileDialog@{KFile\-Dialog}!setMode@{setMode}}
\index{setMode@{setMode}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KFile\-Dialog::set\-Mode ({\bf KFile::Mode} {\em m})}\label{classKFileDialog_a24}


Convenient overload of the other {\bf set\-Mode(unsigned int)}{\rm (p.\,\pageref{classKFileDialog_a25})} method. 



Definition at line 1652 of file kfiledialog.cpp.

References KDir\-Operator::dir\-Only\-Mode(), KDir\-Operator::set\-Mode(), and update\-Auto\-Select\-Extension().

Referenced by KURLRequester::file\-Dialog(), get\-Open\-File\-Name(), get\-Open\-File\-Names(), get\-Open\-File\-Name\-WId(), get\-Open\-URL(), get\-Open\-URLs(), and set\-Mode().\index{KFileDialog@{KFile\-Dialog}!setMode@{setMode}}
\index{setMode@{setMode}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KFile\-Dialog::set\-Mode (unsigned int {\em m})}\label{classKFileDialog_a25}


Sets the mode of the dialog. 

The mode is defined as (in {\bf kfile.h}{\rm (p.\,\pageref{kfile_8h})}): 

\footnotesize\begin{verbatim}    enum Mode {
         File         = 1,
         Directory    = 2,
         Files        = 4,
         ExistingOnly = 8,
         LocalOnly    = 16
    };
\end{verbatim}
\normalsize
 You can OR the values, e.g. 

\footnotesize\begin{verbatim} KFile::Mode mode = static_cast<KFile::Mode>( KFile::Files |
                                              KFile::ExistingOnly |
                                              KFile::LocalOnly );
 setMode( mode );
\end{verbatim}
\normalsize
 

Definition at line 1665 of file kfiledialog.cpp.

References set\-Mode().\index{KFileDialog@{KFile\-Dialog}!mode@{mode}}
\index{mode@{mode}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KFile::Mode} KFile\-Dialog::mode () const}\label{classKFileDialog_a26}


Returns the mode of the filedialog. 

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


Definition at line 1670 of file kfiledialog.cpp.

References KDir\-Operator::mode().

Referenced by KURLRequester::slot\-Open\-Dialog(), and update\-Auto\-Select\-Extension().\index{KFileDialog@{KFile\-Dialog}!setLocationLabel@{setLocationLabel}}
\index{setLocationLabel@{setLocationLabel}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KFile\-Dialog::set\-Location\-Label (const {\bf QString} \& {\em text})}\label{classKFileDialog_a27}


Sets the text to be displayed in front of the selection. 

The default is \char`\"{}Location\char`\"{}. Most useful if you want to make clear what the location is used for. 

Definition at line 199 of file kfiledialog.cpp.\index{KFileDialog@{KFile\-Dialog}!toolBar@{toolBar}}
\index{toolBar@{toolBar}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KTool\-Bar}$\ast$ KFile\-Dialog::tool\-Bar () const\hspace{0.3cm}{\tt  [inline]}}\label{classKFileDialog_a28}


Returns a pointer to the toolbar. 

You can use this to insert custom items into it, e.g.: 

\footnotesize\begin{verbatim}      yourAction = new KAction( i18n("Your Action"), 0,
                                this, SLOT( yourSlot() ),
                                this, "action name" );
      yourAction->plug( kfileDialog->toolBar() );
\end{verbatim}
\normalsize
 

Definition at line 722 of file kfiledialog.h.

Referenced by KEncoding\-File\-Dialog::KEncoding\-File\-Dialog().\index{KFileDialog@{KFile\-Dialog}!okButton@{okButton}}
\index{okButton@{okButton}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KPush\-Button} $\ast$ KFile\-Dialog::ok\-Button () const}\label{classKFileDialog_a29}


\begin{Desc}
\item[Returns:]a pointer to the OK-Button in the filedialog. You may use it e.g. to set a custom text to it. \end{Desc}


Definition at line 1774 of file kfiledialog.cpp.\index{KFileDialog@{KFile\-Dialog}!cancelButton@{cancelButton}}
\index{cancelButton@{cancelButton}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KPush\-Button} $\ast$ KFile\-Dialog::cancel\-Button () const}\label{classKFileDialog_a30}


\begin{Desc}
\item[Returns:]a pointer to the Cancel-Button in the filedialog. You may use it e.g. to set a custom text to it. \end{Desc}


Definition at line 1779 of file kfiledialog.cpp.\index{KFileDialog@{KFile\-Dialog}!speedBar@{speedBar}}
\index{speedBar@{speedBar}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KURLBar} $\ast$ KFile\-Dialog::speed\-Bar ()}\label{classKFileDialog_a31}


\begin{Desc}
\item[Returns:]the {\bf KURLBar}{\rm (p.\,\pageref{classKURLBar})} object used as the \char`\"{}speed bar\char`\"{}. You can add custom entries to it like that: 

\footnotesize\begin{verbatim} KURLBar *urlBar = fileDialog->speedBar();
 if ( urlBar )
     urlBar->insertDynamicItem( someURL, i18n("The URL's description") );
\end{verbatim}
\normalsize
\end{Desc}
Note that this method may return a null-pointer if the user configured to not use the speed-bar. \begin{Desc}
\item[See also:]{\bf KURLBar}{\rm (p.\,\pageref{classKURLBar})} 

{\bf KURLBar::insert\-Dynamic\-Item}{\rm (p.\,\pageref{classKURLBar_a3})} \end{Desc}
\begin{Desc}
\item[Since:]3.2 \end{Desc}


Definition at line 1784 of file kfiledialog.cpp.\index{KFileDialog@{KFile\-Dialog}!actionCollection@{actionCollection}}
\index{actionCollection@{actionCollection}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KAction\-Collection} $\ast$ KFile\-Dialog::action\-Collection () const}\label{classKFileDialog_a32}


\begin{Desc}
\item[Returns:]a pointer to the action collection, holding all the used KActions. \end{Desc}


Definition at line 2155 of file kfiledialog.cpp.

References KDir\-Operator::action\-Collection().

Referenced by toggle\-Bookmarks(), and toggle\-Speedbar().\index{KFileDialog@{KFile\-Dialog}!pathComboIndex@{pathComboIndex}}
\index{pathComboIndex@{pathComboIndex}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KFile\-Dialog::path\-Combo\-Index ()}\label{classKFileDialog_a33}


\begin{Desc}
\item[Returns:]the index of the path combobox so when inserting widgets into the dialog (e.g. subclasses) they can do so without hardcoding in an index \end{Desc}


Definition at line 2242 of file kfiledialog.cpp.\index{KFileDialog@{KFile\-Dialog}!getStartURL@{getStartURL}}
\index{getStartURL@{getStartURL}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KURL} KFile\-Dialog::get\-Start\-URL (const {\bf QString} \& {\em start\-Dir}, {\bf QString} \& {\em recent\-Dir\-Class})\hspace{0.3cm}{\tt  [static]}}\label{classKFileDialog_e11}


This method implements the logic to determine the user's default directory to be listed. 

E.g. the documents direcory, home directory or a recently used directory. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em start\-Dir}]A url/directory, to be used. May use the ':' and '::' syntax as documented in the KFile\-Dialog() constructor. \item[{\em recent\-Dir\-Class}]If the ':' or '::' syntax is used, recent\-Dir\-Class will contain the string to be used later for KRecent\-Dir::dir() \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The URL that should be listed by default (e.g. by KFile\-Dialog or {\bf KDir\-Select\-Dialog}{\rm (p.\,\pageref{classKDirSelectDialog})}). \end{Desc}
\begin{Desc}
\item[Since:]3.1 \end{Desc}


Definition at line 2257 of file kfiledialog.cpp.

References QDir::current\-Dir\-Path(), KURL::from\-Path\-Or\-URL(), QDir::home\-Dir\-Path(), KCmd\-Line\-Args::make\-URL(), and KURL::set\-Path().

Referenced by init(), and KDir\-Select\-Dialog::KDir\-Select\-Dialog().\index{KFileDialog@{KFile\-Dialog}!fileSelected@{fileSelected}}
\index{fileSelected@{fileSelected}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KFile\-Dialog::file\-Selected (const {\bf QString} \&)\hspace{0.3cm}{\tt  [signal]}}\label{classKFileDialog_l0}


Emitted when the user selects a file. 

It is only emitted in single- selection mode. The best way to get notified about selected file(s) is to connect to the {\bf ok\-Clicked()} signal inherited from {\bf KDialog\-Base} and call {\bf selected\-File()}{\rm (p.\,\pageref{classKFileDialog_a6})}, {\bf selected\-Files()}{\rm (p.\,\pageref{classKFileDialog_a7})}, {\bf selected\-URL()}{\rm (p.\,\pageref{classKFileDialog_a3})} or {\bf selected\-URLs()}{\rm (p.\,\pageref{classKFileDialog_a4})}. 

Referenced by init().\index{KFileDialog@{KFile\-Dialog}!fileHighlighted@{fileHighlighted}}
\index{fileHighlighted@{fileHighlighted}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KFile\-Dialog::file\-Highlighted (const {\bf QString} \&)\hspace{0.3cm}{\tt  [signal]}}\label{classKFileDialog_l1}


Emitted when the user highlights a file. 



Referenced by init().\index{KFileDialog@{KFile\-Dialog}!selectionChanged@{selectionChanged}}
\index{selectionChanged@{selectionChanged}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KFile\-Dialog::selection\-Changed ()\hspace{0.3cm}{\tt  [signal]}}\label{classKFileDialog_l2}


Emitted when the user hilights one or more files in multiselection mode. 

Note: {\bf file\-Highlighted()}{\rm (p.\,\pageref{classKFileDialog_l1})} or {\bf file\-Selected()}{\rm (p.\,\pageref{classKFileDialog_l0})} are {\em not\/} emitted in multiselection mode. You may use selected\-Items() to ask for the current highlighted items. \begin{Desc}
\item[See also:]{\bf file\-Selected}{\rm (p.\,\pageref{classKFileDialog_l0})} \end{Desc}
\index{KFileDialog@{KFile\-Dialog}!filterChanged@{filterChanged}}
\index{filterChanged@{filterChanged}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KFile\-Dialog::filter\-Changed (const {\bf QString} \& {\em filter})\hspace{0.3cm}{\tt  [signal]}}\label{classKFileDialog_l3}


Emitted when the filter changed, i.e. 

the user entered an own filter or chose one of the predefined set via {\bf set\-Filter()}{\rm (p.\,\pageref{classKFileDialog_a14})}.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em filter}]contains the new filter (only the extension part, not the explanation), i.e. \char`\"{}$\ast$.cpp\char`\"{} or \char`\"{}$\ast$.cpp $\ast$.cc\char`\"{}.\end{description}
\end{Desc}
\begin{Desc}
\item[See also:]{\bf set\-Filter()}{\rm (p.\,\pageref{classKFileDialog_a14})} 

{\bf current\-Filter()}{\rm (p.\,\pageref{classKFileDialog_a15})} \end{Desc}


Referenced by init().\index{KFileDialog@{KFile\-Dialog}!keyPressEvent@{keyPressEvent}}
\index{keyPressEvent@{keyPressEvent}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KFile\-Dialog::key\-Press\-Event ({\bf QKey\-Event} $\ast$ {\em e})\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKFileDialog_b0}


Reimplemented to animate the cancel button. 



Reimplemented from {\bf KDialog\-Base}.

Definition at line 2160 of file kfiledialog.cpp.

References KDialog\-Base::key\-Press\-Event().\index{KFileDialog@{KFile\-Dialog}!init@{init}}
\index{init@{init}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KFile\-Dialog::init (const {\bf QString} \& {\em start\-Dir}, const {\bf QString} \& {\em filter}, {\bf QWidget} $\ast$ {\em widget})\hspace{0.3cm}{\tt  [protected]}}\label{classKFileDialog_b1}


Perform basic initialization tasks. 

Called by constructors. \begin{Desc}
\item[Since:]3.1 \end{Desc}


Definition at line 803 of file kfiledialog.cpp.

References KAction\-Collection::action(), KDir\-Operator::action\-Collection(), QWhats\-This::add(), QTool\-Tip::add(), KDialog\-Base::adjust\-Size(), QString::arg(), KGlobal::config(), file\-Highlighted(), file\-Selected(), filter\-Changed(), get\-Start\-URL(), init\-GUI(), KAction\-Menu::insert(), KTool\-Bar::insert\-Widget(), KURL::path(), KAction\-Menu::plug(), KAction::plug(), KAction\-Menu::popup\-Menu(), read\-Config(), read\-Recent\-Files(), KCompletion\-Base::set\-Auto\-Delete\-Completion\-Object(), KTool\-Bar::set\-Bar\-Pos(), KToggle\-Action::set\-Checked\-State(), KCompletion\-Base::set\-Completion\-Object(), KAction\-Menu::set\-Delayed(), KURLCompletion::set\-Dir(), set\-Filter(), KTool\-Bar::set\-Flat(), KTool\-Bar::set\-Icon\-Text(), KTool\-Bar::set\-Item\-Auto\-Sized(), KDialog\-Base::set\-Main\-Widget(), KDir\-Operator::set\-Only\-Double\-Click\-Selects\-Files(), KURL::set\-Path(), set\-Selection(), KAction::set\-Shortcut(), KDir\-Operator::setup\-Menu(), KDir\-Operator::set\-View\-Config(), KAction::set\-Whats\-This(), KDialog\-Base::slot\-Cancel(), KDialog\-Base::slot\-Ok(), toggle\-Bookmarks(), toggle\-Speedbar(), and KURL::url().

Referenced by KFile\-Dialog().\index{KFileDialog@{KFile\-Dialog}!initGUI@{initGUI}}
\index{initGUI@{initGUI}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KFile\-Dialog::init\-GUI ()\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKFileDialog_b2}


rebuild geometry management. 



Definition at line 1055 of file kfiledialog.cpp.

References QGrid\-Layout::add\-Widget(), and QGrid\-Layout::set\-Col\-Stretch().

Referenced by init().\index{KFileDialog@{KFile\-Dialog}!multiSelectionChanged@{multiSelectionChanged}}
\index{multiSelectionChanged@{multiSelectionChanged}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KFile\-Dialog::multi\-Selection\-Changed ()\hspace{0.3cm}{\tt  [protected]}}\label{classKFileDialog_b3}


called when an item is highlighted/selected in multiselection mode. 

handles setting the location\-Edit. 

Definition at line 737 of file kfiledialog.cpp.

References QString::append(), QCombo\-Box::clear\-Edit(), QPtr\-List\-Iterator::current(), QCombo\-Box::line\-Edit(), KFile\-Item::name(), KDir\-Operator::selected\-Items(), KGlobal::static\-QString(), and QString::strip\-White\-Space().\index{KFileDialog@{KFile\-Dialog}!readConfig@{readConfig}}
\index{readConfig@{readConfig}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KFile\-Dialog::read\-Config ({\bf KConfig} $\ast$, const {\bf QString} \& {\em group} = {\tt QString::null})\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKFileDialog_b4}


Reads configuration and applies it (size, recent directories, ...). 



Definition at line 1676 of file kfiledialog.cpp.

References KDialog\-Base::config\-Dialog\-Size(), KDir\-Operator::read\-Config(), KCompletion\-Base::set\-Completion\-Mode(), KURLCombo\-Box::set\-Max\-Items(), KURLCombo\-Box::set\-URL(), KURLCombo\-Box::set\-URLs(), KTool\-Bar::size\-Hint(), toggle\-Bookmarks(), toggle\-Speedbar(), update\-Auto\-Select\-Extension(), KDir\-Operator::url(), and QSize::width().

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


Saves the current configuration. 



Definition at line 1727 of file kfiledialog.cpp.

References KCompletion\-Base::completion\-Mode(), KDialog\-Base::save\-Dialog\-Size(), and KDir\-Operator::write\-Config().\index{KFileDialog@{KFile\-Dialog}!readRecentFiles@{readRecentFiles}}
\index{readRecentFiles@{readRecentFiles}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KFile\-Dialog::read\-Recent\-Files ({\bf KConfig} $\ast$)\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKFileDialog_b6}


Reads the recent used files and inserts them into the location combobox. 



Definition at line 1749 of file kfiledialog.cpp.

References QCombo\-Box::insert\-Item(), KCombo\-Box::set\-Current\-Item(), KURLCombo\-Box::set\-Max\-Items(), and KURLCombo\-Box::set\-URLs().

Referenced by init().\index{KFileDialog@{KFile\-Dialog}!saveRecentFiles@{saveRecentFiles}}
\index{saveRecentFiles@{saveRecentFiles}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KFile\-Dialog::save\-Recent\-Files ({\bf KConfig} $\ast$)\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKFileDialog_b7}


Saves the entries from the location combobox. 



Definition at line 1764 of file kfiledialog.cpp.

References KURLCombo\-Box::urls.\index{KFileDialog@{KFile\-Dialog}!tokenize@{tokenize}}
\index{tokenize@{tokenize}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KURL::List} KFile\-Dialog::tokenize (const {\bf QString} \& {\em line}) const\hspace{0.3cm}{\tt  [protected]}}\label{classKFileDialog_b8}


Parses the string \char`\"{}line\char`\"{} for files. 

If line doesn't contain any \char`\"{}, the whole line will be interpreted as one file. If the number of \char`\"{} is odd, an empty list will be returned. Otherwise, all items enclosed in \char`\"{} \char`\"{} will be returned as correct urls. 

Definition at line 1481 of file kfiledialog.cpp.

References QValue\-List::append(), QString::contains(), QValue\-List::find(), KURL::is\-Valid(), QString::mid(), KURL::set\-File\-Name(), KMessage\-Box::sorry(), and KDir\-Operator::url().\index{KFileDialog@{KFile\-Dialog}!getCompleteURL@{getCompleteURL}}
\index{getCompleteURL@{getCompleteURL}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KURL} KFile\-Dialog::get\-Complete\-URL (const {\bf QString} \&)\hspace{0.3cm}{\tt  [protected]}}\label{classKFileDialog_b9}


Returns the absolute version of the URL specified in location\-Edit. 

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


Definition at line 309 of file kfiledialog.cpp.

References KURL::add\-Path(), KURL::clean\-Path(), QDir::is\-Relative\-Path(), KURL::set\-Path(), KShell::tilde\-Expand(), and KDir\-Operator::url().

Referenced by set\-Selection().\index{KFileDialog@{KFile\-Dialog}!currentFilterExtension@{currentFilterExtension}}
\index{currentFilterExtension@{currentFilterExtension}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KFile\-Dialog::current\-Filter\-Extension ()\hspace{0.3cm}{\tt  [protected]}}\label{classKFileDialog_b10}


Returns the filename extension associated with the {\bf current\-Filter()}{\rm (p.\,\pageref{classKFileDialog_a15})}. 

QString::null is returned if an extension is not available or if {\bf operation\-Mode()}{\rm (p.\,\pageref{classKFileDialog_a11})} != Saving. \begin{Desc}
\item[Since:]3.2 \end{Desc}


Definition at line 1884 of file kfiledialog.cpp.\index{KFileDialog@{KFile\-Dialog}!updateAutoSelectExtension@{updateAutoSelectExtension}}
\index{updateAutoSelectExtension@{updateAutoSelectExtension}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KFile\-Dialog::update\-Auto\-Select\-Extension ()\hspace{0.3cm}{\tt  [protected]}}\label{classKFileDialog_b11}


Updates the current\-Filter\-Extension and the availability of the Automatically Select Extension Checkbox (visible if {\bf operation\-Mode()}{\rm (p.\,\pageref{classKFileDialog_a11})} == Saving and enabled if an extension \_\-will\_\- be associated with the {\bf current\-Filter()}{\rm (p.\,\pageref{classKFileDialog_a15})}, \_\-after\_\- this call). 

You should call this after filter\-Widget-$>$set\-Current\-Item(). \begin{Desc}
\item[Since:]3.2 \end{Desc}


Definition at line 1889 of file kfiledialog.cpp.

References QWhats\-This::add(), QString::arg(), QString::at(), current\-Filter(), endl(), QString::find(), QString::is\-Empty(), kd\-Debug(), QString::lower(), KMime\-Type::mime\-Type(), mode(), and operation\-Mode().

Referenced by clear\-Filter(), read\-Config(), set\-Filter(), set\-Mime\-Filter(), set\-Mode(), and set\-Operation\-Mode().\index{KFileDialog@{KFile\-Dialog}!toolbarCallback@{toolbarCallback}}
\index{toolbarCallback@{toolbarCallback}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KFile\-Dialog::toolbar\-Callback (int)\hspace{0.3cm}{\tt  [protected, slot]}}\label{classKFileDialog_j4}


\begin{Desc}
\item[{\bf Deprecated}], \end{Desc}


Definition at line 1195 of file kfiledialog.cpp.\index{KFileDialog@{KFile\-Dialog}!pathComboChanged@{pathComboChanged}}
\index{pathComboChanged@{pathComboChanged}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KFile\-Dialog::path\-Combo\-Changed (const {\bf QString} \&)\hspace{0.3cm}{\tt  [protected, slot]}}\label{classKFileDialog_j5}


\begin{Desc}
\item[{\bf Deprecated}]\end{Desc}


Definition at line 1273 of file kfiledialog.cpp.\index{KFileDialog@{KFile\-Dialog}!dirCompletion@{dirCompletion}}
\index{dirCompletion@{dirCompletion}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KFile\-Dialog::dir\-Completion (const {\bf QString} \&)\hspace{0.3cm}{\tt  [protected, slot]}}\label{classKFileDialog_j6}


\begin{Desc}
\item[{\bf Deprecated}]\end{Desc}


Definition at line 1276 of file kfiledialog.cpp.\index{KFileDialog@{KFile\-Dialog}!toggleSpeedbar@{toggleSpeedbar}}
\index{toggleSpeedbar@{toggleSpeedbar}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KFile\-Dialog::toggle\-Speedbar (bool)\hspace{0.3cm}{\tt  [protected, slot]}}\label{classKFileDialog_j13}


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




Definition at line 2171 of file kfiledialog.cpp.

References KAction\-Collection::action(), action\-Collection(), KDir\-Operator::action\-Collection(), KURL::equals(), KAction::is\-Plugged(), KAction::plug(), KURL::set\-Path(), KAction::unplug(), and KURLBar\-Item::url().

Referenced by init(), and read\-Config().\index{KFileDialog@{KFile\-Dialog}!toggleBookmarks@{toggleBookmarks}}
\index{toggleBookmarks@{toggleBookmarks}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KFile\-Dialog::toggle\-Bookmarks (bool {\em show})\hspace{0.3cm}{\tt  [protected, slot]}}\label{classKFileDialog_j14}


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




Definition at line 2207 of file kfiledialog.cpp.

References KAction\-Collection::action(), action\-Collection(), QWhats\-This::add(), KTool\-Bar::get\-Button(), KTool\-Bar::insert\-Button(), KTool\-Bar::remove\-Item(), and KTool\-Bar\-Button::set\-Popup().

Referenced by init(), and read\-Config().\index{KFileDialog@{KFile\-Dialog}!updateStatusLine@{updateStatusLine}}
\index{updateStatusLine@{updateStatusLine}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KFile\-Dialog::update\-Status\-Line (int {\em dirs}, int {\em files})\hspace{0.3cm}{\tt  [protected, virtual, slot]}}\label{classKFileDialog_j15}


\begin{Desc}
\item[{\bf Deprecated}]\end{Desc}


Definition at line 1293 of file kfiledialog.cpp.

References endl(), and kd\-Warning().

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