23 #include <libtdepim/kdateedit.h>
46 explicit DateEdit(TQWidget* parent = 0,
const char* name = 0);
52 const TQDate&
minDate()
const {
return mMinDate; }
56 const TQDate&
maxDate()
const {
return mMaxDate; }
62 void setMinDate(
const TQDate&
date,
const TQString& errorDate = TQString());
68 void setMaxDate(
const TQDate&
date,
const TQString& errorDate = TQString());
73 virtual void mousePressEvent(TQMouseEvent*);
74 virtual void mouseReleaseEvent(TQMouseEvent*);
75 virtual void mouseMoveEvent(TQMouseEvent*);
76 virtual void keyPressEvent(TQKeyEvent*);
77 virtual void keyReleaseEvent(TQKeyEvent*);
80 void newDateEntered(
const TQDate&);
83 void pastLimitMessage(
const TQDate& limit,
const TQString& error,
const TQString& defaultError);
87 TQString mMinDateErrString;
88 TQString mMaxDateErrString;
Date edit widget with range limits.
const TQDate & maxDate() const
Returns the latest date which can be entered.
bool isValid() const
Returns true if the widget contains a valid date.
void setMaxDate(const TQDate &date, const TQString &errorDate=TQString())
Sets the latest date which can be entered.
void setInvalid()
Sets the date held in the widget to an invalid date.
DateEdit(TQWidget *parent=0, const char *name=0)
Constructor.
void setMinDate(const TQDate &date, const TQString &errorDate=TQString())
Sets the earliest date which can be entered.
const TQDate & minDate() const
Returns the earliest date which can be entered.