\section{KProperties\-Dialog Class Reference}
\label{classKPropertiesDialog}\index{KPropertiesDialog@{KPropertiesDialog}}
The main properties dialog class.  


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

Inheritance diagram for KProperties\-Dialog:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=66pt]{classKPropertiesDialog__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KProperties\-Dialog:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=283pt]{classKPropertiesDialog__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Slots}
\begin{CompactItemize}
\item 
virtual void {\bf slot\-Ok} ()
\item 
virtual void {\bf slot\-Cancel} ()
\end{CompactItemize}
\subsection*{Signals}
\begin{CompactItemize}
\item 
void {\bf properties\-Closed} ()
\item 
void {\bf applied} ()
\item 
void {\bf canceled} ()
\item 
void {\bf save\-As} (const {\bf KURL} \&old\-Url, {\bf KURL} \&new\-Url)
\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KProperties\-Dialog} ({\bf KFile\-Item} $\ast$item, {\bf QWidget} $\ast$parent=0L, const char $\ast$name=0L, bool modal=false, bool auto\-Show=true)
\item 
{\bf KProperties\-Dialog} ({\bf KFile\-Item\-List} \_\-items, {\bf QWidget} $\ast$parent=0L, const char $\ast$name=0L, bool modal=false, bool auto\-Show=true)
\item 
{\bf KProperties\-Dialog} (const {\bf KURL} \&\_\-url, mode\_\-t \_\-mode, {\bf QWidget} $\ast$parent=0L, const char $\ast$name=0L, bool modal=false, bool auto\-Show=true) KDE\_\-DEPRECATED
\item 
{\bf KProperties\-Dialog} (const {\bf KURL} \&\_\-url, {\bf QWidget} $\ast$parent=0L, const char $\ast$name=0L, bool modal=false, bool auto\-Show=true)
\item 
{\bf KProperties\-Dialog} (const {\bf KURL} \&\_\-temp\-Url, const {\bf KURL} \&\_\-current\-Dir, const {\bf QString} \&\_\-default\-Name, {\bf QWidget} $\ast$parent=0L, const char $\ast$name=0L, bool modal=false, bool auto\-Show=true)
\item 
{\bf KProperties\-Dialog} (const {\bf QString} \&title, {\bf QWidget} $\ast$parent=0L, const char $\ast$name=0L, bool modal=false)
\item 
virtual {\bf $\sim$KProperties\-Dialog} ()
\item 
void {\bf insert\-Plugin} ({\bf KProps\-Dlg\-Plugin} $\ast$plugin)
\item 
const {\bf KURL} \& {\bf kurl} () const 
\item 
{\bf KFile\-Item} $\ast$ {\bf item} ()
\item 
{\bf KFile\-Item\-List} {\bf items} () const 
\item 
KDE\_\-DEPRECATED {\bf KDialog\-Base} $\ast$ {\bf dialog} ()
\item 
KDE\_\-DEPRECATED const {\bf KDialog\-Base} $\ast$ {\bf dialog} () const 
\item 
const {\bf KURL} \& {\bf current\-Dir} () const 
\item 
const {\bf QString} \& {\bf default\-Name} () const 
\item 
void {\bf update\-Url} (const {\bf KURL} \&\_\-new\-Url)
\item 
void {\bf rename} (const {\bf QString} \&\_\-name)
\item 
void {\bf abort\-Applying} ()
\item 
void {\bf show\-File\-Sharing\-Page} ()
\item 
void {\bf set\-File\-Sharing\-Page} ({\bf QWidget} $\ast$page)
\item 
void {\bf set\-File\-Name\-Read\-Only} (bool ro)
\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
static bool {\bf can\-Display} ({\bf KFile\-Item\-List} \_\-items)
\item 
static bool {\bf show\-Dialog} ({\bf KFile\-Item} $\ast$item, {\bf QWidget} $\ast$parent=0, const char $\ast$name=0, bool modal=false)
\item 
static bool {\bf show\-Dialog} (const {\bf KURL} \&\_\-url, {\bf QWidget} $\ast$parent=0, const char $\ast$name=0, bool modal=false)
\item 
static bool {\bf show\-Dialog} (const {\bf KFile\-Item\-List} \&\_\-items, {\bf QWidget} $\ast$parent=0, const char $\ast$name=0, bool modal=false)
\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)\label{classKPropertiesDialog_b0}

