org.kde.koala
Class KMessageBox

java.lang.Object
  extended by org.kde.koala.KMessageBox
All Implemented Interfaces:
org.kde.qt.QtSupport

public class KMessageBox
extends java.lang.Object
implements org.kde.qt.QtSupport

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 (bastian@kde.org)

Field Summary
static int AllowLink
           
static int Cancel
           
static int Continue
           
static int Dangerous
           
static int Error
           
static int Information
           
static int No
           
static int NoExec
           
static int Notify
           
static int Ok
          Button types.
static int PlainCaption
           
static int QuestionYesNo
           
static int QuestionYesNoCancel
           
static int Sorry
           
static int WarningContinueCancel
           
static int WarningYesNo
           
static int WarningYesNoCancel
           
static int Yes
           
 
Constructor Summary
  KMessageBox()
           
protected KMessageBox(java.lang.Class dummy)
           
 
Method Summary
static void about(org.kde.qt.QWidget parent, java.lang.String text)
           
static void about(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String caption)
           
static void about(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String caption, int options)
          Display an "About" dialog.
static int createKMessageBox(KDialogBase dialog, int icon, java.lang.String text, java.lang.String[] strlist, java.lang.String ask, boolean[] checkboxReturn, int options)
           
static int createKMessageBox(KDialogBase dialog, int icon, java.lang.String text, java.lang.String[] strlist, java.lang.String ask, boolean[] checkboxReturn, int options, java.lang.String details)
          Create content and layout of a standard dialog
static int createKMessageBox(KDialogBase dialog, org.kde.qt.QPixmap icon, java.lang.String text, java.lang.String[] strlist, java.lang.String ask, boolean[] checkboxReturn, int options)
           
static int createKMessageBox(KDialogBase dialog, org.kde.qt.QPixmap icon, java.lang.String text, java.lang.String[] strlist, java.lang.String ask, boolean[] checkboxReturn, int options, java.lang.String details)
           
static int createKMessageBox(KDialogBase dialog, org.kde.qt.QPixmap icon, java.lang.String text, java.lang.String[] strlist, java.lang.String ask, boolean[] checkboxReturn, int options, java.lang.String details, int notifyType)
          Create content and layout of a standard dialog
static void detailedError(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String details)
           
static void detailedError(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String details, java.lang.String caption)
           
static void detailedError(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String details, java.lang.String caption, int options)
          Displays an "Error" dialog with a "Details >>" button.
static void detailedErrorWId(long parent_id, java.lang.String text, java.lang.String details)
           
static void detailedErrorWId(long parent_id, java.lang.String text, java.lang.String details, java.lang.String caption)
           
static void detailedErrorWId(long parent_id, java.lang.String text, java.lang.String details, java.lang.String caption, int options)
          This function accepts the window id of the parent window, instead of QWidget.
static void detailedSorry(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String details)
           
static void detailedSorry(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String details, java.lang.String caption)
           
static void detailedSorry(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String details, java.lang.String caption, int options)
          Displays a "Sorry" dialog with a "Details >>" button.
static void detailedSorryWId(long parent_id, java.lang.String text, java.lang.String details)
           
static void detailedSorryWId(long parent_id, java.lang.String text, java.lang.String details, java.lang.String caption)
           
static void detailedSorryWId(long parent_id, java.lang.String text, java.lang.String details, java.lang.String caption, int options)
          This function accepts the window id of the parent window, instead of QWidget.
 void dispose()
          Delete the wrapped C++ instance ahead of finalize()
static void enableAllMessages()
          Enable all messages which have been turned off with the dontShowAgainName feature.
static void enableMessage(java.lang.String dontShowAgainName)
          Re-enable a specific dontShowAgainName messages that had previously been turned off.
static void error(org.kde.qt.QWidget parent, java.lang.String text)
           
static void error(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String caption)
           
static void error(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String caption, int options)
          Display an "Error" dialog.
static void errorList(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String[] strlist)
           
static void errorList(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String[] strlist, java.lang.String caption)
           
static void errorList(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String[] strlist, java.lang.String caption, int options)
          Display an "Error" dialog with a listbox.
static void errorListWId(long parent_id, java.lang.String text, java.lang.String[] strlist)
           
static void errorListWId(long parent_id, java.lang.String text, java.lang.String[] strlist, java.lang.String caption)
           
static void errorListWId(long parent_id, java.lang.String text, java.lang.String[] strlist, java.lang.String caption, int options)
          This function accepts the window id of the parent window, instead of QWidget.
static void errorWId(long parent_id, java.lang.String text)
           
static void errorWId(long parent_id, java.lang.String text, java.lang.String caption)
           
static void errorWId(long parent_id, java.lang.String text, java.lang.String caption, int options)
          This function accepts the window id of the parent window, instead of QWidget.
protected  void finalize()
          Deletes the wrapped C++ instance
static void information(org.kde.qt.QWidget parent, java.lang.String text)
           
static void information(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String caption)
           
static void information(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String caption, java.lang.String dontShowAgainName)
           
static void information(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String caption, java.lang.String dontShowAgainName, int options)
          Display an "Information" dialog.
static void informationList(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String[] strlist)
           
static void informationList(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String[] strlist, java.lang.String caption)
           
static void informationList(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String[] strlist, java.lang.String caption, java.lang.String dontShowAgainName)
           
static void informationList(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String[] strlist, java.lang.String caption, java.lang.String dontShowAgainName, int options)
          Display an "Information" dialog with a listbox.
static void informationListWId(long parent_id, java.lang.String text, java.lang.String[] strlist)
           
static void informationListWId(long parent_id, java.lang.String text, java.lang.String[] strlist, java.lang.String caption)
           
static void informationListWId(long parent_id, java.lang.String text, java.lang.String[] strlist, java.lang.String caption, java.lang.String dontShowAgainName)
           
static void informationListWId(long parent_id, java.lang.String text, java.lang.String[] strlist, java.lang.String caption, java.lang.String dontShowAgainName, int options)
          This function accepts the window id of the parent window, instead of QWidget.
static void informationWId(long parent_id, java.lang.String text)
           
static void informationWId(long parent_id, java.lang.String text, java.lang.String caption)
           
static void informationWId(long parent_id, java.lang.String text, java.lang.String caption, java.lang.String dontShowAgainName)
           
static void informationWId(long parent_id, java.lang.String text, java.lang.String caption, java.lang.String dontShowAgainName, int options)
          This function accepts the window id of the parent window, instead of QWidget.
 boolean isDisposed()
          Has the wrapped C++ instance been deleted?
static int messageBox(org.kde.qt.QWidget parent, int type, java.lang.String text)
           
static int messageBox(org.kde.qt.QWidget parent, int type, java.lang.String text, java.lang.String caption)
           
static int messageBox(org.kde.qt.QWidget parent, int type, java.lang.String text, java.lang.String caption, KGuiItem buttonYes)
           
static int messageBox(org.kde.qt.QWidget parent, int type, java.lang.String text, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo)
           
static int messageBox(org.kde.qt.QWidget parent, int type, java.lang.String text, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo, int options)
          Alternate method to show a messagebox:
static int messageBox(org.kde.qt.QWidget parent, int type, java.lang.String text, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo, java.lang.String dontShowAskAgainName)
           
static int messageBox(org.kde.qt.QWidget parent, int type, java.lang.String text, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo, java.lang.String dontShowAskAgainName, int options)
          Alternate method to show a messagebox:
static int messageBoxWId(long parent_id, int type, java.lang.String text)
           
static int messageBoxWId(long parent_id, int type, java.lang.String text, java.lang.String caption)
           
static int messageBoxWId(long parent_id, int type, java.lang.String text, java.lang.String caption, KGuiItem buttonYes)
           
static int messageBoxWId(long parent_id, int type, java.lang.String text, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo)
           
static int messageBoxWId(long parent_id, int type, java.lang.String text, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo, java.lang.String dontShowAskAgainName)
           
static int messageBoxWId(long parent_id, int type, java.lang.String text, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo, java.lang.String dontShowAskAgainName, int options)
          This function accepts the window id of the parent window, instead of QWidget.
static int questionYesNo(org.kde.qt.QWidget parent, java.lang.String text)
           
static int questionYesNo(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String caption)
           
static int questionYesNo(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String caption, KGuiItem buttonYes)
           
static int questionYesNo(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo)
           
static int questionYesNo(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo, java.lang.String dontAskAgainName)
           
static int questionYesNo(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo, java.lang.String dontAskAgainName, int options)
          Display a simple "question" dialog.
static int questionYesNoCancel(org.kde.qt.QWidget parent, java.lang.String text)
           
static int questionYesNoCancel(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String caption)
           
static int questionYesNoCancel(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String caption, KGuiItem buttonYes)
           
static int questionYesNoCancel(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo)
           
