22 #include <tqdatetime.h>
24 #include <tdelibs_export.h>
54 TQ_PROPERTY( TQDate date READ date WRITE setDate)
55 TQ_PROPERTY(
bool closeButton READ hasCloseButton WRITE setCloseButton )
56 TQ_PROPERTY(
int fontSize READ fontSize WRITE setFontSize )
63 TQDate=TQDate::currentDate(),
93 TQSize sizeHint()
const;
101 bool setDate(
const TQDate&);
107 const TQDate& getDate()
const KDE_DEPRECATED;
112 const TQDate &date()
const;
117 void setEnabled(
bool);
129 void setFontSize(
int);
145 void setCloseButton(
bool enable );
152 bool hasCloseButton()
const;
156 virtual bool eventFilter(TQObject *o, TQEvent *e );
158 virtual void resizeEvent(TQResizeEvent*);
182 void dateChangedSlot(TQDate);
183 void tableClickedSlot();
184 void monthForwardClicked();
185 void monthBackwardClicked();
186 void yearForwardClicked();
187 void yearBackwardClicked();
192 void selectWeekClicked();
196 void selectMonthClicked();
200 void selectYearClicked();
204 void lineEnterPressed();
208 void todayButtonClicked();
212 void weekSelected(
int);
223 void dateChanged(TQDate);
229 void dateSelected(TQDate);
235 void dateEntered(TQDate);
242 void ensureSelectYearIsUp();
249 virtual void virtual_hook(
int id,
void* data );
251 void init(
const TQDate &dt );
252 void fillWeeksCombo(
const TQDate &date);
253 class KDatePickerPrivate;
254 KDatePickerPrivate *d;
257 #endif // KDATEPICKER_H
KDateTable * dateTable() const
TQToolButton * monthForward
the month forward button
TQToolButton * selectYear
the button for selecting the year directly
TQLineEdit * line
the line edit to enter the date directly
TQToolButton * monthBackward
the month backward button
KDateTable * table
the date table
int fontSize() const
Returns the font size of the widget elements.
Validates user-entered dates.
KDateValidator * val
the validator for the line edit:
TQToolButton * yearBackward
the year backward button
TQSize maxMonthRect
the size calculated during resize events
TQToolButton * selectMonth
the button for selecting the month directly
TQToolButton * yearForward
the year forward button