\end{CompactItemize}


\subsection{Detailed Description}
The main properties dialog class. 

A Properties Dialog is a dialog which displays various information about a particular file or URL, or several files or URLs. This main class holds various related classes, which are instantiated in the form of tab entries in the tabbed dialog that this class provides. The various tabs themselves will let the user view, and sometimes change, information about the file or URL.

 This class must be created with (void)new KProperties\-Dialog(...) It will take care of deleting itself.

If you are looking for more flexibility, see {\bf KFile\-Meta\-Info}{\rm (p.\,\pageref{classKFileMetaInfo})} and {\bf KFile\-Meta\-Info\-Widget}{\rm (p.\,\pageref{classKFileMetaInfoWidget})}. 



Definition at line 70 of file kpropertiesdialog.h.

\subsection{Constructor \& Destructor Documentation}
\index{KPropertiesDialog@{KProperties\-Dialog}!KPropertiesDialog@{KPropertiesDialog}}
\index{KPropertiesDialog@{KPropertiesDialog}!KPropertiesDialog@{KProperties\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KProperties\-Dialog::KProperties\-Dialog ({\bf KFile\-Item} $\ast$ {\em item}, {\bf QWidget} $\ast$ {\em parent} = {\tt 0L}, const char $\ast$ {\em name} = {\tt 0L}, bool {\em modal} = {\tt false}, bool {\em auto\-Show} = {\tt true})}\label{classKPropertiesDialog_a0}


Brings up a Properties dialog, as shown above. 

This is the normal constructor for file-manager type applications, where you have a {\bf KFile\-Item}{\rm (p.\,\pageref{classKFileItem})} instance to work with. Normally you will use this method rather than the one below.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em item}]file item whose properties should be displayed. \item[{\em parent}]is the parent of the dialog widget. \item[{\em name}]is the internal name. \item[{\em modal}]tells the dialog whether it should be modal. \item[{\em auto\-Show}]tells the dialog whether it should show itself automatically. \end{description}
\end{Desc}


Definition at line 152 of file kpropertiesdialog.cpp.

References QPtr\-List::append(), KURL::is\-Empty(), item(), and KFile\-Item::url().

Referenced by show\-Dialog().\index{KPropertiesDialog@{KProperties\-Dialog}!KPropertiesDialog@{KPropertiesDialog}}
\index{KPropertiesDialog@{KPropertiesDialog}!KPropertiesDialog@{KProperties\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KProperties\-Dialog::KProperties\-Dialog ({\bf KFile\-Item\-List} {\em \_\-items}, {\bf QWidget} $\ast$ {\em parent} = {\tt 0L}, const char $\ast$ {\em name} = {\tt 0L}, bool {\em modal} = {\tt false}, bool {\em auto\-Show} = {\tt true})}\label{classKPropertiesDialog_a1}


This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

You use this constructor for cases where you have a number of items, rather than a single item. Be careful which methods you use when passing a list of files or URLs, since some of them will only work on the first item in a list.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em \_\-items}]list of file items whose properties should be displayed. \item[{\em parent}]is the parent of the dialog widget. \item[{\em name}]is the internal name. \item[{\em modal}]tells the dialog whether it should be modal. \item[{\em auto\-Show}]tells the dialog whether it should show itself automatically. \end{description}
\end{Desc}


Definition at line 180 of file kpropertiesdialog.cpp.

References QPtr\-List::append(), QPtr\-List\-Iterator::current(), QPtr\-List::first(), KURL::is\-Empty(), and QPtr\-List::is\-Empty().\index{KPropertiesDialog@{KProperties\-Dialog}!KPropertiesDialog@{KPropertiesDialog}}
\index{KPropertiesDialog@{KPropertiesDialog}!KPropertiesDialog@{KProperties\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KProperties\-Dialog::KProperties\-Dialog (const {\bf KURL} \& {\em \_\-url}, mode\_\-t {\em \_\-mode}, {\bf QWidget} $\ast$ {\em parent} = {\tt 0L}, const char $\ast$ {\em name} = {\tt 0L}, bool {\em modal} = {\tt false}, bool {\em auto\-Show} = {\tt true})}\label{classKPropertiesDialog_a2}


\begin{Desc}
\item[{\bf Deprecated}]You should use the following constructor instead of this one. The only change that is required is to delete the \_\-mode argument. \end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em \_\-url}]the URL whose properties should be displayed \item[{\em \_\-mode}]unused. \item[{\em parent}]is the parent of the dialog widget. \item[{\em name}]is the internal name. \item[{\em modal}]tells the dialog whether it should be modal. \item[{\em auto\-Show}]tells the dialog whether it should show itself automatically. \end{description}
\end{Desc}


