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

kio

KDirSelectDialog Class Reference

A pretty dialog for a KDirSelect control for selecting directories. More...

#include <kdirselectdialog.h>

Inheritance diagram for KDirSelectDialog:

Inheritance graph
[legend]

List of all members.


Public Slots

void setCurrentURL (const KURL &url)

Public Member Functions

 KDirSelectDialog (const QString &startDir=QString::null, bool localOnly=false, QWidget *parent=0L, const char *name=0, bool modal=false)
bool localOnly () const
QString startDir () const
KURL url () const
KFileTreeView * view () const
 ~KDirSelectDialog ()

Static Public Member Functions

static KURL selectDirectory (const QString &startDir=QString::null, bool localOnly=false, QWidget *parent=0L, const QString &caption=QString::null)

Protected Slots

virtual void slotUser1 ()

Protected Member Functions

virtual void accept ()
virtual void virtual_hook (int id, void *data)

Protected Attributes

QVBoxLayout * m_mainLayout
QString m_startDir

Detailed Description

A pretty dialog for a KDirSelect control for selecting directories.

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

Definition at line 39 of file kdirselectdialog.h.


Constructor & Destructor Documentation

KDirSelectDialog::KDirSelectDialog ( const QString &  startDir = QString::null,
bool  localOnly = false,
QWidget *  parent = 0L,
const char *  name = 0,
bool  modal = false 
)

The constructor.

Creates a dialog to select a directory (url).

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
name the QObject::name
modal if the dialog is modal or not

Definition at line 87 of file kdirselectdialog.cpp.

KDirSelectDialog::~KDirSelectDialog (  ) 

Definition at line 168 of file kdirselectdialog.cpp.


Member Function Documentation

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

Definition at line 298 of file kdirselectdialog.cpp.

bool KDirSelectDialog::localOnly (  )  const [inline]

Definition at line 70 of file kdirselectdialog.h.

KURL KDirSelectDialog::selectDirectory ( const QString &  startDir = QString::null,
bool  localOnly = false,
QWidget *  parent = 0L,
const QString &  caption = QString::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 QString::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.

void KDirSelectDialog::setCurrentURL ( const KURL &  url  )  [slot]

Definition at line 173 of file kdirselectdialog.cpp.

void KDirSelectDialog::slotUser1 (  )  [protected, virtual, slot]

Definition at line 293 of file kdirselectdialog.cpp.

QString KDirSelectDialog::startDir (  )  const [inline]

Returns:
The path for the root node

Definition at line 89 of file kdirselectdialog.h.

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.

KFileTreeView* KDirSelectDialog::view (  )  const [inline]

Definition at line 68 of file kdirselectdialog.h.

void KDirSelectDialog::virtual_hook ( int  id,
void *  data 
) [protected, virtual]

Definition at line 478 of file kdirselectdialog.cpp.


Member Data Documentation

QVBoxLayout* KDirSelectDialog::m_mainLayout [protected]

Definition at line 101 of file kdirselectdialog.h.

QString KDirSelectDialog::m_startDir [protected]

Definition at line 102 of file kdirselectdialog.h.


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

kio

Skip menu "kio"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
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