\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=55pt]{classKFileDialog__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KFile\-Dialog:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=257pt]{classKFileDialog__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{CompactItemize}
\item 
enum {\bf Operation\-Mode} \{ {\bf Other} =  0, 
{\bf Opening}, 
{\bf Saving}
 \}
\begin{CompactList}\small\item\em Defines some default behavior of the filedialog. \item\end{CompactList}\end{CompactItemize}
\subsection*{Signals}
\begin{CompactItemize}
\item 
void {\bf file\-Selected} (const  {\bf QString} \&)
\begin{CompactList}\small\item\em Emitted when the user selects a file. \item\end{CompactList}\item 
void {\bf file\-Highlighted} (const  {\bf QString} \&)
\begin{CompactList}\small\item\em Emitted when the user highlights a file. \item\end{CompactList}\item 
void {\bf selection\-Changed} ()
\begin{CompactList}\small\item\em Emitted when the user hilights one or more files in multiselection mode. \item\end{CompactList}\item 
void {\bf filter\-Changed} (const  {\bf QString} \&filter)
\begin{CompactList}\small\item\em Emitted when the filter changed, i.e. \item\end{CompactList}\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)
\begin{CompactList}\small\item\em Constructs a file dialog. \item\end{CompactList}\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)
\begin{CompactList}\small\item\em Constructs a file dialog. \item\end{CompactList}\item 
{\bf $\sim$KFile\-Dialog} ()
\begin{CompactList}\small\item\em Destructs the file dialog. \item\end{CompactList}\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 
\begin{CompactList}\small\item\em Returns the full path of the selected file in the local filesystem. \item\end{CompactList}\item 
{\bf QString\-List} {\bf selected\-Files} () const 
\begin{CompactList}\small\item\em Returns a list of all selected local files. \item\end{CompactList}\item 
void {\bf set\-URL} (const  {\bf KURL} \&url, bool clearforward=true)
\begin{CompactList}\small\item\em Sets the directory to view. \item\end{CompactList}\item 
void {\bf set\-Selection} (const  {\bf QString} \&name)
\begin{CompactList}\small\item\em Sets the file name to preselect to {\tt name}. \item\end{CompactList}\item 
void {\bf set\-Operation\-Mode} ({\bf KFile\-Dialog::Operation\-Mode})
\begin{CompactList}\small\item\em Sets the operational mode of the filedialog to {\tt Saving}, {\tt Opening} or {\tt Other}. \item\end{CompactList}\item 
{\bf Operation\-Mode} {\bf operation\-Mode} () const 
\item 
void {\bf set\-Keep\-Location} (bool keep)
\begin{CompactList}\small\item\em Sets whether the filename/url should be kept when changing directories. \item\end{CompactList}\item 
bool {\bf keeps\-Location} () const 
\item 
void {\bf set\-Filter} (const  {\bf QString} \&filter)
\begin{CompactList}\small\item\em Sets the filter to be used to {\tt filter}. \item\end{CompactList}\item 
{\bf QString} {\bf current\-Filter} () const 
\begin{CompactList}\small\item\em Returns the current filter as entered by the user or one of the predefined set via {\bf set\-Filter}{\rm (p.\,\pageref{classKFileDialog_a14})}(). \item\end{CompactList}\item 
void {\bf set\-Filter\-Mime\-Type} (const  {\bf QString} \&label, const  {\bf KMime\-Type::List} \&types, const  {\bf KMime\-Type::Ptr} \&default\-Type)
\begin{CompactList}\small\item\em Sets the filter up to specify the output type. \item\end{CompactList}\item 
{\bf KMime\-Type::Ptr} {\bf current\-Filter\-Mime\-Type} ()
\begin{CompactList}\small\item\em Returns the mimetype for the desired output format. \item\end{CompactList}\item 
void {\bf set\-Mime\-Filter} (const  {\bf QString\-List} \&types, const  {\bf QString} \&default\-Type=QString::null)
\begin{CompactList}\small\item\em Sets the filter up to specify the output type. \item\end{CompactList}\item 
{\bf QString} {\bf current\-Mime\-Filter} () const 
\begin{CompactList}\small\item\em The mimetype for the desired output format. \item\end{CompactList}\item 
void {\bf clear\-Filter} ()
\begin{CompactList}\small\item\em Clears any mime- or namefilter. \item\end{CompactList}\item 
void {\bf set\-Preview\-Widget} (const  {\bf QWidget} $\ast$w)
\begin{CompactList}\small\item\em {\bf This class or method is obsolete, it is provided for compatibility only.} Add a preview widget and enter the preview mode. \item\end{CompactList}\item 
void {\bf set\-Preview\-Widget} (const  {\bf KPreview\-Widget\-Base} $\ast$w)
\begin{CompactList}\small\item\em Adds a preview widget and enters the preview mode. \item\end{CompactList}\item 
virtual void {\bf show} ()\label{classKFileDialog_a23}