Definition at line 206 of file kpropertiesdialog.cpp.

References QPtr\-List::append(), and KIO::Net\-Access$<$ T, K $>$::stat().\index{KPropertiesDialog@{KProperties\-Dialog}!KPropertiesDialog@{KPropertiesDialog}}
\index{KPropertiesDialog@{KPropertiesDialog}!KPropertiesDialog@{KProperties\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KProperties\-Dialog::KProperties\-Dialog (const {\bf KURL} \& {\em \_\-url}, {\bf QWidget} $\ast$ {\em parent} = {\tt 0L}, const char $\ast$ {\em name} = {\tt 0L}, bool {\em modal} = {\tt false}, bool {\em auto\-Show} = {\tt true})}\label{classKPropertiesDialog_a3}


Brings up a Properties dialog. 

Convenience constructor for non-file-manager applications, where you have a {\bf KURL} rather than a {\bf KFile\-Item}{\rm (p.\,\pageref{classKFileItem})} or KFile\-Item\-List.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em \_\-url}]the URL whose properties should be displayed \item[{\em parent}]is the parent of the dialog widget. \item[{\em name}]is the internal name. \item[{\em modal}]tells the dialog whether it should be modal. IMPORTANT: This constructor, together with modal=true, leads to a grave display bug (due to {\bf KIO::stat()}{\rm (p.\,\pageref{namespaceKIO_a215})} being run before the dialog has all the necessary information). Do not use this combination for now. For local files with a known mimetype, simply create a {\bf KFile\-Item}{\rm (p.\,\pageref{classKFileItem})} and pass it to the other constructor.\item[{\em auto\-Show}]tells the dialog whethr it should show itself automatically. \end{description}
\end{Desc}


Definition at line 226 of file kpropertiesdialog.cpp.

References QPtr\-List::append(), and KIO::Net\-Access$<$ T, K $>$::stat().\index{KPropertiesDialog@{KProperties\-Dialog}!KPropertiesDialog@{KPropertiesDialog}}
\index{KPropertiesDialog@{KPropertiesDialog}!KPropertiesDialog@{KProperties\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KProperties\-Dialog::KProperties\-Dialog (const {\bf KURL} \& {\em \_\-temp\-Url}, const {\bf KURL} \& {\em \_\-current\-Dir}, const {\bf QString} \& {\em \_\-default\-Name}, {\bf QWidget} $\ast$ {\em parent} = {\tt 0L}, const char $\ast$ {\em name} = {\tt 0L}, bool {\em modal} = {\tt false}, bool {\em auto\-Show} = {\tt true})}\label{classKPropertiesDialog_a4}


Creates a properties dialog for a new .desktop file (whose name is not known yet), based on a template. 

Special constructor for \char`\"{}File / New\char`\"{} in file-manager type applications.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em \_\-temp\-Url}]template used for reading only \item[{\em \_\-current\-Dir}]directory where the file will be written to \item[{\em \_\-default\-Name}]something to put in the name field, like mimetype.desktop \item[{\em parent}]is the parent of the dialog widget. \item[{\em name}]is the internal name. \item[{\em modal}]tells the dialog whether it should be modal. \item[{\em auto\-Show}]tells the dialog whethr it should show itself automatically. \end{description}
\end{Desc}


Definition at line 245 of file kpropertiesdialog.cpp.

References QPtr\-List::append(), and KURL::is\-Empty().\index{KPropertiesDialog@{KProperties\-Dialog}!KPropertiesDialog@{KPropertiesDialog}}
\index{KPropertiesDialog@{KPropertiesDialog}!KPropertiesDialog@{KProperties\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KProperties\-Dialog::KProperties\-Dialog (const {\bf QString} \& {\em title}, {\bf QWidget} $\ast$ {\em parent} = {\tt 0L}, const char $\ast$ {\em name} = {\tt 0L}, bool {\em modal} = {\tt false})}\label{classKPropertiesDialog_a5}


Creates an empty properties dialog (for applications that want use a standard dialog, but for things not doable via the plugin-mechanism). 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em title}]is the string display as the \char`\"{}filename\char`\"{} in the caption of the dialog. \item[{\em parent}]is the parent of the dialog widget. \item[{\em name}]is the internal name. \item[{\em modal}]tells the dialog whether it should be modal. \end{description}
\end{Desc}


