\section{KIcon\-View Class Reference}
\label{classKIconView}\index{KIconView@{KIconView}}
This Widget extends the functionality of {\bf QIcon\-View} to honor the system wide settings for Single Click/Double Click mode, Auto Selection and Change Cursor over Link. A variant of {\bf QIcon\-View} that honors KDE's system-wide settings.  


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

Inheritance diagram for KIcon\-View:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=107pt]{classKIconView__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KIcon\-View:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=181pt]{classKIconView__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{CompactItemize}
\item 
enum {\bf Mode} \{ {\bf Execute}, 
{\bf Select}
 \}
\begin{CompactList}\small\item\em KIcon\-View has two different operating modes. \item\end{CompactList}\end{CompactItemize}
\subsection*{Signals}
\begin{CompactItemize}
\item 
void {\bf executed} ({\bf QIcon\-View\-Item} $\ast$item)
\begin{CompactList}\small\item\em This signal is emitted whenever the user executes an iconview item. \item\end{CompactList}\item 
void {\bf executed} ({\bf QIcon\-View\-Item} $\ast$item, const  {\bf QPoint} \&pos)
\begin{CompactList}\small\item\em This signal is emitted whenever the user executes an iconview item. \item\end{CompactList}\item 
void {\bf double\-Clicked} ({\bf QIcon\-View\-Item} $\ast$item, const  {\bf QPoint} \&pos)
\begin{CompactList}\small\item\em This signal gets emitted whenever the user double clicks into the iconview. \item\end{CompactList}\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KIcon\-View} ({\bf QWidget} $\ast$parent=0, const  char $\ast$name=0, WFlags f=0)\label{classKIconView_a0}

\item 
void {\bf set\-Mode} ({\bf Mode} m)
\begin{CompactList}\small\item\em Sets the mode to Execute or Select. \item\end{CompactList}\item 
{\bf Mode} {\bf mode} () const 
\item 
virtual void {\bf set\-Font} (const  {\bf QFont} \&)
\begin{CompactList}\small\item\em Reimplemented for internal purposes. \item\end{CompactList}\end{CompactItemize}
\subsection*{Protected Slots}
\begin{CompactItemize}
\item 
void {\bf slot\-On\-Item} ({\bf QIcon\-View\-Item} $\ast$item)\label{classKIconView_j0}

\item 
void {\bf slot\-On\-Viewport} ()\label{classKIconView_j1}

\item 
void {\bf slot\-Settings\-Changed} (int)\label{classKIconView_j2}

\item 
void {\bf slot\-Auto\-Select} ()
\begin{CompactList}\small\item\em Auto selection happend. \item\end{CompactList}\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
void {\bf emit\-Execute} ({\bf QIcon\-View\-Item} $\ast$item, const  {\bf QPoint} \&pos)\label{classKIconView_b0}

\item 
virtual void {\bf focus\-Out\-Event} ({\bf QFocus\-Event} $\ast$fe)\label{classKIconView_b1}

\item 
virtual void {\bf leave\-Event} ({\bf QEvent} $\ast$e)\label{classKIconView_b2}

\item 
virtual void {\bf contents\-Mouse\-Press\-Event} ({\bf QMouse\-Event} $\ast$e)\label{classKIconView_b3}

\item 
virtual void {\bf contents\-Mouse\-Double\-Click\-Event} ({\bf QMouse\-Event} $\ast$e)\label{classKIconView_b4}

\item 
virtual void {\bf contents\-Mouse\-Release\-Event} ({\bf QMouse\-Event} $\ast$e)\label{classKIconView_b5}

\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)\label{classKIconView_b6}

\end{CompactItemize}
\subsection*{Friends}
\begin{CompactItemize}
\item 
class {\bf KIcon\-View\-Item}\label{classKIconView_n0}

\end{CompactItemize}


\subsection{Detailed Description}
This Widget extends the functionality of {\bf QIcon\-View} to honor the system wide settings for Single Click/Double Click mode, Auto Selection and Change Cursor over Link. A variant of {\bf QIcon\-View} that honors KDE's system-wide settings. 

There is a new signal {\bf executed()}{\rm (p.\,\pageref{classKIconView_l0})}. It gets connected to either {\bf QIcon\-View::clicked}() or {\bf QIcon\-View::double\-Clicked}() depending on the {\bf KDE} wide Single Click/Double Click settings. It is strongly recomended that you use this signal instead of the above mentioned. This way you don180t need to care about the current settings. If you want to get informed when the user selects something connect to the {\bf QIcon\-View::selection\-Changed}() signal.



Definition at line 39 of file kiconview.h.

\subsection{Member Enumeration Documentation}
\index{KIconView@{KIcon\-View}!Mode@{Mode}}
\index{Mode@{Mode}!KIconView@{KIcon\-View}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf enum} {\bf KIcon\-View::Mode}}\label{classKIconView_w2}


KIcon\-View has two different operating modes. 

Execute mode is depending on the configuration of single-click or double-click where the signal {\bf executed()}{\rm (p.\,\pageref{classKIconView_l0})} will be emitted upon click/double-click. In Select mode, this signal will not be emitted.

