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

KIO

KUrlRequesterDialog Class Reference

#include <kurlrequesterdialog.h>

Inheritance diagram for KUrlRequesterDialog:

Inheritance graph
[legend]

List of all members.


Detailed Description

Dialog in which a user can enter a filename or url.

It is a dialog encapsulating KUrlRequester. The API is derived from KFileDialog.

Simple dialog to enter a filename/url.

Author:
Wilco Greven <greven@kde.org>

Definition at line 39 of file kurlrequesterdialog.h.


Public Member Functions

KFileDialog * fileDialog ()
 KUrlRequesterDialog (const QString &url, const QString &text, QWidget *parent)
 KUrlRequesterDialog (const QString &url, QWidget *parent=0)
KUrl selectedUrl () const
KUrlRequester * urlRequester ()
 ~KUrlRequesterDialog ()

Static Public Member Functions

static KUrl getUrl (const QString &url=QString(), QWidget *parent=0, const QString &caption=QString())

Constructor & Destructor Documentation

KUrlRequesterDialog::KUrlRequesterDialog ( const QString &  url,
QWidget *  parent = 0 
) [explicit]

Constructs a KUrlRequesterDialog.

Parameters:
url The url of the directory to start in. Use QString() to start in the current working directory, or the last directory where a file has been selected.
parent The parent object of this widget.

Definition at line 53 of file kurlrequesterdialog.cpp.

KUrlRequesterDialog::KUrlRequesterDialog ( const QString &  url,
const QString &  text,
QWidget *  parent 
)

Constructs a KUrlRequesterDialog.

Parameters:
url The url of the directory to start in. Use QString() to start in the current working directory, or the last directory where a file has been selected.
text Text of the label
parent The parent object of this widget.

Definition at line 62 of file kurlrequesterdialog.cpp.

KUrlRequesterDialog::~KUrlRequesterDialog (  ) 

Destructs the dialog.

Definition at line 71 of file kurlrequesterdialog.cpp.


Member Function Documentation

KFileDialog * KUrlRequesterDialog::fileDialog (  ) 

Returns a pointer to the file dialog used by the KUrlRequester.

Definition at line 142 of file kurlrequesterdialog.cpp.

KUrl KUrlRequesterDialog::getUrl ( const QString &  url = QString(),
QWidget *  parent = 0,
const QString &  caption = QString() 
) [static]

Creates a modal dialog, executes it and returns the selected URL.

Parameters:
url This specifies the initial path of the input line.
parent The widget the dialog will be centered on initially.
caption The caption to use for the dialog.

Definition at line 126 of file kurlrequesterdialog.cpp.

KUrl KUrlRequesterDialog::selectedUrl (  )  const

Returns the fully qualified filename.

Definition at line 117 of file kurlrequesterdialog.cpp.

KUrlRequester * KUrlRequesterDialog::urlRequester (  ) 

Returns a pointer to the KUrlRequester.

Definition at line 147 of file kurlrequesterdialog.cpp.


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

KIO

Skip menu "KIO"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • 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