static int questionYesNoCancel(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo, java.lang.String dontAskAgainName)
           
static int questionYesNoCancel(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo, java.lang.String dontAskAgainName, int options)
          Display a simple "question" dialog.
static int questionYesNoCancelWId(long parent_id, java.lang.String text)
           
static int questionYesNoCancelWId(long parent_id, java.lang.String text, java.lang.String caption)
           
static int questionYesNoCancelWId(long parent_id, java.lang.String text, java.lang.String caption, KGuiItem buttonYes)
           
static int questionYesNoCancelWId(long parent_id, java.lang.String text, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo)
           
static int questionYesNoCancelWId(long parent_id, java.lang.String text, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo, java.lang.String dontAskAgainName)
           
static int questionYesNoCancelWId(long parent_id, java.lang.String text, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo, java.lang.String dontAskAgainName, int options)
          This function accepts the window id of the parent window, instead of QWidget.
static int questionYesNoList(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String[] strlist)
           
static int questionYesNoList(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String[] strlist, java.lang.String caption)
           
static int questionYesNoList(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String[] strlist, java.lang.String caption, KGuiItem buttonYes)
           
static int questionYesNoList(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String[] strlist, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo)
           
static int questionYesNoList(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String[] strlist, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo, java.lang.String dontAskAgainName)
           
static int questionYesNoList(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String[] strlist, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo, java.lang.String dontAskAgainName, int options)
          Display a "question" dialog with a listbox to show information to the user
static int questionYesNoListWId(long parent_id, java.lang.String text, java.lang.String[] strlist)
           
static int questionYesNoListWId(long parent_id, java.lang.String text, java.lang.String[] strlist, java.lang.String caption)
           
static int questionYesNoListWId(long parent_id, java.lang.String text, java.lang.String[] strlist, java.lang.String caption, KGuiItem buttonYes)
           
static int questionYesNoListWId(long parent_id, java.lang.String text, java.lang.String[] strlist, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo)
           
static int questionYesNoListWId(long parent_id, java.lang.String text, java.lang.String[] strlist, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo, java.lang.String dontAskAgainName)
           
static int questionYesNoListWId(long parent_id, java.lang.String text, java.lang.String[] strlist, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo, java.lang.String dontAskAgainName, int options)
          This function accepts the window id of the parent window, instead of QWidget.
static int questionYesNoWId(long parent_id, java.lang.String text)
           
static int questionYesNoWId(long parent_id, java.lang.String text, java.lang.String caption)
           
static int questionYesNoWId(long parent_id, java.lang.String text, java.lang.String caption, KGuiItem buttonYes)
           
static int questionYesNoWId(long parent_id, java.lang.String text, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo)
           
static int questionYesNoWId(long parent_id, java.lang.String text, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo, java.lang.String dontAskAgainName)
           
static int questionYesNoWId(long parent_id, java.lang.String text, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo, java.lang.String dontAskAgainName, int options)
          This function accepts the window id of the parent window, instead of QWidget.
static void queuedDetailedError(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String details)
           
static void queuedDetailedError(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String details, java.lang.String caption)
          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.
static void queuedDetailedErrorWId(long parent_id, java.lang.String text, java.lang.String details)
           
static void queuedDetailedErrorWId(long parent_id, java.lang.String text, java.lang.String details, java.lang.String caption)
          This function accepts the window id of the parent window, instead of QWidget.
static void queuedMessageBox(org.kde.qt.QWidget parent, int type, java.lang.String text)
           
static void queuedMessageBox(org.kde.qt.QWidget parent, int type, java.lang.String text, java.lang.String caption)
           
static void queuedMessageBox(org.kde.qt.QWidget parent, int type, java.lang.String text, java.lang.String caption, int options)
          Like messageBox Only for message boxes of type Information, Sorry or Error.
static void queuedMessageBoxWId(long parent_id, int type, java.lang.String text)
           
static void queuedMessageBoxWId(long parent_id, int type, java.lang.String text, java.lang.String caption)
          This function accepts the window id of the parent window, instead of QWidget.
static void queuedMessageBoxWId(long parent_id, int type, java.lang.String text, java.lang.String caption, int options)
          This function accepts the window id of the parent window, instead of QWidget.
static void saveDontShowAgainContinue(java.lang.String dontShowAgainName)
          Save the fact that the continue/cancel message box should not be shown again.
static void saveDontShowAgainYesNo(java.lang.String dontShowAgainName, int result)
          Save the fact that the yes/no message box should not be shown again.
static void setDontShowAskAgainConfig(KConfig cfg)
          Use cfg for all settings related to the dontShowAgainName feature.
static boolean shouldBeShownContinue(java.lang.String dontShowAgainName)
           
static boolean shouldBeShownYesNo(java.lang.String dontShowAgainName, int result)
           
static void sorry(org.kde.qt.QWidget parent, java.lang.String text)
           
static void sorry(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String caption)
           
static void sorry(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String caption, int options)
          Display an "Sorry" dialog.
static void sorryWId(long parent_id, java.lang.String text)
           
static void sorryWId(long parent_id, java.lang.String text, java.lang.String caption)
           
static void sorryWId(long parent_id, java.lang.String text, java.lang.String caption, int options)
          This function accepts the window id of the parent window, instead of QWidget.
static int warningContinueCancel(org.kde.qt.QWidget parent, java.lang.String text)
           
static int warningContinueCancel(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String caption)
           
static int warningContinueCancel(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String caption, KGuiItem buttonContinue)
           
static int warningContinueCancel(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String caption, KGuiItem buttonContinue, java.lang.String dontAskAgainName)
           
static int warningContinueCancel(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String caption, KGuiItem buttonContinue, java.lang.String dontAskAgainName, int options)
          Display a "warning" dialog.
static int warningContinueCancelList(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String[] strlist)
           
static int warningContinueCancelList(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String[] strlist, java.lang.String caption)
           
static int warningContinueCancelList(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String[] strlist, java.lang.String caption, KGuiItem buttonContinue)
           
static int warningContinueCancelList(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String[] strlist, java.lang.String caption, KGuiItem buttonContinue, java.lang.String dontAskAgainName)
           
static int warningContinueCancelList(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String[] strlist, java.lang.String caption, KGuiItem buttonContinue, java.lang.String dontAskAgainName, int options)
          Display a "warning" dialog with a listbox to show information to the user.
static int warningContinueCancelListWId(long parent_id, java.lang.String text, java.lang.String[] strlist)
           
static int warningContinueCancelListWId(long parent_id, java.lang.String text, java.lang.String[] strlist, java.lang.String caption)
           
static int warningContinueCancelListWId(long parent_id, java.lang.String text, java.lang.String[] strlist, java.lang.String caption, KGuiItem buttonContinue)
           
static int warningContinueCancelListWId(long parent_id, java.lang.String text, java.lang.String[] strlist, java.lang.String caption, KGuiItem buttonContinue, java.lang.String dontAskAgainName)
           
static int warningContinueCancelListWId(long parent_id, java.lang.String text, java.lang.String[] strlist, java.lang.String caption, KGuiItem buttonContinue, java.lang.String dontAskAgainName, int options)
          This function accepts the window id of the parent window, instead of QWidget.
static int warningContinueCancelWId(long parent_id, java.lang.String text)
           
static int warningContinueCancelWId(long parent_id, java.lang.String text, java.lang.String caption)
           
static int warningContinueCancelWId(long parent_id, java.lang.String text, java.lang.String caption, KGuiItem buttonContinue)
           
static int warningContinueCancelWId(long parent_id, java.lang.String text, java.lang.String caption, KGuiItem buttonContinue, java.lang.String dontAskAgainName)
           
static int warningContinueCancelWId(long parent_id, java.lang.String text, java.lang.String caption, KGuiItem buttonContinue, java.lang.String dontAskAgainName, int options)
          This function accepts the window id of the parent window, instead of QWidget.
static int warningYesNo(org.kde.qt.QWidget parent, java.lang.String text)
           
static int warningYesNo(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String caption)
           
static int warningYesNo(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String caption, KGuiItem buttonYes)
           
static int warningYesNo(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo)
           
static int warningYesNo(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo, java.lang.String dontAskAgainName)
           
static int warningYesNo(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo, java.lang.String dontAskAgainName, int options)
          Display a "warning" dialog.
static int warningYesNoCancel(org.kde.qt.QWidget parent, java.lang.String text)
           
static int warningYesNoCancel(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String caption)
           
static int warningYesNoCancel(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String caption, KGuiItem buttonYes)
           
static int warningYesNoCancel(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo)
           
static int warningYesNoCancel(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo, java.lang.String dontAskAgainName)
           
static int warningYesNoCancel(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo, java.lang.String dontAskAgainName, int options)
          Display a Yes/No/Cancel "warning" dialog.
static int warningYesNoCancelList(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String[] strlist)
           
