KDirSelectDialog Class Reference
A pretty dialog for a KDirSelect control for selecting directories. More...
#include <kdirselectdialog.h>
Inheritance diagram for KDirSelectDialog:

Public Methods | |
KDirSelectDialog (const QString &startDir=QString::null, bool localOnly=false, QWidget *parent=0L, const char *name=0, bool modal=false) | |
The constructor. | |
KURL | url () const |
Returns the currently-selected URL, or a blank URL if none is selected. | |
QString | startDir () const |
Static Public Methods | |
KURL | selectDirectory (const QString &startDir=QString::null, bool localOnly=false, QWidget *parent=0L, const QString &caption=QString::null) |
Creates a KDirSelectDialog, and returns the result. | |
Protected Methods | |
virtual void | accept () |
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
|
The constructor. Creates a dialog to select a directory (url). Definition at line 63 of file kdirselectdialog.cpp. References KListView::addColumn(), KGlobal::config(), KGlobalSettings::documentPath(), KURL::fromPathOrURL(), KFileDialog::getStartURL(), KDialogBase::makeMainWidget(), QListView::setColumnWidthMode(), KURLCompletion::setMode(), KURL::setPath(), QListView::setResizeMode(), and KDialog::spacingHint(). |
Member Function Documentation
|
Returns the currently-selected URL, or a blank URL if none is selected.
Definition at line 275 of file kdirselectdialog.cpp. References KFileTreeView::currentURL(). Referenced by selectDirectory(). |
|
Creates a KDirSelectDialog, and returns the result.
Definition at line 354 of file kdirselectdialog.cpp. References QDialog::exec(), QString::isNull(), KDialog::setCaption(), and url(). |
|
Definition at line 84 of file kdirselectdialog.h. |
The documentation for this class was generated from the following files: