\section{KIO::Rename\-Dlg Class Reference}
\label{classKIO_1_1RenameDlg}\index{KIO::RenameDlg@{KIO::RenameDlg}}
A dialog for the options to rename two files. A dialog for renaming files. \begin{Desc}
\item[Since:]3.1. \end{Desc}
 


{\tt \#include $<$renamedlg.h$>$}

Inheritance diagram for KIO::Rename\-Dlg:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=64pt]{classKIO_1_1RenameDlg__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KIO::Rename\-Dlg:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=64pt]{classKIO_1_1RenameDlg__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Slots}
\begin{CompactItemize}
\item 
void {\bf b0Pressed} ()
\item 
void {\bf b1Pressed} ()\label{classKIO_1_1RenameDlg_i1}

\item 
void {\bf b2Pressed} ()\label{classKIO_1_1RenameDlg_i2}

\item 
void {\bf b3Pressed} ()\label{classKIO_1_1RenameDlg_i3}

\item 
void {\bf b4Pressed} ()\label{classKIO_1_1RenameDlg_i4}

\item 
void {\bf b5Pressed} ()\label{classKIO_1_1RenameDlg_i5}

\item 
void {\bf b6Pressed} ()\label{classKIO_1_1RenameDlg_i6}

\item 
void {\bf b7Pressed} ()\label{classKIO_1_1RenameDlg_i7}

\item 
void {\bf b8Pressed} ()\label{classKIO_1_1RenameDlg_i8}

\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf Rename\-Dlg} ({\bf QWidget} $\ast$parent, const {\bf QString} \&caption, const {\bf QString} \&src, const {\bf QString} \&dest, Rename\-Dlg\_\-Mode mode, {\bf KIO::filesize\_\-t} size\-Src=({\bf KIO::filesize\_\-t})-1, {\bf KIO::filesize\_\-t} size\-Dest=({\bf KIO::filesize\_\-t})-1, time\_\-t ctime\-Src=(time\_\-t)-1, time\_\-t ctime\-Dest=(time\_\-t)-1, time\_\-t mtime\-Src=(time\_\-t)-1, time\_\-t mtime\-Dest=(time\_\-t)-1, bool modal=false)
\item 
{\bf KURL} {\bf new\-Dest\-URL} ()
\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
static {\bf QString} {\bf suggest\-Name} (const {\bf KURL} \&base\-URL, const {\bf QString} \&old\-Name)
\end{CompactItemize}
\subsection*{Protected Slots}
\begin{CompactItemize}
\item 
void {\bf enable\-Rename\-Button} (const {\bf QString} \&)\label{classKIO_1_1RenameDlg_j0}

\end{CompactItemize}


\subsection{Detailed Description}
A dialog for the options to rename two files. A dialog for renaming files. \begin{Desc}
\item[Since:]3.1. \end{Desc}




Definition at line 48 of file renamedlg.h.

\subsection{Constructor \& Destructor Documentation}
\index{KIO::RenameDlg@{KIO::Rename\-Dlg}!RenameDlg@{RenameDlg}}
\index{RenameDlg@{RenameDlg}!KIO::RenameDlg@{KIO::Rename\-Dlg}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KIO::Rename\-Dlg::Rename\-Dlg ({\bf QWidget} $\ast$ {\em parent}, const {\bf QString} \& {\em caption}, const {\bf QString} \& {\em src}, const {\bf QString} \& {\em dest}, Rename\-Dlg\_\-Mode {\em mode}, {\bf KIO::filesize\_\-t} {\em size\-Src} = {\tt ({\bf KIO::filesize\_\-t})-1}, {\bf KIO::filesize\_\-t} {\em size\-Dest} = {\tt ({\bf KIO::filesize\_\-t})-1}, time\_\-t {\em ctime\-Src} = {\tt (time\_\-t)-1}, time\_\-t {\em ctime\-Dest} = {\tt (time\_\-t)-1}, time\_\-t {\em mtime\-Src} = {\tt (time\_\-t)-1}, time\_\-t {\em mtime\-Dest} = {\tt (time\_\-t)-1}, bool {\em modal} = {\tt false})}\label{classKIO_1_1RenameDlg_a0}


Construct a \char`\"{}rename\char`\"{} dialog. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em parent}]parent widget (often 0) \item[{\em caption}]the caption for the dialog box \item[{\em src}]the url to the file/dir we're trying to copy, as it's part of the text message \item[{\em dest}]the path to destination file/dir, i.e. the one that already exists \item[{\em mode}]parameters for the dialog (which buttons to show...), \item[{\em size\-Src}]size of source file \item[{\em size\-Dest}]size of destination file \item[{\em ctime\-Src}]creation time of source file \item[{\em ctime\-Dest}]creation time of destination file \item[{\em mtime\-Src}]modification time of source file \item[{\em mtime\-Dest}]modification time of destination file \item[{\em modal}]set to true for a modal dialog \end{description}
\end{Desc}
\begin{Desc}
\item[See also:]Rename\-Dlg\_\-Mode \end{Desc}


\subsection{Member Function Documentation}
\index{KIO::RenameDlg@{KIO::Rename\-Dlg}!newDestURL@{newDestURL}}
\index{newDestURL@{newDestURL}!KIO::RenameDlg@{KIO::Rename\-Dlg}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KURL} KIO::Rename\-Dlg::new\-Dest\-URL ()}\label{classKIO_1_1RenameDlg_a2}


\begin{Desc}
\item[Returns:]the new destination valid only if RENAME was chosen \end{Desc}
\index{KIO::RenameDlg@{KIO::Rename\-Dlg}!suggestName@{suggestName}}
\index{suggestName@{suggestName}!KIO::RenameDlg@{KIO::Rename\-Dlg}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static {\bf QString} KIO::Rename\-Dlg::suggest\-Name (const {\bf KURL} \& {\em base\-URL}, const {\bf QString} \& {\em old\-Name})\hspace{0.3cm}{\tt  [static]}}\label{classKIO_1_1RenameDlg_e0}


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. \begin{Desc}
\item[Since:]3.4 \end{Desc}


Referenced by KDir\-Operator::mkdir().\index{KIO::RenameDlg@{KIO::Rename\-Dlg}!b0Pressed@{b0Pressed}}
\index{b0Pressed@{b0Pressed}!KIO::RenameDlg@{KIO::Rename\-Dlg}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KIO::Rename\-Dlg::b0Pressed ()\hspace{0.3cm}{\tt  [slot]}}\label{classKIO_1_1RenameDlg_i0}


KDE4: rename to cancel\-Pressed(), rename\-Pressed() etc. 



The documentation for this class was generated from the following file:\begin{CompactItemize}
\item 
renamedlg.h\end{CompactItemize}
