RenameDialog Class Reference
from PyKDE4.kio import *
Inherits: QDialog → QWidget → QObject
Namespace: KIO
Detailed Description
A dialog for the options to rename two files.
A dialog for renaming files.
Methods |
| __init__ (self, QWidget parent, QString caption, KUrl src, KUrl dest, KIO.RenameDialog_Mode mode, KIO.filesize_t sizeSrc=-1, KIO.filesize_t sizeDest=-1, time_t ctimeSrc=-1, time_t ctimeDest=-1, time_t mtimeSrc=-1, time_t mtimeDest=-1) |
| autoSkipPressed (self) |
| cancelPressed (self) |
| enableRenameButton (self, QString a0) |
KUrl | newDestUrl (self) |
| overwriteAllPressed (self) |
| overwritePressed (self) |
| renamePressed (self) |
| resumeAllPressed (self) |
| resumePressed (self) |
| skipPressed (self) |
| suggestNewNamePressed (self) |
Static Methods |
QString | suggestName (KUrl baseURL, QString oldName) |
Method Documentation
__init__ |
( |
self, |
|
|
|
QWidget |
parent, |
|
|
QString |
caption, |
|
|
KUrl |
src, |
|
|
KUrl |
dest, |
|
|
KIO.RenameDialog_Mode |
mode, |
|
|
KIO.filesize_t |
sizeSrc=-1, |
|
|
KIO.filesize_t |
sizeDest=-1, |
|
|
time_t |
ctimeSrc=-1, |
|
|
time_t |
ctimeDest=-1, |
|
|
time_t |
mtimeSrc=-1, |
|
|
time_t |
mtimeDest=-1 |
|
) |
|
|
|
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
|
- See also:
- RenameDialog_Mode
enableRenameButton |
( |
self, |
|
|
|
QString |
a0 |
|
) |
|
|
|
- Returns:
- the new destination
valid only if RENAME was chosen
overwriteAllPressed |
( |
|
self ) |
|
overwritePressed |
( |
|
self ) |
|
resumeAllPressed |
( |
|
self ) |
|
Given a directory path and a filename (which usually exists already),
this function returns a suggested name for a file that doesn't exist
in that directory. The existence is only checked for local urls though.
The suggested file name is of the form foo_1 foo_2 etc.
suggestNewNamePressed |
( |
|
self ) |
|