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 TDE_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);
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;
TQSize maxMonthRect
the size calculated during resize events
TQLineEdit * line
the line edit to enter the date directly
int fontSize() const
Returns the font size of the widget elements.
void dateChanged(TQDate)
This signal is emitted each time the selected date is changed.
void dateSelected(TQDate)
This signal is emitted each time a day has been selected by clicking on the table (hitting a day in t...
TQToolButton * yearBackward
the year backward button
KDateValidator * val
the validator for the line edit:
TQToolButton * selectMonth
the button for selecting the month directly
TQToolButton * selectYear
the button for selecting the year directly
void dateEntered(TQDate)
This signal is emitted when enter is pressed and a VALID date has been entered before into the line e...
KDateTable * dateTable() const
KDateTable * table
the date table
TQToolButton * monthBackward
the month backward button
TQToolButton * yearForward
the year forward button
void tableClicked()
This signal is emitted when the day has been selected by clicking on it in the table.
TQToolButton * monthForward
the month forward button
Validates user-entered dates.