static int warningYesNoCancelList(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String[] strlist, java.lang.String caption)
           
static int warningYesNoCancelList(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String[] strlist, java.lang.String caption, KGuiItem buttonYes)
           
static int warningYesNoCancelList(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String[] strlist, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo)
           
static int warningYesNoCancelList(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String[] strlist, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo, java.lang.String dontAskAgainName)
           
static int warningYesNoCancelList(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String[] strlist, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo, java.lang.String dontAskAgainName, int options)
          Display a Yes/No/Cancel "warning" dialog with a listbox to show information to the user.
static int warningYesNoCancelListWId(long parent_id, java.lang.String text, java.lang.String[] strlist)
           
static int warningYesNoCancelListWId(long parent_id, java.lang.String text, java.lang.String[] strlist, java.lang.String caption)
           
static int warningYesNoCancelListWId(long parent_id, java.lang.String text, java.lang.String[] strlist, java.lang.String caption, KGuiItem buttonYes)
           
static int warningYesNoCancelListWId(long parent_id, java.lang.String text, java.lang.String[] strlist, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo)
           
static int warningYesNoCancelListWId(long parent_id, java.lang.String text, java.lang.String[] strlist, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo, java.lang.String dontAskAgainName)
           
static int warningYesNoCancelListWId(long parent_id, java.lang.String text, java.lang.String[] strlist, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo, java.lang.String dontAskAgainName, int options)
          This function accepts the window id of the parent window, instead of QWidget.
static int warningYesNoCancelWId(long parent_id, java.lang.String text)
           
static int warningYesNoCancelWId(long parent_id, java.lang.String text, java.lang.String caption)
           
static int warningYesNoCancelWId(long parent_id, java.lang.String text, java.lang.String caption, KGuiItem buttonYes)
           
static int warningYesNoCancelWId(long parent_id, java.lang.String text, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo)
           
static int warningYesNoCancelWId(long parent_id, java.lang.String text, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo, java.lang.String dontAskAgainName)
           
static int warningYesNoCancelWId(long parent_id, java.lang.String text, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo, java.lang.String dontAskAgainName, int options)
          This function accepts the window id of the parent window, instead of QWidget.
static int warningYesNoList(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String[] strlist)
           
static int warningYesNoList(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String[] strlist, java.lang.String caption)
           
static int warningYesNoList(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String[] strlist, java.lang.String caption, KGuiItem buttonYes)
           
static int warningYesNoList(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String[] strlist, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo)
           
static int warningYesNoList(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String[] strlist, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo, java.lang.String dontAskAgainName)
           
static int warningYesNoList(org.kde.qt.QWidget parent, java.lang.String text, java.lang.String[] strlist, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo, java.lang.String dontAskAgainName, int options)
          Display a "warning" dialog with a listbox to show information to the user
static int warningYesNoListWId(long parent_id, java.lang.String text, java.lang.String[] strlist)
           
static int warningYesNoListWId(long parent_id, java.lang.String text, java.lang.String[] strlist, java.lang.String caption)
           
static int warningYesNoListWId(long parent_id, java.lang.String text, java.lang.String[] strlist, java.lang.String caption, KGuiItem buttonYes)
           
static int warningYesNoListWId(long parent_id, java.lang.String text, java.lang.String[] strlist, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo)
           
static int warningYesNoListWId(long parent_id, java.lang.String text, java.lang.String[] strlist, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo, java.lang.String dontAskAgainName)
           
static int warningYesNoListWId(long parent_id, java.lang.String text, java.lang.String[] strlist, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo, java.lang.String dontAskAgainName, int options)
          This function accepts the window id of the parent window, instead of QWidget.
static int warningYesNoWId(long parent_id, java.lang.String text)
           
static int warningYesNoWId(long parent_id, java.lang.String text, java.lang.String caption)
           
static int warningYesNoWId(long parent_id, java.lang.String text, java.lang.String caption, KGuiItem buttonYes)
           
static int warningYesNoWId(long parent_id, java.lang.String text, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo)
           
static int warningYesNoWId(long parent_id, java.lang.String text, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo, java.lang.String dontAskAgainName)
           
static int warningYesNoWId(long parent_id, java.lang.String text, java.lang.String caption, KGuiItem buttonYes, KGuiItem buttonNo, java.lang.String dontAskAgainName, int options)
          This function accepts the window id of the parent window, instead of QWidget.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Ok

public static final int Ok
Button types.

See Also:
Constant Field Values

Cancel

public static final int Cancel
See Also:
Constant Field Values

Yes

public static final int Yes
See Also:
Constant Field Values

No

public static final int No
See Also:
Constant Field Values

Continue

public static final int Continue
See Also:
Constant Field Values

QuestionYesNo

public static final int QuestionYesNo
See Also:
Constant Field Values

WarningYesNo

public static final int WarningYesNo
See Also:
Constant Field Values

WarningContinueCancel

public static final int WarningContinueCancel
See Also:
Constant Field Values

WarningYesNoCancel

public static final int WarningYesNoCancel
See Also:
Constant Field Values

Information

public static final int Information
See Also:
Constant Field Values

Sorry

public static final int Sorry
See Also:
Constant Field Values

Error

public static final int Error
See Also:
Constant Field Values

QuestionYesNoCancel

public static final int QuestionYesNoCancel
See Also:
Constant Field Values

Notify

public static final int Notify
See Also:
Constant Field Values

AllowLink

public static final int AllowLink
See Also:
Constant Field Values

Dangerous

public static final int Dangerous
See Also:
Constant Field Values

PlainCaption

public static final int PlainCaption
See Also:
Constant Field Values

NoExec

public static final int NoExec
See Also:
Constant Field Values
Constructor Detail

KMessageBox

protected KMessageBox(java.lang.Class dummy)

KMessageBox

public KMessageBox()
Method Detail

questionYesNo

public static int questionYesNo(org.kde.qt.QWidget parent,
                                java.lang.String text,
                                java.lang.String caption,
                                KGuiItem buttonYes,
                                KGuiItem buttonNo,
                                java.lang.String dontAskAgainName,
                                int options)
Display a simple "question" dialog.

Parameters:
parent - If 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.
text - Message string.
caption - Message box title. The application name is added to the title. The default title is i18n("Question").
buttonYes - The text for the first button. The default is i18n("&Yes").
buttonNo - The text for the second button. The default is i18n("&No").
dontAskAgainName - If 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.
options - see OptionsType To be used for questions like "Do you have a printer?" The default button is "Yes". Pressing "Esc" selects "No".
Returns:
'Yes' is returned if the Yes-button is pressed. 'No' is returned if the No-button is pressed.

questionYesNo

public static int questionYesNo(org.kde.qt.QWidget parent,
                                java.lang.String text,
                                java.lang.String caption,
                                KGuiItem buttonYes,
                                KGuiItem buttonNo,
                                java.lang.String dontAskAgainName)

questionYesNo

public static int questionYesNo(org.kde.qt.QWidget parent,
                                java.lang.String text,
                                java.lang.String caption,
                                KGuiItem buttonYes,
                                KGuiItem buttonNo)

questionYesNo

public static int questionYesNo(org.kde.qt.QWidget parent,
                                java.lang.String text,
                                java.lang.String caption,
                                KGuiItem buttonYes)

questionYesNo

public static int questionYesNo(org.kde.qt.QWidget parent,
                                java.lang.String text,
                                java.lang.String caption)

questionYesNo

public static int questionYesNo(org.kde.qt.QWidget parent,
                                java.lang.String text)

questionYesNoWId

public static int questionYesNoWId(long parent_id,
                                   java.lang.String text,
                                   java.lang.String caption,
                                   KGuiItem buttonYes,
                                   KGuiItem buttonNo,
                                   java.lang.String dontAskAgainName,
                                   int options)
This function accepts the window id of the parent window, instead of QWidget. It should be used only when necessary.


questionYesNoWId

public static int questionYesNoWId(long parent_id,
                                   java.lang.String text,
                                   java.lang.String caption,
                                   KGuiItem buttonYes,
                                   KGuiItem buttonNo,
                                   java.lang.String dontAskAgainName)

questionYesNoWId

public static int questionYesNoWId(long parent_id,
                                   java.lang.String text,
                                   java.lang.String caption,
                                   KGuiItem buttonYes,
                                   KGuiItem buttonNo)

questionYesNoWId

public static int questionYesNoWId(long parent_id,
                                   java.lang.String text,
                                   java.lang.String caption,
                                   KGuiItem buttonYes)

questionYesNoWId

public static int questionYesNoWId(long parent_id,
                                   java.lang.String text,
                                   java.lang.String caption)

questionYesNoWId

public static int questionYesNoWId(long parent_id,
                                   java.lang.String text)

questionYesNoCancel

public static int questionYesNoCancel(org.kde.qt.QWidget parent,
                                      java.lang.String text,
                                      java.lang.String caption,
                                      KGuiItem buttonYes,
                                      KGuiItem buttonNo,
                                      java.lang.String dontAskAgainName,
                                      int options)
Display a simple "question" dialog.

Parameters:
parent - If 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.
text - Message string.
caption - Message box title. The application name is added to the title. The default title is i18n("Question").
buttonYes - The text for the first button. The default is i18n("&Yes").
buttonNo - The text for the second button. The default is i18n("&No").
dontAskAgainName - If 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.
options - see OptionsType 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'.
Returns:
'Yes' is returned if the Yes-button is pressed. 'No' is returned if the No-button is pressed.

questionYesNoCancel

public static int questionYesNoCancel(org.kde.qt.QWidget parent,
                                      java.lang.String text,
                                      java.lang.String caption,
                                      KGuiItem buttonYes,
                                      KGuiItem buttonNo,
                                      java.lang.String dontAskAgainName)

questionYesNoCancel

public static int questionYesNoCancel(org.kde.qt.QWidget parent,
                                      java.lang.String text,
                                      java.lang.String caption,
                                      KGuiItem buttonYes,
                                      KGuiItem buttonNo)

questionYesNoCancel

public static int questionYesNoCancel(org.kde.qt.QWidget parent,
                                      java.lang.String text,
                                      java.lang.String caption,
                                      KGuiItem buttonYes)

questionYesNoCancel

public static int questionYesNoCancel(org.kde.qt.QWidget parent,
                                      java.lang.String text,
                                      java.lang.String caption)

questionYesNoCancel

public static int questionYesNoCancel(org.kde.qt.QWidget parent,
                                      java.lang.String text)

questionYesNoCancelWId

public static int questionYesNoCancelWId(long parent_id,
                                         java.lang.String text,
                                         java.lang.String caption,
                                         KGuiItem buttonYes,
                                         KGuiItem buttonNo,
                                         java.lang.String dontAskAgainName,
                                         int options)
This function accepts the window id of the parent window, instead of QWidget. It should be used only when necessary.


questionYesNoCancelWId

public static int questionYesNoCancelWId(long parent_id,
                                         java.lang.String text,
                                         java.lang.String caption,
                                         KGuiItem buttonYes,
                                         KGuiItem buttonNo,
                                         java.lang.String dontAskAgainName)

questionYesNoCancelWId

public static int questionYesNoCancelWId(long parent_id,
                                         java.lang.String text,
                                         java.lang.String caption,
                                         KGuiItem buttonYes,
                                         KGuiItem buttonNo)

questionYesNoCancelWId

public static int questionYesNoCancelWId(long parent_id,
                                         java.lang.String text,
                                         java.lang.String caption,
                                         KGuiItem buttonYes)

questionYesNoCancelWId

public static int questionYesNoCancelWId(long parent_id,
                                         java.lang.String text,
                                         java.lang.String caption)

questionYesNoCancelWId

public static int questionYesNoCancelWId(long parent_id,
                                         java.lang.String text)

questionYesNoList

public static int questionYesNoList(org.kde.qt.QWidget parent,
                                    java.lang.String text,
                                    java.lang.String[] strlist,
                                    java.lang.String caption,
                                    KGuiItem buttonYes,
                                    KGuiItem buttonNo,
                                    java.lang.String dontAskAgainName,
                                    int options)
Display a "question" dialog with a listbox to show information to the user

Parameters:
parent - If 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.
text - Message string.
strlist - List of strings to be written in the listbox. If the list is empty, it doesn't show any listbox, working as questionYesNo.
caption - Message box title. The application name is added to the title. The default title is i18n("Question").
buttonYes - The text for the first button. The default is i18n("&Yes").
buttonNo - The text for the second button. The default is i18n("&No").
dontAskAgainName - If 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.
options - see OptionsType 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".
Returns:
'Yes' is returned if the Yes-button is pressed. 'No' is returned if the No-button is pressed.

questionYesNoList

public static int questionYesNoList(org.kde.qt.QWidget parent,
                                    java.lang.String text,
                                    java.lang.String[] strlist,
                                    java.lang.String caption,
                                    KGuiItem buttonYes,
                                    KGuiItem buttonNo,
                                    java.lang.String dontAskAgainName)

questionYesNoList

public static int questionYesNoList(org.kde.qt.QWidget parent,
                                    java.lang.String text,
                                    java.lang.String[] strlist,
                                    java.lang.String caption,
                                    KGuiItem buttonYes,
                                    KGuiItem buttonNo)

questionYesNoList

public static int questionYesNoList(org.kde.qt.QWidget parent,
                                    java.lang.String text,
                                    java.lang.String[] strlist,
                                    java.lang.String caption,
                                    KGuiItem buttonYes)

questionYesNoList

public static int questionYesNoList(org.kde.qt.QWidget parent,
                                    java.lang.String text,
                                    java.lang.String[] strlist,
                                    java.lang.String caption)

questionYesNoList

public static int questionYesNoList(org.kde.qt.QWidget parent,
                                    java.lang.String text,
                                    java.lang.String[] strlist)

questionYesNoListWId

public static int questionYesNoListWId(long parent_id,
                                       java.lang.String text,
                                       java.lang.String[] strlist,
                                       java.lang.String caption,
                                       KGuiItem buttonYes,
                                       KGuiItem buttonNo,
                                       java.lang.String dontAskAgainName,
                                       int options)
This function accepts the window id of the parent window, instead of QWidget. It should be used only when necessary.


questionYesNoListWId

public static int questionYesNoListWId(long parent_id,
                                       java.lang.String text,
                                       java.lang.String[] strlist,
                                       java.lang.String caption,
                                       KGuiItem buttonYes,
                                       KGuiItem buttonNo,
                                       java.lang.String dontAskAgainName)

questionYesNoListWId

public static int questionYesNoListWId(long parent_id,
                                       java.lang.String text,
                                       java.lang.String[] strlist,
                                       java.lang.String caption,
                                       KGuiItem buttonYes,
                                       KGuiItem buttonNo)

questionYesNoListWId

public static int questionYesNoListWId(long parent_id,
                                       java.lang.String text,
                                       java.lang.String[] strlist,
                                       java.lang.String caption,
                                       KGuiItem buttonYes)

questionYesNoListWId

public static int questionYesNoListWId(long parent_id,
                                       java.lang.String text,
                                       java.lang.String[] strlist,
                                       java.lang.String caption)

questionYesNoListWId

public static int questionYesNoListWId(long parent_id,
                                       java.lang.String text,
                                       java.lang.String[] strlist)

warningYesNo

public static int warningYesNo(org.kde.qt.QWidget parent,
                               java.lang.String text,
                               java.lang.String caption,
                               KGuiItem buttonYes,
                               KGuiItem buttonNo,
                               java.lang.String dontAskAgainName,
                               int options)
Display a "warning" dialog.

Parameters:
parent - If 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.
text - Message string.
caption - Message box title. The application name is added to the title. The default title is i18n("Warning").
buttonYes - The text for the first button. The default is i18n("&Yes").
buttonNo - The text for the second button. The default is i18n("&No").
dontAskAgainName - If 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.
options - see OptionsType 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".
Returns:
Yes is returned if the Yes-button is pressed. No is returned if the No-button is pressed.

warningYesNo

public static int warningYesNo(org.kde.qt.QWidget parent,
                               java.lang.String text,
                               java.lang.String caption,
                               KGuiItem buttonYes,
                               KGuiItem buttonNo,
                               java.lang.String dontAskAgainName)

warningYesNo

public static int warningYesNo(org.kde.qt.QWidget parent,
                               java.lang.String text,
                               java.lang.String caption,
                               KGuiItem buttonYes,
                               KGuiItem buttonNo)

warningYesNo

public static int warningYesNo(org.kde.qt.QWidget parent,
                               java.lang.String text,
                               java.lang.String caption,
                               KGuiItem buttonYes)

warningYesNo

public static int warningYesNo(org.kde.qt.QWidget parent,
                               java.lang.String text,
                               java.lang.String caption)

warningYesNo

public static int warningYesNo(org.kde.qt.QWidget parent,
                               java.lang.String text)

warningYesNoWId

public static int warningYesNoWId(long parent_id,
                                  java.lang.String text,
                                  java.lang.String caption,
                                  KGuiItem buttonYes,
                                  KGuiItem buttonNo,
                                  java.lang.String dontAskAgainName,
                                  int options)
This function accepts the window id of the parent window, instead of QWidget. It should be used only when necessary.


warningYesNoWId

public static int warningYesNoWId(long parent_id,
                                  java.lang.String text,
                                  java.lang.String caption,
                                  KGuiItem buttonYes,
                                  KGuiItem buttonNo,
                                  java.lang.String dontAskAgainName)

warningYesNoWId

