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

KFile

Public Member Functions

KNameAndUrlInputDialog Class Reference

Dialog to ask for a name (e.g. More...

#include <knameandurlinputdialog.h>

Inheritance diagram for KNameAndUrlInputDialog:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 KNameAndUrlInputDialog (const QString &nameLabel, const QString &urlLabel, const KUrl &startDir, QWidget *parent)
virtual ~KNameAndUrlInputDialog ()
QString name () const
void setSuggestedName (const QString &name)
void setSuggestedUrl (const KUrl &url)
KUrl url () const

Detailed Description

Dialog to ask for a name (e.g.

filename) and a URL Basically a merge of KLineEditDlg and KUrlRequesterDlg ;)

Since:
4.5
Author:
David Faure <faure@kde.org>

Definition at line 36 of file knameandurlinputdialog.h.


Constructor & Destructor Documentation

KNameAndUrlInputDialog::KNameAndUrlInputDialog ( const QString &  nameLabel,
const QString &  urlLabel,
const KUrl &  startDir,
QWidget *  parent 
)
Parameters:
nameLabellabel for the name field
urlLabellabel for the URL requester
startDirstart directory for the URL requester (optional)
parentparent widget

Definition at line 53 of file knameandurlinputdialog.cpp.

KNameAndUrlInputDialog::~KNameAndUrlInputDialog ( ) [virtual]

Destructor.

Definition at line 95 of file knameandurlinputdialog.cpp.


Member Function Documentation

QString KNameAndUrlInputDialog::name ( ) const
Returns:
the name the user entered Empty if the dialog was cancelled.

Definition at line 109 of file knameandurlinputdialog.cpp.

void KNameAndUrlInputDialog::setSuggestedName ( const QString &  name)

Pre-fill the name lineedit.

Definition at line 146 of file knameandurlinputdialog.cpp.

void KNameAndUrlInputDialog::setSuggestedUrl ( const KUrl &  url)

Pre-fill the URL requester.

Definition at line 152 of file knameandurlinputdialog.cpp.

KUrl KNameAndUrlInputDialog::url ( ) const
Returns:
the URL the user entered Empty if the dialog was cancelled.

Definition at line 100 of file knameandurlinputdialog.cpp.


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

KFile

Skip menu "KFile"
  • Main Page
  • Namespace List
  • 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
  • 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.3
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