KCalUtils
recurrenceactions.cpp
46 i18nc("@option:check calendar items before a certain date", "Items before %1", QLocale().toString(dateTime, QLocale::ShortFormat)));
51 mUi.checkBoxSelected->setText(i18nc("@option:check currently selected calendar item", "Selected item"));
57 i18nc("@option:check calendar items after a certain date", "Items after %1", QLocale().toString(dateTime, QLocale::ShortFormat)));
87 mUi.iconLabel->setPixmap(icon.pixmap(style()->pixelMetric(QStyle::PM_MessageBoxIconSize, &option, this)));
117 int RecurrenceActions::availableOccurrences(const Incidence::Ptr &incidence, const QDateTime &selectedOccurrence)
121 if (incidence->recurrence()->recursOn(selectedOccurrence.date(), selectedOccurrence.timeZone())) {
137 createDialog(QDialogButtonBox::StandardButtons buttons, const QString &caption, QWidget *mainWidget, QDialogButtonBox **buttonBox, QWidget *parent)
200 auto buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel | QDialogButtonBox::No | QDialogButtonBox::Yes, parent);
213 KMessageBox::createKMessageBox(dialog, buttonBox, QMessageBox::Question, message, QStringList(), QString(), &checkboxResult, KMessageBox::Notify);
235 auto buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel | QDialogButtonBox::No | QDialogButtonBox::Yes, parent);
247 KMessageBox::createKMessageBox(dialog, buttonBox, QMessageBox::Question, message, QStringList(), QString(), &checkboxResult, KMessageBox::Notify);
@ AllOccurrences
Scope does include all occurrences (past, present and future)
Definition: recurrenceactions.h:63
QTimeZone timeZone() const const
virtual void reject()
void setShortcut(const QKeySequence &key)
KCALUTILS_EXPORT int questionSelectedAllCancel(const QString &message, const QString &caption, const KGuiItem &actionSelected, const KGuiItem &actionAll, QWidget *parent)
Presents a message box with two action choices and cancel to the user.
Definition: recurrenceactions.cpp:192
Question
void initFrom(const QWidget *widget)
QString caption()
KCALUTILS_EXPORT int questionSelectedFutureAllCancel(const QString &message, const QString &caption, const KGuiItem &actionSelected, const KGuiItem &actionFuture, const KGuiItem &actionAll, QWidget *parent)
Presents a message box with three action choices and cancel to the user.
Definition: recurrenceactions.cpp:225
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
static void assign(QPushButton *button, const KGuiItem &item)
KCALUTILS_EXPORT int availableOccurrences(const KCalendarCore::Incidence::Ptr &incidence, const QDateTime &selectedOccurrence)
Checks what scope an action could be applied on for a given incidence.
Definition: recurrenceactions.cpp:117
void accepted()
virtual void accept()
Rejected
Key_Return
void setupUi(QWidget *widget)
PM_MessageBoxIconSize
typedef StandardButtons
KCALUTILS_EXPORT int questionMultipleChoice(const QDateTime &selectedOccurrence, const QString &message, const QString &caption, const KGuiItem &action, int availableChoices, int preselectedChoices, QWidget *parent)
Presents a multiple choice scope selection dialog to the user.
Definition: recurrenceactions.cpp:161
@ SelectedOccurrence
Scope does include the given/selected occurrence.
Definition: recurrenceactions.h:48
QDialogButtonBox::StandardButton createKMessageBox(QDialog *dialog, QDialogButtonBox *buttons, const QIcon &icon, const QString &text, const QStringList &strlist, const QString &ask, bool *checkboxReturn, Options options, const QString &details=QString(), QMessageBox::Icon notifyType=QMessageBox::Information)
@ FutureOccurrences
Scope does include occurrences after the given/selected occurrence.
Definition: recurrenceactions.h:58
ShortFormat
Utility functions for dealing with recurrences.
Definition: recurrenceactions.h:32
QPixmap pixmap(const QSize &size, QIcon::Mode mode, QIcon::State state) const const
void rejected()
QPushButton * button(QDialogButtonBox::StandardButton which) const const
@ PastOccurrences
Scope does include occurrences before the given/selected occurrence.
Definition: recurrenceactions.h:53
QDate date() const const
CTRL
QString i18nc(const char *context, const char *text, const TYPE &arg...)
void setDefault(bool)
T * data() const const
SP_MessageBoxQuestion
Notify
QString message
char * toString(const EngineQuery &query)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Sep 26 2023 04:02:16 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Sep 26 2023 04:02:16 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.