summaryrefslogtreecommitdiff
path: root/wx+/popup_dlg.cpp
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2019-08-15 15:51:34 -0400
committerB Stack <bgstack15@gmail.com>2019-08-15 15:51:39 -0400
commit17994eb3eda9d2be9aad55dae41562ce13531d99 (patch)
treeafc54ec004ab863262f5621fbf282c42fdff29cc /wx+/popup_dlg.cpp
parentMerge branch '10.14' into 'master' (diff)
downloadFreeFileSync-17994eb3eda9d2be9aad55dae41562ce13531d99.tar.gz
FreeFileSync-17994eb3eda9d2be9aad55dae41562ce13531d99.tar.bz2
FreeFileSync-17994eb3eda9d2be9aad55dae41562ce13531d99.zip
add upstream 10.15
Diffstat (limited to 'wx+/popup_dlg.cpp')
-rw-r--r--wx+/popup_dlg.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/wx+/popup_dlg.cpp b/wx+/popup_dlg.cpp
index 8ee44521..11c4511f 100644
--- a/wx+/popup_dlg.cpp
+++ b/wx+/popup_dlg.cpp
@@ -79,16 +79,16 @@ public:
wxString titleTmp;
switch (type)
{
- case DialogInfoType::INFO:
+ case DialogInfoType::info:
//"Information" is meaningless as caption text!
//confirmation doesn't use info icon
//iconTmp = getResourceImage(L"msg_info");
break;
- case DialogInfoType::WARNING:
+ case DialogInfoType::warning:
iconTmp = getResourceImage(L"msg_warning");
titleTmp = _("Warning");
break;
- case DialogInfoType::ERROR2:
+ case DialogInfoType::error:
iconTmp = getResourceImage(L"msg_error");
titleTmp = _("Error");
break;
@@ -204,28 +204,28 @@ public:
}
private:
- void OnClose (wxCloseEvent& event) override { EndModal(static_cast<int>(ConfirmationButton3::CANCEL)); }
- void OnCancel(wxCommandEvent& event) override { EndModal(static_cast<int>(ConfirmationButton3::CANCEL)); }
+ void OnClose (wxCloseEvent& event) override { EndModal(static_cast<int>(ConfirmationButton3::cancel)); }
+ void OnCancel(wxCommandEvent& event) override { EndModal(static_cast<int>(ConfirmationButton3::cancel)); }
void OnButtonAccept(wxCommandEvent& event) override
{
if (checkBoxValue_)
*checkBoxValue_ = m_checkBoxCustom->GetValue();
- EndModal(static_cast<int>(ConfirmationButton3::ACCEPT));
+ EndModal(static_cast<int>(ConfirmationButton3::accept));
}
void OnButtonAcceptAll(wxCommandEvent& event) override
{
if (checkBoxValue_)
*checkBoxValue_ = m_checkBoxCustom->GetValue();
- EndModal(static_cast<int>(ConfirmationButton3::ACCEPT_ALL));
+ EndModal(static_cast<int>(ConfirmationButton3::acceptAll));
}
void OnButtonDecline(wxCommandEvent& event) override
{
if (checkBoxValue_)
*checkBoxValue_ = m_checkBoxCustom->GetValue();
- EndModal(static_cast<int>(ConfirmationButton3::DECLINE));
+ EndModal(static_cast<int>(ConfirmationButton3::decline));
}
void OnKeyPressed(wxKeyEvent& event)
@@ -241,7 +241,7 @@ private:
}
case WXK_ESCAPE: //handle case where cancel button is hidden!
- EndModal(static_cast<int>(ConfirmationButton3::CANCEL));
+ EndModal(static_cast<int>(ConfirmationButton3::cancel));
return;
}
event.Skip();
@@ -253,14 +253,14 @@ private:
{
switch (buttonToDisableWhenChecked_)
{
- case QuestionButton2::YES:
+ case QuestionButton2::yes:
m_buttonAccept ->Enable(!m_checkBoxCustom->GetValue());
m_buttonAcceptAll->Enable(!m_checkBoxCustom->GetValue());
break;
- case QuestionButton2::NO:
+ case QuestionButton2::no:
m_buttonDecline->Enable(!m_checkBoxCustom->GetValue());
break;
- case QuestionButton2::CANCEL:
+ case QuestionButton2::cancel:
break;
}
}
bgstack15