class KMsgBox

In file ../ui/kmsgbox.h:

## class KMsgBox : public QDialog

> KMsgBox

## Inheritance:

### public members:

  | KMsgBox (QWidget *parent = 0, const char *caption = 0, const char * message = 0, int flags = INFORMATION, const char *b1text = 0, const char *b2text = 0, const char *b3text = 0, const char *b4text = 0) Constructor
  static int | yesNo (QWidget *parent = 0, const char *caption = 0, const char * message = 0, int type = 0, const char *yes = "Yes", const char *no = "No") yesNo
  static int | yesNoCancel (QWidget *parent = 0, const char *caption = 0, const char * message = 0, int type = 0, const char *yes = "Yes", const char *no = "No", const char *cancel = "Cancel") yesNoCancel
  static int | message (QWidget *parent = 0, const char *caption = 0, const char * message = 0, int type = 0, const char *btext = "Ok") message

## Documentation

> A message box API for the KDE project. KMsgBox provides a Windows - lookalike message- or error box with icons and up to 4 configurable buttons.

KMsgBox (QWidget *parent = 0, const char *caption = 0, const char * message = 0, int flags = INFORMATION, const char *b1text = 0, const char *b2text = 0, const char *b3text = 0, const char *b4text = 0)
  The generic constructor for a KMsgBox Widget. All parameters have a default value of 0. @Doc:
  - `The parent widget`
  - `A caption (title) for the message box.`
  - `a message string. The default alignment is centered. The string may contain newline characters.`
  - `Flags: This parameter is responsible for several behaviour options of the message box. See below for valid constans for this parameter.`
  - `Up to 4 button strings (b1text to b4text). You have to specify at least b1text. Unspecified buttons will not appear in the message box, therefore you can control the number of buttons in the box.`

static int yesNo (QWidget *parent = 0, const char *caption = 0, const char * message = 0, int type = 0, const char *yes = "Yes", const char *no = "No")
  A static member function. Can be used to create simple message boxes with a single function call. This box has 2 buttons which default to "Yes" and "No". The icon shows a question mark. The appearance can be manipulated with the type parameter.

static int yesNoCancel (QWidget *parent = 0, const char *caption = 0, const char * message = 0, int type = 0, const char *yes = "Yes", const char *no = "No", const char *cancel = "Cancel")
  A static member function for creating a three-way message box. The box has three buttons (defaulting to "Yes", "No" and "Cancel") and a question-mark icon. The type Parameter can be used to change the default behaviour.

static int message (QWidget *parent = 0, const char *caption = 0, const char * message = 0, int type = 0, const char *btext = "Ok")
  A static member function. Creates a simple message box with only one button ("Ok") and a information-icon. The icon can be changed by using another value for the type parameter.

#### this class has no child classes.

alphabetic index hierarchy of classes

this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling