--- /dev/null
+///////////////////////////////////////////////////////////////////////////
+// C++ code generated with wxFormBuilder (version Nov 13 2016)
+// http://www.wxformbuilder.org/
+//
+// PLEASE DO "NOT" EDIT THIS FILE!
+///////////////////////////////////////////////////////////////////////////
+
+#include "AppXestiaCalendar.h"
+
+///////////////////////////////////////////////////////////////////////////
+
+frmMainADT::frmMainADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxFrame( parent, id, title, pos, size, style )
+{
+ this->SetSizeHints( wxDefaultSize, wxDefaultSize );
+ this->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE ) );
+
+ wxBoxSizer* bSizer44;
+ bSizer44 = new wxBoxSizer( wxVERTICAL );
+
+
+ this->SetSizer( bSizer44 );
+ this->Layout();
+ m_statusBar2 = this->CreateStatusBar( 1, wxST_SIZEGRIP, wxID_ANY );
+ menuBar = new wxMenuBar( 0 );
+ mnuManage = new wxMenu();
+ wxMenuItem* mnuManageNew;
+ mnuManageNew = new wxMenuItem( mnuManage, wxID_ANY, wxString( wxT("New Account...") ) + wxT('\t') + wxT("Ctrl+Shift+N"), wxEmptyString, wxITEM_NORMAL );
+ mnuManage->Append( mnuManageNew );
+
+ mnuManage->AppendSeparator();
+
+ wxMenuItem* mnuManagePreferences;
+ mnuManagePreferences = new wxMenuItem( mnuManage, wxID_PREFERENCES, wxString( wxT("Preferences...") ) , wxEmptyString, wxITEM_NORMAL );
+ mnuManage->Append( mnuManagePreferences );
+
+ mnuManage->AppendSeparator();
+
+ wxMenuItem* mnuManageExit;
+ mnuManageExit = new wxMenuItem( mnuManage, wxID_EXIT, wxString( wxT("Exit") ) + wxT('\t') + wxT("Ctrl+Q"), wxEmptyString, wxITEM_NORMAL );
+ mnuManage->Append( mnuManageExit );
+
+ menuBar->Append( mnuManage, wxT("Manage") );
+
+ mnuCreate = new wxMenu();
+ wxMenuItem* mnuCreateEvent;
+ mnuCreateEvent = new wxMenuItem( mnuCreate, wxID_ANY, wxString( wxT("Event...") ) , wxEmptyString, wxITEM_NORMAL );
+ mnuCreate->Append( mnuCreateEvent );
+
+ menuBar->Append( mnuCreate, wxT("Create") );
+
+ mnuHelp = new wxMenu();
+ wxMenuItem* mnuHelpShow;
+ mnuHelpShow = new wxMenuItem( mnuHelp, wxID_ANY, wxString( wxT("Shoe Help...") ) + wxT('\t') + wxT("F1"), wxEmptyString, wxITEM_NORMAL );
+ mnuHelp->Append( mnuHelpShow );
+
+ mnuHelp->AppendSeparator();
+
+ wxMenuItem* mnuHelpUpdate;
+ mnuHelpUpdate = new wxMenuItem( mnuHelp, wxID_ANY, wxString( wxT("Check for updates...") ) , wxEmptyString, wxITEM_NORMAL );
+ mnuHelp->Append( mnuHelpUpdate );
+
+ mnuHelp->AppendSeparator();
+
+ wxMenuItem* mnuHelpAbout;
+ mnuHelpAbout = new wxMenuItem( mnuHelp, wxID_ANY, wxString( wxT("About Xestia Calendar...") ) + wxT('\t') + wxT("Shift+Ctrl+A"), wxEmptyString, wxITEM_NORMAL );
+ mnuHelp->Append( mnuHelpAbout );
+
+ menuBar->Append( mnuHelp, wxT("Help") );
+
+ this->SetMenuBar( menuBar );
+
+
+ this->Centre( wxBOTH );
+}
+
+frmMainADT::~frmMainADT()
+{
+}
+
+frmUpdateADT::frmUpdateADT( 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* bSizer390;
+ bSizer390 = new wxBoxSizer( wxVERTICAL );
+
+ pnlUpdateData = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
+ wxBoxSizer* bSizer391;
+ bSizer391 = new wxBoxSizer( wxVERTICAL );
+
+ wxFlexGridSizer* fgSizer45;
+ fgSizer45 = new wxFlexGridSizer( 3, 2, 0, 0 );
+ fgSizer45->SetFlexibleDirection( wxBOTH );
+ fgSizer45->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
+
+ lblRunningText = new wxStaticText( pnlUpdateData, wxID_ANY, wxT("Running version is:"), wxDefaultPosition, wxDefaultSize, 0 );
+ lblRunningText->Wrap( -1 );
+ fgSizer45->Add( lblRunningText, 0, wxALL, 5 );
+
+ lblRunningVer = new wxStaticText( pnlUpdateData, wxID_ANY, wxT("UPDATEVER"), wxDefaultPosition, wxDefaultSize, 0 );
+ lblRunningVer->Wrap( -1 );
+ lblRunningVer->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) );
+
+ fgSizer45->Add( lblRunningVer, 0, wxALL, 5 );
+
+ lblAvailableText = new wxStaticText( pnlUpdateData, wxID_ANY, wxT("Available version is:"), wxDefaultPosition, wxDefaultSize, 0 );
+ lblAvailableText->Wrap( -1 );
+ fgSizer45->Add( lblAvailableText, 0, wxALL, 5 );
+
+ lblAvailableVer = new wxStaticText( pnlUpdateData, wxID_ANY, wxT("AVAILVER"), wxDefaultPosition, wxDefaultSize, 0 );
+ lblAvailableVer->Wrap( -1 );
+ fgSizer45->Add( lblAvailableVer, 0, wxALL, 5 );
+
+ lblBuildTypeText = new wxStaticText( pnlUpdateData, wxID_ANY, wxT("Build type is:"), wxDefaultPosition, wxDefaultSize, 0 );
+ lblBuildTypeText->Wrap( -1 );
+ fgSizer45->Add( lblBuildTypeText, 0, wxALL, 5 );
+
+ lblBuildType = new wxStaticText( pnlUpdateData, wxID_ANY, wxT("BUILDTYPE"), wxDefaultPosition, wxDefaultSize, 0 );
+ lblBuildType->Wrap( -1 );
+ fgSizer45->Add( lblBuildType, 0, wxALL, 5 );
+
+
+ bSizer391->Add( fgSizer45, 0, wxEXPAND, 5 );
+
+ lblUpdateMessage = new wxStaticText( pnlUpdateData, wxID_ANY, wxT("MESSAGE"), wxDefaultPosition, wxDefaultSize, 0 );
+ lblUpdateMessage->Wrap( -1 );
+ bSizer391->Add( lblUpdateMessage, 1, wxALL|wxEXPAND, 5 );
+
+
+ pnlUpdateData->SetSizer( bSizer391 );
+ pnlUpdateData->Layout();
+ bSizer391->Fit( pnlUpdateData );
+ bSizer390->Add( pnlUpdateData, 1, wxEXPAND | wxALL, 5 );
+
+ statLine = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
+ bSizer390->Add( statLine, 0, wxALL|wxEXPAND, 5 );
+
+ wxBoxSizer* bSizer392;
+ bSizer392 = new wxBoxSizer( wxHORIZONTAL );
+
+ btnVisitGelforn = new wxButton( this, wxID_ANY, wxT("Visit Gelforn"), wxDefaultPosition, wxDefaultSize, 0 );
+ bSizer392->Add( btnVisitGelforn, 0, wxALIGN_RIGHT|wxBOTTOM|wxLEFT, 5 );
+
+ btnVisitPREMIUM = new wxButton( this, wxID_ANY, wxT("Visit PREMIUM"), wxDefaultPosition, wxDefaultSize, 0 );
+ bSizer392->Add( btnVisitPREMIUM, 0, wxBOTTOM|wxLEFT, 5 );
+
+ btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );
+ bSizer392->Add( btnClose, 0, wxALIGN_RIGHT|wxBOTTOM|wxLEFT|wxRIGHT, 5 );
+
+
+ bSizer390->Add( bSizer392, 0, wxALIGN_RIGHT, 0 );
+
+
+ this->SetSizer( bSizer390 );
+ this->Layout();
+
+ this->Centre( wxBOTH );
+
+ // Connect Events
+ btnVisitGelforn->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmUpdateADT::VisitGelforn ), NULL, this );
+ btnVisitPREMIUM->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmUpdateADT::VisitPREMIUM ), NULL, this );
+ btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmUpdateADT::CloseWindow ), NULL, this );
+}
+
+frmUpdateADT::~frmUpdateADT()
+{
+ // Disconnect Events
+ btnVisitGelforn->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmUpdateADT::VisitGelforn ), NULL, this );
+ btnVisitPREMIUM->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmUpdateADT::VisitPREMIUM ), NULL, this );
+ btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmUpdateADT::CloseWindow ), NULL, this );
+
+}
+
+frmPreferencesADT::frmPreferencesADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
+{
+ this->SetSizeHints( wxSize( 450,400 ), wxSize( 450,400 ) );
+
+ wxBoxSizer* szrMain;
+ szrMain = new wxBoxSizer( wxVERTICAL );
+
+ wxBoxSizer* szrTabs;
+ szrTabs = new wxBoxSizer( wxVERTICAL );
+
+ NbtPreferences = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
+ tabGeneral = new wxPanel( NbtPreferences, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
+ wxBoxSizer* szrChecks;
+ szrChecks = new wxBoxSizer( wxVERTICAL );
+
+ chkSaveWindowPosition = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Save window position on exit"), wxDefaultPosition, wxDefaultSize, 0 );
+ szrChecks->Add( chkSaveWindowPosition, 0, wxALL, 5 );
+
+ chkHideLocal = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Hide local calendars"), wxDefaultPosition, wxDefaultSize, 0 );
+ szrChecks->Add( chkHideLocal, 0, wxALL, 5 );
+
+
+ tabGeneral->SetSizer( szrChecks );
+ tabGeneral->Layout();
+ szrChecks->Fit( tabGeneral );
+ NbtPreferences->AddPage( tabGeneral, wxT("General"), true );
+ tabTheme = new wxPanel( NbtPreferences, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
+ tabTheme->Hide();
+
+ wxGridSizer* szrTheme;
+ szrTheme = new wxGridSizer( 1, 1, 0, 0 );
+
+ wxBoxSizer* bSizer161;
+ bSizer161 = new wxBoxSizer( wxVERTICAL );
+
+ lstThemes = new wxListCtrl( tabTheme, wxID_ANY, wxDefaultPosition, wxSize( -1,-1 ), wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
+ bSizer161->Add( lstThemes, 1, wxALL|wxEXPAND, 5 );
+
+ wxBoxSizer* bSizer151;
+ bSizer151 = new wxBoxSizer( wxHORIZONTAL );
+
+ btnThemeAdd = new wxButton( tabTheme, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
+ bSizer151->Add( btnThemeAdd, 0, wxALL, 5 );
+
+ btnThemeModify = new wxButton( tabTheme, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
+ btnThemeModify->Enable( false );
+
+ bSizer151->Add( btnThemeModify, 0, wxALL, 5 );
+
+ btnThemeDelete = new wxButton( tabTheme, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
+ btnThemeDelete->Enable( false );
+
+ bSizer151->Add( btnThemeDelete, 0, wxALL, 5 );
+
+
+ bSizer161->Add( bSizer151, 0, wxALIGN_BOTTOM|wxALIGN_CENTER_HORIZONTAL, 0 );
+
+
+ szrTheme->Add( bSizer161, 1, wxEXPAND, 5 );
+
+
+ tabTheme->SetSizer( szrTheme );
+ tabTheme->Layout();
+ szrTheme->Fit( tabTheme );
+ NbtPreferences->AddPage( tabTheme, wxT("Themes"), false );
+ tabAccounts = new wxPanel( NbtPreferences, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
+ wxGridSizer* szrAccounts;
+ szrAccounts = new wxGridSizer( 1, 1, 0, 0 );
+
+ wxBoxSizer* bSizer16;
+ bSizer16 = new wxBoxSizer( wxVERTICAL );
+
+ lstAccounts = new wxListCtrl( tabAccounts, wxID_ANY, wxDefaultPosition, wxSize( -1,-1 ), wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
+ bSizer16->Add( lstAccounts, 1, wxALL|wxEXPAND, 5 );
+
+ wxBoxSizer* bSizer15;
+ bSizer15 = new wxBoxSizer( wxHORIZONTAL );
+
+ btnAccountAdd = new wxButton( tabAccounts, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
+ bSizer15->Add( btnAccountAdd, 0, wxALL, 5 );
+
+ btnAccountModify = new wxButton( tabAccounts, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
+ btnAccountModify->Enable( false );
+
+ bSizer15->Add( btnAccountModify, 0, wxALL, 5 );
+
+ btnAccountDelete = new wxButton( tabAccounts, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
+ btnAccountDelete->Enable( false );
+
+ bSizer15->Add( btnAccountDelete, 0, wxALL, 5 );
+
+
+ bSizer16->Add( bSizer15, 0, wxALIGN_BOTTOM|wxALIGN_CENTER_HORIZONTAL, 0 );
+
+
+ szrAccounts->Add( bSizer16, 1, wxEXPAND, 5 );
+
+
+ tabAccounts->SetSizer( szrAccounts );
+ tabAccounts->Layout();
+ szrAccounts->Fit( tabAccounts );
+ NbtPreferences->AddPage( tabAccounts, wxT("Accounts"), false );
+
+ szrTabs->Add( NbtPreferences, 1, wxALL|wxEXPAND, 5 );
+
+
+ szrMain->Add( szrTabs, 1, wxEXPAND, 0 );
+
+ wxBoxSizer* szrButtons;
+ szrButtons = new wxBoxSizer( wxHORIZONTAL );
+
+
+ szrButtons->Add( 1, 0, 1, wxEXPAND, 0 );
+
+ btnSave = new wxButton( this, wxID_ANY, wxT("Save"), wxDefaultPosition, wxDefaultSize, 0 );
+ btnSave->SetDefault();
+ szrButtons->Add( btnSave, 0, wxALIGN_RIGHT, 0 );
+
+
+ szrButtons->Add( 5, 0, 0, 0, 0 );
+
+ btnCancel = new wxButton( this, wxID_ANY, wxT("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
+ szrButtons->Add( btnCancel, 0, wxALIGN_RIGHT, 0 );
+
+
+ szrButtons->Add( 5, 0, 0, wxEXPAND, 0 );
+
+
+ szrMain->Add( szrButtons, 0, wxBOTTOM|wxEXPAND, 5 );
+
+
+ this->SetSizer( szrMain );
+ this->Layout();
+
+ this->Centre( wxBOTH );
+
+ // Connect Events
+ this->Connect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( frmPreferencesADT::LoadPreferences ) );
+ lstThemes->Connect( wxEVT_COMMAND_LIST_ITEM_DESELECTED, wxListEventHandler( frmPreferencesADT::DisableABButtons ), NULL, this );
+ lstThemes->Connect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( frmPreferencesADT::EnableABButtons ), NULL, this );
+ btnThemeAdd->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::AddABAccount ), NULL, this );
+ btnThemeModify->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::ModifyABAccount ), NULL, this );
+ btnThemeDelete->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::DeleteABAccount ), NULL, this );
+ lstAccounts->Connect( wxEVT_COMMAND_LIST_ITEM_DESELECTED, wxListEventHandler( frmPreferencesADT::DisableABButtons ), NULL, this );
+ lstAccounts->Connect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( frmPreferencesADT::EnableABButtons ), NULL, this );
+ btnAccountAdd->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::AddABAccount ), NULL, this );
+ btnAccountModify->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::ModifyABAccount ), NULL, this );
+ btnAccountDelete->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::DeleteABAccount ), NULL, this );
+ btnSave->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::SavePreferences ), NULL, this );
+ btnCancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::CloseWindow ), NULL, this );
+}
+
+frmPreferencesADT::~frmPreferencesADT()
+{
+ // Disconnect Events
+ this->Disconnect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( frmPreferencesADT::LoadPreferences ) );
+ lstThemes->Disconnect( wxEVT_COMMAND_LIST_ITEM_DESELECTED, wxListEventHandler( frmPreferencesADT::DisableABButtons ), NULL, this );
+ lstThemes->Disconnect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( frmPreferencesADT::EnableABButtons ), NULL, this );
+ btnThemeAdd->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::AddABAccount ), NULL, this );
+ btnThemeModify->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::ModifyABAccount ), NULL, this );
+ btnThemeDelete->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::DeleteABAccount ), NULL, this );
+ lstAccounts->Disconnect( wxEVT_COMMAND_LIST_ITEM_DESELECTED, wxListEventHandler( frmPreferencesADT::DisableABButtons ), NULL, this );
+ lstAccounts->Disconnect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( frmPreferencesADT::EnableABButtons ), NULL, this );
+ btnAccountAdd->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::AddABAccount ), NULL, this );
+ btnAccountModify->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::ModifyABAccount ), NULL, this );
+ btnAccountDelete->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::DeleteABAccount ), NULL, this );
+ btnSave->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::SavePreferences ), NULL, this );
+ btnCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::CloseWindow ), NULL, this );
+
+}
+
+frmAboutADT::frmAboutADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
+{
+ this->SetSizeHints( wxSize( 350,400 ), wxDefaultSize );
+
+ wxBoxSizer* szrMain;
+ szrMain = new wxBoxSizer( wxVERTICAL );
+
+ wxBoxSizer* szrLogo;
+ szrLogo = new wxBoxSizer( wxVERTICAL );
+
+ szrLogo->SetMinSize( wxSize( 350,100 ) );
+ bmpLogo = new wxStaticBitmap( this, wxID_ANY, wxNullBitmap, wxPoint( 0,0 ), wxSize( 350,100 ), 0 );
+ szrLogo->Add( bmpLogo, 0, wxALL, 0 );
+
+
+ szrMain->Add( szrLogo, 0, wxFIXED_MINSIZE, 0 );
+
+ wxBoxSizer* szrDetails;
+ szrDetails = new wxBoxSizer( wxVERTICAL );
+
+ lblVersion = new wxStaticText( this, wxID_ANY, wxT("Version 0.00"), wxDefaultPosition, wxDefaultSize, 0 );
+ lblVersion->Wrap( -1 );
+ lblVersion->SetFont( wxFont( 14, wxFONTFAMILY_SWISS, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) );
+
+ szrDetails->Add( lblVersion, 0, wxALL, 5 );
+
+ lblCompileTime = new wxStaticText( this, wxID_ANY, wxT("Built on (date) at (time)"), wxDefaultPosition, wxDefaultSize, 0 );
+ lblCompileTime->Wrap( -1 );
+ szrDetails->Add( lblCompileTime, 0, wxALL, 5 );
+
+ lblCopyright = new wxStaticText( this, wxID_ANY, wxT("(c) 2012-2015 Xestia Software Development"), wxDefaultPosition, wxDefaultSize, 0 );
+ lblCopyright->Wrap( -1 );
+ szrDetails->Add( lblCopyright, 0, wxALL, 5 );
+
+
+ szrMain->Add( szrDetails, 5, wxEXPAND, 1 );
+
+ wxBoxSizer* szrButtons;
+ szrButtons = new wxBoxSizer( wxVERTICAL );
+
+ szrButtons->SetMinSize( wxSize( -1,35 ) );
+ btnClose = new wxButton( this, wxID_ANY, wxT("&Close"), wxDefaultPosition, wxDefaultSize, 0 );
+ szrButtons->Add( btnClose, 0, wxALIGN_RIGHT|wxRIGHT, 5 );
+
+
+ szrMain->Add( szrButtons, 0, wxEXPAND, 0 );
+
+
+ this->SetSizer( szrMain );
+ this->Layout();
+
+ this->Centre( wxBOTH );
+
+ // Connect Events
+ btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmAboutADT::CloseAboutWindow ), NULL, this );
+}
+
+frmAboutADT::~frmAboutADT()
+{
+ // Disconnect Events
+ btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmAboutADT::CloseAboutWindow ), NULL, this );
+
+}
+
+frmNewAccountADT::frmNewAccountADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
+{
+ this->SetSizeHints( wxSize( 425,330 ), wxSize( 425,330 ) );
+
+ wxFlexGridSizer* fgSizer30;
+ fgSizer30 = new wxFlexGridSizer( 0, 1, 0, 0 );
+ fgSizer30->AddGrowableCol( 0 );
+ fgSizer30->AddGrowableRow( 0 );
+ fgSizer30->SetFlexibleDirection( wxBOTH );
+ fgSizer30->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
+
+ szrNewAccount = new wxBoxSizer( wxVERTICAL );
+
+ tabType = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
+ wxFlexGridSizer* fgSizer32;
+ fgSizer32 = new wxFlexGridSizer( 0, 1, 0, 0 );
+ fgSizer32->AddGrowableCol( 0 );
+ fgSizer32->SetFlexibleDirection( wxBOTH );
+ fgSizer32->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_ALL );
+
+ lblEnterText = new wxStaticText( tabType, wxID_ANY, wxT("Enter the details below and click on Next."), wxDefaultPosition, wxDefaultSize, 0 );
+ lblEnterText->Wrap( -1 );
+ fgSizer32->Add( lblEnterText, 0, wxALL, 5 );
+
+ wxFlexGridSizer* fgSizer33;
+ fgSizer33 = new wxFlexGridSizer( 0, 2, 0, 0 );
+ fgSizer33->AddGrowableCol( 1 );
+ fgSizer33->AddGrowableRow( 0 );
+ fgSizer33->SetFlexibleDirection( wxBOTH );
+ fgSizer33->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_ALL );
+
+ lblType = new wxStaticText( tabType, wxID_ANY, wxT("Server Type:"), wxDefaultPosition, wxDefaultSize, 0 );
+ lblType->Wrap( -1 );
+ fgSizer33->Add( lblType, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
+
+ wxString cmbServerTypeChoices[] = { wxT("Local"), wxT("CardDAV") };
+ int cmbServerTypeNChoices = sizeof( cmbServerTypeChoices ) / sizeof( wxString );
+ cmbServerType = new wxChoice( tabType, wxID_ANY, wxDefaultPosition, wxDefaultSize, cmbServerTypeNChoices, cmbServerTypeChoices, 0 );
+ cmbServerType->SetSelection( 1 );
+ fgSizer33->Add( cmbServerType, 0, wxALL, 5 );
+
+ lblServerAddress = new wxStaticText( tabType, wxID_ANY, wxT("Server Address:"), wxDefaultPosition, wxDefaultSize, 0 );
+ lblServerAddress->Wrap( -1 );
+ fgSizer33->Add( lblServerAddress, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
+
+ txtServerAddress = new wxTextCtrl( tabType, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
+ fgSizer33->Add( txtServerAddress, 1, wxALL|wxEXPAND, 5 );
+
+ lblServerPort = new wxStaticText( tabType, wxID_ANY, wxT("Server Port:"), wxDefaultPosition, wxDefaultSize, 0 );
+ lblServerPort->Wrap( -1 );
+ fgSizer33->Add( lblServerPort, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
+
+ txtServerPort = new wxTextCtrl( tabType, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
+ fgSizer33->Add( txtServerPort, 0, wxALL, 5 );
+
+ lblUsername = new wxStaticText( tabType, wxID_ANY, wxT("Username:"), wxDefaultPosition, wxDefaultSize, 0 );
+ lblUsername->Wrap( -1 );
+ fgSizer33->Add( lblUsername, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
+
+ txtUsername = new wxTextCtrl( tabType, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
+ fgSizer33->Add( txtUsername, 1, wxALL|wxEXPAND, 5 );
+
+ lblPassword = new wxStaticText( tabType, wxID_ANY, wxT("Password:"), wxDefaultPosition, wxDefaultSize, 0 );
+ lblPassword->Wrap( -1 );
+ fgSizer33->Add( lblPassword, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
+
+ txtPassword = new wxTextCtrl( tabType, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PASSWORD );
+ fgSizer33->Add( txtPassword, 0, wxALL|wxEXPAND, 5 );
+
+ lblSSL = new wxStaticText( tabType, wxID_ANY, wxT("SSL:"), wxDefaultPosition, wxDefaultSize, 0 );
+ lblSSL->Wrap( -1 );
+ fgSizer33->Add( lblSSL, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
+
+ wxBoxSizer* bSizer3221;
+ bSizer3221 = new wxBoxSizer( wxHORIZONTAL );
+
+ chkUseSSL = new wxCheckBox( tabType, wxID_ANY, wxT("Use SSL"), wxDefaultPosition, wxDefaultSize, 0 );
+ chkUseSSL->SetValue(true);
+ bSizer3221->Add( chkUseSSL, 0, wxALL, 5 );
+
+
+ fgSizer33->Add( bSizer3221, 1, wxEXPAND, 5 );
+
+
+ fgSizer32->Add( fgSizer33, 1, wxEXPAND, 5 );
+
+
+ tabType->SetSizer( fgSizer32 );
+ tabType->Layout();
+ fgSizer32->Fit( tabType );
+ szrNewAccount->Add( tabType, 1, wxEXPAND | wxALL, 5 );
+
+ tabConn = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
+ tabConn->Hide();
+
+ wxBoxSizer* bSizer323;
+ bSizer323 = new wxBoxSizer( wxVERTICAL );
+
+ lblConnectionResult = new wxStaticText( tabConn, wxID_ANY, wxT("Connection Results:"), wxDefaultPosition, wxDefaultSize, 0 );
+ lblConnectionResult->Wrap( -1 );
+ lblConnectionResult->SetFont( wxFont( 9, wxFONTFAMILY_SWISS, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxT("Sans") ) );
+
+ bSizer323->Add( lblConnectionResult, 0, wxALL, 5 );
+
+ wxFlexGridSizer* fgSizer34;
+ fgSizer34 = new wxFlexGridSizer( 0, 2, 0, 0 );
+ fgSizer34->SetFlexibleDirection( wxBOTH );
+ fgSizer34->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
+
+ lblServerConnected = new wxStaticText( tabConn, wxID_ANY, wxT("Server connected:"), wxDefaultPosition, wxDefaultSize, 0 );
+ lblServerConnected->Wrap( -1 );
+ fgSizer34->Add( lblServerConnected, 0, wxALL, 5 );
+
+ lblServerConnResult = new wxStaticText( tabConn, wxID_ANY, wxT("..."), wxDefaultPosition, wxDefaultSize, 0 );
+ lblServerConnResult->Wrap( -1 );
+ fgSizer34->Add( lblServerConnResult, 0, wxALL, 5 );
+
+ lblValidResponse = new wxStaticText( tabConn, wxID_ANY, wxT("Server gave valid response:"), wxDefaultPosition, wxDefaultSize, 0 );
+ lblValidResponse->Wrap( -1 );
+ fgSizer34->Add( lblValidResponse, 0, wxALL, 5 );
+
+ lblServerResponse = new wxStaticText( tabConn, wxID_ANY, wxT("..."), wxDefaultPosition, wxDefaultSize, 0 );
+ lblServerResponse->Wrap( -1 );
+ fgSizer34->Add( lblServerResponse, 0, wxALL, 5 );
+
+ lblUseSSL = new wxStaticText( tabConn, wxID_ANY, wxT("Server uses SSL:"), wxDefaultPosition, wxDefaultSize, 0 );
+ lblUseSSL->Wrap( -1 );
+ fgSizer34->Add( lblUseSSL, 0, wxALL, 5 );
+
+ lblServerSSLResult = new wxStaticText( tabConn, wxID_ANY, wxT("..."), wxDefaultPosition, wxDefaultSize, 0 );
+ lblServerSSLResult->Wrap( -1 );
+ fgSizer34->Add( lblServerSSLResult, 0, wxALL, 5 );
+
+ lblServerSSLCert = new wxStaticText( tabConn, wxID_ANY, wxT("Server has valid SSL certificate:"), wxDefaultPosition, wxDefaultSize, 0 );
+ lblServerSSLCert->Wrap( -1 );
+ fgSizer34->Add( lblServerSSLCert, 0, wxALL, 5 );
+
+ lblServerSSLValid = new wxStaticText( tabConn, wxID_ANY, wxT("..."), wxDefaultPosition, wxDefaultSize, 0 );
+ lblServerSSLValid->Wrap( -1 );
+ fgSizer34->Add( lblServerSSLValid, 0, wxALL, 5 );
+
+ lblServerUsernamePassword = new wxStaticText( tabConn, wxID_ANY, wxT("Able to Login:"), wxDefaultPosition, wxDefaultSize, 0 );
+ lblServerUsernamePassword->Wrap( -1 );
+ fgSizer34->Add( lblServerUsernamePassword, 0, wxALL, 5 );
+
+ lblAbleToLoginResult = new wxStaticText( tabConn, wxID_ANY, wxT("..."), wxDefaultPosition, wxDefaultSize, 0 );
+ lblAbleToLoginResult->Wrap( -1 );
+ fgSizer34->Add( lblAbleToLoginResult, 0, wxALL, 5 );
+
+ lblIsCalDAV = new wxStaticText( tabConn, wxID_ANY, wxT("Server has CardDAV Support:"), wxDefaultPosition, wxDefaultSize, 0 );
+ lblIsCalDAV->Wrap( -1 );
+ fgSizer34->Add( lblIsCalDAV, 0, wxALL, 5 );
+
+ lblCardDAVSupportResult = new wxStaticText( tabConn, wxID_ANY, wxT("..."), wxDefaultPosition, wxDefaultSize, 0 );
+ lblCardDAVSupportResult->Wrap( -1 );
+ fgSizer34->Add( lblCardDAVSupportResult, 0, wxALL, 5 );
+
+
+ bSizer323->Add( fgSizer34, 1, wxEXPAND, 5 );
+
+ m_staticline3 = new wxStaticLine( tabConn, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
+ bSizer323->Add( m_staticline3, 0, wxEXPAND | wxALL, 5 );
+
+ lblConnectionResultText = new wxStaticText( tabConn, wxID_ANY, wxT("..."), wxDefaultPosition, wxDefaultSize, 0 );
+ lblConnectionResultText->Wrap( 360 );
+ lblConnectionResultText->SetMinSize( wxSize( -1,40 ) );
+
+ bSizer323->Add( lblConnectionResultText, 0, wxALL|wxEXPAND, 5 );
+
+
+ tabConn->SetSizer( bSizer323 );
+ tabConn->Layout();
+ bSizer323->Fit( tabConn );
+ szrNewAccount->Add( tabConn, 1, wxEXPAND | wxALL, 5 );
+
+ tabFinish = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
+ tabFinish->Hide();
+
+ wxBoxSizer* bSizer3231;
+ bSizer3231 = new wxBoxSizer( wxVERTICAL );
+
+ lblFinishText = new wxStaticText( tabFinish, wxID_ANY, wxT("Enter the account name and click on Finish."), wxDefaultPosition, wxDefaultSize, 0 );
+ lblFinishText->Wrap( -1 );
+ bSizer3231->Add( lblFinishText, 0, wxALL, 5 );
+
+ wxFlexGridSizer* fgSizer341;
+ fgSizer341 = new wxFlexGridSizer( 0, 2, 0, 0 );
+ fgSizer341->AddGrowableCol( 1 );
+ fgSizer341->SetFlexibleDirection( wxBOTH );
+ fgSizer341->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
+
+ lblAccountName = new wxStaticText( tabFinish, wxID_ANY, wxT("Account Name:"), wxDefaultPosition, wxDefaultSize, 0 );
+ lblAccountName->Wrap( -1 );
+ fgSizer341->Add( lblAccountName, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
+
+ txtAccountName = new wxTextCtrl( tabFinish, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
+ fgSizer341->Add( txtAccountName, 1, wxALL|wxEXPAND, 5 );
+
+
+ bSizer3231->Add( fgSizer341, 1, wxEXPAND, 5 );
+
+
+ tabFinish->SetSizer( bSizer3231 );
+ tabFinish->Layout();
+ bSizer3231->Fit( tabFinish );
+ szrNewAccount->Add( tabFinish, 1, wxEXPAND | wxALL, 5 );
+
+
+ fgSizer30->Add( szrNewAccount, 1, wxEXPAND, 5 );
+
+ wxBoxSizer* bSizer322;
+ bSizer322 = new wxBoxSizer( wxHORIZONTAL );
+
+ btnPrevious = new wxButton( this, wxID_ANY, wxT("< Previous"), wxDefaultPosition, wxDefaultSize, 0 );
+ bSizer322->Add( btnPrevious, 0, wxALL, 5 );
+
+ btnNext = new wxButton( this, wxID_ANY, wxT("Next >"), wxDefaultPosition, wxDefaultSize, 0 );
+ btnNext->SetDefault();
+ bSizer322->Add( btnNext, 0, wxALL, 5 );
+
+ btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );
+ bSizer322->Add( btnClose, 0, wxALL, 5 );
+
+
+ fgSizer30->Add( bSizer322, 0, wxALIGN_RIGHT, 5 );
+
+
+ this->SetSizer( fgSizer30 );
+ this->Layout();
+
+ this->Centre( wxBOTH );
+
+ // Connect Events
+ cmbServerType->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( frmNewAccountADT::UpdateRequirements ), NULL, this );
+ txtAccountName->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( frmNewAccountADT::CheckAccountName ), NULL, this );
+ btnPrevious->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmNewAccountADT::ProcessPrevious ), NULL, this );
+ btnNext->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmNewAccountADT::ProcessNext ), NULL, this );
+ btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmNewAccountADT::CloseWindow ), NULL, this );
+}
+
+frmNewAccountADT::~frmNewAccountADT()
+{
+ // Disconnect Events
+ cmbServerType->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( frmNewAccountADT::UpdateRequirements ), NULL, this );
+ txtAccountName->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( frmNewAccountADT::CheckAccountName ), NULL, this );
+ btnPrevious->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmNewAccountADT::ProcessPrevious ), NULL, this );
+ btnNext->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmNewAccountADT::ProcessNext ), NULL, this );
+ btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmNewAccountADT::CloseWindow ), NULL, this );
+
+}
+
+frmConflictResolutionADT::frmConflictResolutionADT( 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 );
+
+ wxFlexGridSizer* fgSizer39;
+ fgSizer39 = new wxFlexGridSizer( 0, 1, 0, 0 );
+ fgSizer39->AddGrowableCol( 0 );
+ fgSizer39->AddGrowableRow( 0 );
+ fgSizer39->SetFlexibleDirection( wxBOTH );
+ fgSizer39->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
+
+ wxBoxSizer* bSizer363;
+ bSizer363 = new wxBoxSizer( wxHORIZONTAL );
+
+ wxBoxSizer* bSizer364;
+ bSizer364 = new wxBoxSizer( wxVERTICAL );
+
+ lblText = new wxStaticText( this, wxID_ANY, wxT("An update for this contact has also taken place on the server.\nChoose which version to keep and either press Keep Local or Keep Server.\nTo decide later, click on Decide Later."), wxDefaultPosition, wxDefaultSize, 0 );
+ lblText->Wrap( -1 );
+ bSizer364->Add( lblText, 0, wxALL|wxEXPAND, 5 );
+
+ m_splitter3 = new wxSplitterWindow( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSP_3D );
+ m_splitter3->Connect( wxEVT_IDLE, wxIdleEventHandler( frmConflictResolutionADT::m_splitter3OnIdle ), NULL, this );
+
+ m_panel44 = new wxPanel( m_splitter3, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
+ wxBoxSizer* bSizer365;
+ bSizer365 = new wxBoxSizer( wxVERTICAL );
+
+ htmClient = new wxHtmlWindow( m_panel44, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHW_SCROLLBAR_AUTO|wxSUNKEN_BORDER );
+ bSizer365->Add( htmClient, 1, wxALL|wxEXPAND, 5 );
+
+
+ m_panel44->SetSizer( bSizer365 );
+ m_panel44->Layout();
+ bSizer365->Fit( m_panel44 );
+ m_panel45 = new wxPanel( m_splitter3, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
+ wxBoxSizer* bSizer366;
+ bSizer366 = new wxBoxSizer( wxVERTICAL );
+
+ htmServer = new wxHtmlWindow( m_panel45, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHW_SCROLLBAR_AUTO|wxSUNKEN_BORDER );
+ bSizer366->Add( htmServer, 1, wxALL|wxEXPAND, 5 );
+
+
+ m_panel45->SetSizer( bSizer366 );
+ m_panel45->Layout();
+ bSizer366->Fit( m_panel45 );
+ m_splitter3->SplitVertically( m_panel44, m_panel45, 257 );
+ bSizer364->Add( m_splitter3, 1, wxEXPAND, 5 );
+
+ wxBoxSizer* bSizer367;
+ bSizer367 = new wxBoxSizer( wxHORIZONTAL );
+
+
+ bSizer367->Add( 0, 0, 1, wxEXPAND, 5 );
+
+ btnKeepLocal = new wxButton( this, wxID_ANY, wxT("Keep Local"), wxDefaultPosition, wxDefaultSize, 0 );
+ bSizer367->Add( btnKeepLocal, 0, wxALL, 5 );
+
+ btnKeepServer = new wxButton( this, wxID_ANY, wxT("Keep Server"), wxDefaultPosition, wxDefaultSize, 0 );
+ bSizer367->Add( btnKeepServer, 0, wxALL, 5 );
+
+ btnDecideLater = new wxButton( this, wxID_ANY, wxT("Decide Later"), wxDefaultPosition, wxDefaultSize, 0 );
+ bSizer367->Add( btnDecideLater, 0, wxALL, 5 );
+
+
+ bSizer367->Add( 0, 0, 1, wxEXPAND, 5 );
+
+
+ bSizer364->Add( bSizer367, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
+
+
+ bSizer363->Add( bSizer364, 1, wxEXPAND, 5 );
+
+
+ fgSizer39->Add( bSizer363, 1, wxEXPAND, 5 );
+
+
+ this->SetSizer( fgSizer39 );
+ this->Layout();
+
+ this->Centre( wxBOTH );
+
+ // Connect Events
+ btnKeepLocal->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmConflictResolutionADT::KeepLocalData ), NULL, this );
+ btnKeepServer->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmConflictResolutionADT::KeepServerData ), NULL, this );
+ btnDecideLater->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmConflictResolutionADT::DecideLater ), NULL, this );
+}
+
+frmConflictResolutionADT::~frmConflictResolutionADT()
+{
+ // Disconnect Events
+ btnKeepLocal->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmConflictResolutionADT::KeepLocalData ), NULL, this );
+ btnKeepServer->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmConflictResolutionADT::KeepServerData ), NULL, this );
+ btnDecideLater->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmConflictResolutionADT::DecideLater ), NULL, this );
+
+}
+
+frmActivityMgrADT::frmActivityMgrADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxFrame( parent, id, title, pos, size, style )
+{
+ this->SetSizeHints( wxSize( 400,425 ), wxDefaultSize );
+
+ mnuMenuBar = new wxMenuBar( 0 );
+ mnuWindow = new wxMenu();
+ wxMenuItem* mnuStopActivity;
+ mnuStopActivity = new wxMenuItem( mnuWindow, wxID_ANY, wxString( wxT("&Stop Activity") ) + wxT('\t') + wxT("CTRL+ALT+S"), wxEmptyString, wxITEM_NORMAL );
+ mnuWindow->Append( mnuStopActivity );
+
+ wxMenuItem* mnuActivityStopAll;
+ mnuActivityStopAll = new wxMenuItem( mnuWindow, wxID_ANY, wxString( wxT("Stop All Activities") ) + wxT('\t') + wxT("CTRL+SHIFT+ALT+S"), wxEmptyString, wxITEM_NORMAL );
+ mnuWindow->Append( mnuActivityStopAll );
+
+ wxMenuItem* mnuRetryActivity;
+ mnuRetryActivity = new wxMenuItem( mnuWindow, wxID_ANY, wxString( wxT("&Retry Activity") ) + wxT('\t') + wxT("CTRL+R"), wxEmptyString, wxITEM_NORMAL );
+ mnuWindow->Append( mnuRetryActivity );
+
+ mnuWindow->AppendSeparator();
+
+ mnuSleepMode = new wxMenuItem( mnuWindow, wxID_ANY, wxString( wxT("Sleep Mode") ) , wxEmptyString, wxITEM_CHECK );
+ mnuWindow->Append( mnuSleepMode );
+
+ mnuWindow->AppendSeparator();
+
+ wxMenuItem* mnuWindowClose;
+ mnuWindowClose = new wxMenuItem( mnuWindow, wxID_ANY, wxString( wxT("&Close Window") ) + wxT('\t') + wxT("ALT+F4"), wxEmptyString, wxITEM_NORMAL );
+ mnuWindow->Append( mnuWindowClose );
+
+ mnuMenuBar->Append( mnuWindow, wxT("&Activity") );
+
+ this->SetMenuBar( mnuMenuBar );
+
+ wxFlexGridSizer* fgSizer38;
+ fgSizer38 = new wxFlexGridSizer( 0, 1, 0, 0 );
+ fgSizer38->AddGrowableCol( 0 );
+ fgSizer38->AddGrowableRow( 1 );
+ fgSizer38->SetFlexibleDirection( wxBOTH );
+ fgSizer38->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
+
+ m_panel43 = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
+ wxBoxSizer* bSizer363;
+ bSizer363 = new wxBoxSizer( wxHORIZONTAL );
+
+ bmpActivity = new wxStaticBitmap( m_panel43, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
+ bmpActivity->SetMinSize( wxSize( 64,64 ) );
+
+ bSizer363->Add( bmpActivity, 0, wxALL, 5 );
+
+ m_panel46 = new wxPanel( m_panel43, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
+ wxBoxSizer* bSizer364;
+ bSizer364 = new wxBoxSizer( wxVERTICAL );
+
+
+ bSizer364->Add( 0, 0, 1, wxEXPAND, 5 );
+
+ lblDetails = new wxStaticText( m_panel46, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE );
+ lblDetails->Wrap( -1 );
+ bSizer364->Add( lblDetails, 0, wxALL|wxEXPAND, 0 );
+
+
+ bSizer364->Add( 0, 0, 1, wxEXPAND, 5 );
+
+ GauProgress = new wxGauge( m_panel46, wxID_ANY, 100, wxDefaultPosition, wxDefaultSize, wxGA_HORIZONTAL );
+ GauProgress->SetValue( 0 );
+ GauProgress->SetMinSize( wxSize( -1,20 ) );
+
+ bSizer364->Add( GauProgress, 0, wxALL|wxEXPAND, 0 );
+
+
+ bSizer364->Add( 0, 0, 1, wxEXPAND, 5 );
+
+
+ m_panel46->SetSizer( bSizer364 );
+ m_panel46->Layout();
+ bSizer364->Fit( m_panel46 );
+ bSizer363->Add( m_panel46, 1, wxEXPAND | wxALL, 5 );
+
+
+ m_panel43->SetSizer( bSizer363 );
+ m_panel43->Layout();
+ bSizer363->Fit( m_panel43 );
+ fgSizer38->Add( m_panel43, 1, wxALL|wxEXPAND, 0 );
+
+ m_panel44 = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
+ wxBoxSizer* bSizer365;
+ bSizer365 = new wxBoxSizer( wxVERTICAL );
+
+ lstActivity = new wxListCtrl( m_panel44, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
+ bSizer365->Add( lstActivity, 1, wxALL|wxEXPAND, 5 );
+
+
+ m_panel44->SetSizer( bSizer365 );
+ m_panel44->Layout();
+ bSizer365->Fit( m_panel44 );
+ fgSizer38->Add( m_panel44, 5, wxALL|wxEXPAND, 0 );
+
+
+ this->SetSizer( fgSizer38 );
+ this->Layout();
+
+ this->Centre( wxBOTH );
+
+ // Connect Events
+ this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( frmActivityMgrADT::CloseWindow ) );
+ this->Connect( mnuStopActivity->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmActivityMgrADT::StopTask ) );
+ this->Connect( mnuActivityStopAll->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmActivityMgrADT::StopAllTasks ) );
+ this->Connect( mnuRetryActivity->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmActivityMgrADT::RetryTask ) );
+ this->Connect( mnuSleepMode->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmActivityMgrADT::SleepMode ) );
+ this->Connect( mnuWindowClose->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmActivityMgrADT::CloseWindow ) );
+}
+
+frmActivityMgrADT::~frmActivityMgrADT()
+{
+ // Disconnect Events
+ this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( frmActivityMgrADT::CloseWindow ) );
+ this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmActivityMgrADT::StopTask ) );
+ this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmActivityMgrADT::StopAllTasks ) );
+ this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmActivityMgrADT::RetryTask ) );
+ this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmActivityMgrADT::SleepMode ) );
+ this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmActivityMgrADT::CloseWindow ) );
+
+}
+
+frmEditAccountADT::frmEditAccountADT( 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* bSizer384;
+ bSizer384 = new wxBoxSizer( wxVERTICAL );
+
+ wxBoxSizer* szrTabs;
+ szrTabs = new wxBoxSizer( wxVERTICAL );
+
+ tabAccount = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
+ tabProperties = new wxPanel( tabAccount, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
+ wxFlexGridSizer* fgSizer43;
+ fgSizer43 = new wxFlexGridSizer( 0, 2, 0, 0 );
+ fgSizer43->AddGrowableCol( 1 );
+ fgSizer43->SetFlexibleDirection( wxBOTH );
+ fgSizer43->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_NONE );
+
+ lblAccName = new wxStaticText( tabProperties, wxID_ANY, wxT("Account Name:"), wxDefaultPosition, wxDefaultSize, 0 );
+ lblAccName->Wrap( -1 );
+ fgSizer43->Add( lblAccName, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
+
+ txtAccountName = new wxTextCtrl( tabProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
+ fgSizer43->Add( txtAccountName, 1, wxALL|wxEXPAND, 5 );
+
+ lblAccAdr = new wxStaticText( tabProperties, wxID_ANY, wxT("Address:"), wxDefaultPosition, wxDefaultSize, 0 );
+ lblAccAdr->Wrap( -1 );
+ fgSizer43->Add( lblAccAdr, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
+
+ txtAddress = new wxTextCtrl( tabProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
+ fgSizer43->Add( txtAddress, 0, wxALL|wxEXPAND, 5 );
+
+ m_staticText193 = new wxStaticText( tabProperties, wxID_ANY, wxT("Port:"), wxDefaultPosition, wxDefaultSize, 0 );
+ m_staticText193->Wrap( -1 );
+ fgSizer43->Add( m_staticText193, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
+
+ txtPort = new wxTextCtrl( tabProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
+ #ifdef __WXGTK__
+ if ( !txtPort->HasFlag( wxTE_MULTILINE ) )
+ {
+ txtPort->SetMaxLength( 5 );
+ }
+ #else
+ txtPort->SetMaxLength( 5 );
+ #endif
+ fgSizer43->Add( txtPort, 0, wxALL, 5 );
+
+ lblPort = new wxStaticText( tabProperties, wxID_ANY, wxT("Username:"), wxDefaultPosition, wxDefaultSize, 0 );
+ lblPort->Wrap( -1 );
+ fgSizer43->Add( lblPort, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
+
+ txtUsername = new wxTextCtrl( tabProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
+ fgSizer43->Add( txtUsername, 0, wxALL|wxEXPAND, 5 );
+
+ lblPassword = new wxStaticText( tabProperties, wxID_ANY, wxT("Password:"), wxDefaultPosition, wxDefaultSize, 0 );
+ lblPassword->Wrap( -1 );
+ fgSizer43->Add( lblPassword, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
+
+ txtPassword = new wxTextCtrl( tabProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PASSWORD );
+ fgSizer43->Add( txtPassword, 0, wxALL|wxEXPAND, 5 );
+
+ lblPrefix = new wxStaticText( tabProperties, wxID_ANY, wxT("Prefix:"), wxDefaultPosition, wxDefaultSize, 0 );
+ lblPrefix->Wrap( -1 );
+ fgSizer43->Add( lblPrefix, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
+
+ wxBoxSizer* bSizer391;
+ bSizer391 = new wxBoxSizer( wxHORIZONTAL );
+
+ txtPrefix = new wxTextCtrl( tabProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
+ bSizer391->Add( txtPrefix, 1, wxALL|wxEXPAND, 5 );
+
+ btnDetect = new wxButton( tabProperties, wxID_ANY, wxT("Detect"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT );
+ bSizer391->Add( btnDetect, 0, wxALIGN_CENTER_VERTICAL, 0 );
+
+
+ fgSizer43->Add( bSizer391, 1, wxEXPAND|wxRIGHT, 5 );
+
+ txtSSL = new wxStaticText( tabProperties, wxID_ANY, wxT("SSL:"), wxDefaultPosition, wxDefaultSize, 0 );
+ txtSSL->Wrap( -1 );
+ fgSizer43->Add( txtSSL, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
+
+ chkSSL = new wxCheckBox( tabProperties, wxID_ANY, wxT("Use SSL"), wxDefaultPosition, wxDefaultSize, 0 );
+ fgSizer43->Add( chkSSL, 0, wxALL, 5 );
+
+
+ tabProperties->SetSizer( fgSizer43 );
+ tabProperties->Layout();
+ fgSizer43->Fit( tabProperties );
+ tabAccount->AddPage( tabProperties, wxT("General"), true );
+ tabRefresh = new wxPanel( tabAccount, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
+ wxFlexGridSizer* fgSizer431;
+ fgSizer431 = new wxFlexGridSizer( 0, 2, 0, 0 );
+ fgSizer431->AddGrowableCol( 1 );
+ fgSizer431->SetFlexibleDirection( wxBOTH );
+ fgSizer431->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_NONE );
+
+ lblRefresh = new wxStaticText( tabRefresh, wxID_ANY, wxT("Refresh Time:"), wxDefaultPosition, wxDefaultSize, 0 );
+ lblRefresh->Wrap( -1 );
+ fgSizer431->Add( lblRefresh, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
+
+ txtRefresh = new wxTextCtrl( tabRefresh, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
+ #ifdef __WXGTK__
+ if ( !txtRefresh->HasFlag( wxTE_MULTILINE ) )
+ {
+ txtRefresh->SetMaxLength( 5 );
+ }
+ #else
+ txtRefresh->SetMaxLength( 5 );
+ #endif
+ fgSizer431->Add( txtRefresh, 1, wxALL, 5 );
+
+
+ tabRefresh->SetSizer( fgSizer431 );
+ tabRefresh->Layout();
+ fgSizer431->Fit( tabRefresh );
+ tabAccount->AddPage( tabRefresh, wxT("Refresh"), false );
+
+ szrTabs->Add( tabAccount, 1, wxEXPAND | wxALL, 5 );
+
+
+ bSizer384->Add( szrTabs, 1, wxEXPAND, 0 );
+
+ wxBoxSizer* szrButtons;
+ szrButtons = new wxBoxSizer( wxHORIZONTAL );
+
+
+ szrButtons->Add( 1, 0, 1, wxEXPAND, 0 );
+
+ btnSave = new wxButton( this, wxID_ANY, wxT("Save"), wxDefaultPosition, wxDefaultSize, 0 );
+ btnSave->SetDefault();
+ szrButtons->Add( btnSave, 0, wxALIGN_RIGHT, 0 );
+
+
+ szrButtons->Add( 5, 0, 0, 0, 0 );
+
+ btnCancel = new wxButton( this, wxID_ANY, wxT("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
+ szrButtons->Add( btnCancel, 0, wxALIGN_RIGHT, 0 );
+
+
+ szrButtons->Add( 5, 0, 0, wxEXPAND, 0 );
+
+
+ bSizer384->Add( szrButtons, 0, wxBOTTOM|wxEXPAND, 5 );
+
+
+ this->SetSizer( bSizer384 );
+ this->Layout();
+
+ this->Centre( wxBOTH );
+
+ // Connect Events
+ btnDetect->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmEditAccountADT::DetectAddressBook ), NULL, this );
+ btnSave->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmEditAccountADT::UpdateSettings ), NULL, this );
+ btnCancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmEditAccountADT::CloseWindow ), NULL, this );
+}
+
+frmEditAccountADT::~frmEditAccountADT()
+{
+ // Disconnect Events
+ btnDetect->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmEditAccountADT::DetectAddressBook ), NULL, this );
+ btnSave->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmEditAccountADT::UpdateSettings ), NULL, this );
+ btnCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmEditAccountADT::CloseWindow ), NULL, this );
+
+}
+
+frmSSLCertificateADT::frmSSLCertificateADT( 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* bSizer384;
+ bSizer384 = new wxBoxSizer( wxVERTICAL );
+
+ m_notebook28 = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
+ tabSummary = new wxPanel( m_notebook28, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
+ wxBoxSizer* bSizer386;
+ bSizer386 = new wxBoxSizer( wxVERTICAL );
+
+ pnlTop = new wxPanel( tabSummary, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
+ pnlTop->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNHIGHLIGHT ) );
+
+ wxBoxSizer* bSizer389;
+ bSizer389 = new wxBoxSizer( wxVERTICAL );
+
+ lblCertName = new wxStaticText( pnlTop, wxID_ANY, wxT("Certificate Name"), wxDefaultPosition, wxDefaultSize, 0 );
+ lblCertName->Wrap( -1 );
+ lblCertName->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) );
+
+ bSizer389->Add( lblCertName, 0, wxALL, 5 );
+
+ lblValidityStatus = new wxStaticText( pnlTop, wxID_ANY, wxT("Validity Status"), wxDefaultPosition, wxDefaultSize, 0 );
+ lblValidityStatus->Wrap( -1 );
+ bSizer389->Add( lblValidityStatus, 0, wxALL, 5 );
+
+
+ pnlTop->SetSizer( bSizer389 );
+ pnlTop->Layout();
+ bSizer389->Fit( pnlTop );
+ bSizer386->Add( pnlTop, 0, wxEXPAND | wxALL, 5 );
+
+ wxBoxSizer* bSizer392;
+ bSizer392 = new wxBoxSizer( wxVERTICAL );
+
+ m_panel54 = new wxPanel( tabSummary, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
+ wxFlexGridSizer* fgSizer44;
+ fgSizer44 = new wxFlexGridSizer( 0, 2, 0, 0 );
+ fgSizer44->AddGrowableCol( 1 );
+ fgSizer44->SetFlexibleDirection( wxHORIZONTAL );
+ fgSizer44->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
+
+ lblIssuedTo = new wxStaticText( m_panel54, wxID_ANY, wxT("Issued To:"), wxDefaultPosition, wxDefaultSize, 0 );
+ lblIssuedTo->Wrap( -1 );
+ fgSizer44->Add( lblIssuedTo, 0, wxALL, 5 );
+
+ lblIssuedToData = new wxStaticText( m_panel54, wxID_ANY, wxT("IssuedTo"), wxDefaultPosition, wxDefaultSize, 0 );
+ lblIssuedToData->Wrap( -1 );
+ fgSizer44->Add( lblIssuedToData, 1, wxALL|wxEXPAND, 5 );
+
+ lblValidFrom = new wxStaticText( m_panel54, wxID_ANY, wxT("Valid From:"), wxDefaultPosition, wxDefaultSize, 0 );
+ lblValidFrom->Wrap( -1 );
+ fgSizer44->Add( lblValidFrom, 0, wxALL, 5 );
+
+ lblValidFromData = new wxStaticText( m_panel54, wxID_ANY, wxT("ValidDate"), wxDefaultPosition, wxDefaultSize, 0 );
+ lblValidFromData->Wrap( -1 );
+ fgSizer44->Add( lblValidFromData, 1, wxALL|wxEXPAND, 5 );
+
+ lblValidUntil = new wxStaticText( m_panel54, wxID_ANY, wxT("Valid Until:"), wxDefaultPosition, wxDefaultSize, 0 );
+ lblValidUntil->Wrap( -1 );
+ fgSizer44->Add( lblValidUntil, 0, wxALL, 5 );
+
+ lblValidUntilData = new wxStaticText( m_panel54, wxID_ANY, wxT("ValidUntil"), wxDefaultPosition, wxDefaultSize, 0 );
+ lblValidUntilData->Wrap( -1 );
+ fgSizer44->Add( lblValidUntilData, 1, wxALL|wxEXPAND, 5 );
+
+
+ m_panel54->SetSizer( fgSizer44 );
+ m_panel54->Layout();
+ fgSizer44->Fit( m_panel54 );
+ bSizer392->Add( m_panel54, 1, wxEXPAND | wxALL, 5 );
+
+
+ bSizer386->Add( bSizer392, 1, wxEXPAND, 5 );
+
+
+ tabSummary->SetSizer( bSizer386 );
+ tabSummary->Layout();
+ bSizer386->Fit( tabSummary );
+ m_notebook28->AddPage( tabSummary, wxT("Summary"), true );
+ tabDetail = new wxPanel( m_notebook28, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
+ wxBoxSizer* bSizer3891;
+ bSizer3891 = new wxBoxSizer( wxVERTICAL );
+
+ lstValues = new wxListCtrl( tabDetail, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxSUNKEN_BORDER );
+ bSizer3891->Add( lstValues, 1, wxALL|wxEXPAND, 5 );
+
+ txtValueData = new wxTextCtrl( tabDetail, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_CHARWRAP|wxTE_MULTILINE|wxTE_READONLY );
+ txtValueData->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE ) );
+
+ bSizer3891->Add( txtValueData, 1, wxALL|wxEXPAND, 5 );
+
+
+ tabDetail->SetSizer( bSizer3891 );
+ tabDetail->Layout();
+ bSizer3891->Fit( tabDetail );
+ m_notebook28->AddPage( tabDetail, wxT("Detail"), false );
+ tabHierarchy = new wxPanel( m_notebook28, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
+ wxBoxSizer* bSizer390;
+ bSizer390 = new wxBoxSizer( wxVERTICAL );
+
+ treHierarchy = new wxTreeCtrl( tabHierarchy, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTR_DEFAULT_STYLE|wxSUNKEN_BORDER );
+ bSizer390->Add( treHierarchy, 1, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
+
+ m_panel57 = new wxPanel( tabHierarchy, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
+ wxBoxSizer* bSizer393;
+ bSizer393 = new wxBoxSizer( wxVERTICAL );
+
+ btnViewCert = new wxButton( m_panel57, wxID_ANY, wxT("View Certificate"), wxDefaultPosition, wxDefaultSize, 0 );
+ bSizer393->Add( btnViewCert, 0, wxALIGN_RIGHT|wxALL, 0 );
+
+
+ m_panel57->SetSizer( bSizer393 );
+ m_panel57->Layout();
+ bSizer393->Fit( m_panel57 );
+ bSizer390->Add( m_panel57, 0, wxEXPAND | wxALL, 5 );
+
+
+ tabHierarchy->SetSizer( bSizer390 );
+ tabHierarchy->Layout();
+ bSizer390->Fit( tabHierarchy );
+ m_notebook28->AddPage( tabHierarchy, wxT("Hierarchy"), false );
+
+ bSizer384->Add( m_notebook28, 1, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
+
+ pnlButtons = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
+ wxBoxSizer* bSizer385;
+ bSizer385 = new wxBoxSizer( wxVERTICAL );
+
+ btnClose = new wxButton( pnlButtons, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );
+ btnClose->SetDefault();
+ bSizer385->Add( btnClose, 0, wxALIGN_RIGHT, 5 );
+
+
+ pnlButtons->SetSizer( bSizer385 );
+ pnlButtons->Layout();
+ bSizer385->Fit( pnlButtons );
+ bSizer384->Add( pnlButtons, 0, wxEXPAND | wxALL, 5 );
+
+
+ this->SetSizer( bSizer384 );
+ this->Layout();
+
+ this->Centre( wxBOTH );
+
+ // Connect Events
+ lstValues->Connect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( frmSSLCertificateADT::LoadValueData ), NULL, this );
+ treHierarchy->Connect( wxEVT_COMMAND_TREE_SEL_CHANGED, wxTreeEventHandler( frmSSLCertificateADT::CheckCertificate ), NULL, this );
+ btnViewCert->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmSSLCertificateADT::ViewCertificate ), NULL, this );
+ btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmSSLCertificateADT::CloseWindow ), NULL, this );
+}
+
+frmSSLCertificateADT::~frmSSLCertificateADT()
+{
+ // Disconnect Events
+ lstValues->Disconnect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( frmSSLCertificateADT::LoadValueData ), NULL, this );
+ treHierarchy->Disconnect( wxEVT_COMMAND_TREE_SEL_CHANGED, wxTreeEventHandler( frmSSLCertificateADT::CheckCertificate ), NULL, this );
+ btnViewCert->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmSSLCertificateADT::ViewCertificate ), NULL, this );
+ btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmSSLCertificateADT::CloseWindow ), NULL, this );
+
+}
+
+frmInvalidSSLCertificateADT::frmInvalidSSLCertificateADT( 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* bSizer387;
+ bSizer387 = new wxBoxSizer( wxVERTICAL );
+
+ lblSSLText = new wxStaticText( this, wxID_ANY, wxT("Text"), wxDefaultPosition, wxDefaultSize, 0 );
+ lblSSLText->Wrap( -1 );
+ bSizer387->Add( lblSSLText, 1, wxALL|wxEXPAND, 5 );
+
+ wxBoxSizer* bSizer388;
+ bSizer388 = new wxBoxSizer( wxHORIZONTAL );
+
+ btnAccept = new wxButton( this, wxID_ANY, wxT("Accept"), wxDefaultPosition, wxDefaultSize, 0 );
+ bSizer388->Add( btnAccept, 0, wxALL, 5 );
+
+ btnReject = new wxButton( this, wxID_ANY, wxT("Reject"), wxDefaultPosition, wxDefaultSize, 0 );
+ btnReject->SetDefault();
+ bSizer388->Add( btnReject, 0, wxALL, 5 );
+
+ btnViewCert = new wxButton( this, wxID_ANY, wxT("View Certificates..."), wxDefaultPosition, wxDefaultSize, 0 );
+ bSizer388->Add( btnViewCert, 0, wxALL, 5 );
+
+
+ bSizer387->Add( bSizer388, 0, wxALIGN_CENTER_HORIZONTAL, 0 );
+
+
+ this->SetSizer( bSizer387 );
+ this->Layout();
+
+ this->Centre( wxBOTH );
+
+ // Connect Events
+ btnAccept->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmInvalidSSLCertificateADT::Accept ), NULL, this );
+ btnReject->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmInvalidSSLCertificateADT::Reject ), NULL, this );
+ btnViewCert->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmInvalidSSLCertificateADT::ViewCertificates ), NULL, this );
+}
+
+frmInvalidSSLCertificateADT::~frmInvalidSSLCertificateADT()
+{
+ // Disconnect Events
+ btnAccept->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmInvalidSSLCertificateADT::Accept ), NULL, this );
+ btnReject->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmInvalidSSLCertificateADT::Reject ), NULL, this );
+ btnViewCert->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmInvalidSSLCertificateADT::ViewCertificates ), NULL, this );
+
+}