diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:26:50 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:26:50 +0200 |
commit | 669df123648aaa6aeccc70206b5417bc48b4e9ae (patch) | |
tree | 463c107a8d6405020bb304f7a7253e6b64afeee0 /ui/msg_popup.h | |
parent | 5.18 (diff) | |
download | FreeFileSync-669df123648aaa6aeccc70206b5417bc48b4e9ae.tar.gz FreeFileSync-669df123648aaa6aeccc70206b5417bc48b4e9ae.tar.bz2 FreeFileSync-669df123648aaa6aeccc70206b5417bc48b4e9ae.zip |
5.19
Diffstat (limited to 'ui/msg_popup.h')
-rw-r--r-- | ui/msg_popup.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ui/msg_popup.h b/ui/msg_popup.h index 5e7ea97f..d93b5002 100644 --- a/ui/msg_popup.h +++ b/ui/msg_popup.h @@ -7,6 +7,7 @@ #ifndef MESSAGEPOPUP_H_820780154723456 #define MESSAGEPOPUP_H_820780154723456 +#include <zen/string_tools.h> #include <wx/window.h> #include <wx/string.h> @@ -66,9 +67,11 @@ class QuestConfig public: QuestConfig() : checkBoxValue(), disabledButtonsWhenChecked_() {} QuestConfig& setCaption (const wxString& label) { caption = label; return *this; } - QuestConfig& setLabelYes(const wxString& label) { labelYes = label; return *this; } - QuestConfig& setLabelNo (const wxString& label) { labelNo = label; return *this; } - QuestConfig& showCheckBox(bool& value, const wxString& label, int disabledButtonsWhenChecked) { checkBoxValue = &value; checkBoxLabel = label; disabledButtonsWhenChecked_ = disabledButtonsWhenChecked; return *this; } + QuestConfig& setLabelYes(const wxString& label) { assert(contains(label, L"&")); labelYes = label; return *this; } + QuestConfig& setLabelNo (const wxString& label) { assert(contains(label, L"&")); labelNo = label; return *this; } + QuestConfig& showCheckBox(bool& value, + const wxString& label, + int disabledButtonsWhenChecked) { assert(contains(label, L"&")); checkBoxValue = &value; checkBoxLabel = label; disabledButtonsWhenChecked_ = disabledButtonsWhenChecked; return *this; } private: friend class ::QuestionDlg; |