|
|
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. |
Returns: The URL selected, or an empty URL if the user cancelled or no URL was selected.
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.