\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=65pt]{classKDirSelectDialog__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KDir\-Select\-Dialog:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=224pt]{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)
\begin{CompactList}\small\item\em The constructor. \item\end{CompactList}\item 
{\bf KURL} {\bf url} () const 
\begin{CompactList}\small\item\em Returns the currently-selected URL, or a blank URL if none is selected. \item\end{CompactList}\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 
{\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)
\begin{CompactList}\small\item\em Creates a KDir\-Select\-Dialog, and returns the result. \item\end{CompactList}\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 37 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} = QString::null, bool {\em local\-Only} = false, {\bf QWidget} $\ast$ {\em parent} = 0L, const char $\ast$ {\em name} = 0, bool {\em modal} = false)}\label{classKDirSelectDialog_a0}


The constructor. 

Creates a dialog to select a directory (url). 

Definition at line 63 of file kdirselectdialog.cpp.

References KList\-View::add\-Column(), KGlobal::config(), KGlobal\-Settings::document\-Path(), KURL::from\-Path\-Or\-URL(), KFile\-Dialog::get\-Start\-URL(), KDialog\-Base::make\-Main\-Widget(), KStd\-Accel::name(), QList\-View::set\-Column\-Width\-Mode(), KURLCompletion::set\-Mode(), KURL::set\-Path(), QList\-View::set\-Resize\-Mode(), and KDialog::spacing\-Hint().

\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 275 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} = QString::null, bool {\em local\-Only} = false, {\bf QWidget} $\ast$ {\em parent} = 0L, const {\bf QString} \& {\em caption} = 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 \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The URL selected, or an empty URL if the user cancelled or no URL was selected. \end{Desc}


Definition at line 354 of file kdirselectdialog.cpp.

References QDialog::exec(), QString::is\-Null(), KDialog::set\-Caption(), and url().\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 84 of file kdirselectdialog.h.

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