kio Library API Documentation

KIO::RenameDlg Class Reference

A dialog for the options to rename two files. A dialog for renaming 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)
KURL newDestURL ()

Detailed Description

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

Definition at line 47 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...),
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
See also:
RenameDlg_Mode

Definition at line 81 of file renamedlg.cpp.

References QGridLayout::addMultiCellWidget(), 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 398 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 kio Library Version 3.2.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Feb 4 12:35:17 2004 by doxygen 1.2.18 written by Dimitri van Heesch, © 1997-2003