public static int warningYesNoWId(long parent_id,
                                  java.lang.String text,
                                  java.lang.String caption,
                                  KGuiItem buttonYes,
                                  KGuiItem buttonNo)

warningYesNoWId

public static int warningYesNoWId(long parent_id,
                                  java.lang.String text,
                                  java.lang.String caption,
                                  KGuiItem buttonYes)

warningYesNoWId

public static int warningYesNoWId(long parent_id,
                                  java.lang.String text,
                                  java.lang.String caption)

warningYesNoWId

public static int warningYesNoWId(long parent_id,
                                  java.lang.String text)

warningYesNoList

public static int warningYesNoList(org.kde.qt.QWidget parent,
                                   java.lang.String text,
                                   java.lang.String[] strlist,
                                   java.lang.String caption,
                                   KGuiItem buttonYes,
                                   KGuiItem buttonNo,
                                   java.lang.String dontAskAgainName,
                                   int options)
Display a "warning" dialog with a listbox to show information to the user

Parameters:
parent - If 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.
text - Message string.
strlist - List of strings to be written in the listbox. If the list is empty, it doesn't show any listbox, working as questionYesNo.
caption - Message box title. The application name is added to the title. The default title is i18n("Question").
buttonYes - The text for the first button. The default is i18n("&Yes").
buttonNo - The text for the second button. The default is i18n("&No").
dontAskAgainName - If 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.
options - see OptionsType 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".
Returns:
'Yes' is returned if the Yes-button is pressed. 'No' is returned if the No-button is pressed.

warningYesNoList

public static int warningYesNoList(org.kde.qt.QWidget parent,
                                   java.lang.String text,
                                   java.lang.String[] strlist,
                                   java.lang.String caption,
                                   KGuiItem buttonYes,
                                   KGuiItem buttonNo,
                                   java.lang.String dontAskAgainName)

warningYesNoList

public static int warningYesNoList(org.kde.qt.QWidget parent,
                                   java.lang.String text,
                                   java.lang.String[] strlist,
                                   java.lang.String caption,
                                   KGuiItem buttonYes,
                                   KGuiItem buttonNo)

warningYesNoList

public static int warningYesNoList(org.kde.qt.QWidget parent,
                                   java.lang.String text,
                                   java.lang.String[] strlist,
                                   java.lang.String caption,
                                   KGuiItem buttonYes)

warningYesNoList

public static int warningYesNoList(org.kde.qt.QWidget parent,
                                   java.lang.String text,
                                   java.lang.String[] strlist,
                                   java.lang.String caption)

warningYesNoList

public static int warningYesNoList(org.kde.qt.QWidget parent,
                                   java.lang.String text,
                                   java.lang.String[] strlist)

warningYesNoListWId

public static int warningYesNoListWId(long parent_id,
                                      java.lang.String text,
                                      java.lang.String[] strlist,
                                      java.lang.String caption,
                                      KGuiItem buttonYes,
                                      KGuiItem buttonNo,
                                      java.lang.String dontAskAgainName,
                                      int options)
This function accepts the window id of the parent window, instead of QWidget. It should be used only when necessary.


warningYesNoListWId

public static int warningYesNoListWId(long parent_id,
                                      java.lang.String text,
                                      java.lang.String[] strlist,
                                      java.lang.String caption,
                                      KGuiItem buttonYes,
                                      KGuiItem buttonNo,
                                      java.lang.String dontAskAgainName)

warningYesNoListWId

public static int warningYesNoListWId(long parent_id,
                                      java.lang.String text,
                                      java.lang.String[] strlist,
                                      java.lang.String caption,
                                      KGuiItem buttonYes,
                                      KGuiItem buttonNo)

warningYesNoListWId

public static int warningYesNoListWId(long parent_id,
                                      java.lang.String text,
                                      java.lang.String[] strlist,
                                      java.lang.String caption,
                                      KGuiItem buttonYes)

warningYesNoListWId

public static int warningYesNoListWId(long parent_id,
                                      java.lang.String text,
                                      java.lang.String[] strlist,
                                      java.lang.String caption)

warningYesNoListWId

public static int warningYesNoListWId(long parent_id,
                                      java.lang.String text,
                                      java.lang.String[] strlist)

warningContinueCancel

public static int warningContinueCancel(org.kde.qt.QWidget parent,
                                        java.lang.String text,
                                        java.lang.String caption,
                                        KGuiItem buttonContinue,
                                        java.lang.String dontAskAgainName,
                                        int options)
Display a "warning" dialog.

Parameters:
parent - If 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.
text - Message string.
caption - Message box title. The application name is added to the title. The default title is i18n("Warning").
buttonContinue - The text for the first button.
dontAskAgainName - If 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.
options - see OptionsType The second button always has the text "Cancel". 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".
Returns:
Continue is returned if the Continue-button is pressed. Cancel is returned if the Cancel-button is pressed.

warningContinueCancel

public static int warningContinueCancel(org.kde.qt.QWidget parent,
                                        java.lang.String text,
                                        java.lang.String caption,
                                        KGuiItem buttonContinue,
                                        java.lang.String dontAskAgainName)

warningContinueCancel

public static int warningContinueCancel(org.kde.qt.QWidget parent,
                                        java.lang.String text,
                                        java.lang.String caption,
                                        KGuiItem buttonContinue)

warningContinueCancel

public static int warningContinueCancel(org.kde.qt.QWidget parent,
                                        java.lang.String text,
                                        java.lang.String caption)

warningContinueCancel

public static int warningContinueCancel(org.kde.qt.QWidget parent,
                                        java.lang.String text)

warningContinueCancelWId

public static int warningContinueCancelWId(long parent_id,
                                           java.lang.String text,
                                           java.lang.String caption,
                                           KGuiItem buttonContinue,
                                           java.lang.String dontAskAgainName,
                                           int options)
This function accepts the window id of the parent window, instead of QWidget. It should be used only when necessary.


warningContinueCancelWId

public static int warningContinueCancelWId(long parent_id,
                                           java.lang.String text,
                                           java.lang.String caption,
                                           KGuiItem buttonContinue,
                                           java.lang.String dontAskAgainName)

warningContinueCancelWId

public static int warningContinueCancelWId(long parent_id,
                                           java.lang.String text,
                                           java.lang.String caption,
                                           KGuiItem buttonContinue)

warningContinueCancelWId

public static int warningContinueCancelWId(long parent_id,
                                           java.lang.String text,
                                           java.lang.String caption)

warningContinueCancelWId

public static int warningContinueCancelWId(long parent_id,
                                           java.lang.String text)

warningContinueCancelList

public static int warningContinueCancelList(org.kde.qt.QWidget parent,
                                            java.lang.String text,
                                            java.lang.String[] strlist,
                                            java.lang.String caption,
                                            KGuiItem buttonContinue,
                                            java.lang.String dontAskAgainName,
                                            int options)
Display a "warning" dialog with a listbox to show information to the user.

Parameters:
parent - If 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.
text - Message string.
strlist - List of strings to be written in the listbox. If the list is empty, it doesn't show any listbox, working as warningContinueCancel.
caption - Message box title. The application name is added to the title. The default title is i18n("Warning").
buttonContinue - The text for the first button.
dontAskAgainName - If 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.
options - see OptionsType The second button always has the text "Cancel". 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".
Returns:
Continue is returned if the Continue-button is pressed. Cancel is returned if the Cancel-button is pressed.

warningContinueCancelList

public static int warningContinueCancelList(org.kde.qt.QWidget parent,
                                            java.lang.String text,
                                            java.lang.String[] strlist,
                                            java.lang.String caption,
                                            KGuiItem buttonContinue,
                                            java.lang.String dontAskAgainName)

warningContinueCancelList

public static int warningContinueCancelList(org.kde.qt.QWidget parent,
                                            java.lang.String text,
                                            java.lang.String[] strlist,
                                            java.lang.String caption,
                                            KGuiItem buttonContinue)

warningContinueCancelList

public static int warningContinueCancelList(org.kde.qt.QWidget parent,
                                            java.lang.String text,
                                            java.lang.String[] strlist,
                                            java.lang.String caption)

warningContinueCancelList

public static int warningContinueCancelList(org.kde.qt.QWidget parent,
                                            java.lang.String text,
                                            java.lang.String[] strlist)

warningContinueCancelListWId

public static int warningContinueCancelListWId(long parent_id,
                                               java.lang.String text,
                                               java.lang.String[] strlist,
                                               java.lang.String caption,
                                               KGuiItem buttonContinue,
                                               java.lang.String dontAskAgainName,
                                               int options)
This function accepts the window id of the parent window, instead of QWidget. It should be used only when necessary.


warningContinueCancelListWId