Definition at line 169 of file kpropertiesdialog.cpp.\index{KPropertiesDialog@{KProperties\-Dialog}!~KPropertiesDialog@{$\sim$KPropertiesDialog}}
\index{~KPropertiesDialog@{$\sim$KPropertiesDialog}!KPropertiesDialog@{KProperties\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KProperties\-Dialog::$\sim${\bf KProperties\-Dialog} ()\hspace{0.3cm}{\tt  [virtual]}}\label{classKPropertiesDialog_a6}


Cleans up the properties dialog and frees any associated resources, including the dialog itself. 

Note that when a properties dialog is closed it cleans up and deletes itself. 

Definition at line 345 of file kpropertiesdialog.cpp.

References QPtr\-List::clear().

\subsection{Member Function Documentation}
\index{KPropertiesDialog@{KProperties\-Dialog}!canDisplay@{canDisplay}}
\index{canDisplay@{canDisplay}!KPropertiesDialog@{KProperties\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KProperties\-Dialog::can\-Display ({\bf KFile\-Item\-List} {\em \_\-items})\hspace{0.3cm}{\tt  [static]}}\label{classKPropertiesDialog_e0}


Determine whether there are any property pages available for the given file items. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em \_\-items}]the list of items to check. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]true if there are any property pages, otherwise false. \end{Desc}


Definition at line 359 of file kpropertiesdialog.cpp.

