\section{KValue\-Selector Class Reference}
\label{classKValueSelector}\index{KValueSelector@{KValueSelector}}
Widget for color value selection.  


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

Inheritance diagram for KValue\-Selector:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=96pt]{classKValueSelector__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KValue\-Selector:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=107pt]{classKValueSelector__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KValue\-Selector} ({\bf QWidget} $\ast$parent=0, const char $\ast$name=0)
\item 
{\bf KValue\-Selector} (Orientation o, {\bf QWidget} $\ast$parent=0, const char $\ast$name=0)
\item 
int {\bf hue} () const \label{classKValueSelector_a2}

\item 
void {\bf set\-Hue} (int h)\label{classKValueSelector_a3}

\item 
int {\bf saturation} () const \label{classKValueSelector_a4}

\item 
void {\bf set\-Saturation} (int s)\label{classKValueSelector_a5}

\item 
void {\bf update\-Contents} ()\label{classKValueSelector_a6}

\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
virtual void {\bf draw\-Palette} ({\bf QPixmap} $\ast$pixmap)
\item 
virtual void {\bf resize\-Event} ({\bf QResize\-Event} $\ast$)\label{classKValueSelector_b1}

\item 
virtual void {\bf draw\-Contents} ({\bf QPainter} $\ast$painter)
\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)\label{classKValueSelector_b3}

\end{CompactItemize}


\subsection{Detailed Description}
Widget for color value selection. 

\begin{Desc}
\item[See also:]{\bf KHSSelector}{\rm (p.\,\pageref{classKHSSelector})}, {\bf KColor\-Dialog}{\rm (p.\,\pageref{classKColorDialog})} \end{Desc}
\begin{Desc}
\item[Author:]Martin Jones ({\tt mjones@kde.org}) \end{Desc}




Definition at line 102 of file kcolordialog.h.

\subsection{Constructor \& Destructor Documentation}
\index{KValueSelector@{KValue\-Selector}!KValueSelector@{KValueSelector}}
\index{KValueSelector@{KValueSelector}!KValueSelector@{KValue\-Selector}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KValue\-Selector::KValue\-Selector ({\bf QWidget} $\ast$ {\em parent} = {\tt 0}, const char $\ast$ {\em name} = {\tt 0})}\label{classKValueSelector_a0}


Constructs a widget for color selection. 



Definition at line 245 of file kcolordialog.cpp.

References QPixmap::set\-Optimization(), and QRange\-Control::set\-Range().\index{KValueSelector@{KValue\-Selector}!KValueSelector@{KValueSelector}}
\index{KValueSelector@{KValueSelector}!KValueSelector@{KValue\-Selector}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KValue\-Selector::KValue\-Selector (Orientation {\em o}, {\bf QWidget} $\ast$ {\em parent} = {\tt 0}, const char $\ast$ {\em name} = {\tt 0})}\label{classKValueSelector_a1}


Constructs a widget for color selection with a given orientation. 



Definition at line 252 of file kcolordialog.cpp.

References QPixmap::set\-Optimization(), and QRange\-Control::set\-Range().

\subsection{Member Function Documentation}
\index{KValueSelector@{KValue\-Selector}!drawPalette@{drawPalette}}
\index{drawPalette@{drawPalette}!KValueSelector@{KValue\-Selector}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KValue\-Selector::draw\-Palette ({\bf QPixmap} $\ast$ {\em pixmap})\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKValueSelector_b0}


Draws the contents of the widget on a pixmap, which is used for buffering. 



Definition at line 275 of file kcolordialog.cpp.

References KSelector::contents\-Rect(), QPixmap::convert\-From\-Image(), KImage\-Effect::dither(), QRect::height(), KSelector::orientation(), QColor::rgb(), QImage::scan\-Line(), QColor::set\-Hsv(), and QRect::width().\index{KValueSelector@{KValue\-Selector}!drawContents@{drawContents}}
\index{drawContents@{drawContents}!KValueSelector@{KValue\-Selector}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KValue\-Selector::draw\-Contents ({\bf QPainter} $\ast$ {\em painter})\hspace{0.3cm}{\tt  [protected, virtual]}}\label{classKValueSelector_b2}


Reimplemented from {\bf KSelector}{\rm (p.\,\pageref{classKSelector})}. 

The drawing is buffered in a pixmap here. As real drawing routine, {\bf draw\-Palette()}{\rm (p.\,\pageref{classKValueSelector_b0})} is used. 

Reimplemented from {\bf KSelector} {\rm (p.\,\pageref{classKSelector_b0})}.

Definition at line 270 of file kcolordialog.cpp.

References KSelector::contents\-Rect(), QWidget::x(), and QWidget::y().

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