class KDirSelectDialog

# class KDirSelectDialog | A pretty dialog for a KDirSelect control for selecting directories. More...
Definition | `#include <kdirselectdialog.h>`
Inherits | KDialogBase (kdeui) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

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

#### Public Slots

- void setCurrentURL ( const KURL& url )

#### Public Static Methods

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

#### Protected Methods

- virtual void accept ()
- virtual void virtual_hook ( int id, void* data )

#### Protected Members

- QVBoxLayout *m_mainLayout
- QString m_startDir

## Detailed Description

A pretty dialog for a KDirSelect control for selecting directories.

See also: KFileDialog

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

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

Parameters:

startDir | the directory, initially shown
parent | the parent for the dialog, usually 0L
name | the QObject::name
modal | if the dialog is modal or not

~KDirSelectDialog () | ### ~KDirSelectDialog

KURL url () | ### url

[const]

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

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

KFileTreeView * view () | ### view

[const]

bool localOnly () | ### localOnly

[const]

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

[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 startDir () | ### startDir

[const]

Returns: The path for the root node

void setCurrentURL ( const KURL& url ) | ### setCurrentURL

[slot]

void accept () | ### accept

[protected virtual]

QVBoxLayout * m_mainLayout | ### m_mainLayout

[protected]

QString m_startDir | ### m_startDir

[protected]

void virtual_hook ( int id, void* data ) | ### virtual_hook

[protected virtual]

Reimplemented from KDialogBase.

- Author: Michael Jarrett
- Generated: root on macppc.ports.openbsd.org on Sat Sep 6 10:37:17 2003, using kdoc 2.0a54.