• Skip to content
  • Skip to link menu
KDE 4.7 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

KIO

Public Member Functions | Static Public Member Functions
KUrlRequesterDialog Class Reference

#include <kurlrequesterdialog.h>

Inheritance diagram for KUrlRequesterDialog:
Inheritance graph
[legend]

List of all members.

Public Member Functions

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

Static Public Member Functions

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

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>

Constructor & Destructor Documentation

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

Constructs a KUrlRequesterDialog.

Parameters:
urlThe 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.
parentThe parent object of this widget.

Definition at line 52 of file kurlrequesterdialog.cpp.

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

Constructs a KUrlRequesterDialog.

Parameters:
urlThe 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.
textText of the label
parentThe parent object of this widget.

Definition at line 61 of file kurlrequesterdialog.cpp.

KUrlRequesterDialog::~KUrlRequesterDialog ( )

Destructs the dialog.

Definition at line 70 of file kurlrequesterdialog.cpp.


Member Function Documentation

KFileDialog * KUrlRequesterDialog::fileDialog ( )

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

Definition at line 139 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:
urlThis specifies the initial path of the input line.
parentThe widget the dialog will be centered on initially.
captionThe caption to use for the dialog.

Definition at line 123 of file kurlrequesterdialog.cpp.

KUrl KUrlRequesterDialog::selectedUrl ( ) const

Returns the fully qualified filename.

Definition at line 114 of file kurlrequesterdialog.cpp.

KUrlRequester * KUrlRequesterDialog::urlRequester ( )

Returns a pointer to the KUrlRequester.

Definition at line 144 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
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.5
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