kalarm
repetitionbutton.cpp
Go to the documentation of this file.
49 RepetitionButton::RepetitionButton(const QString& caption, bool waitForInitialisation, QWidget* parent)
165 mTimeSelector = new TimeSelector(i18nc("@option:check Repeat every 10 minutes", "Repeat every"),
172 connect(mTimeSelector, SIGNAL(valueChanged(KCalCore::Duration)), SLOT(intervalChanged(KCalCore::Duration)));
174 connect(mTimeSelector, SIGNAL(valueChanged(KCal::Duration)), SLOT(intervalChanged(KCal::Duration)));
192 mCountButton->setWhatsThis(i18nc("@info:whatsthis", "Check to specify the number of times the alarm should repeat after each recurrence"));
200 mCount->setWhatsThis(i18nc("@info:whatsthis", "Enter the number of times to trigger the alarm after its initial occurrence"));
210 mDurationButton->setWhatsThis(i18nc("@info:whatsthis", "Check to specify how long the alarm is to be repeated"));
216 connect(mDuration, SIGNAL(valueChanged(KCalCore::Duration)), SLOT(durationChanged(KCalCore::Duration)));
218 connect(mDuration, SIGNAL(valueChanged(KCal::Duration)), SLOT(durationChanged(KCal::Duration)));
220 mDuration->setWhatsThis(i18nc("@info:whatsthis", "Enter the length of time to repeat the alarm"));
305 mCount->setRange(1, (mMaxDuration >= 0 ? mMaxDuration / (interval.asSeconds()/60) : MAX_COUNT));
Units
KCal::Duration period() const
void setPeriod(const KCal::Duration &period, bool dateOnly, Units defaultUnits)
virtual QSize sizeHint() const
void setRange(int minimum, int maximum)
void setEnabled(bool)
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
Definition: repetitionbutton.h:78
void clicked(bool checked)
void changed()
void needsInitialisation()
void addButton(QAbstractButton *button)
void setCheckable(bool)
void setMargin(int margin)
bool signalsBlocked() const
bool blockSignals(bool block)
void setReadOnly(bool r)
void setFixedSize(const QSize &s)
void setFocusWidget(QWidget *widget, bool enable=true)
void setChecked(bool)
virtual void setReadOnly(bool readOnly)
virtual void setReadOnly(bool readOnly)
void setWhatsThis(const QString &)
RepetitionDlg(const QString &caption, bool readOnly, QWidget *parent=0)
Definition: repetitionbutton.cpp:150
virtual QSize sizeHint() const
void addStretch(int stretch)
void setValue(int val)
void setDateOnly(bool dateOnly)
Definition: timeselector.h:31
void setPeriod(const KCal::Duration &, bool dateOnly, TimePeriod::Units defaultUnits)
Definition: timeselector.cpp:140
void initialise(const Repetition &, bool dateOnly, int maxDuration=-1)
Definition: repetitionbutton.cpp:99
RepetitionButton(const QString &caption, bool waitForInitialisation, QWidget *parent)
Definition: repetitionbutton.cpp:49
void set(const Repetition &, bool dateOnly=false, int maxDuration=-1)
Definition: repetitionbutton.cpp:233
void setMaximum(int hourmin, int days)
virtual QSize sizeHint() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void setSpacing(int spacing)
void addLayout(QLayout *layout, int stretch)
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.