Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

KDirSelectDialog Class Reference

#include <kdirselectdialog.h>

Inheritance diagram for KDirSelectDialog:

KDialogBase KDialog List of all members.

Public Methods

 KDirSelectDialog (const QString &startDir=QString::null, bool localOnly=false, QWidget *parent=0L, const char *name=0, bool modal=false)
KURL url () const
QString startDir () const

Static Public Methods

KURL selectDirectory (const QString &startDir=QString::null, bool localOnly=false, QWidget *parent=0L, const QString &caption=QString::null)

Protected Methods

virtual void virtual_hook (int id, void *data)

Detailed Description

A pretty dialog for a KDirSelect control for selecting directories.
Author:
Michael Jarrett <michaelj@corel.com>
See also:
KFileDialog

Definition at line 37 of file kdirselectdialog.h.


Constructor & Destructor Documentation

KDirSelectDialog::KDirSelectDialog const QString &    startDir = QString::null,
bool    localOnly = false,
QWidget *    parent = 0L,
const char *    name = 0,
bool    modal = false
 

The constructor. Creates a dialog to select a directory (url).


Member Function Documentation

KURL KDirSelectDialog::selectDirectory const QString &    startDir = QString::null,
bool    localOnly = false,
QWidget *    parent = 0L,
const QString &    caption = QString::null
[static]
 

Creates a KDirSelectDialog, and returns the result.

Parameters:
startDir  the directory, initially shown The tree will display this directory and subdirectories of it.
localOnly  unused. You can only select paths below the startDir
Returns:
The URL selected, or an empty URL if the user cancelled or no URL was selected.

QString KDirSelectDialog::startDir   const [inline]
 

Returns:
The path for the root node

Definition at line 84 of file kdirselectdialog.h.

KURL KDirSelectDialog::url  
 

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

Returns:
The currently-selected URL, if one was selected.


The documentation for this class was generated from the following file:
Generated on Wed Aug 13 23:30:10 2003 for kdelibs by doxygen1.2.18