kio Library API Documentation

KIO::RenameDlg Class Reference

A dialog for the options to rename two files
Since:
3.1.
More...

#include <renamedlg.h>

Inheritance diagram for KIO::RenameDlg:

QDialog List of all members.

Public Methods

 RenameDlg (QWidget *parent, const QString &caption, const QString &src, const QString &dest, RenameDlg_Mode mode, KIO::filesize_t sizeSrc=(KIO::filesize_t)-1, KIO::filesize_t sizeDest=(KIO::filesize_t)-1, time_t ctimeSrc=(time_t)-1, time_t ctimeDest=(time_t)-1, time_t mtimeSrc=(time_t)-1, time_t mtimeDest=(time_t)-1, bool modal=FALSE)
 Construct a "rename" dialog.

KURL newDestURL ()

Detailed Description

A dialog for the options to rename two files
Since:
3.1.

Definition at line 43 of file renamedlg.h.


Constructor & Destructor Documentation

RenameDlg::RenameDlg QWidget   parent,
const QString   caption,
const QString   src,
const QString   dest,
RenameDlg_Mode    mode,
KIO::filesize_t    sizeSrc = (KIO::filesize_t)-1,
KIO::filesize_t    sizeDest = (KIO::filesize_t)-1,
time_t    ctimeSrc = (time_t)-1,
time_t    ctimeDest = (time_t)-1,
time_t    mtimeSrc = (time_t)-1,
time_t    mtimeDest = (time_t)-1,
bool    modal = FALSE
 

Construct a "rename" dialog.

Parameters:
parent  parent widget (often 0)
caption  the caption for the dialog box
src  the url to the file/dir we're trying to copy, as it's part of the text message
dest  the path to destination file/dir, i.e. the one that already exists
mode  parameters for the dialog (which buttons to show...),
See also:
RenameDlg_Mode
The following parameters bring optionnal information about src and dest
Parameters:
sizeSrc  size of source file
sizeDest  size of destination file
ctimeSrc  creation time of source file
ctimeDest  creation time of destination file
mtimeSrc  modification time of source file
mtimeDest  modification time of destination file
modal  set to true for a modal dialog

Definition at line 79 of file renamedlg.cpp.

References QGridLayout::addMultiCellWidget(), QGridLayout::addRowSpacing(), QGridLayout::addWidget(), QString::arg(), QValueList::begin(), KLibFactory::create(), KStringHandler::csqueeze(), KMimeType::defaultMimeType(), QValueList::end(), KStdAccel::end(), KLibrary::factory(), RenameDlgPlugin::initialize(), QString::isEmpty(), QValueList::isEmpty(), KLibLoader::library(), QString::local8Bit(), KGlobal::locale(), KDialog::marginHint(), KMimeType::pixmapForURL(), KTrader::query(), KLibLoader::self(), KTrader::self(), QGridLayout::setColStretch(), QLabel::setPixmap(), KWin::setState(), QDateTime::setTime_t(), KDialog::spacingHint(), and KLibrary::unload().


Member Function Documentation

KURL RenameDlg::newDestURL  
 

Returns:
the new destination valid only if RENAME was chosen

Definition at line 368 of file renamedlg.cpp.

References KURL::setFileName().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.0.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Oct 8 12:21:38 2003 by doxygen 1.2.18 written by Dimitri van Heesch, © 1997-2001