\item 
void {\bf set\-Mode} ({\bf KFile::Mode} m)
\begin{CompactList}\small\item\em {\bf This class or method is obsolete, it is provided for compatibility only.} use {\bf set\-Mode}{\rm (p.\,\pageref{classKFileDialog_a24})}( unsigned int ) instead \item\end{CompactList}\item 
void {\bf set\-Mode} (unsigned int m)
\begin{CompactList}\small\item\em Sets the mode of the dialog. \item\end{CompactList}\item 
{\bf KFile::Mode} {\bf mode} () const 
\begin{CompactList}\small\item\em Returns the mode of the filedialog. \item\end{CompactList}\item 
void {\bf set\-Location\-Label} (const  {\bf QString} \&text)
\begin{CompactList}\small\item\em Sets the text to be displayed in front of the selection. \item\end{CompactList}\item 
{\bf KTool\-Bar} $\ast$ {\bf tool\-Bar} () const 
\begin{CompactList}\small\item\em Returns a pointer to the toolbar. \item\end{CompactList}\item 
{\bf KPush\-Button} $\ast$ {\bf ok\-Button} () const 
\item 
{\bf KPush\-Button} $\ast$ {\bf cancel\-Button} () const 
\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 
{\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)
\begin{CompactList}\small\item\em Creates a modal file dialog and return the selected filename or an empty string if none was chosen. \item\end{CompactList}\item 
{\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)
\begin{CompactList}\small\item\em Creates a modal file dialog and returns the selected filenames or an empty list if none was chosen. \item\end{CompactList}\item 
{\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)
\begin{CompactList}\small\item\em Creates a modal file dialog and returns the selected URL or an empty string if none was chosen. \item\end{CompactList}\item 
{\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)
\begin{CompactList}\small\item\em Creates a modal file dialog and returns the selected URLs or an empty list if none was chosen. \item\end{CompactList}\item 
{\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)
\begin{CompactList}\small\item\em Creates a modal file dialog and returns the selected filename or an empty string if none was chosen. \item\end{CompactList}\item 
{\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)
\begin{CompactList}\small\item\em Creates a modal file dialog and returns the selected filename or an empty string if none was chosen. \item\end{CompactList}\item 
{\bf QString} {\bf get\-Existing\-Directory} (const  {\bf QString} \&start\-Dir=QString::null, {\bf QWidget} $\ast$parent=0, const  {\bf QString} \&caption=QString::null)
\begin{CompactList}\small\item\em Creates a modal file dialog and returns the selected directory or an empty string if none was chosen. \item\end{CompactList}\item 
{\bf KURL} {\bf get\-Existing\-URL} (const  {\bf QString} \&start\-Dir=QString::null, {\bf QWidget} $\ast$parent=0, const  {\bf QString} \&caption=QString::null)
\begin{CompactList}\small\item\em Creates a modal file dialog and returns the selected directory or an empty string if none was chosen. \item\end{CompactList}\item 
{\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)
\begin{CompactList}\small\item\em Creates a modal file dialog with an image previewer and returns the selected url or an empty string if none was chosen. \item\end{CompactList}\item 
{\bf KURL} {\bf get\-Start\-URL} (const  {\bf QString} \&start\-Dir, {\bf QString} \&recent\-Dir\-Class)
\begin{CompactList}\small\item\em This method implements the logic to determine the user's default directory to be listed. \item\end{CompactList}\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)
\begin{CompactList}\small\item\em {\bf This class or method is obsolete, it is provided for compatibility only.} \item\end{CompactList}\item 
void {\bf slot\-Filter\-Changed} ()\label{classKFileDialog_j5}

\item 
void {\bf path\-Combo\-Changed} (const  {\bf QString} \&)\label{classKFileDialog_j6}

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

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

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

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

\item 
void {\bf dir\-Completion} (const  {\bf QString} \&)\label{classKFileDialog_j11}

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

\item 
void {\bf toggle\-Speedbar} (bool)
\begin{CompactList}\small\item\em \begin{Desc}
\item[Since:]3.1 \end{Desc}
\item\end{CompactList}\item 
virtual void {\bf update\-Status\-Line} (int dirs, int files)
\begin{CompactList}\small\item\em {\bf This class or method is obsolete, it is provided for compatibility only.} \item\end{CompactList}\item 
virtual void {\bf slot\-Ok} ()\label{classKFileDialog_j15}

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

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

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

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

\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
void {\bf add\-Dir\-Entry} ({\bf KFile\-Item} $\ast$entry, bool disable\-Updating)
\begin{CompactList}\small\item\em adds a entry of the current directory. \item\end{CompactList}\item 
void {\bf init} (const  {\bf QString} \&start\-Dir, const  {\bf QString} \&filter, {\bf QWidget} $\ast$widget)
\begin{CompactList}\small\item\em Perform basic initialization tasks. \item\end{CompactList}\item 
virtual void {\bf init\-GUI} ()
\begin{CompactList}\small\item\em rebuild geometry managment. \item\end{CompactList}\item 
void {\bf multi\-Selection\-Changed} ()
\begin{CompactList}\small\item\em called when an item is highlighted/selected in multiselection mode. \item\end{CompactList}\item 
virtual void {\bf read\-Config} ({\bf KConfig} $\ast$, const  {\bf QString} \&group=QString::null)
\begin{CompactList}\small\item\em Reads configuration and applies it (size, recent directories, ...). \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 configuration. \item\end{CompactList}\item 
virtual void {\bf read\-Recent\-Files} ({\bf KConfig} $\ast$)
\begin{CompactList}\small\item\em Reads the recent used files and inserts them into the location combobox. \item\end{CompactList}\item 
virtual void {\bf save\-Recent\-Files} ({\bf KConfig} $\ast$)
\begin{CompactList}\small\item\em Saves the entries from the location combobox. \item\end{CompactList}\item 
{\bf KURL::List} {\bf tokenize} (const  {\bf QString} \&line) const 
\begin{CompactList}\small\item\em Parses the string \char`\"{}line\char`\"{} for files. \item\end{CompactList}\item 
{\bf KURL::List} \& {\bf parse\-Selected\-URLs} () const \label{classKFileDialog_b9}

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

\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 
{\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_e4})}(), {\bf get\-Open\-URL}{\rm (p.\,\pageref{classKFileDialog_e2})}() or for multiple files {\bf get\-Open\-File\-Names}{\rm (p.\,\pageref{classKFileDialog_e1})}() or {\bf get\-Open\-URLs}{\rm (p.\,\pageref{classKFileDialog_e3})}().

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 93 of file kfiledialog.h.

Referenced by operation\-Mode().

\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 direcotry 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 accept\-URLs}]If set to {\tt false}, the dialog will just accept files on the local filesystem. \end{description}
\end{Desc}


Definition at line 159 of file kfiledialog.cpp.

References init(), and KStd\-Accel::name().\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 direcotry 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 accept\-URLs}]If set to {\tt false}, the dialog will just accept files on the local filesystem.\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. \end{description}
\end{Desc}
\begin{Desc}
\item[Since:]3.1 \end{Desc}


Definition at line 166 of file kfiledialog.cpp.

References init(), and KStd\-Accel::name().\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 173 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 1454 of file kfiledialog.cpp.

References QDialog::result().

Referenced by get\-Existing\-URL(), get\-Image\-Open\-URL(), 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 1462 of file kfiledialog.cpp.

References QValue\-List$<$ KURL $>$::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 1583 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 1549 of file kfiledialog.cpp.

