#include <kdirselectdialog.h>
Inherits KDialogBase.
|
static KURL | selectDirectory (const TQString &startDir=TQString::null, bool localOnly=false, TQWidget *parent=0L, const TQString &caption=TQString::null) |
|
A pretty dialog for a KDirSelect control for selecting directories.
- Author
- Michael Jarrett micha.nosp@m.elj@.nosp@m.corel.nosp@m..com
- See also
- KFileDialog
Definition at line 39 of file kdirselectdialog.h.
◆ KDirSelectDialog()
KDirSelectDialog::KDirSelectDialog |
( |
const TQString & |
startDir = TQString::null , |
|
|
bool |
localOnly = false , |
|
|
TQWidget * |
parent = 0L , |
|
|
const char * |
name = 0 , |
|
|
bool |
modal = false |
|
) |
| |
The constructor.
Creates a dialog to select a directory (url).
Definition at line 87 of file kdirselectdialog.cpp.
◆ ~KDirSelectDialog()
KDirSelectDialog::~KDirSelectDialog |
( |
| ) |
|
◆ accept()
void KDirSelectDialog::accept |
( |
| ) |
|
|
protectedvirtual |
◆ localOnly()
bool KDirSelectDialog::localOnly |
( |
| ) |
const |
|
inline |
◆ selectDirectory()
KURL KDirSelectDialog::selectDirectory |
( |
const TQString & |
startDir = TQString::null , |
|
|
bool |
localOnly = false , |
|
|
TQWidget * |
parent = 0L , |
|
|
const TQString & |
caption = TQString::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 |
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 TQString::null for the default caption |
- Returns
- The URL selected, or an empty URL if the user canceled or no URL was selected.
Definition at line 461 of file kdirselectdialog.cpp.
◆ setCurrentURL
void KDirSelectDialog::setCurrentURL |
( |
const KURL & |
url | ) |
|
|
slot |
◆ slotUser1
void KDirSelectDialog::slotUser1 |
( |
| ) |
|
|
protectedvirtualslot |
◆ startDir()
TQString KDirSelectDialog::startDir |
( |
| ) |
const |
|
inline |
◆ url()
KURL KDirSelectDialog::url |
( |
| ) |
const |
Returns the currently-selected URL, or a blank URL if none is selected.
- Returns
- The currently-selected URL, if one was selected.
Definition at line 321 of file kdirselectdialog.cpp.
◆ view()
◆ virtual_hook()
void KDirSelectDialog::virtual_hook |
( |
int |
id, |
|
|
void * |
data |
|
) |
| |
|
protectedvirtual |
◆ m_mainLayout
TQVBoxLayout* KDirSelectDialog::m_mainLayout |
|
protected |
◆ m_startDir
TQString KDirSelectDialog::m_startDir |
|
protected |
The documentation for this class was generated from the following files: