KDEUI
kdatetimeedit.cpp
Go to the documentation of this file.
166 ui.m_calendarCombo->setCurrentIndex(ui.m_calendarCombo->findData(ui.m_dateCombo->calendarSystem()));
167 ui.m_calendarCombo->setVisible((m_options &KDateTimeEdit::ShowCalendar) == KDateTimeEdit::ShowCalendar);
168 ui.m_calendarCombo->setEnabled((m_options &KDateTimeEdit::SelectCalendar) == KDateTimeEdit::SelectCalendar);
176 ui.m_calendarCombo->setCurrentIndex(ui.m_calendarCombo->findData(ui.m_dateCombo->calendarSystem()));
207 ui.m_timeSpecCombo->setVisible((m_options &KDateTimeEdit::ShowTimeSpec) == KDateTimeEdit::ShowTimeSpec);
208 ui.m_timeSpecCombo->setEnabled((m_options &KDateTimeEdit::SelectTimeSpec) == KDateTimeEdit::SelectTimeSpec);
243 warnMsg = i18nc("@info", "The entered date and time is before the minimum allowed date and time.");
253 warnMsg = i18nc("@info", "The entered date and time is after the maximum allowed date and time.");
bool isValid() const
QString i18n(const char *text)
void setDateDisplayFormat(KLocale::DateFormat format)
Sets the date format to display.
Definition: kdatetimeedit.cpp:515
virtual void focusInEvent(QFocusEvent *event)
Definition: kdatetimeedit.cpp:585
bool isValidTime() const
Return if the current user input time is valid.
Definition: kdatetimeedit.cpp:338
QList< QTime > timeList() const
Return the list of times able to be selected in the drop-down.
Definition: kdatetimeedit.cpp:562
void dateTimeChanged(const KDateTime &dateTime)
Signal if the date or time has been changed either manually by the user or programatically.
virtual void assignDateTime(const KDateTime &dateTime)
Assign the date, time and time spec for the widget.
Definition: kdatetimeedit.cpp:371
void setTimeListInterval(int minutes)
Set the interval between times able to be selected from the drop-down.
Definition: kdatetimeedit.cpp:545
Allow the user to select the date from a drop-down menu.
Definition: kdatecombobox.h:53
static KDateTime currentLocalDateTime()
void setTimeZones(const KTimeZones::ZoneMap &zones)
Set the time zones able to be selected.
Definition: kdatetimeedit.cpp:567
void assignCalendarSystem(KLocale::CalendarSystem calendarSystem)
Assign the calendar system for the widget.
Definition: kdatetimeedit.cpp:404
void resetMaximumDateTime()
Reset the minimum date and time to the default.
Definition: kdatetimeedit.cpp:473
void setCalendarSystemsList(QList< KLocale::CalendarSystem > calendars)
Set the list of Calendar Systems to display.
Definition: kdatetimeedit.cpp:502
void setTimeList(QList< QTime > timeList, const QString &minWarnMsg=QString(), const QString &maxWarnMsg=QString())
Set the list of times able to be selected from the drop-down.
Definition: kdatetimeedit.cpp:555
virtual void focusOutEvent(QFocusEvent *event)
Definition: kdatetimeedit.cpp:590
QMap< QDate, QString > dateMap() const
Return the map of dates listed in the drop-down and their displayed string forms. ...
Definition: kdatetimeedit.cpp:530
Definition: kdatetimeedit.h:33
DateFormat
bool isValidDate() const
Return if the current user input date is valid.
Definition: kdatetimeedit.cpp:328
static const KTimeZones::ZoneMap zones()
Show a warning on focus out if the date or time is invalid.
Definition: kdatetimeedit.h:66
void timeChanged(const QTime &time)
Signal if the time has been changed either manually by the user or programatically.
void dateChanged(const QDate &date)
Signal if the date has been changed either manually by the user or programatically.
void calendarEntered(KLocale::CalendarSystem calendarSystem)
Signal if the Calendar System has been manually entered by the user.
void calendarChanged(KLocale::CalendarSystem calendarSystem)
Signal if the Calendar System has been changed either manually by the user or programatically.
Allow the user to manually edit the time in the combo line edit.
Definition: ktimecombobox.h:51
KDateTime dateTime() const
Return the currently selected date, time and time spec.
Definition: kdatetimeedit.cpp:291
void setMaximumDateTime(const KDateTime &maxDateTime, const QString &maxWarnMsg=QString())
Set the maximum allowed date.
Definition: kdatetimeedit.cpp:463
void dateTimeEntered(const KDateTime &dateTime)
Signal if the date or time has been manually entered by the user.
void resetMinimumDateTime()
Reset the minimum date and time to the default.
Definition: kdatetimeedit.cpp:458
void setDateTime(const KDateTime &dateTime)
Set the currently selected date, time and time spec.
Definition: kdatetimeedit.cpp:361
QString i18nc(const char *ctxt, const char *text)
KDateTime maximumDateTime() const
Return the current maximum date and time.
Definition: kdatetimeedit.cpp:468
void setDateTimeRange(const KDateTime &minDateTime, const KDateTime &maxDateTime, const QString &minWarnMsg=QString(), const QString &maxWarnMsg=QString())
Set the minimum and maximum date and time range.
Definition: kdatetimeedit.cpp:478
CalendarSystem
void setTimeDisplayFormat(KLocale::TimeFormatOptions formatOptions)
Sets the time format to display.
Definition: kdatetimeedit.cpp:535
QList< KLocale::CalendarSystem > calendarSystemsList() const
Returns the list of Calendar Systems displayed.
Definition: kdatetimeedit.cpp:510
virtual bool eventFilter(QObject *object, QEvent *event)
Definition: kdatetimeedit.cpp:580
static void sorry(QWidget *parent, const QString &text, const QString &caption=QString(), Options options=Notify)
Display an "Sorry" dialog.
Definition: kmessagebox.cpp:904
int timeListInterval() const
Return the time list interval able to be selected.
virtual void assignDate(const QDate &date)
Assign the date for the widget.
Definition: kdatetimeedit.cpp:387
void timeSpecChanged(const KDateTime::Spec &spec)
Signal if the time spec has been changed either manually by the user or programatically.
QTime time() const
void resetDateTimeRange()
Reset the minimum and maximum date and time to the default.
Definition: kdatetimeedit.cpp:497
void insertCatalog(const QString &catalog)
void assignTimeSpec(const KDateTime::Spec &spec)
Assign the time spec for the widget.
Definition: kdatetimeedit.cpp:442
Allow the user to select the time from a drop-down menu.
Definition: ktimecombobox.h:52
KLocale * locale()
KAction * replace(const QObject *recvr, const char *slot, QObject *parent)
Find and replace matches.
Definition: kstandardaction.cpp:344
void timeSpecEntered(const KDateTime::Spec &spec)
Signal if the time spec has been changed manually by the user.
void setCalendarSystem(KLocale::CalendarSystem calendarSystem)
Set the Calendar System used for this widget.
Definition: kdatetimeedit.cpp:393
QDate date() const
void setMinimumDateTime(const KDateTime &minDateTime, const QString &minWarnMsg=QString())
Set the minimum allowed date.
Definition: kdatetimeedit.cpp:448
KDateTime minimumDateTime() const
Return the current minimum date and time.
Definition: kdatetimeedit.cpp:453
bool isNullDate() const
Return if the current user input date is null.
Definition: kdatetimeedit.cpp:333
virtual void resizeEvent(QResizeEvent *event)
Definition: kdatetimeedit.cpp:596
bool isValid() const
QString calendarLabel() const
Allow the user to manually edit the date in the combo line edit.
Definition: kdatecombobox.h:52
void setDateMap(QMap< QDate, QString > dateMap)
Set the list of dates able to be selected from the drop-down and the string form to display for those...
Definition: kdatetimeedit.cpp:525
bool isNullTime() const
Return if the current user input time is null.
Definition: kdatetimeedit.cpp:343
KDateTime::Spec timeSpec() const
Return the currently selected time spec.
Definition: kdatetimeedit.cpp:311
void setCalendar(KCalendarSystem *calendar=0)
Changes the calendar system to use.
Definition: kdatetimeedit.cpp:410
KLocale::TimeFormatOptions timeDisplayFormat() const
Return the currently set time format.
Definition: kdatetimeedit.cpp:540
The entered time can only be a selected time.
Definition: kdatetimeedit.h:65
KTimeZones::ZoneMap timeZones() const
Return the list of time zones able to be selected.
Definition: kdatetimeedit.cpp:575
Any set or entered time will be forced to one of the drop-down times.
Definition: ktimecombobox.h:53
KLocale::DateFormat dateDisplayFormat() const
Return the currently set date display format.
Definition: kdatetimeedit.cpp:520
KLocale::CalendarSystem calendarSystem() const
Returns the Calendar System type used by the widget.
Definition: kdatetimeedit.cpp:296
void setTimeSpec(const KDateTime::Spec &spec)
Set the current time spec.
Definition: kdatetimeedit.cpp:431
static QList< KLocale::CalendarSystem > calendarSystemsList()
KDateTimeEdit(QWidget *parent=0)
Create a new KDateTimeEdit widget.
Definition: kdatetimeedit.cpp:264
const KCalendarSystem * calendar() const
Returns the currently selected calendar system.
Definition: kdatetable.cpp:788
virtual void assignTime(const QTime &time)
Assign the time for the widget.
Definition: kdatetimeedit.cpp:425
This file is part of the KDE documentation.
Documentation copyright © 1996-2018 The KDE developers.
Generated on Fri Oct 19 2018 17:20:37 by doxygen 1.8.13 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2018 The KDE developers.
Generated on Fri Oct 19 2018 17:20:37 by doxygen 1.8.13 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.