public static int warningContinueCancelListWId(long parent_id,
                                               java.lang.String text,
                                               java.lang.String[] strlist,
                                               java.lang.String caption,
                                               KGuiItem buttonContinue,
                                               java.lang.String dontAskAgainName)

warningContinueCancelListWId

public static int warningContinueCancelListWId(long parent_id,
                                               java.lang.String text,
                                               java.lang.String[] strlist,
                                               java.lang.String caption,
                                               KGuiItem buttonContinue)

warningContinueCancelListWId

public static int warningContinueCancelListWId(long parent_id,
                                               java.lang.String text,
                                               java.lang.String[] strlist,
                                               java.lang.String caption)

warningContinueCancelListWId

public static int warningContinueCancelListWId(long parent_id,
                                               java.lang.String text,
                                               java.lang.String[] strlist)

warningYesNoCancel

public static int warningYesNoCancel(org.kde.qt.QWidget parent,
                                     java.lang.String text,
                                     java.lang.String caption,
                                     KGuiItem buttonYes,
                                     KGuiItem buttonNo,
                                     java.lang.String dontAskAgainName,
                                     int options)
Display a Yes/No/Cancel "warning" dialog.

Parameters:
parent - If 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.
text - Message string.
caption - Message box title. The application name is added to the title. The default title is i18n("Warning").
buttonYes - The text for the first button. The default is i18n("&Yes").
buttonNo - The text for the second button. The default is i18n("&No").
dontAskAgainName - If 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.
options - see OptionsType 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'.
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.

warningYesNoCancel

public static int warningYesNoCancel(org.kde.qt.QWidget parent,
                                     java.lang.String text,
                                     java.lang.String caption,
                                     KGuiItem buttonYes,
                                     KGuiItem buttonNo,
                                     java.lang.String dontAskAgainName)

warningYesNoCancel

public static int warningYesNoCancel(org.kde.qt.QWidget parent,
                                     java.lang.String text,
                                     java.lang.String caption,
                                     KGuiItem buttonYes,
                                     KGuiItem buttonNo)

warningYesNoCancel

public static int warningYesNoCancel(org.kde.qt.QWidget parent,
                                     java.lang.String text,
                                     java.lang.String caption,
                                     KGuiItem buttonYes)

warningYesNoCancel

public static int warningYesNoCancel(org.kde.qt.QWidget parent,
                                     java.lang.String text,
                                     java.lang.String caption)

warningYesNoCancel

public static int warningYesNoCancel(org.kde.qt.QWidget parent,
                                     java.lang.String text)

warningYesNoCancelWId

public static int warningYesNoCancelWId(long parent_id,
                                        java.lang.String text,
                                        java.lang.String caption,
                                        KGuiItem buttonYes,
                                        KGuiItem buttonNo,
                                        java.lang.String dontAskAgainName,
                                        int options)
This function accepts the window id of the parent window, instead of QWidget. It should be used only when necessary.


warningYesNoCancelWId

public static int warningYesNoCancelWId(long parent_id,
                                        java.lang.String text,
                                        java.lang.String caption,
                                        KGuiItem buttonYes,
                                        KGuiItem buttonNo,
                                        java.lang.String dontAskAgainName)

warningYesNoCancelWId

public static int warningYesNoCancelWId(long parent_id,
                                        java.lang.String text,
                                        java.lang.String caption,
                                        KGuiItem buttonYes,
                                        KGuiItem buttonNo)

warningYesNoCancelWId

public static int warningYesNoCancelWId(long parent_id,
                                        java.lang.String text,
                                        java.lang.String caption,
                                        KGuiItem buttonYes)

warningYesNoCancelWId

public static int warningYesNoCancelWId(long parent_id,
                                        java.lang.String text,
                                        java.lang.String caption)

warningYesNoCancelWId

public static int warningYesNoCancelWId(long parent_id,
                                        java.lang.String text)

warningYesNoCancelList

public static int warningYesNoCancelList(org.kde.qt.QWidget parent,
                                         java.lang.String text,
                                         java.lang.String[] strlist,
                                         java.lang.String caption,
                                         KGuiItem buttonYes,
                                         KGuiItem buttonNo,
                                         java.lang.String dontAskAgainName,
                                         int options)
Display a Yes/No/Cancel "warning" dialog with a listbox to show information to the user.

Parameters:
parent - If 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.
text - Message string.
strlist - List of strings to be written in the listbox. If the list is empty, it doesn't show any listbox, working as warningYesNoCancel.
caption - Message box title. The application name is added to the title. The default title is i18n("Warning").
buttonYes - The text for the first button. The default is i18n("&Yes").
buttonNo - The text for the second button. The default is i18n("&No").
dontAskAgainName - If 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.
options - see OptionsType 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'.
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.

warningYesNoCancelList

public static int warningYesNoCancelList(org.kde.qt.QWidget parent,
                                         java.lang.String text,
                                         java.lang.String[] strlist,
                                         java.lang.String caption,
                                         KGuiItem buttonYes,
                                         KGuiItem buttonNo,
                                         java.lang.String dontAskAgainName)

warningYesNoCancelList

public static int warningYesNoCancelList(org.kde.qt.QWidget parent,
                                         java.lang.String text,
                                         java.lang.String[] strlist,
                                         java.lang.String caption,
                                         KGuiItem buttonYes,
                                         KGuiItem buttonNo)

warningYesNoCancelList

public static int warningYesNoCancelList(org.kde.qt.QWidget parent,
                                         java.lang.String text,
                                         java.lang.String[] strlist,
                                         java.lang.String caption,
                                         KGuiItem buttonYes)

warningYesNoCancelList

public static int warningYesNoCancelList(org.kde.qt.QWidget parent,
                                         java.lang.String text,
                                         java.lang.String[] strlist,
                                         java.lang.String caption)

warningYesNoCancelList

public static int warningYesNoCancelList(org.kde.qt.QWidget parent,
                                         java.lang.String text,
                                         java.lang.String[] strlist)

warningYesNoCancelListWId

public static int warningYesNoCancelListWId(long parent_id,
                                            java.lang.String text,
                                            java.lang.String[] strlist,
                                            java.lang.String caption,
                                            KGuiItem buttonYes,
                                            KGuiItem buttonNo,
                                            java.lang.String dontAskAgainName,
                                            int options)
This function accepts the window id of the parent window, instead of QWidget. It should be used only when necessary.


warningYesNoCancelListWId

public static int warningYesNoCancelListWId(long parent_id,
                                            java.lang.String text,
                                            java.lang.String[] strlist,
                                            java.lang.String caption,
                                            KGuiItem buttonYes,
                                            KGuiItem buttonNo,
                                            java.lang.String dontAskAgainName)

warningYesNoCancelListWId

public static int warningYesNoCancelListWId(long parent_id,
                                            java.lang.String text,
                                            java.lang.String[] strlist,
                                            java.lang.String caption,
                                            KGuiItem buttonYes,
                                            KGuiItem buttonNo)

warningYesNoCancelListWId

public static int warningYesNoCancelListWId(long parent_id,
                                            java.lang.String text,
                                            java.lang.String[] strlist,
                                            java.lang.String caption,
                                            KGuiItem buttonYes)

warningYesNoCancelListWId

public static int warningYesNoCancelListWId(long parent_id,
                                            java.lang.String text,
                                            java.lang.String[] strlist,
                                            java.lang.String caption)

warningYesNoCancelListWId

public static int warningYesNoCancelListWId(long parent_id,
                                            java.lang.String text,
                                            java.lang.String[] strlist)

error

public static void error(org.kde.qt.QWidget parent,
                         java.lang.String text,
                         java.lang.String caption,
                         int options)
Display an "Error" dialog.

Parameters:
parent - If 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.
text - Message string.
caption - Message box title. The application name is added to the title. The default title is i18n("Error").
options - see 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'.

error

public static void error(org.kde.qt.QWidget parent,
                         java.lang.String text,
                         java.lang.String caption)

error

public static void error(org.kde.qt.QWidget parent,
                         java.lang.String text)

errorWId

public static void errorWId(long parent_id,
                            java.lang.String text,
                            java.lang.String caption,
                            int options)
This function accepts the window id of the parent window, instead of QWidget. It should be used only when necessary.


errorWId

public static void errorWId(long parent_id,
                            java.lang.String text,
                            java.lang.String caption)

errorWId

public static void errorWId(long parent_id,
                            java.lang.String text)

errorList

public static void errorList(org.kde.qt.QWidget parent,
                             java.lang.String text,
                             java.lang.String[] strlist,
                             java.lang.String caption,
                             int options)
Display an "Error" dialog with a listbox.

Parameters:
parent - If 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.
text - Message string.
strlist - List of strings to be written in the listbox. If the list is empty, it doesn't show any listbox, working as error().
caption - Message box title. The application name is added to the title. The default title is i18n("Error").
options - see 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'.

errorList

