summaryrefslogtreecommitdiff
path: root/wx+/popup_dlg.h
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2019-09-03 20:50:36 +0000
committerB Stack <bgstack15@gmail.com>2019-09-03 20:50:36 +0000
commit89b5c8eb6012b7b4560958ad3c1aa5b187dafc94 (patch)
treeafc54ec004ab863262f5621fbf282c42fdff29cc /wx+/popup_dlg.h
parentMerge branch '10.14' into 'master' (diff)
parentadd upstream 10.15 (diff)
downloadFreeFileSync-10.15.tar.gz
FreeFileSync-10.15.tar.bz2
FreeFileSync-10.15.zip
Merge branch '10.15' into 'master'10.15
add upstream 10.15 See merge request opensource-tracking/FreeFileSync!12
Diffstat (limited to 'wx+/popup_dlg.h')
-rw-r--r--wx+/popup_dlg.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/wx+/popup_dlg.h b/wx+/popup_dlg.h
index 0acd2a95..1e0a1656 100644
--- a/wx+/popup_dlg.h
+++ b/wx+/popup_dlg.h
@@ -21,34 +21,34 @@ struct PopupDialogCfg;
enum class DialogInfoType
{
- INFO,
- WARNING,
- ERROR2, //fuck the ERROR macro in WinGDI.h!
+ info,
+ warning,
+ error,
};
enum class ConfirmationButton3
{
- ACCEPT,
- ACCEPT_ALL,
- DECLINE,
- CANCEL,
+ accept,
+ acceptAll,
+ decline,
+ cancel,
};
enum class ConfirmationButton
{
- ACCEPT = static_cast<int>(ConfirmationButton3::ACCEPT), //[!] Clang requires a "static_cast"
- CANCEL = static_cast<int>(ConfirmationButton3::CANCEL), //
+ accept = static_cast<int>(ConfirmationButton3::accept), //[!] Clang requires a "static_cast"
+ cancel = static_cast<int>(ConfirmationButton3::cancel), //
};
enum class ConfirmationButton2
{
- ACCEPT = static_cast<int>(ConfirmationButton3::ACCEPT),
- ACCEPT_ALL = static_cast<int>(ConfirmationButton3::ACCEPT_ALL),
- CANCEL = static_cast<int>(ConfirmationButton3::CANCEL),
+ accept = static_cast<int>(ConfirmationButton3::accept),
+ acceptAll = static_cast<int>(ConfirmationButton3::acceptAll),
+ cancel = static_cast<int>(ConfirmationButton3::cancel),
};
enum class QuestionButton2
{
- YES = static_cast<int>(ConfirmationButton3::ACCEPT),
- NO = static_cast<int>(ConfirmationButton3::DECLINE),
- CANCEL = static_cast<int>(ConfirmationButton3::CANCEL),
+ yes = static_cast<int>(ConfirmationButton3::accept),
+ no = static_cast<int>(ConfirmationButton3::decline),
+ cancel = static_cast<int>(ConfirmationButton3::cancel),
};
void showNotificationDialog(wxWindow* parent, DialogInfoType type, const PopupDialogCfg& cfg);
@@ -66,7 +66,7 @@ struct PopupDialogCfg
PopupDialogCfg& setTitle (const wxString& label) { title = label; return *this; }
PopupDialogCfg& setMainInstructions (const wxString& label) { textMain = label; return *this; } //set at least one of these!
PopupDialogCfg& setDetailInstructions(const wxString& label) { textDetail = label; return *this; } //
- PopupDialogCfg& setCheckBox(bool& value, const wxString& label, QuestionButton2 disableWhenChecked = QuestionButton2::CANCEL)
+ PopupDialogCfg& setCheckBox(bool& value, const wxString& label, QuestionButton2 disableWhenChecked = QuestionButton2::cancel)
{
checkBoxValue = &value;
checkBoxLabel = label;
@@ -83,7 +83,7 @@ private:
wxString textDetail;
bool* checkBoxValue = nullptr; //in/out
wxString checkBoxLabel;
- QuestionButton2 buttonToDisableWhenChecked = QuestionButton2::CANCEL;
+ QuestionButton2 buttonToDisableWhenChecked = QuestionButton2::cancel;
};
}
bgstack15