class KIO.RenameDialog |
|
|
A dialog for the options to rename two files. A dialog for renaming files. |
|
Construct a "rename" dialog. 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 |
|
|
|
|
Returns the new destination valid only if RENAME was chosen |
|
\relates KIO.RenameDialog Construct a modal, parent-less "rename" dialog, and return a result code, as well as the new dest. Much easier to use than the class RenameDialog directly.
caption - the caption for the dialog box src - the URL of the file/dir we're trying to copy, as it's part of the text message dest - the URL of the destination file/dir, i.e. the one that already exists mode - parameters for the dialog (which buttons to show...), see RenameDialog_Mode newDestPath - the new destination path, valid if R_RENAME was returned. 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 Returns the result |
|
|
|
|
|
|
|
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. |
|