kalarm/lib
messagebox.h
Go to the documentation of this file.
82 static void saveDontShowAgainYesNo(const QString& dontShowAgainName, bool dontShow = true, ButtonCode result = No);
114 static void information(QWidget* parent, const QString& text, const QString& caption = QString(),
127 static int questionYesNo(QWidget* parent, const QString& text, const QString& caption = QString(),
132 { return KMessageBox::questionYesNo(parent, text, caption, buttonYes, buttonNo, dontAskAgainName, options); }
136 static int questionYesNoCancel(QWidget* parent, const QString& text, const QString& caption = QString(),
142 { return KMessageBox::questionYesNoCancel(parent, text, caption, buttonYes, buttonNo, buttonCancel, dontAskAgainName, options); }
155 static int warningCancelContinue(QWidget* parent, const QString& text, const QString& caption = QString(),
160 { return KMessageBox::warningContinueCancel(parent, text, caption, buttonContinue, buttonCancel, dontAskAgainName, Options(options|Dangerous)); }
164 static int warningContinueCancel(QWidget* parent, const QString& text, const QString& caption = QString(),
169 { return KMessageBox::warningContinueCancel(parent, text, caption, buttonContinue, buttonCancel, dontAskAgainName, options); }
173 static int warningYesNo(QWidget* parent, const QString& text, const QString& caption = QString(),
178 { return KMessageBox::warningYesNo(parent, text, caption, buttonYes, buttonNo, dontAskAgainName, options); }
188 static void saveDontShowAgain(const QString& dontShowAgainName, bool yesno, bool dontShow, const char* yesnoResult = 0);
static int questionYesNoCancel(QWidget *parent, const QString &text, const QString &caption=QString(), const KGuiItem &buttonYes=KStandardGuiItem::yes(), const KGuiItem &buttonNo=KStandardGuiItem::no(), const KGuiItem &buttonCancel=KStandardGuiItem::cancel(), const QString &dontAskAgainName=QString(), Options options=Options(Notify|WindowModal))
Same as KMessageBox::questionYesNoCancel() except that it defaults to window-modal, not application-modal.
Definition: messagebox.h:136
virtual QByteArray text(quint32 serialNumber) const =0
static void error(QWidget *parent, const QString &text, const QString &caption=QString(), Options options=Options(Notify|WindowModal))
Same as KMessageBox::error() except that it defaults to window-modal, not application-modal.
Definition: messagebox.h:108
static ButtonCode getContinueDefault(const QString &dontAskAgainName)
Gets the default button for the Continue/Cancel message box with the specified "don't ask again" name...
Definition: messagebox.cpp:46
static void detailedError(QWidget *parent, const QString &text, const QString &details, const QString &caption=QString(), Options options=Options(Notify|WindowModal))
Same as KMessageBox::detailedError() except that it defaults to window-modal, not application-modal...
Definition: messagebox.h:94
static void setContinueDefault(const QString &dontAskAgainName, ButtonCode defaultButton)
Sets the default button for the Continue/Cancel message box with the specified "don't ask again" name...
Definition: messagebox.cpp:37
static bool shouldBeShownContinue(const QString &dontShowAgainName)
Returns whether a non-Yes/No message box should be shown.
Definition: messagebox.cpp:86
static int warningYesNo(QWidget *parent, const QString &text, const QString &caption=QString(), const KGuiItem &buttonYes=KStandardGuiItem::yes(), const KGuiItem &buttonNo=KStandardGuiItem::no(), const QString &dontAskAgainName=QString(), Options options=Options(Notify|Dangerous|WindowModal))
Same as KMessageBox::warningYesNo() except that it defaults to window-modal, not application-modal.
Definition: messagebox.h:173
static void sorry(QWidget *parent, const QString &text, const QString &caption=QString(), Options options=Options(Notify|WindowModal))
Same as KMessageBox::sorry() except that it defaults to window-modal, not application-modal.
Definition: messagebox.h:121
Definition: messagebox.h:49
static void saveDontShowAgainYesNo(const QString &dontShowAgainName, bool dontShow=true, ButtonCode result=No)
Stores whether the Yes/No message box should or should not be shown again.
Definition: messagebox.cpp:101
static void saveDontShowAgainContinue(const QString &dontShowAgainName, bool dontShow=true)
Stores whether a non-Yes/No message box should or should not be shown again.
Definition: messagebox.cpp:114
static bool setDefaultShouldBeShownContinue(const QString &dontShowAgainName, bool defaultShow)
If there is no current setting for whether a non-Yes/No message box should be shown, sets it to defaultShow.
Definition: messagebox.cpp:66
static int warningContinueCancel(QWidget *parent, const QString &text, const QString &caption=QString(), const KGuiItem &buttonContinue=KStandardGuiItem::cont(), const KGuiItem &buttonCancel=KStandardGuiItem::cancel(), const QString &dontAskAgainName=QString(), Options options=Options(Notify|WindowModal))
Same as KMessageBox::warningContinueCancel() except that it defaults to window-modal, not application-modal.
Definition: messagebox.h:164
static const Options NoAppModal
Shortcut to represent Options(Notify | WindowModal).
Definition: messagebox.h:181
static int warningCancelContinue(QWidget *parent, const QString &text, const QString &caption=QString(), const KGuiItem &buttonContinue=KStandardGuiItem::cont(), const KGuiItem &buttonCancel=KStandardGuiItem::cancel(), const QString &dontAskAgainName=QString(), Options options=Options(Notify|WindowModal))
Same as KMessageBox::warningContinueCancel() except that the default button is Cancel, and it defaults to window-modal, not application-modal.
Definition: messagebox.h:155
static void detailedSorry(QWidget *parent, const QString &text, const QString &details, const QString &caption=QString(), Options options=Options(Notify|WindowModal))
Same as KMessageBox::detailedSorry() except that it defaults to window-modal, not application-modal...
Definition: messagebox.h:101
static int questionYesNo(QWidget *parent, const QString &text, const QString &caption=QString(), const KGuiItem &buttonYes=KStandardGuiItem::yes(), const KGuiItem &buttonNo=KStandardGuiItem::no(), const QString &dontAskAgainName=QString(), Options options=Options(Notify|WindowModal))
Same as KMessageBox::questionYesNo() except that it defaults to window-modal, not application-modal...
Definition: messagebox.h:127
static void information(QWidget *parent, const QString &text, const QString &caption=QString(), const QString &dontShowAgainName=QString(), Options options=Options(Notify|WindowModal))
Same as KMessageBox::information() except that it defaults to window-modal, not application-modal.
Definition: messagebox.h:114
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:35:02 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:35:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.