From 081b6a6b6f565248653343964d7d015d40b78e72 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Wed, 21 Sep 2016 10:09:47 +0200 Subject: [PATCH] wxEAPCredentialsPanel >> wxEAPCredentialsPromptPanel --- lib/EAPBase_UI/include/EAP_UI.h | 16 ++++++++-------- lib/TLS_UI/include/TLS_UI.h | 2 +- lib/TLS_UI/src/TLS_UI.cpp | 6 +++--- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/lib/EAPBase_UI/include/EAP_UI.h b/lib/EAPBase_UI/include/EAP_UI.h index d4bff03..cb221ad 100644 --- a/lib/EAPBase_UI/include/EAP_UI.h +++ b/lib/EAPBase_UI/include/EAP_UI.h @@ -95,7 +95,7 @@ template class wxEAPCredentialsConfigPanel; /// /// Helper template for all credential entry panels /// -template class wxEAPCredentialsPanel; +template class wxEAPCredentialsPromptPanel; /// /// Generic password credential entry panel @@ -776,11 +776,11 @@ private: template -class wxEAPCredentialsPanel : public _Tbase +class wxEAPCredentialsPromptPanel : public _Tbase { private: /// \cond internal - typedef wxEAPCredentialsPanel<_Tcred, _Tbase> _Tthis; + typedef wxEAPCredentialsPromptPanel<_Tcred, _Tbase> _Tthis; /// \endcond public: @@ -793,7 +793,7 @@ public: /// \param[in] parent Parent window /// \param[in] is_config Is this panel used to pre-enter credentials? When \c true, the "Remember" checkbox is always selected and disabled. /// - wxEAPCredentialsPanel(const eap::config_provider &prov, const eap::config_method_with_cred &cfg, _Tcred &cred, wxWindow* parent, bool is_config = false) : + wxEAPCredentialsPromptPanel(const eap::config_provider &prov, const eap::config_method_with_cred &cfg, _Tcred &cred, wxWindow* parent, bool is_config = false) : m_prov(prov), m_cfg(cfg), m_cred(cred), @@ -846,7 +846,7 @@ protected: template -class wxPasswordCredentialsPanel : public wxEAPCredentialsPanel<_Tcred, _Tbase> +class wxPasswordCredentialsPanel : public wxEAPCredentialsPromptPanel<_Tcred, _Tbase> { public: /// @@ -859,7 +859,7 @@ public: /// \param[in] is_config Is this panel used to pre-enter credentials? When \c true, the "Remember" checkbox is always selected and disabled. /// wxPasswordCredentialsPanel(const eap::config_provider &prov, const eap::config_method_with_cred &cfg, _Tcred &cred, wxWindow* parent, bool is_config = false) : - wxEAPCredentialsPanel<_Tcred, _Tbase>(prov, cfg, cred, parent, is_config) + wxEAPCredentialsPromptPanel<_Tcred, _Tbase>(prov, cfg, cred, parent, is_config) { // Load and set icon. winstd::library lib_shell32; @@ -904,12 +904,12 @@ protected: m_password ->Enable(false); } - return wxEAPCredentialsPanel<_Tcred, wxEAPCredentialsPromptPassPanelBase>::TransferDataToWindow(); + return wxEAPCredentialsPromptPanel<_Tcred, wxEAPCredentialsPromptPassPanelBase>::TransferDataToWindow(); } virtual bool TransferDataFromWindow() { - if (!wxEAPCredentialsPanel<_Tcred, wxEAPCredentialsPromptPassPanelBase>::TransferDataFromWindow()) + if (!wxEAPCredentialsPromptPanel<_Tcred, wxEAPCredentialsPromptPassPanelBase>::TransferDataFromWindow()) return false; m_cred.m_identity = m_identity->GetValue(); diff --git a/lib/TLS_UI/include/TLS_UI.h b/lib/TLS_UI/include/TLS_UI.h index 988d4af..adbc55c 100644 --- a/lib/TLS_UI/include/TLS_UI.h +++ b/lib/TLS_UI/include/TLS_UI.h @@ -248,7 +248,7 @@ protected: }; -class wxEAPCredentialsPromptTLSPanel : public wxEAPCredentialsPanel +class wxEAPCredentialsPromptTLSPanel : public wxEAPCredentialsPromptPanel { public: /// diff --git a/lib/TLS_UI/src/TLS_UI.cpp b/lib/TLS_UI/src/TLS_UI.cpp index 0782f9f..a00d8dc 100644 --- a/lib/TLS_UI/src/TLS_UI.cpp +++ b/lib/TLS_UI/src/TLS_UI.cpp @@ -312,7 +312,7 @@ bool wxFQDNListValidator::Parse(const wxString &val_in, size_t i_start, size_t i ////////////////////////////////////////////////////////////////////// wxEAPCredentialsPromptTLSPanel::wxEAPCredentialsPromptTLSPanel(const eap::config_provider &prov, const eap::config_method_with_cred &cfg, eap::credentials_tls &cred, wxWindow* parent, bool is_config) : - wxEAPCredentialsPanel(prov, cfg, cred, parent, is_config) + wxEAPCredentialsPromptPanel(prov, cfg, cred, parent, is_config) { // Load and set icon. winstd::library lib_shell32; @@ -361,7 +361,7 @@ bool wxEAPCredentialsPromptTLSPanel::TransferDataToWindow() m_identity->SetValue(m_cred.m_identity); - return wxEAPCredentialsPanel::TransferDataToWindow(); + return wxEAPCredentialsPromptPanel::TransferDataToWindow(); } @@ -381,7 +381,7 @@ bool wxEAPCredentialsPromptTLSPanel::TransferDataFromWindow() // Inherited TransferDataFromWindow() calls m_cred.store(). // Therefore, call it only now, that m_cred is set. - return wxEAPCredentialsPanel::TransferDataFromWindow(); + return wxEAPCredentialsPromptPanel::TransferDataFromWindow(); }