Default is Execute mode. 

Definition at line 59 of file kiconview.h.

Referenced by mode().

\subsection{Member Function Documentation}
\index{KIconView@{KIcon\-View}!setMode@{setMode}}
\index{setMode@{setMode}!KIconView@{KIcon\-View}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KIcon\-View::set\-Mode ({\bf Mode} {\em m})}\label{classKIconView_a2}


Sets the mode to Execute or Select. 

\begin{itemize}
\item In Execute mode, the signal {\bf executed()}{\rm (p.\,\pageref{classKIconView_l0})} will be emitted when the user clicks/double-clicks an item. \item Select mode is the normal {\bf QIcon\-View} mode.\end{itemize}
Default is Execute. 

Definition at line 82 of file kiconview.cpp.\index{KIconView@{KIcon\-View}!mode@{mode}}
\index{mode@{mode}!KIconView@{KIcon\-View}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KIcon\-View::Mode} KIcon\-View::mode () const}\label{classKIconView_a3}


\begin{Desc}
\item[Returns:]the current Mode, either Execute or Select. \end{Desc}


Definition at line 87 of file kiconview.cpp.

References Mode.\index{KIconView@{KIcon\-View}!setFont@{setFont}}
\index{setFont@{setFont}!KIconView@{KIcon\-View}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KIcon\-View::set\-Font (const {\bf QFont} \&)\hspace{0.3cm}{\tt  [virtual]}}\label{classKIconView_a4}


Reimplemented for internal purposes. 



Definition at line 328 of file kiconview.cpp.\index{KIconView@{KIcon\-View}!executed@{executed}}
\index{executed@{executed}!KIconView@{KIcon\-View}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KIcon\-View::executed ({\bf QIcon\-View\-Item} $\ast$ {\em item})\hspace{0.3cm}{\tt  [signal]}}\label{classKIconView_l0}


This signal is emitted whenever the user executes an iconview item. 

That means depending on the {\bf KDE} wide Single Click/Double Click setting the user clicked or double clicked on that item. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em item}]is the pointer to the executed iconview item.\end{description}
\end{Desc}
Note that you may not delete any {\bf QIcon\-View\-Item} objects in slots connected to this signal. \index{KIconView@{KIcon\-View}!executed@{executed}}
\index{executed@{executed}!KIconView@{KIcon\-View}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KIcon\-View::executed ({\bf QIcon\-View\-Item} $\ast$ {\em item}, const {\bf QPoint} \& {\em pos})\hspace{0.3cm}{\tt  [signal]}}\label{classKIconView_l1}


This signal is emitted whenever the user executes an iconview item. 

That means depending on the {\bf KDE} wide Single Click/Double Click setting the user clicked or double clicked on that item. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em item}]is the pointer to the executed iconview item. \item[{\em pos}]is the position where the user has clicked\end{description}
\end{Desc}
Note that you may not delete any {\bf QIcon\-View\-Item} objects in slots connected to this signal. \index{KIconView@{KIcon\-View}!doubleClicked@{doubleClicked}}
\index{doubleClicked@{doubleClicked}!KIconView@{KIcon\-View}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KIcon\-View::double\-Clicked ({\bf QIcon\-View\-Item} $\ast$ {\em item}, const {\bf QPoint} \& {\em pos})\hspace{0.3cm}{\tt  [signal]}}\label{classKIconView_l2}


This signal gets emitted whenever the user double clicks into the iconview. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em item}]is the pointer to the clicked iconview item. \item[{\em pos}]is the position where the user has clicked, and\end{description}
\end{Desc}
Note that you may not delete any {\bf QIcon\-View\-Item} objects in slots connected to this signal.

This signal is more or less here for the sake of completeness. You should normally not need to use this. In most cases it180s better to use {\bf executed}{\rm (p.\,\pageref{classKIconView_l0})}() instead. \index{KIconView@{KIcon\-View}!slotAutoSelect@{slotAutoSelect}}
\index{slotAutoSelect@{slotAutoSelect}!KIconView@{KIcon\-View}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KIcon\-View::slot\-Auto\-Select ()\hspace{0.3cm}{\tt  [protected, slot]}}\label{classKIconView_j3}


Auto selection happend. 



Definition at line 152 of file kiconview.cpp.

References QIcon\-View::clear\-Selection(), QIcon\-View::current\-Item(), QIcon\-View::first\-Item(), QIcon\-View\-Item::height(), QIcon\-View::index(), QIcon\-View\-Item::intersects(), QIcon\-View\-Item::is\-Selected(), QIcon\-View\-Item::next\-Item(), QRect::normalize(), QIcon\-View\-Item::rect(), QIcon\-View::selection\-Changed(), QIcon\-View::selection\-Mode(), QIcon\-View::set\-Current\-Item(), QRect::set\-Height(), QIcon\-View::set\-Selected(), QRect::set\-Width(), QRect::unite(), QIcon\-View\-Item::width(), QIcon\-View\-Item::x(), and QIcon\-View\-Item::y().

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