• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeui
 

tdeui

Public Types | Static Public Member Functions | List of all members
KMessageBox Class Reference

#include <tdemessagebox.h>

Public Types

enum  ButtonCode {
  Ok = 1 , Cancel = 2 , Yes = 3 , No = 4 ,
  Continue = 5
}
 
enum  DialogType {
  QuestionYesNo = 1 , WarningYesNo = 2 , WarningContinueCancel = 3 , WarningYesNoCancel = 4 ,
  Information = 5 , Sorry = 7 , Error = 8 , QuestionYesNoCancel = 9
}
 
enum  OptionsType {
  Notify = 1 , AllowLink = 2 , Dangerous = 4 , PlainCaption = 8 ,
  NoExec = 16
}
 

Static Public Member Functions

static int questionYesNo (TQWidget *parent, const TQString &text, const TQString &caption=TQString::null, const KGuiItem &buttonYes=KStdGuiItem::yes(), const KGuiItem &buttonNo=KStdGuiItem::no(), const TQString &dontAskAgainName=TQString::null, int options=Notify)
 
static int questionYesNoWId (WId parent_id, const TQString &text, const TQString &caption=TQString::null, const KGuiItem &buttonYes=KStdGuiItem::yes(), const KGuiItem &buttonNo=KStdGuiItem::no(), const TQString &dontAskAgainName=TQString::null, int options=Notify)
 
static int questionYesNoCancel (TQWidget *parent, const TQString &text, const TQString &caption=TQString::null, const KGuiItem &buttonYes=KStdGuiItem::yes(), const KGuiItem &buttonNo=KStdGuiItem::no(), const TQString &dontAskAgainName=TQString::null, int options=Notify)
 
static int questionYesNoCancelWId (WId parent_id, const TQString &text, const TQString &caption=TQString::null, const KGuiItem &buttonYes=KStdGuiItem::yes(), const KGuiItem &buttonNo=KStdGuiItem::no(), const TQString &dontAskAgainName=TQString::null, int options=Notify)
 
static int questionYesNoList (TQWidget *parent, const TQString &text, const TQStringList &strlist, const TQString &caption=TQString::null, const KGuiItem &buttonYes=KStdGuiItem::yes(), const KGuiItem &buttonNo=KStdGuiItem::no(), const TQString &dontAskAgainName=TQString::null, int options=Notify)
 
static int questionYesNoListWId (WId parent_id, const TQString &text, const TQStringList &strlist, const TQString &caption=TQString::null, const KGuiItem &buttonYes=KStdGuiItem::yes(), const KGuiItem &buttonNo=KStdGuiItem::no(), const TQString &dontAskAgainName=TQString::null, int options=Notify)
 
static int warningYesNo (TQWidget *parent, const TQString &text, const TQString &caption=TQString::null, const KGuiItem &buttonYes=KStdGuiItem::yes(), const KGuiItem &buttonNo=KStdGuiItem::no(), const TQString &dontAskAgainName=TQString::null, int options=Notify|Dangerous)
 
static int warningYesNoWId (WId parent_id, const TQString &text, const TQString &caption=TQString::null, const KGuiItem &buttonYes=KStdGuiItem::yes(), const KGuiItem &buttonNo=KStdGuiItem::no(), const TQString &dontAskAgainName=TQString::null, int options=Notify|Dangerous)
 
static int warningYesNoList (TQWidget *parent, const TQString &text, const TQStringList &strlist, const TQString &caption=TQString::null, const KGuiItem &buttonYes=KStdGuiItem::yes(), const KGuiItem &buttonNo=KStdGuiItem::no(), const TQString &dontAskAgainName=TQString::null, int options=Notify|Dangerous)
 
static int warningYesNoListWId (WId parent_id, const TQString &text, const TQStringList &strlist, const TQString &caption=TQString::null, const KGuiItem &buttonYes=KStdGuiItem::yes(), const KGuiItem &buttonNo=KStdGuiItem::no(), const TQString &dontAskAgainName=TQString::null, int options=Notify|Dangerous)
 
static int warningContinueCancel (TQWidget *parent, const TQString &text, const TQString &caption=TQString::null, const KGuiItem &buttonContinue=KStdGuiItem::cont(), const TQString &dontAskAgainName=TQString::null, int options=Notify)
 
static int warningContinueCancelWId (WId parent_id, const TQString &text, const TQString &caption=TQString::null, const KGuiItem &buttonContinue=KStdGuiItem::cont(), const TQString &dontAskAgainName=TQString::null, int options=Notify)
 
static int warningContinueCancelList (TQWidget *parent, const TQString &text, const TQStringList &strlist, const TQString &caption=TQString::null, const KGuiItem &buttonContinue=KStdGuiItem::cont(), const TQString &dontAskAgainName=TQString::null, int options=Notify)
 
static int warningContinueCancelListWId (WId parent_id, const TQString &text, const TQStringList &strlist, const TQString &caption=TQString::null, const KGuiItem &buttonContinue=KStdGuiItem::cont(), const TQString &dontAskAgainName=TQString::null, int options=Notify)
 
static int warningYesNoCancel (TQWidget *parent, const TQString &text, const TQString &caption=TQString::null, const KGuiItem &buttonYes=KStdGuiItem::yes(), const KGuiItem &buttonNo=KStdGuiItem::no(), const TQString &dontAskAgainName=TQString::null, int options=Notify)
 
static int warningYesNoCancelWId (WId parent_id, const TQString &text, const TQString &caption=TQString::null, const KGuiItem &buttonYes=KStdGuiItem::yes(), const KGuiItem &buttonNo=KStdGuiItem::no(), const TQString &dontAskAgainName=TQString::null, int options=Notify)
 
static int warningYesNoCancelList (TQWidget *parent, const TQString &text, const TQStringList &strlist, const TQString &caption=TQString::null, const KGuiItem &buttonYes=KStdGuiItem::yes(), const KGuiItem &buttonNo=KStdGuiItem::no(), const TQString &dontAskAgainName=TQString::null, int options=Notify)
 
static int warningYesNoCancelListWId (WId parent_id, const TQString &text, const TQStringList &strlist, const TQString &caption=TQString::null, const KGuiItem &buttonYes=KStdGuiItem::yes(), const KGuiItem &buttonNo=KStdGuiItem::no(), const TQString &dontAskAgainName=TQString::null, int options=Notify)
 
static void error (TQWidget *parent, const TQString &text, const TQString &caption=TQString::null, int options=Notify)
 
static void errorWId (WId parent_id, const TQString &text, const TQString &caption=TQString::null, int options=Notify)
 
static void errorList (TQWidget *parent, const TQString &text, const TQStringList &strlist, const TQString &caption=TQString::null, int options=Notify)
 
static void errorListWId (WId parent_id, const TQString &text, const TQStringList &strlist, const TQString &caption=TQString::null, int options=Notify)
 
static void detailedError (TQWidget *parent, const TQString &text, const TQString &details, const TQString &caption=TQString::null, int options=Notify)
 
static void detailedErrorWId (WId parent_id, const TQString &text, const TQString &details, const TQString &caption=TQString::null, int options=Notify)
 
static void queuedDetailedError (TQWidget *parent, const TQString &text, const TQString &details, const TQString &caption=TQString::null)
 
static void queuedDetailedErrorWId (WId parent_id, const TQString &text, const TQString &details, const TQString &caption=TQString::null)
 
static void sorry (TQWidget *parent, const TQString &text, const TQString &caption=TQString::null, int options=Notify)
 
static void sorryWId (WId parent_id, const TQString &text, const TQString &caption=TQString::null, int options=Notify)
 
static void detailedSorry (TQWidget *parent, const TQString &text, const TQString &details, const TQString &caption=TQString::null, int options=Notify)
 
static void detailedSorryWId (WId parent_id, const TQString &text, const TQString &details, const TQString &caption=TQString::null, int options=Notify)
 
static void information (TQWidget *parent, const TQString &text, const TQString &caption=TQString::null, const TQString &dontShowAgainName=TQString::null, int options=Notify)
 
static void informationWId (WId parent_id, const TQString &text, const TQString &caption=TQString::null, const TQString &dontShowAgainName=TQString::null, int options=Notify)
 
static void informationList (TQWidget *parent, const TQString &text, const TQStringList &strlist, const TQString &caption=TQString::null, const TQString &dontShowAgainName=TQString::null, int options=Notify)
 
static void informationListWId (WId parent_id, const TQString &text, const TQStringList &strlist, const TQString &caption=TQString::null, const TQString &dontShowAgainName=TQString::null, int options=Notify)
 
static void enableAllMessages ()
 
static void enableMessage (const TQString &dontShowAgainName)
 
static void about (TQWidget *parent, const TQString &text, const TQString &caption=TQString::null, int options=Notify)
 
static int messageBox (TQWidget *parent, DialogType type, const TQString &text, const TQString &caption, const KGuiItem &buttonYes, const KGuiItem &buttonNo, const TQString &dontShowAskAgainName, int options=Notify)
 
static int messageBox (TQWidget *parent, DialogType type, const TQString &text, const TQString &caption=TQString::null, const KGuiItem &buttonYes=KStdGuiItem::yes(), const KGuiItem &buttonNo=KStdGuiItem::no(), int options=Notify)
 
static int messageBoxWId (WId parent_id, DialogType type, const TQString &text, const TQString &caption=TQString::null, const KGuiItem &buttonYes=KStdGuiItem::yes(), const KGuiItem &buttonNo=KStdGuiItem::no(), const TQString &dontShowAskAgainName=TQString::null, int options=Notify)
 
static void queuedMessageBox (TQWidget *parent, DialogType type, const TQString &text, const TQString &caption, int options)
 
static void queuedMessageBoxWId (WId parent_id, DialogType type, const TQString &text, const TQString &caption, int options)
 
static void queuedMessageBox (TQWidget *parent, DialogType type, const TQString &text, const TQString &caption=TQString::null)
 
static void queuedMessageBoxWId (WId parent_id, DialogType type, const TQString &text, const TQString &caption=TQString::null)
 
static bool shouldBeShownYesNo (const TQString &dontShowAgainName, ButtonCode &result)
 
static bool shouldBeShownContinue (const TQString &dontShowAgainName)
 
static void saveDontShowAgainYesNo (const TQString &dontShowAgainName, ButtonCode result)
 
static void saveDontShowAgainContinue (const TQString &dontShowAgainName)
 
static void setDontShowAskAgainConfig (TDEConfig *cfg)
 
static int createKMessageBox (KDialogBase *dialog, TQMessageBox::Icon icon, const TQString &text, const TQStringList &strlist, const TQString &ask, bool *checkboxReturn, int options, const TQString &details=TQString::null)
 
static int createKMessageBox (KDialogBase *dialog, TQPixmap icon, const TQString &text, const TQStringList &strlist, const TQString &ask, bool *checkboxReturn, int options, const TQString &details=TQString::null, TQMessageBox::Icon notifyType=TQMessageBox::Information)
 

Detailed Description

Easy message dialog box.

Provides convenience functions for some i18n'ed standard dialogs.

The text in message boxes is wrapped automatically. The text may either be plaintext or richtext. If the text is plaintext, a newline-character may be used to indicate the end of a paragraph.

Author
Waldo Bastian (basti.nosp@m.an@k.nosp@m.de.or.nosp@m.g)

Definition at line 44 of file tdemessagebox.h.

Member Enumeration Documentation

◆ ButtonCode

enum KMessageBox::ButtonCode

Button types.

Definition at line 50 of file tdemessagebox.h.

◆ DialogType

enum KMessageBox::DialogType

Definition at line 59 of file tdemessagebox.h.

◆ OptionsType

enum KMessageBox::OptionsType
Enumerator
Notify 

Emit a KNotifyClient event.

AllowLink 

The message may contain links.

Dangerous 

The action to be confirmed by the dialog is a potentially destructive one.

PlainCaption 

Do not use TDEApplication::makeStdCaption()

Since
3.4
NoExec 

Do not call exec() in createKMessageBox()

Since
3.4

Definition at line 72 of file tdemessagebox.h.

Member Function Documentation

◆ about()

void KMessageBox::about ( TQWidget *  parent,
const TQString &  text,
const TQString &  caption = TQString::null,
int  options = Notify 
)
static

Display an "About" dialog.

Parameters
parentIf parent is 0, then the message box becomes an application-global modal dialog box. If parent is a widget, the message box becomes modal relative to parent.
textMessage string.
captionMessage box title. The application name is added to the title. The default title is i18n("About \<appname\>").
optionssee OptionsType

Your program wants to show some general information about the application like the authors's names and email addresses.

The default button is "&OK".

NOTE: The ok button will always have the i18n'ed text '&OK'.

Definition at line 970 of file tdemessagebox.cpp.

◆ createKMessageBox() [1/2]

int KMessageBox::createKMessageBox ( KDialogBase *  dialog,
TQMessageBox::Icon  icon,
const TQString &  text,
const TQStringList &  strlist,
const TQString &  ask,
bool *  checkboxReturn,
int  options,
const TQString &  details = TQString::null 
)
static

Create content and layout of a standard dialog.

Parameters
dialogThe parent dialog base
iconWhich predefined icon the message box shall show.
textMessage string.
strlistList of strings to be written in the listbox. If the list is empty, it doesn't show any listbox
askThe text of the checkbox. If empty none will be shown.
checkboxReturnThe result of the checkbox. If it's initially true then the checkbox will be checked by default.
optionssee OptionsType
detailsDetailed message string.
Since
3.3
Returns
A KDialogBase button code, not a KMessageBox button code, based on the buttonmask given to the constructor of the dialog (ie. will return KDialogBase::Yes [256] instead of KMessageBox::Yes [3]). Will return KMessageBox::Cancel if the message box is queued for display instead of exec()ed immediately or if the option NoExec is set.
Note
The dialog that is passed in is deleted by this function. Do not delete it yourself.

Definition at line 140 of file tdemessagebox.cpp.

◆ createKMessageBox() [2/2]

int KMessageBox::createKMessageBox ( KDialogBase *  dialog,
TQPixmap  icon,
const TQString &  text,
const TQStringList &  strlist,
const TQString &  ask,
bool *  checkboxReturn,
int  options,
const TQString &  details = TQString::null,
TQMessageBox::Icon  notifyType = TQMessageBox::Information 
)
static

Create content and layout of a standard dialog.

Parameters
dialogThe parent dialog base
iconA TQPixmap containing the icon to be displayed in the dialog next to the text.
textMessage string.
strlistList of strings to be written in the listbox. If the list is empty, it doesn't show any listbox
askThe text of the checkbox. If empty none will be shown.
checkboxReturnThe result of the checkbox. If it's initially true then the checkbox will be checked by default.
optionssee OptionsType
detailsDetailed message string.
notifyTypeThe type of notification to send when this message is presentend.
Since
3.3
Returns
A KDialogBase button code, not a KMessageBox button code, based on the buttonmask given to the constructor of the dialog (ie. will return KDialogBase::Yes [256] instead of KMessageBox::Yes [3]). Will return KMessageBox::Cancel if the message box is queued for display instead of exec()ed immediately or if the option NoExec is set.
Note
The dialog that is passed in is deleted by this function. Do not delete it yourself.

Definition at line 149 of file tdemessagebox.cpp.

◆ detailedError()

void KMessageBox::detailedError ( TQWidget *  parent,
const TQString &  text,
const TQString &  details,
const TQString &  caption = TQString::null,
int  options = Notify 
)
static

Displays an "Error" dialog with a "Details >>" button.

Parameters
parentIf parent is 0, then the message box becomes an application-global modal dialog box. If parent is a widget, the message box becomes modal relative to parent.
textMessage string.
detailsDetailed message string.
captionMessage box title. The application name is added to the title. The default title is i18n("Error").
optionssee OptionsType

Your program messed up and now it's time to inform the user. To be used for important things like "Sorry, I deleted your hard disk."

The details message can conatin additional information about the problem and can be shown on request to advanced/interested users.

If your program detects the action specified by the user is somehow not allowed, this should never be reported with error(). Use sorry() instead to explain to the user that this action is not allowed.

The default button is "&OK". Pressing "Esc" selects the OK-button.

NOTE: The OK button will always have the i18n'ed text '&OK'.

Definition at line 776 of file tdemessagebox.cpp.

◆ detailedErrorWId()

void KMessageBox::detailedErrorWId ( WId  parent_id,
const TQString &  text,
const TQString &  details,
const TQString &  caption = TQString::null,
int  options = Notify 
)
static

This function accepts the window id of the parent window, instead of TQWidget*.

It should be used only when necessary.

Since
3.2

Definition at line 784 of file tdemessagebox.cpp.

◆ detailedSorry()

void KMessageBox::detailedSorry ( TQWidget *  parent,
const TQString &  text,
const TQString &  details,
const TQString &  caption = TQString::null,
int  options = Notify 
)
static

Displays a "Sorry" dialog with a "Details >>" button.

Parameters
parentIf parent is 0, then the message box becomes an application-global modal dialog box. If parent is a widget, the message box becomes modal relative to parent.
textMessage string.
detailsDetailed message string.
captionMessage box title. The application name is added to the title. The default title is i18n("Sorry").
optionssee OptionsType

Either your program messed up and asks for understanding or your user did something stupid.

To be used for small problems like "Sorry, I can't find the file you specified."

And then details can contain something like "foobar.txt was not found in any of the following directories: /usr/bin,/usr/local/bin,/usr/sbin"

The default button is "&OK". Pressing "Esc" selects the OK-button.

NOTE: The ok button will always have the i18n'ed text '&OK'.

Definition at line 853 of file tdemessagebox.cpp.

◆ detailedSorryWId()

void KMessageBox::detailedSorryWId ( WId  parent_id,
const TQString &  text,
const TQString &  details,
const TQString &  caption = TQString::null,
int  options = Notify 
)
static

This function accepts the window id of the parent window, instead of TQWidget*.

It should be used only when necessary.

Since
3.2

Definition at line 861 of file tdemessagebox.cpp.

◆ enableAllMessages()

void KMessageBox::enableAllMessages ( )
static

Enable all messages which have been turned off with the dontShowAgainName feature.

Definition at line 936 of file tdemessagebox.cpp.

◆ enableMessage()

void KMessageBox::enableMessage ( const TQString &  dontShowAgainName)
static

Re-enable a specific dontShowAgainName messages that had previously been turned off.

See also
saveDontShowAgainYesNo()
saveDontShowAgainContinue()
Since
3.2

Definition at line 956 of file tdemessagebox.cpp.

◆ error()

void KMessageBox::error ( TQWidget *  parent,
const TQString &  text,
const TQString &  caption = TQString::null,
int  options = Notify 
)
static

Display an "Error" dialog.

Parameters
parentIf parent is 0, then the message box becomes an application-global modal dialog box. If parent is a widget, the message box becomes modal relative to parent.
textMessage string.
captionMessage box title. The application name is added to the title. The default title is i18n("Error").
optionssee OptionsType

Your program messed up and now it's time to inform the user. To be used for important things like "Sorry, I deleted your hard disk."

If your program detects the action specified by the user is somehow not allowed, this should never be reported with error(). Use sorry() instead to explain to the user that this action is not allowed.

The default button is "&OK". Pressing "Esc" selects the OK-button.

NOTE: The OK button will always have the i18n'ed text '&OK'.

Definition at line 734 of file tdemessagebox.cpp.

◆ errorList()

void KMessageBox::errorList ( TQWidget *  parent,
const TQString &  text,
const TQStringList &  strlist,
const TQString &  caption = TQString::null,
int  options = Notify 
)
static

Display an "Error" dialog with a listbox.

Parameters
parentIf parent is 0, then the message box becomes an application-global modal dialog box. If parent is a widget, the message box becomes modal relative to parent.
textMessage string.
strlistList of strings to be written in the listbox. If the list is empty, it doesn't show any listbox, working as error().
captionMessage box title. The application name is added to the title. The default title is i18n("Error").
optionssee OptionsType

Your program messed up and now it's time to inform the user. To be used for important things like "Sorry, I deleted your hard disk."

If your program detects the action specified by the user is somehow not allowed, this should never be reported with error(). Use sorry() instead to explain to the user that this action is not allowed.

The default button is "&OK". Pressing "Esc" selects the OK-button.

NOTE: The OK button will always have the i18n'ed text '&OK'.

Since
3.4

Definition at line 748 of file tdemessagebox.cpp.

◆ errorListWId()

void KMessageBox::errorListWId ( WId  parent_id,
const TQString &  text,
const TQStringList &  strlist,
const TQString &  caption = TQString::null,
int  options = Notify 
)
static

This function accepts the window id of the parent window, instead of TQWidget*.

It should be used only when necessary.

Since
3.4

Definition at line 755 of file tdemessagebox.cpp.

◆ errorWId()

void KMessageBox::errorWId ( WId  parent_id,
const TQString &  text,
const TQString &  caption = TQString::null,
int  options = Notify 
)
static

This function accepts the window id of the parent window, instead of TQWidget*.

It should be used only when necessary.

Since
3.2

Definition at line 741 of file tdemessagebox.cpp.

◆ information()

void KMessageBox::information ( TQWidget *  parent,
const TQString &  text,
const TQString &  caption = TQString::null,
const TQString &  dontShowAgainName = TQString::null,
int  options = Notify 
)
static

Display an "Information" dialog.

Parameters
parentIf parent is 0, then the message box becomes an application-global modal dialog box. If parent is a widget, the message box becomes modal relative to parent.
textMessage string.
captionMessage box title. The application name is added to the title. The default title is i18n("Information").
dontShowAgainNameIf provided, a checkbox is added with which further notifications can be turned off. The string is used to lookup and store the setting in the applications config file. The setting is stored in the "Notification Messages" group.
optionssee OptionsType

Your program wants to tell the user something. To be used for things like: "Your bookmarks have been rearranged."

The default button is "&OK". Pressing "Esc" selects the OK-button.

NOTE: The OK button will always have the i18n'ed text '&OK'.

Definition at line 883 of file tdemessagebox.cpp.

◆ informationList()

void KMessageBox::informationList ( TQWidget *  parent,
const TQString &  text,
const TQStringList &  strlist,
const TQString &  caption = TQString::null,
const TQString &  dontShowAgainName = TQString::null,
int  options = Notify 
)
static

Display an "Information" dialog with a listbox.

Parameters
parentIf parent is 0, then the message box becomes an application-global modal dialog box. If parent is a widget, the message box becomes modal relative to parent.
textMessage string.
strlistList of strings to be written in the listbox. If the list is empty, it doesn't show any listbox, working as information.
captionMessage box title. The application name is added to the title. The default title is i18n("Information").
dontShowAgainNameIf provided, a checkbox is added with which further notifications can be turned off. The string is used to lookup and store the setting in the applications config file. The setting is stored in the "Notification Messages" group.
optionssee OptionsType

Your program wants to tell the user something. To be used for things like: "The following bookmarks have been rearranged:"

The default button is "&OK". Pressing "Esc" selects the OK-button.

NOTE: The OK button will always have the i18n'ed text '&OK'.

Since
3.1

Definition at line 897 of file tdemessagebox.cpp.

◆ informationListWId()

void KMessageBox::informationListWId ( WId  parent_id,
const TQString &  text,
const TQStringList &  strlist,
const TQString &  caption = TQString::null,
const TQString &  dontShowAgainName = TQString::null,
int  options = Notify 
)
static

This function accepts the window id of the parent window, instead of TQWidget*.

It should be used only when necessary.

Since
3.2

Definition at line 905 of file tdemessagebox.cpp.

◆ informationWId()

void KMessageBox::informationWId ( WId  parent_id,
const TQString &  text,
const TQString &  caption = TQString::null,
const TQString &  dontShowAgainName = TQString::null,
int  options = Notify 
)
static

This function accepts the window id of the parent window, instead of TQWidget*.

It should be used only when necessary.

Since
3.2

Definition at line 890 of file tdemessagebox.cpp.

◆ messageBox() [1/2]

int KMessageBox::messageBox ( TQWidget *  parent,
DialogType  type,
const TQString &  text,
const TQString &  caption,
const KGuiItem &  buttonYes,
const KGuiItem &  buttonNo,
const TQString &  dontShowAskAgainName,
int  options = Notify 
)
static

Alternate method to show a messagebox:

Parameters
parentIf parent is 0, then the message box becomes an application-global modal dialog box. If parent is a widget, the message box becomes modal relative to parent.
typetype of message box: QuestionYesNo, WarningYesNo, WarningContinueCancel...
textMessage string.
captionMessage box title.
buttonYesThe text for the first button. The default is i18n("&Yes").
buttonNoThe text for the second button. The default is i18n("&No").
dontShowAskAgainNameIf provided, a checkbox is added with which further questions/informations can be turned off. If turned off all questions will be automatically answered with the last answer (either Yes or No), if the message box needs an answer. The string is used to lookup and store the setting in the applications config file.
optionssee OptionsType Note: for ContinueCancel, buttonYes is the continue button and buttonNo is unused. and for Information, none is used.
Returns
a button code, as defined in KMessageBox.

Definition at line 994 of file tdemessagebox.cpp.

◆ messageBox() [2/2]

int KMessageBox::messageBox ( TQWidget *  parent,
DialogType  type,
const TQString &  text,
const TQString &  caption = TQString::null,
const KGuiItem &  buttonYes = KStdGuiItem::yes(),
const KGuiItem &  buttonNo = KStdGuiItem::no(),
int  options = Notify 
)
static

Alternate method to show a messagebox:

Parameters
parentIf parent is 0, then the message box becomes an application-global modal dialog box. If parent is a widget, the message box becomes modal relative to parent.
typetype of message box: QuestionYesNo, WarningYesNo, WarningContinueCancel...
textMessage string.
captionMessage box title.
buttonYesThe text for the first button. The default is i18n("&Yes").
buttonNoThe text for the second button. The default is i18n("&No").
optionssee OptionsType Note: for ContinueCancel, buttonYes is the continue button and buttonNo is unused. and for Information, none is used.
Returns
a button code, as defined in KMessageBox.

Definition at line 1003 of file tdemessagebox.cpp.

◆ messageBoxWId()

int KMessageBox::messageBoxWId ( WId  parent_id,
DialogType  type,
const TQString &  text,
const TQString &  caption = TQString::null,
const KGuiItem &  buttonYes = KStdGuiItem::yes(),
const KGuiItem &  buttonNo = KStdGuiItem::no(),
const TQString &  dontShowAskAgainName = TQString::null,
int  options = Notify 
)
static

This function accepts the window id of the parent window, instead of TQWidget*.

It should be used only when necessary.

Since
3.2

Definition at line 1011 of file tdemessagebox.cpp.

◆ questionYesNo()

int KMessageBox::questionYesNo ( TQWidget *  parent,
const TQString &  text,
const TQString &  caption = TQString::null,
const KGuiItem &  buttonYes = KStdGuiItem::yes(),
const KGuiItem &  buttonNo = KStdGuiItem::no(),
const TQString &  dontAskAgainName = TQString::null,
int  options = Notify 
)
static

Display a simple "question" dialog.

Parameters
parentIf parent is 0, then the message box becomes an application-global modal dialog box. If parent is a widget, the message box becomes modal relative to parent.
textMessage string.
captionMessage box title. The application name is added to the title. The default title is i18n("Question").
buttonYesThe text for the first button. The default is i18n("&Yes").
buttonNoThe text for the second button. The default is i18n("&No").
dontAskAgainNameIf provided, a checkbox is added with which further confirmation can be turned off. The string is used to lookup and store the setting in the applications config file. The setting is stored in the "Notification Messages" group. If dontAskAgainName starts with a ':' then the setting is stored in the global config file.
optionssee OptionsType
Returns
'Yes' is returned if the Yes-button is pressed. 'No' is returned if the No-button is pressed.

To be used for questions like "Do you have a printer?"

The default button is "Yes". Pressing "Esc" selects "No".

Definition at line 317 of file tdemessagebox.cpp.

◆ questionYesNoCancel()

int KMessageBox::questionYesNoCancel ( TQWidget *  parent,
const TQString &  text,
const TQString &  caption = TQString::null,
const KGuiItem &  buttonYes = KStdGuiItem::yes(),
const KGuiItem &  buttonNo = KStdGuiItem::no(),
const TQString &  dontAskAgainName = TQString::null,
int  options = Notify 
)
static

Display a simple "question" dialog.

Parameters
parentIf parent is 0, then the message box becomes an application-global modal dialog box. If parent is a widget, the message box becomes modal relative to parent.
textMessage string.
captionMessage box title. The application name is added to the title. The default title is i18n("Question").
buttonYesThe text for the first button. The default is i18n("&Yes").
buttonNoThe text for the second button. The default is i18n("&No").
dontAskAgainNameIf provided, a checkbox is added with which further confirmation can be turned off. The string is used to lookup and store the setting in the applications config file. The setting is stored in the "Notification Messages" group. If dontAskAgainName starts with a ':' then the setting is stored in the global config file.
optionssee OptionsType
Returns
'Yes' is returned if the Yes-button is pressed. 'No' is returned if the No-button is pressed.

To be used for questions like "Do you want to discard the message or save it for later?",

The default button is "Yes". Pressing "Esc" selects "Cancel".

NOTE: The cancel button will always have the i18n'ed text '&Cancel'.

Definition at line 452 of file tdemessagebox.cpp.

◆ questionYesNoCancelWId()

int KMessageBox::questionYesNoCancelWId ( WId  parent_id,
const TQString &  text,
const TQString &  caption = TQString::null,
const KGuiItem &  buttonYes = KStdGuiItem::yes(),
const KGuiItem &  buttonNo = KStdGuiItem::no(),
const TQString &  dontAskAgainName = TQString::null,
int  options = Notify 
)
static

This function accepts the window id of the parent window, instead of TQWidget*.

It should be used only when necessary.

Since
3.2

Definition at line 465 of file tdemessagebox.cpp.

◆ questionYesNoList()

int KMessageBox::questionYesNoList ( TQWidget *  parent,
const TQString &  text,
const TQStringList &  strlist,
const TQString &  caption = TQString::null,
const KGuiItem &  buttonYes = KStdGuiItem::yes(),
const KGuiItem &  buttonNo = KStdGuiItem::no(),
const TQString &  dontAskAgainName = TQString::null,
int  options = Notify 
)
static

Display a "question" dialog with a listbox to show information to the user.

Parameters
parentIf parent is 0, then the message box becomes an application-global modal dialog box. If parent is a widget, the message box becomes modal relative to parent.
textMessage string.
strlistList of strings to be written in the listbox. If the list is empty, it doesn't show any listbox, working as questionYesNo.
captionMessage box title. The application name is added to the title. The default title is i18n("Question").
buttonYesThe text for the first button. The default is i18n("&Yes").
buttonNoThe text for the second button. The default is i18n("&No").
dontAskAgainNameIf provided, a checkbox is added with which further confirmation can be turned off. The string is used to lookup and store the setting in the applications config file. The setting is stored in the "Notification Messages" group. If dontAskAgainName starts with a ':' then the setting is stored in the global config file.
optionssee OptionsType
Returns
'Yes' is returned if the Yes-button is pressed. 'No' is returned if the No-button is pressed.

To be used for questions like "Do you really want to delete these files?" And show the user exactly which files are going to be deleted in case he presses "Yes"

The default button is "Yes". Pressing "Esc" selects "No".

Definition at line 401 of file tdemessagebox.cpp.

◆ questionYesNoListWId()

int KMessageBox::questionYesNoListWId ( WId  parent_id,
const TQString &  text,
const TQStringList &  strlist,
const TQString &  caption = TQString::null,
const KGuiItem &  buttonYes = KStdGuiItem::yes(),
const KGuiItem &  buttonNo = KStdGuiItem::no(),
const TQString &  dontAskAgainName = TQString::null,
int  options = Notify 
)
static

This function accepts the window id of the parent window, instead of TQWidget*.

It should be used only when necessary.

Since
3.2

Definition at line 414 of file tdemessagebox.cpp.

◆ questionYesNoWId()

int KMessageBox::questionYesNoWId ( WId  parent_id,
const TQString &  text,
const TQString &  caption = TQString::null,
const KGuiItem &  buttonYes = KStdGuiItem::yes(),
const KGuiItem &  buttonNo = KStdGuiItem::no(),
const TQString &  dontAskAgainName = TQString::null,
int  options = Notify 
)
static

This function accepts the window id of the parent window, instead of TQWidget*.

It should be used only when necessary.

Since
3.2

Definition at line 329 of file tdemessagebox.cpp.

◆ queuedDetailedError()

void KMessageBox::queuedDetailedError ( TQWidget *  parent,
const TQString &  text,
const TQString &  details,
const TQString &  caption = TQString::null 
)
static

Like detailedError.

This function will return immediately, the messagebox will be shown once the application enters an event loop and no other messagebox is being shown.

Note that if the parent gets deleted, the messagebox will not be shown.

Definition at line 806 of file tdemessagebox.cpp.

◆ queuedDetailedErrorWId()

void KMessageBox::queuedDetailedErrorWId ( WId  parent_id,
const TQString &  text,
const TQString &  details,
const TQString &  caption = TQString::null 
)
static

This function accepts the window id of the parent window, instead of TQWidget*.

It should be used only when necessary.

Since
3.2

Definition at line 814 of file tdemessagebox.cpp.

◆ queuedMessageBox() [1/2]

void KMessageBox::queuedMessageBox ( TQWidget *  parent,
DialogType  type,
const TQString &  text,
const TQString &  caption,
int  options 
)
static

Like messageBox.

Only for message boxes of type Information, Sorry or Error.

This function will return immediately, the messagebox will be shown once the application enters an event loop and no other messagebox is being shown.

Note that if the parent gets deleted, the messagebox will not be shown.

Definition at line 1048 of file tdemessagebox.cpp.

◆ queuedMessageBox() [2/2]

void KMessageBox::queuedMessageBox ( TQWidget *  parent,
DialogType  type,
const TQString &  text,
const TQString &  caption = TQString::null 
)
static

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.This is an overloaded member function, provided for convenience.

It behaves essentially like the above function.

Definition at line 1061 of file tdemessagebox.cpp.

◆ queuedMessageBoxWId() [1/2]

void KMessageBox::queuedMessageBoxWId ( WId  parent_id,
DialogType  type,
const TQString &  text,
const TQString &  caption,
int  options 
)
static

This function accepts the window id of the parent window, instead of TQWidget*.

It should be used only when necessary.

Since
3.2

Definition at line 1053 of file tdemessagebox.cpp.

◆ queuedMessageBoxWId() [2/2]

void KMessageBox::queuedMessageBoxWId ( WId  parent_id,
DialogType  type,
const TQString &  text,
const TQString &  caption = TQString::null 
)
static

This function accepts the window id of the parent window, instead of TQWidget*.

It should be used only when necessary.

Since
3.2

Definition at line 1066 of file tdemessagebox.cpp.

◆ saveDontShowAgainContinue()

void KMessageBox::saveDontShowAgainContinue ( const TQString &  dontShowAgainName)
static

Save the fact that the continue/cancel message box should not be shown again.

Parameters
dontShowAgainNamethe name that identify the message box. If empty, this method does nothing.
Since
3.2

Definition at line 383 of file tdemessagebox.cpp.

◆ saveDontShowAgainYesNo()

void KMessageBox::saveDontShowAgainYesNo ( const TQString &  dontShowAgainName,
ButtonCode  result 
)
static

Save the fact that the yes/no message box should not be shown again.

Parameters
dontShowAgainNamethe name that identify the message box. If empty, this method does nothing.
resultthe value (Yes or No) that should be used as the result for the message box.
Since
3.2

Definition at line 371 of file tdemessagebox.cpp.

◆ setDontShowAskAgainConfig()

void KMessageBox::setDontShowAskAgainConfig ( TDEConfig *  cfg)
static

Use cfg for all settings related to the dontShowAgainName feature.

If cfg is 0 (default) TDEGlobal::config() will be used.

Since
3.2

Definition at line 395 of file tdemessagebox.cpp.

◆ shouldBeShownContinue()

bool KMessageBox::shouldBeShownContinue ( const TQString &  dontShowAgainName)
static
Returns
true if the corresponding continue/cancel message box should be shown.
Parameters
dontShowAgainNamethe name that identify the message box. If empty, true is always returned.
Since
3.2

Definition at line 361 of file tdemessagebox.cpp.

◆ shouldBeShownYesNo()

bool KMessageBox::shouldBeShownYesNo ( const TQString &  dontShowAgainName,
ButtonCode &  result 
)
static
Returns
true if the corresponding yes/no message box should be shown.
Parameters
dontShowAgainNamethe name that identify the message box. If empty, true is always returned.
resultis set to the result (Yes or No) that was chosen the last time the message box was shown. Only meaningful, if the message box should not be shown.
Since
3.2

Definition at line 341 of file tdemessagebox.cpp.

◆ sorry()

void KMessageBox::sorry ( TQWidget *  parent,
const TQString &  text,
const TQString &  caption = TQString::null,
int  options = Notify 
)
static

Display an "Sorry" dialog.

Parameters
parentIf parent is 0, then the message box becomes an application-global modal dialog box. If parent is a widget, the message box becomes modal relative to parent.
textMessage string.
captionMessage box title. The application name is added to the title. The default title is i18n("Sorry").
optionssee OptionsType

Either your program messed up and asks for understanding or your user did something stupid.

To be used for small problems like "Sorry, I can't find the file you specified."

The default button is "&OK". Pressing "Esc" selects the OK-button.

NOTE: The ok button will always have the i18n'ed text '&OK'.

Definition at line 825 of file tdemessagebox.cpp.

◆ sorryWId()

void KMessageBox::sorryWId ( WId  parent_id,
const TQString &  text,
const TQString &  caption = TQString::null,
int  options = Notify 
)
static

This function accepts the window id of the parent window, instead of TQWidget*.

It should be used only when necessary.

Since
3.2

Definition at line 832 of file tdemessagebox.cpp.

◆ warningContinueCancel()

int KMessageBox::warningContinueCancel ( TQWidget *  parent,
const TQString &  text,
const TQString &  caption = TQString::null,
const KGuiItem &  buttonContinue = KStdGuiItem::cont(),
const TQString &  dontAskAgainName = TQString::null,
int  options = Notify 
)
static

Display a "warning" dialog.

Parameters
parentIf parent is 0, then the message box becomes an application-global modal dialog box. If parent is a widget, the message box becomes modal relative to parent.
textMessage string.
captionMessage box title. The application name is added to the title. The default title is i18n("Warning").
buttonContinueThe text for the first button.
dontAskAgainNameIf provided, a checkbox is added with which further confirmation can be turned off. The string is used to lookup and store the setting in the applications config file. The setting is stored in the "Notification Messages" group. If dontAskAgainName starts with a ':' then the setting is stored in the global config file.
optionssee OptionsType

The second button always has the text "Cancel".

Returns
Continue is returned if the Continue-button is pressed. Cancel is returned if the Cancel-button is pressed.

To be used for questions like "You are about to Print. Are you sure?" the continueButton should then be labeled "Print".

The default button is buttonContinue. Pressing "Esc" selects "Cancel".

Definition at line 585 of file tdemessagebox.cpp.

◆ warningContinueCancelList()

int KMessageBox::warningContinueCancelList ( TQWidget *  parent,
const TQString &  text,
const TQStringList &  strlist,
const TQString &  caption = TQString::null,
const KGuiItem &  buttonContinue = KStdGuiItem::cont(),
const TQString &  dontAskAgainName = TQString::null,
int  options = Notify 
)
static

Display a "warning" dialog with a listbox to show information to the user.

Parameters
parentIf parent is 0, then the message box becomes an application-global modal dialog box. If parent is a widget, the message box becomes modal relative to parent.
textMessage string.
strlistList of strings to be written in the listbox. If the list is empty, it doesn't show any listbox, working as warningContinueCancel.
captionMessage box title. The application name is added to the title. The default title is i18n("Warning").
buttonContinueThe text for the first button.
dontAskAgainNameIf provided, a checkbox is added with which further confirmation can be turned off. The string is used to lookup and store the setting in the applications config file. The setting is stored in the "Notification Messages" group. If dontAskAgainName starts with a ':' then the setting is stored in the global config file.
optionssee OptionsType

The second button always has the text "Cancel".

Returns
Continue is returned if the Continue-button is pressed. Cancel is returned if the Cancel-button is pressed.

To be used for questions like "You are about to Print. Are you sure?" the continueButton should then be labeled "Print".

The default button is buttonContinue. Pressing "Esc" selects "Cancel".

Definition at line 609 of file tdemessagebox.cpp.

◆ warningContinueCancelListWId()

int KMessageBox::warningContinueCancelListWId ( WId  parent_id,
const TQString &  text,
const TQStringList &  strlist,
const TQString &  caption = TQString::null,
const KGuiItem &  buttonContinue = KStdGuiItem::cont(),
const TQString &  dontAskAgainName = TQString::null,
int  options = Notify 
)
static

This function accepts the window id of the parent window, instead of TQWidget*.

It should be used only when necessary.

Since
3.2

Definition at line 621 of file tdemessagebox.cpp.

◆ warningContinueCancelWId()

int KMessageBox::warningContinueCancelWId ( WId  parent_id,
const TQString &  text,
const TQString &  caption = TQString::null,
const KGuiItem &  buttonContinue = KStdGuiItem::cont(),
const TQString &  dontAskAgainName = TQString::null,
int  options = Notify 
)
static

This function accepts the window id of the parent window, instead of TQWidget*.

It should be used only when necessary.

Since
3.2

Definition at line 597 of file tdemessagebox.cpp.

◆ warningYesNo()

int KMessageBox::warningYesNo ( TQWidget *  parent,
const TQString &  text,
const TQString &  caption = TQString::null,
const KGuiItem &  buttonYes = KStdGuiItem::yes(),
const KGuiItem &  buttonNo = KStdGuiItem::no(),
const TQString &  dontAskAgainName = TQString::null,
int  options = Notify | Dangerous 
)
static

Display a "warning" dialog.

Parameters
parentIf parent is 0, then the message box becomes an application-global modal dialog box. If parent is a widget, the message box becomes modal relative to parent.
textMessage string.
captionMessage box title. The application name is added to the title. The default title is i18n("Warning").
buttonYesThe text for the first button. The default is i18n("&Yes").
buttonNoThe text for the second button. The default is i18n("&No").
dontAskAgainNameIf provided, a checkbox is added with which further confirmation can be turned off. The string is used to lookup and store the setting in the applications config file. The setting is stored in the "Notification Messages" group. If dontAskAgainName starts with a ':' then the setting is stored in the global config file.
optionssee OptionsType
Returns
Yes is returned if the Yes-button is pressed. No is returned if the No-button is pressed.

To be used for questions "Shall I update your configuration?" The text should explain the implication of both options.

The default button is "No". Pressing "Esc" selects "No".

Definition at line 505 of file tdemessagebox.cpp.

◆ warningYesNoCancel()

int KMessageBox::warningYesNoCancel ( TQWidget *  parent,
const TQString &  text,
const TQString &  caption = TQString::null,
const KGuiItem &  buttonYes = KStdGuiItem::yes(),
const KGuiItem &  buttonNo = KStdGuiItem::no(),
const TQString &  dontAskAgainName = TQString::null,
int  options = Notify 
)
static

Display a Yes/No/Cancel "warning" dialog.

Parameters
parentIf parent is 0, then the message box becomes an application-global modal dialog box. If parent is a widget, the message box becomes modal relative to parent.
textMessage string.
captionMessage box title. The application name is added to the title. The default title is i18n("Warning").
buttonYesThe text for the first button. The default is i18n("&Yes").
buttonNoThe text for the second button. The default is i18n("&No").
dontAskAgainNameIf provided, a checkbox is added with which further questions can be turned off. If turned off all questions will be automatically answered with the last answer (either Yes or No). The string is used to lookup and store the setting in the applications config file. The setting is stored in the "Notification Messages" group. If dontAskAgainName starts with a ':' then the setting is stored in the global config file.
optionssee OptionsType
Returns
Yes is returned if the Yes-button is pressed. No is returned if the No-button is pressed. Cancel is retunred if the Cancel- button is pressed.

To be used for questions "Do you want to save your changes?" The text should explain the implication of choosing 'No'.

The default button is "Yes". Pressing "Esc" selects "Cancel"

NOTE: The cancel button will always have the i18n'ed text '&Cancel'.

Definition at line 658 of file tdemessagebox.cpp.

◆ warningYesNoCancelList()

int KMessageBox::warningYesNoCancelList ( TQWidget *  parent,
const TQString &  text,
const TQStringList &  strlist,
const TQString &  caption = TQString::null,
const KGuiItem &  buttonYes = KStdGuiItem::yes(),
const KGuiItem &  buttonNo = KStdGuiItem::no(),
const TQString &  dontAskAgainName = TQString::null,
int  options = Notify 
)
static

Display a Yes/No/Cancel "warning" dialog with a listbox to show information to the user.

Parameters
parentIf parent is 0, then the message box becomes an application-global modal dialog box. If parent is a widget, the message box becomes modal relative to parent.
textMessage string.
strlistList of strings to be written in the listbox. If the list is empty, it doesn't show any listbox, working as warningYesNoCancel.
captionMessage box title. The application name is added to the title. The default title is i18n("Warning").
buttonYesThe text for the first button. The default is i18n("&Yes").
buttonNoThe text for the second button. The default is i18n("&No").
dontAskAgainNameIf provided, a checkbox is added with which further questions can be turned off. If turned off all questions will be automatically answered with the last answer (either Yes or No). The string is used to lookup and store the setting in the applications config file. The setting is stored in the "Notification Messages" group. If dontAskAgainName starts with a ':' then the setting is stored in the global config file.
optionssee OptionsType
Returns
Yes is returned if the Yes-button is pressed. No is returned if the No-button is pressed. Cancel is retunred if the Cancel- button is pressed.

To be used for questions "Do you want to save your changes?" The text should explain the implication of choosing 'No'.

The default button is "Yes". Pressing "Esc" selects "Cancel"

NOTE: The cancel button will always have the i18n'ed text '&Cancel'.

Since
3.2

Definition at line 682 of file tdemessagebox.cpp.

◆ warningYesNoCancelListWId()

int KMessageBox::warningYesNoCancelListWId ( WId  parent_id,
const TQString &  text,
const TQStringList &  strlist,
const TQString &  caption = TQString::null,
const KGuiItem &  buttonYes = KStdGuiItem::yes(),
const KGuiItem &  buttonNo = KStdGuiItem::no(),
const TQString &  dontAskAgainName = TQString::null,
int  options = Notify 
)
static

This function accepts the window id of the parent window, instead of TQWidget*.

It should be used only when necessary.

Since
3.2

Definition at line 695 of file tdemessagebox.cpp.

◆ warningYesNoCancelWId()

int KMessageBox::warningYesNoCancelWId ( WId  parent_id,
const TQString &  text,
const TQString &  caption = TQString::null,
const KGuiItem &  buttonYes = KStdGuiItem::yes(),
const KGuiItem &  buttonNo = KStdGuiItem::no(),
const TQString &  dontAskAgainName = TQString::null,
int  options = Notify 
)
static

This function accepts the window id of the parent window, instead of TQWidget*.

It should be used only when necessary.

Since
3.2

Definition at line 670 of file tdemessagebox.cpp.

◆ warningYesNoList()

int KMessageBox::warningYesNoList ( TQWidget *  parent,
const TQString &  text,
const TQStringList &  strlist,
const TQString &  caption = TQString::null,
const KGuiItem &  buttonYes = KStdGuiItem::yes(),
const KGuiItem &  buttonNo = KStdGuiItem::no(),
const TQString &  dontAskAgainName = TQString::null,
int  options = Notify | Dangerous 
)
static

Display a "warning" dialog with a listbox to show information to the user.

Parameters
parentIf parent is 0, then the message box becomes an application-global modal dialog box. If parent is a widget, the message box becomes modal relative to parent.
textMessage string.
strlistList of strings to be written in the listbox. If the list is empty, it doesn't show any listbox, working as questionYesNo.
captionMessage box title. The application name is added to the title. The default title is i18n("Question").
buttonYesThe text for the first button. The default is i18n("&Yes").
buttonNoThe text for the second button. The default is i18n("&No").
dontAskAgainNameIf provided, a checkbox is added with which further confirmation can be turned off. The string is used to lookup and store the setting in the applications config file. The setting is stored in the "Notification Messages" group. If dontAskAgainName starts with a ':' then the setting is stored in the global config file.
optionssee OptionsType
Returns
'Yes' is returned if the Yes-button is pressed. 'No' is returned if the No-button is pressed.

To be used for questions like "Do you really want to delete these files?" And show the user exactly which files are going to be deleted in case he presses "Yes"

The default button is "No". Pressing "Esc" selects "No".

Definition at line 529 of file tdemessagebox.cpp.

◆ warningYesNoListWId()

int KMessageBox::warningYesNoListWId ( WId  parent_id,
const TQString &  text,
const TQStringList &  strlist,
const TQString &  caption = TQString::null,
const KGuiItem &  buttonYes = KStdGuiItem::yes(),
const KGuiItem &  buttonNo = KStdGuiItem::no(),
const TQString &  dontAskAgainName = TQString::null,
int  options = Notify | Dangerous 
)
static

This function accepts the window id of the parent window, instead of TQWidget*.

It should be used only when necessary.

Since
3.2

Definition at line 542 of file tdemessagebox.cpp.

◆ warningYesNoWId()

int KMessageBox::warningYesNoWId ( WId  parent_id,
const TQString &  text,
const TQString &  caption = TQString::null,
const KGuiItem &  buttonYes = KStdGuiItem::yes(),
const KGuiItem &  buttonNo = KStdGuiItem::no(),
const TQString &  dontAskAgainName = TQString::null,
int  options = Notify | Dangerous 
)
static

This function accepts the window id of the parent window, instead of TQWidget*.

It should be used only when necessary.

Since
3.2

Definition at line 517 of file tdemessagebox.cpp.


The documentation for this class was generated from the following files:
  • tdemessagebox.h
  • tdemessagebox.cpp

tdeui

Skip menu "tdeui"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdeui

Skip menu "tdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeui by doxygen 1.9.4
This website is maintained by Timothy Pearson.