References QDialog::result().

Referenced by get\-Existing\-Directory(), get\-Open\-File\-Name(), and get\-Save\-File\-Name().\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 1559 of file kfiledialog.cpp.

References QValue\-List$<$ KURL $>$::begin(), QValue\-List$<$ KURL $>$::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} = 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 1141 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 1199 of file kfiledialog.cpp.

References KURL::add\-Path(), QFile::exists(), KURL::file\-Name(), QString::find\-Rev(), KFile\-Item::is\-Dir(), QString::is\-Empty(), KURL::is\-Local\-File(), KURL::is\-Malformed(), KURL::is\-Relative\-URL(), QString::left(), QCombo\-Box::line\-Edit(), KURL::path(), KURL::protocol(), KCombo\-Box::set\-Current\-Item(), QCombo\-Box::set\-Edit\-Text(), KURL::set\-Path(), set\-URL(), KProtocol\-Info::supports\-Listing(), KURL::url(), and KDir\-Operator::url().

Referenced by get\-Save\-File\-Name(), 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 1777 of file kfiledialog.cpp.

Referenced by get\-Image\-Open\-URL(), get\-Open\-File\-Name(), get\-Open\-File\-Names(), get\-Open\-URL(), get\-Open\-URLs(), get\-Save\-File\-Name(), and get\-Save\-URL().\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 1785 of file kfiledialog.cpp.

References Operation\-Mode.\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_e4})} and {\bf get\-Save\-URL()}{\rm (p.\,\pageref{classKFileDialog_e5})} 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 1767 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 1772 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 seperated 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:

{\tt  kfile-$>$set\-Filter(\char`\"{}$\ast$.cpp$|$C++ Source Files$\backslash$n$\ast$.h$|$Header files\char`\"{}); kfile-$>$set\-Filter(\char`\"{}$\ast$.cpp\char`\"{}); kfile-$>$set\-Filter(\char`\"{}$\ast$.cpp$|$Sources ($\ast$.cpp)\char`\"{}); kfile-$>$set\-Filter(\char`\"{}$\ast$.cpp $\ast$.cc $\ast$.C$|$C++ Source Files$\backslash$n$\ast$.h $\ast$.H$|$Header files\char`\"{}); }

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):

{\tt  kfile-$>$set\-Filter( \char`\"{}image/png text/html text/plain\char`\"{} ); kfile-$>$set\-Filter( \char`\"{}$\ast$.cue$|$CUE$\backslash$$\backslash$/BIN Files ($\ast$.cue)\char`\"{} ); }

\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 193 of file kfiledialog.cpp.

References KDir\-Operator::clear\-Filter(), KStd\-Accel::copy(), QString::find(), set\-Mime\-Filter(), KDir\-Operator::set\-Name\-Filter(), and QString\-List::split().

Referenced by KURLRequester::file\-Dialog(), get\-Existing\-Directory(), get\-Existing\-URL(), 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[Parameters:]
\begin{description}
\item[{\em filter}]Contains the new filter (only the extension part, not the explanation), for example, \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 filter\-Changed()}{\rm (p.\,\pageref{classKFileDialog_l3})} \end{Desc}


Definition at line 220 of file kfiledialog.cpp.\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})}() {\bf This class or method is obsolete, it is provided for compatibility only.} 

Definition at line 226 of file kfiledialog.cpp.

References QValue\-List::begin(), QValue\-List::end(), KStd\-Accel::label(), 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 275 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} = 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 240 of file kfiledialog.cpp.

References KDir\-Operator::clear\-Filter(), QString::from\-Latin1(), QString::is\-Empty(), KDir\-Operator::set\-Mime\-Filter(), and QString\-List::split().

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 264 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 255 of file kfiledialog.cpp.

References KDir\-Operator::clear\-Filter().\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}


{\bf This class or method is obsolete, it is provided for compatibility only.} Add a preview widget and enter the preview mode. 

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 {\bf 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 280 of file kfiledialog.cpp.

References KDir\-Operator::clear\-History(), and KDir\-Operator::set\-Preview\-Widget().

Referenced by get\-Image\-Open\-URL().\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 286 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} = QString::null, const {\bf QString} \& {\em filter} = QString::null, {\bf QWidget} $\ast$ {\em parent} = 0, const {\bf QString} \& {\em caption} = 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 direcotry last used by a filedialog in any application that specified the same keyword. \end{itemize}
\item[{\em filter}]This is a space seperated 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 1344 of file kfiledialog.cpp.

