\section{KDate\-Widget Class Reference}
\label{classKDateWidget}\index{KDateWidget@{KDateWidget}}
This widget can be used to display or allow user selection of a date. A pushbutton to display or allow user selection of a date.  


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

Inheritance diagram for KDate\-Widget:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=57pt]{classKDateWidget__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KDate\-Widget:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=57pt]{classKDateWidget__coll__graph}
\end{center}
\end{figure}
\subsection*{Signals}
\begin{CompactItemize}
\item 
void {\bf changed} ({\bf QDate})
\begin{CompactList}\small\item\em Emitted whenever the date of the widget is changed, either with {\bf set\-Date}{\rm (p.\,\pageref{classKDateWidget_a4})}() or via user selection. \item\end{CompactList}\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KDate\-Widget} ({\bf QWidget} $\ast$parent=0, const  char $\ast$name=0)
\begin{CompactList}\small\item\em Constructs a date selection widget. \item\end{CompactList}\item 
{\bf KDate\-Widget} ({\bf QDate} date, {\bf QWidget} $\ast$parent=0, const  char $\ast$name=0)
\begin{CompactList}\small\item\em Constructs a date selection widget with the initial date set to {\tt date}. \item\end{CompactList}\item 
virtual {\bf $\sim$KDate\-Widget} ()
\begin{CompactList}\small\item\em Destructs the date selection widget. \item\end{CompactList}\item 
{\bf QDate} {\bf date} () const 
\begin{CompactList}\small\item\em Returns the currently selected date. \item\end{CompactList}\item 
void {\bf set\-Date} ({\bf QDate} date)
\begin{CompactList}\small\item\em Changes the selected date to {\tt date}. \item\end{CompactList}\end{CompactItemize}
\subsection*{Protected Slots}
\begin{CompactItemize}
\item 
void {\bf slot\-Date\-Changed} ()\label{classKDateWidget_j0}

\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
void {\bf init} ()\label{classKDateWidget_b0}

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

\end{CompactItemize}


\subsection{Detailed Description}
This widget can be used to display or allow user selection of a date. A pushbutton to display or allow user selection of a date. 

\begin{Desc}
\item[See also:]{\bf KDate\-Picker}{\rm (p.\,\pageref{classKDatePicker})}\end{Desc}


\begin{Desc}
\item[Version:]\begin{Desc}
\item[Id]{\bf kdatewidget.h}{\rm (p.\,\pageref{kdatewidget_8h})},v 1.3 2002/03/04 00:51:47 lunakl Exp \end{Desc}
\end{Desc}




Definition at line 33 of file kdatewidget.h.

\subsection{Constructor \& Destructor Documentation}
\index{KDateWidget@{KDate\-Widget}!KDateWidget@{KDateWidget}}
\index{KDateWidget@{KDateWidget}!KDateWidget@{KDate\-Widget}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDate\-Widget::KDate\-Widget ({\bf QWidget} $\ast$ {\em parent} = 0, const char $\ast$ {\em name} = 0)}\label{classKDateWidget_a0}


Constructs a date selection widget. 



Definition at line 53 of file kdatewidget.cpp.

References KStd\-Accel::name(), and set\-Date().\index{KDateWidget@{KDate\-Widget}!KDateWidget@{KDateWidget}}
\index{KDateWidget@{KDateWidget}!KDateWidget@{KDate\-Widget}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDate\-Widget::KDate\-Widget ({\bf QDate} {\em date}, {\bf QWidget} $\ast$ {\em parent} = 0, const char $\ast$ {\em name} = 0)}\label{classKDateWidget_a1}


Constructs a date selection widget with the initial date set to {\tt date}. 



Definition at line 60 of file kdatewidget.cpp.

References KStd\-Accel::name(), and set\-Date().\index{KDateWidget@{KDate\-Widget}!~KDateWidget@{$\sim$KDateWidget}}
\index{~KDateWidget@{$\sim$KDateWidget}!KDateWidget@{KDate\-Widget}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KDate\-Widget::$\sim${\bf KDate\-Widget} ()\hspace{0.3cm}{\tt  [virtual]}}\label{classKDateWidget_a2}


Destructs the date selection widget. 



Definition at line 86 of file kdatewidget.cpp.

\subsection{Member Function Documentation}
\index{KDateWidget@{KDate\-Widget}!date@{date}}
\index{date@{date}!KDateWidget@{KDate\-Widget}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QDate} KDate\-Widget::date () const}\label{classKDateWidget_a3}


Returns the currently selected date. 



Definition at line 109 of file kdatewidget.cpp.\index{KDateWidget@{KDate\-Widget}!setDate@{setDate}}
\index{setDate@{setDate}!KDateWidget@{KDate\-Widget}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDate\-Widget::set\-Date ({\bf QDate} {\em date})}\label{classKDateWidget_a4}


Changes the selected date to {\tt date}. 



Definition at line 90 of file kdatewidget.cpp.

References changed(), QDate::day(), QDate::days\-In\-Month(), QDate::month(), and QDate::year().

Referenced by KDate\-Widget().\index{KDateWidget@{KDate\-Widget}!changed@{changed}}
\index{changed@{changed}!KDateWidget@{KDate\-Widget}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KDate\-Widget::changed ({\bf QDate})\hspace{0.3cm}{\tt  [signal]}}\label{classKDateWidget_l0}


Emitted whenever the date of the widget is changed, either with {\bf set\-Date}{\rm (p.\,\pageref{classKDateWidget_a4})}() or via user selection. 



Referenced by set\-Date().

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