References KFile\-Meta\-Props\-Plugin::supports(), KFile\-Permissions\-Props\-Plugin::supports(), and KFile\-Props\-Plugin::supports().\index{KPropertiesDialog@{KProperties\-Dialog}!showDialog@{showDialog}}
\index{showDialog@{showDialog}!KPropertiesDialog@{KProperties\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KProperties\-Dialog::show\-Dialog ({\bf KFile\-Item} $\ast$ {\em item}, {\bf QWidget} $\ast$ {\em parent} = {\tt 0}, const char $\ast$ {\em name} = {\tt 0}, bool {\em modal} = {\tt false})\hspace{0.3cm}{\tt  [static]}}\label{classKPropertiesDialog_e1}


Immediately displays a Properties dialog using constructor with the same parameters. 

On MS Windows, if {\tt item} points to a local file, native (non modal) property dialog is displayed ({\tt parent} and {\tt modal} are ignored in this case).

\begin{Desc}
\item[Returns:]true on succesfull dialog displaying (can be false on win32). \end{Desc}
\begin{Desc}
\item[Since:]3.4 \end{Desc}


Definition at line 267 of file kpropertiesdialog.cpp.

References QString::is\-Empty(), item(), KProperties\-Dialog(), and KFile\-Item::local\-Path().

Referenced by show\-Dialog().\index{KPropertiesDialog@{KProperties\-Dialog}!showDialog@{showDialog}}
\index{showDialog@{showDialog}!KPropertiesDialog@{KProperties\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KProperties\-Dialog::show\-Dialog (const {\bf KURL} \& {\em \_\-url}, {\bf QWidget} $\ast$ {\em parent} = {\tt 0}, const char $\ast$ {\em name} = {\tt 0}, bool {\em modal} = {\tt false})\hspace{0.3cm}{\tt  [static]}}\label{classKPropertiesDialog_e2}


Immediately displays a Properties dialog using constructor with the same parameters. 

On MS Windows, if {\tt \_\-url} points to a local file, native (non modal) property dialog is displayed ({\tt parent} and {\tt modal} are ignored in this case).

\begin{Desc}
\item[Returns:]true on succesfull dialog displaying (can be false on win32). \end{Desc}
\begin{Desc}
\item[Since:]3.4 \end{Desc}


Definition at line 279 of file kpropertiesdialog.cpp.

References KProperties\-Dialog().\index{KPropertiesDialog@{KProperties\-Dialog}!showDialog@{showDialog}}
\index{showDialog@{showDialog}!KPropertiesDialog@{KProperties\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KProperties\-Dialog::show\-Dialog (const {\bf KFile\-Item\-List} \& {\em \_\-items}, {\bf QWidget} $\ast$ {\em parent} = {\tt 0}, const char $\ast$ {\em name} = {\tt 0}, bool {\em modal} = {\tt false})\hspace{0.3cm}{\tt  [static]}}\label{classKPropertiesDialog_e3}


Immediately displays a Properties dialog using constructor with the same parameters. 

On MS Windows, if {\tt \_\-items} has one element and this element points to a local file, native (non modal) property dialog is displayed ({\tt parent} and {\tt modal} are ignored in this case).

\begin{Desc}
\item[Returns:]true on succesfull dialog displaying (can be false on win32). \end{Desc}
\begin{Desc}
\item[Since:]3.4 \end{Desc}


Definition at line 290 of file kpropertiesdialog.cpp.

References KProperties\-Dialog(), and show\-Dialog().\index{KPropertiesDialog@{KProperties\-Dialog}!insertPlugin@{insertPlugin}}
\index{insertPlugin@{insertPlugin}!KPropertiesDialog@{KProperties\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KProperties\-Dialog::insert\-Plugin ({\bf KProps\-Dlg\-Plugin} $\ast$ {\em plugin})}\label{classKPropertiesDialog_a7}


Adds a \char`\"{}3rd party\char`\"{} properties plugin to the dialog. 

Useful for extending the properties mechanism.

To create a new plugin type, inherit from the base class {\bf KProps\-Dlg\-Plugin}{\rm (p.\,\pageref{classKPropsDlgPlugin})} and implement all the methods. If you define a service .desktop file for your plugin, you do not need to call {\bf insert\-Plugin()}{\rm (p.\,\pageref{classKPropertiesDialog_a7})}.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em plugin}]is a pointer to the {\bf KProps\-Dlg\-Plugin}{\rm (p.\,\pageref{classKPropsDlgPlugin})}. The Properties dialog will do destruction for you. The {\bf KProps\-Dlg\-Plugin}{\rm (p.\,\pageref{classKPropsDlgPlugin})} {\bf must} have been created with the KProperties\-Dialog as its parent. \end{description}
\end{Desc}
\begin{Desc}
\item[See also:]{\bf KProps\-Dlg\-Plugin}{\rm (p.\,\pageref{classKPropsDlgPlugin})} \end{Desc}


Definition at line 351 of file kpropertiesdialog.cpp.

References QPtr\-List::append().\index{KPropertiesDialog@{KProperties\-Dialog}!kurl@{kurl}}
\index{kurl@{kurl}!KPropertiesDialog@{KProperties\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const {\bf KURL}\& KProperties\-Dialog::kurl () const\hspace{0.3cm}{\tt  [inline]}}\label{classKPropertiesDialog_a8}


The URL of the file that has its properties being displayed. 

This is only valid if the KProperties\-Dialog was created/shown for one file or URL.

\begin{Desc}
\item[Returns:]a parsed URL. \end{Desc}


Definition at line 253 of file kpropertiesdialog.h.

Referenced by KApplication\-Props\-Plugin::apply\-Changes(), KExec\-Props\-Plugin::apply\-Changes(), KDesktop\-Props\-Plugin::apply\-Changes(), KDevice\-Props\-Plugin::apply\-Changes(), KBinding\-Props\-Plugin::apply\-Changes(), KURLProps\-Plugin::apply\-Changes(), KFile\-Props\-Plugin::apply\-Changes(), KApplication\-Props\-Plugin::KApplication\-Props\-Plugin(), KFile\-Meta\-Props\-Plugin::KFile\-Meta\-Props\-Plugin(), KFile\-Permissions\-Props\-Plugin::KFile\-Permissions\-Props\-Plugin(), and KURLProps\-Plugin::KURLProps\-Plugin().\index{KPropertiesDialog@{KProperties\-Dialog}!item@{item}}
\index{item@{item}!KPropertiesDialog@{KProperties\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KFile\-Item}$\ast$ KProperties\-Dialog::item ()\hspace{0.3cm}{\tt  [inline]}}\label{classKPropertiesDialog_a9}


\begin{Desc}
\item[Returns:]the file item for which the dialog is shown\end{Desc}
Warning: this method returns the first item of the list. This means that you should use this only if you are sure the dialog is used for a single item. Otherwise, you probably want {\bf items()}{\rm (p.\,\pageref{classKPropertiesDialog_a10})} instead. 

Definition at line 262 of file kpropertiesdialog.h.

Referenced by KFile\-Meta\-Props\-Plugin::KFile\-Meta\-Props\-Plugin(), KFile\-Permissions\-Props\-Plugin::KFile\-Permissions\-Props\-Plugin(), KProperties\-Dialog(), and show\-Dialog().\index{KPropertiesDialog@{KProperties\-Dialog}!items@{items}}
\index{items@{items}!KPropertiesDialog@{KProperties\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KFile\-Item\-List} KProperties\-Dialog::items () const\hspace{0.3cm}{\tt  [inline]}}\label{classKPropertiesDialog_a10}


\begin{Desc}
\item[Returns:]the items for which the dialog is shown \end{Desc}


Definition at line 267 of file kpropertiesdialog.h.

Referenced by KFile\-Permissions\-Props\-Plugin::apply\-Changes(), KFile\-Share\-Props\-Plugin::apply\-Changes(), KFile\-Meta\-Props\-Plugin::KFile\-Meta\-Props\-Plugin(), KFile\-Permissions\-Props\-Plugin::KFile\-Permissions\-Props\-Plugin(), and KFile\-Props\-Plugin::post\-Apply\-Changes().\index{KPropertiesDialog@{KProperties\-Dialog}!dialog@{dialog}}
\index{dialog@{dialog}!KPropertiesDialog@{KProperties\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDE\_\-DEPRECATED {\bf KDialog\-Base}$\ast$ KProperties\-Dialog::dialog ()\hspace{0.3cm}{\tt  [inline]}}\label{classKPropertiesDialog_a11}


\begin{Desc}
\item[Returns:]a pointer to the dialog \end{Desc}
\begin{Desc}
\item[{\bf Deprecated}]KProperties\-Dialog directly inherits from {\bf KDialog\-Base}, so use {\em this\/} instead \end{Desc}


Definition at line 273 of file kpropertiesdialog.h.\index{KPropertiesDialog@{KProperties\-Dialog}!dialog@{dialog}}
\index{dialog@{dialog}!KPropertiesDialog@{KProperties\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDE\_\-DEPRECATED const {\bf KDialog\-Base}$\ast$ KProperties\-Dialog::dialog () const\hspace{0.3cm}{\tt  [inline]}}\label{classKPropertiesDialog_a12}


\begin{Desc}
\item[Returns:]a pointer to the dialog \end{Desc}
\begin{Desc}
\item[{\bf Deprecated}]KProperties\-Dialog directly inherits from {\bf KDialog\-Base}, so use {\em this\/} instead \end{Desc}


Definition at line 278 of file kpropertiesdialog.h.\index{KPropertiesDialog@{KProperties\-Dialog}!currentDir@{currentDir}}
\index{currentDir@{currentDir}!KPropertiesDialog@{KProperties\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const {\bf KURL}\& KProperties\-Dialog::current\-Dir () const\hspace{0.3cm}{\tt  [inline]}}\label{classKPropertiesDialog_a13}


If the dialog is being built from a template, this method returns the current directory. 

If no template, it returns QString::null. See the template form of the constructor.

\begin{Desc}
\item[Returns:]the current directory or QString::null \end{Desc}


Definition at line 287 of file kpropertiesdialog.h.\index{KPropertiesDialog@{KProperties\-Dialog}!defaultName@{defaultName}}
\index{defaultName@{defaultName}!KPropertiesDialog@{KProperties\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const {\bf QString}\& KProperties\-Dialog::default\-Name () const\hspace{0.3cm}{\tt  [inline]}}\label{classKPropertiesDialog_a14}


If the dialog is being built from a template, this method returns the default name. 

If no template, it returns QString::null. See the template form of the constructor. \begin{Desc}
\item[Returns:]the default name or QString::null \end{Desc}


Definition at line 295 of file kpropertiesdialog.h.\index{KPropertiesDialog@{KProperties\-Dialog}!updateUrl@{updateUrl}}
\index{updateUrl@{updateUrl}!KPropertiesDialog@{KProperties\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KProperties\-Dialog::update\-Url (const {\bf KURL} \& {\em \_\-new\-Url})}\label{classKPropertiesDialog_a15}


Updates the item URL (either called by rename or because a global apps/mimelnk desktop file is being saved) Can only be called if the dialog applies to a single file or URL. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em \_\-new\-Url}]the new URL \end{description}
\end{Desc}


Definition at line 512 of file kpropertiesdialog.cpp.

References QPtr\-List::count(), QPtr\-List::current(), endl(), QPtr\-List::first(), KURL::is\-Empty(), kd\-Debug(), save\-As(), and KURL::url().

Referenced by KFile\-Props\-Plugin::apply\-Changes(), and rename().\index{KPropertiesDialog@{KProperties\-Dialog}!rename@{rename}}
\index{rename@{rename}!KPropertiesDialog@{KProperties\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KProperties\-Dialog::rename (const {\bf QString} \& {\em \_\-name})}\label{classKPropertiesDialog_a16}


Renames the item to the specified name. 

This can only be called if the dialog applies to a single file or URL. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em \_\-name}]new filename, encoded. \end{description}
\end{Desc}
\begin{Desc}
\item[See also:]File\-Props\-Dlg\-Plugin::apply\-Changes \end{Desc}


Definition at line 536 of file kpropertiesdialog.cpp.

References KURL::add\-Path(), QString::at(), QPtr\-List::count(), endl(), KURL::is\-Empty(), kd\-Debug(), QString::length(), KURL::set\-File\-Name(), QString::truncate(), update\-Url(), and KURL::url().

Referenced by KFile\-Props\-Plugin::apply\-Changes().\index{KPropertiesDialog@{KProperties\-Dialog}!abortApplying@{abortApplying}}
\index{abortApplying@{abortApplying}!KPropertiesDialog@{KProperties\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KProperties\-Dialog::abort\-Applying ()}\label{classKPropertiesDialog_a17}


To abort applying changes. 



Definition at line 559 of file kpropertiesdialog.cpp.

Referenced by KFile\-Props\-Plugin::apply\-Changes(), and KFile\-Share\-Props\-Plugin::apply\-Changes().\index{KPropertiesDialog@{KProperties\-Dialog}!showFileSharingPage@{showFileSharingPage}}
\index{showFileSharingPage@{showFileSharingPage}!KPropertiesDialog@{KProperties\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KProperties\-Dialog::show\-File\-Sharing\-Page ()}\label{classKPropertiesDialog_a18}


Shows the page that was previously set by {\bf set\-File\-Sharing\-Page()}{\rm (p.\,\pageref{classKPropertiesDialog_a19})}, or does nothing if no page was set yet. 

\begin{Desc}
\item[See also:]{\bf set\-File\-Sharing\-Page}{\rm (p.\,\pageref{classKPropertiesDialog_a19})} \end{Desc}
\begin{Desc}
\item[Since:]3.1 \end{Desc}


Definition at line 315 of file kpropertiesdialog.cpp.

References KDialog\-Base::page\-Index(), and KDialog\-Base::show\-Page().\index{KPropertiesDialog@{KProperties\-Dialog}!setFileSharingPage@{setFileSharingPage}}
\index{setFileSharingPage@{setFileSharingPage}!KPropertiesDialog@{KProperties\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KProperties\-Dialog::set\-File\-Sharing\-Page ({\bf QWidget} $\ast$ {\em page})}\label{classKPropertiesDialog_a19}


Sets the file sharing page. 

This page is shown when calling {\bf show\-File\-Sharing\-Page()}{\rm (p.\,\pageref{classKPropertiesDialog_a18})}.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em page}]the page to set \end{description}
\end{Desc}
\begin{Desc}
\item[See also:]{\bf show\-File\-Sharing\-Page}{\rm (p.\,\pageref{classKPropertiesDialog_a18})} \end{Desc}
\begin{Desc}
\item[Since:]3.3 \end{Desc}


Definition at line 322 of file kpropertiesdialog.cpp.\index{KPropertiesDialog@{KProperties\-Dialog}!setFileNameReadOnly@{setFileNameReadOnly}}
\index{setFileNameReadOnly@{setFileNameReadOnly}!KPropertiesDialog@{KProperties\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KProperties\-Dialog::set\-File\-Name\-Read\-Only (bool {\em ro})}\label{classKPropertiesDialog_a20}


Call this to make the filename lineedit readonly, to prevent the user from renaming the file. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em ro}]true if the lineedit should be read only \end{description}
\end{Desc}
\begin{Desc}
\item[Since:]3.2 \end{Desc}


Definition at line 327 of file kpropertiesdialog.cpp.

References QPtr\-List::first(), QPtr\-List::next(), and KFile\-Props\-Plugin::set\-File\-Name\-Read\-Only().\index{KPropertiesDialog@{KProperties\-Dialog}!slotOk@{slotOk}}
\index{slotOk@{slotOk}!KPropertiesDialog@{KProperties\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KProperties\-Dialog::slot\-Ok ()\hspace{0.3cm}{\tt  [virtual, slot]}}\label{classKPropertiesDialog_i0}


Called when the user presses 'Ok'. 



Reimplemented from {\bf KDialog\-Base}.

Definition at line 371 of file kpropertiesdialog.cpp.

References QDialog::accept(), applied(), KProps\-Dlg\-Plugin::apply\-Changes(), QObject::class\-Name(), endl(), QPtr\-List::first(), KProps\-Dlg\-Plugin::is\-Dirty(), kd\-Debug(), QPtr\-List::next(), KFile\-Props\-Plugin::post\-Apply\-Changes(), properties\-Closed(), and KProps\-Dlg\-Plugin::set\-Dirty().\index{KPropertiesDialog@{KProperties\-Dialog}!slotCancel@{slotCancel}}
\index{slotCancel@{slotCancel}!KPropertiesDialog@{KProperties\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KProperties\-Dialog::slot\-Cancel ()\hspace{0.3cm}{\tt  [virtual, slot]}}\label{classKPropertiesDialog_i1}


Called when the user presses 'Cancel'. 



Reimplemented from {\bf KDialog\-Base}.

Definition at line 416 of file kpropertiesdialog.cpp.

References canceled(), QDialog::done(), and properties\-Closed().\index{KPropertiesDialog@{KProperties\-Dialog}!propertiesClosed@{propertiesClosed}}
\index{propertiesClosed@{propertiesClosed}!KPropertiesDialog@{KProperties\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KProperties\-Dialog::properties\-Closed ()\hspace{0.3cm}{\tt  [signal]}}\label{classKPropertiesDialog_l0}


This signal is emitted when the Properties Dialog is closed (for example, with OK or Cancel buttons). 



Referenced by slot\-Cancel(), and slot\-Ok().\index{KPropertiesDialog@{KProperties\-Dialog}!applied@{applied}}
\index{applied@{applied}!KPropertiesDialog@{KProperties\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KProperties\-Dialog::applied ()\hspace{0.3cm}{\tt  [signal]}}\label{classKPropertiesDialog_l1}


This signal is emitted when the properties changes are applied (for example, with the OK button). 



Referenced by slot\-Ok().\index{KPropertiesDialog@{KProperties\-Dialog}!canceled@{canceled}}
\index{canceled@{canceled}!KPropertiesDialog@{KProperties\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KProperties\-Dialog::canceled ()\hspace{0.3cm}{\tt  [signal]}}\label{classKPropertiesDialog_l2}


This signal is emitted when the properties changes are aborted (for example, with the Cancel button). 



Referenced by slot\-Cancel().\index{KPropertiesDialog@{KProperties\-Dialog}!saveAs@{saveAs}}
\index{saveAs@{saveAs}!KPropertiesDialog@{KProperties\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KProperties\-Dialog::save\-As (const {\bf KURL} \& {\em old\-Url}, {\bf KURL} \& {\em new\-Url})\hspace{0.3cm}{\tt  [signal]}}\label{classKPropertiesDialog_l3}


Emitted before changes to {\tt old\-Url} are saved as {\tt new\-Url}. 

The receiver may change {\tt new\-Url} to point to an alternative save location. 

Referenced by update\-Url().

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