public static void errorList(org.kde.qt.QWidget parent,
                             java.lang.String text,
                             java.lang.String[] strlist,
                             java.lang.String caption)

errorList

public static void errorList(org.kde.qt.QWidget parent,
                             java.lang.String text,
                             java.lang.String[] strlist)

errorListWId

public static void errorListWId(long parent_id,
                                java.lang.String text,
                                java.lang.String[] strlist,
                                java.lang.String caption,
                                int options)
This function accepts the window id of the parent window, instead of QWidget. It should be used only when necessary.


errorListWId

public static void errorListWId(long parent_id,
                                java.lang.String text,
                                java.lang.String[] strlist,
                                java.lang.String caption)

errorListWId

public static void errorListWId(long parent_id,
                                java.lang.String text,
                                java.lang.String[] strlist)

detailedError

public static void detailedError(org.kde.qt.QWidget parent,
                                 java.lang.String text,
                                 java.lang.String details,
                                 java.lang.String caption,
                                 int options)
Displays an "Error" dialog with a "Details >>" button.

Parameters:
parent - If 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.
text - Message string.
details - Detailed message string.
caption - Message box title. The application name is added to the title. The default title is i18n("Error").
options - see 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'.

detailedError

public static void detailedError(org.kde.qt.QWidget parent,
                                 java.lang.String text,
                                 java.lang.String details,
                                 java.lang.String caption)

detailedError

public static void detailedError(org.kde.qt.QWidget parent,
                                 java.lang.String text,
                                 java.lang.String details)

detailedErrorWId

public static void detailedErrorWId(long parent_id,
                                    java.lang.String text,
                                    java.lang.String details,
                                    java.lang.String caption,
                                    int options)
This function accepts the window id of the parent window, instead of QWidget. It should be used only when necessary.


detailedErrorWId

public static void detailedErrorWId(long parent_id,
                                    java.lang.String text,
                                    java.lang.String details,
                                    java.lang.String caption)

detailedErrorWId

public static void detailedErrorWId(long parent_id,
                                    java.lang.String text,
                                    java.lang.String details)

queuedDetailedError

public static void queuedDetailedError(org.kde.qt.QWidget parent,
                                       java.lang.String text,
                                       java.lang.String details,
                                       java.lang.String caption)
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.


queuedDetailedError

public static void queuedDetailedError(org.kde.qt.QWidget parent,
                                       java.lang.String text,
                                       java.lang.String details)

queuedDetailedErrorWId

public static void queuedDetailedErrorWId(long parent_id,
                                          java.lang.String text,
                                          java.lang.String details,
                                          java.lang.String caption)
This function accepts the window id of the parent window, instead of QWidget. It should be used only when necessary.


queuedDetailedErrorWId

public static void queuedDetailedErrorWId(long parent_id,
                                          java.lang.String text,
                                          java.lang.String details)

sorry

public static void sorry(org.kde.qt.QWidget parent,
                         java.lang.String text,
                         java.lang.String caption,
                         int options)
Display an "Sorry" dialog.

Parameters:
parent - If 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.
text - Message string.
caption - Message box title. The application name is added to the title. The default title is i18n("Sorry").
options - see 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'.

sorry

public static void sorry(org.kde.qt.QWidget parent,
                         java.lang.String text,
                         java.lang.String caption)

sorry

public static void sorry(org.kde.qt.QWidget parent,
                         java.lang.String text)

sorryWId

public static void sorryWId(long parent_id,
                            java.lang.String text,
                            java.lang.String caption,
                            int options)
This function accepts the window id of the parent window, instead of QWidget. It should be used only when necessary.


sorryWId

public static void sorryWId(long parent_id,
                            java.lang.String text,
                            java.lang.String caption)

sorryWId

public static void sorryWId(long parent_id,
                            java.lang.String text)

detailedSorry

public static void detailedSorry(org.kde.qt.QWidget parent,
                                 java.lang.String text,
                                 java.lang.String details,
                                 java.lang.String caption,
                                 int options)
Displays a "Sorry" dialog with a "Details >>" button.

Parameters:
parent - If 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.
text - Message string.
details - Detailed message string.
caption - Message box title. The application name is added to the title. The default title is i18n("Sorry").
options - see 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'.

detailedSorry

public static void detailedSorry(org.kde.qt.QWidget parent,
                                 java.lang.String text,
                                 java.lang.String details,
                                 java.lang.String caption)

detailedSorry

public static void detailedSorry(org.kde.qt.QWidget parent,
                                 java.lang.String text,
                                 java.lang.String details)

detailedSorryWId

public static void detailedSorryWId(long parent_id,
                                    java.lang.String text,
                                    java.lang.String details,
                                    java.lang.String caption,
                                    int options)
This function accepts the window id of the parent window, instead of QWidget. It should be used only when necessary.


detailedSorryWId

public static void detailedSorryWId(long parent_id,
                                    java.lang.String text,
                                    java.lang.String details,
                                    java.lang.String caption)

detailedSorryWId

public static void detailedSorryWId(long parent_id,
                                    java.lang.String text,
                                    java.lang.String details)

information

public static void information(org.kde.qt.QWidget parent,
                               java.lang.String text,
                               java.lang.String caption,
                               java.lang.String dontShowAgainName,
                               int options)
Display an "Information" dialog.

Parameters:
parent - If 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.
text - Message string.
caption - Message box title. The application name is added to the title. The default title is i18n("Information").
dontShowAgainName - If 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.
options - see 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'.

information

public static void information(org.kde.qt.QWidget parent,
                               java.lang.String text,
                               java.lang.String caption,
                               java.lang.String dontShowAgainName)

information

public static void information(org.kde.qt.QWidget parent,
                               java.lang.String text,
                               java.lang.String caption)

information

public static void information(org.kde.qt.QWidget parent,
                               java.lang.String text)

informationWId

public static void informationWId(long parent_id,
                                  java.lang.String text,
                                  java.lang.String caption,
                                  java.lang.String dontShowAgainName,
                                  int options)
This function accepts the window id of the parent window, instead of QWidget. It should be used only when necessary.


informationWId

public static void informationWId(long parent_id,
                                  java.lang.String text,
                                  java.lang.String caption,
                                  java.lang.String dontShowAgainName)

informationWId

public static void informationWId(long parent_id,
                                  java.lang.String text,
                                  java.lang.String caption)

informationWId

public static void informationWId(long parent_id,
                                  java.lang.String text)

informationList

public static void informationList(org.kde.qt.QWidget parent,
                                   java.lang.String text,
                                   java.lang.String[] strlist,
                                   java.lang.String caption,
                                   java.lang.String dontShowAgainName,
                                   int options)
Display an "Information" dialog with a listbox.

Parameters:
parent - If 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.
text - Message string.
strlist - List of strings to be written in the listbox. If the list is empty, it doesn't show any listbox, working as information.
caption - Message box title. The application name is added to the title. The default title is i18n("Information").
dontShowAgainName - If 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.
options - see 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'.

informationList

public static void informationList(org.kde.qt.QWidget parent,
                                   java.lang.String text,
                                   java.lang.String[] strlist,
                                   java.lang.String caption,
                                   java.lang.String dontShowAgainName)

informationList

public static void informationList(org.kde.qt.QWidget parent,
                                   java.lang.String text,
                                   java.lang.String[] strlist,
                                   java.lang.String caption)

informationList

public static void informationList(org.kde.qt.QWidget parent,
                                   java.lang.String text,
                                   java.lang.String[] strlist)

informationListWId

public static void informationListWId(long parent_id,
                                      java.lang.String text,
                                      java.lang.String[] strlist,
                                      java.lang.String caption,
                                      java.lang.String dontShowAgainName,
                                      int options)
This function accepts the window id of the parent window, instead of QWidget. It should be used only when necessary.


informationListWId

public static void informationListWId(long parent_id,
                                      java.lang.String text,
                                      java.lang.String[] strlist,
                                      java.lang.String caption,
                                      java.lang.String dontShowAgainName)

informationListWId

public static void informationListWId(long parent_id,
                                      java.lang.String text,
                                      java.lang.String[] strlist,
                                      java.lang.String caption)

informationListWId

public static void informationListWId(long parent_id,
                                      java.lang.String text,
                                      java.lang.String[] strlist)

enableAllMessages

public static void enableAllMessages()
Enable all messages which have been turned off with the dontShowAgainName feature.


enableMessage

public static void enableMessage(java.lang.String dontShowAgainName)
Re-enable a specific dontShowAgainName messages that had previously been turned off.

See Also:
saveDontShowAgainYesNo(java.lang.String, int), saveDontShowAgainContinue(java.lang.String)

about

public static void about(org.kde.qt.QWidget parent,
                         java.lang.String text,
                         java.lang.String caption,
                         int options)
Display an "About" dialog.

Parameters:
parent - If 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.
text - Message string.
caption - Message box title. The application name is added to the title. The default title is i18n("About \").
options - see 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'.

about

public static void about(org.kde.qt.QWidget parent,
                         java.lang.String text,
                         java.lang.String caption)

about

public static void about(org.kde.qt.QWidget parent,
                         java.lang.String text)

messageBox

public static int messageBox(org.kde.qt.QWidget parent,
                             int type,
                             java.lang.String text,
                             java.lang.String caption,
                             KGuiItem buttonYes,
                             KGuiItem buttonNo,
                             java.lang.String dontShowAskAgainName,
                             int options)
Alternate method to show a messagebox:

Parameters:
parent - If 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.
type - type of message box: QuestionYesNo, WarningYesNo, WarningContinueCancel...
text - Message string.
caption - Message box title.
buttonYes - The text for the first button. The default is i18n("&Yes").
buttonNo - The text for the second button. The default is i18n("&No").
dontShowAskAgainName - If 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.
options - see 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.

messageBox

public static int messageBox(org.kde.qt.QWidget parent,
                             int type,
                             java.lang.String text,
                             java.lang.String caption,
                             KGuiItem buttonYes,
                             KGuiItem buttonNo,
                             java.lang.String dontShowAskAgainName)

messageBox

public static int messageBox(org.kde.qt.QWidget parent,
                             int type,
                             java.lang.String text,
                             java.lang.String caption,
                             KGuiItem buttonYes,
                             KGuiItem buttonNo,
                             int options)
Alternate method to show a messagebox:

Parameters:
parent - If 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.
type - type of message box: QuestionYesNo, WarningYesNo, WarningContinueCancel...
text - Message string.
caption - Message box title.
buttonYes - The text for the first button. The default is i18n("&Yes").
buttonNo - The text for the second button. The default is i18n("&No").
options - see 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.

messageBox

public static int messageBox(org.kde.qt.QWidget parent,
                             int type,
                             java.lang.String text,
                             java.lang.String caption,
                             KGuiItem buttonYes,
                             KGuiItem buttonNo)

messageBox

public static int messageBox(org.kde.qt.QWidget parent,
                             int type,
                             java.lang.String text,
                             java.lang.String caption,
                             KGuiItem buttonYes)

messageBox

public static int messageBox(org.kde.qt.QWidget parent,
                             int type,
                             java.lang.String text,
                             java.lang.String caption)

messageBox

public static int messageBox(org.kde.qt.QWidget parent,
                             int type,
                             java.lang.String text)

messageBoxWId

public static int messageBoxWId(long parent_id,
                                int type,
                                java.lang.String text,
                                java.lang.String caption,
                                KGuiItem buttonYes,
                                KGuiItem buttonNo,
                                java.lang.String dontShowAskAgainName,
                                int options)
This function accepts the window id of the parent window, instead of QWidget. It should be used only when necessary.


messageBoxWId

public static int messageBoxWId(long parent_id,
                                int type,
                                java.lang.String text,
                                java.lang.String caption,
                                KGuiItem buttonYes,
                                KGuiItem buttonNo,
                                java.lang.String dontShowAskAgainName)

messageBoxWId

public static int messageBoxWId(long parent_id,
                                int type,
                                java.lang.String text,
                                java.lang.String caption,
                                KGuiItem buttonYes,
                                KGuiItem buttonNo)

messageBoxWId

public static int messageBoxWId(long parent_id,
                                int type,
                                java.lang.String text,
                                java.lang.String caption,
                                KGuiItem buttonYes)

messageBoxWId

public static int messageBoxWId(long parent_id,
                                int type,
                                java.lang.String text,
                                java.lang.String caption)

messageBoxWId

public static int messageBoxWId(long parent_id,
                                int type,
                                java.lang.String text)

queuedMessageBox

public static void queuedMessageBox(org.kde.qt.QWidget parent,
                                    int type,
                                    java.lang.String text,
                                    java.lang.String caption,
                                    int options)
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.


queuedMessageBoxWId

public static void queuedMessageBoxWId(long parent_id,
                                       int type,
                                       java.lang.String text,
                                       java.lang.String caption,
                                       int options)
This function accepts the window id of the parent window, instead of QWidget. It should be used only when necessary.


queuedMessageBox

public static void queuedMessageBox(org.kde.qt.QWidget parent,
                                    int type,
                                    java.lang.String text,
                                    java.lang.String caption)

queuedMessageBox

public static void queuedMessageBox(org.kde.qt.QWidget parent,
                                    int type,
                                    java.lang.String text)

queuedMessageBoxWId

public static void queuedMessageBoxWId(long parent_id,
                                       int type,
                                       java.lang.String text,
                                       java.lang.String caption)
This function accepts the window id of the parent window, instead of QWidget. It should be used only when necessary.


queuedMessageBoxWId

public static void queuedMessageBoxWId(long parent_id,
                                       int type,
                                       java.lang.String text)

shouldBeShownYesNo

public static boolean shouldBeShownYesNo(java.lang.String dontShowAgainName,
                                         int result)
Parameters:
dontShowAgainName - the name that identify the message box. If empty, true is always returned.
result - is 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.
Returns:
true if the corresponding yes/no message box should be shown.

shouldBeShownContinue

public static boolean shouldBeShownContinue(java.lang.String dontShowAgainName)
Parameters:
dontShowAgainName - the name that identify the message box. If empty, true is always returned.
Returns:
true if the corresponding continue/cancel message box should be shown.

saveDontShowAgainYesNo

public static void saveDontShowAgainYesNo(java.lang.String dontShowAgainName,
                                          int result)
Save the fact that the yes/no message box should not be shown again.

Parameters:
dontShowAgainName - the name that identify the message box. If empty, this method does nothing.
result - the value (Yes or No) that should be used as the result for the message box.

saveDontShowAgainContinue

public static void saveDontShowAgainContinue(java.lang.String dontShowAgainName)
Save the fact that the continue/cancel message box should not be shown again.

Parameters:
dontShowAgainName - the name that identify the message box. If empty, this method does nothing.

setDontShowAskAgainConfig

public static void setDontShowAskAgainConfig(KConfig cfg)
Use cfg for all settings related to the dontShowAgainName feature. If cfg is 0 (default) KGlobal.config() will be used.


createKMessageBox

public static int createKMessageBox(KDialogBase dialog,
                                    int icon,
                                    java.lang.String text,
                                    java.lang.String[] strlist,
                                    java.lang.String ask,
                                    boolean[] checkboxReturn,
                                    int options,
                                    java.lang.String details)
Create content and layout of a standard dialog

Parameters:
dialog - The parent dialog base
icon - Which predefined icon the message box shall show.
text - Message string.
strlist - List of strings to be written in the listbox. If the list is empty, it doesn't show any listbox
ask - The text of the checkbox. If empty none will be shown.
checkboxReturn - The result of the checkbox. If it's initially true then the checkbox will be checked by default.
options - see OptionsType
details - Detailed message string.
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.

createKMessageBox

public static int createKMessageBox(KDialogBase dialog,
                                    int icon,
                                    java.lang.String text,
                                    java.lang.String[] strlist,
                                    java.lang.String ask,
                                    boolean[] checkboxReturn,
                                    int options)

createKMessageBox

public static int createKMessageBox(KDialogBase dialog,
                                    org.kde.qt.QPixmap icon,
                                    java.lang.String text,
                                    java.lang.String[] strlist,
                                    java.lang.String ask,
                                    boolean[] checkboxReturn,
                                    int options,
                                    java.lang.String details,
                                    int notifyType)
Create content and layout of a standard dialog

Parameters:
dialog - The parent dialog base
icon - A QPixmap containing the icon to be displayed in the dialog next to the text.
text - Message string.
strlist - List of strings to be written in the listbox. If the list is empty, it doesn't show any listbox
ask - The text of the checkbox. If empty none will be shown.
checkboxReturn - The result of the checkbox. If it's initially true then the checkbox will be checked by default.
options - see OptionsType
details - Detailed message string.
notifyType - The type of notification to send when this message is presentend.
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.

createKMessageBox

public static int createKMessageBox(KDialogBase dialog,
                                    org.kde.qt.QPixmap icon,
                                    java.lang.String text,
                                    java.lang.String[] strlist,
                                    java.lang.String ask,
                                    boolean[] checkboxReturn,
                                    int options,
                                    java.lang.String details)

createKMessageBox

public static int createKMessageBox(KDialogBase dialog,
                                    org.kde.qt.QPixmap icon,
                                    java.lang.String text,
                                    java.lang.String[] strlist,
                                    java.lang.String ask,
                                    boolean[] checkboxReturn,
                                    int options)

finalize

protected void finalize()
                 throws java.lang.InternalError
Deletes the wrapped C++ instance

Overrides:
finalize in class java.lang.Object
Throws:
java.lang.InternalError

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()


isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?