kalarm
alarmtimewidget.cpp
Go to the documentation of this file.
102 connect(mButtonGroup, SIGNAL(buttonSet(QAbstractButton*)), SLOT(slotButtonSet(QAbstractButton*)));
108 mAtTimeRadio = new RadioButton((mDeferring ? i18nc("@option:radio", "Defer to date/time:") : i18nc("@option:radio", "At date/time:")), topWidget);
110 mAtTimeRadio->setWhatsThis(mDeferring ? i18nc("@info:whatsthis", "Reschedule the alarm to the specified date and time.")
116 mDateEdit->setOptions(KDateComboBox::EditDate | KDateComboBox::SelectDate | KDateComboBox::DatePicker);
147 "Check to specify only a date (without a time) for the alarm. The alarm will trigger at the first opportunity on the selected date."));
151 mAfterTimeRadio = new RadioButton((mDeferring ? i18nc("@option:radio", "Defer for time interval:") : i18nc("@option:radio", "Time from now:")), topWidget);
153 mAfterTimeRadio->setWhatsThis(mDeferring ? i18nc("@info:whatsthis", "Reschedule the alarm for the specified time interval after now.")
162 mDelayTimeEdit->setWhatsThis(mDeferring ? i18nc("@info:whatsthis", "<para>%1</para><para>%2</para>", i18n_TimeAfterPeriod(), TimeSpinBox::shiftWhatsThis())
163 : i18nc("@info:whatsthis", "<para>%1</para><para>%2</para><para>%3</para>", i18n_TimeAfterPeriod(), recurText, TimeSpinBox::shiftWhatsThis()));
196 "Choose a time zone for this alarm which is different from the default time zone set in KAlarm's configuration dialog."));
214 mTimeZoneBox->setWhatsThis(i18nc("@info:whatsthis", "Select the time zone to use for this alarm."));
248 mDateEdit->setOptions(ro ? KDateComboBox::Options(0) : KDateComboBox::EditDate | KDateComboBox::SelectDate | KDateComboBox::DatePicker);
280 KDateTime AlarmTimeWidget::getDateTime(int* minsFromNow, bool checkExpired, bool showErrorMessage, QWidget** errorWidget) const
333 KAMessageBox::sorry(const_cast<AlarmTimeWidget*>(this), i18nc("@info", "Alarm date has already expired"));
345 KAMessageBox::sorry(const_cast<AlarmTimeWidget*>(this), i18nc("@info", "Alarm time has already expired"));
494 mAnyTime = (mAtTimeRadio->isChecked() && mAnyTimeAllowed && mAnyTimeCheckBox && mAnyTimeCheckBox->isChecked()) ? 1 : 0;
570 mTimeEdit->setEnabled(at && (!mAnyTimeAllowed || !mAnyTimeCheckBox || !mAnyTimeCheckBox->isChecked()));
663 mDelayTimeEdit->blockSignals(true); // prevent infinite recursion between here and delayTimeChanged()
683 QDateTime dt = KDateTime::currentUtcDateTime().addSecs(minutes * 60).toTimeSpec(mTimeSpec).dateTime();
QLayout * layout() const
virtual void setReadOnly(bool readOnly)
virtual void setEnabled(bool enabled)
void setMinDateTimeIsCurrent()
Definition: alarmtimewidget.cpp:396
static QString i18n_TimeAfterPeriod()
Definition: alarmtimewidget.cpp:50
void setValid(bool)
void addWidget(QWidget *widget, int row, int column, QFlags< Qt::AlignmentFlag > alignment)
virtual void setReadOnly(bool readOnly)
void pastMax()
virtual QSize sizeHint() const
bool isValid() const
QTime time() const
void setMinDateTime(const KDateTime &=KDateTime())
Definition: alarmtimewidget.cpp:409
void changed(const KDateTime &)
KTimeZone timeZone() const
bool isValid() const
Definition: alarmtimewidget.h:47
void setBuddy(QWidget *buddy)
void setMinimum(int minutes)
QTime maxTime() const
void setEnabled(bool)
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
void setRowStretch(int row, int stretch)
virtual QSize sizeHint() const
void dateOnlyToggled(bool anyTime)
virtual void setReadOnly(bool readOnly)
bool isEmpty() const
AlarmTimeWidget(const QString &groupBoxTitle, Mode, QWidget *parent=0)
Definition: alarmtimewidget.cpp:60
void addButton(QAbstractButton *button)
static void connect(QObject *receiver, const char *member)
void hide()
void setMargin(int margin)
virtual void setReadOnly(bool readOnly)
bool signalsBlocked() const
int value() const
bool blockSignals(bool block)
void setWrapping(bool on)
void setFixedSize(const QSize &s)
void setFocusWidget(QWidget *widget, bool enable=true)
virtual void setValue(int minutes)
KDateTime getDateTime(int *minsFromNow=0, bool checkExpired=true, bool showErrorMessage=true, QWidget **errorWidget=0) const
Definition: alarmtimewidget.cpp:280
void setChecked(bool)
void setMaxDateTime(const DateTime &=DateTime())
Definition: alarmtimewidget.cpp:421
void set(quint32, const QString &, const QString &, const QString &, const QString &, time_t)
virtual void setReadOnly(bool readOnly)
void setWhatsThis(const QString &)
QDate date() const
void setTimeZone(const KTimeZone &tz)
void addStretch(int stretch)
static void sorry(QWidget *parent, const QString &text, const QString &caption=QString(), Options options=Options(Notify|WindowModal))
virtual void setValue(int minutes)
void setColumnStretch(int column, int stretch)
QDateTime toTimeSpec(Qt::TimeSpec specification) const
int maximum() const
void setValid(bool valid)
static const QTime time_23_59(23, 59)
void show()
static QString shiftWhatsThis()
QDateTime addSecs(int s) const
virtual QSize sizeHint() const
virtual void setMaximum(int minutes)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QTime time() const
void setMaximum(int minutes)
void setSpacing(int spacing)
void addLayout(QLayout *layout, int stretch)
void selectTimeFromNow(int minutes=0)
Definition: alarmtimewidget.cpp:264
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.