• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KFile

KDirSelectDialog Class Reference

#include <kdirselectdialog.h>

Inheritance diagram for KDirSelectDialog:

Inheritance graph
[legend]

List of all members.


Detailed Description

A pretty dialog for a KDirSelect control for selecting directories.

Author:
Michael Jarrett <michaelj@corel.com>
See also:
KFileDialog

Definition at line 35 of file kdirselectdialog.h.


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)

Constructor & Destructor Documentation

KDirSelectDialog::KDirSelectDialog ( const KUrl &  startDir = KUrl(),
bool  localOnly = false,
QWidget *  parent = 0L 
) [explicit]

Creates a new directory selection dialog.

Definition at line 214 of file kdirselectdialog.cpp.

KDirSelectDialog::~KDirSelectDialog (  ) 

Destroys the directory selection dialog.

Definition at line 314 of file kdirselectdialog.cpp.


Member Function Documentation

void KDirSelectDialog::accept (  )  [protected, virtual]

Reimplemented from QDialog.

Definition at line 359 of file kdirselectdialog.cpp.

void KDirSelectDialog::hideEvent ( QHideEvent *  event  )  [protected, virtual]

Reimplemented for saving the dialog geometry.

Reimplemented from KDialog.

Definition at line 376 of file kdirselectdialog.cpp.

bool KDirSelectDialog::localOnly (  )  const

Returns whether only local directories can be selected.

Definition at line 334 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.
NOTE: if you use this method and nothing else from libkfile, then you can use KFileDialog::getExistingDirectory (if localOnly was true) or KFileDialog::getExistingDirectoryUrl (if localOnly was false), and then you can link to libkio only instead of libkfile.

Definition at line 384 of file kdirselectdialog.cpp.

void KDirSelectDialog::setCurrentUrl ( const KUrl &  url  )  [slot]

Sets the current url in the dialog.

Definition at line 344 of file kdirselectdialog.cpp.

KUrl KDirSelectDialog::startDir (  )  const

Returns:
The path for the root node

Definition at line 339 of file kdirselectdialog.cpp.

KUrl KDirSelectDialog::url (  )  const

Returns:
The currently selected URL, or an empty one if no item is selected.

Definition at line 319 of file kdirselectdialog.cpp.

QAbstractItemView * KDirSelectDialog::view (  )  const

Returns a pointer to the view which is used for displaying the directories.

Definition at line 329 of file kdirselectdialog.cpp.


The documentation for this class was generated from the following files:
  • kdirselectdialog.h
  • kdirselectdialog.cpp

KFile

Skip menu "KFile"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal