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

Public Slots | |
void | setCurrentUrl (const KUrl &url) |
Public Member Functions | |
KDirSelectDialog (const KUrl &startDir=KUrl(), bool localOnly=false, QWidget *parent=0L) | |
bool | localOnly () const |
KUrl | startDir () const |
KUrl | url () const |
QAbstractItemView * | view () const |
~KDirSelectDialog () | |
Static Public Member Functions | |
static KUrl | selectDirectory (const KUrl &startDir=KUrl(), bool localOnly=false, QWidget *parent=0L, const QString &caption=QString()) |
Protected Member Functions | |
virtual void | accept () |
virtual void | hideEvent (QHideEvent *event) |
Detailed Description
A pretty dialog for a KDirSelect control for selecting directories.
- See also:
- KFileDialog
Definition at line 35 of file kdirselectdialog.h.
Constructor & Destructor Documentation
KDirSelectDialog::KDirSelectDialog | ( | const KUrl & | startDir = KUrl() , |
|
bool | localOnly = false , |
|||
QWidget * | parent = 0L | |||
) | [explicit] |
Creates a new directory selection dialog.
For internal use only.
use the static selectDirectory function
- Parameters:
-
startDir the directory, initially shown localOnly unused. You can only select paths below the startDir parent the parent for the dialog, usually 0L
Definition at line 217 of file kdirselectdialog.cpp.
KDirSelectDialog::~KDirSelectDialog | ( | ) |
Member Function Documentation
void KDirSelectDialog::accept | ( | ) | [protected, virtual] |
Definition at line 370 of file kdirselectdialog.cpp.
void KDirSelectDialog::hideEvent | ( | QHideEvent * | event | ) | [protected, virtual] |
bool KDirSelectDialog::localOnly | ( | ) | const |
Returns whether only local directories can be selected.
Definition at line 345 of file kdirselectdialog.cpp.
KUrl KDirSelectDialog::selectDirectory | ( | const KUrl & | startDir = KUrl() , |
|
bool | localOnly = false , |
|||
QWidget * | parent = 0L , |
|||
const QString & | caption = QString() | |||
) | [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 parent the parent widget to use for the dialog, or NULL to create a parent-less dialog caption the caption to use for the dialog, or QString() for the default caption
- Returns:
- The URL selected, or an empty URL if the user canceled or no URL was selected.
Definition at line 395 of file kdirselectdialog.cpp.
void KDirSelectDialog::setCurrentUrl | ( | const KUrl & | url | ) | [slot] |
KUrl KDirSelectDialog::startDir | ( | ) | const |
KUrl KDirSelectDialog::url | ( | ) | const |
- Returns:
- The currently selected URL, or an empty one if no item is selected.
Definition at line 324 of file kdirselectdialog.cpp.
QAbstractItemView * KDirSelectDialog::view | ( | ) | const |
Returns a pointer to the view which is used for displaying the directories.
Definition at line 340 of file kdirselectdialog.cpp.
The documentation for this class was generated from the following files: