summaryrefslogtreecommitdiff
path: root/wx+/popup_dlg.h
diff options
context:
space:
mode:
Diffstat (limited to 'wx+/popup_dlg.h')
-rw-r--r--wx+/popup_dlg.h17
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;
};
}
bgstack15