20 #ifndef KDATECOMBOBOX_H
21 #define KDATECOMBOBOX_H
25 #include <QtGui/QWidget>
31 class KDateComboBoxPrivate;
38 Q_PROPERTY(QDate date READ date WRITE setDate NOTIFY dateChanged USER
true)
39 Q_PROPERTY(QDate minimumDate READ minimumDate WRITE setMinimumDate RESET resetMinimumDate)
40 Q_PROPERTY(QDate maximumDate READ maximumDate WRITE setMaximumDate RESET resetMaximumDate)
41 Q_PROPERTY(Options options READ options WRITE setOptions)
55 DateKeywords = 0x0008,
56 WarnOnInvalid = 0x0010
58 Q_DECLARE_FLAGS(Options,
Option)
88 KLocale::CalendarSystem calendarSystem() const;
113 bool isValid() const;
128 Options options() const;
137 KLocale::DateFormat displayFormat() const;
144 QDate minimumDate() const;
151 QDate maximumDate() const;
171 void dateEntered(const QDate &date);
181 void dateChanged(const QDate &date);
190 void dateEdited(const QDate &date);
202 void setDate(const QDate &date);
211 void setCalendarSystem(
KLocale::CalendarSystem calendarSystem);
227 void setOptions(Options options);
236 void setDisplayFormat(
KLocale::DateFormat format);
249 void setDateRange(const QDate &minDate,
250 const QDate &maxDate,
252 const QString &maxWarnMsg = QString());
258 void resetDateRange();
273 void setMinimumDate(const QDate &minTime, const QString &minWarnMsg = QString());
278 void resetMinimumDate();
293 void setMaximumDate(const QDate &maxDate, const QString &maxWarnMsg = QString());
298 void resetMaximumDate();
315 void setDateMap(
QMap<QDate, QString> dateMap);
319 virtual
bool eventFilter(
QObject *
object, QEvent *event);
320 virtual
void showPopup();
321 virtual
void hidePopup();
322 virtual
void mousePressEvent(QMouseEvent *event);
323 virtual
void wheelEvent(QWheelEvent *event);
324 virtual
void keyPressEvent(QKeyEvent *event);
325 virtual
void focusInEvent(QFocusEvent *event);
326 virtual
void focusOutEvent(QFocusEvent *event);
327 virtual
void resizeEvent(QResizeEvent *event);
336 virtual
void assignDate(const QDate &date);
345 virtual
void assignCalendarSystem(
KLocale::CalendarSystem calendarSystem);
349 friend class KDateComboBoxPrivate;
350 KDateComboBoxPrivate *const d;
352 Q_PRIVATE_SLOT(d,
void clickDate())
353 Q_PRIVATE_SLOT(d,
void selectDate(
QAction*))
354 Q_PRIVATE_SLOT(d,
void editDate(const QString&))
355 Q_PRIVATE_SLOT(d,
void enterDate(const QDate&))
356 Q_PRIVATE_SLOT(d,
void parseDate())
360 Q_DECLARE_OPERATORS_FOR_FLAGS(KDateComboBox::Options)
362 #endif // KDATECOMBOBOX_H
Option
Options provided by the widget.