MessageBox Class Reference
The MessageBox class provides an extension to KMessageBox, including the option for Continue/Cancel message boxes to have a default button of Cancel. Enhanced KMessageBox. More...
#include <messagebox.h>
Inherits KMessageBox.
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)
Detailed Description
The MessageBox class provides an extension to KMessageBox, including the option for Continue/Cancel message boxes to have a default button of Cancel. Enhanced KMessageBox.
- Author:
- David Jarvie <software@astrojar.org.uk>
Member Enumeration Documentation
|
MessageBox types.
|
Member Function Documentation
|
Gets the default button for the Continue/Cancel message box with the specified "don't ask again" name.
|
|
Sets the default button for the Continue/Cancel message box with the specified "don't ask again" name.
|
|
Displays a Continue/Cancel message box with the option as to which button is the default.
|
|
Displays a Continue/Cancel message box.
|
|
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
|
|
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
|
|
Stores whether the Yes/No message box should or should not be shown again.
|
|
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
|
|
Sets the KConfig object to be used by the MessageBox class.
|
The documentation for this class was generated from the following files:
- messagebox.h
- messagebox.cpp