\section{KDir\-Select\-Dialog Class Reference}
\label{classKDirSelectDialog}\index{KDirSelectDialog@{KDirSelectDialog}}
A pretty dialog for a KDir\-Select control for selecting directories.  


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

Inheritance diagram for KDir\-Select\-Dialog:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=64pt]{classKDirSelectDialog__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KDir\-Select\-Dialog:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=174pt]{classKDirSelectDialog__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Slots}
\begin{CompactItemize}
\item 
void {\bf set\-Current\-URL} (const {\bf KURL} \&url)\label{classKDirSelectDialog_i0}

\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KDir\-Select\-Dialog} (const {\bf QString} \&start\-Dir=QString::null, bool local\-Only=false, {\bf QWidget} $\ast$parent=0L, const char $\ast$name=0, bool modal=false)
\item 
{\bf KURL} {\bf url} () const 
\item 
{\bf KFile\-Tree\-View} $\ast$ {\bf view} () const \label{classKDirSelectDialog_a3}

\item 
bool {\bf local\-Only} () const \label{classKDirSelectDialog_a4}

\item 
{\bf QString} {\bf start\-Dir} () const 
\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
static {\bf KURL} {\bf select\-Directory} (const {\bf QString} \&start\-Dir=QString::null, bool local\-Only=false, {\bf QWidget} $\ast$parent=0L, const {\bf QString} \&caption=QString::null)
\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
virtual void {\bf accept} ()\label{classKDirSelectDialog_b0}

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

\end{CompactItemize}
\subsection*{Protected Attributes}
\begin{CompactItemize}
\item 
{\bf QVBox\-Layout} $\ast$ {\bf m\_\-main\-Layout}\label{classKDirSelectDialog_p0}

\item 
{\bf QString} {\bf m\_\-start\-Dir}\label{classKDirSelectDialog_p1}

\end{CompactItemize}


\subsection{Detailed Description}
A pretty dialog for a KDir\-Select control for selecting directories. 

\begin{Desc}
\item[Author:]Michael Jarrett $<${\tt michaelj@corel.com}$>$ \end{Desc}
\begin{Desc}
\item[See also:]{\bf KFile\-Dialog}{\rm (p.\,\pageref{classKFileDialog})} \end{Desc}




Definition at line 39 of file kdirselectdialog.h.

\subsection{Constructor \& Destructor Documentation}
\index{KDirSelectDialog@{KDir\-Select\-Dialog}!KDirSelectDialog@{KDirSelectDialog}}
\index{KDirSelectDialog@{KDirSelectDialog}!KDirSelectDialog@{KDir\-Select\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDir\-Select\-Dialog::KDir\-Select\-Dialog (const {\bf QString} \& {\em start\-Dir} = {\tt QString::null}, bool {\em local\-Only} = {\tt false}, {\bf QWidget} $\ast$ {\em parent} = {\tt 0L}, const char $\ast$ {\em name} = {\tt 0}, bool {\em modal} = {\tt false})}\label{classKDirSelectDialog_a0}


The constructor. 

Creates a dialog to select a directory (url). 

Definition at line 86 of file kdirselectdialog.cpp.

References KList\-View::add\-Column(), KGlobal\-Settings::document\-Path(), KFile\-Dialog::get\-Start\-URL(), QPopup\-Menu::insert\-Separator(), KDialog\-Base::make\-Main\-Widget(), KToggle\-Action::plug(), KAction::plug(), QList\-View::set\-Column\-Width\-Mode(), KURLCompletion::set\-Mode(), QList\-View::set\-Resize\-Mode(), KDialog::spacing\-Hint(), and start\-Dir().

\subsection{Member Function Documentation}
\index{KDirSelectDialog@{KDir\-Select\-Dialog}!url@{url}}
\index{url@{url}!KDirSelectDialog@{KDir\-Select\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KURL} KDir\-Select\-Dialog::url () const}\label{classKDirSelectDialog_a2}


Returns the currently-selected URL, or a blank URL if none is selected. 

\begin{Desc}
\item[Returns:]The currently-selected URL, if one was selected. \end{Desc}


Definition at line 313 of file kdirselectdialog.cpp.

References KFile\-Tree\-View::current\-URL().

Referenced by select\-Directory().\index{KDirSelectDialog@{KDir\-Select\-Dialog}!selectDirectory@{selectDirectory}}
\index{selectDirectory@{selectDirectory}!KDirSelectDialog@{KDir\-Select\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KURL} KDir\-Select\-Dialog::select\-Directory (const {\bf QString} \& {\em start\-Dir} = {\tt QString::null}, bool {\em local\-Only} = {\tt false}, {\bf QWidget} $\ast$ {\em parent} = {\tt 0L}, const {\bf QString} \& {\em caption} = {\tt QString::null})\hspace{0.3cm}{\tt  [static]}}\label{classKDirSelectDialog_e0}


Creates a KDir\-Select\-Dialog, and returns the result. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em start\-Dir}]the directory, initially shown The tree will display this directory and subdirectories of it. \item[{\em local\-Only}]unused. You can only select paths below the start\-Dir \item[{\em parent}]the parent widget to use for the dialog, or NULL to create a parent-less dialog \item[{\em caption}]the caption to use for the dialog, or QString::null for the default caption \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The URL selected, or an empty URL if the user canceled or no URL was selected. \end{Desc}


Definition at line 453 of file kdirselectdialog.cpp.

References QDialog::exec(), KDialog::set\-Caption(), start\-Dir(), and url().

Referenced by KFile\-Dialog::get\-Existing\-Directory(), KFile\-Dialog::get\-Existing\-URL(), and KURLRequester::slot\-Open\-Dialog().\index{KDirSelectDialog@{KDir\-Select\-Dialog}!startDir@{startDir}}
\index{startDir@{startDir}!KDirSelectDialog@{KDir\-Select\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KDir\-Select\-Dialog::start\-Dir () const\hspace{0.3cm}{\tt  [inline]}}\label{classKDirSelectDialog_a5}


\begin{Desc}
\item[Returns:]The path for the root node \end{Desc}


Definition at line 88 of file kdirselectdialog.h.

Referenced by KDir\-Select\-Dialog(), and select\-Directory().

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