.TH "KDirSelectDialog" kde3 "11 Jun 2005" "Version Version 3.4.1" "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
.ti -1c
.RI "\fBKURL\fP \fBurl\fP () const "
.br
.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 "static \fBKURL\fP \fBselectDirectory\fP (const \fBQString\fP &startDir=QString::null, bool localOnly=false, \fBQWidget\fP *parent=0L, const \fBQString\fP &caption=QString::null)"
.br
.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 39 of file kdirselectdialog.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KDirSelectDialog::KDirSelectDialog (const \fBQString\fP & startDir = \fCQString::null\fP, bool localOnly = \fCfalse\fP, \fBQWidget\fP * parent = \fC0L\fP, const char * name = \fC0\fP, bool modal = \fCfalse\fP)"
.PP
The constructor. 
.PP
Creates a dialog to select a directory (url). 
.PP
Definition at line 86 of file kdirselectdialog.cpp.
.PP
References KListView::addColumn(), KGlobalSettings::documentPath(), KFileDialog::getStartURL(), QPopupMenu::insertSeparator(), KDialogBase::makeMainWidget(), KToggleAction::plug(), KAction::plug(), QListView::setColumnWidthMode(), KURLCompletion::setMode(), QListView::setResizeMode(), KDialog::spacingHint(), and startDir().
.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. 
.PP
\fBReturns:\fP
.RS 4
The currently-selected URL, if one was selected. 
.RE
.PP

.PP
Definition at line 313 of file kdirselectdialog.cpp.
.PP
References KFileTreeView::currentURL().
.PP
Referenced by selectDirectory().
.SS "\fBKURL\fP KDirSelectDialog::selectDirectory (const \fBQString\fP & startDir = \fCQString::null\fP, bool localOnly = \fCfalse\fP, \fBQWidget\fP * parent = \fC0L\fP, const \fBQString\fP & caption = \fCQString::null\fP)\fC [static]\fP"
.PP
Creates a KDirSelectDialog, and returns the result. 
.PP
\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 
.br
\fIparent\fP the parent widget to use for the dialog, or NULL to create a parent-less dialog 
.br
\fIcaption\fP the caption to use for the dialog, or QString::null for the default caption 
.RE
.PP
\fBReturns:\fP
.RS 4
The URL selected, or an empty URL if the user canceled or no URL was selected. 
.RE
.PP

.PP
Definition at line 453 of file kdirselectdialog.cpp.
.PP
References QDialog::exec(), KDialog::setCaption(), startDir(), and url().
.PP
Referenced by KFileDialog::getExistingDirectory(), KFileDialog::getExistingURL(), and KURLRequester::slotOpenDialog().
.SS "\fBQString\fP KDirSelectDialog::startDir () const\fC [inline]\fP"
.PP
\fBReturns:\fP
.RS 4
The path for the root node 
.RE
.PP

.PP
Definition at line 88 of file kdirselectdialog.h.
.PP
Referenced by KDirSelectDialog(), and selectDirectory().

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