.TH "KDirSelectDialog" 3 "28 Jan 2004" "kio Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KDirSelectDialog \- A pretty dialog for a KDirSelect control for selecting directories.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kdirselectdialog.h>\fP
.PP
Inherits \fBKDialogBase\fP.
.PP
.SS "Public Slots"

.in +1c
.ti -1c
.RI "void \fBsetCurrentURL\fP (const  \fBKURL\fP &url)"
.br
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKDirSelectDialog\fP (const  \fBQString\fP &startDir=QString::null, bool localOnly=false, \fBQWidget\fP *parent=0L, const  char *name=0, bool modal=false)"
.br
.RI "\fIThe constructor. \fP"
.ti -1c
.RI "\fBKURL\fP \fBurl\fP () const "
.br
.RI "\fIReturns the currently-selected URL, or a blank URL if none is selected. \fP"
.ti -1c
.RI "\fBKFileTreeView\fP * \fBview\fP () const "
.br
.ti -1c
.RI "bool \fBlocalOnly\fP () const "
.br
.ti -1c
.RI "\fBQString\fP \fBstartDir\fP () const "
.br
.in -1c
.SS "Static Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKURL\fP \fBselectDirectory\fP (const  \fBQString\fP &startDir=QString::null, bool localOnly=false, \fBQWidget\fP *parent=0L, const  \fBQString\fP &caption=QString::null)"
.br
.RI "\fICreates a KDirSelectDialog, and returns the result. \fP"
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "virtual void \fBaccept\fP ()"
.br
.ti -1c
.RI "virtual void \fBvirtual_hook\fP (int id, void *data)"
.br
.in -1c
.SS "Protected Attributes"

.in +1c
.ti -1c
.RI "\fBQVBoxLayout\fP * \fBm_mainLayout\fP"
.br
.ti -1c
.RI "\fBQString\fP \fBm_startDir\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
A pretty dialog for a KDirSelect control for selecting directories. 

\fBAuthor:\fP
.RS 4
Michael Jarrett <michaelj@corel.com> 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBKFileDialog\fP 
.RE
.PP

.PP
Definition at line 37 of file kdirselectdialog.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KDirSelectDialog::KDirSelectDialog (const \fBQString\fP & startDir = QString::null, bool localOnly = false, \fBQWidget\fP * parent = 0L, const char * name = 0, bool modal = false)"
.PP
The constructor. Creates a dialog to select a directory (url). Definition at line 63 of file kdirselectdialog.cpp.
.PP
References KListView::addColumn(), KGlobal::config(), KGlobalSettings::documentPath(), KURL::fromPathOrURL(), KFileDialog::getStartURL(), KDialogBase::makeMainWidget(), KStdAccel::name(), QListView::setColumnWidthMode(), KURLCompletion::setMode(), KURL::setPath(), QListView::setResizeMode(), and KDialog::spacingHint().
.SH "Member Function Documentation"
.PP 
.SS "\fBKURL\fP KDirSelectDialog::url () const"
.PP
Returns the currently-selected URL, or a blank URL if none is selected. \fBReturns:\fP
.RS 4
The currently-selected URL, if one was selected. 
.RE
.PP
Definition at line 275 of file kdirselectdialog.cpp.
.PP
References KFileTreeView::currentURL().
.PP
Referenced by selectDirectory().
.SS "\fBKURL\fP KDirSelectDialog::selectDirectory (const \fBQString\fP & startDir = QString::null, bool localOnly = false, \fBQWidget\fP * parent = 0L, const \fBQString\fP & caption = QString::null)\fC [static]\fP"
.PP
Creates a KDirSelectDialog, and returns the result. \fBParameters:\fP
.RS 4
\fIstartDir\fP the directory, initially shown The tree will display this directory and subdirectories of it. 
.br
\fIlocalOnly\fP unused. You can only select paths below the startDir 
.RE
.PP
\fBReturns:\fP
.RS 4
The URL selected, or an empty URL if the user cancelled or no URL was selected. 
.RE
.PP
Definition at line 354 of file kdirselectdialog.cpp.
.PP
References QDialog::exec(), QString::isNull(), KDialog::setCaption(), and url().
.SS "\fBQString\fP KDirSelectDialog::startDir () const\fC [inline]\fP"
.PP
\fBReturns:\fP
.RS 4
The path for the root node 
.RE
.PP
Definition at line 84 of file kdirselectdialog.h.

.SH "Author"
.PP 
Generated automatically by Doxygen for kio Library from the source code.
