• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeio/tdeio
 

tdeio/tdeio

  • TDEIO
  • RenameDlg
Public Slots | Public Member Functions | Static Public Member Functions | Protected Slots | List of all members
TDEIO::RenameDlg Class Reference

#include <renamedlg.h>

Inherits TQDialog.

Public Slots

void b0Pressed ()
 
void b1Pressed ()
 
void b2Pressed ()
 
void b3Pressed ()
 
void b4Pressed ()
 
void b5Pressed ()
 
void b6Pressed ()
 
void b7Pressed ()
 
void b8Pressed ()
 

Public Member Functions

 RenameDlg (TQWidget *parent, const TQString &caption, const TQString &src, const TQString &dest, RenameDlg_Mode mode, TDEIO::filesize_t sizeSrc=(TDEIO::filesize_t)-1, TDEIO::filesize_t sizeDest=(TDEIO::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 ()
 

Static Public Member Functions

static TQString suggestName (const KURL &baseURL, const TQString &oldName)
 

Protected Slots

void enableRenameButton (const TQString &)
 

Detailed Description

A dialog for the options to rename two files.

A dialog for renaming files.

Since
3.1

Definition at line 48 of file renamedlg.h.

Constructor & Destructor Documentation

RenameDlg::RenameDlg ( TQWidget *  parent,
const TQString &  caption,
const TQString &  src,
const TQString &  dest,
RenameDlg_Mode  mode,
TDEIO::filesize_t  sizeSrc = (TDEIO::filesize_t) -1,
TDEIO::filesize_t  sizeDest = (TDEIO::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
parentparent widget (often 0)
captionthe caption for the dialog box
srcthe url to the file/dir we're trying to copy, as it's part of the text message
destthe path to destination file/dir, i.e. the one that already exists
modeparameters for the dialog (which buttons to show...),
sizeSrcsize of source file
sizeDestsize of destination file
ctimeSrccreation time of source file
ctimeDestcreation time of destination file
mtimeSrcmodification time of source file
mtimeDestmodification time of destination file
modalset to true for a modal dialog
See also
RenameDlg_Mode

Definition at line 84 of file renamedlg.cpp.

Member Function Documentation

void RenameDlg::b0Pressed ( )
slot

KDE4: rename to cancelPressed(), renamePressed() etc.

Definition at line 419 of file renamedlg.cpp.

KURL RenameDlg::newDestURL ( )
Returns
the new destination valid only if RENAME was chosen

Definition at line 411 of file renamedlg.cpp.

TQString RenameDlg::suggestName ( const KURL &  baseURL,
const TQString &  oldName 
)
static

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.

Since
3.4

Definition at line 440 of file renamedlg.cpp.


The documentation for this class was generated from the following files:
  • renamedlg.h
  • renamedlg.cpp

tdeio/tdeio

Skip menu "tdeio/tdeio"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdeio/tdeio

Skip menu "tdeio/tdeio"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  •     tdecore
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  • tdeioslave
  •   http
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeio/tdeio by doxygen 1.8.8
This website is maintained by Timothy Pearson.