References KDir\-Operator::clear\-History(), QDialog::exec(), QString::is\-Null(), 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} = QString::null, const {\bf QString} \& {\em filter} = QString::null, {\bf QWidget} $\ast$ {\em parent} = 0, const {\bf QString} \& {\em caption} = QString::null)\hspace{0.3cm}{\tt  [static]}}\label{classKFileDialog_e1}


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 direcotry last used by a filedialog in any application that specified the same keyword. \end{itemize}
\item[{\em filter}]This is a space seperated 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 1360 of file kfiledialog.cpp.

References KDir\-Operator::clear\-History(), QDialog::exec(), QString::is\-Null(), 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} = QString::null, const {\bf QString} \& {\em filter} = QString::null, {\bf QWidget} $\ast$ {\em parent} = 0, const {\bf QString} \& {\em caption} = QString::null)\hspace{0.3cm}{\tt  [static]}}\label{classKFileDialog_e2}


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 direcotry last used by a filedialog in any application that specified the same keyword. \end{itemize}
\item[{\em filter}]This is a space seperated 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 1376 of file kfiledialog.cpp.

References KDir\-Operator::clear\-History(), QDialog::exec(), QString::is\-Null(), 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} = QString::null, const {\bf QString} \& {\em filter} = QString::null, {\bf QWidget} $\ast$ {\em parent} = 0, const {\bf QString} \& {\em caption} = QString::null)\hspace{0.3cm}{\tt  [static]}}\label{classKFileDialog_e3}


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 direcotry last used by a filedialog in any application that specified the same keyword. \end{itemize}
\item[{\em filter}]This is a space seperated 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 1390 of file kfiledialog.cpp.

References KDir\-Operator::clear\-History(), QDialog::exec(), QString::is\-Null(), 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} = QString::null, const {\bf QString} \& {\em filter} = QString::null, {\bf QWidget} $\ast$ {\em parent} = 0, const {\bf QString} \& {\em caption} = QString::null)\hspace{0.3cm}{\tt  [static]}}\label{classKFileDialog_e4}


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 direcotry last used by a filedialog in any application that specified the same keyword. \end{itemize}
\item[{\em filter}]This is a space seperated 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 1588 of file kfiledialog.cpp.

References KRecent\-Document::add(), QString::at(), QDialog::exec(), QString::is\-Empty(), QString::is\-Null(), 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} = QString::null, const {\bf QString} \& {\em filter} = QString::null, {\bf QWidget} $\ast$ {\em parent} = 0, const {\bf QString} \& {\em caption} = 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 direcotry last used by a filedialog in any application that specified the same keyword. \end{itemize}
\item[{\em filter}]This is a space seperated 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 1609 of file kfiledialog.cpp.

References KRecent\-Document::add(), QString::at(), QDialog::exec(), KURL::is\-Malformed(), QString::is\-Null(), 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} = QString::null, {\bf QWidget} $\ast$ {\em parent} = 0, const {\bf QString} \& {\em caption} = QString::null)\hspace{0.3cm}{\tt  [static]}}\label{classKFileDialog_e6}


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 direcotry 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 1421 of file kfiledialog.cpp.

References KDir\-Operator::clear\-History(), QDialog::exec(), QString::is\-Null(), ops, selected\-File(), KDialog::set\-Caption(), set\-Filter(), and set\-Mode().\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} = QString::null, {\bf QWidget} $\ast$ {\em parent} = 0, const {\bf QString} \& {\em caption} = QString::null)\hspace{0.3cm}{\tt  [static]}}\label{classKFileDialog_e7}


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_e6})}(), 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 direcotry 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 1406 of file kfiledialog.cpp.

