diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:20:29 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:20:29 +0200 |
commit | b8f13e45be884dc12884ebe8f3dcd9eecb23a106 (patch) | |
tree | 22a6d8b96815d626061ff3e2d432c13078fca5c4 /ui/msg_popup.h | |
parent | 5.4 (diff) | |
download | FreeFileSync-b8f13e45be884dc12884ebe8f3dcd9eecb23a106.tar.gz FreeFileSync-b8f13e45be884dc12884ebe8f3dcd9eecb23a106.tar.bz2 FreeFileSync-b8f13e45be884dc12884ebe8f3dcd9eecb23a106.zip |
5.5
Diffstat (limited to 'ui/msg_popup.h')
-rw-r--r-- | ui/msg_popup.h | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/ui/msg_popup.h b/ui/msg_popup.h index 19a3c84f..48a4e8cb 100644 --- a/ui/msg_popup.h +++ b/ui/msg_popup.h @@ -21,19 +21,30 @@ struct ReturnErrorDlg { BUTTON_IGNORE = 1, BUTTON_RETRY = 2, - BUTTON_ABORT = 4 + BUTTON_CANCEL = 4 }; }; ReturnErrorDlg::ButtonPressed showErrorDlg(wxWindow* parent, int activeButtons, const wxString& messageText, bool* ignoreNextErrors); //ignoreNextErrors may be nullptr +struct ReturnFatalErrorDlg +{ + enum ButtonPressed + { + BUTTON_IGNORE = ReturnErrorDlg::BUTTON_IGNORE, + BUTTON_CANCEL = ReturnErrorDlg::BUTTON_CANCEL + }; +}; +ReturnFatalErrorDlg::ButtonPressed showFatalErrorDlg(wxWindow* parent, int activeButtons, const wxString& messageText, bool* ignoreNextErrors); //ignoreNextErrors may be nullptr + + struct ReturnWarningDlg { enum ButtonPressed { BUTTON_IGNORE = 1, BUTTON_SWITCH = 2, - BUTTON_ABORT = 4 + BUTTON_CANCEL = 4 }; }; ReturnWarningDlg::ButtonPressed showWarningDlg(wxWindow* parent, int activeButtons, const wxString& messageText, bool& dontShowAgain); @@ -57,7 +68,13 @@ struct CheckBox bool& value_; //in/out }; -ReturnQuestionDlg::ButtonPressed showQuestionDlg(wxWindow* parent, int activeButtons, const wxString& messageText, CheckBox* checkbox = nullptr); +ReturnQuestionDlg::ButtonPressed showQuestionDlg(wxWindow* parent, + int activeButtons, + const wxString& messageText, + const wxString& caption = wxString(), + const wxString& labelYes = wxString(), //overwrite default "Yes, No" labels + const wxString& labelNo = wxString(), // + CheckBox* checkbox = nullptr); } #endif // MESSAGEPOPUP_H_INCLUDED |