diff options
author | Daniel Wilhelm <shieldwed@outlook.com> | 2017-01-08 18:21:23 +0100 |
---|---|---|
committer | Daniel Wilhelm <shieldwed@outlook.com> | 2017-01-08 18:21:23 +0100 |
commit | fe660cdff59aa3a939479ed60172e5c0803552b2 (patch) | |
tree | 045cf295b79de10f75ed6362c5836db25c9fc63a /wx+/popup_dlg.h | |
parent | 8.6 (diff) | |
download | FreeFileSync-fe660cdff59aa3a939479ed60172e5c0803552b2.tar.gz FreeFileSync-fe660cdff59aa3a939479ed60172e5c0803552b2.tar.bz2 FreeFileSync-fe660cdff59aa3a939479ed60172e5c0803552b2.zip |
8.7
Diffstat (limited to 'wx+/popup_dlg.h')
-rw-r--r-- | wx+/popup_dlg.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/wx+/popup_dlg.h b/wx+/popup_dlg.h index 892c7a83..67f73a11 100644 --- a/wx+/popup_dlg.h +++ b/wx+/popup_dlg.h @@ -39,7 +39,7 @@ enum class ConfirmationButton3 enum class ConfirmationButton { - DO_IT = static_cast<int>(ConfirmationButton3::DO_IT), //[!] + DO_IT = static_cast<int>(ConfirmationButton3::DO_IT ), //[!] CANCEL = static_cast<int>(ConfirmationButton3::CANCEL), //Clang requires a "static_cast" }; @@ -73,23 +73,24 @@ private: struct PopupDialogCfg3 { - PopupDialogCfg3& setTitle (const wxString& label) { pdCfg.setTitle (label); return *this; } - PopupDialogCfg3& setMainInstructions (const wxString& label) { pdCfg.setMainInstructions (label); return *this; } //set at least one of these! - PopupDialogCfg3& setDetailInstructions(const wxString& label) { pdCfg.setDetailInstructions(label); return *this; } // - PopupDialogCfg3& setCheckBox(bool& value, const wxString& label) { pdCfg.setCheckBox(value, label); return *this; } + PopupDialogCfg3& setIcon (const wxBitmap& bmp ) { pdCfg_.setIcon (bmp); return *this; } + PopupDialogCfg3& setTitle (const wxString& label) { pdCfg_.setTitle (label); return *this; } + PopupDialogCfg3& setMainInstructions (const wxString& label) { pdCfg_.setMainInstructions (label); return *this; } //set at least one of these! + PopupDialogCfg3& setDetailInstructions(const wxString& label) { pdCfg_.setDetailInstructions(label); return *this; } // + PopupDialogCfg3& setCheckBox(bool& value, const wxString& label) { pdCfg_.setCheckBox(value, label); return *this; } PopupDialogCfg3& setCheckBox(bool& value, const wxString& label, ConfirmationButton3 disableWhenChecked) { assert(disableWhenChecked != ConfirmationButton3::CANCEL); setCheckBox(value, label); - buttonToDisableWhenChecked = disableWhenChecked; + buttonToDisableWhenChecked_ = disableWhenChecked; return *this; } private: friend class ConfirmationDialog3; - PopupDialogCfg pdCfg; - ConfirmationButton3 buttonToDisableWhenChecked = ConfirmationButton3::CANCEL; + PopupDialogCfg pdCfg_; + ConfirmationButton3 buttonToDisableWhenChecked_ = ConfirmationButton3::CANCEL; }; } |