References KDir\-Operator::clear\-History(), QDialog::exec(), QString::is\-Null(), ops, selected\-URL(), KDialog::set\-Caption(), set\-Filter(), and set\-Mode().\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} = QString::null, {\bf QWidget} $\ast$ {\em parent} = 0, const {\bf QString} \& {\em caption} = QString::null)\hspace{0.3cm}{\tt  [static]}}\label{classKFileDialog_e8}


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 direcotry 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 1436 of file kfiledialog.cpp.

References QDialog::exec(), QString::is\-Null(), QString\-List::join(), KImage\-IO::mime\-Types(), selected\-URL(), KDialog::set\-Caption(), set\-Mode(), set\-Operation\-Mode(), and set\-Preview\-Widget().\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}


{\bf This class or method is obsolete, it is provided for compatibility only.} use {\bf set\-Mode}{\rm (p.\,\pageref{classKFileDialog_a24})}( unsigned int ) instead 



Definition at line 1640 of file kfiledialog.cpp.

References KDir\-Operator::dir\-Only\-Mode(), and KDir\-Operator::set\-Mode().

Referenced by KURLRequester::file\-Dialog(), get\-Existing\-Directory(), get\-Existing\-URL(), get\-Image\-Open\-URL(), get\-Open\-File\-Name(), get\-Open\-File\-Names(), get\-Open\-URL(), get\-Open\-URLs(), KURLRequester::set\-Mode(), 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})}): {\tt  enum Mode \{ File = 1, Directory = 2, Files = 4, Existing\-Only = 8, Local\-Only = 16 \}; } You can OR the values, e.g. {\tt  {\bf KFile::Mode}{\rm (p.\,\pageref{classKFile_w15})} mode = static\_\-cast$<$KFile::Mode$>$( KFile::Files $|$ KFile::Existing\-Only $|$ KFile::Local\-Only ); set\-Mode( mode ); } 

Definition at line 1651 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 1656 of file kfiledialog.cpp.

References KDir\-Operator::mode(), and KFile::Mode.\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 188 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.: {\tt  your\-Action = new {\bf KAction}( i18n(\char`\"{}Your Action\char`\"{}), 0, this, SLOT( your\-Slot() ), this, \char`\"{}action name\char`\"{} ); your\-Action-$>$plug( kfile\-Dialog-$>${\bf tool\-Bar()}{\rm (p.\,\pageref{classKFileDialog_a28})} ); } 

Definition at line 695 of file kfiledialog.h.\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 1751 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 1756 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_a31}


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


Definition at line 1812 of file kfiledialog.cpp.

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

Referenced by 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_a32}


\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 1853 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_e9}


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 {\bf KFile\-Dialog}{\rm (p.\,\pageref{classKFileDialog})}() 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 1868 of file kfiledialog.cpp.

