wxInitializerPeer: Move upstream and make reusable

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
2020-01-15 11:37:19 +01:00
parent c4fc8d184a
commit 6addc49df2
7 changed files with 96 additions and 95 deletions

View File

@@ -46,6 +46,7 @@ template <class _Tcred, class _Tbase> class wxEAPCredentialsPanel;
template <class _Tcred, class _Tbase> class wxIdentityCredentialsPanel;
template <class _Tcred, class _Tbase> class wxPasswordCredentialsPanel;
class wxEAPProviderSelectDialog;
class wxInitializerPeer;
///
/// \defgroup EAPBaseGUI GUI
@@ -121,7 +122,9 @@ inline void wxInitializeConfig();
#include <WinStd/Win.h>
#include <wx/config.h>
#include <wx/intl.h>
#include <wx/log.h>
#include <wx/thread.h>
#include <CommCtrl.h>
@@ -409,6 +412,32 @@ protected:
};
///
/// Peer initializer
///
class wxInitializerPeer
{
public:
///
/// Initialize peer
///
wxInitializerPeer(_In_ HINSTANCE instance, _In_ const wxString &domain, _In_opt_ HWND hwndParent);
///
/// Uninitialize peer
///
virtual ~wxInitializerPeer();
public:
wxWindow* m_parent; ///< Parent window
protected:
static wxCriticalSection s_lock; ///< Initialization lock
static unsigned long s_init_ref_count; ///< Initialization reference counter
static wxLocale *s_locale; ///< Locale
};
///
/// EAP general note
///
@@ -1028,8 +1057,6 @@ protected:
/// \endcond
};
/// @}
///
/// Generic password credential entry panel