25 #include <QtGui/QMessageBox>
81 WarningContinueCancel = 3,
82 WarningYesNoCancel = 4,
87 QuestionYesNoCancel = 9
100 Q_DECLARE_FLAGS(Options,
Option)
130 static
int questionYesNo(
QWidget *parent,
133 const
KGuiItem &buttonYes = KStandardGuiItem::
yes(),
134 const
KGuiItem &buttonNo = KStandardGuiItem::
no(),
135 const QString &dontAskAgainName = QString(),
136 Options options = Notify);
141 static
int questionYesNoWId(WId parent_id,
143 const QString &caption = QString(),
144 const
KGuiItem &buttonYes = KStandardGuiItem::yes(),
145 const
KGuiItem &buttonNo = KStandardGuiItem::no(),
146 const QString &dontAskAgainName = QString(),
147 Options options = Notify);
178 static
int questionYesNoCancel(
QWidget *parent,
180 const QString &caption = QString(),
181 const
KGuiItem &buttonYes = KStandardGuiItem::yes(),
182 const
KGuiItem &buttonNo = KStandardGuiItem::no(),
184 const QString &dontAskAgainName = QString(),
185 Options options = Notify);
191 static
int questionYesNoCancelWId(WId parent_id,
193 const QString &caption = QString(),
194 const
KGuiItem &buttonYes = KStandardGuiItem::yes(),
195 const
KGuiItem &buttonNo = KStandardGuiItem::no(),
196 const
KGuiItem &buttonCancel = KStandardGuiItem::cancel(),
197 const QString &dontAskAgainName = QString(),
198 Options options = Notify);
232 static
int questionYesNoList(
QWidget *parent,
235 const QString &caption = QString(),
236 const
KGuiItem &buttonYes = KStandardGuiItem::yes(),
237 const
KGuiItem &buttonNo = KStandardGuiItem::no(),
238 const QString &dontAskAgainName = QString(),
239 Options options = Notify);
245 static
int questionYesNoListWId(WId parent_id,
248 const QString &caption = QString(),
249 const
KGuiItem &buttonYes = KStandardGuiItem::yes(),
250 const
KGuiItem &buttonNo = KStandardGuiItem::no(),
251 const QString &dontAskAgainName = QString(),
252 Options options = Notify);
282 static
int warningYesNo(
QWidget *parent,
284 const QString &caption = QString(),
285 const
KGuiItem &buttonYes = KStandardGuiItem::yes(),
286 const
KGuiItem &buttonNo = KStandardGuiItem::no(),
287 const QString &dontAskAgainName = QString(),
288 Options options = Options(Notify | Dangerous));
294 static
int warningYesNoWId(WId parent_id,
296 const QString &caption = QString(),
297 const
KGuiItem &buttonYes = KStandardGuiItem::yes(),
298 const
KGuiItem &buttonNo = KStandardGuiItem::no(),
299 const QString &dontAskAgainName = QString(),
300 Options options = Options(Notify | Dangerous));
334 static
int warningYesNoList(
QWidget *parent,
337 const QString &caption = QString(),
338 const
KGuiItem &buttonYes = KStandardGuiItem::yes(),
339 const
KGuiItem &buttonNo = KStandardGuiItem::no(),
340 const QString &dontAskAgainName = QString(),
341 Options options = Options(Notify | Dangerous));
347 static
int warningYesNoListWId(WId parent_id,
350 const QString &caption = QString(),
351 const
KGuiItem &buttonYes = KStandardGuiItem::yes(),
352 const
KGuiItem &buttonNo = KStandardGuiItem::no(),
353 const QString &dontAskAgainName = QString(),
354 Options options = Options(Notify | Dangerous));
384 static
int warningContinueCancel(
QWidget *parent,
386 const QString &caption = QString(),
387 const
KGuiItem &buttonContinue = KStandardGuiItem::
cont(),
388 const
KGuiItem &buttonCancel = KStandardGuiItem::cancel(),
389 const QString &dontAskAgainName = QString(),
390 Options options = Notify);
396 static
int warningContinueCancelWId(WId parent_id,
398 const QString &caption = QString(),
399 const
KGuiItem &buttonContinue = KStandardGuiItem::cont(),
400 const
KGuiItem &buttonCancel = KStandardGuiItem::cancel(),
401 const QString &dontAskAgainName = QString(),
402 Options options = Notify);
436 static
int warningContinueCancelList(
QWidget *parent,
439 const QString &caption = QString(),
440 const
KGuiItem &buttonContinue = KStandardGuiItem::cont(),
441 const
KGuiItem &buttonCancel = KStandardGuiItem::cancel(),
442 const QString &dontAskAgainName = QString(),
443 Options options = Notify);
449 static
int warningContinueCancelListWId(WId parent_id,
452 const QString &caption = QString(),
453 const
KGuiItem &buttonContinue = KStandardGuiItem::cont(),
454 const
KGuiItem &buttonCancel = KStandardGuiItem::cancel(),
455 const QString &dontAskAgainName = QString(),
456 Options options = Notify);
492 static
int warningYesNoCancel(
QWidget *parent,
494 const QString &caption = QString(),
495 const
KGuiItem &buttonYes = KStandardGuiItem::yes(),
496 const
KGuiItem &buttonNo = KStandardGuiItem::no(),
497 const
KGuiItem &buttonCancel = KStandardGuiItem::cancel(),
498 const QString &dontAskAgainName = QString(),
499 Options options = Notify);
505 static
int warningYesNoCancelWId(WId parent_id,
507 const QString &caption = QString(),
508 const
KGuiItem &buttonYes = KStandardGuiItem::yes(),
509 const
KGuiItem &buttonNo = KStandardGuiItem::no(),
510 const
KGuiItem &buttonCancel = KStandardGuiItem::cancel(),
511 const QString &dontAskAgainName = QString(),
512 Options options = Notify);
551 static
int warningYesNoCancelList(
QWidget *parent,
554 const QString &caption = QString(),
555 const
KGuiItem &buttonYes = KStandardGuiItem::yes(),
556 const
KGuiItem &buttonNo = KStandardGuiItem::no(),
557 const
KGuiItem &buttonCancel = KStandardGuiItem::cancel(),
558 const QString &dontAskAgainName = QString(),
559 Options options = Notify);
565 static
int warningYesNoCancelListWId(WId parent_id,
568 const QString &caption = QString(),
569 const
KGuiItem &buttonYes = KStandardGuiItem::yes(),
570 const
KGuiItem &buttonNo = KStandardGuiItem::no(),
571 const
KGuiItem &buttonCancel = KStandardGuiItem::cancel(),
572 const QString &dontAskAgainName = QString(),
573 Options options = Notify);
596 static
void error(
QWidget *parent,
598 const QString &caption = QString(),
599 Options options = Notify);
605 static
void errorWId(WId parent_id,
607 const QString &caption = QString(),
608 Options options = Notify);
634 static
void errorList(
QWidget *parent,
637 const QString &caption = QString(),
638 Options options = Notify);
645 static
void errorListWId(WId parent_id,
648 const QString &caption = QString(),
649 Options options = Notify);
675 static
void detailedError(
QWidget *parent,
677 const QString &details,
678 const QString &caption = QString(),
679 Options options = Notify);
685 static
void detailedErrorWId(WId parent_id,
687 const QString &details,
688 const QString &caption = QString(),
689 Options options = Notify);
701 static
void queuedDetailedError(
QWidget *parent,
703 const QString &details,
704 const QString &caption = QString());
710 static
void queuedDetailedErrorWId( WId parent_id,
712 const QString &details,
713 const QString &caption = QString());
735 static
void sorry(
QWidget *parent,
737 const QString &caption = QString(),
738 Options options = Notify);
744 static
void sorryWId(WId parent_id,
746 const QString &caption = QString(),
747 Options options = Notify);
775 static
void detailedSorry(
QWidget *parent,
777 const QString &details,
778 const QString &caption = QString(),
779 Options options = Notify);
785 static
void detailedSorryWId(WId parent_id,
787 const QString &details,
788 const QString &caption = QString(),
789 Options options = Notify);
815 static
void information(
QWidget *parent,
817 const QString &caption = QString(),
818 const QString &dontShowAgainName = QString(),
819 Options options = Notify);
825 static
void informationWId(WId parent_id,
827 const QString &caption = QString(),
828 const QString &dontShowAgainName = QString(),
829 Options options = Notify);
858 static
void informationList(
QWidget *parent,
861 const QString &caption = QString(),
862 const QString &dontShowAgainName = QString(),
863 Options options = Notify);
869 static
void informationListWId(WId parent_id,
872 const QString &caption = QString(),
873 const QString &dontShowAgainName = QString(),
874 Options options = Notify);
880 static
void enableAllMessages();
888 static
void enableMessage(const QString &dontShowAgainName);
907 static
void about(
QWidget *parent,
909 const QString& caption = QString(),
910 Options options = Notify);
937 static
int messageBox(
QWidget *parent, DialogType type, const QString &text,
938 const QString &caption = QString(),
939 const
KGuiItem &buttonYes = KStandardGuiItem::yes(),
940 const
KGuiItem &buttonNo = KStandardGuiItem::no(),
941 const
KGuiItem &buttonCancel = KStandardGuiItem::cancel(),
942 const QString &dontShowAskAgainName = QString(),
943 Options options = Notify);
949 static
int messageBoxWId( WId parent_id, DialogType type, const QString &text,
950 const QString &caption = QString(),
951 const
KGuiItem &buttonYes = KStandardGuiItem::yes(),
952 const
KGuiItem &buttonNo = KStandardGuiItem::no(),
953 const
KGuiItem &buttonCancel = KStandardGuiItem::cancel(),
954 const QString &dontShowAskAgainName = QString(),
955 Options options = Notify);
969 static
void queuedMessageBox(
QWidget *parent,
970 DialogType type, const QString &text,
971 const QString &caption,
978 static
void queuedMessageBoxWId( WId parent_id,
979 DialogType type, const QString &text,
980 const QString &caption,
989 static
void queuedMessageBox(
QWidget *parent,
990 DialogType type, const QString &text,
991 const QString &caption = QString() );
997 static
void queuedMessageBoxWId( WId parent_id,
998 DialogType type, const QString &text,
999 const QString &caption = QString() );
1009 static
bool shouldBeShownYesNo(const QString &dontShowAgainName,
1010 ButtonCode &result);
1017 static
bool shouldBeShownContinue(const QString &dontShowAgainName);
1026 static
void saveDontShowAgainYesNo(const QString &dontShowAgainName,
1035 static
void saveDontShowAgainContinue(const QString &dontShowAgainName);
1041 static
void setDontShowAskAgainConfig(
KConfig* cfg);
1067 static
int createKMessageBox(
KDialog *dialog, QMessageBox::Icon icon,
1069 const QString &ask,
bool *checkboxReturn,
1070 Options options, const QString &details=QString());
1099 static
int createKMessageBox(
KDialog *dialog, const QIcon &icon,
1101 const QString &ask,
bool *checkboxReturn,
1102 Options options, const QString &details=QString(),
1103 QMessageBox::Icon notifyType=QMessageBox::Information);
1106 Q_DECLARE_OPERATORS_FOR_FLAGS(
KMessageBox::Options)
KGuiItem cancel()
Returns the 'Cancel' gui item.
A dialog base class with standard buttons and predefined layouts.
An abstract class for GUI data such as ToolTip and Icon.
KGuiItem no()
Returns the 'No' gui item.
KGuiItem cont()
Returns the 'Continue' gui item.
KGuiItem yes()
Returns the 'Yes' gui item.