References QDir::current\-Dir\-Path(), KRecent\-Dirs::dir(), KGlobal\-Settings::document\-Path(), QFile::encode\-Name(), KURL::from\-Path\-Or\-URL(), KStd\-Accel::home(), QDir::home\-Dir\-Path(), KURL::is\-Empty(), QString::is\-Empty(), KCmd\-Line\-Args::make\-URL(), KURL::path(), KURL::protocol(), and KProtocol\-Info::supports\-Listing().

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}!addDirEntry@{addDirEntry}}
\index{addDirEntry@{addDirEntry}!KFileDialog@{KFile\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KFile\-Dialog::add\-Dir\-Entry ({\bf KFile\-Item} $\ast$ {\em entry}, bool {\em disable\-Updating})\hspace{0.3cm}{\tt  [protected]}}\label{classKFileDialog_b0}


adds a entry of the current directory. 

If disable\-Updating is set to true, it will care about clever updating \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 715 of file kfiledialog.cpp.

References KAction\-Collection::action(), KDir\-Operator::action\-Collection(), QWhats\-This::add(), QTool\-Tip::add(), KDialog\-Base::adjust\-Size(), QString::arg(), KStd\-Accel::completion(), KCombo\-Box::completion\-Box(), KDir\-Operator::completion\-Object(), KGlobal::config(), KGlobal\-Settings::desktop\-Path(), KDir\-Operator::dir\-Completion\-Object(), KGlobal\-Settings::document\-Path(), QDir::exists(), QFile::exists(), file\-Highlighted(), file\-Selected(), filter\-Changed(), QString::from\-Latin1(), KTool\-Bar::get\-Button(), get\-Start\-URL(), QDir::home\-Dir\-Path(), init\-GUI(), KAction\-Menu::insert(), KTool\-Bar::insert\-Button(), KTool\-Bar::insert\-Widget(), KCompletion\-Base::Key\-Binding\-Type, KDir\-Operator::mode(), KURL::path(), KMime\-Type::pixmap\-For\-URL(), KAction\-Menu::plug(), KAction::plug(), KAction\-Menu::popup\-Menu(), KConfig\-Base::read\-Bool\-Entry(), read\-Config(), read\-Recent\-Files(), QDir::root\-Dir\-Path(), KTool\-Bar::set\-Bar\-Pos(), KCompletion\-Base::set\-Completion\-Object(), KAction\-Menu::set\-Delayed(), set\-Filter(), KTool\-Bar::set\-Flat(), KCompletion\-Base::set\-Handle\-Signals(), KTool\-Bar::set\-Icon\-Text(), KTool\-Bar::set\-Item\-Auto\-Sized(), KDialog\-Base::set\-Main\-Widget(), QWidget::set\-Maximum\-Width(), QWidget::set\-Minimum\-Width(), KDir\-Operator::set\-Only\-Double\-Click\-Selects\-Files(), QDir::set\-Path(), KURL::set\-Path(), KTool\-Bar\-Button::set\-Popup(), 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(), KDialog::spacing\-Hint(), and toggle\-Speedbar().

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 managment. 



Definition at line 1003 of file kfiledialog.cpp.

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

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 691 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(), KCombo\-Box::set\-Current\-Item(), QCombo\-Box::set\-Edit\-Text(), 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} = QString::null)\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKFileDialog_b4}


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



Definition at line 1662 of file kfiledialog.cpp.

References KGlobal\-Settings::Completion, KGlobal\-Settings::Completion\-Auto, KGlobal\-Settings::completion\-Mode(), KDialog\-Base::config\-Dialog\-Size(), KConfig\-Base::group(), QString::is\-Empty(), KConfig\-Base::read\-Bool\-Entry(), KDir\-Operator::read\-Config(), KConfig\-Base::read\-Num\-Entry(), KConfig\-Base::read\-Path\-List\-Entry(), KCompletion\-Base::set\-Completion\-Mode(), KConfig\-Base::set\-Group(), KURLCombo\-Box::set\-Max\-Items(), KURLCombo\-Box::set\-URL(), KURLCombo\-Box::set\-URLs(), KTool\-Bar::size\-Hint(), toggle\-Speedbar(), 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} = QString::null)\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKFileDialog_b5}


Saves the current configuration. 



Definition at line 1706 of file kfiledialog.cpp.

References KCompletion\-Base::completion\-Mode(), KConfig\-Base::group(), QString::is\-Empty(), KDialog\-Base::save\-Dialog\-Size(), KConfig\-Base::set\-Group(), KDir\-Operator::write\-Config(), and KConfig\-Base::write\-Entry().\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 1726 of file kfiledialog.cpp.

References KConfig\-Base::group(), QCombo\-Box::insert\-Item(), KConfig\-Base::read\-Num\-Entry(), KConfig\-Base::read\-Path\-List\-Entry(), KCombo\-Box::set\-Current\-Item(), KConfig\-Base::set\-Group(), 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 1741 of file kfiledialog.cpp.

References KConfig\-Base::group(), KConfig\-Base::set\-Group(), KURLCombo\-Box::urls(), and KConfig\-Base::write\-Entry().\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 1507 of file kfiledialog.cpp.

References QValue\-List$<$ KURL $>$::append(), QString::contains(), QString::find(), KURL::is\-Malformed(), QString::mid(), KStd\-Accel::name(), KURL::set\-File\-Name(), KMessage\-Box::sorry(), and KDir\-Operator::url().\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}


{\bf This class or method is obsolete, it is provided for compatibility only.} 



Definition at line 1190 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 1817 of file kfiledialog.cpp.

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

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


{\bf This class or method is obsolete, it is provided for compatibility only.} 



Definition at line 1339 of file kfiledialog.cpp.

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