messagebox.cpp
63 int MessageBox::warningContinueCancel(TQWidget* parent, const TQString& text, const TQString& caption,
67 return warningContinueCancel(parent, defaultButton, text, caption, buttonContinue, dontAskAgainName);
75 int MessageBox::warningContinueCancel(TQWidget* parent, ButtonCode defaultButton, const TQString& text,
81 return KMessageBox::warningContinueCancel(parent, text, caption, buttonContinue, dontAskAgainName);
95 return warningYesNo(parent, text, caption, buttonContinue, KStdGuiItem::cancel(), dontAskAgainName);
106 bool MessageBox::setDefaultShouldBeShownContinue(const TQString& dontShowAgainName, bool defaultShow)
142 void MessageBox::saveDontShowAgainYesNo(const TQString& dontShowAgainName, bool dontShow, ButtonCode result)
166 void MessageBox::saveDontShowAgain(const TQString& dontShowAgainName, bool yesno, bool dontShow, const char* yesnoResult)
174 config->writeEntry(dontShowAgainName, TQString::fromLatin1(dontShow ? yesnoResult : ""), true, global);
static bool shouldBeShownContinue(const TQString &dontShowAgainName)
Returns whether a non-Yes/No message box should be shown.
Definition: messagebox.cpp:127
static void saveDontShowAgainContinue(const TQString &dontShowAgainName, bool dontShow=true)
Stores whether a non-Yes/No message box should or should not be shown again.
Definition: messagebox.cpp:155
static void setContinueDefault(const TQString &dontAskAgainName, ButtonCode defaultButton)
Sets the default button for the Continue/Cancel message box with the specified "don't ask again" name...
Definition: messagebox.cpp:34
static int warningContinueCancel(TQWidget *parent, ButtonCode defaultButton, const TQString &text, const TQString &caption=TQString(), const KGuiItem &buttonContinue=KStdGuiItem::cont(), const TQString &dontAskAgainName=TQString())
Displays a Continue/Cancel message box with the option as to which button is the default.
Definition: messagebox.cpp:75
static bool setDefaultShouldBeShownContinue(const TQString &dontShowAgainName, bool defaultShow)
If there is no current setting for whether a non-Yes/No message box should be shown,...
Definition: messagebox.cpp:106
static ButtonCode getContinueDefault(const TQString &dontAskAgainName)
Gets the default button for the Continue/Cancel message box with the specified "don't ask again" name...
Definition: messagebox.cpp:43
static void saveDontShowAgainYesNo(const TQString &dontShowAgainName, bool dontShow=true, ButtonCode result=No)
Stores whether the Yes/No message box should or should not be shown again.
Definition: messagebox.cpp:142