kalarm/lib
MessageBox Class Reference
#include <messagebox.h>
Inheritance diagram for MessageBox:

Detailed Description
Enhanced KMessageBox.The MessageBox class provides an extension to KMessageBox, including the option for Continue/Cancel message boxes to have a default button of Cancel.
- Author:
- David Jarvie <software@astrojar.org.uk>
Definition at line 36 of file messagebox.h.
Public Types | |
enum | AskType { CONT_CANCEL_DEF_CONT, CONT_CANCEL_DEF_CANCEL, YES_NO_DEF_NO } |
Static Public Member Functions | |
static ButtonCode | getContinueDefault (const QString &dontAskAgainName) |
static void | setContinueDefault (const QString &dontAskAgainName, ButtonCode defaultButton) |
static int | warningContinueCancel (QWidget *parent, ButtonCode defaultButton, const QString &text, const QString &caption=QString::null, const KGuiItem &buttonContinue=KStdGuiItem::cont(), const QString &dontAskAgainName=QString::null) |
static int | warningContinueCancel (QWidget *parent, const QString &text, const QString &caption=QString::null, const KGuiItem &buttonContinue=KStdGuiItem::cont(), const QString &dontAskAgainName=QString::null) |
static bool | setDefaultShouldBeShownContinue (const QString &dontShowAgainName, bool defaultShow) |
static bool | shouldBeShownContinue (const QString &dontShowAgainName) |
static void | saveDontShowAgainYesNo (const QString &dontShowAgainName, bool dontShow=true, ButtonCode result=No) |
static void | saveDontShowAgainContinue (const QString &dontShowAgainName, bool dontShow=true) |
static void | setDontShowAskAgainConfig (KConfig *cfg) |
Member Enumeration Documentation
|
MessageBox types.
Definition at line 44 of file messagebox.h. |
Member Function Documentation
|
Gets the default button for the Continue/Cancel message box with the specified "don't ask again" name.
Definition at line 43 of file messagebox.cpp. |
|
Stores whether a non-Yes/No message box should or should not be shown again.
If the message box has Cancel as the default button, either setContinueDefault() or warningContinueCancel() must have been called previously to set this for the specified
Definition at line 155 of file messagebox.cpp. |
|
Stores whether the Yes/No message box should or should not be shown again.
Definition at line 142 of file messagebox.cpp. |
|
Sets the default button for the Continue/Cancel message box with the specified "don't ask again" name.
Definition at line 34 of file messagebox.cpp. |
|
If there is no current setting for whether a non-Yes/No message box should be shown, sets it to
If a Continue/Cancel message box has Cancel as the default button, either setContinueDefault() or warningContinueCancel() must have been called previously to set this for the specified
Definition at line 106 of file messagebox.cpp. |
|
Sets the KConfig object to be used by the MessageBox class.
Reimplemented from KMessageBox. Definition at line 117 of file messagebox.h. |
|
Returns whether a non-Yes/No message box should be shown.
If the message box has Cancel as the default button, either setContinueDefault() or warningContinueCancel() must have been called previously to set this for the specified
Reimplemented from KMessageBox. Definition at line 127 of file messagebox.cpp. |
|
Displays a Continue/Cancel message box.
Definition at line 63 of file messagebox.cpp. |
|
Displays a Continue/Cancel message box with the option as to which button is the default.
Definition at line 75 of file messagebox.cpp. |
The documentation for this class was generated from the following files: