diff --git a/README.md b/README.md index 3c1fafb..001eaa0 100644 --- a/README.md +++ b/README.md @@ -51,22 +51,22 @@ Binaries are available for download [here](https://github.com/Amebis/GEANTLink/r - _MsiDb.Exe_ and other command line utilities for MSI packaging distributed as a part of Microsoft Windows SDK (installed with Visual Studio). Add SDK's `Bin` folder to the system path. ### wxWidgets -GÉANTLink is using wxWidgets v3.0.2 static libraries. Unfortunately, only dynamic libraries (DLL) variant is available as a binary download. Therefore static libraries needs to be compiled from [source](https://github.com/wxWidgets/wxWidgets). +GÉANTLink is using wxWidgets v3.1.1 static libraries. Unfortunately, only dynamic libraries (DLL) variant is available as a binary download. Therefore static libraries needs to be compiled from [source](https://github.com/wxWidgets/wxWidgets). #### Compiling wxWidgets Win32 static libraries 1. Start _Visual Studio Command Prompt (2010)_ 2. Change working folder to `build\msw` -3. Run: `nmake /f makefile.vc /ls RUNTIME_LIBS=static SHARED=0` -4. Run: `nmake /f makefile.vc /ls RUNTIME_LIBS=static SHARED=0 BUILD=release` +3. Run: `nmake /f makefile.vc /ls RUNTIME_LIBS=static SHARED=0 COMPILER_VERSION=100` +4. Run: `nmake /f makefile.vc /ls RUNTIME_LIBS=static SHARED=0 COMPILER_VERSION=100 BUILD=release` #### Compiling wxWidgets x64 static libraries 1. Start _Visual Studio x64 Cross Tools Command Prompt (2010)_ 2. Change working folder to `build\msw` -3. Run: `nmake /f makefile.vc /ls RUNTIME_LIBS=static SHARED=0 TARGET_CPU=X64` -4. Run: `nmake /f makefile.vc /ls RUNTIME_LIBS=static SHARED=0 TARGET_CPU=X64 BUILD=release` +3. Run: `nmake /f makefile.vc /ls RUNTIME_LIBS=static SHARED=0 COMPILER_VERSION=100 TARGET_CPU=X64` +4. Run: `nmake /f makefile.vc /ls RUNTIME_LIBS=static SHARED=0 COMPILER_VERSION=100 TARGET_CPU=X64 BUILD=release` #### Specifying wxWidgets path -GÉANTLink compilation references wxWidgets libraries using `WXWIN` environment variable. Please set it to wxWidgets folder (i.e. `C:\SDK\wxWidgets\3.0.2`). +GÉANTLink compilation references wxWidgets libraries using `WXWIN` environment variable. Please set it to wxWidgets folder (i.e. `C:\SDK\wxWidgets\3.1.1`). ### Digital Signing of Build Outputs In order to have the build process digitally sign output files, one should provide the following: diff --git a/include/Common.props b/include/Common.props index 3e6d223..cbae63c 100644 --- a/include/Common.props +++ b/include/Common.props @@ -32,7 +32,7 @@ Level4 - _WIN32_WINNT=0x0600;ISOLATION_AWARE_ENABLED=1;SECURITY_WIN32;CERT_CHAIN_PARA_HAS_EXTRA_FIELDS;EAP_TLS=1;%(PreprocessorDefinitions) + _WIN32_WINNT=0x0600;ISOLATION_AWARE_ENABLED=1;SECURITY_WIN32;CERT_CHAIN_PARA_HAS_EXTRA_FIELDS;EAP_TLS=1;wxMSVC_VERSION=$(PlatformToolsetVersion);%(PreprocessorDefinitions) Use StdAfx.h ProgramDatabase diff --git a/include/Win32.props b/include/Win32.props index cbc5062..8bcf70e 100644 --- a/include/Win32.props +++ b/include/Win32.props @@ -24,7 +24,7 @@ - $(WXWIN)\lib\vc_lib;$(LibraryPath) + $(WXWIN)\lib\vc$(PlatformToolsetVersion)_lib;$(LibraryPath) diff --git a/include/x64.props b/include/x64.props index 1454ab4..59e52df 100644 --- a/include/x64.props +++ b/include/x64.props @@ -24,7 +24,7 @@ - $(WXWIN)\lib\vc_x64_lib;$(LibraryPath) + $(WXWIN)\lib\vc$(PlatformToolsetVersion)_x64_lib;$(LibraryPath) diff --git a/lib/EAPBase_UI/res/wxEAP_UI.cpp b/lib/EAPBase_UI/res/wxEAP_UI.cpp index 67e4aa0..62cdc71 100644 --- a/lib/EAPBase_UI/res/wxEAP_UI.cpp +++ b/lib/EAPBase_UI/res/wxEAP_UI.cpp @@ -1,633 +1,633 @@ -/////////////////////////////////////////////////////////////////////////// -// C++ code generated with wxFormBuilder (version Jun 17 2015) -// http://www.wxformbuilder.org/ -// -// PLEASE DO "NOT" EDIT THIS FILE! -/////////////////////////////////////////////////////////////////////////// - -#include - -#include "wxEAP_UI.h" - -/////////////////////////////////////////////////////////////////////////// - -wxEAPConfigDialogBase::wxEAPConfigDialogBase( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style ) -{ - this->SetSizeHints( wxDefaultSize, wxDefaultSize ); - - wxBoxSizer* sb_content; - sb_content = new wxBoxSizer( wxVERTICAL ); - - m_banner = new wxEAPBannerPanel( this ); - - sb_content->Add( m_banner, 0, wxEXPAND|wxBOTTOM, 5 ); - - m_providers = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 ); - m_providers->SetExtraStyle( wxWS_EX_VALIDATE_RECURSIVELY ); - - - sb_content->Add( m_providers, 1, wxEXPAND|wxALL, 10 ); - - wxBoxSizer* sb_bottom_horiz; - sb_bottom_horiz = new wxBoxSizer( wxHORIZONTAL ); - - wxBoxSizer* sb_bottom_horiz_inner; - sb_bottom_horiz_inner = new wxBoxSizer( wxHORIZONTAL ); - - m_prov_add = new wxButton( this, wxID_ANY, _("+"), wxDefaultPosition, wxSize( 30,-1 ), 0 ); - m_prov_add->SetToolTip( _("Adds new provider") ); - - sb_bottom_horiz_inner->Add( m_prov_add, 0, wxALL, 5 ); - - m_prov_remove = new wxButton( this, wxID_ANY, _("-"), wxDefaultPosition, wxSize( 30,-1 ), 0 ); - m_prov_remove->SetToolTip( _("Removes selected provider") ); - - sb_bottom_horiz_inner->Add( m_prov_remove, 0, wxALL, 5 ); - - m_prov_advanced = new wxButton( this, wxID_ANY, _("Advanced..."), wxDefaultPosition, wxDefaultSize, 0 ); - m_prov_advanced->SetToolTip( _("Opens dialog with provider settings") ); - - sb_bottom_horiz_inner->Add( m_prov_advanced, 0, wxALL, 5 ); - - - sb_bottom_horiz->Add( sb_bottom_horiz_inner, 1, wxEXPAND, 5 ); - - m_buttons = new wxStdDialogButtonSizer(); - m_buttonsOK = new wxButton( this, wxID_OK ); - m_buttons->AddButton( m_buttonsOK ); - m_buttonsCancel = new wxButton( this, wxID_CANCEL ); - m_buttons->AddButton( m_buttonsCancel ); - m_buttons->Realize(); - - sb_bottom_horiz->Add( m_buttons, 0, wxEXPAND|wxALL, 5 ); - - - sb_content->Add( sb_bottom_horiz, 0, wxEXPAND, 5 ); - - - this->SetSizer( sb_content ); - this->Layout(); - sb_content->Fit( this ); - - // Connect Events - this->Connect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( wxEAPConfigDialogBase::OnInitDialog ) ); - this->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( wxEAPConfigDialogBase::OnUpdateUI ) ); - m_prov_add->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( wxEAPConfigDialogBase::OnProvAdd ), NULL, this ); - m_prov_remove->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( wxEAPConfigDialogBase::OnProvRemove ), NULL, this ); - m_prov_advanced->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( wxEAPConfigDialogBase::OnProvAdvanced ), NULL, this ); -} - -wxEAPConfigDialogBase::~wxEAPConfigDialogBase() -{ - // Disconnect Events - this->Disconnect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( wxEAPConfigDialogBase::OnInitDialog ) ); - this->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( wxEAPConfigDialogBase::OnUpdateUI ) ); - m_prov_add->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( wxEAPConfigDialogBase::OnProvAdd ), NULL, this ); - m_prov_remove->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( wxEAPConfigDialogBase::OnProvRemove ), NULL, this ); - m_prov_advanced->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( wxEAPConfigDialogBase::OnProvAdvanced ), NULL, this ); - -} - -wxEAPGeneralDialogBase::wxEAPGeneralDialogBase( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style ) -{ - this->SetSizeHints( wxDefaultSize, wxDefaultSize ); - - wxBoxSizer* sb_content; - sb_content = new wxBoxSizer( wxVERTICAL ); - - m_banner = new wxEAPBannerPanel( this ); - - sb_content->Add( m_banner, 0, wxEXPAND|wxBOTTOM, 5 ); - - m_panels = new wxBoxSizer( wxVERTICAL ); - - - sb_content->Add( m_panels, 1, wxEXPAND|wxALL, 5 ); - - m_buttons = new wxStdDialogButtonSizer(); - m_buttonsOK = new wxButton( this, wxID_OK ); - m_buttons->AddButton( m_buttonsOK ); - m_buttonsCancel = new wxButton( this, wxID_CANCEL ); - m_buttons->AddButton( m_buttonsCancel ); - m_buttons->Realize(); - - sb_content->Add( m_buttons, 0, wxEXPAND|wxALL, 5 ); - - - this->SetSizer( sb_content ); - this->Layout(); - sb_content->Fit( this ); - - // Connect Events - this->Connect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( wxEAPGeneralDialogBase::OnInitDialog ) ); -} - -wxEAPGeneralDialogBase::~wxEAPGeneralDialogBase() -{ - // Disconnect Events - this->Disconnect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( wxEAPGeneralDialogBase::OnInitDialog ) ); - -} - -wxEAPCredentialsConnectionDialogBase::wxEAPCredentialsConnectionDialogBase( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style ) -{ - this->SetSizeHints( wxDefaultSize, wxDefaultSize ); - - wxBoxSizer* sb_content; - sb_content = new wxBoxSizer( wxVERTICAL ); - - m_banner = new wxEAPBannerPanel( this ); - - sb_content->Add( m_banner, 0, wxEXPAND|wxBOTTOM, 5 ); - - m_providers = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 ); - m_providers->SetExtraStyle( wxWS_EX_VALIDATE_RECURSIVELY ); - - - sb_content->Add( m_providers, 1, wxEXPAND | wxALL, 5 ); - - m_buttons = new wxStdDialogButtonSizer(); - m_buttonsOK = new wxButton( this, wxID_OK ); - m_buttons->AddButton( m_buttonsOK ); - m_buttonsCancel = new wxButton( this, wxID_CANCEL ); - m_buttons->AddButton( m_buttonsCancel ); - m_buttons->Realize(); - - sb_content->Add( m_buttons, 0, wxEXPAND|wxALL, 5 ); - - - this->SetSizer( sb_content ); - this->Layout(); - sb_content->Fit( this ); - - // Connect Events - this->Connect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( wxEAPCredentialsConnectionDialogBase::OnInitDialog ) ); -} - -wxEAPCredentialsConnectionDialogBase::~wxEAPCredentialsConnectionDialogBase() -{ - // Disconnect Events - this->Disconnect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( wxEAPCredentialsConnectionDialogBase::OnInitDialog ) ); - -} - -wxEAPBannerPanelBase::wxEAPBannerPanelBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style ) -{ - this->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHT ) ); - this->SetMinSize( wxSize( -1,48 ) ); - - wxBoxSizer* sb_content; - sb_content = new wxBoxSizer( wxVERTICAL ); - - m_title = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT ); - m_title->Wrap( -1 ); - m_title->SetFont( wxFont( 18, 70, 90, 90, false, wxEmptyString ) ); - m_title->SetForegroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHTTEXT ) ); - - sb_content->Add( m_title, 0, wxALL|wxEXPAND, 5 ); - - - this->SetSizer( sb_content ); - this->Layout(); - sb_content->Fit( this ); -} - -wxEAPBannerPanelBase::~wxEAPBannerPanelBase() -{ -} - -wxEAPNotePanelBase::wxEAPNotePanelBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style ) -{ - this->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_INFOBK ) ); - - wxBoxSizer* sb_note_horiz; - sb_note_horiz = new wxBoxSizer( wxHORIZONTAL ); - - m_note_icon = new wxStaticBitmap( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 ); - sb_note_horiz->Add( m_note_icon, 0, wxALL, 5 ); - - m_note_vert = new wxBoxSizer( wxVERTICAL ); - - m_note_label = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); - m_note_label->Wrap( 449 ); - m_note_vert->Add( m_note_label, 0, wxALL|wxEXPAND, 5 ); - - - sb_note_horiz->Add( m_note_vert, 1, wxEXPAND, 5 ); - - - this->SetSizer( sb_note_horiz ); - this->Layout(); -} - -wxEAPNotePanelBase::~wxEAPNotePanelBase() -{ -} - -wxEAPCredentialsConfigPanelBase::wxEAPCredentialsConfigPanelBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style ) -{ - m_sb_credentials = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("%s User Credentials") ), wxVERTICAL ); - - wxBoxSizer* sb_credentials_horiz; - sb_credentials_horiz = new wxBoxSizer( wxHORIZONTAL ); - - m_credentials_icon = new wxStaticBitmap( m_sb_credentials->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 ); - sb_credentials_horiz->Add( m_credentials_icon, 0, wxALL, 5 ); - - wxBoxSizer* sb_credentials_vert; - sb_credentials_vert = new wxBoxSizer( wxVERTICAL ); - - m_credentials_label = new wxStaticText( m_sb_credentials->GetStaticBox(), wxID_ANY, _("Select the source where your credentials used to connect are stored."), wxDefaultPosition, wxDefaultSize, 0 ); - m_credentials_label->Wrap( 440 ); - sb_credentials_vert->Add( m_credentials_label, 0, wxALL|wxEXPAND, 5 ); - - m_storage = new wxRadioButton( m_sb_credentials->GetStaticBox(), wxID_ANY, _("Use credentials from Credential &Manager"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP ); - m_storage->SetToolTip( _("Select this option if you would like to use credentials stored in Windows Credential Manager") ); - - sb_credentials_vert->Add( m_storage, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 ); - - wxBoxSizer* sb_storage; - sb_storage = new wxBoxSizer( wxVERTICAL ); - - wxBoxSizer* sb_storage_identity; - sb_storage_identity = new wxBoxSizer( wxHORIZONTAL ); - - m_storage_identity_label = new wxStaticText( m_sb_credentials->GetStaticBox(), wxID_ANY, _("Identity:"), wxDefaultPosition, wxDefaultSize, 0 ); - m_storage_identity_label->Wrap( -1 ); - sb_storage_identity->Add( m_storage_identity_label, 0, 0, 5 ); - - m_storage_identity = new wxStaticText( m_sb_credentials->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); - m_storage_identity->Wrap( -1 ); - m_storage_identity->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 92, false, wxEmptyString ) ); - m_storage_identity->SetToolTip( _("Your present credentials stored in Windows Credential Manager") ); - - sb_storage_identity->Add( m_storage_identity, 1, wxEXPAND|wxLEFT, 5 ); - - - sb_storage->Add( sb_storage_identity, 1, wxEXPAND, 5 ); - - wxBoxSizer* sb_buttons_storage; - sb_buttons_storage = new wxBoxSizer( wxHORIZONTAL ); - - m_storage_clear = new wxButton( m_sb_credentials->GetStaticBox(), wxID_ANY, _("&Clear Credentials"), wxDefaultPosition, wxDefaultSize, 0 ); - m_storage_clear->SetToolTip( _("Click to clear your credentials from Credential Manager.\nNote: You will be prompted to enter credentials when connecting.") ); - - sb_buttons_storage->Add( m_storage_clear, 0, wxRIGHT, 5 ); - - m_storage_set = new wxButton( m_sb_credentials->GetStaticBox(), wxID_ANY, _("&Set Credentials..."), wxDefaultPosition, wxDefaultSize, 0 ); - m_storage_set->SetToolTip( _("Click here to set or modify your credentials") ); - - sb_buttons_storage->Add( m_storage_set, 0, wxLEFT, 5 ); - - - sb_storage->Add( sb_buttons_storage, 0, wxALIGN_RIGHT|wxTOP, 5 ); - - - sb_credentials_vert->Add( sb_storage, 0, wxEXPAND|wxALL, 5 ); - - m_config = new wxRadioButton( m_sb_credentials->GetStaticBox(), wxID_ANY, _("Use credentials from &profile configuration"), wxDefaultPosition, wxDefaultSize, 0 ); - m_config->SetToolTip( _("Select this option if you would like to store credentials as a part of profile configuration") ); - - sb_credentials_vert->Add( m_config, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 ); - - wxBoxSizer* sb_config; - sb_config = new wxBoxSizer( wxVERTICAL ); - - wxBoxSizer* sb_config_identity; - sb_config_identity = new wxBoxSizer( wxHORIZONTAL ); - - m_config_identity_label = new wxStaticText( m_sb_credentials->GetStaticBox(), wxID_ANY, _("Identity:"), wxDefaultPosition, wxDefaultSize, 0 ); - m_config_identity_label->Wrap( -1 ); - sb_config_identity->Add( m_config_identity_label, 0, 0, 5 ); - - m_config_identity = new wxStaticText( m_sb_credentials->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); - m_config_identity->Wrap( -1 ); - m_config_identity->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 92, false, wxEmptyString ) ); - m_config_identity->SetToolTip( _("Profile configuration credentials") ); - - sb_config_identity->Add( m_config_identity, 1, wxEXPAND|wxLEFT, 5 ); - - - sb_config->Add( sb_config_identity, 1, wxEXPAND, 5 ); - - wxBoxSizer* sb_buttons_config; - sb_buttons_config = new wxBoxSizer( wxHORIZONTAL ); - - m_config_set = new wxButton( m_sb_credentials->GetStaticBox(), wxID_ANY, _("&Set Credentials..."), wxDefaultPosition, wxDefaultSize, 0 ); - m_config_set->SetToolTip( _("Click here to set or modify your credentials") ); - - sb_buttons_config->Add( m_config_set, 0, 0, 5 ); - - - sb_config->Add( sb_buttons_config, 0, wxALIGN_RIGHT|wxTOP, 5 ); - - - sb_credentials_vert->Add( sb_config, 0, wxEXPAND|wxALL, 5 ); - - - sb_credentials_horiz->Add( sb_credentials_vert, 1, wxEXPAND, 5 ); - - - m_sb_credentials->Add( sb_credentials_horiz, 1, wxEXPAND, 5 ); - - - this->SetSizer( m_sb_credentials ); - this->Layout(); - m_timer_storage.SetOwner( this, wxID_ANY ); - - // Connect Events - this->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( wxEAPCredentialsConfigPanelBase::OnUpdateUI ) ); - m_storage_clear->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( wxEAPCredentialsConfigPanelBase::OnClearStorage ), NULL, this ); - m_storage_set->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( wxEAPCredentialsConfigPanelBase::OnSetStorage ), NULL, this ); - m_config_set->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( wxEAPCredentialsConfigPanelBase::OnSetConfig ), NULL, this ); - this->Connect( wxID_ANY, wxEVT_TIMER, wxTimerEventHandler( wxEAPCredentialsConfigPanelBase::OnTimerStorage ) ); -} - -wxEAPCredentialsConfigPanelBase::~wxEAPCredentialsConfigPanelBase() -{ - // Disconnect Events - this->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( wxEAPCredentialsConfigPanelBase::OnUpdateUI ) ); - m_storage_clear->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( wxEAPCredentialsConfigPanelBase::OnClearStorage ), NULL, this ); - m_storage_set->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( wxEAPCredentialsConfigPanelBase::OnSetStorage ), NULL, this ); - m_config_set->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( wxEAPCredentialsConfigPanelBase::OnSetConfig ), NULL, this ); - this->Disconnect( wxID_ANY, wxEVT_TIMER, wxTimerEventHandler( wxEAPCredentialsConfigPanelBase::OnTimerStorage ) ); - -} - -wxPasswordCredentialsPanelBase::wxPasswordCredentialsPanelBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxEAPCredentialsPanelBase( parent, id, pos, size, style ) -{ - m_sb_credentials = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("User ID and Password") ), wxVERTICAL ); - - wxBoxSizer* sb_credentials_horiz; - sb_credentials_horiz = new wxBoxSizer( wxHORIZONTAL ); - - m_credentials_icon = new wxStaticBitmap( m_sb_credentials->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 ); - sb_credentials_horiz->Add( m_credentials_icon, 0, wxALL, 5 ); - - m_sb_credentials_vert = new wxBoxSizer( wxVERTICAL ); - - m_credentials_label = new wxStaticText( m_sb_credentials->GetStaticBox(), wxID_ANY, _("Please provide your user ID and password."), wxDefaultPosition, wxDefaultSize, 0 ); - m_credentials_label->Wrap( 440 ); - m_sb_credentials_vert->Add( m_credentials_label, 0, wxALL|wxEXPAND, 5 ); - - wxFlexGridSizer* sb_credentials_tbl; - sb_credentials_tbl = new wxFlexGridSizer( 0, 2, 5, 5 ); - sb_credentials_tbl->AddGrowableCol( 1 ); - sb_credentials_tbl->SetFlexibleDirection( wxBOTH ); - sb_credentials_tbl->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED ); - - m_identity_label = new wxStaticText( m_sb_credentials->GetStaticBox(), wxID_ANY, _("User ID:"), wxDefaultPosition, wxDefaultSize, 0 ); - m_identity_label->Wrap( -1 ); - sb_credentials_tbl->Add( m_identity_label, 0, wxALIGN_CENTER_VERTICAL, 5 ); - - m_identity = new wxTextCtrl( m_sb_credentials->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); - m_identity->SetToolTip( _("Enter your user name here (user@domain.org, DOMAIN\\User, etc.)") ); - - sb_credentials_tbl->Add( m_identity, 2, wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 ); - - m_password_label = new wxStaticText( m_sb_credentials->GetStaticBox(), wxID_ANY, _("Password:"), wxDefaultPosition, wxDefaultSize, 0 ); - m_password_label->Wrap( -1 ); - sb_credentials_tbl->Add( m_password_label, 0, wxALIGN_CENTER_VERTICAL, 5 ); - - m_password = new wxTextCtrl( m_sb_credentials->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PASSWORD ); - m_password->SetToolTip( _("Enter your password here") ); - - sb_credentials_tbl->Add( m_password, 2, wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 ); - - - m_sb_credentials_vert->Add( sb_credentials_tbl, 0, wxEXPAND|wxALL, 5 ); - - - sb_credentials_horiz->Add( m_sb_credentials_vert, 1, wxEXPAND, 5 ); - - - m_sb_credentials->Add( sb_credentials_horiz, 0, wxEXPAND, 5 ); - - - this->SetSizer( m_sb_credentials ); - this->Layout(); - - // Connect Events - m_password->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( wxPasswordCredentialsPanelBase::OnPasswordText ), NULL, this ); -} - -wxPasswordCredentialsPanelBase::~wxPasswordCredentialsPanelBase() -{ - // Disconnect Events - m_password->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( wxPasswordCredentialsPanelBase::OnPasswordText ), NULL, this ); - -} - -wxEAPProviderContactInfoPanelBase::wxEAPProviderContactInfoPanelBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style ) -{ - wxStaticBoxSizer* sb_provider_contact; - sb_provider_contact = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Your Organization") ), wxVERTICAL ); - - wxBoxSizer* sb_provider_contact_horiz; - sb_provider_contact_horiz = new wxBoxSizer( wxHORIZONTAL ); - - m_provider_contact_icon = new wxStaticBitmap( sb_provider_contact->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 ); - sb_provider_contact_horiz->Add( m_provider_contact_icon, 0, wxALL, 5 ); - - wxBoxSizer* sb_provider_contact_vert; - sb_provider_contact_vert = new wxBoxSizer( wxVERTICAL ); - - m_provider_contact_label = new wxStaticText( sb_provider_contact->GetStaticBox(), wxID_ANY, _("Describe your organization to customize user prompts. When organization is introduced, end-users find program messages easier to understand and act."), wxDefaultPosition, wxDefaultSize, 0 ); - m_provider_contact_label->Wrap( 440 ); - sb_provider_contact_vert->Add( m_provider_contact_label, 0, wxALL|wxEXPAND, 5 ); - - wxBoxSizer* sb_provider_name; - sb_provider_name = new wxBoxSizer( wxVERTICAL ); - - m_provider_name_label = new wxStaticText( sb_provider_contact->GetStaticBox(), wxID_ANY, _("Your organization &name:"), wxDefaultPosition, wxDefaultSize, 0 ); - m_provider_name_label->Wrap( -1 ); - sb_provider_name->Add( m_provider_name_label, 0, wxBOTTOM, 5 ); - - m_provider_name = new wxTextCtrl( sb_provider_contact->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); - m_provider_name->SetToolTip( _("Your organization name as it will appear on helpdesk contact notifications") ); - - sb_provider_name->Add( m_provider_name, 0, wxEXPAND|wxBOTTOM, 5 ); - - m_provider_name_note = new wxStaticText( sb_provider_contact->GetStaticBox(), wxID_ANY, _("(Keep it short, please)"), wxDefaultPosition, wxDefaultSize, 0 ); - m_provider_name_note->Wrap( -1 ); - sb_provider_name->Add( m_provider_name_note, 0, wxALIGN_RIGHT, 5 ); - - - sb_provider_contact_vert->Add( sb_provider_name, 0, wxEXPAND|wxALL, 5 ); - - wxBoxSizer* sb_provider_helpdesk; - sb_provider_helpdesk = new wxBoxSizer( wxVERTICAL ); - - m_provider_helpdesk_label = new wxStaticText( sb_provider_contact->GetStaticBox(), wxID_ANY, _("Helpdesk contact &information:"), wxDefaultPosition, wxDefaultSize, 0 ); - m_provider_helpdesk_label->Wrap( -1 ); - sb_provider_helpdesk->Add( m_provider_helpdesk_label, 0, wxBOTTOM, 5 ); - - wxFlexGridSizer* sb_provider_helpdesk_inner; - sb_provider_helpdesk_inner = new wxFlexGridSizer( 0, 2, 0, 0 ); - sb_provider_helpdesk_inner->AddGrowableCol( 1 ); - sb_provider_helpdesk_inner->SetFlexibleDirection( wxBOTH ); - sb_provider_helpdesk_inner->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED ); - - m_provider_web_icon = new wxStaticText( sb_provider_contact->GetStaticBox(), wxID_ANY, _("¶"), wxDefaultPosition, wxDefaultSize, 0 ); - m_provider_web_icon->Wrap( -1 ); - m_provider_web_icon->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 90, false, wxT("Wingdings") ) ); - - sb_provider_helpdesk_inner->Add( m_provider_web_icon, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT, 5 ); - - m_provider_web = new wxTextCtrl( sb_provider_contact->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); - m_provider_web->SetToolTip( _("Your helpdesk website address") ); - - sb_provider_helpdesk_inner->Add( m_provider_web, 1, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxBOTTOM, 5 ); - - m_provider_email_icon = new wxStaticText( sb_provider_contact->GetStaticBox(), wxID_ANY, _("*"), wxDefaultPosition, wxDefaultSize, 0 ); - m_provider_email_icon->Wrap( -1 ); - m_provider_email_icon->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 90, false, wxT("Wingdings") ) ); - - sb_provider_helpdesk_inner->Add( m_provider_email_icon, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT, 5 ); - - m_provider_email = new wxTextCtrl( sb_provider_contact->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); - m_provider_email->SetToolTip( _("Your helpdesk e-mail address") ); - - sb_provider_helpdesk_inner->Add( m_provider_email, 1, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxBOTTOM, 5 ); - - m_provider_phone_icon = new wxStaticText( sb_provider_contact->GetStaticBox(), wxID_ANY, _(")"), wxDefaultPosition, wxDefaultSize, 0 ); - m_provider_phone_icon->Wrap( -1 ); - m_provider_phone_icon->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 90, false, wxT("Wingdings") ) ); - - sb_provider_helpdesk_inner->Add( m_provider_phone_icon, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 ); - - m_provider_phone = new wxTextCtrl( sb_provider_contact->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); - m_provider_phone->SetToolTip( _("Your helpdesk phone number") ); - - sb_provider_helpdesk_inner->Add( m_provider_phone, 1, wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 ); - - - sb_provider_helpdesk->Add( sb_provider_helpdesk_inner, 0, wxEXPAND, 5 ); - - - sb_provider_contact_vert->Add( sb_provider_helpdesk, 0, wxEXPAND|wxALL, 5 ); - - - sb_provider_contact_horiz->Add( sb_provider_contact_vert, 1, wxEXPAND, 5 ); - - - sb_provider_contact->Add( sb_provider_contact_horiz, 1, wxEXPAND, 5 ); - - - this->SetSizer( sb_provider_contact ); - this->Layout(); -} - -wxEAPProviderContactInfoPanelBase::~wxEAPProviderContactInfoPanelBase() -{ -} - -wxEAPProviderIDPanelBase::wxEAPProviderIDPanelBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style ) -{ - wxStaticBoxSizer* sb_provider_id; - sb_provider_id = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Provider Unique Identifier") ), wxVERTICAL ); - - wxBoxSizer* sb_provider_id_horiz; - sb_provider_id_horiz = new wxBoxSizer( wxHORIZONTAL ); - - m_provider_id_icon = new wxStaticBitmap( sb_provider_id->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 ); - sb_provider_id_horiz->Add( m_provider_id_icon, 0, wxALL, 5 ); - - wxBoxSizer* sb_provider_id_vert; - sb_provider_id_vert = new wxBoxSizer( wxVERTICAL ); - - m_provider_id_label_outer = new wxStaticText( sb_provider_id->GetStaticBox(), wxID_ANY, _("Assign your organization a unique ID to allow sharing the same credential set across different network profiles."), wxDefaultPosition, wxDefaultSize, 0 ); - m_provider_id_label_outer->Wrap( 440 ); - sb_provider_id_vert->Add( m_provider_id_label_outer, 0, wxALL|wxEXPAND, 5 ); - - wxBoxSizer* sb_provider_namespace; - sb_provider_namespace = new wxBoxSizer( wxVERTICAL ); - - m_provider_namespace_label = new wxStaticText( sb_provider_id->GetStaticBox(), wxID_ANY, _("&Namespace:"), wxDefaultPosition, wxDefaultSize, 0 ); - m_provider_namespace_label->Wrap( -1 ); - sb_provider_namespace->Add( m_provider_namespace_label, 0, wxBOTTOM, 5 ); - - wxString m_provider_namespaceChoices[] = { _("urn:RFC4282:realm"), _("urn:uuid") }; - int m_provider_namespaceNChoices = sizeof( m_provider_namespaceChoices ) / sizeof( wxString ); - m_provider_namespace = new wxChoice( sb_provider_id->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_provider_namespaceNChoices, m_provider_namespaceChoices, 0 ); - m_provider_namespace->SetSelection( 0 ); - sb_provider_namespace->Add( m_provider_namespace, 0, wxEXPAND, 5 ); - - - sb_provider_id_vert->Add( sb_provider_namespace, 0, wxEXPAND|wxALL, 5 ); - - wxBoxSizer* sb_provider_id_inner; - sb_provider_id_inner = new wxBoxSizer( wxVERTICAL ); - - m_provider_id_label = new wxStaticText( sb_provider_id->GetStaticBox(), wxID_ANY, _("Provider unique &identifier:"), wxDefaultPosition, wxDefaultSize, 0 ); - m_provider_id_label->Wrap( -1 ); - sb_provider_id_inner->Add( m_provider_id_label, 0, wxBOTTOM, 5 ); - - m_provider_id = new wxTextCtrl( sb_provider_id->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); - m_provider_id->SetToolTip( _("Your organization ID to assign same credentials from other profiles") ); - - sb_provider_id_inner->Add( m_provider_id, 0, wxEXPAND, 5 ); - - - sb_provider_id_vert->Add( sb_provider_id_inner, 0, wxEXPAND|wxALL, 5 ); - - - sb_provider_id_horiz->Add( sb_provider_id_vert, 1, wxEXPAND, 5 ); - - - sb_provider_id->Add( sb_provider_id_horiz, 1, wxEXPAND, 5 ); - - - this->SetSizer( sb_provider_id ); - this->Layout(); -} - -wxEAPProviderIDPanelBase::~wxEAPProviderIDPanelBase() -{ -} - -wxEAPProviderLockPanelBase::wxEAPProviderLockPanelBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style ) -{ - wxStaticBoxSizer* sb_provider_lock; - sb_provider_lock = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Configuration Lock") ), wxVERTICAL ); - - wxBoxSizer* sb_provider_lock_horiz; - sb_provider_lock_horiz = new wxBoxSizer( wxHORIZONTAL ); - - m_provider_lock_icon = new wxStaticBitmap( sb_provider_lock->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 ); - sb_provider_lock_horiz->Add( m_provider_lock_icon, 0, wxALL, 5 ); - - wxBoxSizer* sb_provider_lock_vert; - sb_provider_lock_vert = new wxBoxSizer( wxVERTICAL ); - - m_provider_lock_label = new wxStaticText( sb_provider_lock->GetStaticBox(), wxID_ANY, _("Your configuration can be locked to prevent accidental modification by end-users. Users will only be allowed to enter credentials."), wxDefaultPosition, wxDefaultSize, 0 ); - m_provider_lock_label->Wrap( 440 ); - sb_provider_lock_vert->Add( m_provider_lock_label, 0, wxALL|wxEXPAND, 5 ); - - wxBoxSizer* sb_provider_lock_inner; - sb_provider_lock_inner = new wxBoxSizer( wxVERTICAL ); - - m_provider_lock = new wxCheckBox( sb_provider_lock->GetStaticBox(), wxID_ANY, _("&Lock this configuration and prevent any further modification via user interface."), wxDefaultPosition, wxDefaultSize, 0 ); - sb_provider_lock_inner->Add( m_provider_lock, 0, wxEXPAND|wxBOTTOM, 5 ); - - m_provider_lock_note = new wxStaticText( sb_provider_lock->GetStaticBox(), wxID_ANY, _("(Warning: Once locked, you can not revert using this dialog!)"), wxDefaultPosition, wxDefaultSize, 0 ); - m_provider_lock_note->Wrap( -1 ); - sb_provider_lock_inner->Add( m_provider_lock_note, 0, wxALIGN_RIGHT, 5 ); - - - sb_provider_lock_vert->Add( sb_provider_lock_inner, 0, wxEXPAND|wxALL, 5 ); - - - sb_provider_lock_horiz->Add( sb_provider_lock_vert, 1, wxEXPAND, 5 ); - - - sb_provider_lock->Add( sb_provider_lock_horiz, 1, wxEXPAND, 5 ); - - - this->SetSizer( sb_provider_lock ); - this->Layout(); -} - -wxEAPProviderLockPanelBase::~wxEAPProviderLockPanelBase() -{ -} +/////////////////////////////////////////////////////////////////////////// +// C++ code generated with wxFormBuilder (version Aug 8 2018) +// http://www.wxformbuilder.org/ +// +// PLEASE DO *NOT* EDIT THIS FILE! +/////////////////////////////////////////////////////////////////////////// + +#include + +#include "wxEAP_UI.h" + +/////////////////////////////////////////////////////////////////////////// + +wxEAPConfigDialogBase::wxEAPConfigDialogBase( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style ) +{ + this->SetSizeHints( wxDefaultSize, wxDefaultSize ); + + wxBoxSizer* sb_content; + sb_content = new wxBoxSizer( wxVERTICAL ); + + m_banner = new wxEAPBannerPanel( this ); + + sb_content->Add( m_banner, 0, wxEXPAND|wxBOTTOM, 5 ); + + m_providers = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 ); + m_providers->SetExtraStyle( wxWS_EX_VALIDATE_RECURSIVELY ); + + + sb_content->Add( m_providers, 1, wxEXPAND|wxALL, 10 ); + + wxBoxSizer* sb_bottom_horiz; + sb_bottom_horiz = new wxBoxSizer( wxHORIZONTAL ); + + wxBoxSizer* sb_bottom_horiz_inner; + sb_bottom_horiz_inner = new wxBoxSizer( wxHORIZONTAL ); + + m_prov_add = new wxButton( this, wxID_ANY, _("+"), wxDefaultPosition, wxSize( 30,-1 ), 0 ); + m_prov_add->SetToolTip( _("Adds new provider") ); + + sb_bottom_horiz_inner->Add( m_prov_add, 0, wxALL, 5 ); + + m_prov_remove = new wxButton( this, wxID_ANY, _("-"), wxDefaultPosition, wxSize( 30,-1 ), 0 ); + m_prov_remove->SetToolTip( _("Removes selected provider") ); + + sb_bottom_horiz_inner->Add( m_prov_remove, 0, wxALL, 5 ); + + m_prov_advanced = new wxButton( this, wxID_ANY, _("Advanced..."), wxDefaultPosition, wxDefaultSize, 0 ); + m_prov_advanced->SetToolTip( _("Opens dialog with provider settings") ); + + sb_bottom_horiz_inner->Add( m_prov_advanced, 0, wxALL, 5 ); + + + sb_bottom_horiz->Add( sb_bottom_horiz_inner, 1, wxEXPAND, 5 ); + + m_buttons = new wxStdDialogButtonSizer(); + m_buttonsOK = new wxButton( this, wxID_OK ); + m_buttons->AddButton( m_buttonsOK ); + m_buttonsCancel = new wxButton( this, wxID_CANCEL ); + m_buttons->AddButton( m_buttonsCancel ); + m_buttons->Realize(); + + sb_bottom_horiz->Add( m_buttons, 0, wxEXPAND|wxALL, 5 ); + + + sb_content->Add( sb_bottom_horiz, 0, wxEXPAND, 5 ); + + + this->SetSizer( sb_content ); + this->Layout(); + sb_content->Fit( this ); + + // Connect Events + this->Connect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( wxEAPConfigDialogBase::OnInitDialog ) ); + this->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( wxEAPConfigDialogBase::OnUpdateUI ) ); + m_prov_add->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( wxEAPConfigDialogBase::OnProvAdd ), NULL, this ); + m_prov_remove->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( wxEAPConfigDialogBase::OnProvRemove ), NULL, this ); + m_prov_advanced->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( wxEAPConfigDialogBase::OnProvAdvanced ), NULL, this ); +} + +wxEAPConfigDialogBase::~wxEAPConfigDialogBase() +{ + // Disconnect Events + this->Disconnect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( wxEAPConfigDialogBase::OnInitDialog ) ); + this->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( wxEAPConfigDialogBase::OnUpdateUI ) ); + m_prov_add->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( wxEAPConfigDialogBase::OnProvAdd ), NULL, this ); + m_prov_remove->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( wxEAPConfigDialogBase::OnProvRemove ), NULL, this ); + m_prov_advanced->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( wxEAPConfigDialogBase::OnProvAdvanced ), NULL, this ); + +} + +wxEAPGeneralDialogBase::wxEAPGeneralDialogBase( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style ) +{ + this->SetSizeHints( wxDefaultSize, wxDefaultSize ); + + wxBoxSizer* sb_content; + sb_content = new wxBoxSizer( wxVERTICAL ); + + m_banner = new wxEAPBannerPanel( this ); + + sb_content->Add( m_banner, 0, wxEXPAND|wxBOTTOM, 5 ); + + m_panels = new wxBoxSizer( wxVERTICAL ); + + + sb_content->Add( m_panels, 1, wxEXPAND|wxALL, 5 ); + + m_buttons = new wxStdDialogButtonSizer(); + m_buttonsOK = new wxButton( this, wxID_OK ); + m_buttons->AddButton( m_buttonsOK ); + m_buttonsCancel = new wxButton( this, wxID_CANCEL ); + m_buttons->AddButton( m_buttonsCancel ); + m_buttons->Realize(); + + sb_content->Add( m_buttons, 0, wxEXPAND|wxALL, 5 ); + + + this->SetSizer( sb_content ); + this->Layout(); + sb_content->Fit( this ); + + // Connect Events + this->Connect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( wxEAPGeneralDialogBase::OnInitDialog ) ); +} + +wxEAPGeneralDialogBase::~wxEAPGeneralDialogBase() +{ + // Disconnect Events + this->Disconnect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( wxEAPGeneralDialogBase::OnInitDialog ) ); + +} + +wxEAPCredentialsConnectionDialogBase::wxEAPCredentialsConnectionDialogBase( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style ) +{ + this->SetSizeHints( wxDefaultSize, wxDefaultSize ); + + wxBoxSizer* sb_content; + sb_content = new wxBoxSizer( wxVERTICAL ); + + m_banner = new wxEAPBannerPanel( this ); + + sb_content->Add( m_banner, 0, wxEXPAND|wxBOTTOM, 5 ); + + m_providers = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 ); + m_providers->SetExtraStyle( wxWS_EX_VALIDATE_RECURSIVELY ); + + + sb_content->Add( m_providers, 1, wxEXPAND | wxALL, 5 ); + + m_buttons = new wxStdDialogButtonSizer(); + m_buttonsOK = new wxButton( this, wxID_OK ); + m_buttons->AddButton( m_buttonsOK ); + m_buttonsCancel = new wxButton( this, wxID_CANCEL ); + m_buttons->AddButton( m_buttonsCancel ); + m_buttons->Realize(); + + sb_content->Add( m_buttons, 0, wxEXPAND|wxALL, 5 ); + + + this->SetSizer( sb_content ); + this->Layout(); + sb_content->Fit( this ); + + // Connect Events + this->Connect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( wxEAPCredentialsConnectionDialogBase::OnInitDialog ) ); +} + +wxEAPCredentialsConnectionDialogBase::~wxEAPCredentialsConnectionDialogBase() +{ + // Disconnect Events + this->Disconnect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( wxEAPCredentialsConnectionDialogBase::OnInitDialog ) ); + +} + +wxEAPBannerPanelBase::wxEAPBannerPanelBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : wxPanel( parent, id, pos, size, style, name ) +{ + this->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHT ) ); + this->SetMinSize( wxSize( -1,48 ) ); + + wxBoxSizer* sb_content; + sb_content = new wxBoxSizer( wxVERTICAL ); + + m_title = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT ); + m_title->Wrap( -1 ); + m_title->SetFont( wxFont( 18, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) ); + m_title->SetForegroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHTTEXT ) ); + + sb_content->Add( m_title, 0, wxALL|wxEXPAND, 5 ); + + + this->SetSizer( sb_content ); + this->Layout(); + sb_content->Fit( this ); +} + +wxEAPBannerPanelBase::~wxEAPBannerPanelBase() +{ +} + +wxEAPNotePanelBase::wxEAPNotePanelBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : wxPanel( parent, id, pos, size, style, name ) +{ + this->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_INFOBK ) ); + + wxBoxSizer* sb_note_horiz; + sb_note_horiz = new wxBoxSizer( wxHORIZONTAL ); + + m_note_icon = new wxStaticBitmap( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 ); + sb_note_horiz->Add( m_note_icon, 0, wxALL, 5 ); + + m_note_vert = new wxBoxSizer( wxVERTICAL ); + + m_note_label = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); + m_note_label->Wrap( 449 ); + m_note_vert->Add( m_note_label, 0, wxALL|wxEXPAND, 5 ); + + + sb_note_horiz->Add( m_note_vert, 1, wxEXPAND, 5 ); + + + this->SetSizer( sb_note_horiz ); + this->Layout(); +} + +wxEAPNotePanelBase::~wxEAPNotePanelBase() +{ +} + +wxEAPCredentialsConfigPanelBase::wxEAPCredentialsConfigPanelBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : wxPanel( parent, id, pos, size, style, name ) +{ + m_sb_credentials = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("%s User Credentials") ), wxVERTICAL ); + + wxBoxSizer* sb_credentials_horiz; + sb_credentials_horiz = new wxBoxSizer( wxHORIZONTAL ); + + m_credentials_icon = new wxStaticBitmap( m_sb_credentials->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 ); + sb_credentials_horiz->Add( m_credentials_icon, 0, wxALL, 5 ); + + wxBoxSizer* sb_credentials_vert; + sb_credentials_vert = new wxBoxSizer( wxVERTICAL ); + + m_credentials_label = new wxStaticText( m_sb_credentials->GetStaticBox(), wxID_ANY, _("Select the source where your credentials used to connect are stored."), wxDefaultPosition, wxDefaultSize, 0 ); + m_credentials_label->Wrap( 440 ); + sb_credentials_vert->Add( m_credentials_label, 0, wxALL|wxEXPAND, 5 ); + + m_storage = new wxRadioButton( m_sb_credentials->GetStaticBox(), wxID_ANY, _("Use credentials from Credential &Manager"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP ); + m_storage->SetToolTip( _("Select this option if you would like to use credentials stored in Windows Credential Manager") ); + + sb_credentials_vert->Add( m_storage, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 ); + + wxBoxSizer* sb_storage; + sb_storage = new wxBoxSizer( wxVERTICAL ); + + wxBoxSizer* sb_storage_identity; + sb_storage_identity = new wxBoxSizer( wxHORIZONTAL ); + + m_storage_identity_label = new wxStaticText( m_sb_credentials->GetStaticBox(), wxID_ANY, _("Identity:"), wxDefaultPosition, wxDefaultSize, 0 ); + m_storage_identity_label->Wrap( -1 ); + sb_storage_identity->Add( m_storage_identity_label, 0, 0, 5 ); + + m_storage_identity = new wxStaticText( m_sb_credentials->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); + m_storage_identity->Wrap( -1 ); + m_storage_identity->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) ); + m_storage_identity->SetToolTip( _("Your present credentials stored in Windows Credential Manager") ); + + sb_storage_identity->Add( m_storage_identity, 1, wxEXPAND|wxLEFT, 5 ); + + + sb_storage->Add( sb_storage_identity, 1, wxEXPAND, 5 ); + + wxBoxSizer* sb_buttons_storage; + sb_buttons_storage = new wxBoxSizer( wxHORIZONTAL ); + + m_storage_clear = new wxButton( m_sb_credentials->GetStaticBox(), wxID_ANY, _("&Clear Credentials"), wxDefaultPosition, wxDefaultSize, 0 ); + m_storage_clear->SetToolTip( _("Click to clear your credentials from Credential Manager.\nNote: You will be prompted to enter credentials when connecting.") ); + + sb_buttons_storage->Add( m_storage_clear, 0, wxRIGHT, 5 ); + + m_storage_set = new wxButton( m_sb_credentials->GetStaticBox(), wxID_ANY, _("&Set Credentials..."), wxDefaultPosition, wxDefaultSize, 0 ); + m_storage_set->SetToolTip( _("Click here to set or modify your credentials") ); + + sb_buttons_storage->Add( m_storage_set, 0, wxLEFT, 5 ); + + + sb_storage->Add( sb_buttons_storage, 0, wxALIGN_RIGHT|wxTOP, 5 ); + + + sb_credentials_vert->Add( sb_storage, 0, wxEXPAND|wxALL, 5 ); + + m_config = new wxRadioButton( m_sb_credentials->GetStaticBox(), wxID_ANY, _("Use credentials from &profile configuration"), wxDefaultPosition, wxDefaultSize, 0 ); + m_config->SetToolTip( _("Select this option if you would like to store credentials as a part of profile configuration") ); + + sb_credentials_vert->Add( m_config, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 ); + + wxBoxSizer* sb_config; + sb_config = new wxBoxSizer( wxVERTICAL ); + + wxBoxSizer* sb_config_identity; + sb_config_identity = new wxBoxSizer( wxHORIZONTAL ); + + m_config_identity_label = new wxStaticText( m_sb_credentials->GetStaticBox(), wxID_ANY, _("Identity:"), wxDefaultPosition, wxDefaultSize, 0 ); + m_config_identity_label->Wrap( -1 ); + sb_config_identity->Add( m_config_identity_label, 0, 0, 5 ); + + m_config_identity = new wxStaticText( m_sb_credentials->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); + m_config_identity->Wrap( -1 ); + m_config_identity->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) ); + m_config_identity->SetToolTip( _("Profile configuration credentials") ); + + sb_config_identity->Add( m_config_identity, 1, wxEXPAND|wxLEFT, 5 ); + + + sb_config->Add( sb_config_identity, 1, wxEXPAND, 5 ); + + wxBoxSizer* sb_buttons_config; + sb_buttons_config = new wxBoxSizer( wxHORIZONTAL ); + + m_config_set = new wxButton( m_sb_credentials->GetStaticBox(), wxID_ANY, _("&Set Credentials..."), wxDefaultPosition, wxDefaultSize, 0 ); + m_config_set->SetToolTip( _("Click here to set or modify your credentials") ); + + sb_buttons_config->Add( m_config_set, 0, 0, 5 ); + + + sb_config->Add( sb_buttons_config, 0, wxALIGN_RIGHT|wxTOP, 5 ); + + + sb_credentials_vert->Add( sb_config, 0, wxEXPAND|wxALL, 5 ); + + + sb_credentials_horiz->Add( sb_credentials_vert, 1, wxEXPAND, 5 ); + + + m_sb_credentials->Add( sb_credentials_horiz, 1, wxEXPAND, 5 ); + + + this->SetSizer( m_sb_credentials ); + this->Layout(); + m_timer_storage.SetOwner( this, wxID_ANY ); + + // Connect Events + this->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( wxEAPCredentialsConfigPanelBase::OnUpdateUI ) ); + m_storage_clear->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( wxEAPCredentialsConfigPanelBase::OnClearStorage ), NULL, this ); + m_storage_set->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( wxEAPCredentialsConfigPanelBase::OnSetStorage ), NULL, this ); + m_config_set->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( wxEAPCredentialsConfigPanelBase::OnSetConfig ), NULL, this ); + this->Connect( wxID_ANY, wxEVT_TIMER, wxTimerEventHandler( wxEAPCredentialsConfigPanelBase::OnTimerStorage ) ); +} + +wxEAPCredentialsConfigPanelBase::~wxEAPCredentialsConfigPanelBase() +{ + // Disconnect Events + this->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( wxEAPCredentialsConfigPanelBase::OnUpdateUI ) ); + m_storage_clear->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( wxEAPCredentialsConfigPanelBase::OnClearStorage ), NULL, this ); + m_storage_set->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( wxEAPCredentialsConfigPanelBase::OnSetStorage ), NULL, this ); + m_config_set->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( wxEAPCredentialsConfigPanelBase::OnSetConfig ), NULL, this ); + this->Disconnect( wxID_ANY, wxEVT_TIMER, wxTimerEventHandler( wxEAPCredentialsConfigPanelBase::OnTimerStorage ) ); + +} + +wxPasswordCredentialsPanelBase::wxPasswordCredentialsPanelBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : wxEAPCredentialsPanelBase( parent, id, pos, size, style, name ) +{ + m_sb_credentials = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("User ID and Password") ), wxVERTICAL ); + + wxBoxSizer* sb_credentials_horiz; + sb_credentials_horiz = new wxBoxSizer( wxHORIZONTAL ); + + m_credentials_icon = new wxStaticBitmap( m_sb_credentials->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 ); + sb_credentials_horiz->Add( m_credentials_icon, 0, wxALL, 5 ); + + m_sb_credentials_vert = new wxBoxSizer( wxVERTICAL ); + + m_credentials_label = new wxStaticText( m_sb_credentials->GetStaticBox(), wxID_ANY, _("Please provide your user ID and password."), wxDefaultPosition, wxDefaultSize, 0 ); + m_credentials_label->Wrap( 440 ); + m_sb_credentials_vert->Add( m_credentials_label, 0, wxALL|wxEXPAND, 5 ); + + wxFlexGridSizer* sb_credentials_tbl; + sb_credentials_tbl = new wxFlexGridSizer( 0, 2, 5, 5 ); + sb_credentials_tbl->AddGrowableCol( 1 ); + sb_credentials_tbl->SetFlexibleDirection( wxBOTH ); + sb_credentials_tbl->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED ); + + m_identity_label = new wxStaticText( m_sb_credentials->GetStaticBox(), wxID_ANY, _("User ID:"), wxDefaultPosition, wxDefaultSize, 0 ); + m_identity_label->Wrap( -1 ); + sb_credentials_tbl->Add( m_identity_label, 0, wxALIGN_CENTER_VERTICAL, 5 ); + + m_identity = new wxTextCtrl( m_sb_credentials->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); + m_identity->SetToolTip( _("Enter your user name here (user@domain.org, DOMAIN\\User, etc.)") ); + + sb_credentials_tbl->Add( m_identity, 2, wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 ); + + m_password_label = new wxStaticText( m_sb_credentials->GetStaticBox(), wxID_ANY, _("Password:"), wxDefaultPosition, wxDefaultSize, 0 ); + m_password_label->Wrap( -1 ); + sb_credentials_tbl->Add( m_password_label, 0, wxALIGN_CENTER_VERTICAL, 5 ); + + m_password = new wxTextCtrl( m_sb_credentials->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PASSWORD ); + m_password->SetToolTip( _("Enter your password here") ); + + sb_credentials_tbl->Add( m_password, 2, wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 ); + + + m_sb_credentials_vert->Add( sb_credentials_tbl, 0, wxEXPAND|wxALL, 5 ); + + + sb_credentials_horiz->Add( m_sb_credentials_vert, 1, wxEXPAND, 5 ); + + + m_sb_credentials->Add( sb_credentials_horiz, 0, wxEXPAND, 5 ); + + + this->SetSizer( m_sb_credentials ); + this->Layout(); + + // Connect Events + m_password->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( wxPasswordCredentialsPanelBase::OnPasswordText ), NULL, this ); +} + +wxPasswordCredentialsPanelBase::~wxPasswordCredentialsPanelBase() +{ + // Disconnect Events + m_password->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( wxPasswordCredentialsPanelBase::OnPasswordText ), NULL, this ); + +} + +wxEAPProviderContactInfoPanelBase::wxEAPProviderContactInfoPanelBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : wxPanel( parent, id, pos, size, style, name ) +{ + wxStaticBoxSizer* sb_provider_contact; + sb_provider_contact = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Your Organization") ), wxVERTICAL ); + + wxBoxSizer* sb_provider_contact_horiz; + sb_provider_contact_horiz = new wxBoxSizer( wxHORIZONTAL ); + + m_provider_contact_icon = new wxStaticBitmap( sb_provider_contact->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 ); + sb_provider_contact_horiz->Add( m_provider_contact_icon, 0, wxALL, 5 ); + + wxBoxSizer* sb_provider_contact_vert; + sb_provider_contact_vert = new wxBoxSizer( wxVERTICAL ); + + m_provider_contact_label = new wxStaticText( sb_provider_contact->GetStaticBox(), wxID_ANY, _("Describe your organization to customize user prompts. When organization is introduced, end-users find program messages easier to understand and act."), wxDefaultPosition, wxDefaultSize, 0 ); + m_provider_contact_label->Wrap( 440 ); + sb_provider_contact_vert->Add( m_provider_contact_label, 0, wxALL|wxEXPAND, 5 ); + + wxBoxSizer* sb_provider_name; + sb_provider_name = new wxBoxSizer( wxVERTICAL ); + + m_provider_name_label = new wxStaticText( sb_provider_contact->GetStaticBox(), wxID_ANY, _("Your organization &name:"), wxDefaultPosition, wxDefaultSize, 0 ); + m_provider_name_label->Wrap( -1 ); + sb_provider_name->Add( m_provider_name_label, 0, wxBOTTOM, 5 ); + + m_provider_name = new wxTextCtrl( sb_provider_contact->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); + m_provider_name->SetToolTip( _("Your organization name as it will appear on helpdesk contact notifications") ); + + sb_provider_name->Add( m_provider_name, 0, wxEXPAND|wxBOTTOM, 5 ); + + m_provider_name_note = new wxStaticText( sb_provider_contact->GetStaticBox(), wxID_ANY, _("(Keep it short, please)"), wxDefaultPosition, wxDefaultSize, 0 ); + m_provider_name_note->Wrap( -1 ); + sb_provider_name->Add( m_provider_name_note, 0, wxALIGN_RIGHT, 5 ); + + + sb_provider_contact_vert->Add( sb_provider_name, 0, wxEXPAND|wxALL, 5 ); + + wxBoxSizer* sb_provider_helpdesk; + sb_provider_helpdesk = new wxBoxSizer( wxVERTICAL ); + + m_provider_helpdesk_label = new wxStaticText( sb_provider_contact->GetStaticBox(), wxID_ANY, _("Helpdesk contact &information:"), wxDefaultPosition, wxDefaultSize, 0 ); + m_provider_helpdesk_label->Wrap( -1 ); + sb_provider_helpdesk->Add( m_provider_helpdesk_label, 0, wxBOTTOM, 5 ); + + wxFlexGridSizer* sb_provider_helpdesk_inner; + sb_provider_helpdesk_inner = new wxFlexGridSizer( 0, 2, 0, 0 ); + sb_provider_helpdesk_inner->AddGrowableCol( 1 ); + sb_provider_helpdesk_inner->SetFlexibleDirection( wxBOTH ); + sb_provider_helpdesk_inner->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED ); + + m_provider_web_icon = new wxStaticText( sb_provider_contact->GetStaticBox(), wxID_ANY, _("¶"), wxDefaultPosition, wxDefaultSize, 0 ); + m_provider_web_icon->Wrap( -1 ); + m_provider_web_icon->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxT("Wingdings") ) ); + + sb_provider_helpdesk_inner->Add( m_provider_web_icon, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT, 5 ); + + m_provider_web = new wxTextCtrl( sb_provider_contact->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); + m_provider_web->SetToolTip( _("Your helpdesk website address") ); + + sb_provider_helpdesk_inner->Add( m_provider_web, 1, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxBOTTOM, 5 ); + + m_provider_email_icon = new wxStaticText( sb_provider_contact->GetStaticBox(), wxID_ANY, _("*"), wxDefaultPosition, wxDefaultSize, 0 ); + m_provider_email_icon->Wrap( -1 ); + m_provider_email_icon->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxT("Wingdings") ) ); + + sb_provider_helpdesk_inner->Add( m_provider_email_icon, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT, 5 ); + + m_provider_email = new wxTextCtrl( sb_provider_contact->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); + m_provider_email->SetToolTip( _("Your helpdesk e-mail address") ); + + sb_provider_helpdesk_inner->Add( m_provider_email, 1, wxEXPAND|wxALIGN_CENTER_VERTICAL|wxBOTTOM, 5 ); + + m_provider_phone_icon = new wxStaticText( sb_provider_contact->GetStaticBox(), wxID_ANY, _(")"), wxDefaultPosition, wxDefaultSize, 0 ); + m_provider_phone_icon->Wrap( -1 ); + m_provider_phone_icon->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxT("Wingdings") ) ); + + sb_provider_helpdesk_inner->Add( m_provider_phone_icon, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 ); + + m_provider_phone = new wxTextCtrl( sb_provider_contact->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); + m_provider_phone->SetToolTip( _("Your helpdesk phone number") ); + + sb_provider_helpdesk_inner->Add( m_provider_phone, 1, wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 ); + + + sb_provider_helpdesk->Add( sb_provider_helpdesk_inner, 0, wxEXPAND, 5 ); + + + sb_provider_contact_vert->Add( sb_provider_helpdesk, 0, wxEXPAND|wxALL, 5 ); + + + sb_provider_contact_horiz->Add( sb_provider_contact_vert, 1, wxEXPAND, 5 ); + + + sb_provider_contact->Add( sb_provider_contact_horiz, 1, wxEXPAND, 5 ); + + + this->SetSizer( sb_provider_contact ); + this->Layout(); +} + +wxEAPProviderContactInfoPanelBase::~wxEAPProviderContactInfoPanelBase() +{ +} + +wxEAPProviderIDPanelBase::wxEAPProviderIDPanelBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : wxPanel( parent, id, pos, size, style, name ) +{ + wxStaticBoxSizer* sb_provider_id; + sb_provider_id = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Provider Unique Identifier") ), wxVERTICAL ); + + wxBoxSizer* sb_provider_id_horiz; + sb_provider_id_horiz = new wxBoxSizer( wxHORIZONTAL ); + + m_provider_id_icon = new wxStaticBitmap( sb_provider_id->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 ); + sb_provider_id_horiz->Add( m_provider_id_icon, 0, wxALL, 5 ); + + wxBoxSizer* sb_provider_id_vert; + sb_provider_id_vert = new wxBoxSizer( wxVERTICAL ); + + m_provider_id_label_outer = new wxStaticText( sb_provider_id->GetStaticBox(), wxID_ANY, _("Assign your organization a unique ID to allow sharing the same credential set across different network profiles."), wxDefaultPosition, wxDefaultSize, 0 ); + m_provider_id_label_outer->Wrap( 440 ); + sb_provider_id_vert->Add( m_provider_id_label_outer, 0, wxALL|wxEXPAND, 5 ); + + wxBoxSizer* sb_provider_namespace; + sb_provider_namespace = new wxBoxSizer( wxVERTICAL ); + + m_provider_namespace_label = new wxStaticText( sb_provider_id->GetStaticBox(), wxID_ANY, _("&Namespace:"), wxDefaultPosition, wxDefaultSize, 0 ); + m_provider_namespace_label->Wrap( -1 ); + sb_provider_namespace->Add( m_provider_namespace_label, 0, wxBOTTOM, 5 ); + + wxString m_provider_namespaceChoices[] = { _("urn:RFC4282:realm"), _("urn:uuid") }; + int m_provider_namespaceNChoices = sizeof( m_provider_namespaceChoices ) / sizeof( wxString ); + m_provider_namespace = new wxChoice( sb_provider_id->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_provider_namespaceNChoices, m_provider_namespaceChoices, 0 ); + m_provider_namespace->SetSelection( 0 ); + sb_provider_namespace->Add( m_provider_namespace, 0, wxEXPAND, 5 ); + + + sb_provider_id_vert->Add( sb_provider_namespace, 0, wxEXPAND|wxALL, 5 ); + + wxBoxSizer* sb_provider_id_inner; + sb_provider_id_inner = new wxBoxSizer( wxVERTICAL ); + + m_provider_id_label = new wxStaticText( sb_provider_id->GetStaticBox(), wxID_ANY, _("Provider unique &identifier:"), wxDefaultPosition, wxDefaultSize, 0 ); + m_provider_id_label->Wrap( -1 ); + sb_provider_id_inner->Add( m_provider_id_label, 0, wxBOTTOM, 5 ); + + m_provider_id = new wxTextCtrl( sb_provider_id->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); + m_provider_id->SetToolTip( _("Your organization ID to assign same credentials from other profiles") ); + + sb_provider_id_inner->Add( m_provider_id, 0, wxEXPAND, 5 ); + + + sb_provider_id_vert->Add( sb_provider_id_inner, 0, wxEXPAND|wxALL, 5 ); + + + sb_provider_id_horiz->Add( sb_provider_id_vert, 1, wxEXPAND, 5 ); + + + sb_provider_id->Add( sb_provider_id_horiz, 1, wxEXPAND, 5 ); + + + this->SetSizer( sb_provider_id ); + this->Layout(); +} + +wxEAPProviderIDPanelBase::~wxEAPProviderIDPanelBase() +{ +} + +wxEAPProviderLockPanelBase::wxEAPProviderLockPanelBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : wxPanel( parent, id, pos, size, style, name ) +{ + wxStaticBoxSizer* sb_provider_lock; + sb_provider_lock = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Configuration Lock") ), wxVERTICAL ); + + wxBoxSizer* sb_provider_lock_horiz; + sb_provider_lock_horiz = new wxBoxSizer( wxHORIZONTAL ); + + m_provider_lock_icon = new wxStaticBitmap( sb_provider_lock->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 ); + sb_provider_lock_horiz->Add( m_provider_lock_icon, 0, wxALL, 5 ); + + wxBoxSizer* sb_provider_lock_vert; + sb_provider_lock_vert = new wxBoxSizer( wxVERTICAL ); + + m_provider_lock_label = new wxStaticText( sb_provider_lock->GetStaticBox(), wxID_ANY, _("Your configuration can be locked to prevent accidental modification by end-users. Users will only be allowed to enter credentials."), wxDefaultPosition, wxDefaultSize, 0 ); + m_provider_lock_label->Wrap( 440 ); + sb_provider_lock_vert->Add( m_provider_lock_label, 0, wxALL|wxEXPAND, 5 ); + + wxBoxSizer* sb_provider_lock_inner; + sb_provider_lock_inner = new wxBoxSizer( wxVERTICAL ); + + m_provider_lock = new wxCheckBox( sb_provider_lock->GetStaticBox(), wxID_ANY, _("&Lock this configuration and prevent any further modification via user interface."), wxDefaultPosition, wxDefaultSize, 0 ); + sb_provider_lock_inner->Add( m_provider_lock, 0, wxEXPAND|wxBOTTOM, 5 ); + + m_provider_lock_note = new wxStaticText( sb_provider_lock->GetStaticBox(), wxID_ANY, _("(Warning: Once locked, you can not revert using this dialog!)"), wxDefaultPosition, wxDefaultSize, 0 ); + m_provider_lock_note->Wrap( -1 ); + sb_provider_lock_inner->Add( m_provider_lock_note, 0, wxALIGN_RIGHT, 5 ); + + + sb_provider_lock_vert->Add( sb_provider_lock_inner, 0, wxEXPAND|wxALL, 5 ); + + + sb_provider_lock_horiz->Add( sb_provider_lock_vert, 1, wxEXPAND, 5 ); + + + sb_provider_lock->Add( sb_provider_lock_horiz, 1, wxEXPAND, 5 ); + + + this->SetSizer( sb_provider_lock ); + this->Layout(); +} + +wxEAPProviderLockPanelBase::~wxEAPProviderLockPanelBase() +{ +} diff --git a/lib/EAPBase_UI/res/wxEAP_UI.fbp b/lib/EAPBase_UI/res/wxEAP_UI.fbp index f4f02d0..78fd578 100644 --- a/lib/EAPBase_UI/res/wxEAP_UI.fbp +++ b/lib/EAPBase_UI/res/wxEAP_UI.fbp @@ -1,6 +1,6 @@ - + ; C++ @@ -14,6 +14,7 @@ wxEAP_UI 1000 none + 1 wxEAP_UI @@ -54,13 +55,20 @@ - + + + + + + + + @@ -75,17 +83,23 @@ + + + + + + OnUpdateUI @@ -153,7 +167,14 @@ + + + + + + + @@ -235,7 +256,14 @@ wxWS_EX_VALIDATE_RECURSIVELY + + + + + + + @@ -295,25 +323,31 @@ + 1 0 1 1 + 0 0 + Dock 0 Left 1 1 + 0 0 wxID_ANY + + + 0 0 @@ -328,6 +362,8 @@ protected 1 + + Resizable 1 30,-1 @@ -342,8 +378,15 @@ + + + + + + OnProvAdd + @@ -383,25 +426,31 @@ + 1 0 1 1 + 0 0 + Dock 0 Left 1 1 + 0 0 wxID_ANY - + + 0 0 @@ -416,6 +465,8 @@ protected 1 + + Resizable 1 30,-1 @@ -430,8 +481,15 @@ + + + + + + OnProvRemove + @@ -471,25 +529,31 @@ + 1 0 1 1 + 0 0 + Dock 0 Left 1 1 + 0 0 wxID_ANY Advanced... + + 0 0 @@ -504,6 +568,8 @@ protected 1 + + Resizable 1 @@ -518,8 +584,15 @@ + + + + + + OnProvAdvanced + @@ -604,13 +677,20 @@ - + + + + + + + + @@ -625,17 +705,23 @@ + + + + + + @@ -703,7 +789,14 @@ + + + + + + + @@ -795,13 +888,20 @@ - + + + + + + + + @@ -816,17 +916,23 @@ + + + + + + @@ -894,7 +1000,14 @@ + + + + + + + @@ -976,7 +1089,14 @@ wxWS_EX_VALIDATE_RECURSIVELY + + + + + + + @@ -1053,13 +1173,20 @@ - + + + + + + + + @@ -1121,6 +1248,7 @@ 0 wxID_ANY + 0 0 @@ -1146,7 +1274,14 @@ -1 + + + + + + + @@ -1194,14 +1329,21 @@ - wxSIMPLE_BORDER|wxTAB_TRAVERSAL - + wxTAB_TRAVERSAL|wxBORDER_SIMPLE + + + + + + + + @@ -1286,7 +1428,14 @@ + + + + + + + @@ -1353,6 +1502,7 @@ 0 wxID_ANY + 0 0 @@ -1378,7 +1528,14 @@ 449 + + + + + + + @@ -1429,13 +1586,20 @@ wxTAB_TRAVERSAL - + + + + + + + + @@ -1465,6 +1629,7 @@ m_sb_credentials wxVERTICAL + 1 protected @@ -1532,7 +1697,14 @@ + + + + + + + @@ -1599,6 +1771,7 @@ 0 wxID_ANY Select the source where your credentials used to connect are stored. + 0 0 @@ -1624,7 +1797,14 @@ 440 + + + + + + + @@ -1711,7 +1891,14 @@ + + + + + + + @@ -1788,6 +1975,7 @@ 0 wxID_ANY Identity: + 0 0 @@ -1813,7 +2001,14 @@ -1 + + + + + + + @@ -1871,6 +2066,7 @@ 0 wxID_ANY + 0 0 @@ -1896,7 +2092,14 @@ -1 + + + + + + + @@ -1947,25 +2150,31 @@ + 1 0 1 1 + 0 0 + Dock 0 Left 1 1 + 0 0 wxID_ANY &Clear Credentials + + 0 0 @@ -1980,6 +2189,8 @@ protected 1 + + Resizable 1 @@ -1994,8 +2205,15 @@ + + + + + + OnClearStorage + @@ -2035,25 +2253,31 @@ + 1 0 1 1 + 0 0 + Dock 0 Left 1 1 + 0 0 wxID_ANY &Set Credentials... + + 0 0 @@ -2068,6 +2292,8 @@ protected 1 + + Resizable 1 @@ -2082,8 +2308,15 @@ + + + + + + OnSetStorage + @@ -2174,7 +2407,14 @@ + + + + + + + @@ -2251,6 +2491,7 @@ 0 wxID_ANY Identity: + 0 0 @@ -2276,7 +2517,14 @@ -1 + + + + + + + @@ -2334,6 +2582,7 @@ 0 wxID_ANY + 0 0 @@ -2359,7 +2608,14 @@ -1 + + + + + + + @@ -2410,25 +2666,31 @@ + 1 0 1 1 + 0 0 + Dock 0 Left 1 1 + 0 0 wxID_ANY &Set Credentials... + + 0 0 @@ -2443,6 +2705,8 @@ protected 1 + + Resizable 1 @@ -2457,8 +2721,15 @@ + + + + + + OnSetConfig + @@ -2524,13 +2795,20 @@ wxTAB_TRAVERSAL - + + + + + + + + @@ -2560,6 +2838,7 @@ m_sb_credentials wxVERTICAL + 1 protected @@ -2627,7 +2906,14 @@ + + + + + + + @@ -2694,6 +2980,7 @@ 0 wxID_ANY Please provide your user ID and password. + 0 0 @@ -2719,7 +3006,14 @@ 440 + + + + + + + @@ -2793,6 +3087,7 @@ 0 wxID_ANY User ID: + 0 0 @@ -2818,7 +3113,14 @@ -1 + + + + + + + @@ -2905,7 +3207,14 @@ + + + + + + + @@ -2967,6 +3276,7 @@ 0 wxID_ANY Password: + 0 0 @@ -2992,7 +3302,14 @@ -1 + + + + + + + @@ -3079,7 +3396,14 @@ + + + + + + + @@ -3138,13 +3462,20 @@ wxTAB_TRAVERSAL - + + + + + + + + @@ -3174,6 +3505,7 @@ sb_provider_contact wxVERTICAL + 1 none @@ -3241,7 +3573,14 @@ + + + + + + + @@ -3308,6 +3647,7 @@ 0 wxID_ANY Describe your organization to customize user prompts. When organization is introduced, end-users find program messages easier to understand and act. + 0 0 @@ -3333,7 +3673,14 @@ 440 + + + + + + + @@ -3400,6 +3747,7 @@ 0 wxID_ANY Your organization &name: + 0 0 @@ -3425,7 +3773,14 @@ -1 + + + + + + + @@ -3512,7 +3867,14 @@ + + + + + + + @@ -3574,6 +3936,7 @@ 0 wxID_ANY (Keep it short, please) + 0 0 @@ -3599,7 +3962,14 @@ -1 + + + + + + + @@ -3668,6 +4038,7 @@ 0 wxID_ANY Helpdesk contact &information: + 0 0 @@ -3693,7 +4064,14 @@ -1 + + + + + + + @@ -3767,6 +4145,7 @@ 0 wxID_ANY + 0 0 @@ -3792,7 +4171,14 @@ -1 + + + + + + + @@ -3879,7 +4265,14 @@ + + + + + + + @@ -3941,6 +4334,7 @@ 0 wxID_ANY * + 0 0 @@ -3966,7 +4360,14 @@ -1 + + + + + + + @@ -4053,7 +4454,14 @@ + + + + + + + @@ -4115,6 +4523,7 @@ 0 wxID_ANY ) + 0 0 @@ -4140,7 +4549,14 @@ -1 + + + + + + + @@ -4227,7 +4643,14 @@ + + + + + + + @@ -4288,13 +4711,20 @@ wxTAB_TRAVERSAL - + + + + + + + + @@ -4324,6 +4754,7 @@ sb_provider_id wxVERTICAL + 1 none @@ -4391,7 +4822,14 @@ + + + + + + + @@ -4458,6 +4896,7 @@ 0 wxID_ANY Assign your organization a unique ID to allow sharing the same credential set across different network profiles. + 0 0 @@ -4483,7 +4922,14 @@ 440 + + + + + + + @@ -4550,6 +4996,7 @@ 0 wxID_ANY &Namespace: + 0 0 @@ -4575,7 +5022,14 @@ -1 + + + + + + + @@ -4662,7 +5116,14 @@ + + + + + + + @@ -4732,6 +5193,7 @@ 0 wxID_ANY Provider unique &identifier: + 0 0 @@ -4757,7 +5219,14 @@ -1 + + + + + + + @@ -4844,7 +5313,14 @@ + + + + + + + @@ -4903,13 +5379,20 @@ wxTAB_TRAVERSAL - + + + + + + + + @@ -4939,6 +5422,7 @@ sb_provider_lock wxVERTICAL + 1 none @@ -5006,7 +5490,14 @@ + + + + + + + @@ -5073,6 +5564,7 @@ 0 wxID_ANY Your configuration can be locked to prevent accidental modification by end-users. Users will only be allowed to enter credentials. + 0 0 @@ -5098,7 +5590,14 @@ 440 + + + + + + + @@ -5194,7 +5693,14 @@ + + + + + + + @@ -5253,6 +5759,7 @@ 0 wxID_ANY (Warning: Once locked, you can not revert using this dialog!) + 0 0 @@ -5278,7 +5785,14 @@ -1 + + + + + + + diff --git a/lib/EAPBase_UI/res/wxEAP_UI.h b/lib/EAPBase_UI/res/wxEAP_UI.h index e2aa129..82e6ddf 100644 --- a/lib/EAPBase_UI/res/wxEAP_UI.h +++ b/lib/EAPBase_UI/res/wxEAP_UI.h @@ -1,295 +1,293 @@ -/////////////////////////////////////////////////////////////////////////// -// C++ code generated with wxFormBuilder (version Jun 17 2015) -// http://www.wxformbuilder.org/ -// -// PLEASE DO "NOT" EDIT THIS FILE! -/////////////////////////////////////////////////////////////////////////// - -#ifndef __WXEAP_UI_H__ -#define __WXEAP_UI_H__ - -#include -#include -#include -class wxEAPCredentialsPanelBase; - -#include "../include/wxEAP_UIBase.h" -class wxEAPBannerPanel; -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -/////////////////////////////////////////////////////////////////////////// - -/////////////////////////////////////////////////////////////////////////////// -/// Class wxEAPConfigDialogBase -/////////////////////////////////////////////////////////////////////////////// -class wxEAPConfigDialogBase : public wxDialog -{ - private: - - protected: - wxEAPBannerPanel *m_banner; - wxNotebook* m_providers; - wxButton* m_prov_add; - wxButton* m_prov_remove; - wxButton* m_prov_advanced; - wxStdDialogButtonSizer* m_buttons; - wxButton* m_buttonsOK; - wxButton* m_buttonsCancel; - - // Virtual event handlers, overide them in your derived class - virtual void OnInitDialog( wxInitDialogEvent& event ) { event.Skip(); } - virtual void OnUpdateUI( wxUpdateUIEvent& event ) { event.Skip(); } - virtual void OnProvAdd( wxCommandEvent& event ) { event.Skip(); } - virtual void OnProvRemove( wxCommandEvent& event ) { event.Skip(); } - virtual void OnProvAdvanced( wxCommandEvent& event ) { event.Skip(); } - - - public: - - wxEAPConfigDialogBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("EAP Connection Configuration"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE ); - ~wxEAPConfigDialogBase(); - -}; - -/////////////////////////////////////////////////////////////////////////////// -/// Class wxEAPGeneralDialogBase -/////////////////////////////////////////////////////////////////////////////// -class wxEAPGeneralDialogBase : public wxDialog -{ - private: - - protected: - wxEAPBannerPanel *m_banner; - wxBoxSizer* m_panels; - wxStdDialogButtonSizer* m_buttons; - wxButton* m_buttonsOK; - wxButton* m_buttonsCancel; - - // Virtual event handlers, overide them in your derived class - virtual void OnInitDialog( wxInitDialogEvent& event ) { event.Skip(); } - - - public: - - wxEAPGeneralDialogBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE ); - ~wxEAPGeneralDialogBase(); - -}; - -/////////////////////////////////////////////////////////////////////////////// -/// Class wxEAPCredentialsConnectionDialogBase -/////////////////////////////////////////////////////////////////////////////// -class wxEAPCredentialsConnectionDialogBase : public wxDialog -{ - private: - - protected: - wxEAPBannerPanel *m_banner; - wxStdDialogButtonSizer* m_buttons; - wxButton* m_buttonsOK; - wxButton* m_buttonsCancel; - - // Virtual event handlers, overide them in your derived class - virtual void OnInitDialog( wxInitDialogEvent& event ) { event.Skip(); } - - - public: - wxNotebook* m_providers; - - wxEAPCredentialsConnectionDialogBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("EAP Credentials"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE ); - ~wxEAPCredentialsConnectionDialogBase(); - -}; - -/////////////////////////////////////////////////////////////////////////////// -/// Class wxEAPBannerPanelBase -/////////////////////////////////////////////////////////////////////////////// -class wxEAPBannerPanelBase : public wxPanel -{ - private: - - protected: - - public: - wxStaticText* m_title; - - wxEAPBannerPanelBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = 0 ); - ~wxEAPBannerPanelBase(); - -}; - -/////////////////////////////////////////////////////////////////////////////// -/// Class wxEAPNotePanelBase -/////////////////////////////////////////////////////////////////////////////// -class wxEAPNotePanelBase : public wxPanel -{ - private: - - protected: - wxStaticBitmap* m_note_icon; - wxBoxSizer* m_note_vert; - wxStaticText* m_note_label; - - public: - - wxEAPNotePanelBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 500,-1 ), long style = wxSIMPLE_BORDER|wxTAB_TRAVERSAL ); - ~wxEAPNotePanelBase(); - -}; - -/////////////////////////////////////////////////////////////////////////////// -/// Class wxEAPCredentialsConfigPanelBase -/////////////////////////////////////////////////////////////////////////////// -class wxEAPCredentialsConfigPanelBase : public wxPanel -{ - private: - - protected: - wxStaticBoxSizer* m_sb_credentials; - wxStaticBitmap* m_credentials_icon; - wxStaticText* m_credentials_label; - wxRadioButton* m_storage; - wxStaticText* m_storage_identity_label; - wxStaticText* m_storage_identity; - wxButton* m_storage_clear; - wxButton* m_storage_set; - wxRadioButton* m_config; - wxStaticText* m_config_identity_label; - wxStaticText* m_config_identity; - wxButton* m_config_set; - wxTimer m_timer_storage; - - // Virtual event handlers, overide them in your derived class - virtual void OnUpdateUI( wxUpdateUIEvent& event ) { event.Skip(); } - virtual void OnClearStorage( wxCommandEvent& event ) { event.Skip(); } - virtual void OnSetStorage( wxCommandEvent& event ) { event.Skip(); } - virtual void OnSetConfig( wxCommandEvent& event ) { event.Skip(); } - virtual void OnTimerStorage( wxTimerEvent& event ) { event.Skip(); } - - - public: - - wxEAPCredentialsConfigPanelBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 500,-1 ), long style = wxTAB_TRAVERSAL ); - ~wxEAPCredentialsConfigPanelBase(); - -}; - -/////////////////////////////////////////////////////////////////////////////// -/// Class wxPasswordCredentialsPanelBase -/////////////////////////////////////////////////////////////////////////////// -class wxPasswordCredentialsPanelBase : public wxEAPCredentialsPanelBase -{ - private: - - protected: - wxStaticBoxSizer* m_sb_credentials; - wxStaticBitmap* m_credentials_icon; - wxBoxSizer* m_sb_credentials_vert; - wxStaticText* m_credentials_label; - wxStaticText* m_identity_label; - wxTextCtrl* m_identity; - wxStaticText* m_password_label; - wxTextCtrl* m_password; - - // Virtual event handlers, overide them in your derived class - virtual void OnPasswordText( wxCommandEvent& event ) { event.Skip(); } - - - public: - - wxPasswordCredentialsPanelBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 500,-1 ), long style = wxTAB_TRAVERSAL ); - ~wxPasswordCredentialsPanelBase(); - -}; - -/////////////////////////////////////////////////////////////////////////////// -/// Class wxEAPProviderContactInfoPanelBase -/////////////////////////////////////////////////////////////////////////////// -class wxEAPProviderContactInfoPanelBase : public wxPanel -{ - private: - - protected: - wxStaticBitmap* m_provider_contact_icon; - wxStaticText* m_provider_contact_label; - wxStaticText* m_provider_name_label; - wxTextCtrl* m_provider_name; - wxStaticText* m_provider_name_note; - wxStaticText* m_provider_helpdesk_label; - wxStaticText* m_provider_web_icon; - wxTextCtrl* m_provider_web; - wxStaticText* m_provider_email_icon; - wxTextCtrl* m_provider_email; - wxStaticText* m_provider_phone_icon; - wxTextCtrl* m_provider_phone; - - public: - - wxEAPProviderContactInfoPanelBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 500,-1 ), long style = wxTAB_TRAVERSAL ); - ~wxEAPProviderContactInfoPanelBase(); - -}; - -/////////////////////////////////////////////////////////////////////////////// -/// Class wxEAPProviderIDPanelBase -/////////////////////////////////////////////////////////////////////////////// -class wxEAPProviderIDPanelBase : public wxPanel -{ - private: - - protected: - wxStaticBitmap* m_provider_id_icon; - wxStaticText* m_provider_id_label_outer; - wxStaticText* m_provider_namespace_label; - wxChoice* m_provider_namespace; - wxStaticText* m_provider_id_label; - wxTextCtrl* m_provider_id; - - public: - - wxEAPProviderIDPanelBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 500,-1 ), long style = wxTAB_TRAVERSAL ); - ~wxEAPProviderIDPanelBase(); - -}; - -/////////////////////////////////////////////////////////////////////////////// -/// Class wxEAPProviderLockPanelBase -/////////////////////////////////////////////////////////////////////////////// -class wxEAPProviderLockPanelBase : public wxPanel -{ - private: - - protected: - wxStaticBitmap* m_provider_lock_icon; - wxStaticText* m_provider_lock_label; - wxCheckBox* m_provider_lock; - wxStaticText* m_provider_lock_note; - - public: - - wxEAPProviderLockPanelBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 500,-1 ), long style = wxTAB_TRAVERSAL ); - ~wxEAPProviderLockPanelBase(); - -}; - -#endif //__WXEAP_UI_H__ +/////////////////////////////////////////////////////////////////////////// +// C++ code generated with wxFormBuilder (version Aug 8 2018) +// http://www.wxformbuilder.org/ +// +// PLEASE DO *NOT* EDIT THIS FILE! +/////////////////////////////////////////////////////////////////////////// + +#ifndef __WXEAP_UI_H__ +#define __WXEAP_UI_H__ + +#include +#include +#include +#include "../include/wxEAP_UIBase.h" +class wxEAPBannerPanel; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +/////////////////////////////////////////////////////////////////////////// + +/////////////////////////////////////////////////////////////////////////////// +/// Class wxEAPConfigDialogBase +/////////////////////////////////////////////////////////////////////////////// +class wxEAPConfigDialogBase : public wxDialog +{ + private: + + protected: + wxEAPBannerPanel *m_banner; + wxNotebook* m_providers; + wxButton* m_prov_add; + wxButton* m_prov_remove; + wxButton* m_prov_advanced; + wxStdDialogButtonSizer* m_buttons; + wxButton* m_buttonsOK; + wxButton* m_buttonsCancel; + + // Virtual event handlers, overide them in your derived class + virtual void OnInitDialog( wxInitDialogEvent& event ) { event.Skip(); } + virtual void OnUpdateUI( wxUpdateUIEvent& event ) { event.Skip(); } + virtual void OnProvAdd( wxCommandEvent& event ) { event.Skip(); } + virtual void OnProvRemove( wxCommandEvent& event ) { event.Skip(); } + virtual void OnProvAdvanced( wxCommandEvent& event ) { event.Skip(); } + + + public: + + wxEAPConfigDialogBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("EAP Connection Configuration"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE ); + ~wxEAPConfigDialogBase(); + +}; + +/////////////////////////////////////////////////////////////////////////////// +/// Class wxEAPGeneralDialogBase +/////////////////////////////////////////////////////////////////////////////// +class wxEAPGeneralDialogBase : public wxDialog +{ + private: + + protected: + wxEAPBannerPanel *m_banner; + wxBoxSizer* m_panels; + wxStdDialogButtonSizer* m_buttons; + wxButton* m_buttonsOK; + wxButton* m_buttonsCancel; + + // Virtual event handlers, overide them in your derived class + virtual void OnInitDialog( wxInitDialogEvent& event ) { event.Skip(); } + + + public: + + wxEAPGeneralDialogBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE ); + ~wxEAPGeneralDialogBase(); + +}; + +/////////////////////////////////////////////////////////////////////////////// +/// Class wxEAPCredentialsConnectionDialogBase +/////////////////////////////////////////////////////////////////////////////// +class wxEAPCredentialsConnectionDialogBase : public wxDialog +{ + private: + + protected: + wxEAPBannerPanel *m_banner; + wxStdDialogButtonSizer* m_buttons; + wxButton* m_buttonsOK; + wxButton* m_buttonsCancel; + + // Virtual event handlers, overide them in your derived class + virtual void OnInitDialog( wxInitDialogEvent& event ) { event.Skip(); } + + + public: + wxNotebook* m_providers; + + wxEAPCredentialsConnectionDialogBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("EAP Credentials"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE ); + ~wxEAPCredentialsConnectionDialogBase(); + +}; + +/////////////////////////////////////////////////////////////////////////////// +/// Class wxEAPBannerPanelBase +/////////////////////////////////////////////////////////////////////////////// +class wxEAPBannerPanelBase : public wxPanel +{ + private: + + protected: + + public: + wxStaticText* m_title; + + wxEAPBannerPanelBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = 0, const wxString& name = wxEmptyString ); + ~wxEAPBannerPanelBase(); + +}; + +/////////////////////////////////////////////////////////////////////////////// +/// Class wxEAPNotePanelBase +/////////////////////////////////////////////////////////////////////////////// +class wxEAPNotePanelBase : public wxPanel +{ + private: + + protected: + wxStaticBitmap* m_note_icon; + wxBoxSizer* m_note_vert; + wxStaticText* m_note_label; + + public: + + wxEAPNotePanelBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 500,-1 ), long style = wxTAB_TRAVERSAL|wxBORDER_SIMPLE, const wxString& name = wxEmptyString ); + ~wxEAPNotePanelBase(); + +}; + +/////////////////////////////////////////////////////////////////////////////// +/// Class wxEAPCredentialsConfigPanelBase +/////////////////////////////////////////////////////////////////////////////// +class wxEAPCredentialsConfigPanelBase : public wxPanel +{ + private: + + protected: + wxStaticBoxSizer* m_sb_credentials; + wxStaticBitmap* m_credentials_icon; + wxStaticText* m_credentials_label; + wxRadioButton* m_storage; + wxStaticText* m_storage_identity_label; + wxStaticText* m_storage_identity; + wxButton* m_storage_clear; + wxButton* m_storage_set; + wxRadioButton* m_config; + wxStaticText* m_config_identity_label; + wxStaticText* m_config_identity; + wxButton* m_config_set; + wxTimer m_timer_storage; + + // Virtual event handlers, overide them in your derived class + virtual void OnUpdateUI( wxUpdateUIEvent& event ) { event.Skip(); } + virtual void OnClearStorage( wxCommandEvent& event ) { event.Skip(); } + virtual void OnSetStorage( wxCommandEvent& event ) { event.Skip(); } + virtual void OnSetConfig( wxCommandEvent& event ) { event.Skip(); } + virtual void OnTimerStorage( wxTimerEvent& event ) { event.Skip(); } + + + public: + + wxEAPCredentialsConfigPanelBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 500,-1 ), long style = wxTAB_TRAVERSAL, const wxString& name = wxEmptyString ); + ~wxEAPCredentialsConfigPanelBase(); + +}; + +/////////////////////////////////////////////////////////////////////////////// +/// Class wxPasswordCredentialsPanelBase +/////////////////////////////////////////////////////////////////////////////// +class wxPasswordCredentialsPanelBase : public wxEAPCredentialsPanelBase +{ + private: + + protected: + wxStaticBoxSizer* m_sb_credentials; + wxStaticBitmap* m_credentials_icon; + wxBoxSizer* m_sb_credentials_vert; + wxStaticText* m_credentials_label; + wxStaticText* m_identity_label; + wxTextCtrl* m_identity; + wxStaticText* m_password_label; + wxTextCtrl* m_password; + + // Virtual event handlers, overide them in your derived class + virtual void OnPasswordText( wxCommandEvent& event ) { event.Skip(); } + + + public: + + wxPasswordCredentialsPanelBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 500,-1 ), long style = wxTAB_TRAVERSAL, const wxString& name = wxEmptyString ); + ~wxPasswordCredentialsPanelBase(); + +}; + +/////////////////////////////////////////////////////////////////////////////// +/// Class wxEAPProviderContactInfoPanelBase +/////////////////////////////////////////////////////////////////////////////// +class wxEAPProviderContactInfoPanelBase : public wxPanel +{ + private: + + protected: + wxStaticBitmap* m_provider_contact_icon; + wxStaticText* m_provider_contact_label; + wxStaticText* m_provider_name_label; + wxTextCtrl* m_provider_name; + wxStaticText* m_provider_name_note; + wxStaticText* m_provider_helpdesk_label; + wxStaticText* m_provider_web_icon; + wxTextCtrl* m_provider_web; + wxStaticText* m_provider_email_icon; + wxTextCtrl* m_provider_email; + wxStaticText* m_provider_phone_icon; + wxTextCtrl* m_provider_phone; + + public: + + wxEAPProviderContactInfoPanelBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 500,-1 ), long style = wxTAB_TRAVERSAL, const wxString& name = wxEmptyString ); + ~wxEAPProviderContactInfoPanelBase(); + +}; + +/////////////////////////////////////////////////////////////////////////////// +/// Class wxEAPProviderIDPanelBase +/////////////////////////////////////////////////////////////////////////////// +class wxEAPProviderIDPanelBase : public wxPanel +{ + private: + + protected: + wxStaticBitmap* m_provider_id_icon; + wxStaticText* m_provider_id_label_outer; + wxStaticText* m_provider_namespace_label; + wxChoice* m_provider_namespace; + wxStaticText* m_provider_id_label; + wxTextCtrl* m_provider_id; + + public: + + wxEAPProviderIDPanelBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 500,-1 ), long style = wxTAB_TRAVERSAL, const wxString& name = wxEmptyString ); + ~wxEAPProviderIDPanelBase(); + +}; + +/////////////////////////////////////////////////////////////////////////////// +/// Class wxEAPProviderLockPanelBase +/////////////////////////////////////////////////////////////////////////////// +class wxEAPProviderLockPanelBase : public wxPanel +{ + private: + + protected: + wxStaticBitmap* m_provider_lock_icon; + wxStaticText* m_provider_lock_label; + wxCheckBox* m_provider_lock; + wxStaticText* m_provider_lock_note; + + public: + + wxEAPProviderLockPanelBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 500,-1 ), long style = wxTAB_TRAVERSAL, const wxString& name = wxEmptyString ); + ~wxEAPProviderLockPanelBase(); + +}; + +#endif //__WXEAP_UI_H__