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

KFile

Public Member Functions | List of all members
KNameAndUrlInputDialog Class Reference

#include <knameandurlinputdialog.h>

Inheritance diagram for KNameAndUrlInputDialog:
Inheritance graph
[legend]

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.nosp@m.@kde.nosp@m..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 52 of file knameandurlinputdialog.cpp.

KNameAndUrlInputDialog::~KNameAndUrlInputDialog ( )
virtual

Destructor.

Definition at line 86 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 100 of file knameandurlinputdialog.cpp.

void KNameAndUrlInputDialog::setSuggestedName ( const QString &  name)

Pre-fill the name lineedit.

Definition at line 130 of file knameandurlinputdialog.cpp.

void KNameAndUrlInputDialog::setSuggestedUrl ( const KUrl &  url)

Pre-fill the URL requester.

Definition at line 136 of file knameandurlinputdialog.cpp.

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

Definition at line 91 of file knameandurlinputdialog.cpp.


The documentation for this class was generated from the following files:
  • knameandurlinputdialog.h
  • knameandurlinputdialog.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:52:28 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KFile

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • 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
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal