[kio Index] [kio Hierarchy] [Headers]
Enhanced MessageBox Dialog More...
#include <kmsgbox.h>
Inherits: QDialog (qt)
Enhanced MessageBox Dialog.
Provides a message box with icons and up to four configurable buttons and internationalized button text.
Several static functions that perform common message box functions are also provided for convenience.
[public]
Icon styles for message box customization. One of these should be passed in the type parameter of the message box constructor and static functions.
[public]
Possible options for the default button. The first button is set to the default if no button is explicitly selected.
[public]
The generic constructor for a KMsgBox widget.
type | Selects message box options. This value is a constant from DefaultButton and/or a constant from IconStyle or-ed together. |
parent | Parent widget |
b1text.. | Button captions. Up to four may be specified, only specified buttons will be displayed. |
message | Message string, center aligned by default. May contain newlines. |
caption | Message box title |
[public]
Destructor.
[public static]
Displays a modal yes/no message box. The icon is set to a question mark.
yes | the text for the "Yes" button. defaults to "Yes", or its translation in the current user's locale if available. |
type | Selects message box options. This value is a constant from DefaultButton and/or a constant from IconStyle or-ed together. |
parent | the parent widget |
no | the text for the "No" button. defaults to "No", or its translation in the current user's locale if available. |
message | the message in the dialog (eg the question the user is to be asked) |
caption | the message box title |
[public static]
Displays a modal yes/no/cancel message box. The icon is set to a question mark.
yes | the text for the "Yes" button. defaults to "Yes", or its translation in the current user's locale if available. |
type | Selects message box options. This value is a constant from DefaultButton and/or a constant from IconStyle or-ed together. |
parent | the parent widget |
no | the text for the "No" button. defaults to "No", or its translation in the current user's locale if available. |
message | the message in the dialog (eg the question the user is to be asked) |
cancel | the text for the "Cancel" button. defaults to "Cancel", or its translation in the current user's locale if available. |
caption | the message box title |
[public static]
Displays a modal message box with one button. An "Information" icon is displayed.
type | Selects message box options. This value is a constant from DefaultButton and/or a constant from IconStyle or-ed together. |
parent | the parent widget |
message | the message in the dialog (eg the question the user is to be asked) |
caption | the message box title |
btext | the text for the "OK" button. defaults to "Ok", or its translation in the current user's locale if available. |
| Kdoc |