Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Update of interface files.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 20 Sep 2015 11:50:05 +0000 (12:50 +0100)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 20 Sep 2015 11:50:05 +0000 (12:50 +0100)
source/AppXestiaAddrBk.cpp
source/AppXestiaAddrBk.h

index c880b86..7be4fa4 100644 (file)
-///////////////////////////////////////////////////////////////////////////
-// C++ code generated with wxFormBuilder (version Feb 26 2014)
-// http://www.wxformbuilder.org/
-//
-// PLEASE DO "NOT" EDIT THIS FILE!
-///////////////////////////////////////////////////////////////////////////
-
-#include "AppXestiaAddrBk.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 ) );
-    
-    mnuMain = new wxMenuBar( 0 );
-    mnuManage = new wxMenu();
-    wxMenuItem* mnuNewAB;
-    mnuNewAB = new wxMenuItem( mnuManage, ID_MANAGE_NEWAB, wxString( wxT("New Address Book...") ) , wxEmptyString, wxITEM_NORMAL );
-    mnuManage->Append( mnuNewAB );
-    
-    mnuManage->AppendSeparator();
-    
-    wxMenuItem* mnuRefreshAB;
-    mnuRefreshAB = new wxMenuItem( mnuManage, wxID_ANY, wxString( wxT("Refresh Address Book") ) + wxT('\t') + wxT("CTRL+R"), wxEmptyString, wxITEM_NORMAL );
-    mnuManage->Append( mnuRefreshAB );
-    
-    mnuManage->AppendSeparator();
-    
-    wxMenuItem* mnuImport;
-    mnuImport = new wxMenuItem( mnuManage, ID_MANAGE_IMPORT, wxString( wxT("Import...") ) , wxEmptyString, wxITEM_NORMAL );
-    mnuManage->Append( mnuImport );
-    
-    wxMenuItem* mnuExport;
-    mnuExport = new wxMenuItem( mnuManage, ID_MANAGE_EXPORT, wxString( wxT("Export...") ) , wxEmptyString, wxITEM_NORMAL );
-    mnuManage->Append( mnuExport );
-    
-    mnuPrefSep = mnuManage->AppendSeparator();
-    
-    wxMenuItem* mnuPreferences;
-    mnuPreferences = new wxMenuItem( mnuManage, wxID_PREFERENCES, wxString( wxT("Preferences...") ) , wxEmptyString, wxITEM_NORMAL );
-    mnuManage->Append( mnuPreferences );
-    
-    mnuExitSep = mnuManage->AppendSeparator();
-    
-    wxMenuItem* mnuExit;
-    mnuExit = new wxMenuItem( mnuManage, wxID_EXIT, wxString( wxT("Exit") ) + wxT('\t') + wxT("CTRL+Q"), wxEmptyString, wxITEM_NORMAL );
-#ifdef __WXMSW__
-    mnuExit->SetBitmaps( wxNullBitmap );
-#elif defined( __WXGTK__ )
-    mnuExit->SetBitmap( wxNullBitmap );
-#endif
-    mnuManage->Append( mnuExit );
-    
-    mnuMain->Append( mnuManage, wxT("Manage") );
-    
-    mnuContact = new wxMenu();
-    wxMenuItem* mnuNewContact;
-    mnuNewContact = new wxMenuItem( mnuContact, wxID_ANY, wxString( wxT("New Contact...") ) + wxT('\t') + wxT("CTRL+N"), wxEmptyString, wxITEM_NORMAL );
-    mnuContact->Append( mnuNewContact );
-    
-    wxMenuItem* mnuEditContact;
-    mnuEditContact = new wxMenuItem( mnuContact, ID_CONTACT_EDIT, wxString( wxT("Edit Contact...") ) + wxT('\t') + wxT("CTRL+E"), wxEmptyString, wxITEM_NORMAL );
-    mnuContact->Append( mnuEditContact );
-    
-    wxMenuItem* deleteContact;
-    deleteContact = new wxMenuItem( mnuContact, ID_CONTACT_DELETE, wxString( wxT("Delete Contact...") ) + wxT('\t') + wxT("CTRL+D"), wxEmptyString, wxITEM_NORMAL );
-    mnuContact->Append( deleteContact );
-    
-    mnuContact->AppendSeparator();
-    
-    wxMenuItem* mnuFindContact;
-    mnuFindContact = new wxMenuItem( mnuContact, wxID_ANY, wxString( wxT("Find Contacts...") ) + wxT('\t') + wxT("CTRL+F"), wxEmptyString, wxITEM_NORMAL );
-    mnuContact->Append( mnuFindContact );
-    
-    mnuMain->Append( mnuContact, wxT("Contact") );
-    
-    mnuView = new wxMenu();
-    mnuShowContactsAs = new wxMenu();
-    wxMenuItem* mnuViewFNLN;
-    mnuViewFNLN = new wxMenuItem( mnuShowContactsAs, ID_VIEW_FNLN, wxString( wxT("First Name, Last Name") ) , wxEmptyString, wxITEM_NORMAL );
-    mnuShowContactsAs->Append( mnuViewFNLN );
-    
-    wxMenuItem* mnuViewLNFN;
-    mnuViewLNFN = new wxMenuItem( mnuShowContactsAs, ID_VIEW_LNFN, wxString( wxT("Last Name, First Name") ) , wxEmptyString, wxITEM_NORMAL );
-    mnuShowContactsAs->Append( mnuViewLNFN );
-    
-    wxMenuItem* mnuViewNick;
-    mnuViewNick = new wxMenuItem( mnuShowContactsAs, ID_VIEW_NICK, wxString( wxT("Nickname") ) , wxEmptyString, wxITEM_NORMAL );
-    mnuShowContactsAs->Append( mnuViewNick );
-    
-    wxMenuItem* mnuViewDisplayAs;
-    mnuViewDisplayAs = new wxMenuItem( mnuShowContactsAs, wxID_ANY, wxString( wxT("Display As Name") ) , wxEmptyString, wxITEM_NORMAL );
-    mnuShowContactsAs->Append( mnuViewDisplayAs );
-    
-    mnuView->Append( -1, wxT("Show Contacts As"), mnuShowContactsAs );
-    
-    mnuViewSortBy = new wxMenu();
-    wxMenuItem* mnuViewAsc;
-    mnuViewAsc = new wxMenuItem( mnuViewSortBy, ID_VIEW_ASC, wxString( wxT("Ascending") ) , wxEmptyString, wxITEM_NORMAL );
-    mnuViewSortBy->Append( mnuViewAsc );
-    
-    wxMenuItem* mnuViewDesc;
-    mnuViewDesc = new wxMenuItem( mnuViewSortBy, ID_VIEW_DESC, wxString( wxT("Descending") ) , wxEmptyString, wxITEM_NORMAL );
-    mnuViewSortBy->Append( mnuViewDesc );
-    
-    mnuView->Append( -1, wxT("Sort By"), mnuViewSortBy );
-    
-    mnuViewShow = new wxMenu();
-    wxMenuItem* mnuViewStatusBar;
-    mnuViewStatusBar = new wxMenuItem( mnuViewShow, ID_VIEW_STATUSBAR, wxString( wxT("Status Bar") ) , wxEmptyString, wxITEM_NORMAL );
-    mnuViewShow->Append( mnuViewStatusBar );
-    
-    mnuView->Append( -1, wxT("Show"), mnuViewShow );
-    
-    mnuView->AppendSeparator();
-    
-    wxMenuItem* mnuViewActivity;
-    mnuViewActivity = new wxMenuItem( mnuView, wxID_ANY, wxString( wxT("Activity Manager") ) , wxEmptyString, wxITEM_NORMAL );
-    mnuView->Append( mnuViewActivity );
-    
-    mnuMain->Append( mnuView, wxT("View") );
-    
-    mnuEdit = new wxMenu();
-    wxMenuItem* mnuCut;
-    mnuCut = new wxMenuItem( mnuEdit, ID_MANAGE_CUT, wxString( wxT("Cut") ) + wxT('\t') + wxT("CTRL+X"), wxEmptyString, wxITEM_NORMAL );
-    mnuEdit->Append( mnuCut );
-    
-    wxMenuItem* mnuCopy;
-    mnuCopy = new wxMenuItem( mnuEdit, ID_MANAGE_COPY, wxString( wxT("Copy") ) + wxT('\t') + wxT("CTRL+C"), wxEmptyString, wxITEM_NORMAL );
-    mnuEdit->Append( mnuCopy );
-    
-    wxMenuItem* mnuPaste;
-    mnuPaste = new wxMenuItem( mnuEdit, ID_MANAGE_PASTE, wxString( wxT("Paste") ) + wxT('\t') + wxT("CTRL+V"), wxEmptyString, wxITEM_NORMAL );
-    mnuEdit->Append( mnuPaste );
-    
-    mnuMain->Append( mnuEdit, wxT("Edit") );
-    
-    mnuWindow = new wxMenu();
-    mnuMain->Append( mnuWindow, wxT("Window") );
-    
-    mnuHelp = new wxMenu();
-    wxMenuItem* showHelp;
-    showHelp = new wxMenuItem( mnuHelp, ID_HELP_SHOW, wxString( wxT("Show Help...") ) + wxT('\t') + wxT("F1"), wxEmptyString, wxITEM_NORMAL );
-    mnuHelp->Append( showHelp );
-    
-    mnuHelp->AppendSeparator();
-    
-    wxMenuItem* mnuHelpUpdates;
-    mnuHelpUpdates = new wxMenuItem( mnuHelp, ID_MANAGE_UPDATE, wxString( wxT("Check for updates...") ) , wxEmptyString, wxITEM_NORMAL );
-    mnuHelp->Append( mnuHelpUpdates );
-    
-    mnuHelpAboutSep = mnuHelp->AppendSeparator();
-    
-    wxMenuItem* mnuAbout;
-    mnuAbout = new wxMenuItem( mnuHelp, wxID_ABOUT, wxString( wxT("About") ) + wxT('\t') + wxT("SHIFT+CTRL+A"), wxEmptyString, wxITEM_NORMAL );
-    mnuHelp->Append( mnuAbout );
-    
-    mnuMain->Append( mnuHelp, wxT("Help") );
-    
-    this->SetMenuBar( mnuMain );
-    
-    szrMain = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer396;
-    bSizer396 = new wxBoxSizer( wxHORIZONTAL );
-    
-    bmpIcon = new wxStaticBitmap( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer396->Add( bmpIcon, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-    
-    AccCtrl = new wxComboCtrl(this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxCB_READONLY|wxEXPAND);
-    bSizer396->Add( AccCtrl, 0, wxALL, 5 );
-    
-    
-    szrMain->Add( bSizer396, 0, wxEXPAND|wxLEFT, 5 );
-    
-    m_splitter13 = new wxSplitterWindow( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSP_3D );
-    m_splitter13->Connect( wxEVT_IDLE, wxIdleEventHandler( frmMainADT::m_splitter13OnIdle ), NULL, this );
-    m_splitter13->SetMinimumPaneSize( 1 );
-    
-    m_panel19 = new wxPanel( m_splitter13, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
-    szrContactList = new wxFlexGridSizer( 0, 1, 0, 0 );
-    szrContactList->AddGrowableCol( 0 );
-    szrContactList->AddGrowableRow( 1 );
-    szrContactList->SetFlexibleDirection( wxBOTH );
-    szrContactList->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
-    
-    szrAccList = new wxFlexGridSizer( 0, 2, 0, 0 );
-    szrAccList->SetFlexibleDirection( wxVERTICAL );
-    szrAccList->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
-    
-    
-    szrContactList->Add( szrAccList, 0, 0, 5 );
-    
-    lstContacts = new wxListCtrl( m_panel19, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_NO_HEADER|wxLC_REPORT|wxSUNKEN_BORDER );
-    szrContactList->Add( lstContacts, 1, wxALL|wxEXPAND, 5 );
-    
-    
-    m_panel19->SetSizer( szrContactList );
-    m_panel19->Layout();
-    szrContactList->Fit( m_panel19 );
-    m_panel20 = new wxPanel( m_splitter13, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
-    wxBoxSizer* bSizer12;
-    bSizer12 = new wxBoxSizer( wxVERTICAL );
-    
-    htmContactData = new wxHtmlWindow( m_panel20, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHW_SCROLLBAR_AUTO|wxSUNKEN_BORDER );
-    bSizer12->Add( htmContactData, 1, wxALL|wxEXPAND, 5 );
-    
-    
-    m_panel20->SetSizer( bSizer12 );
-    m_panel20->Layout();
-    bSizer12->Fit( m_panel20 );
-    m_splitter13->SplitVertically( m_panel19, m_panel20, 184 );
-    szrMain->Add( m_splitter13, 1, wxEXPAND, 5 );
-    
-    
-    this->SetSizer( szrMain );
-    this->Layout();
-    stbBottom = this->CreateStatusBar( 1, wxST_SIZEGRIP, wxID_ANY );
-    
-    this->Centre( wxBOTH );
-    
-    // Connect Events
-    this->Connect( mnuNewAB->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::OpenNewABDialog ) );
-    this->Connect( mnuRefreshAB->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::RefreshAddressBook ) );
-    this->Connect( mnuImport->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::OpenImportDialog ) );
-    this->Connect( mnuExport->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::OpenExportDialog ) );
-    this->Connect( mnuPreferences->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::OpenPreferences ) );
-    this->Connect( mnuExit->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::QuitApp ) );
-    this->Connect( mnuNewContact->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::ShowContactEditorNew ) );
-    this->Connect( mnuEditContact->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::ShowContactEditorEdit ) );
-    this->Connect( deleteContact->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::DeleteContact ) );
-    this->Connect( mnuFindContact->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::OpenFindContactsWindow ) );
-    this->Connect( mnuViewFNLN->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::SortFNLN ) );
-    this->Connect( mnuViewLNFN->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::SortLNFN ) );
-    this->Connect( mnuViewNick->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::SortNickname ) );
-    this->Connect( mnuViewDisplayAs->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::SortDisplayAs ) );
-    this->Connect( mnuViewAsc->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::SortAscending ) );
-    this->Connect( mnuViewDesc->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::SortDescending ) );
-    this->Connect( mnuViewStatusBar->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::ToggleStatusBar ) );
-    this->Connect( mnuViewActivity->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::ShowActivityWindow ) );
-    this->Connect( mnuCut->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::CutAction ) );
-    this->Connect( mnuCopy->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::CopyAction ) );
-    this->Connect( mnuPaste->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::PasteAction ) );
-    this->Connect( showHelp->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::ShowHelp ) );
-    this->Connect( mnuHelpUpdates->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::CheckUpdates ) );
-    this->Connect( mnuAbout->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::ShowAboutWindow ) );
-    lstContacts->Connect( wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler( frmMainADT::OpenContactInfo ), NULL, this );
-    lstContacts->Connect( wxEVT_COMMAND_LIST_ITEM_DESELECTED, wxListEventHandler( frmMainADT::ShowContactInfo ), NULL, this );
-    lstContacts->Connect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( frmMainADT::ShowContactInfo ), NULL, this );
-    htmContactData->Connect( wxEVT_RIGHT_UP, wxMouseEventHandler( frmMainADT::ShowContactSubmenu ), NULL, this );
-    stbBottom->Connect( wxEVT_SIZE, wxSizeEventHandler( frmMainADT::UpdateSBIconPlacement ), NULL, this );
-}
-
-frmMainADT::~frmMainADT()
-{
-    // Disconnect Events
-    this->Disconnect( ID_MANAGE_NEWAB, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::OpenNewABDialog ) );
-    this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::RefreshAddressBook ) );
-    this->Disconnect( ID_MANAGE_IMPORT, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::OpenImportDialog ) );
-    this->Disconnect( ID_MANAGE_EXPORT, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::OpenExportDialog ) );
-    this->Disconnect( wxID_PREFERENCES, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::OpenPreferences ) );
-    this->Disconnect( wxID_EXIT, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::QuitApp ) );
-    this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::ShowContactEditorNew ) );
-    this->Disconnect( ID_CONTACT_EDIT, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::ShowContactEditorEdit ) );
-    this->Disconnect( ID_CONTACT_DELETE, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::DeleteContact ) );
-    this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::OpenFindContactsWindow ) );
-    this->Disconnect( ID_VIEW_FNLN, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::SortFNLN ) );
-    this->Disconnect( ID_VIEW_LNFN, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::SortLNFN ) );
-    this->Disconnect( ID_VIEW_NICK, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::SortNickname ) );
-    this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::SortDisplayAs ) );
-    this->Disconnect( ID_VIEW_ASC, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::SortAscending ) );
-    this->Disconnect( ID_VIEW_DESC, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::SortDescending ) );
-    this->Disconnect( ID_VIEW_STATUSBAR, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::ToggleStatusBar ) );
-    this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::ShowActivityWindow ) );
-    this->Disconnect( ID_MANAGE_CUT, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::CutAction ) );
-    this->Disconnect( ID_MANAGE_COPY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::CopyAction ) );
-    this->Disconnect( ID_MANAGE_PASTE, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::PasteAction ) );
-    this->Disconnect( ID_HELP_SHOW, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::ShowHelp ) );
-    this->Disconnect( ID_MANAGE_UPDATE, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::CheckUpdates ) );
-    this->Disconnect( wxID_ABOUT, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::ShowAboutWindow ) );
-    lstContacts->Disconnect( wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler( frmMainADT::OpenContactInfo ), NULL, this );
-    lstContacts->Disconnect( wxEVT_COMMAND_LIST_ITEM_DESELECTED, wxListEventHandler( frmMainADT::ShowContactInfo ), NULL, this );
-    lstContacts->Disconnect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( frmMainADT::ShowContactInfo ), NULL, this );
-    htmContactData->Disconnect( wxEVT_RIGHT_UP, wxMouseEventHandler( frmMainADT::ShowContactSubmenu ), NULL, this );
-    stbBottom->Disconnect( wxEVT_SIZE, wxSizeEventHandler( frmMainADT::UpdateSBIconPlacement ), NULL, this );
-    
-}
-
-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 );
-    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 );
-    
-}
-
-frmSearchADT::frmSearchADT( 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( 300,450 ), wxDefaultSize );
-    
-    stbBottom = this->CreateStatusBar( 1, wxST_SIZEGRIP, wxID_ANY );
-    wxBoxSizer* bSizer368;
-    bSizer368 = new wxBoxSizer( wxVERTICAL );
-    
-    m_splitter4 = new wxSplitterWindow( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSP_3D );
-    m_splitter4->Connect( wxEVT_IDLE, wxIdleEventHandler( frmSearchADT::m_splitter4OnIdle ), NULL, this );
-    m_splitter4->SetMinimumPaneSize( 1 );
-    
-    m_panel60 = new wxPanel( m_splitter4, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
-    wxBoxSizer* bSizer382;
-    bSizer382 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer369;
-    bSizer369 = new wxBoxSizer( wxHORIZONTAL );
-    
-    nbkSearch = new wxNotebook( m_panel60, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
-    tabSearch = new wxScrolledWindow( nbkSearch, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxFULL_REPAINT_ON_RESIZE|wxHSCROLL|wxVSCROLL );
-    tabSearch->SetScrollRate( 5, 5 );
-    szrSearch = new wxFlexGridSizer( 0, 1, 0, 0 );
-    szrSearch->AddGrowableCol( 0 );
-    szrSearch->SetFlexibleDirection( wxVERTICAL );
-    szrSearch->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
-    
-    
-    tabSearch->SetSizer( szrSearch );
-    tabSearch->Layout();
-    szrSearch->Fit( tabSearch );
-    nbkSearch->AddPage( tabSearch, wxT("Search"), true );
-    tabAdvanced = new wxScrolledWindow( nbkSearch, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHSCROLL|wxVSCROLL );
-    tabAdvanced->SetScrollRate( 5, 5 );
-    wxBoxSizer* bSizer384;
-    bSizer384 = new wxBoxSizer( wxVERTICAL );
-    
-    btnSelectAccounts = new wxButton( tabAdvanced, wxID_ANY, wxT("Select Accounts..."), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer384->Add( btnSelectAccounts, 0, wxALL, 5 );
-    
-    
-    tabAdvanced->SetSizer( bSizer384 );
-    tabAdvanced->Layout();
-    bSizer384->Fit( tabAdvanced );
-    nbkSearch->AddPage( tabAdvanced, wxT("Advanced"), false );
-    
-    bSizer369->Add( nbkSearch, 1, wxEXPAND | wxALL, 5 );
-    
-    wxBoxSizer* bSizer371;
-    bSizer371 = new wxBoxSizer( wxVERTICAL );
-    
-    btnSearch = new wxButton( m_panel60, wxID_ANY, wxT("Search"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer371->Add( btnSearch, 0, wxALL, 5 );
-    
-    btnReset = new wxButton( m_panel60, wxID_ANY, wxT("Reset"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer371->Add( btnReset, 0, wxALL, 5 );
-    
-    
-    bSizer369->Add( bSizer371, 0, wxEXPAND, 5 );
-    
-    
-    bSizer382->Add( bSizer369, 1, wxEXPAND, 5 );
-    
-    
-    m_panel60->SetSizer( bSizer382 );
-    m_panel60->Layout();
-    bSizer382->Fit( m_panel60 );
-    m_panel61 = new wxPanel( m_splitter4, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
-    wxBoxSizer* bSizer386;
-    bSizer386 = new wxBoxSizer( wxVERTICAL );
-    
-    lstResults = new wxListCtrl( m_panel61, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    bSizer386->Add( lstResults, 1, wxALL|wxEXPAND, 5 );
-    
-    
-    m_panel61->SetSizer( bSizer386 );
-    m_panel61->Layout();
-    bSizer386->Fit( m_panel61 );
-    m_splitter4->SplitHorizontally( m_panel60, m_panel61, 178 );
-    bSizer368->Add( m_splitter4, 1, wxEXPAND, 5 );
-    
-    
-    this->SetSizer( bSizer368 );
-    this->Layout();
-    m_menubar5 = new wxMenuBar( 0 );
-    mnuContact = new wxMenu();
-    wxMenuItem* mnuContactOpen;
-    mnuContactOpen = new wxMenuItem( mnuContact, wxID_ANY, wxString( wxT("Open Contact...") ) + wxT('\t') + wxT("CTRL+O"), wxEmptyString, wxITEM_NORMAL );
-    mnuContact->Append( mnuContactOpen );
-    
-    wxMenuItem* mnuContactEdit;
-    mnuContactEdit = new wxMenuItem( mnuContact, wxID_ANY, wxString( wxT("Edit Contact...") ) + wxT('\t') + wxT("CTRL+E"), wxEmptyString, wxITEM_NORMAL );
-    mnuContact->Append( mnuContactEdit );
-    
-    wxMenuItem* mnuContactReveal;
-    mnuContactReveal = new wxMenuItem( mnuContact, wxID_ANY, wxString( wxT("Reveal Contact") ) + wxT('\t') + wxT("CTRL+R"), wxEmptyString, wxITEM_NORMAL );
-    mnuContact->Append( mnuContactReveal );
-    
-    mnuContact->AppendSeparator();
-    
-    wxMenuItem* mnuContactClose;
-    mnuContactClose = new wxMenuItem( mnuContact, wxID_ANY, wxString( wxT("Close Window") ) + wxT('\t') + wxT("ALT+F4"), wxEmptyString, wxITEM_NORMAL );
-    mnuContact->Append( mnuContactClose );
-    
-    m_menubar5->Append( mnuContact, wxT("Contact") );
-    
-    this->SetMenuBar( m_menubar5 );
-    
-    
-    this->Centre( wxBOTH );
-    
-    // Connect Events
-    this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( frmSearchADT::CloseWindow ) );
-    btnSelectAccounts->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmSearchADT::SelectAccounts ), NULL, this );
-    btnSearch->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmSearchADT::SearchContacts ), NULL, this );
-    btnReset->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmSearchADT::ResetContacts ), NULL, this );
-    this->Connect( mnuContactOpen->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmSearchADT::OpenContact ) );
-    this->Connect( mnuContactEdit->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmSearchADT::EditContact ) );
-    this->Connect( mnuContactReveal->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmSearchADT::RevealContact ) );
-    this->Connect( mnuContactClose->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmSearchADT::CloseWindow ) );
-}
-
-frmSearchADT::~frmSearchADT()
-{
-    // Disconnect Events
-    this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( frmSearchADT::CloseWindow ) );
-    btnSelectAccounts->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmSearchADT::SelectAccounts ), NULL, this );
-    btnSearch->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmSearchADT::SearchContacts ), NULL, this );
-    btnReset->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmSearchADT::ResetContacts ), NULL, this );
-    this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmSearchADT::OpenContact ) );
-    this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmSearchADT::EditContact ) );
-    this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmSearchADT::RevealContact ) );
-    this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmSearchADT::CloseWindow ) );
-    
-}
-
-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 address books"), wxDefaultPosition, wxDefaultSize, 0 );
-    szrChecks->Add( chkHideLocal, 0, wxALL, 5 );
-    
-    
-    tabGeneral->SetSizer( szrChecks );
-    tabGeneral->Layout();
-    szrChecks->Fit( tabGeneral );
-    NbtPreferences->AddPage( tabGeneral, wxT("General"), false );
-    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"), true );
-    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, 70, 90, 92, 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 );
-    
-}
-
-frmContactADT::frmContactADT( 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( 320,240 ), wxDefaultSize );
-    
-    wxBoxSizer* bSizer13;
-    bSizer13 = new wxBoxSizer( wxVERTICAL );
-    
-    htmContactData = new wxHtmlWindow( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHW_SCROLLBAR_AUTO|wxSUNKEN_BORDER );
-    bSizer13->Add( htmContactData, 1, wxALL|wxEXPAND, 5 );
-    
-    
-    this->SetSizer( bSizer13 );
-    this->Layout();
-    m_menubar2 = new wxMenuBar( 0 );
-    contact = new wxMenu();
-    wxMenuItem* mnuContactClose;
-    mnuContactClose = new wxMenuItem( contact, ID_CONTACT_CLOSE, wxString( wxT("Close") ) + wxT('\t') + wxT("CTRL+F4"), wxEmptyString, wxITEM_NORMAL );
-    contact->Append( mnuContactClose );
-    
-    m_menubar2->Append( contact, wxT("Contact") );
-    
-    this->SetMenuBar( m_menubar2 );
-    
-    
-    this->Centre( wxBOTH );
-    
-    // Connect Events
-    this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( frmContactADT::CloseWindow ) );
-    this->Connect( mnuContactClose->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmContactADT::CloseWindow ) );
-}
-
-frmContactADT::~frmContactADT()
-{
-    // Disconnect Events
-    this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( frmContactADT::CloseWindow ) );
-    this->Disconnect( ID_CONTACT_CLOSE, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmContactADT::CloseWindow ) );
-    
-}
-
-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 );
-    txtServerAddress->SetMaxLength( 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 );
-    txtServerPort->SetMaxLength( 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 );
-    txtUsername->SetMaxLength( 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 );
-    txtPassword->SetMaxLength( 0 );
-    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, 74, 90, 92, 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 );
-    txtAccountName->SetMaxLength( 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 );
-    
-}
-
-frmContactEditorADT::frmContactEditorADT( 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( -1,-1 ), wxDefaultSize );
-    this->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE ) );
-    
-    wxBoxSizer* bSizer17;
-    bSizer17 = new wxBoxSizer( wxVERTICAL );
-    
-    nbkContact = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
-    tabGeneral = new wxScrolledWindow( nbkContact, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHSCROLL|wxVSCROLL );
-    tabGeneral->SetScrollRate( 5, 5 );
-    wxBoxSizer* bSizer18;
-    bSizer18 = new wxBoxSizer( wxVERTICAL );
-    
-    wxGridSizer* gSizer7;
-    gSizer7 = new wxGridSizer( 0, 6, 0, 0 );
-    
-    lblTitle = new wxStaticText( tabGeneral, wxID_ANY, wxT("Title:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblTitle->Wrap( -1 );
-    gSizer7->Add( lblTitle, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-    
-    txtTitle = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
-    txtTitle->SetMaxLength( 0 );
-    gSizer7->Add( txtTitle, 0, wxALL|wxEXPAND, 5 );
-    
-    
-    gSizer7->Add( 0, 0, 1, wxEXPAND, 5 );
-    
-    
-    gSizer7->Add( 0, 0, 1, wxEXPAND, 5 );
-    
-    
-    gSizer7->Add( 0, 0, 1, wxEXPAND, 5 );
-    
-    
-    gSizer7->Add( 0, 0, 1, wxEXPAND, 5 );
-    
-    lblForename = new wxStaticText( tabGeneral, wxID_ANY, wxT("Forename:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblForename->Wrap( -1 );
-    gSizer7->Add( lblForename, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-    
-    txtForename = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
-    txtForename->SetMaxLength( 0 );
-    gSizer7->Add( txtForename, 0, wxALL|wxEXPAND, 5 );
-    
-    lblSurname = new wxStaticText( tabGeneral, wxID_ANY, wxT("Surname:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblSurname->Wrap( -1 );
-    gSizer7->Add( lblSurname, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-    
-    txtSurname = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
-    txtSurname->SetMaxLength( 0 );
-    gSizer7->Add( txtSurname, 0, wxALL|wxEXPAND, 5 );
-    
-    lblOtherNames = new wxStaticText( tabGeneral, wxID_ANY, wxT("Other Names:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblOtherNames->Wrap( -1 );
-    gSizer7->Add( lblOtherNames, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-    
-    txtOtherNames = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
-    txtOtherNames->SetMaxLength( 0 );
-    gSizer7->Add( txtOtherNames, 0, wxALL|wxEXPAND, 5 );
-    
-    lblSuffix = new wxStaticText( tabGeneral, wxID_ANY, wxT("Suffix:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblSuffix->Wrap( -1 );
-    gSizer7->Add( lblSuffix, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-    
-    txtSuffix = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
-    txtSuffix->SetMaxLength( 0 );
-    gSizer7->Add( txtSuffix, 0, wxALL|wxEXPAND, 5 );
-    
-    
-    gSizer7->Add( 0, 0, 1, wxEXPAND, 5 );
-    
-    
-    gSizer7->Add( 0, 0, 1, wxEXPAND, 5 );
-    
-    
-    bSizer18->Add( gSizer7, 0, wxEXPAND, 5 );
-    
-    wxFlexGridSizer* fgSizer5;
-    fgSizer5 = new wxFlexGridSizer( 0, 2, 0, 0 );
-    fgSizer5->AddGrowableCol( 1 );
-    fgSizer5->SetFlexibleDirection( wxBOTH );
-    fgSizer5->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
-    
-    lblDisplayAs = new wxStaticText( tabGeneral, wxID_ANY, wxT("Display As:"), wxPoint( -1,-1 ), wxDefaultSize, 0 );
-    lblDisplayAs->Wrap( -1 );
-    fgSizer5->Add( lblDisplayAs, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-    
-    cmbDisplayAs = new wxComboBox( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
-    fgSizer5->Add( cmbDisplayAs, 0, wxALL|wxEXPAND, 5 );
-    
-    lblBirthday = new wxStaticText( tabGeneral, wxID_ANY, wxT("Birthday:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblBirthday->Wrap( -1 );
-    fgSizer5->Add( lblBirthday, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-    
-    wxBoxSizer* bSizer318;
-    bSizer318 = new wxBoxSizer( wxHORIZONTAL );
-    
-    dapBirthday = new wxDatePickerCtrl( tabGeneral, wxID_ANY, wxDefaultDateTime, wxDefaultPosition, wxDefaultSize, wxDP_ALLOWNONE|wxDP_DEFAULT|wxDP_DROPDOWN|wxDP_SHOWCENTURY );
-    dapBirthday->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 90, false, wxEmptyString ) );
-    dapBirthday->SetToolTip( wxT("If you don't wish to enter a year, please use '0000' as the year.") );
-    dapBirthday->SetMinSize( wxSize( -1,25 ) );
-    
-    bSizer318->Add( dapBirthday, 0, wxALL|wxEXPAND, 5 );
-    
-    txtBirthday = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
-    txtBirthday->SetMaxLength( 0 );
-    bSizer318->Add( txtBirthday, 1, wxALL, 5 );
-    
-    
-    fgSizer5->Add( bSizer318, 1, wxEXPAND, 5 );
-    
-    lblAnniversary = new wxStaticText( tabGeneral, wxID_ANY, wxT("Anniversary:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblAnniversary->Wrap( -1 );
-    fgSizer5->Add( lblAnniversary, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-    
-    wxBoxSizer* bSizer319;
-    bSizer319 = new wxBoxSizer( wxHORIZONTAL );
-    
-    dapAnniversary = new wxDatePickerCtrl( tabGeneral, wxID_ANY, wxDefaultDateTime, wxDefaultPosition, wxDefaultSize, wxDP_ALLOWNONE|wxDP_DEFAULT|wxDP_DROPDOWN|wxDP_SHOWCENTURY );
-    dapAnniversary->SetToolTip( wxT("If you don't wish to enter a year, please use '0000' as the year.") );
-    dapAnniversary->SetMinSize( wxSize( -1,25 ) );
-    
-    bSizer319->Add( dapAnniversary, 0, wxALL|wxEXPAND, 5 );
-    
-    txtAnniversary = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
-    txtAnniversary->SetMaxLength( 0 );
-    bSizer319->Add( txtAnniversary, 1, wxALL, 5 );
-    
-    
-    fgSizer5->Add( bSizer319, 1, wxEXPAND, 5 );
-    
-    lblGender = new wxStaticText( tabGeneral, wxID_ANY, wxT("Gender:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblGender->Wrap( -1 );
-    fgSizer5->Add( lblGender, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-    
-    wxBoxSizer* bSizer20;
-    bSizer20 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxString cmbGenderChoices[] = { wxEmptyString, wxT("Male"), wxT("Female"), wxT("Other"), wxT("None/Not Applicable"), wxT("Unknown") };
-    int cmbGenderNChoices = sizeof( cmbGenderChoices ) / sizeof( wxString );
-    cmbGender = new wxChoice( tabGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, cmbGenderNChoices, cmbGenderChoices, 0 );
-    cmbGender->SetSelection( 0 );
-    bSizer20->Add( cmbGender, 0, wxALL, 5 );
-    
-    txtGenderDescription = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
-    txtGenderDescription->SetMaxLength( 0 );
-    bSizer20->Add( txtGenderDescription, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-    
-    
-    fgSizer5->Add( bSizer20, 1, wxEXPAND, 5 );
-    
-    lblType = new wxStaticText( tabGeneral, wxID_ANY, wxT("Type:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblType->Wrap( -1 );
-    fgSizer5->Add( lblType, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-    
-    wxString cmbTypeChoices[] = { wxT("(Unspecified)"), wxT("Individual"), wxT("Group"), wxT("Organisation"), wxT("Location") };
-    int cmbTypeNChoices = sizeof( cmbTypeChoices ) / sizeof( wxString );
-    cmbType = new wxChoice( tabGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, cmbTypeNChoices, cmbTypeChoices, 0 );
-    cmbType->SetSelection( 0 );
-    fgSizer5->Add( cmbType, 0, wxALL, 5 );
-    
-    lblNicknames = new wxStaticText( tabGeneral, wxID_ANY, wxT("Nicknames:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblNicknames->Wrap( -1 );
-    fgSizer5->Add( lblNicknames, 0, wxALL, 5 );
-    
-    wxBoxSizer* szrNicknames;
-    szrNicknames = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboNicknames = new wxListCtrl( tabGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    szrNicknames->Add( lboNicknames, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* szrAddressesOuter3;
-    szrAddressesOuter3 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer464;
-    bSizer464 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer474;
-    bSizer474 = new wxBoxSizer( wxVERTICAL );
-    
-    btnAddGeneralNickname = new wxButton( tabGeneral, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer474->Add( btnAddGeneralNickname, 0, wxALL, 5 );
-    
-    btnModifyGeneralNickname = new wxButton( tabGeneral, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer474->Add( btnModifyGeneralNickname, 0, wxALL, 5 );
-    
-    btnDeleteGeneralNickname = new wxButton( tabGeneral, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer474->Add( btnDeleteGeneralNickname, 0, wxALL, 5 );
-    
-    
-    bSizer464->Add( bSizer474, 1, wxEXPAND, 5 );
-    
-    
-    szrAddressesOuter3->Add( bSizer464, 1, wxEXPAND, 5 );
-    
-    
-    szrNicknames->Add( szrAddressesOuter3, 0, wxEXPAND, 5 );
-    
-    
-    fgSizer5->Add( szrNicknames, 1, wxEXPAND, 5 );
-    
-    lblAddress = new wxStaticText( tabGeneral, wxID_ANY, wxT("Addresses:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblAddress->Wrap( -1 );
-    fgSizer5->Add( lblAddress, 0, wxALL, 5 );
-    
-    wxBoxSizer* szrAddresses;
-    szrAddresses = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboAddresses = new wxListCtrl( tabGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    szrAddresses->Add( lboAddresses, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* szrAddressesOuter;
-    szrAddressesOuter = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer46;
-    bSizer46 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer47;
-    bSizer47 = new wxBoxSizer( wxVERTICAL );
-    
-    btnAddGeneralAddress = new wxButton( tabGeneral, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer47->Add( btnAddGeneralAddress, 0, wxALL, 5 );
-    
-    btnModifyGeneralAddress = new wxButton( tabGeneral, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer47->Add( btnModifyGeneralAddress, 0, wxALL, 5 );
-    
-    btnDeleteGeneralAddress = new wxButton( tabGeneral, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer47->Add( btnDeleteGeneralAddress, 0, wxALL, 5 );
-    
-    
-    bSizer46->Add( bSizer47, 1, wxEXPAND, 5 );
-    
-    
-    szrAddressesOuter->Add( bSizer46, 1, wxEXPAND, 5 );
-    
-    
-    szrAddresses->Add( szrAddressesOuter, 0, wxEXPAND, 5 );
-    
-    
-    fgSizer5->Add( szrAddresses, 1, wxEXPAND, 5 );
-    
-    lblEmail = new wxStaticText( tabGeneral, wxID_ANY, wxT("E-mail:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblEmail->Wrap( -1 );
-    fgSizer5->Add( lblEmail, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer301;
-    bSizer301 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboEmails = new wxListCtrl( tabGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    bSizer301->Add( lboEmails, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer351;
-    bSizer351 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer461;
-    bSizer461 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer471;
-    bSizer471 = new wxBoxSizer( wxVERTICAL );
-    
-    btnAddEmailAddress = new wxButton( tabGeneral, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer471->Add( btnAddEmailAddress, 0, wxALL, 5 );
-    
-    btnModifyEmailAddress = new wxButton( tabGeneral, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer471->Add( btnModifyEmailAddress, 0, wxALL, 5 );
-    
-    btnDeleteEmailAddress = new wxButton( tabGeneral, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer471->Add( btnDeleteEmailAddress, 0, wxALL, 5 );
-    
-    
-    bSizer461->Add( bSizer471, 1, wxEXPAND, 5 );
-    
-    
-    bSizer351->Add( bSizer461, 1, wxEXPAND, 5 );
-    
-    
-    bSizer301->Add( bSizer351, 0, wxEXPAND, 5 );
-    
-    
-    fgSizer5->Add( bSizer301, 1, wxEXPAND, 5 );
-    
-    lblIM = new wxStaticText( tabGeneral, wxID_ANY, wxT("Instant Messaging:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblIM->Wrap( 0 );
-    fgSizer5->Add( lblIM, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer3011;
-    bSizer3011 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboIM = new wxListCtrl( tabGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    bSizer3011->Add( lboIM, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer3511;
-    bSizer3511 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer4611;
-    bSizer4611 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer4711;
-    bSizer4711 = new wxBoxSizer( wxVERTICAL );
-    
-    btnAddIMAddress = new wxButton( tabGeneral, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4711->Add( btnAddIMAddress, 0, wxALL, 5 );
-    
-    btnModifyIMAddress = new wxButton( tabGeneral, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4711->Add( btnModifyIMAddress, 0, wxALL, 5 );
-    
-    btnDeleteIMAddress = new wxButton( tabGeneral, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4711->Add( btnDeleteIMAddress, 0, wxALL, 5 );
-    
-    
-    bSizer4611->Add( bSizer4711, 1, wxEXPAND, 5 );
-    
-    
-    bSizer3511->Add( bSizer4611, 1, wxEXPAND, 5 );
-    
-    
-    bSizer3011->Add( bSizer3511, 0, wxEXPAND, 5 );
-    
-    
-    fgSizer5->Add( bSizer3011, 1, wxEXPAND, 5 );
-    
-    lblTelephone = new wxStaticText( tabGeneral, wxID_ANY, wxT("Telephone:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblTelephone->Wrap( 0 );
-    fgSizer5->Add( lblTelephone, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer30111;
-    bSizer30111 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboTelephone = new wxListCtrl( tabGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    bSizer30111->Add( lboTelephone, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer35111;
-    bSizer35111 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer46111;
-    bSizer46111 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer47111;
-    bSizer47111 = new wxBoxSizer( wxVERTICAL );
-    
-    btnAddTelephone = new wxButton( tabGeneral, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer47111->Add( btnAddTelephone, 0, wxALL, 5 );
-    
-    btnModifyTelephone = new wxButton( tabGeneral, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer47111->Add( btnModifyTelephone, 0, wxALL, 5 );
-    
-    btnDeleteTelephone = new wxButton( tabGeneral, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer47111->Add( btnDeleteTelephone, 0, wxALL, 5 );
-    
-    
-    bSizer46111->Add( bSizer47111, 1, wxEXPAND, 5 );
-    
-    
-    bSizer35111->Add( bSizer46111, 1, wxEXPAND, 5 );
-    
-    
-    bSizer30111->Add( bSizer35111, 0, wxEXPAND, 5 );
-    
-    
-    fgSizer5->Add( bSizer30111, 1, wxEXPAND, 5 );
-    
-    lblLanguages = new wxStaticText( tabGeneral, wxID_ANY, wxT("Languages:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblLanguages->Wrap( 0 );
-    fgSizer5->Add( lblLanguages, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer301111;
-    bSizer301111 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboLanguages = new wxListCtrl( tabGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    bSizer301111->Add( lboLanguages, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer351111;
-    bSizer351111 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer461111;
-    bSizer461111 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer471111;
-    bSizer471111 = new wxBoxSizer( wxVERTICAL );
-    
-    btnAddLanguage = new wxButton( tabGeneral, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer471111->Add( btnAddLanguage, 0, wxALL, 5 );
-    
-    btnModifyLanguage = new wxButton( tabGeneral, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer471111->Add( btnModifyLanguage, 0, wxALL, 5 );
-    
-    btnDeleteLanguage = new wxButton( tabGeneral, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer471111->Add( btnDeleteLanguage, 0, wxALL, 5 );
-    
-    
-    bSizer461111->Add( bSizer471111, 1, wxEXPAND, 5 );
-    
-    
-    bSizer351111->Add( bSizer461111, 1, wxEXPAND, 5 );
-    
-    
-    bSizer301111->Add( bSizer351111, 0, wxEXPAND, 5 );
-    
-    
-    fgSizer5->Add( bSizer301111, 1, wxEXPAND, 5 );
-    
-    lblTimezone = new wxStaticText( tabGeneral, wxID_ANY, wxT("Timezones:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblTimezone->Wrap( 0 );
-    fgSizer5->Add( lblTimezone, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer3011111;
-    bSizer3011111 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboTimezones = new wxListCtrl( tabGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    bSizer3011111->Add( lboTimezones, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer3511111;
-    bSizer3511111 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer4611111;
-    bSizer4611111 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer4711111;
-    bSizer4711111 = new wxBoxSizer( wxVERTICAL );
-    
-    btnAddTimezone = new wxButton( tabGeneral, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4711111->Add( btnAddTimezone, 0, wxALL, 5 );
-    
-    btnModifyTimezone = new wxButton( tabGeneral, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4711111->Add( btnModifyTimezone, 0, wxALL, 5 );
-    
-    btnDeleteTimezone = new wxButton( tabGeneral, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4711111->Add( btnDeleteTimezone, 0, wxALL, 5 );
-    
-    
-    bSizer4611111->Add( bSizer4711111, 1, wxEXPAND, 5 );
-    
-    
-    bSizer3511111->Add( bSizer4611111, 1, wxEXPAND, 5 );
-    
-    
-    bSizer3011111->Add( bSizer3511111, 0, wxEXPAND, 5 );
-    
-    
-    fgSizer5->Add( bSizer3011111, 1, wxEXPAND, 5 );
-    
-    lblGeopositioning = new wxStaticText( tabGeneral, wxID_ANY, wxT("Geopositioning:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblGeopositioning->Wrap( -1 );
-    fgSizer5->Add( lblGeopositioning, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer30111114;
-    bSizer30111114 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboGeoposition = new wxListCtrl( tabGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    bSizer30111114->Add( lboGeoposition, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer35111114;
-    bSizer35111114 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer46111114;
-    bSizer46111114 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer47111114;
-    bSizer47111114 = new wxBoxSizer( wxVERTICAL );
-    
-    btnAddGeneralGeoposition = new wxButton( tabGeneral, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer47111114->Add( btnAddGeneralGeoposition, 0, wxALL, 5 );
-    
-    btnModifyGeneralGeoposition = new wxButton( tabGeneral, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer47111114->Add( btnModifyGeneralGeoposition, 0, wxALL, 5 );
-    
-    btnDeleteGeneralGeoposition = new wxButton( tabGeneral, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer47111114->Add( btnDeleteGeneralGeoposition, 0, wxALL, 5 );
-    
-    
-    bSizer46111114->Add( bSizer47111114, 1, wxEXPAND, 5 );
-    
-    
-    bSizer35111114->Add( bSizer46111114, 1, wxEXPAND, 5 );
-    
-    
-    bSizer30111114->Add( bSizer35111114, 0, wxEXPAND, 5 );
-    
-    
-    fgSizer5->Add( bSizer30111114, 1, wxEXPAND, 5 );
-    
-    lblRelated = new wxStaticText( tabGeneral, wxID_ANY, wxT("Related people:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblRelated->Wrap( 1 );
-    fgSizer5->Add( lblRelated, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer30111111;
-    bSizer30111111 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboRelated = new wxListCtrl( tabGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    bSizer30111111->Add( lboRelated, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer35111111;
-    bSizer35111111 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer46111111;
-    bSizer46111111 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer47111111;
-    bSizer47111111 = new wxBoxSizer( wxVERTICAL );
-    
-    btnAddRelated = new wxButton( tabGeneral, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer47111111->Add( btnAddRelated, 0, wxALL, 5 );
-    
-    btnModifyRelated = new wxButton( tabGeneral, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer47111111->Add( btnModifyRelated, 0, wxALL, 5 );
-    
-    btnDeleteRelated = new wxButton( tabGeneral, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer47111111->Add( btnDeleteRelated, 0, wxALL, 5 );
-    
-    
-    bSizer46111111->Add( bSizer47111111, 1, wxEXPAND, 5 );
-    
-    
-    bSizer35111111->Add( bSizer46111111, 1, wxEXPAND, 5 );
-    
-    
-    bSizer30111111->Add( bSizer35111111, 0, wxEXPAND, 5 );
-    
-    
-    fgSizer5->Add( bSizer30111111, 1, wxEXPAND, 5 );
-    
-    lblWebsites = new wxStaticText( tabGeneral, wxID_ANY, wxT("Websites:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblWebsites->Wrap( 1 );
-    fgSizer5->Add( lblWebsites, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer301111111;
-    bSizer301111111 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboWebsites = new wxListCtrl( tabGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    bSizer301111111->Add( lboWebsites, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer351111111;
-    bSizer351111111 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer461111111;
-    bSizer461111111 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer471111111;
-    bSizer471111111 = new wxBoxSizer( wxVERTICAL );
-    
-    btnAddWebsite = new wxButton( tabGeneral, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer471111111->Add( btnAddWebsite, 0, wxALL, 5 );
-    
-    btnModifyWebsite = new wxButton( tabGeneral, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer471111111->Add( btnModifyWebsite, 0, wxALL, 5 );
-    
-    btnDeleteWebsite = new wxButton( tabGeneral, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer471111111->Add( btnDeleteWebsite, 0, wxALL, 5 );
-    
-    
-    bSizer461111111->Add( bSizer471111111, 1, wxEXPAND, 5 );
-    
-    
-    bSizer351111111->Add( bSizer461111111, 1, wxEXPAND, 5 );
-    
-    
-    bSizer301111111->Add( bSizer351111111, 0, wxEXPAND, 5 );
-    
-    
-    fgSizer5->Add( bSizer301111111, 1, wxEXPAND, 5 );
-    
-    lblTitles = new wxStaticText( tabGeneral, wxID_ANY, wxT("Titles:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblTitles->Wrap( 1 );
-    fgSizer5->Add( lblTitles, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer3011111111;
-    bSizer3011111111 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboTitles = new wxListCtrl( tabGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    bSizer3011111111->Add( lboTitles, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer3511111111;
-    bSizer3511111111 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer4611111111;
-    bSizer4611111111 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer4711111111;
-    bSizer4711111111 = new wxBoxSizer( wxVERTICAL );
-    
-    btnAddTitle = new wxButton( tabGeneral, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4711111111->Add( btnAddTitle, 0, wxALL, 5 );
-    
-    btnModifyTitle = new wxButton( tabGeneral, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4711111111->Add( btnModifyTitle, 0, wxALL, 5 );
-    
-    btnDeleteTitle = new wxButton( tabGeneral, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4711111111->Add( btnDeleteTitle, 0, wxALL, 5 );
-    
-    
-    bSizer4611111111->Add( bSizer4711111111, 1, wxEXPAND, 5 );
-    
-    
-    bSizer3511111111->Add( bSizer4611111111, 1, wxEXPAND, 5 );
-    
-    
-    bSizer3011111111->Add( bSizer3511111111, 0, wxEXPAND, 5 );
-    
-    
-    fgSizer5->Add( bSizer3011111111, 1, wxEXPAND, 5 );
-    
-    lblRoles = new wxStaticText( tabGeneral, wxID_ANY, wxT("Roles:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblRoles->Wrap( 1 );
-    fgSizer5->Add( lblRoles, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer30111111111;
-    bSizer30111111111 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboRoles = new wxListCtrl( tabGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    bSizer30111111111->Add( lboRoles, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer35111111111;
-    bSizer35111111111 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer46111111111;
-    bSizer46111111111 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer47111111111;
-    bSizer47111111111 = new wxBoxSizer( wxVERTICAL );
-    
-    btnAddRole = new wxButton( tabGeneral, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer47111111111->Add( btnAddRole, 0, wxALL, 5 );
-    
-    btnModifyRole = new wxButton( tabGeneral, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer47111111111->Add( btnModifyRole, 0, wxALL, 5 );
-    
-    btnDeleteRole = new wxButton( tabGeneral, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer47111111111->Add( btnDeleteRole, 0, wxALL, 5 );
-    
-    
-    bSizer46111111111->Add( bSizer47111111111, 1, wxEXPAND, 5 );
-    
-    
-    bSizer35111111111->Add( bSizer46111111111, 1, wxEXPAND, 5 );
-    
-    
-    bSizer30111111111->Add( bSizer35111111111, 0, wxEXPAND, 5 );
-    
-    
-    fgSizer5->Add( bSizer30111111111, 1, wxEXPAND, 5 );
-    
-    lblOrganisations = new wxStaticText( tabGeneral, wxID_ANY, wxT("Organisations:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblOrganisations->Wrap( 1 );
-    fgSizer5->Add( lblOrganisations, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer301111111111;
-    bSizer301111111111 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboOrganisations = new wxListCtrl( tabGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    bSizer301111111111->Add( lboOrganisations, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer351111111111;
-    bSizer351111111111 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer461111111111;
-    bSizer461111111111 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer471111111111;
-    bSizer471111111111 = new wxBoxSizer( wxVERTICAL );
-    
-    btnAddOrganisations = new wxButton( tabGeneral, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer471111111111->Add( btnAddOrganisations, 0, wxALL, 5 );
-    
-    btnModifyOrganisations = new wxButton( tabGeneral, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer471111111111->Add( btnModifyOrganisations, 0, wxALL, 5 );
-    
-    btnDeleteOrganisations = new wxButton( tabGeneral, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer471111111111->Add( btnDeleteOrganisations, 0, wxALL, 5 );
-    
-    
-    bSizer461111111111->Add( bSizer471111111111, 1, wxEXPAND, 5 );
-    
-    
-    bSizer351111111111->Add( bSizer461111111111, 1, wxEXPAND, 5 );
-    
-    
-    bSizer301111111111->Add( bSizer351111111111, 0, wxEXPAND, 5 );
-    
-    
-    fgSizer5->Add( bSizer301111111111, 1, wxEXPAND, 5 );
-    
-    lblNotes = new wxStaticText( tabGeneral, wxID_ANY, wxT("Notes:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblNotes->Wrap( 1 );
-    fgSizer5->Add( lblNotes, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer3011111111111;
-    bSizer3011111111111 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboNotes = new wxListCtrl( tabGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    bSizer3011111111111->Add( lboNotes, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer3511111111111;
-    bSizer3511111111111 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer4611111111111;
-    bSizer4611111111111 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer4711111111111;
-    bSizer4711111111111 = new wxBoxSizer( wxVERTICAL );
-    
-    btnAddNote = new wxButton( tabGeneral, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4711111111111->Add( btnAddNote, 0, wxALL, 5 );
-    
-    btnModifyNote = new wxButton( tabGeneral, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4711111111111->Add( btnModifyNote, 0, wxALL, 5 );
-    
-    btnDeleteNote = new wxButton( tabGeneral, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4711111111111->Add( btnDeleteNote, 0, wxALL, 5 );
-    
-    
-    bSizer4611111111111->Add( bSizer4711111111111, 1, wxEXPAND, 5 );
-    
-    
-    bSizer3511111111111->Add( bSizer4611111111111, 1, wxEXPAND, 5 );
-    
-    
-    bSizer3011111111111->Add( bSizer3511111111111, 0, wxEXPAND, 5 );
-    
-    
-    fgSizer5->Add( bSizer3011111111111, 1, wxEXPAND, 5 );
-    
-    
-    bSizer18->Add( fgSizer5, 0, wxEXPAND, 5 );
-    
-    
-    tabGeneral->SetSizer( bSizer18 );
-    tabGeneral->Layout();
-    bSizer18->Fit( tabGeneral );
-    nbkContact->AddPage( tabGeneral, wxT("General"), false );
-    tabHome = new wxScrolledWindow( nbkContact, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHSCROLL|wxVSCROLL );
-    tabHome->SetScrollRate( 5, 5 );
-    wxBoxSizer* bSizer181;
-    bSizer181 = new wxBoxSizer( wxVERTICAL );
-    
-    wxGridSizer* gSizer71;
-    gSizer71 = new wxGridSizer( 2, 6, 0, 0 );
-    
-    
-    bSizer181->Add( gSizer71, 0, wxEXPAND, 5 );
-    
-    wxFlexGridSizer* fgSizer51;
-    fgSizer51 = new wxFlexGridSizer( 0, 2, 0, 0 );
-    fgSizer51->AddGrowableCol( 1 );
-    fgSizer51->SetFlexibleDirection( wxBOTH );
-    fgSizer51->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
-    
-    lblHomeNickname = new wxStaticText( tabHome, wxID_ANY, wxT("Home Nicknames:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblHomeNickname->Wrap( 0 );
-    fgSizer51->Add( lblHomeNickname, 0, wxALL, 5 );
-    
-    wxBoxSizer* szrAddresses12;
-    szrAddresses12 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboHomeNicknames = new wxListCtrl( tabHome, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    szrAddresses12->Add( lboHomeNicknames, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* szrAddressesOuter11;
-    szrAddressesOuter11 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer4622;
-    bSizer4622 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer4722;
-    bSizer4722 = new wxBoxSizer( wxVERTICAL );
-    
-    btnAddHomeNickname = new wxButton( tabHome, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4722->Add( btnAddHomeNickname, 0, wxALL, 5 );
-    
-    btnModifyHomeNickname = new wxButton( tabHome, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4722->Add( btnModifyHomeNickname, 0, wxALL, 5 );
-    
-    btnDeleteHomeNickname = new wxButton( tabHome, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4722->Add( btnDeleteHomeNickname, 0, wxALL, 5 );
-    
-    
-    bSizer4622->Add( bSizer4722, 1, wxEXPAND, 5 );
-    
-    
-    szrAddressesOuter11->Add( bSizer4622, 1, wxEXPAND, 5 );
-    
-    
-    szrAddresses12->Add( szrAddressesOuter11, 0, wxEXPAND, 5 );
-    
-    
-    fgSizer51->Add( szrAddresses12, 1, wxEXPAND, 5 );
-    
-    lblHomeAddresses = new wxStaticText( tabHome, wxID_ANY, wxT("Home Addresses:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblHomeAddresses->Wrap( 1 );
-    fgSizer51->Add( lblHomeAddresses, 0, wxALL, 5 );
-    
-    wxBoxSizer* szrAddresses1;
-    szrAddresses1 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboHomeAddresses = new wxListCtrl( tabHome, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    szrAddresses1->Add( lboHomeAddresses, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* szrAddressesOuter1;
-    szrAddressesOuter1 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer462;
-    bSizer462 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer472;
-    bSizer472 = new wxBoxSizer( wxVERTICAL );
-    
-    btnAddHomeAddress = new wxButton( tabHome, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer472->Add( btnAddHomeAddress, 0, wxALL, 5 );
-    
-    btnModifyHomeAddress = new wxButton( tabHome, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer472->Add( btnModifyHomeAddress, 0, wxALL, 5 );
-    
-    btnDeleteHomeAddress = new wxButton( tabHome, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer472->Add( btnDeleteHomeAddress, 0, wxALL, 5 );
-    
-    
-    bSizer462->Add( bSizer472, 1, wxEXPAND, 5 );
-    
-    
-    szrAddressesOuter1->Add( bSizer462, 1, wxEXPAND, 5 );
-    
-    
-    szrAddresses1->Add( szrAddressesOuter1, 0, wxEXPAND, 5 );
-    
-    
-    fgSizer51->Add( szrAddresses1, 1, wxEXPAND, 5 );
-    
-    lblHomeEmail = new wxStaticText( tabHome, wxID_ANY, wxT("Home Emails:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblHomeEmail->Wrap( 1 );
-    fgSizer51->Add( lblHomeEmail, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer3012;
-    bSizer3012 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboHomeEmails = new wxListCtrl( tabHome, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    bSizer3012->Add( lboHomeEmails, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer3512;
-    bSizer3512 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer4612;
-    bSizer4612 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer4712;
-    bSizer4712 = new wxBoxSizer( wxVERTICAL );
-    
-    btnAddHomeEmailAddress = new wxButton( tabHome, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4712->Add( btnAddHomeEmailAddress, 0, wxALL, 5 );
-    
-    btnModifyHomeEmailAddress = new wxButton( tabHome, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4712->Add( btnModifyHomeEmailAddress, 0, wxALL, 5 );
-    
-    btnDeleteHomeEmailAddress = new wxButton( tabHome, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4712->Add( btnDeleteHomeEmailAddress, 0, wxALL, 5 );
-    
-    
-    bSizer4612->Add( bSizer4712, 1, wxEXPAND, 5 );
-    
-    
-    bSizer3512->Add( bSizer4612, 1, wxEXPAND, 5 );
-    
-    
-    bSizer3012->Add( bSizer3512, 0, wxEXPAND, 5 );
-    
-    
-    fgSizer51->Add( bSizer3012, 1, wxEXPAND, 5 );
-    
-    lblHomeIM = new wxStaticText( tabHome, wxID_ANY, wxT("Home Instant Messaging:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblHomeIM->Wrap( 0 );
-    fgSizer51->Add( lblHomeIM, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer30112;
-    bSizer30112 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboHomeIM = new wxListCtrl( tabHome, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    bSizer30112->Add( lboHomeIM, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer35112;
-    bSizer35112 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer46112;
-    bSizer46112 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer47112;
-    bSizer47112 = new wxBoxSizer( wxVERTICAL );
-    
-    btnAddHomeIMAddress = new wxButton( tabHome, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer47112->Add( btnAddHomeIMAddress, 0, wxALL, 5 );
-    
-    btnModifyHomeIMAddress = new wxButton( tabHome, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer47112->Add( btnModifyHomeIMAddress, 0, wxALL, 5 );
-    
-    btnDeleteHomeIMAddress = new wxButton( tabHome, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer47112->Add( btnDeleteHomeIMAddress, 0, wxALL, 5 );
-    
-    
-    bSizer46112->Add( bSizer47112, 1, wxEXPAND, 5 );
-    
-    
-    bSizer35112->Add( bSizer46112, 1, wxEXPAND, 5 );
-    
-    
-    bSizer30112->Add( bSizer35112, 0, wxEXPAND, 5 );
-    
-    
-    fgSizer51->Add( bSizer30112, 1, wxEXPAND, 5 );
-    
-    lblHomeTelephone = new wxStaticText( tabHome, wxID_ANY, wxT("Home Telephone:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblHomeTelephone->Wrap( 0 );
-    fgSizer51->Add( lblHomeTelephone, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer301112;
-    bSizer301112 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboHomeTelephone = new wxListCtrl( tabHome, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    bSizer301112->Add( lboHomeTelephone, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer351112;
-    bSizer351112 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer461112;
-    bSizer461112 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer471112;
-    bSizer471112 = new wxBoxSizer( wxVERTICAL );
-    
-    btnAddHomeTelephone = new wxButton( tabHome, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer471112->Add( btnAddHomeTelephone, 0, wxALL, 5 );
-    
-    btnModifyHomeTelephone = new wxButton( tabHome, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer471112->Add( btnModifyHomeTelephone, 0, wxALL, 5 );
-    
-    btnDeleteHomeTelephone = new wxButton( tabHome, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer471112->Add( btnDeleteHomeTelephone, 0, wxALL, 5 );
-    
-    
-    bSizer461112->Add( bSizer471112, 1, wxEXPAND, 5 );
-    
-    
-    bSizer351112->Add( bSizer461112, 1, wxEXPAND, 5 );
-    
-    
-    bSizer301112->Add( bSizer351112, 0, wxEXPAND, 5 );
-    
-    
-    fgSizer51->Add( bSizer301112, 1, wxEXPAND, 5 );
-    
-    lblHomeLanguages = new wxStaticText( tabHome, wxID_ANY, wxT("Home Languages:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblHomeLanguages->Wrap( 0 );
-    fgSizer51->Add( lblHomeLanguages, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer3011112;
-    bSizer3011112 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboHomeLanguages = new wxListCtrl( tabHome, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    bSizer3011112->Add( lboHomeLanguages, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer3511112;
-    bSizer3511112 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer4611112;
-    bSizer4611112 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer4711112;
-    bSizer4711112 = new wxBoxSizer( wxVERTICAL );
-    
-    btnAddHomeLanguage = new wxButton( tabHome, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4711112->Add( btnAddHomeLanguage, 0, wxALL, 5 );
-    
-    btnModifyHomeLanguage = new wxButton( tabHome, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4711112->Add( btnModifyHomeLanguage, 0, wxALL, 5 );
-    
-    btnDeleteHomeLanguage = new wxButton( tabHome, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4711112->Add( btnDeleteHomeLanguage, 0, wxALL, 5 );
-    
-    
-    bSizer4611112->Add( bSizer4711112, 1, wxEXPAND, 5 );
-    
-    
-    bSizer3511112->Add( bSizer4611112, 1, wxEXPAND, 5 );
-    
-    
-    bSizer3011112->Add( bSizer3511112, 0, wxEXPAND, 5 );
-    
-    
-    fgSizer51->Add( bSizer3011112, 1, wxEXPAND, 5 );
-    
-    lblHomeTimezone = new wxStaticText( tabHome, wxID_ANY, wxT("Home Timezones:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblHomeTimezone->Wrap( 0 );
-    fgSizer51->Add( lblHomeTimezone, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer30111112;
-    bSizer30111112 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboHomeTimezones = new wxListCtrl( tabHome, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    bSizer30111112->Add( lboHomeTimezones, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer35111112;
-    bSizer35111112 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer46111112;
-    bSizer46111112 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer47111112;
-    bSizer47111112 = new wxBoxSizer( wxVERTICAL );
-    
-    btnAddHomeTimezone = new wxButton( tabHome, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer47111112->Add( btnAddHomeTimezone, 0, wxALL, 5 );
-    
-    btnModifyHomeTimezone = new wxButton( tabHome, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer47111112->Add( btnModifyHomeTimezone, 0, wxALL, 5 );
-    
-    btnDeleteHomeTimezone = new wxButton( tabHome, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer47111112->Add( btnDeleteHomeTimezone, 0, wxALL, 5 );
-    
-    
-    bSizer46111112->Add( bSizer47111112, 1, wxEXPAND, 5 );
-    
-    
-    bSizer35111112->Add( bSizer46111112, 1, wxEXPAND, 5 );
-    
-    
-    bSizer30111112->Add( bSizer35111112, 0, wxEXPAND, 5 );
-    
-    
-    fgSizer51->Add( bSizer30111112, 1, wxEXPAND, 5 );
-    
-    lblHomeGeopositioning = new wxStaticText( tabHome, wxID_ANY, wxT("Home Geopositioning:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblHomeGeopositioning->Wrap( 0 );
-    fgSizer51->Add( lblHomeGeopositioning, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer301111141;
-    bSizer301111141 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboHomeGeoposition = new wxListCtrl( tabHome, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    bSizer301111141->Add( lboHomeGeoposition, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer351111141;
-    bSizer351111141 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer461111141;
-    bSizer461111141 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer471111141;
-    bSizer471111141 = new wxBoxSizer( wxVERTICAL );
-    
-    btnAddHomeGeoposition = new wxButton( tabHome, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer471111141->Add( btnAddHomeGeoposition, 0, wxALL, 5 );
-    
-    btnModifyHomeGeoposition = new wxButton( tabHome, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer471111141->Add( btnModifyHomeGeoposition, 0, wxALL, 5 );
-    
-    btnDeleteHomePosition = new wxButton( tabHome, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer471111141->Add( btnDeleteHomePosition, 0, wxALL, 5 );
-    
-    
-    bSizer461111141->Add( bSizer471111141, 1, wxEXPAND, 5 );
-    
-    
-    bSizer351111141->Add( bSizer461111141, 1, wxEXPAND, 5 );
-    
-    
-    bSizer301111141->Add( bSizer351111141, 0, wxEXPAND, 5 );
-    
-    
-    fgSizer51->Add( bSizer301111141, 1, wxEXPAND, 5 );
-    
-    lblHomeWebsites = new wxStaticText( tabHome, wxID_ANY, wxT("Home Websites:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblHomeWebsites->Wrap( 1 );
-    fgSizer51->Add( lblHomeWebsites, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer3011111112;
-    bSizer3011111112 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboHomeWebsites = new wxListCtrl( tabHome, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    bSizer3011111112->Add( lboHomeWebsites, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer3511111112;
-    bSizer3511111112 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer4611111112;
-    bSizer4611111112 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer4711111112;
-    bSizer4711111112 = new wxBoxSizer( wxVERTICAL );
-    
-    btnAddHomeWebsite = new wxButton( tabHome, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4711111112->Add( btnAddHomeWebsite, 0, wxALL, 5 );
-    
-    btnHomeModifyWebsite = new wxButton( tabHome, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4711111112->Add( btnHomeModifyWebsite, 0, wxALL, 5 );
-    
-    btnDeleteHomeWebsite = new wxButton( tabHome, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4711111112->Add( btnDeleteHomeWebsite, 0, wxALL, 5 );
-    
-    
-    bSizer4611111112->Add( bSizer4711111112, 1, wxEXPAND, 5 );
-    
-    
-    bSizer3511111112->Add( bSizer4611111112, 1, wxEXPAND, 5 );
-    
-    
-    bSizer3011111112->Add( bSizer3511111112, 0, wxEXPAND, 5 );
-    
-    
-    fgSizer51->Add( bSizer3011111112, 1, wxEXPAND, 5 );
-    
-    lblHomeTitles = new wxStaticText( tabHome, wxID_ANY, wxT("Home Titles:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblHomeTitles->Wrap( 1 );
-    fgSizer51->Add( lblHomeTitles, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer30111111112;
-    bSizer30111111112 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboHomeTitles = new wxListCtrl( tabHome, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    bSizer30111111112->Add( lboHomeTitles, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer35111111112;
-    bSizer35111111112 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer46111111112;
-    bSizer46111111112 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer47111111112;
-    bSizer47111111112 = new wxBoxSizer( wxVERTICAL );
-    
-    btnAddHomeTitle = new wxButton( tabHome, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer47111111112->Add( btnAddHomeTitle, 0, wxALL, 5 );
-    
-    btnModifyHomeTitle = new wxButton( tabHome, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer47111111112->Add( btnModifyHomeTitle, 0, wxALL, 5 );
-    
-    btnDeleteHomeTitle = new wxButton( tabHome, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer47111111112->Add( btnDeleteHomeTitle, 0, wxALL, 5 );
-    
-    
-    bSizer46111111112->Add( bSizer47111111112, 1, wxEXPAND, 5 );
-    
-    
-    bSizer35111111112->Add( bSizer46111111112, 1, wxEXPAND, 5 );
-    
-    
-    bSizer30111111112->Add( bSizer35111111112, 0, wxEXPAND, 5 );
-    
-    
-    fgSizer51->Add( bSizer30111111112, 1, wxEXPAND, 5 );
-    
-    lblHomeRoles = new wxStaticText( tabHome, wxID_ANY, wxT("Home Roles:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblHomeRoles->Wrap( 1 );
-    fgSizer51->Add( lblHomeRoles, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer301111111112;
-    bSizer301111111112 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboHomeRoles = new wxListCtrl( tabHome, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    bSizer301111111112->Add( lboHomeRoles, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer351111111112;
-    bSizer351111111112 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer461111111112;
-    bSizer461111111112 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer471111111112;
-    bSizer471111111112 = new wxBoxSizer( wxVERTICAL );
-    
-    btnAddHomeRole = new wxButton( tabHome, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer471111111112->Add( btnAddHomeRole, 0, wxALL, 5 );
-    
-    btnModifyHomeRole = new wxButton( tabHome, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer471111111112->Add( btnModifyHomeRole, 0, wxALL, 5 );
-    
-    btnDeleteHomeRole = new wxButton( tabHome, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer471111111112->Add( btnDeleteHomeRole, 0, wxALL, 5 );
-    
-    
-    bSizer461111111112->Add( bSizer471111111112, 1, wxEXPAND, 5 );
-    
-    
-    bSizer351111111112->Add( bSizer461111111112, 1, wxEXPAND, 5 );
-    
-    
-    bSizer301111111112->Add( bSizer351111111112, 0, wxEXPAND, 5 );
-    
-    
-    fgSizer51->Add( bSizer301111111112, 1, wxEXPAND, 5 );
-    
-    lblHomeOrganisations = new wxStaticText( tabHome, wxID_ANY, wxT("Home Organisations:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblHomeOrganisations->Wrap( 1 );
-    fgSizer51->Add( lblHomeOrganisations, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer3011111111112;
-    bSizer3011111111112 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboHomeOrganisations = new wxListCtrl( tabHome, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    bSizer3011111111112->Add( lboHomeOrganisations, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer3511111111112;
-    bSizer3511111111112 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer4611111111112;
-    bSizer4611111111112 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer4711111111112;
-    bSizer4711111111112 = new wxBoxSizer( wxVERTICAL );
-    
-    btnAddHomeOrganisations = new wxButton( tabHome, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4711111111112->Add( btnAddHomeOrganisations, 0, wxALL, 5 );
-    
-    btnModifyHomeOrganisations = new wxButton( tabHome, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4711111111112->Add( btnModifyHomeOrganisations, 0, wxALL, 5 );
-    
-    btnDeleteHomeOrganisations = new wxButton( tabHome, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4711111111112->Add( btnDeleteHomeOrganisations, 0, wxALL, 5 );
-    
-    
-    bSizer4611111111112->Add( bSizer4711111111112, 1, wxEXPAND, 5 );
-    
-    
-    bSizer3511111111112->Add( bSizer4611111111112, 1, wxEXPAND, 5 );
-    
-    
-    bSizer3011111111112->Add( bSizer3511111111112, 0, wxEXPAND, 5 );
-    
-    
-    fgSizer51->Add( bSizer3011111111112, 1, wxEXPAND, 5 );
-    
-    lblHomeNotes = new wxStaticText( tabHome, wxID_ANY, wxT("Home Notes:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblHomeNotes->Wrap( 1 );
-    fgSizer51->Add( lblHomeNotes, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer30111111111111;
-    bSizer30111111111111 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboHomeNotes = new wxListCtrl( tabHome, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    bSizer30111111111111->Add( lboHomeNotes, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer35111111111111;
-    bSizer35111111111111 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer46111111111111;
-    bSizer46111111111111 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer47111111111111;
-    bSizer47111111111111 = new wxBoxSizer( wxVERTICAL );
-    
-    btnAddHomeNote = new wxButton( tabHome, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer47111111111111->Add( btnAddHomeNote, 0, wxALL, 5 );
-    
-    btnModifyHomeNote = new wxButton( tabHome, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer47111111111111->Add( btnModifyHomeNote, 0, wxALL, 5 );
-    
-    btnDeleteHomeNote = new wxButton( tabHome, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer47111111111111->Add( btnDeleteHomeNote, 0, wxALL, 5 );
-    
-    
-    bSizer46111111111111->Add( bSizer47111111111111, 1, wxEXPAND, 5 );
-    
-    
-    bSizer35111111111111->Add( bSizer46111111111111, 1, wxEXPAND, 5 );
-    
-    
-    bSizer30111111111111->Add( bSizer35111111111111, 0, wxEXPAND, 5 );
-    
-    
-    fgSizer51->Add( bSizer30111111111111, 1, wxEXPAND, 5 );
-    
-    
-    bSizer181->Add( fgSizer51, 0, wxEXPAND, 5 );
-    
-    
-    tabHome->SetSizer( bSizer181 );
-    tabHome->Layout();
-    bSizer181->Fit( tabHome );
-    nbkContact->AddPage( tabHome, wxT("Home"), false );
-    tabBusiness = new wxScrolledWindow( nbkContact, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHSCROLL|wxVSCROLL );
-    tabBusiness->SetScrollRate( 5, 5 );
-    wxBoxSizer* bSizer182;
-    bSizer182 = new wxBoxSizer( wxVERTICAL );
-    
-    wxGridSizer* gSizer72;
-    gSizer72 = new wxGridSizer( 2, 6, 0, 0 );
-    
-    
-    bSizer182->Add( gSizer72, 0, wxEXPAND, 5 );
-    
-    wxFlexGridSizer* fgSizer52;
-    fgSizer52 = new wxFlexGridSizer( 0, 2, 0, 0 );
-    fgSizer52->AddGrowableCol( 1 );
-    fgSizer52->SetFlexibleDirection( wxBOTH );
-    fgSizer52->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
-    
-    lblBusinessNickname = new wxStaticText( tabBusiness, wxID_ANY, wxT("Business Nicknames:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblBusinessNickname->Wrap( 0 );
-    fgSizer52->Add( lblBusinessNickname, 0, wxALL, 5 );
-    
-    wxBoxSizer* szrAddresses22;
-    szrAddresses22 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboBusinessNicknames = new wxListCtrl( tabBusiness, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    szrAddresses22->Add( lboBusinessNicknames, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* szrAddressesOuter22;
-    szrAddressesOuter22 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer4632;
-    bSizer4632 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer4732;
-    bSizer4732 = new wxBoxSizer( wxVERTICAL );
-    
-    btnAddBusinessNickname = new wxButton( tabBusiness, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4732->Add( btnAddBusinessNickname, 0, wxALL, 5 );
-    
-    btnModifyBusinessNickname = new wxButton( tabBusiness, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4732->Add( btnModifyBusinessNickname, 0, wxALL, 5 );
-    
-    btnDeleteBusinessNickname = new wxButton( tabBusiness, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4732->Add( btnDeleteBusinessNickname, 0, wxALL, 5 );
-    
-    
-    bSizer4632->Add( bSizer4732, 1, wxEXPAND, 5 );
-    
-    
-    szrAddressesOuter22->Add( bSizer4632, 1, wxEXPAND, 5 );
-    
-    
-    szrAddresses22->Add( szrAddressesOuter22, 0, wxEXPAND, 5 );
-    
-    
-    fgSizer52->Add( szrAddresses22, 1, wxEXPAND, 5 );
-    
-    lblBusinessAddress = new wxStaticText( tabBusiness, wxID_ANY, wxT("Business Addresses:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblBusinessAddress->Wrap( 0 );
-    fgSizer52->Add( lblBusinessAddress, 0, wxALL, 5 );
-    
-    wxBoxSizer* szrAddresses2;
-    szrAddresses2 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboBusinessAddresses = new wxListCtrl( tabBusiness, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    szrAddresses2->Add( lboBusinessAddresses, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* szrAddressesOuter2;
-    szrAddressesOuter2 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer463;
-    bSizer463 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer473;
-    bSizer473 = new wxBoxSizer( wxVERTICAL );
-    
-    btnAddBusinessAddress = new wxButton( tabBusiness, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer473->Add( btnAddBusinessAddress, 0, wxALL, 5 );
-    
-    btnModifyBusinessAddress = new wxButton( tabBusiness, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer473->Add( btnModifyBusinessAddress, 0, wxALL, 5 );
-    
-    btnDeleteBusinessAddress = new wxButton( tabBusiness, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer473->Add( btnDeleteBusinessAddress, 0, wxALL, 5 );
-    
-    
-    bSizer463->Add( bSizer473, 1, wxEXPAND, 5 );
-    
-    
-    szrAddressesOuter2->Add( bSizer463, 1, wxEXPAND, 5 );
-    
-    
-    szrAddresses2->Add( szrAddressesOuter2, 0, wxEXPAND, 5 );
-    
-    
-    fgSizer52->Add( szrAddresses2, 1, wxEXPAND, 5 );
-    
-    lblBusinessEmail = new wxStaticText( tabBusiness, wxID_ANY, wxT("Business E-mail:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblBusinessEmail->Wrap( 0 );
-    fgSizer52->Add( lblBusinessEmail, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer3013;
-    bSizer3013 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboBusinessEmail = new wxListCtrl( tabBusiness, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    bSizer3013->Add( lboBusinessEmail, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer3513;
-    bSizer3513 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer4613;
-    bSizer4613 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer4713;
-    bSizer4713 = new wxBoxSizer( wxVERTICAL );
-    
-    btnAddBusinessEmailAddress = new wxButton( tabBusiness, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4713->Add( btnAddBusinessEmailAddress, 0, wxALL, 5 );
-    
-    btnModifyBusinessEmailAddress = new wxButton( tabBusiness, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4713->Add( btnModifyBusinessEmailAddress, 0, wxALL, 5 );
-    
-    btnDeleteBusinessEmailAddress = new wxButton( tabBusiness, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4713->Add( btnDeleteBusinessEmailAddress, 0, wxALL, 5 );
-    
-    
-    bSizer4613->Add( bSizer4713, 1, wxEXPAND, 5 );
-    
-    
-    bSizer3513->Add( bSizer4613, 1, wxEXPAND, 5 );
-    
-    
-    bSizer3013->Add( bSizer3513, 0, wxEXPAND, 5 );
-    
-    
-    fgSizer52->Add( bSizer3013, 1, wxEXPAND, 5 );
-    
-    lblBusinessIM = new wxStaticText( tabBusiness, wxID_ANY, wxT("Business Instant Messaging:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblBusinessIM->Wrap( 0 );
-    fgSizer52->Add( lblBusinessIM, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer30113;
-    bSizer30113 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboBusinessIM = new wxListCtrl( tabBusiness, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    bSizer30113->Add( lboBusinessIM, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer35113;
-    bSizer35113 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer46113;
-    bSizer46113 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer47113;
-    bSizer47113 = new wxBoxSizer( wxVERTICAL );
-    
-    btnAddBusinessIMAddress = new wxButton( tabBusiness, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer47113->Add( btnAddBusinessIMAddress, 0, wxALL, 5 );
-    
-    btnModifyBusinessIMAddress = new wxButton( tabBusiness, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer47113->Add( btnModifyBusinessIMAddress, 0, wxALL, 5 );
-    
-    btnDeleteBusinessIMAddress = new wxButton( tabBusiness, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer47113->Add( btnDeleteBusinessIMAddress, 0, wxALL, 5 );
-    
-    
-    bSizer46113->Add( bSizer47113, 1, wxEXPAND, 5 );
-    
-    
-    bSizer35113->Add( bSizer46113, 1, wxEXPAND, 5 );
-    
-    
-    bSizer30113->Add( bSizer35113, 0, wxEXPAND, 5 );
-    
-    
-    fgSizer52->Add( bSizer30113, 1, wxEXPAND, 5 );
-    
-    lblBusinessTelephone = new wxStaticText( tabBusiness, wxID_ANY, wxT("Business Telephone:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblBusinessTelephone->Wrap( 0 );
-    fgSizer52->Add( lblBusinessTelephone, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer301113;
-    bSizer301113 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboBusinessTelephone = new wxListCtrl( tabBusiness, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    bSizer301113->Add( lboBusinessTelephone, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer351113;
-    bSizer351113 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer461113;
-    bSizer461113 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer471113;
-    bSizer471113 = new wxBoxSizer( wxVERTICAL );
-    
-    btnBusinessAddTelephone = new wxButton( tabBusiness, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer471113->Add( btnBusinessAddTelephone, 0, wxALL, 5 );
-    
-    btnBusinessModifyTelephone = new wxButton( tabBusiness, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer471113->Add( btnBusinessModifyTelephone, 0, wxALL, 5 );
-    
-    btnBusinessDeleteTelephone = new wxButton( tabBusiness, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer471113->Add( btnBusinessDeleteTelephone, 0, wxALL, 5 );
-    
-    
-    bSizer461113->Add( bSizer471113, 1, wxEXPAND, 5 );
-    
-    
-    bSizer351113->Add( bSizer461113, 1, wxEXPAND, 5 );
-    
-    
-    bSizer301113->Add( bSizer351113, 0, wxEXPAND, 5 );
-    
-    
-    fgSizer52->Add( bSizer301113, 1, wxEXPAND, 5 );
-    
-    lblBusinessLanguage = new wxStaticText( tabBusiness, wxID_ANY, wxT("Business Languages:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblBusinessLanguage->Wrap( 0 );
-    fgSizer52->Add( lblBusinessLanguage, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer3011113;
-    bSizer3011113 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboBusinessLanguages = new wxListCtrl( tabBusiness, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    bSizer3011113->Add( lboBusinessLanguages, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer3511113;
-    bSizer3511113 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer4611113;
-    bSizer4611113 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer4711113;
-    bSizer4711113 = new wxBoxSizer( wxVERTICAL );
-    
-    btnBusinessAddLanguage = new wxButton( tabBusiness, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4711113->Add( btnBusinessAddLanguage, 0, wxALL, 5 );
-    
-    btnBusinessModifyLanguage = new wxButton( tabBusiness, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4711113->Add( btnBusinessModifyLanguage, 0, wxALL, 5 );
-    
-    btnBusinessDeleteLanguage = new wxButton( tabBusiness, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4711113->Add( btnBusinessDeleteLanguage, 0, wxALL, 5 );
-    
-    
-    bSizer4611113->Add( bSizer4711113, 1, wxEXPAND, 5 );
-    
-    
-    bSizer3511113->Add( bSizer4611113, 1, wxEXPAND, 5 );
-    
-    
-    bSizer3011113->Add( bSizer3511113, 0, wxEXPAND, 5 );
-    
-    
-    fgSizer52->Add( bSizer3011113, 1, wxEXPAND, 5 );
-    
-    lblBusinessTimezones = new wxStaticText( tabBusiness, wxID_ANY, wxT("Business Timezones:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblBusinessTimezones->Wrap( 0 );
-    fgSizer52->Add( lblBusinessTimezones, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer30111113;
-    bSizer30111113 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboBusinessTimezones = new wxListCtrl( tabBusiness, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    bSizer30111113->Add( lboBusinessTimezones, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer35111113;
-    bSizer35111113 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer46111113;
-    bSizer46111113 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer47111113;
-    bSizer47111113 = new wxBoxSizer( wxVERTICAL );
-    
-    btnBusinessAddTimezone = new wxButton( tabBusiness, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer47111113->Add( btnBusinessAddTimezone, 0, wxALL, 5 );
-    
-    btnBusinessModifyTimezone = new wxButton( tabBusiness, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer47111113->Add( btnBusinessModifyTimezone, 0, wxALL, 5 );
-    
-    btnDeleteBusinessTimezone = new wxButton( tabBusiness, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer47111113->Add( btnDeleteBusinessTimezone, 0, wxALL, 5 );
-    
-    
-    bSizer46111113->Add( bSizer47111113, 1, wxEXPAND, 5 );
-    
-    
-    bSizer35111113->Add( bSizer46111113, 1, wxEXPAND, 5 );
-    
-    
-    bSizer30111113->Add( bSizer35111113, 0, wxEXPAND, 5 );
-    
-    
-    fgSizer52->Add( bSizer30111113, 1, wxEXPAND, 5 );
-    
-    lblBusinessGeopositioning = new wxStaticText( tabBusiness, wxID_ANY, wxT("Business Geopositioning:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblBusinessGeopositioning->Wrap( 0 );
-    fgSizer52->Add( lblBusinessGeopositioning, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer3011111411;
-    bSizer3011111411 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboBusinessGeoposition = new wxListCtrl( tabBusiness, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    bSizer3011111411->Add( lboBusinessGeoposition, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer3511111411;
-    bSizer3511111411 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer4611111411;
-    bSizer4611111411 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer4711111411;
-    bSizer4711111411 = new wxBoxSizer( wxVERTICAL );
-    
-    btnAddBusinessGeoposition = new wxButton( tabBusiness, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4711111411->Add( btnAddBusinessGeoposition, 0, wxALL, 5 );
-    
-    btnModifyBusinessGeoposition = new wxButton( tabBusiness, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4711111411->Add( btnModifyBusinessGeoposition, 0, wxALL, 5 );
-    
-    btnDeleteBusinessGeoposition = new wxButton( tabBusiness, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4711111411->Add( btnDeleteBusinessGeoposition, 0, wxALL, 5 );
-    
-    
-    bSizer4611111411->Add( bSizer4711111411, 1, wxEXPAND, 5 );
-    
-    
-    bSizer3511111411->Add( bSizer4611111411, 1, wxEXPAND, 5 );
-    
-    
-    bSizer3011111411->Add( bSizer3511111411, 0, wxEXPAND, 5 );
-    
-    
-    fgSizer52->Add( bSizer3011111411, 1, wxEXPAND, 5 );
-    
-    lblBusinessWebsites = new wxStaticText( tabBusiness, wxID_ANY, wxT("Business Websites:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblBusinessWebsites->Wrap( 1 );
-    fgSizer52->Add( lblBusinessWebsites, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer3011111113;
-    bSizer3011111113 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboBusinessWebsites = new wxListCtrl( tabBusiness, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    bSizer3011111113->Add( lboBusinessWebsites, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer3511111113;
-    bSizer3511111113 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer4611111113;
-    bSizer4611111113 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer4711111113;
-    bSizer4711111113 = new wxBoxSizer( wxVERTICAL );
-    
-    btnAddBusinessWebsite = new wxButton( tabBusiness, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4711111113->Add( btnAddBusinessWebsite, 0, wxALL, 5 );
-    
-    btnModifyBusinessWebsite = new wxButton( tabBusiness, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4711111113->Add( btnModifyBusinessWebsite, 0, wxALL, 5 );
-    
-    btnDeleteBusinessWebsite = new wxButton( tabBusiness, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4711111113->Add( btnDeleteBusinessWebsite, 0, wxALL, 5 );
-    
-    
-    bSizer4611111113->Add( bSizer4711111113, 1, wxEXPAND, 5 );
-    
-    
-    bSizer3511111113->Add( bSizer4611111113, 1, wxEXPAND, 5 );
-    
-    
-    bSizer3011111113->Add( bSizer3511111113, 0, wxEXPAND, 5 );
-    
-    
-    fgSizer52->Add( bSizer3011111113, 1, wxEXPAND, 5 );
-    
-    lblBusinessTitles = new wxStaticText( tabBusiness, wxID_ANY, wxT("Business Titles:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblBusinessTitles->Wrap( 1 );
-    fgSizer52->Add( lblBusinessTitles, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer30111111113;
-    bSizer30111111113 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboBusinessTitles = new wxListCtrl( tabBusiness, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxSUNKEN_BORDER );
-    bSizer30111111113->Add( lboBusinessTitles, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer35111111113;
-    bSizer35111111113 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer46111111113;
-    bSizer46111111113 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer47111111113;
-    bSizer47111111113 = new wxBoxSizer( wxVERTICAL );
-    
-    btnAddBusinessTitle = new wxButton( tabBusiness, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer47111111113->Add( btnAddBusinessTitle, 0, wxALL, 5 );
-    
-    btnModifyBusinessTitle = new wxButton( tabBusiness, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer47111111113->Add( btnModifyBusinessTitle, 0, wxALL, 5 );
-    
-    btnDeleteBusinessTitle = new wxButton( tabBusiness, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer47111111113->Add( btnDeleteBusinessTitle, 0, wxALL, 5 );
-    
-    
-    bSizer46111111113->Add( bSizer47111111113, 1, wxEXPAND, 5 );
-    
-    
-    bSizer35111111113->Add( bSizer46111111113, 1, wxEXPAND, 5 );
-    
-    
-    bSizer30111111113->Add( bSizer35111111113, 0, wxEXPAND, 5 );
-    
-    
-    fgSizer52->Add( bSizer30111111113, 1, wxEXPAND, 5 );
-    
-    lblBusinessRoles = new wxStaticText( tabBusiness, wxID_ANY, wxT("Business Roles:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblBusinessRoles->Wrap( 1 );
-    fgSizer52->Add( lblBusinessRoles, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer301111111113;
-    bSizer301111111113 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboBusinessRoles = new wxListCtrl( tabBusiness, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    bSizer301111111113->Add( lboBusinessRoles, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer351111111113;
-    bSizer351111111113 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer461111111113;
-    bSizer461111111113 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer471111111113;
-    bSizer471111111113 = new wxBoxSizer( wxVERTICAL );
-    
-    btnAddBusinessRole = new wxButton( tabBusiness, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer471111111113->Add( btnAddBusinessRole, 0, wxALL, 5 );
-    
-    btnModifyBusinessRole = new wxButton( tabBusiness, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer471111111113->Add( btnModifyBusinessRole, 0, wxALL, 5 );
-    
-    btnDeleteBusinessRole = new wxButton( tabBusiness, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer471111111113->Add( btnDeleteBusinessRole, 0, wxALL, 5 );
-    
-    
-    bSizer461111111113->Add( bSizer471111111113, 1, wxEXPAND, 5 );
-    
-    
-    bSizer351111111113->Add( bSizer461111111113, 1, wxEXPAND, 5 );
-    
-    
-    bSizer301111111113->Add( bSizer351111111113, 0, wxEXPAND, 5 );
-    
-    
-    fgSizer52->Add( bSizer301111111113, 1, wxEXPAND, 5 );
-    
-    lblBusinessOrganisations = new wxStaticText( tabBusiness, wxID_ANY, wxT("Business Organisations:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblBusinessOrganisations->Wrap( 1 );
-    fgSizer52->Add( lblBusinessOrganisations, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer3011111111113;
-    bSizer3011111111113 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboBusinessOrganisations = new wxListCtrl( tabBusiness, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    bSizer3011111111113->Add( lboBusinessOrganisations, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer3511111111113;
-    bSizer3511111111113 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer4611111111113;
-    bSizer4611111111113 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer4711111111113;
-    bSizer4711111111113 = new wxBoxSizer( wxVERTICAL );
-    
-    btnAddBusinessOrganisations = new wxButton( tabBusiness, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4711111111113->Add( btnAddBusinessOrganisations, 0, wxALL, 5 );
-    
-    btnModifyBusinessOrganisations = new wxButton( tabBusiness, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4711111111113->Add( btnModifyBusinessOrganisations, 0, wxALL, 5 );
-    
-    btnDeleteBusinessOrganisations = new wxButton( tabBusiness, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4711111111113->Add( btnDeleteBusinessOrganisations, 0, wxALL, 5 );
-    
-    
-    bSizer4611111111113->Add( bSizer4711111111113, 1, wxEXPAND, 5 );
-    
-    
-    bSizer3511111111113->Add( bSizer4611111111113, 1, wxEXPAND, 5 );
-    
-    
-    bSizer3011111111113->Add( bSizer3511111111113, 0, wxEXPAND, 5 );
-    
-    
-    fgSizer52->Add( bSizer3011111111113, 1, wxEXPAND, 5 );
-    
-    lblBusinessNotes = new wxStaticText( tabBusiness, wxID_ANY, wxT("Business Notes:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblBusinessNotes->Wrap( 1 );
-    fgSizer52->Add( lblBusinessNotes, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer30111111111112;
-    bSizer30111111111112 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboBusinessNotes = new wxListCtrl( tabBusiness, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    bSizer30111111111112->Add( lboBusinessNotes, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer35111111111112;
-    bSizer35111111111112 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer46111111111112;
-    bSizer46111111111112 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer47111111111112;
-    bSizer47111111111112 = new wxBoxSizer( wxVERTICAL );
-    
-    btnBusinessAddNote = new wxButton( tabBusiness, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer47111111111112->Add( btnBusinessAddNote, 0, wxALL, 5 );
-    
-    btnBusinessModifyNote = new wxButton( tabBusiness, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer47111111111112->Add( btnBusinessModifyNote, 0, wxALL, 5 );
-    
-    btnBusinessDeleteNote = new wxButton( tabBusiness, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer47111111111112->Add( btnBusinessDeleteNote, 0, wxALL, 5 );
-    
-    
-    bSizer46111111111112->Add( bSizer47111111111112, 1, wxEXPAND, 5 );
-    
-    
-    bSizer35111111111112->Add( bSizer46111111111112, 1, wxEXPAND, 5 );
-    
-    
-    bSizer30111111111112->Add( bSizer35111111111112, 0, wxEXPAND, 5 );
-    
-    
-    fgSizer52->Add( bSizer30111111111112, 1, wxEXPAND, 5 );
-    
-    
-    bSizer182->Add( fgSizer52, 0, wxEXPAND, 5 );
-    
-    
-    tabBusiness->SetSizer( bSizer182 );
-    tabBusiness->Layout();
-    bSizer182->Fit( tabBusiness );
-    nbkContact->AddPage( tabBusiness, wxT("Business"), false );
-    tabCategories = new wxScrolledWindow( nbkContact, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHSCROLL|wxVSCROLL );
-    tabCategories->SetScrollRate( 5, 5 );
-    wxBoxSizer* szrAddresses11;
-    szrAddresses11 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboCategories = new wxListCtrl( tabCategories, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    szrAddresses11->Add( lboCategories, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* szrCategoriesOuter;
-    szrCategoriesOuter = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer4621;
-    bSizer4621 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer4721;
-    bSizer4721 = new wxBoxSizer( wxVERTICAL );
-    
-    btnAddCategory = new wxButton( tabCategories, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4721->Add( btnAddCategory, 0, wxALL, 5 );
-    
-    btnModifyCategory = new wxButton( tabCategories, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4721->Add( btnModifyCategory, 0, wxALL, 5 );
-    
-    btnDeleteCategory = new wxButton( tabCategories, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4721->Add( btnDeleteCategory, 0, wxALL, 5 );
-    
-    
-    bSizer4621->Add( bSizer4721, 1, wxEXPAND, 5 );
-    
-    
-    szrCategoriesOuter->Add( bSizer4621, 1, wxEXPAND, 5 );
-    
-    
-    szrAddresses11->Add( szrCategoriesOuter, 0, wxEXPAND, 5 );
-    
-    
-    tabCategories->SetSizer( szrAddresses11 );
-    tabCategories->Layout();
-    szrAddresses11->Fit( tabCategories );
-    nbkContact->AddPage( tabCategories, wxT("Categories"), false );
-    tabMembers = new wxScrolledWindow( nbkContact, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHSCROLL|wxVSCROLL );
-    tabMembers->SetScrollRate( 5, 5 );
-    wxBoxSizer* szrAddresses111;
-    szrAddresses111 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboGroups = new wxListCtrl( tabMembers, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    szrAddresses111->Add( lboGroups, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* szrCategoriesOuter1;
-    szrCategoriesOuter1 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer46211;
-    bSizer46211 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer47211;
-    bSizer47211 = new wxBoxSizer( wxVERTICAL );
-    
-    btnAddGroups = new wxButton( tabMembers, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer47211->Add( btnAddGroups, 0, wxALL, 5 );
-    
-    btnModifyGroups = new wxButton( tabMembers, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer47211->Add( btnModifyGroups, 0, wxALL, 5 );
-    
-    btnDeleteGroups = new wxButton( tabMembers, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer47211->Add( btnDeleteGroups, 0, wxALL, 5 );
-    
-    
-    bSizer46211->Add( bSizer47211, 1, wxEXPAND, 5 );
-    
-    
-    szrCategoriesOuter1->Add( bSizer46211, 1, wxEXPAND, 5 );
-    
-    
-    szrAddresses111->Add( szrCategoriesOuter1, 0, wxEXPAND, 5 );
-    
-    
-    tabMembers->SetSizer( szrAddresses111 );
-    tabMembers->Layout();
-    szrAddresses111->Fit( tabMembers );
-    nbkContact->AddPage( tabMembers, wxT("Members"), false );
-    tabPictures = new wxScrolledWindow( nbkContact, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHSCROLL|wxVSCROLL );
-    tabPictures->SetScrollRate( 5, 5 );
-    wxBoxSizer* bSizer210;
-    bSizer210 = new wxBoxSizer( wxHORIZONTAL );
-    
-    imgPicture = new wxStaticBitmap( tabPictures, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxSUNKEN_BORDER );
-    bSizer210->Add( imgPicture, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer211;
-    bSizer211 = new wxBoxSizer( wxVERTICAL );
-    
-    lboPictures = new wxListCtrl( tabPictures, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    bSizer211->Add( lboPictures, 0, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer212;
-    bSizer212 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer213;
-    bSizer213 = new wxBoxSizer( wxHORIZONTAL );
-    
-    btnAddPicture = new wxButton( tabPictures, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer213->Add( btnAddPicture, 0, wxALL, 5 );
-    
-    btnModifyPicture = new wxButton( tabPictures, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer213->Add( btnModifyPicture, 0, wxALL, 5 );
-    
-    btnDeletePicture = new wxButton( tabPictures, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer213->Add( btnDeletePicture, 0, wxALL, 5 );
-    
-    
-    bSizer212->Add( bSizer213, 1, wxEXPAND, 5 );
-    
-    
-    bSizer211->Add( bSizer212, 0, wxEXPAND, 5 );
-    
-    
-    bSizer210->Add( bSizer211, 1, wxEXPAND, 5 );
-    
-    
-    tabPictures->SetSizer( bSizer210 );
-    tabPictures->Layout();
-    bSizer210->Fit( tabPictures );
-    nbkContact->AddPage( tabPictures, wxT("Pictures"), false );
-    tabLogo = new wxScrolledWindow( nbkContact, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHSCROLL|wxVSCROLL );
-    tabLogo->SetScrollRate( 5, 5 );
-    wxBoxSizer* bSizer2101;
-    bSizer2101 = new wxBoxSizer( wxHORIZONTAL );
-    
-    imgLogo = new wxStaticBitmap( tabLogo, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxSUNKEN_BORDER );
-    bSizer2101->Add( imgLogo, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer2111;
-    bSizer2111 = new wxBoxSizer( wxVERTICAL );
-    
-    lboLogos = new wxListCtrl( tabLogo, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    bSizer2111->Add( lboLogos, 0, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer2121;
-    bSizer2121 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer2131;
-    bSizer2131 = new wxBoxSizer( wxHORIZONTAL );
-    
-    btnAddLogo = new wxButton( tabLogo, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer2131->Add( btnAddLogo, 0, wxALL, 5 );
-    
-    btnModifyLogo = new wxButton( tabLogo, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer2131->Add( btnModifyLogo, 0, wxALL, 5 );
-    
-    btnDeleteLogo = new wxButton( tabLogo, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer2131->Add( btnDeleteLogo, 0, wxALL, 5 );
-    
-    
-    bSizer2121->Add( bSizer2131, 1, wxEXPAND, 5 );
-    
-    
-    bSizer2111->Add( bSizer2121, 0, wxEXPAND, 5 );
-    
-    
-    bSizer2101->Add( bSizer2111, 1, wxEXPAND, 5 );
-    
-    
-    tabLogo->SetSizer( bSizer2101 );
-    tabLogo->Layout();
-    bSizer2101->Fit( tabLogo );
-    nbkContact->AddPage( tabLogo, wxT("Logos"), false );
-    tabSounds = new wxScrolledWindow( nbkContact, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHSCROLL|wxVSCROLL );
-    tabSounds->SetScrollRate( 5, 5 );
-    wxBoxSizer* szrAddresses1111;
-    szrAddresses1111 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboSounds = new wxListCtrl( tabSounds, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    szrAddresses1111->Add( lboSounds, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* szrCategoriesOuter11;
-    szrCategoriesOuter11 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer462111;
-    bSizer462111 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer472111;
-    bSizer472111 = new wxBoxSizer( wxVERTICAL );
-    
-    btnAddSound = new wxButton( tabSounds, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer472111->Add( btnAddSound, 0, wxALL, 5 );
-    
-    btnModifySound = new wxButton( tabSounds, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer472111->Add( btnModifySound, 0, wxALL, 5 );
-    
-    btnDeleteSound = new wxButton( tabSounds, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer472111->Add( btnDeleteSound, 0, wxALL, 5 );
-    
-    m_staticline1 = new wxStaticLine( tabSounds, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
-    bSizer472111->Add( m_staticline1, 0, wxEXPAND | wxALL, 5 );
-    
-    wxBoxSizer* bSizer348;
-    bSizer348 = new wxBoxSizer( wxHORIZONTAL );
-    
-    btnPlay = new wxBitmapButton( tabSounds, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW );
-    btnPlay->SetMinSize( wxSize( -1,32 ) );
-    
-    bSizer348->Add( btnPlay, 0, wxALL|wxEXPAND, 5 );
-    
-    btnStop = new wxBitmapButton( tabSounds, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW );
-    btnStop->SetMinSize( wxSize( -1,32 ) );
-    
-    bSizer348->Add( btnStop, 0, wxALL, 5 );
-    
-    
-    bSizer472111->Add( bSizer348, 0, wxALIGN_CENTER, 5 );
-    
-    
-    bSizer462111->Add( bSizer472111, 1, wxEXPAND, 5 );
-    
-    
-    szrCategoriesOuter11->Add( bSizer462111, 1, wxEXPAND, 5 );
-    
-    
-    szrAddresses1111->Add( szrCategoriesOuter11, 0, wxEXPAND, 5 );
-    
-    
-    tabSounds->SetSizer( szrAddresses1111 );
-    tabSounds->Layout();
-    szrAddresses1111->Fit( tabSounds );
-    nbkContact->AddPage( tabSounds, wxT("Sounds"), true );
-    tabCalendaring = new wxScrolledWindow( nbkContact, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHSCROLL|wxVSCROLL );
-    tabCalendaring->SetScrollRate( 5, 5 );
-    wxBoxSizer* bSizer1821;
-    bSizer1821 = new wxBoxSizer( wxVERTICAL );
-    
-    wxFlexGridSizer* fgSizer521;
-    fgSizer521 = new wxFlexGridSizer( 0, 2, 0, 0 );
-    fgSizer521->AddGrowableCol( 1 );
-    fgSizer521->SetFlexibleDirection( wxBOTH );
-    fgSizer521->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
-    
-    lblCalendarAddresses = new wxStaticText( tabCalendaring, wxID_ANY, wxT("Calendar Addresses:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblCalendarAddresses->Wrap( 0 );
-    fgSizer521->Add( lblCalendarAddresses, 0, wxALL, 5 );
-    
-    wxBoxSizer* szrAddresses21;
-    szrAddresses21 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboCalendarAddresses = new wxListCtrl( tabCalendaring, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    szrAddresses21->Add( lboCalendarAddresses, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* szrAddressesOuter21;
-    szrAddressesOuter21 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer4631;
-    bSizer4631 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer4731;
-    bSizer4731 = new wxBoxSizer( wxVERTICAL );
-    
-    btnAddCalendarAddress = new wxButton( tabCalendaring, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4731->Add( btnAddCalendarAddress, 0, wxALL, 5 );
-    
-    btnModifyCalendarAddress = new wxButton( tabCalendaring, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4731->Add( btnModifyCalendarAddress, 0, wxALL, 5 );
-    
-    btnDeleteCalendarAddress = new wxButton( tabCalendaring, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer4731->Add( btnDeleteCalendarAddress, 0, wxALL, 5 );
-    
-    
-    bSizer4631->Add( bSizer4731, 1, wxEXPAND, 5 );
-    
-    
-    szrAddressesOuter21->Add( bSizer4631, 1, wxEXPAND, 5 );
-    
-    
-    szrAddresses21->Add( szrAddressesOuter21, 0, wxEXPAND, 5 );
-    
-    
-    fgSizer521->Add( szrAddresses21, 1, wxEXPAND, 5 );
-    
-    lblCalendarRequestAddresses = new wxStaticText( tabCalendaring, wxID_ANY, wxT("Calendar Request Address:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblCalendarRequestAddresses->Wrap( 0 );
-    fgSizer521->Add( lblCalendarRequestAddresses, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer30131;
-    bSizer30131 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboCalendarRequestAddress = new wxListCtrl( tabCalendaring, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    bSizer30131->Add( lboCalendarRequestAddress, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer35131;
-    bSizer35131 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer46131;
-    bSizer46131 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer47131;
-    bSizer47131 = new wxBoxSizer( wxVERTICAL );
-    
-    btnAddCalendarRequestAddress = new wxButton( tabCalendaring, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer47131->Add( btnAddCalendarRequestAddress, 0, wxALL, 5 );
-    
-    btnModifyCalendarRequestAddress = new wxButton( tabCalendaring, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer47131->Add( btnModifyCalendarRequestAddress, 0, wxALL, 5 );
-    
-    btnDeleteCalendarRequestAddress = new wxButton( tabCalendaring, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer47131->Add( btnDeleteCalendarRequestAddress, 0, wxALL, 5 );
-    
-    
-    bSizer46131->Add( bSizer47131, 1, wxEXPAND, 5 );
-    
-    
-    bSizer35131->Add( bSizer46131, 1, wxEXPAND, 5 );
-    
-    
-    bSizer30131->Add( bSizer35131, 0, wxEXPAND, 5 );
-    
-    
-    fgSizer521->Add( bSizer30131, 1, wxEXPAND, 5 );
-    
-    lblFreeBusyAddresses = new wxStaticText( tabCalendaring, wxID_ANY, wxT("Free/Busy Addresses:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblFreeBusyAddresses->Wrap( 0 );
-    fgSizer521->Add( lblFreeBusyAddresses, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer301131;
-    bSizer301131 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboFreeBusyAddresses = new wxListCtrl( tabCalendaring, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    bSizer301131->Add( lboFreeBusyAddresses, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer351131;
-    bSizer351131 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer461131;
-    bSizer461131 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer471131;
-    bSizer471131 = new wxBoxSizer( wxVERTICAL );
-    
-    btnAddFreeBusyAddress = new wxButton( tabCalendaring, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer471131->Add( btnAddFreeBusyAddress, 0, wxALL, 5 );
-    
-    btnModifyFreeBusyAddress = new wxButton( tabCalendaring, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer471131->Add( btnModifyFreeBusyAddress, 0, wxALL, 5 );
-    
-    btnDeleteFreeBusyAddress = new wxButton( tabCalendaring, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer471131->Add( btnDeleteFreeBusyAddress, 0, wxALL, 5 );
-    
-    
-    bSizer461131->Add( bSizer471131, 1, wxEXPAND, 5 );
-    
-    
-    bSizer351131->Add( bSizer461131, 1, wxEXPAND, 5 );
-    
-    
-    bSizer301131->Add( bSizer351131, 0, wxEXPAND, 5 );
-    
-    
-    fgSizer521->Add( bSizer301131, 1, wxEXPAND, 5 );
-    
-    
-    bSizer1821->Add( fgSizer521, 0, wxEXPAND, 5 );
-    
-    
-    tabCalendaring->SetSizer( bSizer1821 );
-    tabCalendaring->Layout();
-    bSizer1821->Fit( tabCalendaring );
-    nbkContact->AddPage( tabCalendaring, wxT("Calendaring"), false );
-    tabSecurity = new wxScrolledWindow( nbkContact, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHSCROLL|wxVSCROLL );
-    tabSecurity->SetScrollRate( 5, 5 );
-    wxBoxSizer* szrAddresses1112;
-    szrAddresses1112 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboKeys = new wxListCtrl( tabSecurity, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    szrAddresses1112->Add( lboKeys, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* szrCategoriesOuter12;
-    szrCategoriesOuter12 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer462112;
-    bSizer462112 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer472112;
-    bSizer472112 = new wxBoxSizer( wxVERTICAL );
-    
-    btnAddKey = new wxButton( tabSecurity, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer472112->Add( btnAddKey, 0, wxALL, 5 );
-    
-    btnModifyKey = new wxButton( tabSecurity, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer472112->Add( btnModifyKey, 0, wxALL, 5 );
-    
-    btnDeleteKey = new wxButton( tabSecurity, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer472112->Add( btnDeleteKey, 0, wxALL, 5 );
-    
-    
-    bSizer462112->Add( bSizer472112, 1, wxEXPAND, 5 );
-    
-    
-    szrCategoriesOuter12->Add( bSizer462112, 1, wxEXPAND, 5 );
-    
-    
-    szrAddresses1112->Add( szrCategoriesOuter12, 0, wxEXPAND, 5 );
-    
-    
-    tabSecurity->SetSizer( szrAddresses1112 );
-    tabSecurity->Layout();
-    szrAddresses1112->Fit( tabSecurity );
-    nbkContact->AddPage( tabSecurity, wxT("Security"), false );
-    tabOther = new wxScrolledWindow( nbkContact, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHSCROLL|wxVSCROLL );
-    tabOther->SetScrollRate( 5, 5 );
-    wxFlexGridSizer* fgSizer5211;
-    fgSizer5211 = new wxFlexGridSizer( 0, 2, 0, 0 );
-    fgSizer5211->AddGrowableCol( 1 );
-    fgSizer5211->SetFlexibleDirection( wxBOTH );
-    fgSizer5211->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
-    
-    lblVendorNamespace = new wxStaticText( tabOther, wxID_ANY, wxT("Vendor Namespace:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblVendorNamespace->Wrap( 0 );
-    fgSizer5211->Add( lblVendorNamespace, 0, wxALL, 5 );
-    
-    wxBoxSizer* szrAddresses211;
-    szrAddresses211 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboVendorNamespace = new wxListCtrl( tabOther, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxSUNKEN_BORDER );
-    szrAddresses211->Add( lboVendorNamespace, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* szrAddressesOuter211;
-    szrAddressesOuter211 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer46311;
-    bSizer46311 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer47311;
-    bSizer47311 = new wxBoxSizer( wxVERTICAL );
-    
-    btnAddVendorNamespace = new wxButton( tabOther, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer47311->Add( btnAddVendorNamespace, 0, wxALL, 5 );
-    
-    btnModifyVendorNamespace = new wxButton( tabOther, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer47311->Add( btnModifyVendorNamespace, 0, wxALL, 5 );
-    
-    btnDeleteVendorNamespace = new wxButton( tabOther, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer47311->Add( btnDeleteVendorNamespace, 0, wxALL, 5 );
-    
-    
-    bSizer46311->Add( bSizer47311, 1, wxEXPAND, 5 );
-    
-    
-    szrAddressesOuter211->Add( bSizer46311, 1, wxEXPAND, 5 );
-    
-    
-    szrAddresses211->Add( szrAddressesOuter211, 0, wxEXPAND, 5 );
-    
-    
-    fgSizer5211->Add( szrAddresses211, 1, wxEXPAND, 5 );
-    
-    lblXTokens = new wxStaticText( tabOther, wxID_ANY, wxT("X-Tokens:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblXTokens->Wrap( 0 );
-    fgSizer5211->Add( lblXTokens, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer301311;
-    bSizer301311 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lboXToken = new wxListCtrl( tabOther, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
-    bSizer301311->Add( lboXToken, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer351311;
-    bSizer351311 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer461311;
-    bSizer461311 = new wxBoxSizer( wxHORIZONTAL );
-    
-    wxBoxSizer* bSizer471311;
-    bSizer471311 = new wxBoxSizer( wxVERTICAL );
-    
-    btnAddXToken = new wxButton( tabOther, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer471311->Add( btnAddXToken, 0, wxALL, 5 );
-    
-    btnModifyXToken = new wxButton( tabOther, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer471311->Add( btnModifyXToken, 0, wxALL, 5 );
-    
-    btnDeleteXToken = new wxButton( tabOther, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer471311->Add( btnDeleteXToken, 0, wxALL, 5 );
-    
-    
-    bSizer461311->Add( bSizer471311, 1, wxEXPAND, 5 );
-    
-    
-    bSizer351311->Add( bSizer461311, 1, wxEXPAND, 5 );
-    
-    
-    bSizer301311->Add( bSizer351311, 0, wxEXPAND, 5 );
-    
-    
-    fgSizer5211->Add( bSizer301311, 1, wxEXPAND, 5 );
-    
-    
-    tabOther->SetSizer( fgSizer5211 );
-    tabOther->Layout();
-    fgSizer5211->Fit( tabOther );
-    nbkContact->AddPage( tabOther, wxT("Other"), false );
-    
-    bSizer17->Add( nbkContact, 1, wxEXPAND | wxALL, 5 );
-    
-    
-    this->SetSizer( bSizer17 );
-    this->Layout();
-    m_menubar3 = new wxMenuBar( 0 );
-    mnuContact = new wxMenu();
-    wxMenuItem* mnuContactSave;
-    mnuContactSave = new wxMenuItem( mnuContact, CONTACT_SAVE, wxString( wxT("Save") ) + wxT('\t') + wxT("Ctrl+S"), wxEmptyString, wxITEM_NORMAL );
-    mnuContact->Append( mnuContactSave );
-    
-    wxMenuItem* mnuContactSaveClose;
-    mnuContactSaveClose = new wxMenuItem( mnuContact, CONTACT_SAVECLOSE, wxString( wxT("&Save and Close Contact") ) + wxT('\t') + wxT("Ctrl+Shift+S"), wxEmptyString, wxITEM_NORMAL );
-    mnuContact->Append( mnuContactSaveClose );
-    
-    mnuContact->AppendSeparator();
-    
-    wxMenuItem* mnuContactClose;
-    mnuContactClose = new wxMenuItem( mnuContact, CONTACT_CLOSE, wxString( wxT("Close") ) , wxEmptyString, wxITEM_NORMAL );
-    mnuContact->Append( mnuContactClose );
-    
-    m_menubar3->Append( mnuContact, wxT("&Contact") );
-    
-    mnuEdit = new wxMenu();
-    wxMenuItem* mnuEditCut;
-    mnuEditCut = new wxMenuItem( mnuEdit, wxID_CUT, wxString( wxT("Cu&t") ) + wxT('\t') + wxT("Ctrl+X"), wxEmptyString, wxITEM_NORMAL );
-    mnuEdit->Append( mnuEditCut );
-    
-    wxMenuItem* mnuEditCopy;
-    mnuEditCopy = new wxMenuItem( mnuEdit, wxID_COPY, wxString( wxT("&Copy") ) + wxT('\t') + wxT("Ctrl+C"), wxEmptyString, wxITEM_NORMAL );
-    mnuEdit->Append( mnuEditCopy );
-    
-    wxMenuItem* mnuEditPaste;
-    mnuEditPaste = new wxMenuItem( mnuEdit, wxID_PASTE, wxString( wxT("&Paste") ) + wxT('\t') + wxT("Ctrl+V"), wxEmptyString, wxITEM_NORMAL );
-    mnuEdit->Append( mnuEditPaste );
-    
-    m_menubar3->Append( mnuEdit, wxT("&Edit") );
-    
-    this->SetMenuBar( m_menubar3 );
-    
-    
-    this->Centre( wxBOTH );
-    
-    // Connect Events
-    this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( frmContactEditorADT::CloseWindow ) );
-    txtTitle->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( frmContactEditorADT::UpdateDisplayAs ), NULL, this );
-    txtForename->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( frmContactEditorADT::UpdateDisplayAs ), NULL, this );
-    txtSurname->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( frmContactEditorADT::UpdateDisplayAs ), NULL, this );
-    txtOtherNames->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( frmContactEditorADT::UpdateDisplayAs ), NULL, this );
-    txtSuffix->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( frmContactEditorADT::UpdateDisplayAs ), NULL, this );
-    cmbDisplayAs->Connect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( frmContactEditorADT::UpdateName ), NULL, this );
-    cmbDisplayAs->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( frmContactEditorADT::UpdateName ), NULL, this );
-    cmbType->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( frmContactEditorADT::UpdateMembersTab ), NULL, this );
-    btnAddGeneralNickname->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralNickname ), NULL, this );
-    btnModifyGeneralNickname->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralNickname ), NULL, this );
-    btnDeleteGeneralNickname->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralNickname ), NULL, this );
-    btnAddGeneralAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralAddress ), NULL, this );
-    btnModifyGeneralAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralAddress ), NULL, this );
-    btnDeleteGeneralAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralAddress ), NULL, this );
-    btnAddEmailAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralEmail ), NULL, this );
-    btnModifyEmailAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralEmail ), NULL, this );
-    btnDeleteEmailAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralEmail ), NULL, this );
-    btnAddIMAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralIM ), NULL, this );
-    btnModifyIMAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralIM ), NULL, this );
-    btnDeleteIMAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralIM ), NULL, this );
-    btnAddTelephone->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralTelephone ), NULL, this );
-    btnModifyTelephone->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralTelephone ), NULL, this );
-    btnDeleteTelephone->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralTelephone ), NULL, this );
-    btnAddLanguage->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralLanguages ), NULL, this );
-    btnModifyLanguage->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralLanguages ), NULL, this );
-    btnDeleteLanguage->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralLanguage ), NULL, this );
-    btnAddTimezone->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralTimezone ), NULL, this );
-    btnModifyTimezone->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralTimezone ), NULL, this );
-    btnDeleteTimezone->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralTimezone ), NULL, this );
-    btnAddGeneralGeoposition->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralGeoposition ), NULL, this );
-    btnModifyGeneralGeoposition->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralGeoposition ), NULL, this );
-    btnDeleteGeneralGeoposition->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralGeoposition ), NULL, this );
-    btnAddRelated->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralRelated ), NULL, this );
-    btnModifyRelated->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralRelated ), NULL, this );
-    btnDeleteRelated->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralRelated ), NULL, this );
-    btnAddWebsite->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralWebsite ), NULL, this );
-    btnModifyWebsite->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralWebsite ), NULL, this );
-    btnDeleteWebsite->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralWebsite ), NULL, this );
-    btnAddTitle->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralTitle ), NULL, this );
-    btnModifyTitle->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralTitle ), NULL, this );
-    btnDeleteTitle->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralTitle ), NULL, this );
-    btnAddRole->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralRole ), NULL, this );
-    btnModifyRole->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralRole ), NULL, this );
-    btnDeleteRole->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralRole ), NULL, this );
-    btnAddOrganisations->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralOrganisation ), NULL, this );
-    btnModifyOrganisations->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralOrganisation ), NULL, this );
-    btnDeleteOrganisations->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralOrganisation ), NULL, this );
-    btnAddNote->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralNote ), NULL, this );
-    btnModifyNote->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralNote ), NULL, this );
-    btnDeleteNote->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralNote ), NULL, this );
-    btnAddHomeNickname->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeNickname ), NULL, this );
-    btnModifyHomeNickname->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeNickname ), NULL, this );
-    btnDeleteHomeNickname->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeNickname ), NULL, this );
-    btnAddHomeAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeAddress ), NULL, this );
-    btnModifyHomeAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeAddress ), NULL, this );
-    btnDeleteHomeAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeAddress ), NULL, this );
-    btnAddHomeEmailAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeEmail ), NULL, this );
-    btnModifyHomeEmailAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeEmail ), NULL, this );
-    btnDeleteHomeEmailAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeEmail ), NULL, this );
-    btnAddHomeIMAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeIM ), NULL, this );
-    btnModifyHomeIMAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeIM ), NULL, this );
-    btnDeleteHomeIMAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeIM ), NULL, this );
-    btnAddHomeTelephone->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeTelephone ), NULL, this );
-    btnModifyHomeTelephone->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeTelephone ), NULL, this );
-    btnDeleteHomeTelephone->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeTelephone ), NULL, this );
-    btnAddHomeLanguage->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeLanguage ), NULL, this );
-    btnModifyHomeLanguage->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeLanguage ), NULL, this );
-    btnDeleteHomeLanguage->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeLanguage ), NULL, this );
-    btnAddHomeTimezone->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeTimezone ), NULL, this );
-    btnModifyHomeTimezone->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeTimezone ), NULL, this );
-    btnDeleteHomeTimezone->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeTimezone ), NULL, this );
-    btnAddHomeGeoposition->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeGeoposition ), NULL, this );
-    btnModifyHomeGeoposition->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeGeoposition ), NULL, this );
-    btnDeleteHomePosition->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeGeoposition ), NULL, this );
-    btnAddHomeWebsite->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeWebsite ), NULL, this );
-    btnHomeModifyWebsite->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeWebsite ), NULL, this );
-    btnDeleteHomeWebsite->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeWebsite ), NULL, this );
-    btnAddHomeTitle->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeTitle ), NULL, this );
-    btnModifyHomeTitle->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeTitle ), NULL, this );
-    btnDeleteHomeTitle->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeTitle ), NULL, this );
-    btnAddHomeRole->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeRole ), NULL, this );
-    btnModifyHomeRole->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeRole ), NULL, this );
-    btnDeleteHomeRole->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeRole ), NULL, this );
-    btnAddHomeOrganisations->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeOrganisation ), NULL, this );
-    btnModifyHomeOrganisations->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeOrganisation ), NULL, this );
-    btnDeleteHomeOrganisations->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeOrganisation ), NULL, this );
-    btnAddHomeNote->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeNote ), NULL, this );
-    btnModifyHomeNote->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeNote ), NULL, this );
-    btnDeleteHomeNote->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeNote ), NULL, this );
-    btnAddBusinessNickname->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessNickname ), NULL, this );
-    btnModifyBusinessNickname->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessNickname ), NULL, this );
-    btnDeleteBusinessNickname->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessNickname ), NULL, this );
-    btnAddBusinessAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessAddress ), NULL, this );
-    btnModifyBusinessAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessAddress ), NULL, this );
-    btnDeleteBusinessAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessAddress ), NULL, this );
-    btnAddBusinessEmailAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessEmail ), NULL, this );
-    btnModifyBusinessEmailAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessEmail ), NULL, this );
-    btnDeleteBusinessEmailAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessEmail ), NULL, this );
-    btnAddBusinessIMAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessIM ), NULL, this );
-    btnModifyBusinessIMAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessIM ), NULL, this );
-    btnDeleteBusinessIMAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessIM ), NULL, this );
-    btnBusinessAddTelephone->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessTelephone ), NULL, this );
-    btnBusinessModifyTelephone->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessTelephone ), NULL, this );
-    btnBusinessDeleteTelephone->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessTelephone ), NULL, this );
-    btnBusinessAddLanguage->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessLanguage ), NULL, this );
-    btnBusinessModifyLanguage->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessLanguage ), NULL, this );
-    btnBusinessDeleteLanguage->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessLanguage ), NULL, this );
-    btnBusinessAddTimezone->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessTimezone ), NULL, this );
-    btnBusinessModifyTimezone->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessTimezone ), NULL, this );
-    btnDeleteBusinessTimezone->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessTimezone ), NULL, this );
-    btnAddBusinessGeoposition->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessGeoposition ), NULL, this );
-    btnModifyBusinessGeoposition->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessGeoposition ), NULL, this );
-    btnDeleteBusinessGeoposition->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessGeoposition ), NULL, this );
-    btnAddBusinessWebsite->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessWebsite ), NULL, this );
-    btnModifyBusinessWebsite->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessWebsite ), NULL, this );
-    btnDeleteBusinessWebsite->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessWebsite ), NULL, this );
-    btnAddBusinessTitle->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessTitle ), NULL, this );
-    btnModifyBusinessTitle->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessTitle ), NULL, this );
-    btnDeleteBusinessTitle->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessTitle ), NULL, this );
-    btnAddBusinessRole->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessRole ), NULL, this );
-    btnModifyBusinessRole->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessRole ), NULL, this );
-    btnDeleteBusinessRole->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessRole ), NULL, this );
-    btnAddBusinessOrganisations->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessOrganisation ), NULL, this );
-    btnModifyBusinessOrganisations->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessOrganisation ), NULL, this );
-    btnDeleteBusinessOrganisations->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessOrganisation ), NULL, this );
-    btnBusinessAddNote->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessNote ), NULL, this );
-    btnBusinessModifyNote->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessNote ), NULL, this );
-    btnBusinessDeleteNote->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessNote ), NULL, this );
-    btnAddCategory->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddCategory ), NULL, this );
-    btnModifyCategory->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyCategory ), NULL, this );
-    btnDeleteCategory->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteCategory ), NULL, this );
-    btnAddGroups->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGroup ), NULL, this );
-    btnModifyGroups->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGroup ), NULL, this );
-    btnDeleteGroups->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGroup ), NULL, this );
-    lboPictures->Connect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( frmContactEditorADT::LoadPicture ), NULL, this );
-    btnAddPicture->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddPicture ), NULL, this );
-    btnModifyPicture->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyPicture ), NULL, this );
-    btnDeletePicture->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeletePicture ), NULL, this );
-    lboLogos->Connect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( frmContactEditorADT::LoadLogo ), NULL, this );
-    btnAddLogo->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddLogo ), NULL, this );
-    btnModifyLogo->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyLogo ), NULL, this );
-    btnDeleteLogo->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteLogo ), NULL, this );
-    btnAddSound->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddSound ), NULL, this );
-    btnModifySound->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifySound ), NULL, this );
-    btnDeleteSound->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteSound ), NULL, this );
-    btnPlay->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::PlaySound ), NULL, this );
-    btnStop->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::StopSound ), NULL, this );
-    btnAddCalendarAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddCalendarAddress ), NULL, this );
-    btnModifyCalendarAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyCalendarAddress ), NULL, this );
-    btnDeleteCalendarAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteCalendarAddress ), NULL, this );
-    btnAddCalendarRequestAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddCalendarRequest ), NULL, this );
-    btnModifyCalendarRequestAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyCalendarRequest ), NULL, this );
-    btnDeleteCalendarRequestAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteCalendarAddress ), NULL, this );
-    btnAddFreeBusyAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddFreeBusy ), NULL, this );
-    btnModifyFreeBusyAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyFreeBusy ), NULL, this );
-    btnDeleteFreeBusyAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteFreeBusy ), NULL, this );
-    btnAddKey->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddKey ), NULL, this );
-    btnModifyKey->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyKey ), NULL, this );
-    btnDeleteKey->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteKey ), NULL, this );
-    btnAddVendorNamespace->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddVendorNamespace ), NULL, this );
-    btnModifyVendorNamespace->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyVendorNamespace ), NULL, this );
-    btnDeleteVendorNamespace->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteVendorNamespace ), NULL, this );
-    btnAddXToken->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddXToken ), NULL, this );
-    btnModifyXToken->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyXToken ), NULL, this );
-    btnDeleteXToken->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteXToken ), NULL, this );
-    this->Connect( mnuContactSave->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmContactEditorADT::SaveContact ) );
-    this->Connect( mnuContactSaveClose->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmContactEditorADT::SaveCloseContact ) );
-    this->Connect( mnuContactClose->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmContactEditorADT::CloseContact ) );
-    this->Connect( mnuEditCut->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmContactEditorADT::CutText ) );
-    this->Connect( mnuEditCopy->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmContactEditorADT::CopyText ) );
-    this->Connect( mnuEditPaste->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmContactEditorADT::PasteText ) );
-}
-
-frmContactEditorADT::~frmContactEditorADT()
-{
-    // Disconnect Events
-    this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( frmContactEditorADT::CloseWindow ) );
-    txtTitle->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( frmContactEditorADT::UpdateDisplayAs ), NULL, this );
-    txtForename->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( frmContactEditorADT::UpdateDisplayAs ), NULL, this );
-    txtSurname->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( frmContactEditorADT::UpdateDisplayAs ), NULL, this );
-    txtOtherNames->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( frmContactEditorADT::UpdateDisplayAs ), NULL, this );
-    txtSuffix->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( frmContactEditorADT::UpdateDisplayAs ), NULL, this );
-    cmbDisplayAs->Disconnect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( frmContactEditorADT::UpdateName ), NULL, this );
-    cmbDisplayAs->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( frmContactEditorADT::UpdateName ), NULL, this );
-    cmbType->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( frmContactEditorADT::UpdateMembersTab ), NULL, this );
-    btnAddGeneralNickname->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralNickname ), NULL, this );
-    btnModifyGeneralNickname->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralNickname ), NULL, this );
-    btnDeleteGeneralNickname->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralNickname ), NULL, this );
-    btnAddGeneralAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralAddress ), NULL, this );
-    btnModifyGeneralAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralAddress ), NULL, this );
-    btnDeleteGeneralAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralAddress ), NULL, this );
-    btnAddEmailAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralEmail ), NULL, this );
-    btnModifyEmailAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralEmail ), NULL, this );
-    btnDeleteEmailAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralEmail ), NULL, this );
-    btnAddIMAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralIM ), NULL, this );
-    btnModifyIMAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralIM ), NULL, this );
-    btnDeleteIMAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralIM ), NULL, this );
-    btnAddTelephone->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralTelephone ), NULL, this );
-    btnModifyTelephone->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralTelephone ), NULL, this );
-    btnDeleteTelephone->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralTelephone ), NULL, this );
-    btnAddLanguage->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralLanguages ), NULL, this );
-    btnModifyLanguage->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralLanguages ), NULL, this );
-    btnDeleteLanguage->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralLanguage ), NULL, this );
-    btnAddTimezone->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralTimezone ), NULL, this );
-    btnModifyTimezone->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralTimezone ), NULL, this );
-    btnDeleteTimezone->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralTimezone ), NULL, this );
-    btnAddGeneralGeoposition->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralGeoposition ), NULL, this );
-    btnModifyGeneralGeoposition->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralGeoposition ), NULL, this );
-    btnDeleteGeneralGeoposition->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralGeoposition ), NULL, this );
-    btnAddRelated->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralRelated ), NULL, this );
-    btnModifyRelated->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralRelated ), NULL, this );
-    btnDeleteRelated->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralRelated ), NULL, this );
-    btnAddWebsite->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralWebsite ), NULL, this );
-    btnModifyWebsite->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralWebsite ), NULL, this );
-    btnDeleteWebsite->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralWebsite ), NULL, this );
-    btnAddTitle->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralTitle ), NULL, this );
-    btnModifyTitle->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralTitle ), NULL, this );
-    btnDeleteTitle->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralTitle ), NULL, this );
-    btnAddRole->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralRole ), NULL, this );
-    btnModifyRole->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralRole ), NULL, this );
-    btnDeleteRole->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralRole ), NULL, this );
-    btnAddOrganisations->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralOrganisation ), NULL, this );
-    btnModifyOrganisations->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralOrganisation ), NULL, this );
-    btnDeleteOrganisations->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralOrganisation ), NULL, this );
-    btnAddNote->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralNote ), NULL, this );
-    btnModifyNote->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralNote ), NULL, this );
-    btnDeleteNote->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralNote ), NULL, this );
-    btnAddHomeNickname->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeNickname ), NULL, this );
-    btnModifyHomeNickname->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeNickname ), NULL, this );
-    btnDeleteHomeNickname->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeNickname ), NULL, this );
-    btnAddHomeAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeAddress ), NULL, this );
-    btnModifyHomeAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeAddress ), NULL, this );
-    btnDeleteHomeAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeAddress ), NULL, this );
-    btnAddHomeEmailAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeEmail ), NULL, this );
-    btnModifyHomeEmailAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeEmail ), NULL, this );
-    btnDeleteHomeEmailAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeEmail ), NULL, this );
-    btnAddHomeIMAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeIM ), NULL, this );
-    btnModifyHomeIMAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeIM ), NULL, this );
-    btnDeleteHomeIMAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeIM ), NULL, this );
-    btnAddHomeTelephone->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeTelephone ), NULL, this );
-    btnModifyHomeTelephone->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeTelephone ), NULL, this );
-    btnDeleteHomeTelephone->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeTelephone ), NULL, this );
-    btnAddHomeLanguage->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeLanguage ), NULL, this );
-    btnModifyHomeLanguage->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeLanguage ), NULL, this );
-    btnDeleteHomeLanguage->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeLanguage ), NULL, this );
-    btnAddHomeTimezone->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeTimezone ), NULL, this );
-    btnModifyHomeTimezone->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeTimezone ), NULL, this );
-    btnDeleteHomeTimezone->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeTimezone ), NULL, this );
-    btnAddHomeGeoposition->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeGeoposition ), NULL, this );
-    btnModifyHomeGeoposition->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeGeoposition ), NULL, this );
-    btnDeleteHomePosition->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeGeoposition ), NULL, this );
-    btnAddHomeWebsite->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeWebsite ), NULL, this );
-    btnHomeModifyWebsite->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeWebsite ), NULL, this );
-    btnDeleteHomeWebsite->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeWebsite ), NULL, this );
-    btnAddHomeTitle->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeTitle ), NULL, this );
-    btnModifyHomeTitle->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeTitle ), NULL, this );
-    btnDeleteHomeTitle->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeTitle ), NULL, this );
-    btnAddHomeRole->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeRole ), NULL, this );
-    btnModifyHomeRole->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeRole ), NULL, this );
-    btnDeleteHomeRole->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeRole ), NULL, this );
-    btnAddHomeOrganisations->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeOrganisation ), NULL, this );
-    btnModifyHomeOrganisations->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeOrganisation ), NULL, this );
-    btnDeleteHomeOrganisations->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeOrganisation ), NULL, this );
-    btnAddHomeNote->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeNote ), NULL, this );
-    btnModifyHomeNote->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeNote ), NULL, this );
-    btnDeleteHomeNote->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeNote ), NULL, this );
-    btnAddBusinessNickname->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessNickname ), NULL, this );
-    btnModifyBusinessNickname->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessNickname ), NULL, this );
-    btnDeleteBusinessNickname->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessNickname ), NULL, this );
-    btnAddBusinessAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessAddress ), NULL, this );
-    btnModifyBusinessAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessAddress ), NULL, this );
-    btnDeleteBusinessAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessAddress ), NULL, this );
-    btnAddBusinessEmailAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessEmail ), NULL, this );
-    btnModifyBusinessEmailAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessEmail ), NULL, this );
-    btnDeleteBusinessEmailAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessEmail ), NULL, this );
-    btnAddBusinessIMAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessIM ), NULL, this );
-    btnModifyBusinessIMAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessIM ), NULL, this );
-    btnDeleteBusinessIMAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessIM ), NULL, this );
-    btnBusinessAddTelephone->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessTelephone ), NULL, this );
-    btnBusinessModifyTelephone->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessTelephone ), NULL, this );
-    btnBusinessDeleteTelephone->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessTelephone ), NULL, this );
-    btnBusinessAddLanguage->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessLanguage ), NULL, this );
-    btnBusinessModifyLanguage->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessLanguage ), NULL, this );
-    btnBusinessDeleteLanguage->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessLanguage ), NULL, this );
-    btnBusinessAddTimezone->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessTimezone ), NULL, this );
-    btnBusinessModifyTimezone->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessTimezone ), NULL, this );
-    btnDeleteBusinessTimezone->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessTimezone ), NULL, this );
-    btnAddBusinessGeoposition->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessGeoposition ), NULL, this );
-    btnModifyBusinessGeoposition->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessGeoposition ), NULL, this );
-    btnDeleteBusinessGeoposition->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessGeoposition ), NULL, this );
-    btnAddBusinessWebsite->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessWebsite ), NULL, this );
-    btnModifyBusinessWebsite->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessWebsite ), NULL, this );
-    btnDeleteBusinessWebsite->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessWebsite ), NULL, this );
-    btnAddBusinessTitle->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessTitle ), NULL, this );
-    btnModifyBusinessTitle->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessTitle ), NULL, this );
-    btnDeleteBusinessTitle->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessTitle ), NULL, this );
-    btnAddBusinessRole->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessRole ), NULL, this );
-    btnModifyBusinessRole->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessRole ), NULL, this );
-    btnDeleteBusinessRole->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessRole ), NULL, this );
-    btnAddBusinessOrganisations->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessOrganisation ), NULL, this );
-    btnModifyBusinessOrganisations->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessOrganisation ), NULL, this );
-    btnDeleteBusinessOrganisations->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessOrganisation ), NULL, this );
-    btnBusinessAddNote->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessNote ), NULL, this );
-    btnBusinessModifyNote->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessNote ), NULL, this );
-    btnBusinessDeleteNote->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessNote ), NULL, this );
-    btnAddCategory->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddCategory ), NULL, this );
-    btnModifyCategory->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyCategory ), NULL, this );
-    btnDeleteCategory->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteCategory ), NULL, this );
-    btnAddGroups->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGroup ), NULL, this );
-    btnModifyGroups->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGroup ), NULL, this );
-    btnDeleteGroups->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGroup ), NULL, this );
-    lboPictures->Disconnect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( frmContactEditorADT::LoadPicture ), NULL, this );
-    btnAddPicture->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddPicture ), NULL, this );
-    btnModifyPicture->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyPicture ), NULL, this );
-    btnDeletePicture->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeletePicture ), NULL, this );
-    lboLogos->Disconnect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( frmContactEditorADT::LoadLogo ), NULL, this );
-    btnAddLogo->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddLogo ), NULL, this );
-    btnModifyLogo->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyLogo ), NULL, this );
-    btnDeleteLogo->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteLogo ), NULL, this );
-    btnAddSound->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddSound ), NULL, this );
-    btnModifySound->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifySound ), NULL, this );
-    btnDeleteSound->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteSound ), NULL, this );
-    btnPlay->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::PlaySound ), NULL, this );
-    btnStop->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::StopSound ), NULL, this );
-    btnAddCalendarAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddCalendarAddress ), NULL, this );
-    btnModifyCalendarAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyCalendarAddress ), NULL, this );
-    btnDeleteCalendarAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteCalendarAddress ), NULL, this );
-    btnAddCalendarRequestAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddCalendarRequest ), NULL, this );
-    btnModifyCalendarRequestAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyCalendarRequest ), NULL, this );
-    btnDeleteCalendarRequestAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteCalendarAddress ), NULL, this );
-    btnAddFreeBusyAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddFreeBusy ), NULL, this );
-    btnModifyFreeBusyAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyFreeBusy ), NULL, this );
-    btnDeleteFreeBusyAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteFreeBusy ), NULL, this );
-    btnAddKey->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddKey ), NULL, this );
-    btnModifyKey->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyKey ), NULL, this );
-    btnDeleteKey->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteKey ), NULL, this );
-    btnAddVendorNamespace->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddVendorNamespace ), NULL, this );
-    btnModifyVendorNamespace->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyVendorNamespace ), NULL, this );
-    btnDeleteVendorNamespace->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteVendorNamespace ), NULL, this );
-    btnAddXToken->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddXToken ), NULL, this );
-    btnModifyXToken->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyXToken ), NULL, this );
-    btnDeleteXToken->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteXToken ), NULL, this );
-    this->Disconnect( CONTACT_SAVE, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmContactEditorADT::SaveContact ) );
-    this->Disconnect( CONTACT_SAVECLOSE, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmContactEditorADT::SaveCloseContact ) );
-    this->Disconnect( CONTACT_CLOSE, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmContactEditorADT::CloseContact ) );
-    this->Disconnect( wxID_CUT, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmContactEditorADT::CutText ) );
-    this->Disconnect( wxID_COPY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmContactEditorADT::CopyText ) );
-    this->Disconnect( wxID_PASTE, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmContactEditorADT::PasteText ) );
-    
-}
-
-frmContactEditorAddressADT::frmContactEditorAddressADT( 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* bSizer251;
-    bSizer251 = new wxBoxSizer( wxVERTICAL );
-    
-    nbkAddress = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
-    tabGeneral = new wxPanel( nbkAddress, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
-    wxFlexGridSizer* fgSizer6;
-    fgSizer6 = new wxFlexGridSizer( 2, 2, 0, 0 );
-    fgSizer6->AddGrowableCol( 1 );
-    fgSizer6->SetFlexibleDirection( wxVERTICAL );
-    fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
-    
-    lblAddress = new wxStaticText( tabGeneral, wxID_ANY, wxT("Address:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblAddress->Wrap( -1 );
-    fgSizer6->Add( lblAddress, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-    
-    txtAddress = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
-    txtAddress->SetMaxLength( 0 );
-    fgSizer6->Add( txtAddress, 0, wxALL|wxEXPAND, 5 );
-    
-    m_staticText61 = new wxStaticText( tabGeneral, wxID_ANY, wxT("Town/City:"), wxDefaultPosition, wxDefaultSize, 0 );
-    m_staticText61->Wrap( -1 );
-    fgSizer6->Add( m_staticText61, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-    
-    txtTownCity = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
-    txtTownCity->SetMaxLength( 0 );
-    fgSizer6->Add( txtTownCity, 0, wxALL|wxEXPAND, 5 );
-    
-    lblCountyState = new wxStaticText( tabGeneral, wxID_ANY, wxT("County:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblCountyState->Wrap( -1 );
-    fgSizer6->Add( lblCountyState, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-    
-    txtCounty = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
-    txtCounty->SetMaxLength( 0 );
-    fgSizer6->Add( txtCounty, 0, wxALL|wxEXPAND, 5 );
-    
-    lblPostCode = new wxStaticText( tabGeneral, wxID_ANY, wxT("Post Code:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblPostCode->Wrap( -1 );
-    fgSizer6->Add( lblPostCode, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-    
-    txtPostCode = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
-    txtPostCode->SetMaxLength( 0 );
-    fgSizer6->Add( txtPostCode, 0, wxALL, 5 );
-    
-    lblCountry = new wxStaticText( tabGeneral, wxID_ANY, wxT("Country:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblCountry->Wrap( -1 );
-    fgSizer6->Add( lblCountry, 0, wxALL, 5 );
-    
-    txtCountry = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
-    txtCountry->SetMaxLength( 0 );
-    fgSizer6->Add( txtCountry, 0, wxALL|wxEXPAND, 5 );
-    
-    lblPriority = new wxStaticText( tabGeneral, wxID_ANY, wxT("Priority:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblPriority->Wrap( -1 );
-    fgSizer6->Add( lblPriority, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer260;
-    bSizer260 = new wxBoxSizer( wxHORIZONTAL );
-    
-    chkUsePref = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Use"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer260->Add( chkUsePref, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer254;
-    bSizer254 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer256;
-    bSizer256 = new wxBoxSizer( wxHORIZONTAL );
-    
-    sliPriority = new wxSlider( tabGeneral, wxID_ANY, 0, 1, 100, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL|wxSL_LABELS );
-    bSizer256->Add( sliPriority, 1, wxALL|wxEXPAND, 5 );
-    
-    
-    bSizer254->Add( bSizer256, 1, wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer255;
-    bSizer255 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lblHigh = new wxStaticText( tabGeneral, wxID_ANY, wxT("High"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblHigh->Wrap( -1 );
-    bSizer255->Add( lblHigh, 0, wxALIGN_LEFT|wxALL, 5 );
-    
-    
-    bSizer255->Add( 0, 0, 1, wxEXPAND, 5 );
-    
-    lblLow = new wxStaticText( tabGeneral, wxID_ANY, wxT("Low"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblLow->Wrap( -1 );
-    bSizer255->Add( lblLow, 0, wxALIGN_RIGHT|wxALL, 5 );
-    
-    
-    bSizer254->Add( bSizer255, 1, wxEXPAND, 0 );
-    
-    
-    bSizer260->Add( bSizer254, 1, wxEXPAND, 5 );
-    
-    
-    fgSizer6->Add( bSizer260, 1, wxEXPAND, 5 );
-    
-    
-    fgSizer6->Add( 0, 0, 1, wxEXPAND, 5 );
-    
-    
-    tabGeneral->SetSizer( fgSizer6 );
-    tabGeneral->Layout();
-    fgSizer6->Fit( tabGeneral );
-    nbkAddress->AddPage( tabGeneral, wxT("General"), true );
-    tabLabel = new wxPanel( nbkAddress, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
-    wxBoxSizer* bSizer253;
-    bSizer253 = new wxBoxSizer( wxVERTICAL );
-    
-    btnCopyMailing = new wxButton( tabLabel, wxID_ANY, wxT("Copy Address to Label"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer253->Add( btnCopyMailing, 0, wxALL, 5 );
-    
-    txtLabel = new wxTextCtrl( tabLabel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE );
-    txtLabel->SetMaxLength( 0 );
-    bSizer253->Add( txtLabel, 1, wxALL|wxEXPAND, 5 );
-    
-    
-    tabLabel->SetSizer( bSizer253 );
-    tabLabel->Layout();
-    bSizer253->Fit( tabLabel );
-    nbkAddress->AddPage( tabLabel, wxT("Label"), false );
-    tabOther = new wxPanel( nbkAddress, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
-    wxFlexGridSizer* fgSizer61;
-    fgSizer61 = new wxFlexGridSizer( 2, 2, 0, 0 );
-    fgSizer61->AddGrowableCol( 1 );
-    fgSizer61->SetFlexibleDirection( wxVERTICAL );
-    fgSizer61->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
-    
-    lblLanguage = new wxStaticText( tabOther, wxID_ANY, wxT("Language:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblLanguage->Wrap( -1 );
-    fgSizer61->Add( lblLanguage, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-    
-    cmbLanguage = new wxComboBox( tabOther, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
-    fgSizer61->Add( cmbLanguage, 0, wxALL, 5 );
-    
-    lblGeography = new wxStaticText( tabOther, wxID_ANY, wxT("Geopositioning:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblGeography->Wrap( -1 );
-    fgSizer61->Add( lblGeography, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-    
-    txtGeo = new wxTextCtrl( tabOther, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
-    txtGeo->SetMaxLength( 0 );
-    fgSizer61->Add( txtGeo, 0, wxALL|wxEXPAND, 5 );
-    
-    lblTimezone = new wxStaticText( tabOther, wxID_ANY, wxT("Timezone:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblTimezone->Wrap( -1 );
-    fgSizer61->Add( lblTimezone, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-    
-    txtTimezone = new wxTextCtrl( tabOther, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
-    txtTimezone->SetMaxLength( 0 );
-    fgSizer61->Add( txtTimezone, 0, wxALL|wxEXPAND, 5 );
-    
-    
-    tabOther->SetSizer( fgSizer61 );
-    tabOther->Layout();
-    fgSizer61->Fit( tabOther );
-    nbkAddress->AddPage( tabOther, wxT("Other"), false );
-    
-    bSizer251->Add( nbkAddress, 1, wxEXPAND | wxALL, 5 );
-    
-    wxBoxSizer* bSizer252;
-    bSizer252 = new wxBoxSizer( wxHORIZONTAL );
-    
-    btnAction = new wxButton( this, wxID_ANY, wxT("Action"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer252->Add( btnAction, 0, wxALL, 5 );
-    
-    btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer252->Add( btnClose, 0, wxALL, 5 );
-    
-    
-    bSizer251->Add( bSizer252, 0, wxALIGN_RIGHT, 5 );
-    
-    
-    this->SetSizer( bSizer251 );
-    this->Layout();
-    
-    this->Centre( wxBOTH );
-    
-    // Connect Events
-    this->Connect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( frmContactEditorAddressADT::InitAddressEditor ) );
-    chkUsePref->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorAddressADT::EnablePriority ), NULL, this );
-    btnCopyMailing->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorAddressADT::CopyAddress ), NULL, this );
-    btnAction->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorAddressADT::ProcessData ), NULL, this );
-    btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorAddressADT::CloseWindow ), NULL, this );
-}
-
-frmContactEditorAddressADT::~frmContactEditorAddressADT()
-{
-    // Disconnect Events
-    this->Disconnect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( frmContactEditorAddressADT::InitAddressEditor ) );
-    chkUsePref->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorAddressADT::EnablePriority ), NULL, this );
-    btnCopyMailing->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorAddressADT::CopyAddress ), NULL, this );
-    btnAction->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorAddressADT::ProcessData ), NULL, this );
-    btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorAddressADT::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 );
-    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 );
-    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,300 ), 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();
-    
-    wxMenuItem* mnuSleepMode;
-    mnuSleepMode = new wxMenuItem( mnuWindow, wxID_ANY, wxString( wxT("Sleep Mode") ) , wxEmptyString, wxITEM_CHECK );
-#ifdef __WXMSW__
-    mnuSleepMode->SetBitmaps( wxNullBitmap );
-#elif defined( __WXGTK__ )
-    mnuSleepMode->SetBitmap( wxNullBitmap );
-#endif
-    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, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|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 ) );
-    
-}
-
-frmContactEditorNicknameADT::frmContactEditorNicknameADT( 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* bSizer251;
-    bSizer251 = new wxBoxSizer( wxVERTICAL );
-    
-    nbkAddress = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
-    tabGeneral = new wxPanel( nbkAddress, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
-    wxFlexGridSizer* fgSizer6;
-    fgSizer6 = new wxFlexGridSizer( 0, 2, 0, 0 );
-    fgSizer6->AddGrowableCol( 1 );
-    fgSizer6->SetFlexibleDirection( wxVERTICAL );
-    fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
-    
-    lblNickname = new wxStaticText( tabGeneral, wxID_ANY, wxT("Nickname:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblNickname->Wrap( -1 );
-    fgSizer6->Add( lblNickname, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-    
-    txtNickname = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
-    txtNickname->SetMaxLength( 0 );
-    fgSizer6->Add( txtNickname, 0, wxALL|wxEXPAND, 5 );
-    
-    lblPriority = new wxStaticText( tabGeneral, wxID_ANY, wxT("Priority:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblPriority->Wrap( -1 );
-    fgSizer6->Add( lblPriority, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer260;
-    bSizer260 = new wxBoxSizer( wxHORIZONTAL );
-    
-    chkUsePref = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Use"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer260->Add( chkUsePref, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer254;
-    bSizer254 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer256;
-    bSizer256 = new wxBoxSizer( wxHORIZONTAL );
-    
-    sliPriority = new wxSlider( tabGeneral, wxID_ANY, 0, 1, 100, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL|wxSL_LABELS );
-    bSizer256->Add( sliPriority, 1, wxALL|wxEXPAND, 5 );
-    
-    
-    bSizer254->Add( bSizer256, 1, wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer255;
-    bSizer255 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lblHigh = new wxStaticText( tabGeneral, wxID_ANY, wxT("High"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblHigh->Wrap( -1 );
-    bSizer255->Add( lblHigh, 0, wxALIGN_LEFT|wxALL, 5 );
-    
-    
-    bSizer255->Add( 0, 0, 1, wxEXPAND, 5 );
-    
-    lblLow = new wxStaticText( tabGeneral, wxID_ANY, wxT("Low"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblLow->Wrap( -1 );
-    bSizer255->Add( lblLow, 0, wxALIGN_RIGHT|wxALL, 5 );
-    
-    
-    bSizer254->Add( bSizer255, 1, wxEXPAND, 0 );
-    
-    
-    bSizer260->Add( bSizer254, 1, wxEXPAND, 5 );
-    
-    
-    fgSizer6->Add( bSizer260, 1, wxEXPAND, 5 );
-    
-    
-    fgSizer6->Add( 0, 0, 1, wxEXPAND, 5 );
-    
-    
-    tabGeneral->SetSizer( fgSizer6 );
-    tabGeneral->Layout();
-    fgSizer6->Fit( tabGeneral );
-    nbkAddress->AddPage( tabGeneral, wxT("General"), true );
-    tabOther = new wxPanel( nbkAddress, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
-    wxFlexGridSizer* fgSizer61;
-    fgSizer61 = new wxFlexGridSizer( 0, 2, 0, 0 );
-    fgSizer61->AddGrowableCol( 1 );
-    fgSizer61->SetFlexibleDirection( wxBOTH );
-    fgSizer61->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
-    
-    lblLanguage = new wxStaticText( tabOther, wxID_ANY, wxT("Language:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblLanguage->Wrap( -1 );
-    fgSizer61->Add( lblLanguage, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-    
-    cmbLanguage = new wxComboBox( tabOther, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
-    fgSizer61->Add( cmbLanguage, 1, wxALL|wxEXPAND, 5 );
-    
-    
-    tabOther->SetSizer( fgSizer61 );
-    tabOther->Layout();
-    fgSizer61->Fit( tabOther );
-    nbkAddress->AddPage( tabOther, wxT("Other"), false );
-    
-    bSizer251->Add( nbkAddress, 1, wxEXPAND | wxALL, 5 );
-    
-    wxBoxSizer* bSizer252;
-    bSizer252 = new wxBoxSizer( wxHORIZONTAL );
-    
-    btnAction = new wxButton( this, wxID_ANY, wxT("Action"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer252->Add( btnAction, 0, wxALL, 5 );
-    
-    btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer252->Add( btnClose, 0, wxALL, 5 );
-    
-    
-    bSizer251->Add( bSizer252, 0, wxALIGN_RIGHT, 5 );
-    
-    
-    this->SetSizer( bSizer251 );
-    this->Layout();
-    
-    this->Centre( wxBOTH );
-    
-    // Connect Events
-    this->Connect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( frmContactEditorNicknameADT::InitAddressEditor ) );
-    chkUsePref->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorNicknameADT::EnablePriority ), NULL, this );
-    btnAction->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorNicknameADT::ProcessData ), NULL, this );
-    btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorNicknameADT::CloseWindow ), NULL, this );
-}
-
-frmContactEditorNicknameADT::~frmContactEditorNicknameADT()
-{
-    // Disconnect Events
-    this->Disconnect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( frmContactEditorNicknameADT::InitAddressEditor ) );
-    chkUsePref->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorNicknameADT::EnablePriority ), NULL, this );
-    btnAction->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorNicknameADT::ProcessData ), NULL, this );
-    btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorNicknameADT::CloseWindow ), NULL, this );
-    
-}
-
-frmContactEditorGroupsADT::frmContactEditorGroupsADT( 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( -1,-1 ), wxDefaultSize );
-    
-    wxBoxSizer* bSizer251;
-    bSizer251 = new wxBoxSizer( wxVERTICAL );
-    
-    nbkGroup = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
-    tabGeneral = new wxPanel( nbkGroup, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
-    wxFlexGridSizer* fgSizer6;
-    fgSizer6 = new wxFlexGridSizer( 0, 2, 0, 0 );
-    fgSizer6->AddGrowableCol( 1 );
-    fgSizer6->AddGrowableRow( 0 );
-    fgSizer6->SetFlexibleDirection( wxVERTICAL );
-    fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
-    
-    lblContacts = new wxStaticText( tabGeneral, wxID_ANY, wxT("Contacts:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblContacts->Wrap( -1 );
-    fgSizer6->Add( lblContacts, 0, wxALIGN_TOP|wxALL, 5 );
-    
-    wxArrayString chkContactsChoices;
-    chkContacts = new wxCheckListBox( tabGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, chkContactsChoices, wxLB_ALWAYS_SB|wxLB_MULTIPLE );
-    fgSizer6->Add( chkContacts, 1, wxALL|wxEXPAND, 5 );
-    
-    
-    fgSizer6->Add( 0, 0, 1, wxEXPAND, 5 );
-    
-    
-    tabGeneral->SetSizer( fgSizer6 );
-    tabGeneral->Layout();
-    fgSizer6->Fit( tabGeneral );
-    nbkGroup->AddPage( tabGeneral, wxT("General"), false );
-    
-    bSizer251->Add( nbkGroup, 1, wxEXPAND | wxALL, 5 );
-    
-    wxBoxSizer* bSizer252;
-    bSizer252 = new wxBoxSizer( wxHORIZONTAL );
-    
-    btnAction = new wxButton( this, wxID_ANY, wxT("Action"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer252->Add( btnAction, 0, wxALL, 5 );
-    
-    btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer252->Add( btnClose, 0, wxALL, 5 );
-    
-    
-    bSizer251->Add( bSizer252, 0, wxALIGN_RIGHT, 5 );
-    
-    
-    this->SetSizer( bSizer251 );
-    this->Layout();
-    
-    this->Centre( wxBOTH );
-    
-    // Connect Events
-    this->Connect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( frmContactEditorGroupsADT::FetchContacts ) );
-    btnAction->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorGroupsADT::ProcessData ), NULL, this );
-    btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorGroupsADT::CloseWindow ), NULL, this );
-}
-
-frmContactEditorGroupsADT::~frmContactEditorGroupsADT()
-{
-    // Disconnect Events
-    this->Disconnect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( frmContactEditorGroupsADT::FetchContacts ) );
-    btnAction->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorGroupsADT::ProcessData ), NULL, this );
-    btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorGroupsADT::CloseWindow ), NULL, this );
-    
-}
-
-frmContactEditorRolesADT::frmContactEditorRolesADT( 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* bSizer251;
-    bSizer251 = new wxBoxSizer( wxVERTICAL );
-    
-    nbkRole = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
-    tabGeneral = new wxPanel( nbkRole, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
-    wxFlexGridSizer* fgSizer6;
-    fgSizer6 = new wxFlexGridSizer( 0, 2, 0, 0 );
-    fgSizer6->AddGrowableCol( 1 );
-    fgSizer6->SetFlexibleDirection( wxVERTICAL );
-    fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
-    
-    lblRole = new wxStaticText( tabGeneral, wxID_ANY, wxT("Role Name:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblRole->Wrap( -1 );
-    fgSizer6->Add( lblRole, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-    
-    txtRole = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
-    txtRole->SetMaxLength( 0 );
-    fgSizer6->Add( txtRole, 0, wxALL|wxEXPAND, 5 );
-    
-    lblPriority = new wxStaticText( tabGeneral, wxID_ANY, wxT("Priority:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblPriority->Wrap( -1 );
-    fgSizer6->Add( lblPriority, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer260;
-    bSizer260 = new wxBoxSizer( wxHORIZONTAL );
-    
-    chkUsePref = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Use"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer260->Add( chkUsePref, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer254;
-    bSizer254 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer256;
-    bSizer256 = new wxBoxSizer( wxHORIZONTAL );
-    
-    sliPriority = new wxSlider( tabGeneral, wxID_ANY, 0, 1, 100, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL|wxSL_LABELS );
-    bSizer256->Add( sliPriority, 1, wxALL|wxEXPAND, 5 );
-    
-    
-    bSizer254->Add( bSizer256, 1, wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer255;
-    bSizer255 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lblHigh = new wxStaticText( tabGeneral, wxID_ANY, wxT("High"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblHigh->Wrap( -1 );
-    bSizer255->Add( lblHigh, 0, wxALIGN_LEFT|wxALL, 5 );
-    
-    
-    bSizer255->Add( 0, 0, 1, wxEXPAND, 5 );
-    
-    lblLow = new wxStaticText( tabGeneral, wxID_ANY, wxT("Low"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblLow->Wrap( -1 );
-    bSizer255->Add( lblLow, 0, wxALIGN_RIGHT|wxALL, 5 );
-    
-    
-    bSizer254->Add( bSizer255, 1, wxEXPAND, 0 );
-    
-    
-    bSizer260->Add( bSizer254, 1, wxEXPAND, 5 );
-    
-    
-    fgSizer6->Add( bSizer260, 1, wxEXPAND, 5 );
-    
-    
-    fgSizer6->Add( 0, 0, 1, wxEXPAND, 5 );
-    
-    
-    tabGeneral->SetSizer( fgSizer6 );
-    tabGeneral->Layout();
-    fgSizer6->Fit( tabGeneral );
-    nbkRole->AddPage( tabGeneral, wxT("General"), false );
-    
-    bSizer251->Add( nbkRole, 1, wxEXPAND | wxALL, 5 );
-    
-    wxBoxSizer* bSizer252;
-    bSizer252 = new wxBoxSizer( wxHORIZONTAL );
-    
-    btnAction = new wxButton( this, wxID_ANY, wxT("Action"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer252->Add( btnAction, 0, wxALL, 5 );
-    
-    btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer252->Add( btnClose, 0, wxALL, 5 );
-    
-    
-    bSizer251->Add( bSizer252, 0, wxALIGN_RIGHT, 5 );
-    
-    
-    this->SetSizer( bSizer251 );
-    this->Layout();
-    
-    this->Centre( wxBOTH );
-    
-    // Connect Events
-    chkUsePref->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorRolesADT::EnablePriority ), NULL, this );
-    btnAction->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorRolesADT::ProcessAction ), NULL, this );
-    btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorRolesADT::CloseWindow ), NULL, this );
-}
-
-frmContactEditorRolesADT::~frmContactEditorRolesADT()
-{
-    // Disconnect Events
-    chkUsePref->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorRolesADT::EnablePriority ), NULL, this );
-    btnAction->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorRolesADT::ProcessAction ), NULL, this );
-    btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorRolesADT::CloseWindow ), NULL, this );
-    
-}
-
-frmContactEditorOrganisationsADT::frmContactEditorOrganisationsADT( 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* bSizer251;
-    bSizer251 = new wxBoxSizer( wxVERTICAL );
-    
-    nbkOrganisation = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
-    tabGeneral = new wxPanel( nbkOrganisation, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
-    wxFlexGridSizer* fgSizer6;
-    fgSizer6 = new wxFlexGridSizer( 0, 2, 0, 0 );
-    fgSizer6->AddGrowableCol( 1 );
-    fgSizer6->SetFlexibleDirection( wxBOTH );
-    fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
-    
-    lblOrganisation = new wxStaticText( tabGeneral, wxID_ANY, wxT("Organisation:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblOrganisation->Wrap( -1 );
-    fgSizer6->Add( lblOrganisation, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-    
-    txtOrganisation = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
-    txtOrganisation->SetMaxLength( 0 );
-    fgSizer6->Add( txtOrganisation, 0, wxALL|wxEXPAND, 5 );
-    
-    lblSortAs = new wxStaticText( tabGeneral, wxID_ANY, wxT("Sort As:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblSortAs->Wrap( -1 );
-    fgSizer6->Add( lblSortAs, 0, wxALL, 5 );
-    
-    cmbSortAs = new wxComboBox( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
-    fgSizer6->Add( cmbSortAs, 1, wxALL, 5 );
-    
-    lblPriority = new wxStaticText( tabGeneral, wxID_ANY, wxT("Priority:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblPriority->Wrap( -1 );
-    fgSizer6->Add( lblPriority, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer260;
-    bSizer260 = new wxBoxSizer( wxHORIZONTAL );
-    
-    chkUsePref = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Use"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer260->Add( chkUsePref, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer254;
-    bSizer254 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer256;
-    bSizer256 = new wxBoxSizer( wxHORIZONTAL );
-    
-    sliPriority = new wxSlider( tabGeneral, wxID_ANY, 0, 1, 100, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL|wxSL_LABELS );
-    bSizer256->Add( sliPriority, 1, wxALL|wxEXPAND, 5 );
-    
-    
-    bSizer254->Add( bSizer256, 1, wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer255;
-    bSizer255 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lblHigh = new wxStaticText( tabGeneral, wxID_ANY, wxT("High"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblHigh->Wrap( -1 );
-    bSizer255->Add( lblHigh, 0, wxALIGN_LEFT|wxALL, 5 );
-    
-    
-    bSizer255->Add( 0, 0, 1, wxEXPAND, 5 );
-    
-    lblLow = new wxStaticText( tabGeneral, wxID_ANY, wxT("Low"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblLow->Wrap( -1 );
-    bSizer255->Add( lblLow, 0, wxALIGN_RIGHT|wxALL, 5 );
-    
-    
-    bSizer254->Add( bSizer255, 1, wxEXPAND, 0 );
-    
-    
-    bSizer260->Add( bSizer254, 1, wxEXPAND, 5 );
-    
-    
-    fgSizer6->Add( bSizer260, 1, wxEXPAND, 5 );
-    
-    
-    fgSizer6->Add( 0, 0, 1, wxEXPAND, 5 );
-    
-    
-    tabGeneral->SetSizer( fgSizer6 );
-    tabGeneral->Layout();
-    fgSizer6->Fit( tabGeneral );
-    nbkOrganisation->AddPage( tabGeneral, wxT("General"), false );
-    
-    bSizer251->Add( nbkOrganisation, 1, wxEXPAND | wxALL, 5 );
-    
-    wxBoxSizer* bSizer252;
-    bSizer252 = new wxBoxSizer( wxHORIZONTAL );
-    
-    btnAction = new wxButton( this, wxID_ANY, wxT("Action"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer252->Add( btnAction, 0, wxALL, 5 );
-    
-    btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer252->Add( btnClose, 0, wxALL, 5 );
-    
-    
-    bSizer251->Add( bSizer252, 0, wxALIGN_RIGHT, 5 );
-    
-    
-    this->SetSizer( bSizer251 );
-    this->Layout();
-    
-    this->Centre( wxBOTH );
-    
-    // Connect Events
-    txtOrganisation->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( frmContactEditorOrganisationsADT::UpdateSortAs ), NULL, this );
-    chkUsePref->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorOrganisationsADT::EnablePriority ), NULL, this );
-    btnAction->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorOrganisationsADT::ProcessAction ), NULL, this );
-    btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorOrganisationsADT::CloseWindow ), NULL, this );
-}
-
-frmContactEditorOrganisationsADT::~frmContactEditorOrganisationsADT()
-{
-    // Disconnect Events
-    txtOrganisation->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( frmContactEditorOrganisationsADT::UpdateSortAs ), NULL, this );
-    chkUsePref->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorOrganisationsADT::EnablePriority ), NULL, this );
-    btnAction->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorOrganisationsADT::ProcessAction ), NULL, this );
-    btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorOrganisationsADT::CloseWindow ), NULL, this );
-    
-}
-
-frmContactEditorNotesADT::frmContactEditorNotesADT( 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* bSizer251;
-    bSizer251 = new wxBoxSizer( wxVERTICAL );
-    
-    nbkNotes = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
-    tabGeneral = new wxPanel( nbkNotes, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
-    wxBoxSizer* bSizer353;
-    bSizer353 = new wxBoxSizer( wxVERTICAL );
-    
-    txtNote = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE );
-    txtNote->SetMaxLength( 0 );
-    bSizer353->Add( txtNote, 1, wxALL|wxEXPAND, 5 );
-    
-    
-    tabGeneral->SetSizer( bSizer353 );
-    tabGeneral->Layout();
-    bSizer353->Fit( tabGeneral );
-    nbkNotes->AddPage( tabGeneral, wxT("General"), true );
-    tabPriority = new wxPanel( nbkNotes, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
-    wxFlexGridSizer* fgSizer61;
-    fgSizer61 = new wxFlexGridSizer( 0, 2, 0, 0 );
-    fgSizer61->AddGrowableCol( 1 );
-    fgSizer61->SetFlexibleDirection( wxVERTICAL );
-    fgSizer61->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
-    
-    lblPriority = new wxStaticText( tabPriority, wxID_ANY, wxT("Priority:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblPriority->Wrap( -1 );
-    fgSizer61->Add( lblPriority, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer2601;
-    bSizer2601 = new wxBoxSizer( wxHORIZONTAL );
-    
-    chkUsePref = new wxCheckBox( tabPriority, wxID_ANY, wxT("Use"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer2601->Add( chkUsePref, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer2541;
-    bSizer2541 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer2561;
-    bSizer2561 = new wxBoxSizer( wxHORIZONTAL );
-    
-    sliPriority = new wxSlider( tabPriority, wxID_ANY, 0, 1, 100, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL|wxSL_LABELS );
-    bSizer2561->Add( sliPriority, 1, wxALL|wxEXPAND, 5 );
-    
-    
-    bSizer2541->Add( bSizer2561, 1, wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer2551;
-    bSizer2551 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lblHigh = new wxStaticText( tabPriority, wxID_ANY, wxT("High"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblHigh->Wrap( -1 );
-    bSizer2551->Add( lblHigh, 0, wxALIGN_LEFT|wxALL, 5 );
-    
-    
-    bSizer2551->Add( 0, 0, 1, wxEXPAND, 5 );
-    
-    lblLow = new wxStaticText( tabPriority, wxID_ANY, wxT("Low"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblLow->Wrap( -1 );
-    bSizer2551->Add( lblLow, 0, wxALIGN_RIGHT|wxALL, 5 );
-    
-    
-    bSizer2541->Add( bSizer2551, 1, wxEXPAND, 0 );
-    
-    
-    bSizer2601->Add( bSizer2541, 1, wxEXPAND, 5 );
-    
-    
-    fgSizer61->Add( bSizer2601, 1, wxEXPAND, 5 );
-    
-    
-    fgSizer61->Add( 0, 0, 1, wxEXPAND, 5 );
-    
-    
-    tabPriority->SetSizer( fgSizer61 );
-    tabPriority->Layout();
-    fgSizer61->Fit( tabPriority );
-    nbkNotes->AddPage( tabPriority, wxT("Priority"), false );
-    tabLanguage = new wxPanel( nbkNotes, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
-    wxFlexGridSizer* fgSizer611;
-    fgSizer611 = new wxFlexGridSizer( 0, 2, 0, 0 );
-    fgSizer611->AddGrowableCol( 0 );
-    fgSizer611->SetFlexibleDirection( wxBOTH );
-    fgSizer611->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
-    
-    lblLanguage = new wxStaticText( tabLanguage, wxID_ANY, wxT("Language:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblLanguage->Wrap( -1 );
-    fgSizer611->Add( lblLanguage, 1, wxALL, 5 );
-    
-    cmbLanguage = new wxComboBox( tabLanguage, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
-    fgSizer611->Add( cmbLanguage, 1, wxALL, 5 );
-    
-    
-    tabLanguage->SetSizer( fgSizer611 );
-    tabLanguage->Layout();
-    fgSizer611->Fit( tabLanguage );
-    nbkNotes->AddPage( tabLanguage, wxT("Language"), false );
-    
-    bSizer251->Add( nbkNotes, 1, wxEXPAND | wxALL, 5 );
-    
-    wxBoxSizer* bSizer252;
-    bSizer252 = new wxBoxSizer( wxHORIZONTAL );
-    
-    btnAction = new wxButton( this, wxID_ANY, wxT("Action"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer252->Add( btnAction, 0, wxALL, 5 );
-    
-    btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer252->Add( btnClose, 0, wxALL, 5 );
-    
-    
-    bSizer251->Add( bSizer252, 0, wxALIGN_RIGHT, 5 );
-    
-    
-    this->SetSizer( bSizer251 );
-    this->Layout();
-    
-    this->Centre( wxBOTH );
-    
-    // Connect Events
-    chkUsePref->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorNotesADT::EnablePriority ), NULL, this );
-    btnAction->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorNotesADT::ProcessAction ), NULL, this );
-    btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorNotesADT::CloseWindow ), NULL, this );
-}
-
-frmContactEditorNotesADT::~frmContactEditorNotesADT()
-{
-    // Disconnect Events
-    chkUsePref->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorNotesADT::EnablePriority ), NULL, this );
-    btnAction->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorNotesADT::ProcessAction ), NULL, this );
-    btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorNotesADT::CloseWindow ), NULL, this );
-    
-}
-
-frmContactEditorTitlesADT::frmContactEditorTitlesADT( 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* bSizer251;
-    bSizer251 = new wxBoxSizer( wxVERTICAL );
-    
-    nbkTitles = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
-    tabGeneral = new wxPanel( nbkTitles, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
-    wxFlexGridSizer* fgSizer6;
-    fgSizer6 = new wxFlexGridSizer( 0, 2, 0, 0 );
-    fgSizer6->AddGrowableCol( 1 );
-    fgSizer6->SetFlexibleDirection( wxVERTICAL );
-    fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
-    
-    lblTitle = new wxStaticText( tabGeneral, wxID_ANY, wxT("Title:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblTitle->Wrap( -1 );
-    fgSizer6->Add( lblTitle, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-    
-    txtTitle = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
-    txtTitle->SetMaxLength( 0 );
-    fgSizer6->Add( txtTitle, 0, wxALL|wxEXPAND, 5 );
-    
-    lblPriority = new wxStaticText( tabGeneral, wxID_ANY, wxT("Priority:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblPriority->Wrap( -1 );
-    fgSizer6->Add( lblPriority, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer260;
-    bSizer260 = new wxBoxSizer( wxHORIZONTAL );
-    
-    chkUsePref = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Use"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer260->Add( chkUsePref, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer254;
-    bSizer254 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer256;
-    bSizer256 = new wxBoxSizer( wxHORIZONTAL );
-    
-    sliPriority = new wxSlider( tabGeneral, wxID_ANY, 0, 1, 100, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL|wxSL_LABELS );
-    bSizer256->Add( sliPriority, 1, wxALL|wxEXPAND, 5 );
-    
-    
-    bSizer254->Add( bSizer256, 1, wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer255;
-    bSizer255 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lblHigh = new wxStaticText( tabGeneral, wxID_ANY, wxT("High"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblHigh->Wrap( -1 );
-    bSizer255->Add( lblHigh, 0, wxALIGN_LEFT|wxALL, 5 );
-    
-    
-    bSizer255->Add( 0, 0, 1, wxEXPAND, 5 );
-    
-    lblLow = new wxStaticText( tabGeneral, wxID_ANY, wxT("Low"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblLow->Wrap( -1 );
-    bSizer255->Add( lblLow, 0, wxALIGN_RIGHT|wxALL, 5 );
-    
-    
-    bSizer254->Add( bSizer255, 1, wxEXPAND, 0 );
-    
-    
-    bSizer260->Add( bSizer254, 1, wxEXPAND, 5 );
-    
-    
-    fgSizer6->Add( bSizer260, 1, wxEXPAND, 5 );
-    
-    
-    fgSizer6->Add( 0, 0, 1, wxEXPAND, 5 );
-    
-    
-    tabGeneral->SetSizer( fgSizer6 );
-    tabGeneral->Layout();
-    fgSizer6->Fit( tabGeneral );
-    nbkTitles->AddPage( tabGeneral, wxT("General"), false );
-    
-    bSizer251->Add( nbkTitles, 1, wxEXPAND | wxALL, 5 );
-    
-    wxBoxSizer* bSizer252;
-    bSizer252 = new wxBoxSizer( wxHORIZONTAL );
-    
-    btnAction = new wxButton( this, wxID_ANY, wxT("Action"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer252->Add( btnAction, 0, wxALL, 5 );
-    
-    btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer252->Add( btnClose, 0, wxALL, 5 );
-    
-    
-    bSizer251->Add( bSizer252, 0, wxALIGN_RIGHT, 5 );
-    
-    
-    this->SetSizer( bSizer251 );
-    this->Layout();
-    
-    this->Centre( wxBOTH );
-    
-    // Connect Events
-    chkUsePref->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorTitlesADT::EnablePriority ), NULL, this );
-    btnAction->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorTitlesADT::ProcessAction ), NULL, this );
-    btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorTitlesADT::CloseWindow ), NULL, this );
-}
-
-frmContactEditorTitlesADT::~frmContactEditorTitlesADT()
-{
-    // Disconnect Events
-    chkUsePref->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorTitlesADT::EnablePriority ), NULL, this );
-    btnAction->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorTitlesADT::ProcessAction ), NULL, this );
-    btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorTitlesADT::CloseWindow ), NULL, this );
-    
-}
-
-frmContactEditorRelatedADT::frmContactEditorRelatedADT( 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* bSizer251;
-    bSizer251 = new wxBoxSizer( wxVERTICAL );
-    
-    nbkRelated = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
-    tabGeneral = new wxPanel( nbkRelated, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
-    wxFlexGridSizer* fgSizer6;
-    fgSizer6 = new wxFlexGridSizer( 0, 2, 0, 0 );
-    fgSizer6->AddGrowableCol( 0 );
-    fgSizer6->SetFlexibleDirection( wxBOTH );
-    fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
-    
-    lblRelation = new wxStaticText( tabGeneral, wxID_ANY, wxT("Relation Name:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblRelation->Wrap( -1 );
-    fgSizer6->Add( lblRelation, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-    
-    txtRelated = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
-    txtRelated->SetMaxLength( 0 );
-    fgSizer6->Add( txtRelated, 0, wxALL|wxEXPAND, 5 );
-    
-    lblType = new wxStaticText( tabGeneral, wxID_ANY, wxT("Type:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblType->Wrap( -1 );
-    fgSizer6->Add( lblType, 0, wxALL, 5 );
-    
-    cmbType = new wxComboBox( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
-    fgSizer6->Add( cmbType, 0, wxALL, 5 );
-    
-    lblPriority = new wxStaticText( tabGeneral, wxID_ANY, wxT("Priority:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblPriority->Wrap( -1 );
-    fgSizer6->Add( lblPriority, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer260;
-    bSizer260 = new wxBoxSizer( wxHORIZONTAL );
-    
-    chkUsePref = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Use"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer260->Add( chkUsePref, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer254;
-    bSizer254 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer256;
-    bSizer256 = new wxBoxSizer( wxHORIZONTAL );
-    
-    sliPriority = new wxSlider( tabGeneral, wxID_ANY, 0, 1, 100, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL|wxSL_LABELS );
-    bSizer256->Add( sliPriority, 1, wxALL|wxEXPAND, 5 );
-    
-    
-    bSizer254->Add( bSizer256, 1, wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer255;
-    bSizer255 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lblHigh = new wxStaticText( tabGeneral, wxID_ANY, wxT("High"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblHigh->Wrap( -1 );
-    bSizer255->Add( lblHigh, 0, wxALIGN_LEFT|wxALL, 5 );
-    
-    
-    bSizer255->Add( 0, 0, 1, wxEXPAND, 5 );
-    
-    lblLow = new wxStaticText( tabGeneral, wxID_ANY, wxT("Low"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblLow->Wrap( -1 );
-    bSizer255->Add( lblLow, 0, wxALIGN_RIGHT|wxALL, 5 );
-    
-    
-    bSizer254->Add( bSizer255, 1, wxEXPAND, 0 );
-    
-    
-    bSizer260->Add( bSizer254, 1, wxEXPAND, 5 );
-    
-    
-    fgSizer6->Add( bSizer260, 1, wxEXPAND, 5 );
-    
-    
-    fgSizer6->Add( 0, 0, 1, wxEXPAND, 5 );
-    
-    
-    tabGeneral->SetSizer( fgSizer6 );
-    tabGeneral->Layout();
-    fgSizer6->Fit( tabGeneral );
-    nbkRelated->AddPage( tabGeneral, wxT("General"), false );
-    
-    bSizer251->Add( nbkRelated, 1, wxEXPAND | wxALL, 5 );
-    
-    wxBoxSizer* bSizer252;
-    bSizer252 = new wxBoxSizer( wxHORIZONTAL );
-    
-    btnAction = new wxButton( this, wxID_ANY, wxT("Action"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer252->Add( btnAction, 0, wxALL, 5 );
-    
-    btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer252->Add( btnClose, 0, wxALL, 5 );
-    
-    
-    bSizer251->Add( bSizer252, 0, wxALIGN_RIGHT, 5 );
-    
-    
-    this->SetSizer( bSizer251 );
-    this->Layout();
-    
-    this->Centre( wxBOTH );
-    
-    // Connect Events
-    chkUsePref->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorRelatedADT::EnablePriority ), NULL, this );
-    btnAction->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorRelatedADT::ProcessData ), NULL, this );
-    btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorRelatedADT::CloseWindow ), NULL, this );
-}
-
-frmContactEditorRelatedADT::~frmContactEditorRelatedADT()
-{
-    // Disconnect Events
-    chkUsePref->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorRelatedADT::EnablePriority ), NULL, this );
-    btnAction->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorRelatedADT::ProcessData ), NULL, this );
-    btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorRelatedADT::CloseWindow ), NULL, this );
-    
-}
-
-frmContactEditorSoundADT::frmContactEditorSoundADT( 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* bSizer251;
-    bSizer251 = new wxBoxSizer( wxVERTICAL );
-    
-    nbkRelated = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
-    tabGeneral = new wxPanel( nbkRelated, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
-    wxFlexGridSizer* fgSizer6;
-    fgSizer6 = new wxFlexGridSizer( 0, 2, 0, 0 );
-    fgSizer6->AddGrowableCol( 1 );
-    fgSizer6->SetFlexibleDirection( wxBOTH );
-    fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
-    
-    lblSoundFile = new wxStaticText( tabGeneral, wxID_ANY, wxT("Sound File:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblSoundFile->Wrap( -1 );
-    fgSizer6->Add( lblSoundFile, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-    
-    fipSound = new wxFilePickerCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxT("Select a sound file"), wxT("*.*"), wxDefaultPosition, wxDefaultSize, wxFLP_DEFAULT_STYLE );
-    fgSizer6->Add( fipSound, 1, wxALL|wxEXPAND, 5 );
-    
-    lblType = new wxStaticText( tabGeneral, wxID_ANY, wxT("Type:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblType->Wrap( -1 );
-    fgSizer6->Add( lblType, 0, wxALL, 5 );
-    
-    wxArrayString cmbTypeChoices;
-    cmbType = new wxChoice( tabGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, cmbTypeChoices, 0 );
-    cmbType->SetSelection( 0 );
-    fgSizer6->Add( cmbType, 0, wxALL, 5 );
-    
-    lblPriority = new wxStaticText( tabGeneral, wxID_ANY, wxT("Priority:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblPriority->Wrap( -1 );
-    fgSizer6->Add( lblPriority, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer260;
-    bSizer260 = new wxBoxSizer( wxHORIZONTAL );
-    
-    chkUsePref = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Use"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer260->Add( chkUsePref, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer254;
-    bSizer254 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer256;
-    bSizer256 = new wxBoxSizer( wxHORIZONTAL );
-    
-    sliPriority = new wxSlider( tabGeneral, wxID_ANY, 0, 1, 100, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL|wxSL_LABELS );
-    bSizer256->Add( sliPriority, 1, wxALL|wxEXPAND, 5 );
-    
-    
-    bSizer254->Add( bSizer256, 1, wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer255;
-    bSizer255 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lblHigh = new wxStaticText( tabGeneral, wxID_ANY, wxT("High"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblHigh->Wrap( -1 );
-    bSizer255->Add( lblHigh, 0, wxALIGN_LEFT|wxALL, 5 );
-    
-    
-    bSizer255->Add( 0, 0, 1, wxEXPAND, 5 );
-    
-    lblLow = new wxStaticText( tabGeneral, wxID_ANY, wxT("Low"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblLow->Wrap( -1 );
-    bSizer255->Add( lblLow, 0, wxALIGN_RIGHT|wxALL, 5 );
-    
-    
-    bSizer254->Add( bSizer255, 1, wxEXPAND, 0 );
-    
-    
-    bSizer260->Add( bSizer254, 1, wxEXPAND, 5 );
-    
-    
-    fgSizer6->Add( bSizer260, 1, wxEXPAND, 5 );
-    
-    
-    fgSizer6->Add( 0, 0, 1, wxEXPAND, 5 );
-    
-    
-    tabGeneral->SetSizer( fgSizer6 );
-    tabGeneral->Layout();
-    fgSizer6->Fit( tabGeneral );
-    nbkRelated->AddPage( tabGeneral, wxT("General"), false );
-    
-    bSizer251->Add( nbkRelated, 1, wxEXPAND | wxALL, 5 );
-    
-    wxBoxSizer* bSizer252;
-    bSizer252 = new wxBoxSizer( wxHORIZONTAL );
-    
-    btnAction = new wxButton( this, wxID_ANY, wxT("Action"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer252->Add( btnAction, 0, wxALL, 5 );
-    
-    btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer252->Add( btnClose, 0, wxALL, 5 );
-    
-    
-    bSizer251->Add( bSizer252, 0, wxALIGN_RIGHT, 5 );
-    
-    
-    this->SetSizer( bSizer251 );
-    this->Layout();
-    
-    this->Centre( wxBOTH );
-    
-    // Connect Events
-    chkUsePref->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorSoundADT::EnablePriority ), NULL, this );
-    btnAction->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorSoundADT::ProcessData ), NULL, this );
-    btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorSoundADT::CloseWindow ), NULL, this );
-}
-
-frmContactEditorSoundADT::~frmContactEditorSoundADT()
-{
-    // Disconnect Events
-    chkUsePref->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorSoundADT::EnablePriority ), NULL, this );
-    btnAction->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorSoundADT::ProcessData ), NULL, this );
-    btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorSoundADT::CloseWindow ), NULL, this );
-    
-}
-
-frmContactEditorPictureADT::frmContactEditorPictureADT( 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* bSizer251;
-    bSizer251 = new wxBoxSizer( wxVERTICAL );
-    
-    nbkRelated = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
-    tabGeneral = new wxPanel( nbkRelated, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
-    wxFlexGridSizer* fgSizer6;
-    fgSizer6 = new wxFlexGridSizer( 0, 2, 0, 0 );
-    fgSizer6->AddGrowableCol( 1 );
-    fgSizer6->SetFlexibleDirection( wxBOTH );
-    fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
-    
-    lblPictureFile = new wxStaticText( tabGeneral, wxID_ANY, wxT("Picture File:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblPictureFile->Wrap( -1 );
-    fgSizer6->Add( lblPictureFile, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-    
-    fipPicture = new wxFilePickerCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxT("Select a sound file"), wxT("*.*"), wxDefaultPosition, wxDefaultSize, wxFLP_DEFAULT_STYLE );
-    fgSizer6->Add( fipPicture, 1, wxALL|wxEXPAND, 5 );
-    
-    lblType = new wxStaticText( tabGeneral, wxID_ANY, wxT("Type:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblType->Wrap( -1 );
-    fgSizer6->Add( lblType, 0, wxALL, 5 );
-    
-    wxArrayString cmbTypeChoices;
-    cmbType = new wxChoice( tabGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, cmbTypeChoices, 0 );
-    cmbType->SetSelection( 0 );
-    fgSizer6->Add( cmbType, 0, wxALL, 5 );
-    
-    lblPriority = new wxStaticText( tabGeneral, wxID_ANY, wxT("Priority:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblPriority->Wrap( -1 );
-    fgSizer6->Add( lblPriority, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer260;
-    bSizer260 = new wxBoxSizer( wxHORIZONTAL );
-    
-    chkUsePref = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Use"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer260->Add( chkUsePref, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer254;
-    bSizer254 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer256;
-    bSizer256 = new wxBoxSizer( wxHORIZONTAL );
-    
-    sliPriority = new wxSlider( tabGeneral, wxID_ANY, 0, 1, 100, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL|wxSL_LABELS );
-    bSizer256->Add( sliPriority, 1, wxALL|wxEXPAND, 5 );
-    
-    
-    bSizer254->Add( bSizer256, 1, wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer255;
-    bSizer255 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lblHigh = new wxStaticText( tabGeneral, wxID_ANY, wxT("High"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblHigh->Wrap( -1 );
-    bSizer255->Add( lblHigh, 0, wxALIGN_LEFT|wxALL, 5 );
-    
-    
-    bSizer255->Add( 0, 0, 1, wxEXPAND, 5 );
-    
-    lblLow = new wxStaticText( tabGeneral, wxID_ANY, wxT("Low"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblLow->Wrap( -1 );
-    bSizer255->Add( lblLow, 0, wxALIGN_RIGHT|wxALL, 5 );
-    
-    
-    bSizer254->Add( bSizer255, 1, wxEXPAND, 0 );
-    
-    
-    bSizer260->Add( bSizer254, 1, wxEXPAND, 5 );
-    
-    
-    fgSizer6->Add( bSizer260, 1, wxEXPAND, 5 );
-    
-    
-    fgSizer6->Add( 0, 0, 1, wxEXPAND, 5 );
-    
-    
-    tabGeneral->SetSizer( fgSizer6 );
-    tabGeneral->Layout();
-    fgSizer6->Fit( tabGeneral );
-    nbkRelated->AddPage( tabGeneral, wxT("General"), false );
-    
-    bSizer251->Add( nbkRelated, 1, wxEXPAND | wxALL, 5 );
-    
-    wxBoxSizer* bSizer252;
-    bSizer252 = new wxBoxSizer( wxHORIZONTAL );
-    
-    btnAction = new wxButton( this, wxID_ANY, wxT("Action"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer252->Add( btnAction, 0, wxALL, 5 );
-    
-    btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer252->Add( btnClose, 0, wxALL, 5 );
-    
-    
-    bSizer251->Add( bSizer252, 0, wxALIGN_RIGHT, 5 );
-    
-    
-    this->SetSizer( bSizer251 );
-    this->Layout();
-    
-    this->Centre( wxBOTH );
-    
-    // Connect Events
-    chkUsePref->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorPictureADT::EnablePriority ), NULL, this );
-    btnAction->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorPictureADT::ProcessData ), NULL, this );
-    btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorPictureADT::CloseWindow ), NULL, this );
-}
-
-frmContactEditorPictureADT::~frmContactEditorPictureADT()
-{
-    // Disconnect Events
-    chkUsePref->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorPictureADT::EnablePriority ), NULL, this );
-    btnAction->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorPictureADT::ProcessData ), NULL, this );
-    btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorPictureADT::CloseWindow ), NULL, this );
-    
-}
-
-frmContactEditorWebsitesADT::frmContactEditorWebsitesADT( 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* bSizer251;
-    bSizer251 = new wxBoxSizer( wxVERTICAL );
-    
-    nbkWebsite = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
-    tabGeneral = new wxPanel( nbkWebsite, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
-    wxFlexGridSizer* fgSizer6;
-    fgSizer6 = new wxFlexGridSizer( 0, 2, 0, 0 );
-    fgSizer6->AddGrowableCol( 1 );
-    fgSizer6->SetFlexibleDirection( wxVERTICAL );
-    fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
-    
-    lblWebsite = new wxStaticText( tabGeneral, wxID_ANY, wxT("Website:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblWebsite->Wrap( -1 );
-    fgSizer6->Add( lblWebsite, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-    
-    txtWebsite = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
-    txtWebsite->SetMaxLength( 0 );
-    fgSizer6->Add( txtWebsite, 0, wxALL|wxEXPAND, 5 );
-    
-    lblPriority = new wxStaticText( tabGeneral, wxID_ANY, wxT("Priority:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblPriority->Wrap( -1 );
-    fgSizer6->Add( lblPriority, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer260;
-    bSizer260 = new wxBoxSizer( wxHORIZONTAL );
-    
-    chkUsePref = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Use"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer260->Add( chkUsePref, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer254;
-    bSizer254 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer256;
-    bSizer256 = new wxBoxSizer( wxHORIZONTAL );
-    
-    sliPriority = new wxSlider( tabGeneral, wxID_ANY, 0, 1, 100, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL|wxSL_LABELS );
-    bSizer256->Add( sliPriority, 1, wxALL|wxEXPAND, 5 );
-    
-    
-    bSizer254->Add( bSizer256, 1, wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer255;
-    bSizer255 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lblHigh = new wxStaticText( tabGeneral, wxID_ANY, wxT("High"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblHigh->Wrap( -1 );
-    bSizer255->Add( lblHigh, 0, wxALIGN_LEFT|wxALL, 5 );
-    
-    
-    bSizer255->Add( 0, 0, 1, wxEXPAND, 5 );
-    
-    lblLow = new wxStaticText( tabGeneral, wxID_ANY, wxT("Low"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblLow->Wrap( -1 );
-    bSizer255->Add( lblLow, 0, wxALIGN_RIGHT|wxALL, 5 );
-    
-    
-    bSizer254->Add( bSizer255, 1, wxEXPAND, 0 );
-    
-    
-    bSizer260->Add( bSizer254, 1, wxEXPAND, 5 );
-    
-    
-    fgSizer6->Add( bSizer260, 1, wxEXPAND, 5 );
-    
-    
-    fgSizer6->Add( 0, 0, 1, wxEXPAND, 5 );
-    
-    
-    tabGeneral->SetSizer( fgSizer6 );
-    tabGeneral->Layout();
-    fgSizer6->Fit( tabGeneral );
-    nbkWebsite->AddPage( tabGeneral, wxT("General"), false );
-    
-    bSizer251->Add( nbkWebsite, 1, wxEXPAND | wxALL, 5 );
-    
-    wxBoxSizer* bSizer252;
-    bSizer252 = new wxBoxSizer( wxHORIZONTAL );
-    
-    btnAction = new wxButton( this, wxID_ANY, wxT("Action"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer252->Add( btnAction, 0, wxALL, 5 );
-    
-    btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer252->Add( btnClose, 0, wxALL, 5 );
-    
-    
-    bSizer251->Add( bSizer252, 0, wxALIGN_RIGHT, 5 );
-    
-    
-    this->SetSizer( bSizer251 );
-    this->Layout();
-    
-    this->Centre( wxBOTH );
-    
-    // Connect Events
-    chkUsePref->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorWebsitesADT::EnablePriority ), NULL, this );
-    btnAction->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorWebsitesADT::ProcessAction ), NULL, this );
-    btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorWebsitesADT::CloseWindow ), NULL, this );
-}
-
-frmContactEditorWebsitesADT::~frmContactEditorWebsitesADT()
-{
-    // Disconnect Events
-    chkUsePref->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorWebsitesADT::EnablePriority ), NULL, this );
-    btnAction->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorWebsitesADT::ProcessAction ), NULL, this );
-    btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorWebsitesADT::CloseWindow ), NULL, this );
-    
-}
-
-frmContactEditorGeopositionADT::frmContactEditorGeopositionADT( 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* bSizer251;
-    bSizer251 = new wxBoxSizer( wxVERTICAL );
-    
-    nbkWebsite = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
-    tabGeneral = new wxPanel( nbkWebsite, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
-    wxFlexGridSizer* fgSizer6;
-    fgSizer6 = new wxFlexGridSizer( 0, 2, 0, 0 );
-    fgSizer6->AddGrowableCol( 1 );
-    fgSizer6->SetFlexibleDirection( wxVERTICAL );
-    fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
-    
-    lblGeoposition = new wxStaticText( tabGeneral, wxID_ANY, wxT("Geoposition:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblGeoposition->Wrap( -1 );
-    fgSizer6->Add( lblGeoposition, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-    
-    txtGeoposition = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
-    txtGeoposition->SetMaxLength( 0 );
-    fgSizer6->Add( txtGeoposition, 0, wxALL|wxEXPAND, 5 );
-    
-    lblPriority = new wxStaticText( tabGeneral, wxID_ANY, wxT("Priority:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblPriority->Wrap( -1 );
-    fgSizer6->Add( lblPriority, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer260;
-    bSizer260 = new wxBoxSizer( wxHORIZONTAL );
-    
-    chkUsePref = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Use"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer260->Add( chkUsePref, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer254;
-    bSizer254 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer256;
-    bSizer256 = new wxBoxSizer( wxHORIZONTAL );
-    
-    sliPriority = new wxSlider( tabGeneral, wxID_ANY, 0, 1, 100, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL|wxSL_LABELS );
-    bSizer256->Add( sliPriority, 1, wxALL|wxEXPAND, 5 );
-    
-    
-    bSizer254->Add( bSizer256, 1, wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer255;
-    bSizer255 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lblHigh = new wxStaticText( tabGeneral, wxID_ANY, wxT("High"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblHigh->Wrap( -1 );
-    bSizer255->Add( lblHigh, 0, wxALIGN_LEFT|wxALL, 5 );
-    
-    
-    bSizer255->Add( 0, 0, 1, wxEXPAND, 5 );
-    
-    lblLow = new wxStaticText( tabGeneral, wxID_ANY, wxT("Low"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblLow->Wrap( -1 );
-    bSizer255->Add( lblLow, 0, wxALIGN_RIGHT|wxALL, 5 );
-    
-    
-    bSizer254->Add( bSizer255, 1, wxEXPAND, 0 );
-    
-    
-    bSizer260->Add( bSizer254, 1, wxEXPAND, 5 );
-    
-    
-    fgSizer6->Add( bSizer260, 1, wxEXPAND, 5 );
-    
-    
-    fgSizer6->Add( 0, 0, 1, wxEXPAND, 5 );
-    
-    
-    tabGeneral->SetSizer( fgSizer6 );
-    tabGeneral->Layout();
-    fgSizer6->Fit( tabGeneral );
-    nbkWebsite->AddPage( tabGeneral, wxT("General"), false );
-    
-    bSizer251->Add( nbkWebsite, 1, wxEXPAND | wxALL, 5 );
-    
-    wxBoxSizer* bSizer252;
-    bSizer252 = new wxBoxSizer( wxHORIZONTAL );
-    
-    btnAction = new wxButton( this, wxID_ANY, wxT("Action"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer252->Add( btnAction, 0, wxALL, 5 );
-    
-    btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer252->Add( btnClose, 0, wxALL, 5 );
-    
-    
-    bSizer251->Add( bSizer252, 0, wxALIGN_RIGHT, 5 );
-    
-    
-    this->SetSizer( bSizer251 );
-    this->Layout();
-    
-    this->Centre( wxBOTH );
-    
-    // Connect Events
-    chkUsePref->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorGeopositionADT::EnablePriority ), NULL, this );
-    btnAction->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorGeopositionADT::ProcessAction ), NULL, this );
-    btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorGeopositionADT::CloseWindow ), NULL, this );
-}
-
-frmContactEditorGeopositionADT::~frmContactEditorGeopositionADT()
-{
-    // Disconnect Events
-    chkUsePref->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorGeopositionADT::EnablePriority ), NULL, this );
-    btnAction->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorGeopositionADT::ProcessAction ), NULL, this );
-    btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorGeopositionADT::CloseWindow ), NULL, this );
-    
-}
-
-frmContactEditorCalAdrADT::frmContactEditorCalAdrADT( 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* bSizer251;
-    bSizer251 = new wxBoxSizer( wxVERTICAL );
-    
-    nbkWebsite = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
-    tabGeneral = new wxPanel( nbkWebsite, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
-    wxFlexGridSizer* fgSizer6;
-    fgSizer6 = new wxFlexGridSizer( 0, 2, 0, 0 );
-    fgSizer6->AddGrowableCol( 1 );
-    fgSizer6->SetFlexibleDirection( wxVERTICAL );
-    fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
-    
-    lblAddress = new wxStaticText( tabGeneral, wxID_ANY, wxT("Address:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblAddress->Wrap( -1 );
-    fgSizer6->Add( lblAddress, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-    
-    txtAddress = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
-    txtAddress->SetMaxLength( 0 );
-    fgSizer6->Add( txtAddress, 0, wxALL|wxEXPAND, 5 );
-    
-    lblType = new wxStaticText( tabGeneral, wxID_ANY, wxT("Type:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblType->Wrap( -1 );
-    fgSizer6->Add( lblType, 0, wxALL, 5 );
-    
-    wxArrayString cmbTypeChoices;
-    cmbType = new wxChoice( tabGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, cmbTypeChoices, 0 );
-    cmbType->SetSelection( 0 );
-    fgSizer6->Add( cmbType, 0, wxALL, 5 );
-    
-    lblPriority = new wxStaticText( tabGeneral, wxID_ANY, wxT("Priority:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblPriority->Wrap( -1 );
-    fgSizer6->Add( lblPriority, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer260;
-    bSizer260 = new wxBoxSizer( wxHORIZONTAL );
-    
-    chkUsePref = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Use"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer260->Add( chkUsePref, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer254;
-    bSizer254 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer256;
-    bSizer256 = new wxBoxSizer( wxHORIZONTAL );
-    
-    sliPriority = new wxSlider( tabGeneral, wxID_ANY, 0, 1, 100, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL|wxSL_LABELS );
-    bSizer256->Add( sliPriority, 1, wxALL|wxEXPAND, 5 );
-    
-    
-    bSizer254->Add( bSizer256, 1, wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer255;
-    bSizer255 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lblHigh = new wxStaticText( tabGeneral, wxID_ANY, wxT("High"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblHigh->Wrap( -1 );
-    bSizer255->Add( lblHigh, 0, wxALIGN_LEFT|wxALL, 5 );
-    
-    
-    bSizer255->Add( 0, 0, 1, wxEXPAND, 5 );
-    
-    lblLow = new wxStaticText( tabGeneral, wxID_ANY, wxT("Low"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblLow->Wrap( -1 );
-    bSizer255->Add( lblLow, 0, wxALIGN_RIGHT|wxALL, 5 );
-    
-    
-    bSizer254->Add( bSizer255, 1, wxEXPAND, 0 );
-    
-    
-    bSizer260->Add( bSizer254, 1, wxEXPAND, 5 );
-    
-    
-    fgSizer6->Add( bSizer260, 1, wxEXPAND, 5 );
-    
-    
-    fgSizer6->Add( 0, 0, 1, wxEXPAND, 5 );
-    
-    
-    tabGeneral->SetSizer( fgSizer6 );
-    tabGeneral->Layout();
-    fgSizer6->Fit( tabGeneral );
-    nbkWebsite->AddPage( tabGeneral, wxT("General"), false );
-    
-    bSizer251->Add( nbkWebsite, 1, wxEXPAND | wxALL, 5 );
-    
-    wxBoxSizer* bSizer252;
-    bSizer252 = new wxBoxSizer( wxHORIZONTAL );
-    
-    btnAction = new wxButton( this, wxID_ANY, wxT("Action"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer252->Add( btnAction, 0, wxALL, 5 );
-    
-    btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer252->Add( btnClose, 0, wxALL, 5 );
-    
-    
-    bSizer251->Add( bSizer252, 0, wxALIGN_RIGHT, 5 );
-    
-    
-    this->SetSizer( bSizer251 );
-    this->Layout();
-    
-    this->Centre( wxBOTH );
-    
-    // Connect Events
-    chkUsePref->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorCalAdrADT::EnablePriority ), NULL, this );
-    btnAction->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorCalAdrADT::ProcessAction ), NULL, this );
-    btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorCalAdrADT::CloseWindow ), NULL, this );
-}
-
-frmContactEditorCalAdrADT::~frmContactEditorCalAdrADT()
-{
-    // Disconnect Events
-    chkUsePref->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorCalAdrADT::EnablePriority ), NULL, this );
-    btnAction->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorCalAdrADT::ProcessAction ), NULL, this );
-    btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorCalAdrADT::CloseWindow ), NULL, this );
-    
-}
-
-frmContactEditorVendorADT::frmContactEditorVendorADT( 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* bSizer251;
-    bSizer251 = new wxBoxSizer( wxVERTICAL );
-    
-    nbkWebsite = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
-    tabGeneral = new wxPanel( nbkWebsite, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
-    wxFlexGridSizer* fgSizer6;
-    fgSizer6 = new wxFlexGridSizer( 0, 2, 0, 0 );
-    fgSizer6->AddGrowableCol( 1 );
-    fgSizer6->SetFlexibleDirection( wxVERTICAL );
-    fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
-    
-    lblVendorPEN = new wxStaticText( tabGeneral, wxID_ANY, wxT("Vendor PEN:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblVendorPEN->Wrap( -1 );
-    fgSizer6->Add( lblVendorPEN, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-    
-    txtPEN = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
-    txtPEN->SetMaxLength( 0 );
-    fgSizer6->Add( txtPEN, 0, wxALL, 5 );
-    
-    lblElement = new wxStaticText( tabGeneral, wxID_ANY, wxT("Element:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblElement->Wrap( -1 );
-    fgSizer6->Add( lblElement, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-    
-    txtElement = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
-    txtElement->SetMaxLength( 0 );
-    fgSizer6->Add( txtElement, 0, wxALL|wxEXPAND, 5 );
-    
-    lblValue = new wxStaticText( tabGeneral, wxID_ANY, wxT("Value:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblValue->Wrap( -1 );
-    fgSizer6->Add( lblValue, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-    
-    txtValue = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
-    txtValue->SetMaxLength( 0 );
-    fgSizer6->Add( txtValue, 0, wxALL|wxEXPAND, 5 );
-    
-    
-    tabGeneral->SetSizer( fgSizer6 );
-    tabGeneral->Layout();
-    fgSizer6->Fit( tabGeneral );
-    nbkWebsite->AddPage( tabGeneral, wxT("General"), false );
-    
-    bSizer251->Add( nbkWebsite, 1, wxEXPAND | wxALL, 5 );
-    
-    wxBoxSizer* bSizer252;
-    bSizer252 = new wxBoxSizer( wxHORIZONTAL );
-    
-    btnAction = new wxButton( this, wxID_ANY, wxT("Action"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer252->Add( btnAction, 0, wxALL, 5 );
-    
-    btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer252->Add( btnClose, 0, wxALL, 5 );
-    
-    
-    bSizer251->Add( bSizer252, 0, wxALIGN_RIGHT, 5 );
-    
-    
-    this->SetSizer( bSizer251 );
-    this->Layout();
-    
-    this->Centre( wxBOTH );
-    
-    // Connect Events
-    btnAction->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorVendorADT::ProcessAction ), NULL, this );
-    btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorVendorADT::CloseWindow ), NULL, this );
-}
-
-frmContactEditorVendorADT::~frmContactEditorVendorADT()
-{
-    // Disconnect Events
-    btnAction->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorVendorADT::ProcessAction ), NULL, this );
-    btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorVendorADT::CloseWindow ), NULL, this );
-    
-}
-
-frmContactEditorXTokenADT::frmContactEditorXTokenADT( 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* bSizer251;
-    bSizer251 = new wxBoxSizer( wxVERTICAL );
-    
-    nbkWebsite = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
-    tabGeneral = new wxPanel( nbkWebsite, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
-    wxFlexGridSizer* fgSizer6;
-    fgSizer6 = new wxFlexGridSizer( 0, 2, 0, 0 );
-    fgSizer6->AddGrowableCol( 1 );
-    fgSizer6->SetFlexibleDirection( wxVERTICAL );
-    fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
-    
-    lblTokenName = new wxStaticText( tabGeneral, wxID_ANY, wxT("Token Name:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblTokenName->Wrap( -1 );
-    fgSizer6->Add( lblTokenName, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-    
-    txtTokenName = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
-    txtTokenName->SetMaxLength( 0 );
-    fgSizer6->Add( txtTokenName, 0, wxALL, 5 );
-    
-    lblXT = new wxStaticText( tabGeneral, wxID_ANY, wxT("Value:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblXT->Wrap( -1 );
-    fgSizer6->Add( lblXT, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-    
-    txtValue = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
-    txtValue->SetMaxLength( 0 );
-    fgSizer6->Add( txtValue, 0, wxALL|wxEXPAND, 5 );
-    
-    
-    tabGeneral->SetSizer( fgSizer6 );
-    tabGeneral->Layout();
-    fgSizer6->Fit( tabGeneral );
-    nbkWebsite->AddPage( tabGeneral, wxT("General"), false );
-    
-    bSizer251->Add( nbkWebsite, 1, wxEXPAND | wxALL, 5 );
-    
-    wxBoxSizer* bSizer252;
-    bSizer252 = new wxBoxSizer( wxHORIZONTAL );
-    
-    btnAction = new wxButton( this, wxID_ANY, wxT("Action"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer252->Add( btnAction, 0, wxALL, 5 );
-    
-    btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer252->Add( btnClose, 0, wxALL, 5 );
-    
-    
-    bSizer251->Add( bSizer252, 0, wxALIGN_RIGHT, 5 );
-    
-    
-    this->SetSizer( bSizer251 );
-    this->Layout();
-    
-    this->Centre( wxBOTH );
-    
-    // Connect Events
-    btnAction->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorXTokenADT::ProcessAction ), NULL, this );
-    btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorXTokenADT::CloseWindow ), NULL, this );
-}
-
-frmContactEditorXTokenADT::~frmContactEditorXTokenADT()
-{
-    // Disconnect Events
-    btnAction->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorXTokenADT::ProcessAction ), NULL, this );
-    btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorXTokenADT::CloseWindow ), NULL, this );
-    
-}
-
-frmContactEditorKeyADT::frmContactEditorKeyADT( 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* bSizer251;
-    bSizer251 = new wxBoxSizer( wxVERTICAL );
-    
-    nbkWebsite = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
-    tabGeneral = new wxPanel( nbkWebsite, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
-    wxFlexGridSizer* fgSizer6;
-    fgSizer6 = new wxFlexGridSizer( 0, 2, 0, 0 );
-    fgSizer6->AddGrowableCol( 1 );
-    fgSizer6->SetFlexibleDirection( wxVERTICAL );
-    fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
-    
-    lblKeyType = new wxStaticText( tabGeneral, wxID_ANY, wxT("Key Type:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblKeyType->Wrap( -1 );
-    fgSizer6->Add( lblKeyType, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-    
-    wxArrayString cmbKeyMainTypeChoices;
-    cmbKeyMainType = new wxChoice( tabGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, cmbKeyMainTypeChoices, 0 );
-    cmbKeyMainType->SetSelection( 0 );
-    fgSizer6->Add( cmbKeyMainType, 0, wxALL, 5 );
-    
-    lblType = new wxStaticText( tabGeneral, wxID_ANY, wxT("Type:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblType->Wrap( -1 );
-    fgSizer6->Add( lblType, 0, wxALL, 5 );
-    
-    wxArrayString cmbTypeChoices;
-    cmbType = new wxChoice( tabGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, cmbTypeChoices, 0 );
-    cmbType->SetSelection( 0 );
-    fgSizer6->Add( cmbType, 0, wxALL, 5 );
-    
-    lblPriority = new wxStaticText( tabGeneral, wxID_ANY, wxT("Priority:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblPriority->Wrap( -1 );
-    fgSizer6->Add( lblPriority, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer260;
-    bSizer260 = new wxBoxSizer( wxHORIZONTAL );
-    
-    chkUsePref = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Use"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer260->Add( chkUsePref, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer254;
-    bSizer254 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer256;
-    bSizer256 = new wxBoxSizer( wxHORIZONTAL );
-    
-    sliPriority = new wxSlider( tabGeneral, wxID_ANY, 0, 1, 100, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL|wxSL_LABELS );
-    bSizer256->Add( sliPriority, 1, wxALL|wxEXPAND, 5 );
-    
-    
-    bSizer254->Add( bSizer256, 1, wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer255;
-    bSizer255 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lblHigh = new wxStaticText( tabGeneral, wxID_ANY, wxT("High"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblHigh->Wrap( -1 );
-    bSizer255->Add( lblHigh, 0, wxALIGN_LEFT|wxALL, 5 );
-    
-    
-    bSizer255->Add( 0, 0, 1, wxEXPAND, 5 );
-    
-    lblLow = new wxStaticText( tabGeneral, wxID_ANY, wxT("Low"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblLow->Wrap( -1 );
-    bSizer255->Add( lblLow, 0, wxALIGN_RIGHT|wxALL, 5 );
-    
-    
-    bSizer254->Add( bSizer255, 1, wxEXPAND, 0 );
-    
-    
-    bSizer260->Add( bSizer254, 1, wxEXPAND, 5 );
-    
-    
-    fgSizer6->Add( bSizer260, 1, wxEXPAND, 5 );
-    
-    
-    fgSizer6->Add( 0, 0, 1, wxEXPAND, 5 );
-    
-    
-    tabGeneral->SetSizer( fgSizer6 );
-    tabGeneral->Layout();
-    fgSizer6->Fit( tabGeneral );
-    nbkWebsite->AddPage( tabGeneral, wxT("General"), true );
-    tabURL = new wxPanel( nbkWebsite, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
-    wxFlexGridSizer* fgSizer61;
-    fgSizer61 = new wxFlexGridSizer( 0, 2, 0, 0 );
-    fgSizer61->AddGrowableCol( 1 );
-    fgSizer61->SetFlexibleDirection( wxHORIZONTAL );
-    fgSizer61->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
-    
-    lblKeyFormat = new wxStaticText( tabURL, wxID_ANY, wxT("Key Format:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblKeyFormat->Wrap( -1 );
-    fgSizer61->Add( lblKeyFormat, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-    
-    cmbURL = new wxComboBox( tabURL, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
-    fgSizer61->Add( cmbURL, 0, wxALL, 5 );
-    
-    lblAddress = new wxStaticText( tabURL, wxID_ANY, wxT("Address:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblAddress->Wrap( -1 );
-    fgSizer61->Add( lblAddress, 0, wxALL, 5 );
-    
-    txtAddress = new wxTextCtrl( tabURL, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
-    txtAddress->SetMaxLength( 0 );
-    fgSizer61->Add( txtAddress, 1, wxALL|wxEXPAND, 5 );
-    
-    
-    fgSizer61->Add( 0, 0, 1, wxEXPAND, 5 );
-    
-    
-    tabURL->SetSizer( fgSizer61 );
-    tabURL->Layout();
-    fgSizer61->Fit( tabURL );
-    nbkWebsite->AddPage( tabURL, wxT("URL"), false );
-    tabKey = new wxPanel( nbkWebsite, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
-    wxFlexGridSizer* fgSizer62;
-    fgSizer62 = new wxFlexGridSizer( 0, 2, 0, 0 );
-    fgSizer62->AddGrowableCol( 1 );
-    fgSizer62->AddGrowableRow( 1 );
-    fgSizer62->SetFlexibleDirection( wxBOTH );
-    fgSizer62->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
-    
-    lblKeyFormatData = new wxStaticText( tabKey, wxID_ANY, wxT("Key Format:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblKeyFormatData->Wrap( -1 );
-    fgSizer62->Add( lblKeyFormatData, 0, wxALIGN_CENTER|wxALL, 5 );
-    
-    cmbKeyType = new wxComboBox( tabKey, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
-    fgSizer62->Add( cmbKeyType, 0, wxALL, 5 );
-    
-    lblKeyData = new wxStaticText( tabKey, wxID_ANY, wxT("Key Data:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblKeyData->Wrap( -1 );
-    fgSizer62->Add( lblKeyData, 0, wxALL, 5 );
-    
-    txtKeyData = new wxTextCtrl( tabKey, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE );
-    txtKeyData->SetMaxLength( 0 );
-    fgSizer62->Add( txtKeyData, 1, wxALL|wxEXPAND, 5 );
-    
-    
-    tabKey->SetSizer( fgSizer62 );
-    tabKey->Layout();
-    fgSizer62->Fit( tabKey );
-    nbkWebsite->AddPage( tabKey, wxT("Key"), false );
-    
-    bSizer251->Add( nbkWebsite, 1, wxEXPAND | wxALL, 5 );
-    
-    wxBoxSizer* bSizer252;
-    bSizer252 = new wxBoxSizer( wxHORIZONTAL );
-    
-    btnAction = new wxButton( this, wxID_ANY, wxT("Action"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer252->Add( btnAction, 0, wxALL, 5 );
-    
-    btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer252->Add( btnClose, 0, wxALL, 5 );
-    
-    
-    bSizer251->Add( bSizer252, 0, wxALIGN_RIGHT, 5 );
-    
-    
-    this->SetSizer( bSizer251 );
-    this->Layout();
-    
-    this->Centre( wxBOTH );
-    
-    // Connect Events
-    cmbKeyMainType->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( frmContactEditorKeyADT::ProcessKeyType ), NULL, this );
-    chkUsePref->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorKeyADT::EnablePriority ), NULL, this );
-    cmbURL->Connect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( frmContactEditorKeyADT::ConvertURLType ), NULL, this );
-    cmbKeyType->Connect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( frmContactEditorKeyADT::ConvertKeyType ), NULL, this );
-    btnAction->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorKeyADT::ProcessAction ), NULL, this );
-    btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorKeyADT::CloseWindow ), NULL, this );
-}
-
-frmContactEditorKeyADT::~frmContactEditorKeyADT()
-{
-    // Disconnect Events
-    cmbKeyMainType->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( frmContactEditorKeyADT::ProcessKeyType ), NULL, this );
-    chkUsePref->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorKeyADT::EnablePriority ), NULL, this );
-    cmbURL->Disconnect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( frmContactEditorKeyADT::ConvertURLType ), NULL, this );
-    cmbKeyType->Disconnect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( frmContactEditorKeyADT::ConvertKeyType ), NULL, this );
-    btnAction->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorKeyADT::ProcessAction ), NULL, this );
-    btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorKeyADT::CloseWindow ), NULL, this );
-    
-}
-
-frmContactEditorEmailADT::frmContactEditorEmailADT( 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* bSizer251;
-    bSizer251 = new wxBoxSizer( wxVERTICAL );
-    
-    nbkEmail = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
-    tabGeneral = new wxPanel( nbkEmail, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
-    wxFlexGridSizer* fgSizer6;
-    fgSizer6 = new wxFlexGridSizer( 0, 2, 0, 0 );
-    fgSizer6->AddGrowableCol( 1 );
-    fgSizer6->SetFlexibleDirection( wxVERTICAL );
-    fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
-    
-    lblEmailAddress = new wxStaticText( tabGeneral, wxID_ANY, wxT("E-mail Address:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblEmailAddress->Wrap( -1 );
-    fgSizer6->Add( lblEmailAddress, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-    
-    txtEmail = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
-    txtEmail->SetMaxLength( 0 );
-    fgSizer6->Add( txtEmail, 0, wxALL|wxEXPAND, 5 );
-    
-    lblPriority = new wxStaticText( tabGeneral, wxID_ANY, wxT("Priority:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblPriority->Wrap( -1 );
-    fgSizer6->Add( lblPriority, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer260;
-    bSizer260 = new wxBoxSizer( wxHORIZONTAL );
-    
-    chkUsePref = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Use"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer260->Add( chkUsePref, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer254;
-    bSizer254 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer256;
-    bSizer256 = new wxBoxSizer( wxHORIZONTAL );
-    
-    sliPriority = new wxSlider( tabGeneral, wxID_ANY, 0, 1, 100, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL|wxSL_LABELS );
-    bSizer256->Add( sliPriority, 1, wxALL|wxEXPAND, 5 );
-    
-    
-    bSizer254->Add( bSizer256, 1, wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer255;
-    bSizer255 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lblHigh = new wxStaticText( tabGeneral, wxID_ANY, wxT("High"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblHigh->Wrap( -1 );
-    bSizer255->Add( lblHigh, 0, wxALIGN_LEFT|wxALL, 5 );
-    
-    
-    bSizer255->Add( 0, 0, 1, wxEXPAND, 5 );
-    
-    lblLow = new wxStaticText( tabGeneral, wxID_ANY, wxT("Low"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblLow->Wrap( -1 );
-    bSizer255->Add( lblLow, 0, wxALIGN_RIGHT|wxALL, 5 );
-    
-    
-    bSizer254->Add( bSizer255, 1, wxEXPAND, 0 );
-    
-    
-    bSizer260->Add( bSizer254, 1, wxEXPAND, 5 );
-    
-    
-    fgSizer6->Add( bSizer260, 1, wxEXPAND, 5 );
-    
-    
-    fgSizer6->Add( 0, 0, 1, wxEXPAND, 5 );
-    
-    
-    tabGeneral->SetSizer( fgSizer6 );
-    tabGeneral->Layout();
-    fgSizer6->Fit( tabGeneral );
-    nbkEmail->AddPage( tabGeneral, wxT("General"), false );
-    
-    bSizer251->Add( nbkEmail, 1, wxEXPAND | wxALL, 5 );
-    
-    wxBoxSizer* bSizer252;
-    bSizer252 = new wxBoxSizer( wxHORIZONTAL );
-    
-    btnAction = new wxButton( this, wxID_ANY, wxT("Action"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer252->Add( btnAction, 0, wxALL, 5 );
-    
-    btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer252->Add( btnClose, 0, wxALL, 5 );
-    
-    
-    bSizer251->Add( bSizer252, 0, wxALIGN_RIGHT, 5 );
-    
-    
-    this->SetSizer( bSizer251 );
-    this->Layout();
-    
-    this->Centre( wxBOTH );
-    
-    // Connect Events
-    chkUsePref->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorEmailADT::EnablePriority ), NULL, this );
-    btnAction->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorEmailADT::ProcessData ), NULL, this );
-    btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorEmailADT::CloseWindow ), NULL, this );
-}
-
-frmContactEditorEmailADT::~frmContactEditorEmailADT()
-{
-    // Disconnect Events
-    chkUsePref->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorEmailADT::EnablePriority ), NULL, this );
-    btnAction->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorEmailADT::ProcessData ), NULL, this );
-    btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorEmailADT::CloseWindow ), NULL, this );
-    
-}
-
-frmContactEditorIMADT::frmContactEditorIMADT( 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* bSizer251;
-    bSizer251 = new wxBoxSizer( wxVERTICAL );
-    
-    nbkIM = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
-    tabGeneral = new wxPanel( nbkIM, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
-    wxFlexGridSizer* fgSizer6;
-    fgSizer6 = new wxFlexGridSizer( 0, 2, 0, 0 );
-    fgSizer6->AddGrowableCol( 1 );
-    fgSizer6->SetFlexibleDirection( wxVERTICAL );
-    fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
-    
-    lblIMType = new wxStaticText( tabGeneral, wxID_ANY, wxT("IM Type:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblIMType->Wrap( -1 );
-    fgSizer6->Add( lblIMType, 0, wxALL, 5 );
-    
-    cmbIMType = new wxComboBox( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, wxCB_DROPDOWN );
-    fgSizer6->Add( cmbIMType, 0, wxALL, 5 );
-    
-    lblUsername = new wxStaticText( tabGeneral, wxID_ANY, wxT("Username/E-mail address:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblUsername->Wrap( 0 );
-    fgSizer6->Add( lblUsername, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-    
-    txtUsername = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
-    txtUsername->SetMaxLength( 0 );
-    fgSizer6->Add( txtUsername, 0, wxALL|wxEXPAND, 5 );
-    
-    lblPriority = new wxStaticText( tabGeneral, wxID_ANY, wxT("Priority:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblPriority->Wrap( -1 );
-    fgSizer6->Add( lblPriority, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer260;
-    bSizer260 = new wxBoxSizer( wxHORIZONTAL );
-    
-    chkUsePref = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Use"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer260->Add( chkUsePref, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer254;
-    bSizer254 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer256;
-    bSizer256 = new wxBoxSizer( wxHORIZONTAL );
-    
-    sliPriority = new wxSlider( tabGeneral, wxID_ANY, 0, 1, 100, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL|wxSL_LABELS );
-    bSizer256->Add( sliPriority, 1, wxALL|wxEXPAND, 5 );
-    
-    
-    bSizer254->Add( bSizer256, 1, wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer255;
-    bSizer255 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lblHigh = new wxStaticText( tabGeneral, wxID_ANY, wxT("High"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblHigh->Wrap( -1 );
-    bSizer255->Add( lblHigh, 0, wxALIGN_LEFT|wxALL, 5 );
-    
-    
-    bSizer255->Add( 0, 0, 1, wxEXPAND, 5 );
-    
-    lblLow = new wxStaticText( tabGeneral, wxID_ANY, wxT("Low"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblLow->Wrap( -1 );
-    bSizer255->Add( lblLow, 0, wxALIGN_RIGHT|wxALL, 5 );
-    
-    
-    bSizer254->Add( bSizer255, 1, wxEXPAND, 0 );
-    
-    
-    bSizer260->Add( bSizer254, 1, wxEXPAND, 5 );
-    
-    
-    fgSizer6->Add( bSizer260, 1, wxEXPAND, 5 );
-    
-    
-    fgSizer6->Add( 0, 0, 1, wxEXPAND, 5 );
-    
-    
-    tabGeneral->SetSizer( fgSizer6 );
-    tabGeneral->Layout();
-    fgSizer6->Fit( tabGeneral );
-    nbkIM->AddPage( tabGeneral, wxT("General"), false );
-    
-    bSizer251->Add( nbkIM, 1, wxEXPAND | wxALL, 5 );
-    
-    wxBoxSizer* bSizer252;
-    bSizer252 = new wxBoxSizer( wxHORIZONTAL );
-    
-    btnAction = new wxButton( this, wxID_ANY, wxT("Action"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer252->Add( btnAction, 0, wxALL, 5 );
-    
-    btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer252->Add( btnClose, 0, wxALL, 5 );
-    
-    
-    bSizer251->Add( bSizer252, 0, wxALIGN_RIGHT, 5 );
-    
-    
-    this->SetSizer( bSizer251 );
-    this->Layout();
-    
-    this->Centre( wxBOTH );
-    
-    // Connect Events
-    chkUsePref->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorIMADT::EnablePriority ), NULL, this );
-    btnAction->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorIMADT::ProcessAction ), NULL, this );
-    btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorIMADT::CloseWindow ), NULL, this );
-}
-
-frmContactEditorIMADT::~frmContactEditorIMADT()
-{
-    // Disconnect Events
-    chkUsePref->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorIMADT::EnablePriority ), NULL, this );
-    btnAction->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorIMADT::ProcessAction ), NULL, this );
-    btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorIMADT::CloseWindow ), NULL, this );
-    
-}
-
-frmContactEditorCategoryADT::frmContactEditorCategoryADT( 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* bSizer251;
-    bSizer251 = new wxBoxSizer( wxVERTICAL );
-    
-    nbkIM = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
-    tabGeneral = new wxPanel( nbkIM, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
-    wxFlexGridSizer* fgSizer6;
-    fgSizer6 = new wxFlexGridSizer( 0, 2, 0, 0 );
-    fgSizer6->AddGrowableCol( 1 );
-    fgSizer6->SetFlexibleDirection( wxVERTICAL );
-    fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
-    
-    lblCategory = new wxStaticText( tabGeneral, wxID_ANY, wxT("Category Name:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblCategory->Wrap( 0 );
-    fgSizer6->Add( lblCategory, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-    
-    txtCategory = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
-    txtCategory->SetMaxLength( 0 );
-    fgSizer6->Add( txtCategory, 0, wxALL|wxEXPAND, 5 );
-    
-    lblType = new wxStaticText( tabGeneral, wxID_ANY, wxT("Type:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblType->Wrap( -1 );
-    fgSizer6->Add( lblType, 0, wxALL, 5 );
-    
-    wxArrayString cmbTypeChoices;
-    cmbType = new wxChoice( tabGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, cmbTypeChoices, 0 );
-    cmbType->SetSelection( 0 );
-    fgSizer6->Add( cmbType, 0, wxALL, 5 );
-    
-    lblPriority = new wxStaticText( tabGeneral, wxID_ANY, wxT("Priority:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblPriority->Wrap( -1 );
-    fgSizer6->Add( lblPriority, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer260;
-    bSizer260 = new wxBoxSizer( wxHORIZONTAL );
-    
-    chkUsePref = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Use"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer260->Add( chkUsePref, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer254;
-    bSizer254 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer256;
-    bSizer256 = new wxBoxSizer( wxHORIZONTAL );
-    
-    sliPriority = new wxSlider( tabGeneral, wxID_ANY, 0, 1, 100, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL|wxSL_LABELS );
-    bSizer256->Add( sliPriority, 1, wxALL|wxEXPAND, 5 );
-    
-    
-    bSizer254->Add( bSizer256, 1, wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer255;
-    bSizer255 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lblHigh = new wxStaticText( tabGeneral, wxID_ANY, wxT("High"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblHigh->Wrap( -1 );
-    bSizer255->Add( lblHigh, 0, wxALIGN_LEFT|wxALL, 5 );
-    
-    
-    bSizer255->Add( 0, 0, 1, wxEXPAND, 5 );
-    
-    lblLow = new wxStaticText( tabGeneral, wxID_ANY, wxT("Low"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblLow->Wrap( -1 );
-    bSizer255->Add( lblLow, 0, wxALIGN_RIGHT|wxALL, 5 );
-    
-    
-    bSizer254->Add( bSizer255, 1, wxEXPAND, 0 );
-    
-    
-    bSizer260->Add( bSizer254, 1, wxEXPAND, 5 );
-    
-    
-    fgSizer6->Add( bSizer260, 1, wxEXPAND, 5 );
-    
-    
-    fgSizer6->Add( 0, 0, 1, wxEXPAND, 5 );
-    
-    
-    tabGeneral->SetSizer( fgSizer6 );
-    tabGeneral->Layout();
-    fgSizer6->Fit( tabGeneral );
-    nbkIM->AddPage( tabGeneral, wxT("General"), false );
-    
-    bSizer251->Add( nbkIM, 1, wxEXPAND | wxALL, 5 );
-    
-    wxBoxSizer* bSizer252;
-    bSizer252 = new wxBoxSizer( wxHORIZONTAL );
-    
-    btnAction = new wxButton( this, wxID_ANY, wxT("Action"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer252->Add( btnAction, 0, wxALL, 5 );
-    
-    btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer252->Add( btnClose, 0, wxALL, 5 );
-    
-    
-    bSizer251->Add( bSizer252, 0, wxALIGN_RIGHT, 5 );
-    
-    
-    this->SetSizer( bSizer251 );
-    this->Layout();
-    
-    this->Centre( wxBOTH );
-    
-    // Connect Events
-    chkUsePref->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorCategoryADT::EnablePriority ), NULL, this );
-    btnAction->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorCategoryADT::ProcessAction ), NULL, this );
-    btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorCategoryADT::CloseWindow ), NULL, this );
-}
-
-frmContactEditorCategoryADT::~frmContactEditorCategoryADT()
-{
-    // Disconnect Events
-    chkUsePref->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorCategoryADT::EnablePriority ), NULL, this );
-    btnAction->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorCategoryADT::ProcessAction ), NULL, this );
-    btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorCategoryADT::CloseWindow ), NULL, this );
-    
-}
-
-frmContactEditorTelephoneADT::frmContactEditorTelephoneADT( 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* bSizer251;
-    bSizer251 = new wxBoxSizer( wxVERTICAL );
-    
-    nbkAddress = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
-    tabGeneral = new wxPanel( nbkAddress, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
-    wxFlexGridSizer* fgSizer6;
-    fgSizer6 = new wxFlexGridSizer( 0, 2, 0, 0 );
-    fgSizer6->AddGrowableCol( 1 );
-    fgSizer6->SetFlexibleDirection( wxVERTICAL );
-    fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
-    
-    lblTelephone = new wxStaticText( tabGeneral, wxID_ANY, wxT("Telephone:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblTelephone->Wrap( -1 );
-    fgSizer6->Add( lblTelephone, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-    
-    txtTelephone = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
-    txtTelephone->SetMaxLength( 0 );
-    fgSizer6->Add( txtTelephone, 0, wxALL|wxEXPAND, 5 );
-    
-    lblPriority = new wxStaticText( tabGeneral, wxID_ANY, wxT("Priority:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblPriority->Wrap( -1 );
-    fgSizer6->Add( lblPriority, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer260;
-    bSizer260 = new wxBoxSizer( wxHORIZONTAL );
-    
-    chkUsePref = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Use"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer260->Add( chkUsePref, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer254;
-    bSizer254 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer256;
-    bSizer256 = new wxBoxSizer( wxHORIZONTAL );
-    
-    sliPriority = new wxSlider( tabGeneral, wxID_ANY, 0, 1, 100, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL|wxSL_LABELS );
-    bSizer256->Add( sliPriority, 1, wxALL|wxEXPAND, 5 );
-    
-    
-    bSizer254->Add( bSizer256, 1, wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer255;
-    bSizer255 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lblHigh = new wxStaticText( tabGeneral, wxID_ANY, wxT("High"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblHigh->Wrap( -1 );
-    bSizer255->Add( lblHigh, 0, wxALIGN_LEFT|wxALL, 5 );
-    
-    
-    bSizer255->Add( 0, 0, 1, wxEXPAND, 5 );
-    
-    lblLow = new wxStaticText( tabGeneral, wxID_ANY, wxT("Low"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblLow->Wrap( -1 );
-    bSizer255->Add( lblLow, 0, wxALIGN_RIGHT|wxALL, 5 );
-    
-    
-    bSizer254->Add( bSizer255, 0, wxEXPAND, 0 );
-    
-    
-    bSizer260->Add( bSizer254, 1, wxEXPAND, 5 );
-    
-    
-    fgSizer6->Add( bSizer260, 1, wxEXPAND, 5 );
-    
-    lblTelephoneType = new wxStaticText( tabGeneral, wxID_ANY, wxT("Type:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblTelephoneType->Wrap( 0 );
-    fgSizer6->Add( lblTelephoneType, 0, wxALIGN_TOP|wxALL, 5 );
-    
-    wxGridSizer* gSizer5;
-    gSizer5 = new wxGridSizer( 2, 2, 0, 0 );
-    
-    chkVoice = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Voice"), wxDefaultPosition, wxDefaultSize, 0 );
-    gSizer5->Add( chkVoice, 0, wxALL, 2 );
-    
-    chkText = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Text"), wxDefaultPosition, wxDefaultSize, 0 );
-    gSizer5->Add( chkText, 0, wxALL, 2 );
-    
-    chkFax = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Fax"), wxDefaultPosition, wxDefaultSize, 0 );
-    gSizer5->Add( chkFax, 0, wxALL, 2 );
-    
-    chkMobile = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Mobile"), wxDefaultPosition, wxDefaultSize, 0 );
-    gSizer5->Add( chkMobile, 0, wxALL, 2 );
-    
-    chkVideo = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Video"), wxDefaultPosition, wxDefaultSize, 0 );
-    gSizer5->Add( chkVideo, 0, wxALL, 2 );
-    
-    chkTextphone = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Textphone"), wxDefaultPosition, wxDefaultSize, 0 );
-    gSizer5->Add( chkTextphone, 0, wxALL, 2 );
-    
-    chkPager = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Pager"), wxDefaultPosition, wxDefaultSize, 0 );
-    gSizer5->Add( chkPager, 0, wxALL, 2 );
-    
-    
-    fgSizer6->Add( gSizer5, 1, 0, 5 );
-    
-    
-    tabGeneral->SetSizer( fgSizer6 );
-    tabGeneral->Layout();
-    fgSizer6->Fit( tabGeneral );
-    nbkAddress->AddPage( tabGeneral, wxT("General"), false );
-    
-    bSizer251->Add( nbkAddress, 1, wxEXPAND | wxALL, 5 );
-    
-    wxBoxSizer* bSizer252;
-    bSizer252 = new wxBoxSizer( wxHORIZONTAL );
-    
-    btnAction = new wxButton( this, wxID_ANY, wxT("Action"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer252->Add( btnAction, 0, wxALL, 5 );
-    
-    btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer252->Add( btnClose, 0, wxALL, 5 );
-    
-    
-    bSizer251->Add( bSizer252, 0, wxALIGN_RIGHT, 5 );
-    
-    
-    this->SetSizer( bSizer251 );
-    this->Layout();
-    
-    this->Centre( wxBOTH );
-    
-    // Connect Events
-    chkUsePref->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorTelephoneADT::EnablePriority ), NULL, this );
-    btnAction->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorTelephoneADT::ProcessAction ), NULL, this );
-    btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorTelephoneADT::CloseWindow ), NULL, this );
-}
-
-frmContactEditorTelephoneADT::~frmContactEditorTelephoneADT()
-{
-    // Disconnect Events
-    chkUsePref->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorTelephoneADT::EnablePriority ), NULL, this );
-    btnAction->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorTelephoneADT::ProcessAction ), NULL, this );
-    btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorTelephoneADT::CloseWindow ), NULL, this );
-    
-}
-
-frmContactEditorLanguagesADT::frmContactEditorLanguagesADT( 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* bSizer251;
-    bSizer251 = new wxBoxSizer( wxVERTICAL );
-    
-    nbkLanguages = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
-    tabGeneral = new wxPanel( nbkLanguages, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
-    wxFlexGridSizer* fgSizer6;
-    fgSizer6 = new wxFlexGridSizer( 0, 2, 0, 0 );
-    fgSizer6->AddGrowableCol( 1 );
-    fgSizer6->SetFlexibleDirection( wxVERTICAL );
-    fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
-    
-    lblLanguage = new wxStaticText( tabGeneral, wxID_ANY, wxT("Language:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblLanguage->Wrap( -1 );
-    fgSizer6->Add( lblLanguage, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-    
-    txtLanguage = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
-    txtLanguage->SetMaxLength( 0 );
-    fgSizer6->Add( txtLanguage, 0, wxALL|wxEXPAND, 5 );
-    
-    lblPriority = new wxStaticText( tabGeneral, wxID_ANY, wxT("Priority:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblPriority->Wrap( -1 );
-    fgSizer6->Add( lblPriority, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer260;
-    bSizer260 = new wxBoxSizer( wxHORIZONTAL );
-    
-    chkUsePref = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Use"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer260->Add( chkUsePref, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer254;
-    bSizer254 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer256;
-    bSizer256 = new wxBoxSizer( wxHORIZONTAL );
-    
-    sliPriority = new wxSlider( tabGeneral, wxID_ANY, 0, 1, 100, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL|wxSL_LABELS );
-    bSizer256->Add( sliPriority, 1, wxALL|wxEXPAND, 5 );
-    
-    
-    bSizer254->Add( bSizer256, 1, wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer255;
-    bSizer255 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lblHigh = new wxStaticText( tabGeneral, wxID_ANY, wxT("High"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblHigh->Wrap( -1 );
-    bSizer255->Add( lblHigh, 0, wxALIGN_LEFT|wxALL, 5 );
-    
-    
-    bSizer255->Add( 0, 0, 1, wxEXPAND, 5 );
-    
-    lblLow = new wxStaticText( tabGeneral, wxID_ANY, wxT("Low"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblLow->Wrap( -1 );
-    bSizer255->Add( lblLow, 0, wxALIGN_RIGHT|wxALL, 5 );
-    
-    
-    bSizer254->Add( bSizer255, 1, wxEXPAND, 0 );
-    
-    
-    bSizer260->Add( bSizer254, 1, wxEXPAND, 5 );
-    
-    
-    fgSizer6->Add( bSizer260, 1, wxEXPAND, 5 );
-    
-    
-    fgSizer6->Add( 0, 0, 1, wxEXPAND, 5 );
-    
-    
-    tabGeneral->SetSizer( fgSizer6 );
-    tabGeneral->Layout();
-    fgSizer6->Fit( tabGeneral );
-    nbkLanguages->AddPage( tabGeneral, wxT("General"), false );
-    
-    bSizer251->Add( nbkLanguages, 1, wxEXPAND | wxALL, 5 );
-    
-    wxBoxSizer* bSizer252;
-    bSizer252 = new wxBoxSizer( wxHORIZONTAL );
-    
-    btnAction = new wxButton( this, wxID_ANY, wxT("Action"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer252->Add( btnAction, 0, wxALL, 5 );
-    
-    btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer252->Add( btnClose, 0, wxALL, 5 );
-    
-    
-    bSizer251->Add( bSizer252, 0, wxALIGN_RIGHT, 5 );
-    
-    
-    this->SetSizer( bSizer251 );
-    this->Layout();
-    
-    this->Centre( wxBOTH );
-    
-    // Connect Events
-    chkUsePref->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorLanguagesADT::EnablePriority ), NULL, this );
-    btnAction->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorLanguagesADT::ProcessAction ), NULL, this );
-    btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorLanguagesADT::CloseWindow ), NULL, this );
-}
-
-frmContactEditorLanguagesADT::~frmContactEditorLanguagesADT()
-{
-    // Disconnect Events
-    chkUsePref->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorLanguagesADT::EnablePriority ), NULL, this );
-    btnAction->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorLanguagesADT::ProcessAction ), NULL, this );
-    btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorLanguagesADT::CloseWindow ), NULL, this );
-    
-}
-
-frmContactEditorTimezonesADT::frmContactEditorTimezonesADT( 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* bSizer251;
-    bSizer251 = new wxBoxSizer( wxVERTICAL );
-    
-    nbkTimezone = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
-    tabGeneral = new wxPanel( nbkTimezone, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
-    wxFlexGridSizer* fgSizer6;
-    fgSizer6 = new wxFlexGridSizer( 0, 2, 0, 0 );
-    fgSizer6->AddGrowableCol( 1 );
-    fgSizer6->SetFlexibleDirection( wxVERTICAL );
-    fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
-    
-    lblTimezone = new wxStaticText( tabGeneral, wxID_ANY, wxT("Timezone:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblTimezone->Wrap( -1 );
-    fgSizer6->Add( lblTimezone, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-    
-    cmbTimezone = new wxComboBox( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
-    fgSizer6->Add( cmbTimezone, 0, wxALL, 5 );
-    
-    lblPriority = new wxStaticText( tabGeneral, wxID_ANY, wxT("Priority:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblPriority->Wrap( -1 );
-    fgSizer6->Add( lblPriority, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer260;
-    bSizer260 = new wxBoxSizer( wxHORIZONTAL );
-    
-    chkUsePref = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Use"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer260->Add( chkUsePref, 0, wxALL, 5 );
-    
-    wxBoxSizer* bSizer254;
-    bSizer254 = new wxBoxSizer( wxVERTICAL );
-    
-    wxBoxSizer* bSizer256;
-    bSizer256 = new wxBoxSizer( wxHORIZONTAL );
-    
-    sliPriority = new wxSlider( tabGeneral, wxID_ANY, 0, 1, 100, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL|wxSL_LABELS );
-    bSizer256->Add( sliPriority, 1, wxALL|wxEXPAND, 5 );
-    
-    
-    bSizer254->Add( bSizer256, 1, wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer255;
-    bSizer255 = new wxBoxSizer( wxHORIZONTAL );
-    
-    lblHigh = new wxStaticText( tabGeneral, wxID_ANY, wxT("High"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblHigh->Wrap( -1 );
-    bSizer255->Add( lblHigh, 0, wxALIGN_LEFT|wxALL, 5 );
-    
-    
-    bSizer255->Add( 0, 0, 1, wxEXPAND, 5 );
-    
-    lblLow = new wxStaticText( tabGeneral, wxID_ANY, wxT("Low"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblLow->Wrap( -1 );
-    bSizer255->Add( lblLow, 0, wxALIGN_RIGHT|wxALL, 5 );
-    
-    
-    bSizer254->Add( bSizer255, 1, wxEXPAND, 0 );
-    
-    
-    bSizer260->Add( bSizer254, 1, wxEXPAND, 5 );
-    
-    
-    fgSizer6->Add( bSizer260, 1, wxEXPAND, 5 );
-    
-    
-    fgSizer6->Add( 0, 0, 1, wxEXPAND, 5 );
-    
-    
-    tabGeneral->SetSizer( fgSizer6 );
-    tabGeneral->Layout();
-    fgSizer6->Fit( tabGeneral );
-    nbkTimezone->AddPage( tabGeneral, wxT("General"), false );
-    
-    bSizer251->Add( nbkTimezone, 1, wxEXPAND | wxALL, 5 );
-    
-    wxBoxSizer* bSizer252;
-    bSizer252 = new wxBoxSizer( wxHORIZONTAL );
-    
-    btnAction = new wxButton( this, wxID_ANY, wxT("Action"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer252->Add( btnAction, 0, wxALL, 5 );
-    
-    btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer252->Add( btnClose, 0, wxALL, 5 );
-    
-    
-    bSizer251->Add( bSizer252, 0, wxALIGN_RIGHT, 5 );
-    
-    
-    this->SetSizer( bSizer251 );
-    this->Layout();
-    
-    this->Centre( wxBOTH );
-    
-    // Connect Events
-    chkUsePref->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorTimezonesADT::EnablePriority ), NULL, this );
-    btnAction->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorTimezonesADT::ProcessAction ), NULL, this );
-    btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorTimezonesADT::CloseWindow ), NULL, this );
-}
-
-frmContactEditorTimezonesADT::~frmContactEditorTimezonesADT()
-{
-    // Disconnect Events
-    chkUsePref->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorTimezonesADT::EnablePriority ), NULL, this );
-    btnAction->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorTimezonesADT::ProcessAction ), NULL, this );
-    btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorTimezonesADT::CloseWindow ), NULL, this );
-    
-}
-
-XABSearchPanelADT::XABSearchPanelADT( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
-{
-    this->SetMinSize( wxSize( -1,40 ) );
-    this->SetMaxSize( wxSize( -1,40 ) );
-    
-    wxFlexGridSizer* fgSizer40;
-    fgSizer40 = new wxFlexGridSizer( 0, 3, 0, 0 );
-    fgSizer40->AddGrowableCol( 1 );
-    fgSizer40->SetFlexibleDirection( wxBOTH );
-    fgSizer40->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
-    
-    wxArrayString choOptionChoices;
-    choOption = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, choOptionChoices, 0 );
-    choOption->SetSelection( 0 );
-    fgSizer40->Add( choOption, 0, wxALIGN_TOP|wxALL, 5 );
-    
-    szrSSet = new wxBoxSizer( wxHORIZONTAL );
-    
-    chkActive = new wxCheckBox( this, wxID_ANY, wxT("Enable"), wxDefaultPosition, wxDefaultSize, 0 );
-    szrSSet->Add( chkActive, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-    
-    txtSearch = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
-    txtSearch->SetMaxLength( 0 );
-    szrSSet->Add( txtSearch, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-    
-    
-    fgSizer40->Add( szrSSet, 1, wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer376;
-    bSizer376 = new wxBoxSizer( wxHORIZONTAL );
-    
-    btnAdd = new wxBitmapButton( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 28,28 ), wxBU_AUTODRAW );
-    btnAdd->SetMinSize( wxSize( 28,28 ) );
-    btnAdd->SetMaxSize( wxSize( 28,28 ) );
-    
-    bSizer376->Add( btnAdd, 0, wxALL, 5 );
-    
-    btnDelete = new wxBitmapButton( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 28,28 ), wxBU_AUTODRAW );
-    btnDelete->SetMinSize( wxSize( 28,28 ) );
-    btnDelete->SetMaxSize( wxSize( 28,28 ) );
-    
-    bSizer376->Add( btnDelete, 0, wxALL, 5 );
-    
-    
-    fgSizer40->Add( bSizer376, 0, 0, 5 );
-    
-    
-    this->SetSizer( fgSizer40 );
-    this->Layout();
-    
-    // Connect Events
-    choOption->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( XABSearchPanelADT::UpdateOptions ), NULL, this );
-    btnAdd->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( XABSearchPanelADT::AddSearchWidget ), NULL, this );
-    btnDelete->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( XABSearchPanelADT::RemoveSearchWidget ), NULL, this );
-}
-
-XABSearchPanelADT::~XABSearchPanelADT()
-{
-    // Disconnect Events
-    choOption->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( XABSearchPanelADT::UpdateOptions ), NULL, this );
-    btnAdd->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( XABSearchPanelADT::AddSearchWidget ), NULL, this );
-    btnDelete->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( XABSearchPanelADT::RemoveSearchWidget ), NULL, this );
-    
-}
-
-frmSearchAccountsADT::frmSearchAccountsADT( 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* bSizer376;
-    bSizer376 = new wxBoxSizer( wxVERTICAL );
-    
-    wxArrayString chlAccountsChoices;
-    chlAccounts = new wxCheckListBox( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, chlAccountsChoices, wxLB_ALWAYS_SB|wxLB_SORT );
-    bSizer376->Add( chlAccounts, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer377;
-    bSizer377 = new wxBoxSizer( wxHORIZONTAL );
-    
-    
-    bSizer377->Add( 0, 0, 1, wxEXPAND, 5 );
-    
-    btnSelect = new wxButton( this, wxID_ANY, wxT("Select"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer377->Add( btnSelect, 0, wxALL, 5 );
-    
-    btnCancel = new wxButton( this, wxID_ANY, wxT("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer377->Add( btnCancel, 0, wxALL, 5 );
-    
-    
-    bSizer377->Add( 0, 0, 1, wxEXPAND, 5 );
-    
-    
-    bSizer376->Add( bSizer377, 0, wxEXPAND, 5 );
-    
-    
-    this->SetSizer( bSizer376 );
-    this->Layout();
-    
-    this->Centre( wxBOTH );
-    
-    // Connect Events
-    btnSelect->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmSearchAccountsADT::UpdateSelectedAccounts ), NULL, this );
-    btnCancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmSearchAccountsADT::CloseWindow ), NULL, this );
-}
-
-frmSearchAccountsADT::~frmSearchAccountsADT()
-{
-    // Disconnect Events
-    btnSelect->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmSearchAccountsADT::UpdateSelectedAccounts ), NULL, this );
-    btnCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmSearchAccountsADT::CloseWindow ), NULL, this );
-    
-}
-
-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 );
-    txtAccountName->SetMaxLength( 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 );
-    txtAddress->SetMaxLength( 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 );
-    txtPort->SetMaxLength( 5 ); 
-    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 );
-    txtUsername->SetMaxLength( 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, 0 );
-    txtPassword->SetMaxLength( 0 ); 
-    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 );
-    txtPrefix->SetMaxLength( 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 );
-    txtRefresh->SetMaxLength( 5 ); 
-    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(), 70, 90, 92, 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"), false );
-    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->SetMaxLength( 0 ); 
-    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"), true );
-    
-    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 );
-    
-}
-
-frmImportContactsADT::frmImportContactsADT( 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* bSizer393;
-    bSizer393 = new wxBoxSizer( wxVERTICAL );
-    
-    lblImportText = new wxStaticText( this, wxID_ANY, wxT("Select the contacts you want to import and the account to import into. Click on Import to finish."), wxDefaultPosition, wxDefaultSize, 0 );
-    lblImportText->Wrap( -1 );
-    bSizer393->Add( lblImportText, 0, wxALL|wxEXPAND, 5 );
-    
-    wxArrayString lstContactsChoices;
-    lstContacts = new wxCheckListBox( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, lstContactsChoices, wxLB_ALWAYS_SB|wxLB_SORT );
-    bSizer393->Add( lstContacts, 1, wxALL|wxEXPAND, 5 );
-    
-    szrAccount = new wxBoxSizer( wxHORIZONTAL );
-    
-    lblAccountText = new wxStaticText( this, wxID_ANY, wxT("Account:"), wxDefaultPosition, wxDefaultSize, 0 );
-    lblAccountText->Wrap( -1 );
-    szrAccount->Add( lblAccountText, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
-    
-    
-    bSizer393->Add( szrAccount, 0, wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer394;
-    bSizer394 = new wxBoxSizer( wxHORIZONTAL );
-    
-    btnImport = new wxButton( this, wxID_ANY, wxT("Import"), wxDefaultPosition, wxDefaultSize, 0 );
-    btnImport->SetDefault(); 
-    bSizer394->Add( btnImport, 0, wxALL, 5 );
-    
-    btnCancel = new wxButton( this, wxID_ANY, wxT("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer394->Add( btnCancel, 0, wxALL, 5 );
-    
-    
-    bSizer393->Add( bSizer394, 0, wxALIGN_RIGHT, 5 );
-    
-    
-    this->SetSizer( bSizer393 );
-    this->Layout();
-    
-    this->Centre( wxBOTH );
-    
-    // Connect Events
-    btnImport->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmImportContactsADT::ImportContacts ), NULL, this );
-    btnCancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmImportContactsADT::CloseWindow ), NULL, this );
-}
-
-frmImportContactsADT::~frmImportContactsADT()
-{
-    // Disconnect Events
-    btnImport->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmImportContactsADT::ImportContacts ), NULL, this );
-    btnCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmImportContactsADT::CloseWindow ), NULL, this );
-    
-}
-
-frmImportResultsADT::frmImportResultsADT( 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* bSizer396;
-    bSizer396 = new wxBoxSizer( wxVERTICAL );
-    
-    lblText = new wxStaticText( this, wxID_ANY, wxT("x contacts imported. x contacts had errors and could not be imported."), wxDefaultPosition, wxDefaultSize, 0 );
-    lblText->Wrap( -1 );
-    bSizer396->Add( lblText, 0, wxALL, 5 );
-    
-    txtResults = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY );
-    txtResults->SetMaxLength( 0 ); 
-    bSizer396->Add( txtResults, 1, wxALL|wxEXPAND, 5 );
-    
-    wxBoxSizer* bSizer397;
-    bSizer397 = new wxBoxSizer( wxHORIZONTAL );
-    
-    btnCopyClipboard = new wxButton( this, wxID_ANY, wxT("Copy to Clipboard"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer397->Add( btnCopyClipboard, 0, 0, 5 );
-    
-    btnFinish = new wxButton( this, wxID_ANY, wxT("Finish"), wxDefaultPosition, wxDefaultSize, 0 );
-    bSizer397->Add( btnFinish, 0, wxALIGN_RIGHT|wxBOTTOM|wxLEFT, 5 );
-    
-    
-    bSizer396->Add( bSizer397, 0, wxALIGN_RIGHT|wxRIGHT, 5 );
-    
-    
-    this->SetSizer( bSizer396 );
-    this->Layout();
-    
-    this->Centre( wxBOTH );
-    
-    // Connect Events
-    btnCopyClipboard->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmImportResultsADT::CopyClipboard ), NULL, this );
-    btnFinish->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmImportResultsADT::CloseWindow ), NULL, this );
-}
-
-frmImportResultsADT::~frmImportResultsADT()
-{
-    // Disconnect Events
-    btnCopyClipboard->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmImportResultsADT::CopyClipboard ), NULL, this );
-    btnFinish->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmImportResultsADT::CloseWindow ), NULL, this );
-    
-}
+///////////////////////////////////////////////////////////////////////////\r
+// C++ code generated with wxFormBuilder (version Jun 17 2015)\r
+// http://www.wxformbuilder.org/\r
+//\r
+// PLEASE DO "NOT" EDIT THIS FILE!\r
+///////////////////////////////////////////////////////////////////////////\r
+\r
+#include "AppXestiaAddrBk.h"\r
+\r
+///////////////////////////////////////////////////////////////////////////\r
+\r
+frmMainADT::frmMainADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxFrame( parent, id, title, pos, size, style )\r
+{\r
+       this->SetSizeHints( wxDefaultSize, wxDefaultSize );\r
+       this->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE ) );\r
+       \r
+       mnuMain = new wxMenuBar( 0 );\r
+       mnuManage = new wxMenu();\r
+       wxMenuItem* mnuNewAB;\r
+       mnuNewAB = new wxMenuItem( mnuManage, ID_MANAGE_NEWAB, wxString( wxT("New Address Book...") ) , wxEmptyString, wxITEM_NORMAL );\r
+       mnuManage->Append( mnuNewAB );\r
+       \r
+       mnuManage->AppendSeparator();\r
+       \r
+       wxMenuItem* mnuRefreshAB;\r
+       mnuRefreshAB = new wxMenuItem( mnuManage, wxID_ANY, wxString( wxT("Refresh Address Book") ) + wxT('\t') + wxT("CTRL+R"), wxEmptyString, wxITEM_NORMAL );\r
+       mnuManage->Append( mnuRefreshAB );\r
+       \r
+       mnuManage->AppendSeparator();\r
+       \r
+       wxMenuItem* mnuImport;\r
+       mnuImport = new wxMenuItem( mnuManage, ID_MANAGE_IMPORT, wxString( wxT("Import...") ) , wxEmptyString, wxITEM_NORMAL );\r
+       mnuManage->Append( mnuImport );\r
+       \r
+       wxMenuItem* mnuExport;\r
+       mnuExport = new wxMenuItem( mnuManage, ID_MANAGE_EXPORT, wxString( wxT("Export...") ) , wxEmptyString, wxITEM_NORMAL );\r
+       mnuManage->Append( mnuExport );\r
+       \r
+       mnuPrefSep = mnuManage->AppendSeparator();\r
+       \r
+       wxMenuItem* mnuPreferences;\r
+       mnuPreferences = new wxMenuItem( mnuManage, wxID_PREFERENCES, wxString( wxT("Preferences...") ) , wxEmptyString, wxITEM_NORMAL );\r
+       mnuManage->Append( mnuPreferences );\r
+       \r
+       mnuExitSep = mnuManage->AppendSeparator();\r
+       \r
+       wxMenuItem* mnuExit;\r
+       mnuExit = new wxMenuItem( mnuManage, wxID_EXIT, wxString( wxT("Exit") ) + wxT('\t') + wxT("CTRL+Q"), wxEmptyString, wxITEM_NORMAL );\r
+       #ifdef __WXMSW__\r
+       mnuExit->SetBitmaps( wxNullBitmap );\r
+       #elif (defined( __WXGTK__ ) || defined( __WXOSX__ ))\r
+       mnuExit->SetBitmap( wxNullBitmap );\r
+       #endif\r
+       mnuManage->Append( mnuExit );\r
+       \r
+       mnuMain->Append( mnuManage, wxT("Manage") ); \r
+       \r
+       mnuContact = new wxMenu();\r
+       wxMenuItem* mnuNewContact;\r
+       mnuNewContact = new wxMenuItem( mnuContact, wxID_ANY, wxString( wxT("New Contact...") ) + wxT('\t') + wxT("CTRL+N"), wxEmptyString, wxITEM_NORMAL );\r
+       mnuContact->Append( mnuNewContact );\r
+       \r
+       wxMenuItem* mnuEditContact;\r
+       mnuEditContact = new wxMenuItem( mnuContact, ID_CONTACT_EDIT, wxString( wxT("Edit Contact...") ) + wxT('\t') + wxT("CTRL+E"), wxEmptyString, wxITEM_NORMAL );\r
+       mnuContact->Append( mnuEditContact );\r
+       \r
+       wxMenuItem* deleteContact;\r
+       deleteContact = new wxMenuItem( mnuContact, ID_CONTACT_DELETE, wxString( wxT("Delete Contact...") ) + wxT('\t') + wxT("CTRL+D"), wxEmptyString, wxITEM_NORMAL );\r
+       mnuContact->Append( deleteContact );\r
+       \r
+       mnuContact->AppendSeparator();\r
+       \r
+       wxMenuItem* mnuFindContact;\r
+       mnuFindContact = new wxMenuItem( mnuContact, wxID_ANY, wxString( wxT("Find Contacts...") ) + wxT('\t') + wxT("CTRL+F"), wxEmptyString, wxITEM_NORMAL );\r
+       mnuContact->Append( mnuFindContact );\r
+       \r
+       mnuMain->Append( mnuContact, wxT("Contact") ); \r
+       \r
+       mnuView = new wxMenu();\r
+       mnuShowContactsAs = new wxMenu();\r
+       wxMenuItem* mnuShowContactsAsItem = new wxMenuItem( mnuView, wxID_ANY, wxT("Show Contacts As"), wxEmptyString, wxITEM_NORMAL, mnuShowContactsAs );\r
+       wxMenuItem* mnuViewFNLN;\r
+       mnuViewFNLN = new wxMenuItem( mnuShowContactsAs, ID_VIEW_FNLN, wxString( wxT("First Name, Last Name") ) , wxEmptyString, wxITEM_NORMAL );\r
+       mnuShowContactsAs->Append( mnuViewFNLN );\r
+       \r
+       wxMenuItem* mnuViewLNFN;\r
+       mnuViewLNFN = new wxMenuItem( mnuShowContactsAs, ID_VIEW_LNFN, wxString( wxT("Last Name, First Name") ) , wxEmptyString, wxITEM_NORMAL );\r
+       mnuShowContactsAs->Append( mnuViewLNFN );\r
+       \r
+       wxMenuItem* mnuViewNick;\r
+       mnuViewNick = new wxMenuItem( mnuShowContactsAs, ID_VIEW_NICK, wxString( wxT("Nickname") ) , wxEmptyString, wxITEM_NORMAL );\r
+       mnuShowContactsAs->Append( mnuViewNick );\r
+       \r
+       wxMenuItem* mnuViewDisplayAs;\r
+       mnuViewDisplayAs = new wxMenuItem( mnuShowContactsAs, wxID_ANY, wxString( wxT("Display As Name") ) , wxEmptyString, wxITEM_NORMAL );\r
+       mnuShowContactsAs->Append( mnuViewDisplayAs );\r
+       \r
+       mnuView->Append( mnuShowContactsAsItem );\r
+       \r
+       mnuViewSortBy = new wxMenu();\r
+       wxMenuItem* mnuViewSortByItem = new wxMenuItem( mnuView, wxID_ANY, wxT("Sort By"), wxEmptyString, wxITEM_NORMAL, mnuViewSortBy );\r
+       wxMenuItem* mnuViewAsc;\r
+       mnuViewAsc = new wxMenuItem( mnuViewSortBy, ID_VIEW_ASC, wxString( wxT("Ascending") ) , wxEmptyString, wxITEM_NORMAL );\r
+       mnuViewSortBy->Append( mnuViewAsc );\r
+       \r
+       wxMenuItem* mnuViewDesc;\r
+       mnuViewDesc = new wxMenuItem( mnuViewSortBy, ID_VIEW_DESC, wxString( wxT("Descending") ) , wxEmptyString, wxITEM_NORMAL );\r
+       mnuViewSortBy->Append( mnuViewDesc );\r
+       \r
+       mnuView->Append( mnuViewSortByItem );\r
+       \r
+       mnuViewShow = new wxMenu();\r
+       wxMenuItem* mnuViewShowItem = new wxMenuItem( mnuView, wxID_ANY, wxT("Show"), wxEmptyString, wxITEM_NORMAL, mnuViewShow );\r
+       wxMenuItem* mnuViewStatusBar;\r
+       mnuViewStatusBar = new wxMenuItem( mnuViewShow, ID_VIEW_STATUSBAR, wxString( wxT("Status Bar") ) , wxEmptyString, wxITEM_NORMAL );\r
+       mnuViewShow->Append( mnuViewStatusBar );\r
+       \r
+       mnuView->Append( mnuViewShowItem );\r
+       \r
+       mnuView->AppendSeparator();\r
+       \r
+       wxMenuItem* mnuViewActivity;\r
+       mnuViewActivity = new wxMenuItem( mnuView, wxID_ANY, wxString( wxT("Activity Manager") ) , wxEmptyString, wxITEM_NORMAL );\r
+       mnuView->Append( mnuViewActivity );\r
+       \r
+       mnuMain->Append( mnuView, wxT("View") ); \r
+       \r
+       mnuEdit = new wxMenu();\r
+       wxMenuItem* mnuCut;\r
+       mnuCut = new wxMenuItem( mnuEdit, ID_MANAGE_CUT, wxString( wxT("Cut") ) + wxT('\t') + wxT("CTRL+X"), wxEmptyString, wxITEM_NORMAL );\r
+       mnuEdit->Append( mnuCut );\r
+       \r
+       wxMenuItem* mnuCopy;\r
+       mnuCopy = new wxMenuItem( mnuEdit, ID_MANAGE_COPY, wxString( wxT("Copy") ) + wxT('\t') + wxT("CTRL+C"), wxEmptyString, wxITEM_NORMAL );\r
+       mnuEdit->Append( mnuCopy );\r
+       \r
+       wxMenuItem* mnuPaste;\r
+       mnuPaste = new wxMenuItem( mnuEdit, ID_MANAGE_PASTE, wxString( wxT("Paste") ) + wxT('\t') + wxT("CTRL+V"), wxEmptyString, wxITEM_NORMAL );\r
+       mnuEdit->Append( mnuPaste );\r
+       \r
+       mnuMain->Append( mnuEdit, wxT("Edit") ); \r
+       \r
+       mnuWindow = new wxMenu();\r
+       mnuMain->Append( mnuWindow, wxT("Window") ); \r
+       \r
+       mnuHelp = new wxMenu();\r
+       wxMenuItem* showHelp;\r
+       showHelp = new wxMenuItem( mnuHelp, ID_HELP_SHOW, wxString( wxT("Show Help...") ) + wxT('\t') + wxT("F1"), wxEmptyString, wxITEM_NORMAL );\r
+       mnuHelp->Append( showHelp );\r
+       \r
+       mnuHelp->AppendSeparator();\r
+       \r
+       wxMenuItem* mnuHelpUpdates;\r
+       mnuHelpUpdates = new wxMenuItem( mnuHelp, ID_MANAGE_UPDATE, wxString( wxT("Check for updates...") ) , wxEmptyString, wxITEM_NORMAL );\r
+       mnuHelp->Append( mnuHelpUpdates );\r
+       \r
+       mnuHelpAboutSep = mnuHelp->AppendSeparator();\r
+       \r
+       wxMenuItem* mnuAbout;\r
+       mnuAbout = new wxMenuItem( mnuHelp, wxID_ABOUT, wxString( wxT("About") ) + wxT('\t') + wxT("SHIFT+CTRL+A"), wxEmptyString, wxITEM_NORMAL );\r
+       mnuHelp->Append( mnuAbout );\r
+       \r
+       mnuMain->Append( mnuHelp, wxT("Help") ); \r
+       \r
+       this->SetMenuBar( mnuMain );\r
+       \r
+       szrMain = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer396;\r
+       bSizer396 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       bmpIcon = new wxStaticBitmap( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer396->Add( bmpIcon, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       AccCtrl = new wxComboCtrl(this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxCB_READONLY|wxEXPAND);\r
+       bSizer396->Add( AccCtrl, 0, wxALL, 5 );\r
+       \r
+       \r
+       szrMain->Add( bSizer396, 0, wxEXPAND|wxLEFT, 5 );\r
+       \r
+       m_splitter13 = new wxSplitterWindow( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSP_3D );\r
+       m_splitter13->Connect( wxEVT_IDLE, wxIdleEventHandler( frmMainADT::m_splitter13OnIdle ), NULL, this );\r
+       m_splitter13->SetMinimumPaneSize( 1 );\r
+       \r
+       m_panel19 = new wxPanel( m_splitter13, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       szrContactList = new wxFlexGridSizer( 0, 1, 0, 0 );\r
+       szrContactList->AddGrowableCol( 0 );\r
+       szrContactList->AddGrowableRow( 1 );\r
+       szrContactList->SetFlexibleDirection( wxBOTH );\r
+       szrContactList->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );\r
+       \r
+       szrAccList = new wxFlexGridSizer( 0, 2, 0, 0 );\r
+       szrAccList->SetFlexibleDirection( wxVERTICAL );\r
+       szrAccList->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );\r
+       \r
+       \r
+       szrContactList->Add( szrAccList, 0, 0, 5 );\r
+       \r
+       lstContacts = new wxListCtrl( m_panel19, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_NO_HEADER|wxLC_REPORT|wxSUNKEN_BORDER );\r
+       szrContactList->Add( lstContacts, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       \r
+       m_panel19->SetSizer( szrContactList );\r
+       m_panel19->Layout();\r
+       szrContactList->Fit( m_panel19 );\r
+       m_panel20 = new wxPanel( m_splitter13, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxBoxSizer* bSizer12;\r
+       bSizer12 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       htmContactData = new wxHtmlWindow( m_panel20, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHW_SCROLLBAR_AUTO|wxSUNKEN_BORDER );\r
+       bSizer12->Add( htmContactData, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       \r
+       m_panel20->SetSizer( bSizer12 );\r
+       m_panel20->Layout();\r
+       bSizer12->Fit( m_panel20 );\r
+       m_splitter13->SplitVertically( m_panel19, m_panel20, 314 );\r
+       szrMain->Add( m_splitter13, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       this->SetSizer( szrMain );\r
+       this->Layout();\r
+       stbBottom = this->CreateStatusBar( 1, wxST_SIZEGRIP, wxID_ANY );\r
+       \r
+       this->Centre( wxBOTH );\r
+       \r
+       // Connect Events\r
+       this->Connect( mnuNewAB->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::OpenNewABDialog ) );\r
+       this->Connect( mnuRefreshAB->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::RefreshAddressBook ) );\r
+       this->Connect( mnuImport->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::OpenImportDialog ) );\r
+       this->Connect( mnuExport->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::OpenExportDialog ) );\r
+       this->Connect( mnuPreferences->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::OpenPreferences ) );\r
+       this->Connect( mnuExit->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::QuitApp ) );\r
+       this->Connect( mnuNewContact->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::ShowContactEditorNew ) );\r
+       this->Connect( mnuEditContact->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::ShowContactEditorEdit ) );\r
+       this->Connect( deleteContact->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::DeleteContact ) );\r
+       this->Connect( mnuFindContact->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::OpenFindContactsWindow ) );\r
+       this->Connect( mnuViewFNLN->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::SortFNLN ) );\r
+       this->Connect( mnuViewLNFN->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::SortLNFN ) );\r
+       this->Connect( mnuViewNick->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::SortNickname ) );\r
+       this->Connect( mnuViewDisplayAs->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::SortDisplayAs ) );\r
+       this->Connect( mnuViewAsc->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::SortAscending ) );\r
+       this->Connect( mnuViewDesc->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::SortDescending ) );\r
+       this->Connect( mnuViewStatusBar->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::ToggleStatusBar ) );\r
+       this->Connect( mnuViewActivity->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::ShowActivityWindow ) );\r
+       this->Connect( mnuCut->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::CutAction ) );\r
+       this->Connect( mnuCopy->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::CopyAction ) );\r
+       this->Connect( mnuPaste->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::PasteAction ) );\r
+       this->Connect( showHelp->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::ShowHelp ) );\r
+       this->Connect( mnuHelpUpdates->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::CheckUpdates ) );\r
+       this->Connect( mnuAbout->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::ShowAboutWindow ) );\r
+       lstContacts->Connect( wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler( frmMainADT::OpenContactInfo ), NULL, this );\r
+       lstContacts->Connect( wxEVT_COMMAND_LIST_ITEM_DESELECTED, wxListEventHandler( frmMainADT::ShowContactInfo ), NULL, this );\r
+       lstContacts->Connect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( frmMainADT::ShowContactInfo ), NULL, this );\r
+       htmContactData->Connect( wxEVT_RIGHT_UP, wxMouseEventHandler( frmMainADT::ShowContactSubmenu ), NULL, this );\r
+       stbBottom->Connect( wxEVT_SIZE, wxSizeEventHandler( frmMainADT::UpdateSBIconPlacement ), NULL, this );\r
+}\r
+\r
+frmMainADT::~frmMainADT()\r
+{\r
+       // Disconnect Events\r
+       this->Disconnect( ID_MANAGE_NEWAB, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::OpenNewABDialog ) );\r
+       this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::RefreshAddressBook ) );\r
+       this->Disconnect( ID_MANAGE_IMPORT, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::OpenImportDialog ) );\r
+       this->Disconnect( ID_MANAGE_EXPORT, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::OpenExportDialog ) );\r
+       this->Disconnect( wxID_PREFERENCES, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::OpenPreferences ) );\r
+       this->Disconnect( wxID_EXIT, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::QuitApp ) );\r
+       this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::ShowContactEditorNew ) );\r
+       this->Disconnect( ID_CONTACT_EDIT, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::ShowContactEditorEdit ) );\r
+       this->Disconnect( ID_CONTACT_DELETE, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::DeleteContact ) );\r
+       this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::OpenFindContactsWindow ) );\r
+       this->Disconnect( ID_VIEW_FNLN, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::SortFNLN ) );\r
+       this->Disconnect( ID_VIEW_LNFN, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::SortLNFN ) );\r
+       this->Disconnect( ID_VIEW_NICK, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::SortNickname ) );\r
+       this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::SortDisplayAs ) );\r
+       this->Disconnect( ID_VIEW_ASC, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::SortAscending ) );\r
+       this->Disconnect( ID_VIEW_DESC, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::SortDescending ) );\r
+       this->Disconnect( ID_VIEW_STATUSBAR, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::ToggleStatusBar ) );\r
+       this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::ShowActivityWindow ) );\r
+       this->Disconnect( ID_MANAGE_CUT, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::CutAction ) );\r
+       this->Disconnect( ID_MANAGE_COPY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::CopyAction ) );\r
+       this->Disconnect( ID_MANAGE_PASTE, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::PasteAction ) );\r
+       this->Disconnect( ID_HELP_SHOW, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::ShowHelp ) );\r
+       this->Disconnect( ID_MANAGE_UPDATE, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::CheckUpdates ) );\r
+       this->Disconnect( wxID_ABOUT, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::ShowAboutWindow ) );\r
+       lstContacts->Disconnect( wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler( frmMainADT::OpenContactInfo ), NULL, this );\r
+       lstContacts->Disconnect( wxEVT_COMMAND_LIST_ITEM_DESELECTED, wxListEventHandler( frmMainADT::ShowContactInfo ), NULL, this );\r
+       lstContacts->Disconnect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( frmMainADT::ShowContactInfo ), NULL, this );\r
+       htmContactData->Disconnect( wxEVT_RIGHT_UP, wxMouseEventHandler( frmMainADT::ShowContactSubmenu ), NULL, this );\r
+       stbBottom->Disconnect( wxEVT_SIZE, wxSizeEventHandler( frmMainADT::UpdateSBIconPlacement ), NULL, this );\r
+       \r
+}\r
+\r
+frmUpdateADT::frmUpdateADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )\r
+{\r
+       this->SetSizeHints( wxDefaultSize, wxDefaultSize );\r
+       \r
+       wxBoxSizer* bSizer390;\r
+       bSizer390 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       pnlUpdateData = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxBoxSizer* bSizer391;\r
+       bSizer391 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxFlexGridSizer* fgSizer45;\r
+       fgSizer45 = new wxFlexGridSizer( 3, 2, 0, 0 );\r
+       fgSizer45->SetFlexibleDirection( wxBOTH );\r
+       fgSizer45->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );\r
+       \r
+       lblRunningText = new wxStaticText( pnlUpdateData, wxID_ANY, wxT("Running version is:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblRunningText->Wrap( -1 );\r
+       fgSizer45->Add( lblRunningText, 0, wxALL, 5 );\r
+       \r
+       lblRunningVer = new wxStaticText( pnlUpdateData, wxID_ANY, wxT("UPDATEVER"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblRunningVer->Wrap( -1 );\r
+       fgSizer45->Add( lblRunningVer, 0, wxALL, 5 );\r
+       \r
+       lblAvailableText = new wxStaticText( pnlUpdateData, wxID_ANY, wxT("Available version is:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblAvailableText->Wrap( -1 );\r
+       fgSizer45->Add( lblAvailableText, 0, wxALL, 5 );\r
+       \r
+       lblAvailableVer = new wxStaticText( pnlUpdateData, wxID_ANY, wxT("AVAILVER"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblAvailableVer->Wrap( -1 );\r
+       fgSizer45->Add( lblAvailableVer, 0, wxALL, 5 );\r
+       \r
+       lblBuildTypeText = new wxStaticText( pnlUpdateData, wxID_ANY, wxT("Build type is:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblBuildTypeText->Wrap( -1 );\r
+       fgSizer45->Add( lblBuildTypeText, 0, wxALL, 5 );\r
+       \r
+       lblBuildType = new wxStaticText( pnlUpdateData, wxID_ANY, wxT("BUILDTYPE"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblBuildType->Wrap( -1 );\r
+       fgSizer45->Add( lblBuildType, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer391->Add( fgSizer45, 0, wxEXPAND, 5 );\r
+       \r
+       lblUpdateMessage = new wxStaticText( pnlUpdateData, wxID_ANY, wxT("MESSAGE"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblUpdateMessage->Wrap( -1 );\r
+       bSizer391->Add( lblUpdateMessage, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       \r
+       pnlUpdateData->SetSizer( bSizer391 );\r
+       pnlUpdateData->Layout();\r
+       bSizer391->Fit( pnlUpdateData );\r
+       bSizer390->Add( pnlUpdateData, 1, wxEXPAND | wxALL, 5 );\r
+       \r
+       statLine = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );\r
+       bSizer390->Add( statLine, 0, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer392;\r
+       bSizer392 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       btnVisitGelforn = new wxButton( this, wxID_ANY, wxT("Visit Gelforn"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer392->Add( btnVisitGelforn, 0, wxALIGN_RIGHT|wxBOTTOM|wxLEFT, 5 );\r
+       \r
+       btnVisitPREMIUM = new wxButton( this, wxID_ANY, wxT("Visit PREMIUM"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer392->Add( btnVisitPREMIUM, 0, wxBOTTOM|wxLEFT, 5 );\r
+       \r
+       btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer392->Add( btnClose, 0, wxALIGN_RIGHT|wxBOTTOM|wxLEFT|wxRIGHT, 5 );\r
+       \r
+       \r
+       bSizer390->Add( bSizer392, 0, wxALIGN_RIGHT, 0 );\r
+       \r
+       \r
+       this->SetSizer( bSizer390 );\r
+       this->Layout();\r
+       \r
+       this->Centre( wxBOTH );\r
+       \r
+       // Connect Events\r
+       btnVisitGelforn->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmUpdateADT::VisitGelforn ), NULL, this );\r
+       btnVisitPREMIUM->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmUpdateADT::VisitPREMIUM ), NULL, this );\r
+       btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmUpdateADT::CloseWindow ), NULL, this );\r
+}\r
+\r
+frmUpdateADT::~frmUpdateADT()\r
+{\r
+       // Disconnect Events\r
+       btnVisitGelforn->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmUpdateADT::VisitGelforn ), NULL, this );\r
+       btnVisitPREMIUM->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmUpdateADT::VisitPREMIUM ), NULL, this );\r
+       btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmUpdateADT::CloseWindow ), NULL, this );\r
+       \r
+}\r
+\r
+frmSearchADT::frmSearchADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxFrame( parent, id, title, pos, size, style )\r
+{\r
+       this->SetSizeHints( wxSize( 300,450 ), wxDefaultSize );\r
+       \r
+       stbBottom = this->CreateStatusBar( 1, wxST_SIZEGRIP, wxID_ANY );\r
+       wxBoxSizer* bSizer368;\r
+       bSizer368 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       m_splitter4 = new wxSplitterWindow( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSP_3D );\r
+       m_splitter4->Connect( wxEVT_IDLE, wxIdleEventHandler( frmSearchADT::m_splitter4OnIdle ), NULL, this );\r
+       m_splitter4->SetMinimumPaneSize( 1 );\r
+       \r
+       m_panel60 = new wxPanel( m_splitter4, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxBoxSizer* bSizer382;\r
+       bSizer382 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer369;\r
+       bSizer369 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       nbkSearch = new wxNotebook( m_panel60, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );\r
+       tabSearch = new wxScrolledWindow( nbkSearch, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxFULL_REPAINT_ON_RESIZE|wxHSCROLL|wxVSCROLL );\r
+       tabSearch->SetScrollRate( 5, 5 );\r
+       szrSearch = new wxFlexGridSizer( 0, 1, 0, 0 );\r
+       szrSearch->AddGrowableCol( 0 );\r
+       szrSearch->SetFlexibleDirection( wxVERTICAL );\r
+       szrSearch->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );\r
+       \r
+       \r
+       tabSearch->SetSizer( szrSearch );\r
+       tabSearch->Layout();\r
+       szrSearch->Fit( tabSearch );\r
+       nbkSearch->AddPage( tabSearch, wxT("Search"), true );\r
+       tabAdvanced = new wxScrolledWindow( nbkSearch, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHSCROLL|wxVSCROLL );\r
+       tabAdvanced->SetScrollRate( 5, 5 );\r
+       wxBoxSizer* bSizer384;\r
+       bSizer384 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnSelectAccounts = new wxButton( tabAdvanced, wxID_ANY, wxT("Select Accounts..."), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer384->Add( btnSelectAccounts, 0, wxALL, 5 );\r
+       \r
+       \r
+       tabAdvanced->SetSizer( bSizer384 );\r
+       tabAdvanced->Layout();\r
+       bSizer384->Fit( tabAdvanced );\r
+       nbkSearch->AddPage( tabAdvanced, wxT("Advanced"), false );\r
+       \r
+       bSizer369->Add( nbkSearch, 1, wxEXPAND | wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer371;\r
+       bSizer371 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnSearch = new wxButton( m_panel60, wxID_ANY, wxT("Search"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer371->Add( btnSearch, 0, wxALL, 5 );\r
+       \r
+       btnReset = new wxButton( m_panel60, wxID_ANY, wxT("Reset"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer371->Add( btnReset, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer369->Add( bSizer371, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer382->Add( bSizer369, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       m_panel60->SetSizer( bSizer382 );\r
+       m_panel60->Layout();\r
+       bSizer382->Fit( m_panel60 );\r
+       m_panel61 = new wxPanel( m_splitter4, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxBoxSizer* bSizer386;\r
+       bSizer386 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       lstResults = new wxListCtrl( m_panel61, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       bSizer386->Add( lstResults, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       \r
+       m_panel61->SetSizer( bSizer386 );\r
+       m_panel61->Layout();\r
+       bSizer386->Fit( m_panel61 );\r
+       m_splitter4->SplitHorizontally( m_panel60, m_panel61, 178 );\r
+       bSizer368->Add( m_splitter4, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       this->SetSizer( bSizer368 );\r
+       this->Layout();\r
+       m_menubar5 = new wxMenuBar( 0 );\r
+       mnuContact = new wxMenu();\r
+       wxMenuItem* mnuContactOpen;\r
+       mnuContactOpen = new wxMenuItem( mnuContact, wxID_ANY, wxString( wxT("Open Contact...") ) + wxT('\t') + wxT("CTRL+O"), wxEmptyString, wxITEM_NORMAL );\r
+       mnuContact->Append( mnuContactOpen );\r
+       \r
+       wxMenuItem* mnuContactEdit;\r
+       mnuContactEdit = new wxMenuItem( mnuContact, wxID_ANY, wxString( wxT("Edit Contact...") ) + wxT('\t') + wxT("CTRL+E"), wxEmptyString, wxITEM_NORMAL );\r
+       mnuContact->Append( mnuContactEdit );\r
+       \r
+       wxMenuItem* mnuContactReveal;\r
+       mnuContactReveal = new wxMenuItem( mnuContact, wxID_ANY, wxString( wxT("Reveal Contact") ) + wxT('\t') + wxT("CTRL+R"), wxEmptyString, wxITEM_NORMAL );\r
+       mnuContact->Append( mnuContactReveal );\r
+       \r
+       mnuContact->AppendSeparator();\r
+       \r
+       wxMenuItem* mnuContactClose;\r
+       mnuContactClose = new wxMenuItem( mnuContact, wxID_ANY, wxString( wxT("Close Window") ) + wxT('\t') + wxT("ALT+F4"), wxEmptyString, wxITEM_NORMAL );\r
+       mnuContact->Append( mnuContactClose );\r
+       \r
+       m_menubar5->Append( mnuContact, wxT("Contact") ); \r
+       \r
+       this->SetMenuBar( m_menubar5 );\r
+       \r
+       \r
+       this->Centre( wxBOTH );\r
+       \r
+       // Connect Events\r
+       this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( frmSearchADT::CloseWindow ) );\r
+       btnSelectAccounts->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmSearchADT::SelectAccounts ), NULL, this );\r
+       btnSearch->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmSearchADT::SearchContacts ), NULL, this );\r
+       btnReset->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmSearchADT::ResetContacts ), NULL, this );\r
+       this->Connect( mnuContactOpen->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmSearchADT::OpenContact ) );\r
+       this->Connect( mnuContactEdit->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmSearchADT::EditContact ) );\r
+       this->Connect( mnuContactReveal->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmSearchADT::RevealContact ) );\r
+       this->Connect( mnuContactClose->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmSearchADT::CloseWindow ) );\r
+}\r
+\r
+frmSearchADT::~frmSearchADT()\r
+{\r
+       // Disconnect Events\r
+       this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( frmSearchADT::CloseWindow ) );\r
+       btnSelectAccounts->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmSearchADT::SelectAccounts ), NULL, this );\r
+       btnSearch->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmSearchADT::SearchContacts ), NULL, this );\r
+       btnReset->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmSearchADT::ResetContacts ), NULL, this );\r
+       this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmSearchADT::OpenContact ) );\r
+       this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmSearchADT::EditContact ) );\r
+       this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmSearchADT::RevealContact ) );\r
+       this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmSearchADT::CloseWindow ) );\r
+       \r
+}\r
+\r
+frmPreferencesADT::frmPreferencesADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )\r
+{\r
+       this->SetSizeHints( wxSize( 450,400 ), wxSize( 450,400 ) );\r
+       \r
+       wxBoxSizer* szrMain;\r
+       szrMain = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* szrTabs;\r
+       szrTabs = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       NbtPreferences = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );\r
+       tabGeneral = new wxPanel( NbtPreferences, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxBoxSizer* szrChecks;\r
+       szrChecks = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       chkSaveWindowPosition = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Save window position on exit"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       szrChecks->Add( chkSaveWindowPosition, 0, wxALL, 5 );\r
+       \r
+       chkHideLocal = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Hide local address books"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       szrChecks->Add( chkHideLocal, 0, wxALL, 5 );\r
+       \r
+       \r
+       tabGeneral->SetSizer( szrChecks );\r
+       tabGeneral->Layout();\r
+       szrChecks->Fit( tabGeneral );\r
+       NbtPreferences->AddPage( tabGeneral, wxT("General"), false );\r
+       tabTheme = new wxPanel( NbtPreferences, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       tabTheme->Hide();\r
+       \r
+       wxGridSizer* szrTheme;\r
+       szrTheme = new wxGridSizer( 1, 1, 0, 0 );\r
+       \r
+       wxBoxSizer* bSizer161;\r
+       bSizer161 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       lstThemes = new wxListCtrl( tabTheme, wxID_ANY, wxDefaultPosition, wxSize( -1,-1 ), wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       bSizer161->Add( lstThemes, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer151;\r
+       bSizer151 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       btnThemeAdd = new wxButton( tabTheme, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer151->Add( btnThemeAdd, 0, wxALL, 5 );\r
+       \r
+       btnThemeModify = new wxButton( tabTheme, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       btnThemeModify->Enable( false );\r
+       \r
+       bSizer151->Add( btnThemeModify, 0, wxALL, 5 );\r
+       \r
+       btnThemeDelete = new wxButton( tabTheme, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       btnThemeDelete->Enable( false );\r
+       \r
+       bSizer151->Add( btnThemeDelete, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer161->Add( bSizer151, 0, wxALIGN_BOTTOM|wxALIGN_CENTER_HORIZONTAL, 0 );\r
+       \r
+       \r
+       szrTheme->Add( bSizer161, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       tabTheme->SetSizer( szrTheme );\r
+       tabTheme->Layout();\r
+       szrTheme->Fit( tabTheme );\r
+       NbtPreferences->AddPage( tabTheme, wxT("Themes"), true );\r
+       tabAccounts = new wxPanel( NbtPreferences, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxGridSizer* szrAccounts;\r
+       szrAccounts = new wxGridSizer( 1, 1, 0, 0 );\r
+       \r
+       wxBoxSizer* bSizer16;\r
+       bSizer16 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       lstAccounts = new wxListCtrl( tabAccounts, wxID_ANY, wxDefaultPosition, wxSize( -1,-1 ), wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       bSizer16->Add( lstAccounts, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer15;\r
+       bSizer15 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       btnAccountAdd = new wxButton( tabAccounts, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer15->Add( btnAccountAdd, 0, wxALL, 5 );\r
+       \r
+       btnAccountModify = new wxButton( tabAccounts, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       btnAccountModify->Enable( false );\r
+       \r
+       bSizer15->Add( btnAccountModify, 0, wxALL, 5 );\r
+       \r
+       btnAccountDelete = new wxButton( tabAccounts, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       btnAccountDelete->Enable( false );\r
+       \r
+       bSizer15->Add( btnAccountDelete, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer16->Add( bSizer15, 0, wxALIGN_BOTTOM|wxALIGN_CENTER_HORIZONTAL, 0 );\r
+       \r
+       \r
+       szrAccounts->Add( bSizer16, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       tabAccounts->SetSizer( szrAccounts );\r
+       tabAccounts->Layout();\r
+       szrAccounts->Fit( tabAccounts );\r
+       NbtPreferences->AddPage( tabAccounts, wxT("Accounts"), false );\r
+       \r
+       szrTabs->Add( NbtPreferences, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       \r
+       szrMain->Add( szrTabs, 1, wxEXPAND, 0 );\r
+       \r
+       wxBoxSizer* szrButtons;\r
+       szrButtons = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       \r
+       szrButtons->Add( 1, 0, 1, wxEXPAND, 0 );\r
+       \r
+       btnSave = new wxButton( this, wxID_ANY, wxT("Save"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       btnSave->SetDefault(); \r
+       szrButtons->Add( btnSave, 0, wxALIGN_RIGHT, 0 );\r
+       \r
+       \r
+       szrButtons->Add( 5, 0, 0, 0, 0 );\r
+       \r
+       btnCancel = new wxButton( this, wxID_ANY, wxT("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       szrButtons->Add( btnCancel, 0, wxALIGN_RIGHT, 0 );\r
+       \r
+       \r
+       szrButtons->Add( 5, 0, 0, wxEXPAND, 0 );\r
+       \r
+       \r
+       szrMain->Add( szrButtons, 0, wxBOTTOM|wxEXPAND, 5 );\r
+       \r
+       \r
+       this->SetSizer( szrMain );\r
+       this->Layout();\r
+       \r
+       this->Centre( wxBOTH );\r
+       \r
+       // Connect Events\r
+       this->Connect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( frmPreferencesADT::LoadPreferences ) );\r
+       lstThemes->Connect( wxEVT_COMMAND_LIST_ITEM_DESELECTED, wxListEventHandler( frmPreferencesADT::DisableABButtons ), NULL, this );\r
+       lstThemes->Connect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( frmPreferencesADT::EnableABButtons ), NULL, this );\r
+       btnThemeAdd->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::AddABAccount ), NULL, this );\r
+       btnThemeModify->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::ModifyABAccount ), NULL, this );\r
+       btnThemeDelete->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::DeleteABAccount ), NULL, this );\r
+       lstAccounts->Connect( wxEVT_COMMAND_LIST_ITEM_DESELECTED, wxListEventHandler( frmPreferencesADT::DisableABButtons ), NULL, this );\r
+       lstAccounts->Connect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( frmPreferencesADT::EnableABButtons ), NULL, this );\r
+       btnAccountAdd->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::AddABAccount ), NULL, this );\r
+       btnAccountModify->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::ModifyABAccount ), NULL, this );\r
+       btnAccountDelete->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::DeleteABAccount ), NULL, this );\r
+       btnSave->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::SavePreferences ), NULL, this );\r
+       btnCancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::CloseWindow ), NULL, this );\r
+}\r
+\r
+frmPreferencesADT::~frmPreferencesADT()\r
+{\r
+       // Disconnect Events\r
+       this->Disconnect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( frmPreferencesADT::LoadPreferences ) );\r
+       lstThemes->Disconnect( wxEVT_COMMAND_LIST_ITEM_DESELECTED, wxListEventHandler( frmPreferencesADT::DisableABButtons ), NULL, this );\r
+       lstThemes->Disconnect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( frmPreferencesADT::EnableABButtons ), NULL, this );\r
+       btnThemeAdd->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::AddABAccount ), NULL, this );\r
+       btnThemeModify->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::ModifyABAccount ), NULL, this );\r
+       btnThemeDelete->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::DeleteABAccount ), NULL, this );\r
+       lstAccounts->Disconnect( wxEVT_COMMAND_LIST_ITEM_DESELECTED, wxListEventHandler( frmPreferencesADT::DisableABButtons ), NULL, this );\r
+       lstAccounts->Disconnect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( frmPreferencesADT::EnableABButtons ), NULL, this );\r
+       btnAccountAdd->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::AddABAccount ), NULL, this );\r
+       btnAccountModify->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::ModifyABAccount ), NULL, this );\r
+       btnAccountDelete->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::DeleteABAccount ), NULL, this );\r
+       btnSave->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::SavePreferences ), NULL, this );\r
+       btnCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::CloseWindow ), NULL, this );\r
+       \r
+}\r
+\r
+frmAboutADT::frmAboutADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )\r
+{\r
+       this->SetSizeHints( wxSize( 350,400 ), wxDefaultSize );\r
+       \r
+       wxBoxSizer* szrMain;\r
+       szrMain = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* szrLogo;\r
+       szrLogo = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       szrLogo->SetMinSize( wxSize( 350,100 ) ); \r
+       bmpLogo = new wxStaticBitmap( this, wxID_ANY, wxNullBitmap, wxPoint( 0,0 ), wxSize( 350,100 ), 0 );\r
+       szrLogo->Add( bmpLogo, 0, wxALL, 0 );\r
+       \r
+       \r
+       szrMain->Add( szrLogo, 0, wxFIXED_MINSIZE, 0 );\r
+       \r
+       wxBoxSizer* szrDetails;\r
+       szrDetails = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       lblVersion = new wxStaticText( this, wxID_ANY, wxT("Version 0.00"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblVersion->Wrap( -1 );\r
+       lblVersion->SetFont( wxFont( 14, 70, 90, 92, false, wxEmptyString ) );\r
+       \r
+       szrDetails->Add( lblVersion, 0, wxALL, 5 );\r
+       \r
+       lblCompileTime = new wxStaticText( this, wxID_ANY, wxT("Built on (date) at (time)"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblCompileTime->Wrap( -1 );\r
+       szrDetails->Add( lblCompileTime, 0, wxALL, 5 );\r
+       \r
+       lblCopyright = new wxStaticText( this, wxID_ANY, wxT("(c) 2012-2015 Xestia Software Development"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblCopyright->Wrap( -1 );\r
+       szrDetails->Add( lblCopyright, 0, wxALL, 5 );\r
+       \r
+       \r
+       szrMain->Add( szrDetails, 5, wxEXPAND, 1 );\r
+       \r
+       wxBoxSizer* szrButtons;\r
+       szrButtons = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       szrButtons->SetMinSize( wxSize( -1,35 ) ); \r
+       btnClose = new wxButton( this, wxID_ANY, wxT("&Close"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       szrButtons->Add( btnClose, 0, wxALIGN_RIGHT|wxRIGHT, 5 );\r
+       \r
+       \r
+       szrMain->Add( szrButtons, 0, wxEXPAND, 0 );\r
+       \r
+       \r
+       this->SetSizer( szrMain );\r
+       this->Layout();\r
+       \r
+       this->Centre( wxBOTH );\r
+       \r
+       // Connect Events\r
+       btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmAboutADT::CloseAboutWindow ), NULL, this );\r
+}\r
+\r
+frmAboutADT::~frmAboutADT()\r
+{\r
+       // Disconnect Events\r
+       btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmAboutADT::CloseAboutWindow ), NULL, this );\r
+       \r
+}\r
+\r
+frmContactADT::frmContactADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxFrame( parent, id, title, pos, size, style )\r
+{\r
+       this->SetSizeHints( wxSize( 320,240 ), wxDefaultSize );\r
+       \r
+       wxBoxSizer* bSizer13;\r
+       bSizer13 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       htmContactData = new wxHtmlWindow( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHW_SCROLLBAR_AUTO|wxSUNKEN_BORDER );\r
+       bSizer13->Add( htmContactData, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       \r
+       this->SetSizer( bSizer13 );\r
+       this->Layout();\r
+       m_menubar2 = new wxMenuBar( 0 );\r
+       contact = new wxMenu();\r
+       wxMenuItem* mnuContactClose;\r
+       mnuContactClose = new wxMenuItem( contact, ID_CONTACT_CLOSE, wxString( wxT("Close") ) + wxT('\t') + wxT("CTRL+F4"), wxEmptyString, wxITEM_NORMAL );\r
+       contact->Append( mnuContactClose );\r
+       \r
+       m_menubar2->Append( contact, wxT("Contact") ); \r
+       \r
+       this->SetMenuBar( m_menubar2 );\r
+       \r
+       \r
+       this->Centre( wxBOTH );\r
+       \r
+       // Connect Events\r
+       this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( frmContactADT::CloseWindow ) );\r
+       this->Connect( mnuContactClose->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmContactADT::CloseWindow ) );\r
+}\r
+\r
+frmContactADT::~frmContactADT()\r
+{\r
+       // Disconnect Events\r
+       this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( frmContactADT::CloseWindow ) );\r
+       this->Disconnect( ID_CONTACT_CLOSE, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmContactADT::CloseWindow ) );\r
+       \r
+}\r
+\r
+frmNewAccountADT::frmNewAccountADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )\r
+{\r
+       this->SetSizeHints( wxSize( 425,330 ), wxSize( 425,330 ) );\r
+       \r
+       wxFlexGridSizer* fgSizer30;\r
+       fgSizer30 = new wxFlexGridSizer( 0, 1, 0, 0 );\r
+       fgSizer30->AddGrowableCol( 0 );\r
+       fgSizer30->AddGrowableRow( 0 );\r
+       fgSizer30->SetFlexibleDirection( wxBOTH );\r
+       fgSizer30->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );\r
+       \r
+       szrNewAccount = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       tabType = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxFlexGridSizer* fgSizer32;\r
+       fgSizer32 = new wxFlexGridSizer( 0, 1, 0, 0 );\r
+       fgSizer32->AddGrowableCol( 0 );\r
+       fgSizer32->SetFlexibleDirection( wxBOTH );\r
+       fgSizer32->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_ALL );\r
+       \r
+       lblEnterText = new wxStaticText( tabType, wxID_ANY, wxT("Enter the details below and click on Next."), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblEnterText->Wrap( -1 );\r
+       fgSizer32->Add( lblEnterText, 0, wxALL, 5 );\r
+       \r
+       wxFlexGridSizer* fgSizer33;\r
+       fgSizer33 = new wxFlexGridSizer( 0, 2, 0, 0 );\r
+       fgSizer33->AddGrowableCol( 1 );\r
+       fgSizer33->AddGrowableRow( 0 );\r
+       fgSizer33->SetFlexibleDirection( wxBOTH );\r
+       fgSizer33->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_ALL );\r
+       \r
+       lblType = new wxStaticText( tabType, wxID_ANY, wxT("Server Type:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblType->Wrap( -1 );\r
+       fgSizer33->Add( lblType, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       wxString cmbServerTypeChoices[] = { wxT("Local"), wxT("CardDAV") };\r
+       int cmbServerTypeNChoices = sizeof( cmbServerTypeChoices ) / sizeof( wxString );\r
+       cmbServerType = new wxChoice( tabType, wxID_ANY, wxDefaultPosition, wxDefaultSize, cmbServerTypeNChoices, cmbServerTypeChoices, 0 );\r
+       cmbServerType->SetSelection( 1 );\r
+       fgSizer33->Add( cmbServerType, 0, wxALL, 5 );\r
+       \r
+       lblServerAddress = new wxStaticText( tabType, wxID_ANY, wxT("Server Address:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblServerAddress->Wrap( -1 );\r
+       fgSizer33->Add( lblServerAddress, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       txtServerAddress = new wxTextCtrl( tabType, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );\r
+       txtServerAddress->SetMaxLength( 0 ); \r
+       fgSizer33->Add( txtServerAddress, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       lblServerPort = new wxStaticText( tabType, wxID_ANY, wxT("Server Port:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblServerPort->Wrap( -1 );\r
+       fgSizer33->Add( lblServerPort, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       txtServerPort = new wxTextCtrl( tabType, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );\r
+       txtServerPort->SetMaxLength( 0 ); \r
+       fgSizer33->Add( txtServerPort, 0, wxALL, 5 );\r
+       \r
+       lblUsername = new wxStaticText( tabType, wxID_ANY, wxT("Username:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblUsername->Wrap( -1 );\r
+       fgSizer33->Add( lblUsername, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       txtUsername = new wxTextCtrl( tabType, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );\r
+       txtUsername->SetMaxLength( 0 ); \r
+       fgSizer33->Add( txtUsername, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       lblPassword = new wxStaticText( tabType, wxID_ANY, wxT("Password:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblPassword->Wrap( -1 );\r
+       fgSizer33->Add( lblPassword, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       txtPassword = new wxTextCtrl( tabType, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PASSWORD );\r
+       txtPassword->SetMaxLength( 0 ); \r
+       fgSizer33->Add( txtPassword, 0, wxALL|wxEXPAND, 5 );\r
+       \r
+       lblSSL = new wxStaticText( tabType, wxID_ANY, wxT("SSL:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblSSL->Wrap( -1 );\r
+       fgSizer33->Add( lblSSL, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer3221;\r
+       bSizer3221 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       chkUseSSL = new wxCheckBox( tabType, wxID_ANY, wxT("Use SSL"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       chkUseSSL->SetValue(true); \r
+       bSizer3221->Add( chkUseSSL, 0, wxALL, 5 );\r
+       \r
+       \r
+       fgSizer33->Add( bSizer3221, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer32->Add( fgSizer33, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       tabType->SetSizer( fgSizer32 );\r
+       tabType->Layout();\r
+       fgSizer32->Fit( tabType );\r
+       szrNewAccount->Add( tabType, 1, wxEXPAND | wxALL, 5 );\r
+       \r
+       tabConn = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       tabConn->Hide();\r
+       \r
+       wxBoxSizer* bSizer323;\r
+       bSizer323 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       lblConnectionResult = new wxStaticText( tabConn, wxID_ANY, wxT("Connection Results:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblConnectionResult->Wrap( -1 );\r
+       lblConnectionResult->SetFont( wxFont( 9, 74, 90, 92, false, wxT("Sans") ) );\r
+       \r
+       bSizer323->Add( lblConnectionResult, 0, wxALL, 5 );\r
+       \r
+       wxFlexGridSizer* fgSizer34;\r
+       fgSizer34 = new wxFlexGridSizer( 0, 2, 0, 0 );\r
+       fgSizer34->SetFlexibleDirection( wxBOTH );\r
+       fgSizer34->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );\r
+       \r
+       lblServerConnected = new wxStaticText( tabConn, wxID_ANY, wxT("Server connected:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblServerConnected->Wrap( -1 );\r
+       fgSizer34->Add( lblServerConnected, 0, wxALL, 5 );\r
+       \r
+       lblServerConnResult = new wxStaticText( tabConn, wxID_ANY, wxT("..."), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblServerConnResult->Wrap( -1 );\r
+       fgSizer34->Add( lblServerConnResult, 0, wxALL, 5 );\r
+       \r
+       lblValidResponse = new wxStaticText( tabConn, wxID_ANY, wxT("Server gave valid response:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblValidResponse->Wrap( -1 );\r
+       fgSizer34->Add( lblValidResponse, 0, wxALL, 5 );\r
+       \r
+       lblServerResponse = new wxStaticText( tabConn, wxID_ANY, wxT("..."), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblServerResponse->Wrap( -1 );\r
+       fgSizer34->Add( lblServerResponse, 0, wxALL, 5 );\r
+       \r
+       lblUseSSL = new wxStaticText( tabConn, wxID_ANY, wxT("Server uses SSL:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblUseSSL->Wrap( -1 );\r
+       fgSizer34->Add( lblUseSSL, 0, wxALL, 5 );\r
+       \r
+       lblServerSSLResult = new wxStaticText( tabConn, wxID_ANY, wxT("..."), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblServerSSLResult->Wrap( -1 );\r
+       fgSizer34->Add( lblServerSSLResult, 0, wxALL, 5 );\r
+       \r
+       lblServerSSLCert = new wxStaticText( tabConn, wxID_ANY, wxT("Server has valid SSL certificate:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblServerSSLCert->Wrap( -1 );\r
+       fgSizer34->Add( lblServerSSLCert, 0, wxALL, 5 );\r
+       \r
+       lblServerSSLValid = new wxStaticText( tabConn, wxID_ANY, wxT("..."), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblServerSSLValid->Wrap( -1 );\r
+       fgSizer34->Add( lblServerSSLValid, 0, wxALL, 5 );\r
+       \r
+       lblServerUsernamePassword = new wxStaticText( tabConn, wxID_ANY, wxT("Able to Login:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblServerUsernamePassword->Wrap( -1 );\r
+       fgSizer34->Add( lblServerUsernamePassword, 0, wxALL, 5 );\r
+       \r
+       lblAbleToLoginResult = new wxStaticText( tabConn, wxID_ANY, wxT("..."), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblAbleToLoginResult->Wrap( -1 );\r
+       fgSizer34->Add( lblAbleToLoginResult, 0, wxALL, 5 );\r
+       \r
+       lblIsCalDAV = new wxStaticText( tabConn, wxID_ANY, wxT("Server has CardDAV Support:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblIsCalDAV->Wrap( -1 );\r
+       fgSizer34->Add( lblIsCalDAV, 0, wxALL, 5 );\r
+       \r
+       lblCardDAVSupportResult = new wxStaticText( tabConn, wxID_ANY, wxT("..."), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblCardDAVSupportResult->Wrap( -1 );\r
+       fgSizer34->Add( lblCardDAVSupportResult, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer323->Add( fgSizer34, 1, wxEXPAND, 5 );\r
+       \r
+       m_staticline3 = new wxStaticLine( tabConn, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );\r
+       bSizer323->Add( m_staticline3, 0, wxEXPAND | wxALL, 5 );\r
+       \r
+       lblConnectionResultText = new wxStaticText( tabConn, wxID_ANY, wxT("..."), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblConnectionResultText->Wrap( 360 );\r
+       lblConnectionResultText->SetMinSize( wxSize( -1,40 ) );\r
+       \r
+       bSizer323->Add( lblConnectionResultText, 0, wxALL|wxEXPAND, 5 );\r
+       \r
+       \r
+       tabConn->SetSizer( bSizer323 );\r
+       tabConn->Layout();\r
+       bSizer323->Fit( tabConn );\r
+       szrNewAccount->Add( tabConn, 1, wxEXPAND | wxALL, 5 );\r
+       \r
+       tabFinish = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       tabFinish->Hide();\r
+       \r
+       wxBoxSizer* bSizer3231;\r
+       bSizer3231 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       lblFinishText = new wxStaticText( tabFinish, wxID_ANY, wxT("Enter the account name and click on Finish."), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblFinishText->Wrap( -1 );\r
+       bSizer3231->Add( lblFinishText, 0, wxALL, 5 );\r
+       \r
+       wxFlexGridSizer* fgSizer341;\r
+       fgSizer341 = new wxFlexGridSizer( 0, 2, 0, 0 );\r
+       fgSizer341->AddGrowableCol( 1 );\r
+       fgSizer341->SetFlexibleDirection( wxBOTH );\r
+       fgSizer341->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );\r
+       \r
+       lblAccountName = new wxStaticText( tabFinish, wxID_ANY, wxT("Account Name:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblAccountName->Wrap( -1 );\r
+       fgSizer341->Add( lblAccountName, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       txtAccountName = new wxTextCtrl( tabFinish, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );\r
+       txtAccountName->SetMaxLength( 0 ); \r
+       fgSizer341->Add( txtAccountName, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer3231->Add( fgSizer341, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       tabFinish->SetSizer( bSizer3231 );\r
+       tabFinish->Layout();\r
+       bSizer3231->Fit( tabFinish );\r
+       szrNewAccount->Add( tabFinish, 1, wxEXPAND | wxALL, 5 );\r
+       \r
+       \r
+       fgSizer30->Add( szrNewAccount, 1, wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer322;\r
+       bSizer322 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       btnPrevious = new wxButton( this, wxID_ANY, wxT("< Previous"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer322->Add( btnPrevious, 0, wxALL, 5 );\r
+       \r
+       btnNext = new wxButton( this, wxID_ANY, wxT("Next >"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       btnNext->SetDefault(); \r
+       bSizer322->Add( btnNext, 0, wxALL, 5 );\r
+       \r
+       btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer322->Add( btnClose, 0, wxALL, 5 );\r
+       \r
+       \r
+       fgSizer30->Add( bSizer322, 0, wxALIGN_RIGHT, 5 );\r
+       \r
+       \r
+       this->SetSizer( fgSizer30 );\r
+       this->Layout();\r
+       \r
+       this->Centre( wxBOTH );\r
+       \r
+       // Connect Events\r
+       cmbServerType->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( frmNewAccountADT::UpdateRequirements ), NULL, this );\r
+       txtAccountName->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( frmNewAccountADT::CheckAccountName ), NULL, this );\r
+       btnPrevious->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmNewAccountADT::ProcessPrevious ), NULL, this );\r
+       btnNext->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmNewAccountADT::ProcessNext ), NULL, this );\r
+       btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmNewAccountADT::CloseWindow ), NULL, this );\r
+}\r
+\r
+frmNewAccountADT::~frmNewAccountADT()\r
+{\r
+       // Disconnect Events\r
+       cmbServerType->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( frmNewAccountADT::UpdateRequirements ), NULL, this );\r
+       txtAccountName->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( frmNewAccountADT::CheckAccountName ), NULL, this );\r
+       btnPrevious->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmNewAccountADT::ProcessPrevious ), NULL, this );\r
+       btnNext->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmNewAccountADT::ProcessNext ), NULL, this );\r
+       btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmNewAccountADT::CloseWindow ), NULL, this );\r
+       \r
+}\r
+\r
+frmContactEditorADT::frmContactEditorADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxFrame( parent, id, title, pos, size, style )\r
+{\r
+       this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );\r
+       this->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE ) );\r
+       \r
+       wxBoxSizer* bSizer17;\r
+       bSizer17 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       nbkContact = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );\r
+       tabGeneral = new wxScrolledWindow( nbkContact, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHSCROLL|wxVSCROLL );\r
+       tabGeneral->SetScrollRate( 5, 5 );\r
+       wxBoxSizer* bSizer18;\r
+       bSizer18 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxGridSizer* gSizer7;\r
+       gSizer7 = new wxGridSizer( 0, 6, 0, 0 );\r
+       \r
+       lblTitle = new wxStaticText( tabGeneral, wxID_ANY, wxT("Title:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblTitle->Wrap( -1 );\r
+       gSizer7->Add( lblTitle, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       txtTitle = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );\r
+       txtTitle->SetMaxLength( 0 ); \r
+       gSizer7->Add( txtTitle, 0, wxALL|wxEXPAND, 5 );\r
+       \r
+       \r
+       gSizer7->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       gSizer7->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       gSizer7->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       gSizer7->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       lblForename = new wxStaticText( tabGeneral, wxID_ANY, wxT("Forename:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblForename->Wrap( -1 );\r
+       gSizer7->Add( lblForename, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       txtForename = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );\r
+       txtForename->SetMaxLength( 0 ); \r
+       gSizer7->Add( txtForename, 0, wxALL|wxEXPAND, 5 );\r
+       \r
+       lblSurname = new wxStaticText( tabGeneral, wxID_ANY, wxT("Surname:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblSurname->Wrap( -1 );\r
+       gSizer7->Add( lblSurname, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       txtSurname = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );\r
+       txtSurname->SetMaxLength( 0 ); \r
+       gSizer7->Add( txtSurname, 0, wxALL|wxEXPAND, 5 );\r
+       \r
+       lblOtherNames = new wxStaticText( tabGeneral, wxID_ANY, wxT("Other Names:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblOtherNames->Wrap( -1 );\r
+       gSizer7->Add( lblOtherNames, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       txtOtherNames = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );\r
+       txtOtherNames->SetMaxLength( 0 ); \r
+       gSizer7->Add( txtOtherNames, 0, wxALL|wxEXPAND, 5 );\r
+       \r
+       lblSuffix = new wxStaticText( tabGeneral, wxID_ANY, wxT("Suffix:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblSuffix->Wrap( -1 );\r
+       gSizer7->Add( lblSuffix, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       txtSuffix = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );\r
+       txtSuffix->SetMaxLength( 0 ); \r
+       gSizer7->Add( txtSuffix, 0, wxALL|wxEXPAND, 5 );\r
+       \r
+       \r
+       gSizer7->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       gSizer7->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer18->Add( gSizer7, 0, wxEXPAND, 5 );\r
+       \r
+       wxFlexGridSizer* fgSizer5;\r
+       fgSizer5 = new wxFlexGridSizer( 0, 2, 0, 0 );\r
+       fgSizer5->AddGrowableCol( 1 );\r
+       fgSizer5->SetFlexibleDirection( wxBOTH );\r
+       fgSizer5->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );\r
+       \r
+       lblDisplayAs = new wxStaticText( tabGeneral, wxID_ANY, wxT("Display As:"), wxPoint( -1,-1 ), wxDefaultSize, 0 );\r
+       lblDisplayAs->Wrap( -1 );\r
+       fgSizer5->Add( lblDisplayAs, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       cmbDisplayAs = new wxComboBox( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 ); \r
+       fgSizer5->Add( cmbDisplayAs, 0, wxALL|wxEXPAND, 5 );\r
+       \r
+       lblBirthday = new wxStaticText( tabGeneral, wxID_ANY, wxT("Birthday:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblBirthday->Wrap( -1 );\r
+       fgSizer5->Add( lblBirthday, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer318;\r
+       bSizer318 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       dapBirthday = new wxDatePickerCtrl( tabGeneral, wxID_ANY, wxDefaultDateTime, wxDefaultPosition, wxDefaultSize, wxDP_ALLOWNONE|wxDP_DEFAULT|wxDP_DROPDOWN|wxDP_SHOWCENTURY );\r
+       dapBirthday->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 90, false, wxEmptyString ) );\r
+       dapBirthday->SetToolTip( wxT("If you don't wish to enter a year, please use '0000' as the year.") );\r
+       dapBirthday->SetMinSize( wxSize( -1,25 ) );\r
+       \r
+       bSizer318->Add( dapBirthday, 0, wxALL|wxEXPAND, 5 );\r
+       \r
+       txtBirthday = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );\r
+       txtBirthday->SetMaxLength( 0 ); \r
+       bSizer318->Add( txtBirthday, 1, wxALL, 5 );\r
+       \r
+       \r
+       fgSizer5->Add( bSizer318, 1, wxEXPAND, 5 );\r
+       \r
+       lblAnniversary = new wxStaticText( tabGeneral, wxID_ANY, wxT("Anniversary:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblAnniversary->Wrap( -1 );\r
+       fgSizer5->Add( lblAnniversary, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer319;\r
+       bSizer319 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       dapAnniversary = new wxDatePickerCtrl( tabGeneral, wxID_ANY, wxDefaultDateTime, wxDefaultPosition, wxDefaultSize, wxDP_ALLOWNONE|wxDP_DEFAULT|wxDP_DROPDOWN|wxDP_SHOWCENTURY );\r
+       dapAnniversary->SetToolTip( wxT("If you don't wish to enter a year, please use '0000' as the year.") );\r
+       dapAnniversary->SetMinSize( wxSize( -1,25 ) );\r
+       \r
+       bSizer319->Add( dapAnniversary, 0, wxALL|wxEXPAND, 5 );\r
+       \r
+       txtAnniversary = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );\r
+       txtAnniversary->SetMaxLength( 0 ); \r
+       bSizer319->Add( txtAnniversary, 1, wxALL, 5 );\r
+       \r
+       \r
+       fgSizer5->Add( bSizer319, 1, wxEXPAND, 5 );\r
+       \r
+       lblGender = new wxStaticText( tabGeneral, wxID_ANY, wxT("Gender:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblGender->Wrap( -1 );\r
+       fgSizer5->Add( lblGender, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer20;\r
+       bSizer20 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxString cmbGenderChoices[] = { wxEmptyString, wxT("Male"), wxT("Female"), wxT("Other"), wxT("None/Not Applicable"), wxT("Unknown") };\r
+       int cmbGenderNChoices = sizeof( cmbGenderChoices ) / sizeof( wxString );\r
+       cmbGender = new wxChoice( tabGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, cmbGenderNChoices, cmbGenderChoices, 0 );\r
+       cmbGender->SetSelection( 0 );\r
+       bSizer20->Add( cmbGender, 0, wxALL, 5 );\r
+       \r
+       txtGenderDescription = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );\r
+       txtGenderDescription->SetMaxLength( 0 ); \r
+       bSizer20->Add( txtGenderDescription, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       \r
+       fgSizer5->Add( bSizer20, 1, wxEXPAND, 5 );\r
+       \r
+       lblType = new wxStaticText( tabGeneral, wxID_ANY, wxT("Type:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblType->Wrap( -1 );\r
+       fgSizer5->Add( lblType, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       wxString cmbTypeChoices[] = { wxT("(Unspecified)"), wxT("Individual"), wxT("Group"), wxT("Organisation"), wxT("Location") };\r
+       int cmbTypeNChoices = sizeof( cmbTypeChoices ) / sizeof( wxString );\r
+       cmbType = new wxChoice( tabGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, cmbTypeNChoices, cmbTypeChoices, 0 );\r
+       cmbType->SetSelection( 0 );\r
+       fgSizer5->Add( cmbType, 0, wxALL, 5 );\r
+       \r
+       lblNicknames = new wxStaticText( tabGeneral, wxID_ANY, wxT("Nicknames:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblNicknames->Wrap( -1 );\r
+       fgSizer5->Add( lblNicknames, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* szrNicknames;\r
+       szrNicknames = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboNicknames = new wxListCtrl( tabGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       szrNicknames->Add( lboNicknames, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* szrAddressesOuter3;\r
+       szrAddressesOuter3 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer464;\r
+       bSizer464 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer474;\r
+       bSizer474 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnAddGeneralNickname = new wxButton( tabGeneral, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer474->Add( btnAddGeneralNickname, 0, wxALL, 5 );\r
+       \r
+       btnModifyGeneralNickname = new wxButton( tabGeneral, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer474->Add( btnModifyGeneralNickname, 0, wxALL, 5 );\r
+       \r
+       btnDeleteGeneralNickname = new wxButton( tabGeneral, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer474->Add( btnDeleteGeneralNickname, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer464->Add( bSizer474, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       szrAddressesOuter3->Add( bSizer464, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       szrNicknames->Add( szrAddressesOuter3, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer5->Add( szrNicknames, 1, wxEXPAND, 5 );\r
+       \r
+       lblAddress = new wxStaticText( tabGeneral, wxID_ANY, wxT("Addresses:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblAddress->Wrap( -1 );\r
+       fgSizer5->Add( lblAddress, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* szrAddresses;\r
+       szrAddresses = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboAddresses = new wxListCtrl( tabGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       szrAddresses->Add( lboAddresses, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* szrAddressesOuter;\r
+       szrAddressesOuter = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer46;\r
+       bSizer46 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer47;\r
+       bSizer47 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnAddGeneralAddress = new wxButton( tabGeneral, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer47->Add( btnAddGeneralAddress, 0, wxALL, 5 );\r
+       \r
+       btnModifyGeneralAddress = new wxButton( tabGeneral, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer47->Add( btnModifyGeneralAddress, 0, wxALL, 5 );\r
+       \r
+       btnDeleteGeneralAddress = new wxButton( tabGeneral, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer47->Add( btnDeleteGeneralAddress, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer46->Add( bSizer47, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       szrAddressesOuter->Add( bSizer46, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       szrAddresses->Add( szrAddressesOuter, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer5->Add( szrAddresses, 1, wxEXPAND, 5 );\r
+       \r
+       lblEmail = new wxStaticText( tabGeneral, wxID_ANY, wxT("E-mail:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblEmail->Wrap( -1 );\r
+       fgSizer5->Add( lblEmail, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer301;\r
+       bSizer301 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboEmails = new wxListCtrl( tabGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       bSizer301->Add( lboEmails, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer351;\r
+       bSizer351 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer461;\r
+       bSizer461 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer471;\r
+       bSizer471 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnAddEmailAddress = new wxButton( tabGeneral, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer471->Add( btnAddEmailAddress, 0, wxALL, 5 );\r
+       \r
+       btnModifyEmailAddress = new wxButton( tabGeneral, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer471->Add( btnModifyEmailAddress, 0, wxALL, 5 );\r
+       \r
+       btnDeleteEmailAddress = new wxButton( tabGeneral, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer471->Add( btnDeleteEmailAddress, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer461->Add( bSizer471, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer351->Add( bSizer461, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer301->Add( bSizer351, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer5->Add( bSizer301, 1, wxEXPAND, 5 );\r
+       \r
+       lblIM = new wxStaticText( tabGeneral, wxID_ANY, wxT("Instant Messaging:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblIM->Wrap( 0 );\r
+       fgSizer5->Add( lblIM, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer3011;\r
+       bSizer3011 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboIM = new wxListCtrl( tabGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       bSizer3011->Add( lboIM, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer3511;\r
+       bSizer3511 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer4611;\r
+       bSizer4611 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer4711;\r
+       bSizer4711 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnAddIMAddress = new wxButton( tabGeneral, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4711->Add( btnAddIMAddress, 0, wxALL, 5 );\r
+       \r
+       btnModifyIMAddress = new wxButton( tabGeneral, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4711->Add( btnModifyIMAddress, 0, wxALL, 5 );\r
+       \r
+       btnDeleteIMAddress = new wxButton( tabGeneral, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4711->Add( btnDeleteIMAddress, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer4611->Add( bSizer4711, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer3511->Add( bSizer4611, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer3011->Add( bSizer3511, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer5->Add( bSizer3011, 1, wxEXPAND, 5 );\r
+       \r
+       lblTelephone = new wxStaticText( tabGeneral, wxID_ANY, wxT("Telephone:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblTelephone->Wrap( 0 );\r
+       fgSizer5->Add( lblTelephone, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer30111;\r
+       bSizer30111 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboTelephone = new wxListCtrl( tabGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       bSizer30111->Add( lboTelephone, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer35111;\r
+       bSizer35111 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer46111;\r
+       bSizer46111 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer47111;\r
+       bSizer47111 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnAddTelephone = new wxButton( tabGeneral, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer47111->Add( btnAddTelephone, 0, wxALL, 5 );\r
+       \r
+       btnModifyTelephone = new wxButton( tabGeneral, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer47111->Add( btnModifyTelephone, 0, wxALL, 5 );\r
+       \r
+       btnDeleteTelephone = new wxButton( tabGeneral, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer47111->Add( btnDeleteTelephone, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer46111->Add( bSizer47111, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer35111->Add( bSizer46111, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer30111->Add( bSizer35111, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer5->Add( bSizer30111, 1, wxEXPAND, 5 );\r
+       \r
+       lblLanguages = new wxStaticText( tabGeneral, wxID_ANY, wxT("Languages:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblLanguages->Wrap( 0 );\r
+       fgSizer5->Add( lblLanguages, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer301111;\r
+       bSizer301111 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboLanguages = new wxListCtrl( tabGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       bSizer301111->Add( lboLanguages, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer351111;\r
+       bSizer351111 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer461111;\r
+       bSizer461111 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer471111;\r
+       bSizer471111 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnAddLanguage = new wxButton( tabGeneral, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer471111->Add( btnAddLanguage, 0, wxALL, 5 );\r
+       \r
+       btnModifyLanguage = new wxButton( tabGeneral, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer471111->Add( btnModifyLanguage, 0, wxALL, 5 );\r
+       \r
+       btnDeleteLanguage = new wxButton( tabGeneral, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer471111->Add( btnDeleteLanguage, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer461111->Add( bSizer471111, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer351111->Add( bSizer461111, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer301111->Add( bSizer351111, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer5->Add( bSizer301111, 1, wxEXPAND, 5 );\r
+       \r
+       lblTimezone = new wxStaticText( tabGeneral, wxID_ANY, wxT("Timezones:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblTimezone->Wrap( 0 );\r
+       fgSizer5->Add( lblTimezone, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer3011111;\r
+       bSizer3011111 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboTimezones = new wxListCtrl( tabGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       bSizer3011111->Add( lboTimezones, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer3511111;\r
+       bSizer3511111 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer4611111;\r
+       bSizer4611111 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer4711111;\r
+       bSizer4711111 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnAddTimezone = new wxButton( tabGeneral, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4711111->Add( btnAddTimezone, 0, wxALL, 5 );\r
+       \r
+       btnModifyTimezone = new wxButton( tabGeneral, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4711111->Add( btnModifyTimezone, 0, wxALL, 5 );\r
+       \r
+       btnDeleteTimezone = new wxButton( tabGeneral, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4711111->Add( btnDeleteTimezone, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer4611111->Add( bSizer4711111, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer3511111->Add( bSizer4611111, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer3011111->Add( bSizer3511111, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer5->Add( bSizer3011111, 1, wxEXPAND, 5 );\r
+       \r
+       lblGeopositioning = new wxStaticText( tabGeneral, wxID_ANY, wxT("Geopositioning:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblGeopositioning->Wrap( -1 );\r
+       fgSizer5->Add( lblGeopositioning, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer30111114;\r
+       bSizer30111114 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboGeoposition = new wxListCtrl( tabGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       bSizer30111114->Add( lboGeoposition, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer35111114;\r
+       bSizer35111114 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer46111114;\r
+       bSizer46111114 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer47111114;\r
+       bSizer47111114 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnAddGeneralGeoposition = new wxButton( tabGeneral, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer47111114->Add( btnAddGeneralGeoposition, 0, wxALL, 5 );\r
+       \r
+       btnModifyGeneralGeoposition = new wxButton( tabGeneral, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer47111114->Add( btnModifyGeneralGeoposition, 0, wxALL, 5 );\r
+       \r
+       btnDeleteGeneralGeoposition = new wxButton( tabGeneral, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer47111114->Add( btnDeleteGeneralGeoposition, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer46111114->Add( bSizer47111114, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer35111114->Add( bSizer46111114, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer30111114->Add( bSizer35111114, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer5->Add( bSizer30111114, 1, wxEXPAND, 5 );\r
+       \r
+       lblRelated = new wxStaticText( tabGeneral, wxID_ANY, wxT("Related people:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblRelated->Wrap( 1 );\r
+       fgSizer5->Add( lblRelated, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer30111111;\r
+       bSizer30111111 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboRelated = new wxListCtrl( tabGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       bSizer30111111->Add( lboRelated, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer35111111;\r
+       bSizer35111111 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer46111111;\r
+       bSizer46111111 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer47111111;\r
+       bSizer47111111 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnAddRelated = new wxButton( tabGeneral, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer47111111->Add( btnAddRelated, 0, wxALL, 5 );\r
+       \r
+       btnModifyRelated = new wxButton( tabGeneral, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer47111111->Add( btnModifyRelated, 0, wxALL, 5 );\r
+       \r
+       btnDeleteRelated = new wxButton( tabGeneral, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer47111111->Add( btnDeleteRelated, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer46111111->Add( bSizer47111111, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer35111111->Add( bSizer46111111, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer30111111->Add( bSizer35111111, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer5->Add( bSizer30111111, 1, wxEXPAND, 5 );\r
+       \r
+       lblWebsites = new wxStaticText( tabGeneral, wxID_ANY, wxT("Websites:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblWebsites->Wrap( 1 );\r
+       fgSizer5->Add( lblWebsites, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer301111111;\r
+       bSizer301111111 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboWebsites = new wxListCtrl( tabGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       bSizer301111111->Add( lboWebsites, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer351111111;\r
+       bSizer351111111 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer461111111;\r
+       bSizer461111111 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer471111111;\r
+       bSizer471111111 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnAddWebsite = new wxButton( tabGeneral, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer471111111->Add( btnAddWebsite, 0, wxALL, 5 );\r
+       \r
+       btnModifyWebsite = new wxButton( tabGeneral, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer471111111->Add( btnModifyWebsite, 0, wxALL, 5 );\r
+       \r
+       btnDeleteWebsite = new wxButton( tabGeneral, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer471111111->Add( btnDeleteWebsite, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer461111111->Add( bSizer471111111, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer351111111->Add( bSizer461111111, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer301111111->Add( bSizer351111111, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer5->Add( bSizer301111111, 1, wxEXPAND, 5 );\r
+       \r
+       lblTitles = new wxStaticText( tabGeneral, wxID_ANY, wxT("Titles:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblTitles->Wrap( 1 );\r
+       fgSizer5->Add( lblTitles, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer3011111111;\r
+       bSizer3011111111 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboTitles = new wxListCtrl( tabGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       bSizer3011111111->Add( lboTitles, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer3511111111;\r
+       bSizer3511111111 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer4611111111;\r
+       bSizer4611111111 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer4711111111;\r
+       bSizer4711111111 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnAddTitle = new wxButton( tabGeneral, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4711111111->Add( btnAddTitle, 0, wxALL, 5 );\r
+       \r
+       btnModifyTitle = new wxButton( tabGeneral, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4711111111->Add( btnModifyTitle, 0, wxALL, 5 );\r
+       \r
+       btnDeleteTitle = new wxButton( tabGeneral, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4711111111->Add( btnDeleteTitle, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer4611111111->Add( bSizer4711111111, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer3511111111->Add( bSizer4611111111, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer3011111111->Add( bSizer3511111111, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer5->Add( bSizer3011111111, 1, wxEXPAND, 5 );\r
+       \r
+       lblRoles = new wxStaticText( tabGeneral, wxID_ANY, wxT("Roles:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblRoles->Wrap( 1 );\r
+       fgSizer5->Add( lblRoles, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer30111111111;\r
+       bSizer30111111111 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboRoles = new wxListCtrl( tabGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       bSizer30111111111->Add( lboRoles, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer35111111111;\r
+       bSizer35111111111 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer46111111111;\r
+       bSizer46111111111 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer47111111111;\r
+       bSizer47111111111 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnAddRole = new wxButton( tabGeneral, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer47111111111->Add( btnAddRole, 0, wxALL, 5 );\r
+       \r
+       btnModifyRole = new wxButton( tabGeneral, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer47111111111->Add( btnModifyRole, 0, wxALL, 5 );\r
+       \r
+       btnDeleteRole = new wxButton( tabGeneral, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer47111111111->Add( btnDeleteRole, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer46111111111->Add( bSizer47111111111, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer35111111111->Add( bSizer46111111111, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer30111111111->Add( bSizer35111111111, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer5->Add( bSizer30111111111, 1, wxEXPAND, 5 );\r
+       \r
+       lblOrganisations = new wxStaticText( tabGeneral, wxID_ANY, wxT("Organisations:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblOrganisations->Wrap( 1 );\r
+       fgSizer5->Add( lblOrganisations, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer301111111111;\r
+       bSizer301111111111 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboOrganisations = new wxListCtrl( tabGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       bSizer301111111111->Add( lboOrganisations, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer351111111111;\r
+       bSizer351111111111 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer461111111111;\r
+       bSizer461111111111 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer471111111111;\r
+       bSizer471111111111 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnAddOrganisations = new wxButton( tabGeneral, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer471111111111->Add( btnAddOrganisations, 0, wxALL, 5 );\r
+       \r
+       btnModifyOrganisations = new wxButton( tabGeneral, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer471111111111->Add( btnModifyOrganisations, 0, wxALL, 5 );\r
+       \r
+       btnDeleteOrganisations = new wxButton( tabGeneral, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer471111111111->Add( btnDeleteOrganisations, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer461111111111->Add( bSizer471111111111, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer351111111111->Add( bSizer461111111111, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer301111111111->Add( bSizer351111111111, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer5->Add( bSizer301111111111, 1, wxEXPAND, 5 );\r
+       \r
+       lblNotes = new wxStaticText( tabGeneral, wxID_ANY, wxT("Notes:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblNotes->Wrap( 1 );\r
+       fgSizer5->Add( lblNotes, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer3011111111111;\r
+       bSizer3011111111111 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboNotes = new wxListCtrl( tabGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       bSizer3011111111111->Add( lboNotes, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer3511111111111;\r
+       bSizer3511111111111 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer4611111111111;\r
+       bSizer4611111111111 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer4711111111111;\r
+       bSizer4711111111111 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnAddNote = new wxButton( tabGeneral, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4711111111111->Add( btnAddNote, 0, wxALL, 5 );\r
+       \r
+       btnModifyNote = new wxButton( tabGeneral, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4711111111111->Add( btnModifyNote, 0, wxALL, 5 );\r
+       \r
+       btnDeleteNote = new wxButton( tabGeneral, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4711111111111->Add( btnDeleteNote, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer4611111111111->Add( bSizer4711111111111, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer3511111111111->Add( bSizer4611111111111, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer3011111111111->Add( bSizer3511111111111, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer5->Add( bSizer3011111111111, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer18->Add( fgSizer5, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       tabGeneral->SetSizer( bSizer18 );\r
+       tabGeneral->Layout();\r
+       bSizer18->Fit( tabGeneral );\r
+       nbkContact->AddPage( tabGeneral, wxT("General"), false );\r
+       tabHome = new wxScrolledWindow( nbkContact, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHSCROLL|wxVSCROLL );\r
+       tabHome->SetScrollRate( 5, 5 );\r
+       wxBoxSizer* bSizer181;\r
+       bSizer181 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxGridSizer* gSizer71;\r
+       gSizer71 = new wxGridSizer( 2, 6, 0, 0 );\r
+       \r
+       \r
+       bSizer181->Add( gSizer71, 0, wxEXPAND, 5 );\r
+       \r
+       wxFlexGridSizer* fgSizer51;\r
+       fgSizer51 = new wxFlexGridSizer( 0, 2, 0, 0 );\r
+       fgSizer51->AddGrowableCol( 1 );\r
+       fgSizer51->SetFlexibleDirection( wxBOTH );\r
+       fgSizer51->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );\r
+       \r
+       lblHomeNickname = new wxStaticText( tabHome, wxID_ANY, wxT("Home Nicknames:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblHomeNickname->Wrap( 0 );\r
+       fgSizer51->Add( lblHomeNickname, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* szrAddresses12;\r
+       szrAddresses12 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboHomeNicknames = new wxListCtrl( tabHome, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       szrAddresses12->Add( lboHomeNicknames, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* szrAddressesOuter11;\r
+       szrAddressesOuter11 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer4622;\r
+       bSizer4622 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer4722;\r
+       bSizer4722 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnAddHomeNickname = new wxButton( tabHome, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4722->Add( btnAddHomeNickname, 0, wxALL, 5 );\r
+       \r
+       btnModifyHomeNickname = new wxButton( tabHome, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4722->Add( btnModifyHomeNickname, 0, wxALL, 5 );\r
+       \r
+       btnDeleteHomeNickname = new wxButton( tabHome, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4722->Add( btnDeleteHomeNickname, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer4622->Add( bSizer4722, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       szrAddressesOuter11->Add( bSizer4622, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       szrAddresses12->Add( szrAddressesOuter11, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer51->Add( szrAddresses12, 1, wxEXPAND, 5 );\r
+       \r
+       lblHomeAddresses = new wxStaticText( tabHome, wxID_ANY, wxT("Home Addresses:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblHomeAddresses->Wrap( 1 );\r
+       fgSizer51->Add( lblHomeAddresses, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* szrAddresses1;\r
+       szrAddresses1 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboHomeAddresses = new wxListCtrl( tabHome, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       szrAddresses1->Add( lboHomeAddresses, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* szrAddressesOuter1;\r
+       szrAddressesOuter1 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer462;\r
+       bSizer462 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer472;\r
+       bSizer472 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnAddHomeAddress = new wxButton( tabHome, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer472->Add( btnAddHomeAddress, 0, wxALL, 5 );\r
+       \r
+       btnModifyHomeAddress = new wxButton( tabHome, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer472->Add( btnModifyHomeAddress, 0, wxALL, 5 );\r
+       \r
+       btnDeleteHomeAddress = new wxButton( tabHome, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer472->Add( btnDeleteHomeAddress, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer462->Add( bSizer472, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       szrAddressesOuter1->Add( bSizer462, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       szrAddresses1->Add( szrAddressesOuter1, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer51->Add( szrAddresses1, 1, wxEXPAND, 5 );\r
+       \r
+       lblHomeEmail = new wxStaticText( tabHome, wxID_ANY, wxT("Home Emails:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblHomeEmail->Wrap( 1 );\r
+       fgSizer51->Add( lblHomeEmail, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer3012;\r
+       bSizer3012 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboHomeEmails = new wxListCtrl( tabHome, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       bSizer3012->Add( lboHomeEmails, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer3512;\r
+       bSizer3512 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer4612;\r
+       bSizer4612 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer4712;\r
+       bSizer4712 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnAddHomeEmailAddress = new wxButton( tabHome, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4712->Add( btnAddHomeEmailAddress, 0, wxALL, 5 );\r
+       \r
+       btnModifyHomeEmailAddress = new wxButton( tabHome, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4712->Add( btnModifyHomeEmailAddress, 0, wxALL, 5 );\r
+       \r
+       btnDeleteHomeEmailAddress = new wxButton( tabHome, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4712->Add( btnDeleteHomeEmailAddress, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer4612->Add( bSizer4712, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer3512->Add( bSizer4612, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer3012->Add( bSizer3512, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer51->Add( bSizer3012, 1, wxEXPAND, 5 );\r
+       \r
+       lblHomeIM = new wxStaticText( tabHome, wxID_ANY, wxT("Home Instant Messaging:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblHomeIM->Wrap( 0 );\r
+       fgSizer51->Add( lblHomeIM, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer30112;\r
+       bSizer30112 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboHomeIM = new wxListCtrl( tabHome, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       bSizer30112->Add( lboHomeIM, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer35112;\r
+       bSizer35112 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer46112;\r
+       bSizer46112 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer47112;\r
+       bSizer47112 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnAddHomeIMAddress = new wxButton( tabHome, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer47112->Add( btnAddHomeIMAddress, 0, wxALL, 5 );\r
+       \r
+       btnModifyHomeIMAddress = new wxButton( tabHome, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer47112->Add( btnModifyHomeIMAddress, 0, wxALL, 5 );\r
+       \r
+       btnDeleteHomeIMAddress = new wxButton( tabHome, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer47112->Add( btnDeleteHomeIMAddress, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer46112->Add( bSizer47112, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer35112->Add( bSizer46112, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer30112->Add( bSizer35112, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer51->Add( bSizer30112, 1, wxEXPAND, 5 );\r
+       \r
+       lblHomeTelephone = new wxStaticText( tabHome, wxID_ANY, wxT("Home Telephone:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblHomeTelephone->Wrap( 0 );\r
+       fgSizer51->Add( lblHomeTelephone, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer301112;\r
+       bSizer301112 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboHomeTelephone = new wxListCtrl( tabHome, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       bSizer301112->Add( lboHomeTelephone, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer351112;\r
+       bSizer351112 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer461112;\r
+       bSizer461112 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer471112;\r
+       bSizer471112 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnAddHomeTelephone = new wxButton( tabHome, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer471112->Add( btnAddHomeTelephone, 0, wxALL, 5 );\r
+       \r
+       btnModifyHomeTelephone = new wxButton( tabHome, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer471112->Add( btnModifyHomeTelephone, 0, wxALL, 5 );\r
+       \r
+       btnDeleteHomeTelephone = new wxButton( tabHome, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer471112->Add( btnDeleteHomeTelephone, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer461112->Add( bSizer471112, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer351112->Add( bSizer461112, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer301112->Add( bSizer351112, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer51->Add( bSizer301112, 1, wxEXPAND, 5 );\r
+       \r
+       lblHomeLanguages = new wxStaticText( tabHome, wxID_ANY, wxT("Home Languages:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblHomeLanguages->Wrap( 0 );\r
+       fgSizer51->Add( lblHomeLanguages, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer3011112;\r
+       bSizer3011112 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboHomeLanguages = new wxListCtrl( tabHome, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       bSizer3011112->Add( lboHomeLanguages, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer3511112;\r
+       bSizer3511112 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer4611112;\r
+       bSizer4611112 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer4711112;\r
+       bSizer4711112 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnAddHomeLanguage = new wxButton( tabHome, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4711112->Add( btnAddHomeLanguage, 0, wxALL, 5 );\r
+       \r
+       btnModifyHomeLanguage = new wxButton( tabHome, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4711112->Add( btnModifyHomeLanguage, 0, wxALL, 5 );\r
+       \r
+       btnDeleteHomeLanguage = new wxButton( tabHome, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4711112->Add( btnDeleteHomeLanguage, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer4611112->Add( bSizer4711112, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer3511112->Add( bSizer4611112, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer3011112->Add( bSizer3511112, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer51->Add( bSizer3011112, 1, wxEXPAND, 5 );\r
+       \r
+       lblHomeTimezone = new wxStaticText( tabHome, wxID_ANY, wxT("Home Timezones:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblHomeTimezone->Wrap( 0 );\r
+       fgSizer51->Add( lblHomeTimezone, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer30111112;\r
+       bSizer30111112 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboHomeTimezones = new wxListCtrl( tabHome, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       bSizer30111112->Add( lboHomeTimezones, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer35111112;\r
+       bSizer35111112 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer46111112;\r
+       bSizer46111112 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer47111112;\r
+       bSizer47111112 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnAddHomeTimezone = new wxButton( tabHome, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer47111112->Add( btnAddHomeTimezone, 0, wxALL, 5 );\r
+       \r
+       btnModifyHomeTimezone = new wxButton( tabHome, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer47111112->Add( btnModifyHomeTimezone, 0, wxALL, 5 );\r
+       \r
+       btnDeleteHomeTimezone = new wxButton( tabHome, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer47111112->Add( btnDeleteHomeTimezone, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer46111112->Add( bSizer47111112, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer35111112->Add( bSizer46111112, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer30111112->Add( bSizer35111112, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer51->Add( bSizer30111112, 1, wxEXPAND, 5 );\r
+       \r
+       lblHomeGeopositioning = new wxStaticText( tabHome, wxID_ANY, wxT("Home Geopositioning:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblHomeGeopositioning->Wrap( 0 );\r
+       fgSizer51->Add( lblHomeGeopositioning, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer301111141;\r
+       bSizer301111141 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboHomeGeoposition = new wxListCtrl( tabHome, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       bSizer301111141->Add( lboHomeGeoposition, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer351111141;\r
+       bSizer351111141 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer461111141;\r
+       bSizer461111141 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer471111141;\r
+       bSizer471111141 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnAddHomeGeoposition = new wxButton( tabHome, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer471111141->Add( btnAddHomeGeoposition, 0, wxALL, 5 );\r
+       \r
+       btnModifyHomeGeoposition = new wxButton( tabHome, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer471111141->Add( btnModifyHomeGeoposition, 0, wxALL, 5 );\r
+       \r
+       btnDeleteHomePosition = new wxButton( tabHome, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer471111141->Add( btnDeleteHomePosition, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer461111141->Add( bSizer471111141, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer351111141->Add( bSizer461111141, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer301111141->Add( bSizer351111141, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer51->Add( bSizer301111141, 1, wxEXPAND, 5 );\r
+       \r
+       lblHomeWebsites = new wxStaticText( tabHome, wxID_ANY, wxT("Home Websites:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblHomeWebsites->Wrap( 1 );\r
+       fgSizer51->Add( lblHomeWebsites, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer3011111112;\r
+       bSizer3011111112 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboHomeWebsites = new wxListCtrl( tabHome, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       bSizer3011111112->Add( lboHomeWebsites, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer3511111112;\r
+       bSizer3511111112 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer4611111112;\r
+       bSizer4611111112 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer4711111112;\r
+       bSizer4711111112 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnAddHomeWebsite = new wxButton( tabHome, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4711111112->Add( btnAddHomeWebsite, 0, wxALL, 5 );\r
+       \r
+       btnHomeModifyWebsite = new wxButton( tabHome, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4711111112->Add( btnHomeModifyWebsite, 0, wxALL, 5 );\r
+       \r
+       btnDeleteHomeWebsite = new wxButton( tabHome, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4711111112->Add( btnDeleteHomeWebsite, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer4611111112->Add( bSizer4711111112, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer3511111112->Add( bSizer4611111112, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer3011111112->Add( bSizer3511111112, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer51->Add( bSizer3011111112, 1, wxEXPAND, 5 );\r
+       \r
+       lblHomeTitles = new wxStaticText( tabHome, wxID_ANY, wxT("Home Titles:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblHomeTitles->Wrap( 1 );\r
+       fgSizer51->Add( lblHomeTitles, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer30111111112;\r
+       bSizer30111111112 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboHomeTitles = new wxListCtrl( tabHome, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       bSizer30111111112->Add( lboHomeTitles, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer35111111112;\r
+       bSizer35111111112 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer46111111112;\r
+       bSizer46111111112 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer47111111112;\r
+       bSizer47111111112 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnAddHomeTitle = new wxButton( tabHome, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer47111111112->Add( btnAddHomeTitle, 0, wxALL, 5 );\r
+       \r
+       btnModifyHomeTitle = new wxButton( tabHome, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer47111111112->Add( btnModifyHomeTitle, 0, wxALL, 5 );\r
+       \r
+       btnDeleteHomeTitle = new wxButton( tabHome, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer47111111112->Add( btnDeleteHomeTitle, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer46111111112->Add( bSizer47111111112, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer35111111112->Add( bSizer46111111112, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer30111111112->Add( bSizer35111111112, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer51->Add( bSizer30111111112, 1, wxEXPAND, 5 );\r
+       \r
+       lblHomeRoles = new wxStaticText( tabHome, wxID_ANY, wxT("Home Roles:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblHomeRoles->Wrap( 1 );\r
+       fgSizer51->Add( lblHomeRoles, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer301111111112;\r
+       bSizer301111111112 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboHomeRoles = new wxListCtrl( tabHome, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       bSizer301111111112->Add( lboHomeRoles, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer351111111112;\r
+       bSizer351111111112 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer461111111112;\r
+       bSizer461111111112 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer471111111112;\r
+       bSizer471111111112 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnAddHomeRole = new wxButton( tabHome, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer471111111112->Add( btnAddHomeRole, 0, wxALL, 5 );\r
+       \r
+       btnModifyHomeRole = new wxButton( tabHome, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer471111111112->Add( btnModifyHomeRole, 0, wxALL, 5 );\r
+       \r
+       btnDeleteHomeRole = new wxButton( tabHome, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer471111111112->Add( btnDeleteHomeRole, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer461111111112->Add( bSizer471111111112, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer351111111112->Add( bSizer461111111112, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer301111111112->Add( bSizer351111111112, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer51->Add( bSizer301111111112, 1, wxEXPAND, 5 );\r
+       \r
+       lblHomeOrganisations = new wxStaticText( tabHome, wxID_ANY, wxT("Home Organisations:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblHomeOrganisations->Wrap( 1 );\r
+       fgSizer51->Add( lblHomeOrganisations, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer3011111111112;\r
+       bSizer3011111111112 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboHomeOrganisations = new wxListCtrl( tabHome, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       bSizer3011111111112->Add( lboHomeOrganisations, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer3511111111112;\r
+       bSizer3511111111112 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer4611111111112;\r
+       bSizer4611111111112 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer4711111111112;\r
+       bSizer4711111111112 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnAddHomeOrganisations = new wxButton( tabHome, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4711111111112->Add( btnAddHomeOrganisations, 0, wxALL, 5 );\r
+       \r
+       btnModifyHomeOrganisations = new wxButton( tabHome, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4711111111112->Add( btnModifyHomeOrganisations, 0, wxALL, 5 );\r
+       \r
+       btnDeleteHomeOrganisations = new wxButton( tabHome, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4711111111112->Add( btnDeleteHomeOrganisations, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer4611111111112->Add( bSizer4711111111112, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer3511111111112->Add( bSizer4611111111112, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer3011111111112->Add( bSizer3511111111112, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer51->Add( bSizer3011111111112, 1, wxEXPAND, 5 );\r
+       \r
+       lblHomeNotes = new wxStaticText( tabHome, wxID_ANY, wxT("Home Notes:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblHomeNotes->Wrap( 1 );\r
+       fgSizer51->Add( lblHomeNotes, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer30111111111111;\r
+       bSizer30111111111111 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboHomeNotes = new wxListCtrl( tabHome, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       bSizer30111111111111->Add( lboHomeNotes, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer35111111111111;\r
+       bSizer35111111111111 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer46111111111111;\r
+       bSizer46111111111111 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer47111111111111;\r
+       bSizer47111111111111 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnAddHomeNote = new wxButton( tabHome, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer47111111111111->Add( btnAddHomeNote, 0, wxALL, 5 );\r
+       \r
+       btnModifyHomeNote = new wxButton( tabHome, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer47111111111111->Add( btnModifyHomeNote, 0, wxALL, 5 );\r
+       \r
+       btnDeleteHomeNote = new wxButton( tabHome, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer47111111111111->Add( btnDeleteHomeNote, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer46111111111111->Add( bSizer47111111111111, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer35111111111111->Add( bSizer46111111111111, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer30111111111111->Add( bSizer35111111111111, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer51->Add( bSizer30111111111111, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer181->Add( fgSizer51, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       tabHome->SetSizer( bSizer181 );\r
+       tabHome->Layout();\r
+       bSizer181->Fit( tabHome );\r
+       nbkContact->AddPage( tabHome, wxT("Home"), false );\r
+       tabBusiness = new wxScrolledWindow( nbkContact, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHSCROLL|wxVSCROLL );\r
+       tabBusiness->SetScrollRate( 5, 5 );\r
+       wxBoxSizer* bSizer182;\r
+       bSizer182 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxGridSizer* gSizer72;\r
+       gSizer72 = new wxGridSizer( 2, 6, 0, 0 );\r
+       \r
+       \r
+       bSizer182->Add( gSizer72, 0, wxEXPAND, 5 );\r
+       \r
+       wxFlexGridSizer* fgSizer52;\r
+       fgSizer52 = new wxFlexGridSizer( 0, 2, 0, 0 );\r
+       fgSizer52->AddGrowableCol( 1 );\r
+       fgSizer52->SetFlexibleDirection( wxBOTH );\r
+       fgSizer52->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );\r
+       \r
+       lblBusinessNickname = new wxStaticText( tabBusiness, wxID_ANY, wxT("Business Nicknames:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblBusinessNickname->Wrap( 0 );\r
+       fgSizer52->Add( lblBusinessNickname, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* szrAddresses22;\r
+       szrAddresses22 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboBusinessNicknames = new wxListCtrl( tabBusiness, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       szrAddresses22->Add( lboBusinessNicknames, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* szrAddressesOuter22;\r
+       szrAddressesOuter22 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer4632;\r
+       bSizer4632 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer4732;\r
+       bSizer4732 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnAddBusinessNickname = new wxButton( tabBusiness, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4732->Add( btnAddBusinessNickname, 0, wxALL, 5 );\r
+       \r
+       btnModifyBusinessNickname = new wxButton( tabBusiness, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4732->Add( btnModifyBusinessNickname, 0, wxALL, 5 );\r
+       \r
+       btnDeleteBusinessNickname = new wxButton( tabBusiness, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4732->Add( btnDeleteBusinessNickname, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer4632->Add( bSizer4732, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       szrAddressesOuter22->Add( bSizer4632, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       szrAddresses22->Add( szrAddressesOuter22, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer52->Add( szrAddresses22, 1, wxEXPAND, 5 );\r
+       \r
+       lblBusinessAddress = new wxStaticText( tabBusiness, wxID_ANY, wxT("Business Addresses:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblBusinessAddress->Wrap( 0 );\r
+       fgSizer52->Add( lblBusinessAddress, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* szrAddresses2;\r
+       szrAddresses2 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboBusinessAddresses = new wxListCtrl( tabBusiness, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       szrAddresses2->Add( lboBusinessAddresses, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* szrAddressesOuter2;\r
+       szrAddressesOuter2 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer463;\r
+       bSizer463 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer473;\r
+       bSizer473 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnAddBusinessAddress = new wxButton( tabBusiness, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer473->Add( btnAddBusinessAddress, 0, wxALL, 5 );\r
+       \r
+       btnModifyBusinessAddress = new wxButton( tabBusiness, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer473->Add( btnModifyBusinessAddress, 0, wxALL, 5 );\r
+       \r
+       btnDeleteBusinessAddress = new wxButton( tabBusiness, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer473->Add( btnDeleteBusinessAddress, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer463->Add( bSizer473, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       szrAddressesOuter2->Add( bSizer463, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       szrAddresses2->Add( szrAddressesOuter2, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer52->Add( szrAddresses2, 1, wxEXPAND, 5 );\r
+       \r
+       lblBusinessEmail = new wxStaticText( tabBusiness, wxID_ANY, wxT("Business E-mail:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblBusinessEmail->Wrap( 0 );\r
+       fgSizer52->Add( lblBusinessEmail, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer3013;\r
+       bSizer3013 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboBusinessEmail = new wxListCtrl( tabBusiness, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       bSizer3013->Add( lboBusinessEmail, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer3513;\r
+       bSizer3513 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer4613;\r
+       bSizer4613 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer4713;\r
+       bSizer4713 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnAddBusinessEmailAddress = new wxButton( tabBusiness, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4713->Add( btnAddBusinessEmailAddress, 0, wxALL, 5 );\r
+       \r
+       btnModifyBusinessEmailAddress = new wxButton( tabBusiness, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4713->Add( btnModifyBusinessEmailAddress, 0, wxALL, 5 );\r
+       \r
+       btnDeleteBusinessEmailAddress = new wxButton( tabBusiness, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4713->Add( btnDeleteBusinessEmailAddress, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer4613->Add( bSizer4713, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer3513->Add( bSizer4613, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer3013->Add( bSizer3513, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer52->Add( bSizer3013, 1, wxEXPAND, 5 );\r
+       \r
+       lblBusinessIM = new wxStaticText( tabBusiness, wxID_ANY, wxT("Business Instant Messaging:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblBusinessIM->Wrap( 0 );\r
+       fgSizer52->Add( lblBusinessIM, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer30113;\r
+       bSizer30113 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboBusinessIM = new wxListCtrl( tabBusiness, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       bSizer30113->Add( lboBusinessIM, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer35113;\r
+       bSizer35113 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer46113;\r
+       bSizer46113 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer47113;\r
+       bSizer47113 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnAddBusinessIMAddress = new wxButton( tabBusiness, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer47113->Add( btnAddBusinessIMAddress, 0, wxALL, 5 );\r
+       \r
+       btnModifyBusinessIMAddress = new wxButton( tabBusiness, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer47113->Add( btnModifyBusinessIMAddress, 0, wxALL, 5 );\r
+       \r
+       btnDeleteBusinessIMAddress = new wxButton( tabBusiness, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer47113->Add( btnDeleteBusinessIMAddress, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer46113->Add( bSizer47113, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer35113->Add( bSizer46113, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer30113->Add( bSizer35113, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer52->Add( bSizer30113, 1, wxEXPAND, 5 );\r
+       \r
+       lblBusinessTelephone = new wxStaticText( tabBusiness, wxID_ANY, wxT("Business Telephone:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblBusinessTelephone->Wrap( 0 );\r
+       fgSizer52->Add( lblBusinessTelephone, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer301113;\r
+       bSizer301113 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboBusinessTelephone = new wxListCtrl( tabBusiness, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       bSizer301113->Add( lboBusinessTelephone, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer351113;\r
+       bSizer351113 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer461113;\r
+       bSizer461113 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer471113;\r
+       bSizer471113 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnBusinessAddTelephone = new wxButton( tabBusiness, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer471113->Add( btnBusinessAddTelephone, 0, wxALL, 5 );\r
+       \r
+       btnBusinessModifyTelephone = new wxButton( tabBusiness, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer471113->Add( btnBusinessModifyTelephone, 0, wxALL, 5 );\r
+       \r
+       btnBusinessDeleteTelephone = new wxButton( tabBusiness, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer471113->Add( btnBusinessDeleteTelephone, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer461113->Add( bSizer471113, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer351113->Add( bSizer461113, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer301113->Add( bSizer351113, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer52->Add( bSizer301113, 1, wxEXPAND, 5 );\r
+       \r
+       lblBusinessLanguage = new wxStaticText( tabBusiness, wxID_ANY, wxT("Business Languages:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblBusinessLanguage->Wrap( 0 );\r
+       fgSizer52->Add( lblBusinessLanguage, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer3011113;\r
+       bSizer3011113 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboBusinessLanguages = new wxListCtrl( tabBusiness, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       bSizer3011113->Add( lboBusinessLanguages, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer3511113;\r
+       bSizer3511113 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer4611113;\r
+       bSizer4611113 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer4711113;\r
+       bSizer4711113 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnBusinessAddLanguage = new wxButton( tabBusiness, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4711113->Add( btnBusinessAddLanguage, 0, wxALL, 5 );\r
+       \r
+       btnBusinessModifyLanguage = new wxButton( tabBusiness, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4711113->Add( btnBusinessModifyLanguage, 0, wxALL, 5 );\r
+       \r
+       btnBusinessDeleteLanguage = new wxButton( tabBusiness, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4711113->Add( btnBusinessDeleteLanguage, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer4611113->Add( bSizer4711113, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer3511113->Add( bSizer4611113, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer3011113->Add( bSizer3511113, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer52->Add( bSizer3011113, 1, wxEXPAND, 5 );\r
+       \r
+       lblBusinessTimezones = new wxStaticText( tabBusiness, wxID_ANY, wxT("Business Timezones:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblBusinessTimezones->Wrap( 0 );\r
+       fgSizer52->Add( lblBusinessTimezones, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer30111113;\r
+       bSizer30111113 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboBusinessTimezones = new wxListCtrl( tabBusiness, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       bSizer30111113->Add( lboBusinessTimezones, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer35111113;\r
+       bSizer35111113 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer46111113;\r
+       bSizer46111113 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer47111113;\r
+       bSizer47111113 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnBusinessAddTimezone = new wxButton( tabBusiness, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer47111113->Add( btnBusinessAddTimezone, 0, wxALL, 5 );\r
+       \r
+       btnBusinessModifyTimezone = new wxButton( tabBusiness, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer47111113->Add( btnBusinessModifyTimezone, 0, wxALL, 5 );\r
+       \r
+       btnDeleteBusinessTimezone = new wxButton( tabBusiness, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer47111113->Add( btnDeleteBusinessTimezone, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer46111113->Add( bSizer47111113, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer35111113->Add( bSizer46111113, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer30111113->Add( bSizer35111113, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer52->Add( bSizer30111113, 1, wxEXPAND, 5 );\r
+       \r
+       lblBusinessGeopositioning = new wxStaticText( tabBusiness, wxID_ANY, wxT("Business Geopositioning:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblBusinessGeopositioning->Wrap( 0 );\r
+       fgSizer52->Add( lblBusinessGeopositioning, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer3011111411;\r
+       bSizer3011111411 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboBusinessGeoposition = new wxListCtrl( tabBusiness, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       bSizer3011111411->Add( lboBusinessGeoposition, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer3511111411;\r
+       bSizer3511111411 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer4611111411;\r
+       bSizer4611111411 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer4711111411;\r
+       bSizer4711111411 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnAddBusinessGeoposition = new wxButton( tabBusiness, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4711111411->Add( btnAddBusinessGeoposition, 0, wxALL, 5 );\r
+       \r
+       btnModifyBusinessGeoposition = new wxButton( tabBusiness, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4711111411->Add( btnModifyBusinessGeoposition, 0, wxALL, 5 );\r
+       \r
+       btnDeleteBusinessGeoposition = new wxButton( tabBusiness, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4711111411->Add( btnDeleteBusinessGeoposition, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer4611111411->Add( bSizer4711111411, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer3511111411->Add( bSizer4611111411, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer3011111411->Add( bSizer3511111411, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer52->Add( bSizer3011111411, 1, wxEXPAND, 5 );\r
+       \r
+       lblBusinessWebsites = new wxStaticText( tabBusiness, wxID_ANY, wxT("Business Websites:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblBusinessWebsites->Wrap( 1 );\r
+       fgSizer52->Add( lblBusinessWebsites, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer3011111113;\r
+       bSizer3011111113 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboBusinessWebsites = new wxListCtrl( tabBusiness, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       bSizer3011111113->Add( lboBusinessWebsites, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer3511111113;\r
+       bSizer3511111113 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer4611111113;\r
+       bSizer4611111113 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer4711111113;\r
+       bSizer4711111113 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnAddBusinessWebsite = new wxButton( tabBusiness, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4711111113->Add( btnAddBusinessWebsite, 0, wxALL, 5 );\r
+       \r
+       btnModifyBusinessWebsite = new wxButton( tabBusiness, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4711111113->Add( btnModifyBusinessWebsite, 0, wxALL, 5 );\r
+       \r
+       btnDeleteBusinessWebsite = new wxButton( tabBusiness, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4711111113->Add( btnDeleteBusinessWebsite, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer4611111113->Add( bSizer4711111113, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer3511111113->Add( bSizer4611111113, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer3011111113->Add( bSizer3511111113, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer52->Add( bSizer3011111113, 1, wxEXPAND, 5 );\r
+       \r
+       lblBusinessTitles = new wxStaticText( tabBusiness, wxID_ANY, wxT("Business Titles:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblBusinessTitles->Wrap( 1 );\r
+       fgSizer52->Add( lblBusinessTitles, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer30111111113;\r
+       bSizer30111111113 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboBusinessTitles = new wxListCtrl( tabBusiness, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxSUNKEN_BORDER );\r
+       bSizer30111111113->Add( lboBusinessTitles, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer35111111113;\r
+       bSizer35111111113 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer46111111113;\r
+       bSizer46111111113 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer47111111113;\r
+       bSizer47111111113 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnAddBusinessTitle = new wxButton( tabBusiness, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer47111111113->Add( btnAddBusinessTitle, 0, wxALL, 5 );\r
+       \r
+       btnModifyBusinessTitle = new wxButton( tabBusiness, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer47111111113->Add( btnModifyBusinessTitle, 0, wxALL, 5 );\r
+       \r
+       btnDeleteBusinessTitle = new wxButton( tabBusiness, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer47111111113->Add( btnDeleteBusinessTitle, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer46111111113->Add( bSizer47111111113, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer35111111113->Add( bSizer46111111113, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer30111111113->Add( bSizer35111111113, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer52->Add( bSizer30111111113, 1, wxEXPAND, 5 );\r
+       \r
+       lblBusinessRoles = new wxStaticText( tabBusiness, wxID_ANY, wxT("Business Roles:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblBusinessRoles->Wrap( 1 );\r
+       fgSizer52->Add( lblBusinessRoles, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer301111111113;\r
+       bSizer301111111113 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboBusinessRoles = new wxListCtrl( tabBusiness, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       bSizer301111111113->Add( lboBusinessRoles, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer351111111113;\r
+       bSizer351111111113 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer461111111113;\r
+       bSizer461111111113 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer471111111113;\r
+       bSizer471111111113 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnAddBusinessRole = new wxButton( tabBusiness, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer471111111113->Add( btnAddBusinessRole, 0, wxALL, 5 );\r
+       \r
+       btnModifyBusinessRole = new wxButton( tabBusiness, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer471111111113->Add( btnModifyBusinessRole, 0, wxALL, 5 );\r
+       \r
+       btnDeleteBusinessRole = new wxButton( tabBusiness, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer471111111113->Add( btnDeleteBusinessRole, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer461111111113->Add( bSizer471111111113, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer351111111113->Add( bSizer461111111113, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer301111111113->Add( bSizer351111111113, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer52->Add( bSizer301111111113, 1, wxEXPAND, 5 );\r
+       \r
+       lblBusinessOrganisations = new wxStaticText( tabBusiness, wxID_ANY, wxT("Business Organisations:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblBusinessOrganisations->Wrap( 1 );\r
+       fgSizer52->Add( lblBusinessOrganisations, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer3011111111113;\r
+       bSizer3011111111113 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboBusinessOrganisations = new wxListCtrl( tabBusiness, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       bSizer3011111111113->Add( lboBusinessOrganisations, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer3511111111113;\r
+       bSizer3511111111113 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer4611111111113;\r
+       bSizer4611111111113 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer4711111111113;\r
+       bSizer4711111111113 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnAddBusinessOrganisations = new wxButton( tabBusiness, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4711111111113->Add( btnAddBusinessOrganisations, 0, wxALL, 5 );\r
+       \r
+       btnModifyBusinessOrganisations = new wxButton( tabBusiness, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4711111111113->Add( btnModifyBusinessOrganisations, 0, wxALL, 5 );\r
+       \r
+       btnDeleteBusinessOrganisations = new wxButton( tabBusiness, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4711111111113->Add( btnDeleteBusinessOrganisations, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer4611111111113->Add( bSizer4711111111113, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer3511111111113->Add( bSizer4611111111113, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer3011111111113->Add( bSizer3511111111113, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer52->Add( bSizer3011111111113, 1, wxEXPAND, 5 );\r
+       \r
+       lblBusinessNotes = new wxStaticText( tabBusiness, wxID_ANY, wxT("Business Notes:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblBusinessNotes->Wrap( 1 );\r
+       fgSizer52->Add( lblBusinessNotes, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer30111111111112;\r
+       bSizer30111111111112 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboBusinessNotes = new wxListCtrl( tabBusiness, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       bSizer30111111111112->Add( lboBusinessNotes, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer35111111111112;\r
+       bSizer35111111111112 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer46111111111112;\r
+       bSizer46111111111112 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer47111111111112;\r
+       bSizer47111111111112 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnBusinessAddNote = new wxButton( tabBusiness, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer47111111111112->Add( btnBusinessAddNote, 0, wxALL, 5 );\r
+       \r
+       btnBusinessModifyNote = new wxButton( tabBusiness, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer47111111111112->Add( btnBusinessModifyNote, 0, wxALL, 5 );\r
+       \r
+       btnBusinessDeleteNote = new wxButton( tabBusiness, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer47111111111112->Add( btnBusinessDeleteNote, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer46111111111112->Add( bSizer47111111111112, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer35111111111112->Add( bSizer46111111111112, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer30111111111112->Add( bSizer35111111111112, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer52->Add( bSizer30111111111112, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer182->Add( fgSizer52, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       tabBusiness->SetSizer( bSizer182 );\r
+       tabBusiness->Layout();\r
+       bSizer182->Fit( tabBusiness );\r
+       nbkContact->AddPage( tabBusiness, wxT("Business"), false );\r
+       tabCategories = new wxScrolledWindow( nbkContact, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHSCROLL|wxVSCROLL );\r
+       tabCategories->SetScrollRate( 5, 5 );\r
+       wxBoxSizer* szrAddresses11;\r
+       szrAddresses11 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboCategories = new wxListCtrl( tabCategories, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       szrAddresses11->Add( lboCategories, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* szrCategoriesOuter;\r
+       szrCategoriesOuter = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer4621;\r
+       bSizer4621 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer4721;\r
+       bSizer4721 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnAddCategory = new wxButton( tabCategories, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4721->Add( btnAddCategory, 0, wxALL, 5 );\r
+       \r
+       btnModifyCategory = new wxButton( tabCategories, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4721->Add( btnModifyCategory, 0, wxALL, 5 );\r
+       \r
+       btnDeleteCategory = new wxButton( tabCategories, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4721->Add( btnDeleteCategory, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer4621->Add( bSizer4721, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       szrCategoriesOuter->Add( bSizer4621, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       szrAddresses11->Add( szrCategoriesOuter, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       tabCategories->SetSizer( szrAddresses11 );\r
+       tabCategories->Layout();\r
+       szrAddresses11->Fit( tabCategories );\r
+       nbkContact->AddPage( tabCategories, wxT("Categories"), false );\r
+       tabMembers = new wxScrolledWindow( nbkContact, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHSCROLL|wxVSCROLL );\r
+       tabMembers->SetScrollRate( 5, 5 );\r
+       wxBoxSizer* szrAddresses111;\r
+       szrAddresses111 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboGroups = new wxListCtrl( tabMembers, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       szrAddresses111->Add( lboGroups, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* szrCategoriesOuter1;\r
+       szrCategoriesOuter1 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer46211;\r
+       bSizer46211 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer47211;\r
+       bSizer47211 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnAddGroups = new wxButton( tabMembers, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer47211->Add( btnAddGroups, 0, wxALL, 5 );\r
+       \r
+       btnModifyGroups = new wxButton( tabMembers, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer47211->Add( btnModifyGroups, 0, wxALL, 5 );\r
+       \r
+       btnDeleteGroups = new wxButton( tabMembers, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer47211->Add( btnDeleteGroups, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer46211->Add( bSizer47211, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       szrCategoriesOuter1->Add( bSizer46211, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       szrAddresses111->Add( szrCategoriesOuter1, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       tabMembers->SetSizer( szrAddresses111 );\r
+       tabMembers->Layout();\r
+       szrAddresses111->Fit( tabMembers );\r
+       nbkContact->AddPage( tabMembers, wxT("Members"), false );\r
+       tabPictures = new wxScrolledWindow( nbkContact, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHSCROLL|wxVSCROLL );\r
+       tabPictures->SetScrollRate( 5, 5 );\r
+       wxBoxSizer* bSizer210;\r
+       bSizer210 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       imgPicture = new wxStaticBitmap( tabPictures, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxSUNKEN_BORDER );\r
+       bSizer210->Add( imgPicture, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer211;\r
+       bSizer211 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       lboPictures = new wxListCtrl( tabPictures, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       bSizer211->Add( lboPictures, 0, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer212;\r
+       bSizer212 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer213;\r
+       bSizer213 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       btnAddPicture = new wxButton( tabPictures, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer213->Add( btnAddPicture, 0, wxALL, 5 );\r
+       \r
+       btnModifyPicture = new wxButton( tabPictures, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer213->Add( btnModifyPicture, 0, wxALL, 5 );\r
+       \r
+       btnDeletePicture = new wxButton( tabPictures, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer213->Add( btnDeletePicture, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer212->Add( bSizer213, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer211->Add( bSizer212, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer210->Add( bSizer211, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       tabPictures->SetSizer( bSizer210 );\r
+       tabPictures->Layout();\r
+       bSizer210->Fit( tabPictures );\r
+       nbkContact->AddPage( tabPictures, wxT("Pictures"), false );\r
+       tabLogo = new wxScrolledWindow( nbkContact, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHSCROLL|wxVSCROLL );\r
+       tabLogo->SetScrollRate( 5, 5 );\r
+       wxBoxSizer* bSizer2101;\r
+       bSizer2101 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       imgLogo = new wxStaticBitmap( tabLogo, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxSUNKEN_BORDER );\r
+       bSizer2101->Add( imgLogo, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer2111;\r
+       bSizer2111 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       lboLogos = new wxListCtrl( tabLogo, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       bSizer2111->Add( lboLogos, 0, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer2121;\r
+       bSizer2121 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer2131;\r
+       bSizer2131 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       btnAddLogo = new wxButton( tabLogo, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer2131->Add( btnAddLogo, 0, wxALL, 5 );\r
+       \r
+       btnModifyLogo = new wxButton( tabLogo, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer2131->Add( btnModifyLogo, 0, wxALL, 5 );\r
+       \r
+       btnDeleteLogo = new wxButton( tabLogo, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer2131->Add( btnDeleteLogo, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer2121->Add( bSizer2131, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer2111->Add( bSizer2121, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer2101->Add( bSizer2111, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       tabLogo->SetSizer( bSizer2101 );\r
+       tabLogo->Layout();\r
+       bSizer2101->Fit( tabLogo );\r
+       nbkContact->AddPage( tabLogo, wxT("Logos"), false );\r
+       tabSounds = new wxScrolledWindow( nbkContact, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHSCROLL|wxVSCROLL );\r
+       tabSounds->SetScrollRate( 5, 5 );\r
+       wxBoxSizer* szrAddresses1111;\r
+       szrAddresses1111 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboSounds = new wxListCtrl( tabSounds, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       szrAddresses1111->Add( lboSounds, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* szrCategoriesOuter11;\r
+       szrCategoriesOuter11 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer462111;\r
+       bSizer462111 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer472111;\r
+       bSizer472111 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnAddSound = new wxButton( tabSounds, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer472111->Add( btnAddSound, 0, wxALL, 5 );\r
+       \r
+       btnModifySound = new wxButton( tabSounds, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer472111->Add( btnModifySound, 0, wxALL, 5 );\r
+       \r
+       btnDeleteSound = new wxButton( tabSounds, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer472111->Add( btnDeleteSound, 0, wxALL, 5 );\r
+       \r
+       m_staticline1 = new wxStaticLine( tabSounds, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );\r
+       bSizer472111->Add( m_staticline1, 0, wxEXPAND | wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer348;\r
+       bSizer348 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       btnPlay = new wxBitmapButton( tabSounds, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW );\r
+       btnPlay->SetMinSize( wxSize( -1,32 ) );\r
+       \r
+       bSizer348->Add( btnPlay, 0, wxALL|wxEXPAND, 5 );\r
+       \r
+       btnStop = new wxBitmapButton( tabSounds, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW );\r
+       btnStop->SetMinSize( wxSize( -1,32 ) );\r
+       \r
+       bSizer348->Add( btnStop, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer472111->Add( bSizer348, 0, wxALIGN_CENTER, 5 );\r
+       \r
+       \r
+       bSizer462111->Add( bSizer472111, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       szrCategoriesOuter11->Add( bSizer462111, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       szrAddresses1111->Add( szrCategoriesOuter11, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       tabSounds->SetSizer( szrAddresses1111 );\r
+       tabSounds->Layout();\r
+       szrAddresses1111->Fit( tabSounds );\r
+       nbkContact->AddPage( tabSounds, wxT("Sounds"), true );\r
+       tabCalendaring = new wxScrolledWindow( nbkContact, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHSCROLL|wxVSCROLL );\r
+       tabCalendaring->SetScrollRate( 5, 5 );\r
+       wxBoxSizer* bSizer1821;\r
+       bSizer1821 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxFlexGridSizer* fgSizer521;\r
+       fgSizer521 = new wxFlexGridSizer( 0, 2, 0, 0 );\r
+       fgSizer521->AddGrowableCol( 1 );\r
+       fgSizer521->SetFlexibleDirection( wxBOTH );\r
+       fgSizer521->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );\r
+       \r
+       lblCalendarAddresses = new wxStaticText( tabCalendaring, wxID_ANY, wxT("Calendar Addresses:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblCalendarAddresses->Wrap( 0 );\r
+       fgSizer521->Add( lblCalendarAddresses, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* szrAddresses21;\r
+       szrAddresses21 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboCalendarAddresses = new wxListCtrl( tabCalendaring, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       szrAddresses21->Add( lboCalendarAddresses, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* szrAddressesOuter21;\r
+       szrAddressesOuter21 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer4631;\r
+       bSizer4631 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer4731;\r
+       bSizer4731 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnAddCalendarAddress = new wxButton( tabCalendaring, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4731->Add( btnAddCalendarAddress, 0, wxALL, 5 );\r
+       \r
+       btnModifyCalendarAddress = new wxButton( tabCalendaring, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4731->Add( btnModifyCalendarAddress, 0, wxALL, 5 );\r
+       \r
+       btnDeleteCalendarAddress = new wxButton( tabCalendaring, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer4731->Add( btnDeleteCalendarAddress, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer4631->Add( bSizer4731, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       szrAddressesOuter21->Add( bSizer4631, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       szrAddresses21->Add( szrAddressesOuter21, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer521->Add( szrAddresses21, 1, wxEXPAND, 5 );\r
+       \r
+       lblCalendarRequestAddresses = new wxStaticText( tabCalendaring, wxID_ANY, wxT("Calendar Request Address:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblCalendarRequestAddresses->Wrap( 0 );\r
+       fgSizer521->Add( lblCalendarRequestAddresses, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer30131;\r
+       bSizer30131 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboCalendarRequestAddress = new wxListCtrl( tabCalendaring, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       bSizer30131->Add( lboCalendarRequestAddress, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer35131;\r
+       bSizer35131 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer46131;\r
+       bSizer46131 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer47131;\r
+       bSizer47131 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnAddCalendarRequestAddress = new wxButton( tabCalendaring, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer47131->Add( btnAddCalendarRequestAddress, 0, wxALL, 5 );\r
+       \r
+       btnModifyCalendarRequestAddress = new wxButton( tabCalendaring, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer47131->Add( btnModifyCalendarRequestAddress, 0, wxALL, 5 );\r
+       \r
+       btnDeleteCalendarRequestAddress = new wxButton( tabCalendaring, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer47131->Add( btnDeleteCalendarRequestAddress, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer46131->Add( bSizer47131, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer35131->Add( bSizer46131, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer30131->Add( bSizer35131, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer521->Add( bSizer30131, 1, wxEXPAND, 5 );\r
+       \r
+       lblFreeBusyAddresses = new wxStaticText( tabCalendaring, wxID_ANY, wxT("Free/Busy Addresses:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblFreeBusyAddresses->Wrap( 0 );\r
+       fgSizer521->Add( lblFreeBusyAddresses, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer301131;\r
+       bSizer301131 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboFreeBusyAddresses = new wxListCtrl( tabCalendaring, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       bSizer301131->Add( lboFreeBusyAddresses, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer351131;\r
+       bSizer351131 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer461131;\r
+       bSizer461131 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer471131;\r
+       bSizer471131 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnAddFreeBusyAddress = new wxButton( tabCalendaring, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer471131->Add( btnAddFreeBusyAddress, 0, wxALL, 5 );\r
+       \r
+       btnModifyFreeBusyAddress = new wxButton( tabCalendaring, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer471131->Add( btnModifyFreeBusyAddress, 0, wxALL, 5 );\r
+       \r
+       btnDeleteFreeBusyAddress = new wxButton( tabCalendaring, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer471131->Add( btnDeleteFreeBusyAddress, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer461131->Add( bSizer471131, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer351131->Add( bSizer461131, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer301131->Add( bSizer351131, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer521->Add( bSizer301131, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer1821->Add( fgSizer521, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       tabCalendaring->SetSizer( bSizer1821 );\r
+       tabCalendaring->Layout();\r
+       bSizer1821->Fit( tabCalendaring );\r
+       nbkContact->AddPage( tabCalendaring, wxT("Calendaring"), false );\r
+       tabSecurity = new wxScrolledWindow( nbkContact, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHSCROLL|wxVSCROLL );\r
+       tabSecurity->SetScrollRate( 5, 5 );\r
+       wxBoxSizer* szrAddresses1112;\r
+       szrAddresses1112 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboKeys = new wxListCtrl( tabSecurity, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       szrAddresses1112->Add( lboKeys, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* szrCategoriesOuter12;\r
+       szrCategoriesOuter12 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer462112;\r
+       bSizer462112 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer472112;\r
+       bSizer472112 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnAddKey = new wxButton( tabSecurity, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer472112->Add( btnAddKey, 0, wxALL, 5 );\r
+       \r
+       btnModifyKey = new wxButton( tabSecurity, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer472112->Add( btnModifyKey, 0, wxALL, 5 );\r
+       \r
+       btnDeleteKey = new wxButton( tabSecurity, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer472112->Add( btnDeleteKey, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer462112->Add( bSizer472112, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       szrCategoriesOuter12->Add( bSizer462112, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       szrAddresses1112->Add( szrCategoriesOuter12, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       tabSecurity->SetSizer( szrAddresses1112 );\r
+       tabSecurity->Layout();\r
+       szrAddresses1112->Fit( tabSecurity );\r
+       nbkContact->AddPage( tabSecurity, wxT("Security"), false );\r
+       tabOther = new wxScrolledWindow( nbkContact, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHSCROLL|wxVSCROLL );\r
+       tabOther->SetScrollRate( 5, 5 );\r
+       wxFlexGridSizer* fgSizer5211;\r
+       fgSizer5211 = new wxFlexGridSizer( 0, 2, 0, 0 );\r
+       fgSizer5211->AddGrowableCol( 1 );\r
+       fgSizer5211->SetFlexibleDirection( wxBOTH );\r
+       fgSizer5211->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );\r
+       \r
+       lblVendorNamespace = new wxStaticText( tabOther, wxID_ANY, wxT("Vendor Namespace:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblVendorNamespace->Wrap( 0 );\r
+       fgSizer5211->Add( lblVendorNamespace, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* szrAddresses211;\r
+       szrAddresses211 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboVendorNamespace = new wxListCtrl( tabOther, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxSUNKEN_BORDER );\r
+       szrAddresses211->Add( lboVendorNamespace, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* szrAddressesOuter211;\r
+       szrAddressesOuter211 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer46311;\r
+       bSizer46311 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer47311;\r
+       bSizer47311 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnAddVendorNamespace = new wxButton( tabOther, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer47311->Add( btnAddVendorNamespace, 0, wxALL, 5 );\r
+       \r
+       btnModifyVendorNamespace = new wxButton( tabOther, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer47311->Add( btnModifyVendorNamespace, 0, wxALL, 5 );\r
+       \r
+       btnDeleteVendorNamespace = new wxButton( tabOther, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer47311->Add( btnDeleteVendorNamespace, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer46311->Add( bSizer47311, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       szrAddressesOuter211->Add( bSizer46311, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       szrAddresses211->Add( szrAddressesOuter211, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer5211->Add( szrAddresses211, 1, wxEXPAND, 5 );\r
+       \r
+       lblXTokens = new wxStaticText( tabOther, wxID_ANY, wxT("X-Tokens:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblXTokens->Wrap( 0 );\r
+       fgSizer5211->Add( lblXTokens, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer301311;\r
+       bSizer301311 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lboXToken = new wxListCtrl( tabOther, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       bSizer301311->Add( lboXToken, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer351311;\r
+       bSizer351311 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer461311;\r
+       bSizer461311 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer471311;\r
+       bSizer471311 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnAddXToken = new wxButton( tabOther, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer471311->Add( btnAddXToken, 0, wxALL, 5 );\r
+       \r
+       btnModifyXToken = new wxButton( tabOther, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer471311->Add( btnModifyXToken, 0, wxALL, 5 );\r
+       \r
+       btnDeleteXToken = new wxButton( tabOther, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer471311->Add( btnDeleteXToken, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer461311->Add( bSizer471311, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer351311->Add( bSizer461311, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer301311->Add( bSizer351311, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer5211->Add( bSizer301311, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       tabOther->SetSizer( fgSizer5211 );\r
+       tabOther->Layout();\r
+       fgSizer5211->Fit( tabOther );\r
+       nbkContact->AddPage( tabOther, wxT("Other"), false );\r
+       \r
+       bSizer17->Add( nbkContact, 1, wxEXPAND | wxALL, 5 );\r
+       \r
+       \r
+       this->SetSizer( bSizer17 );\r
+       this->Layout();\r
+       m_menubar3 = new wxMenuBar( 0 );\r
+       mnuContact = new wxMenu();\r
+       wxMenuItem* mnuContactSave;\r
+       mnuContactSave = new wxMenuItem( mnuContact, CONTACT_SAVE, wxString( wxT("Save") ) + wxT('\t') + wxT("Ctrl+S"), wxEmptyString, wxITEM_NORMAL );\r
+       mnuContact->Append( mnuContactSave );\r
+       \r
+       wxMenuItem* mnuContactSaveClose;\r
+       mnuContactSaveClose = new wxMenuItem( mnuContact, CONTACT_SAVECLOSE, wxString( wxT("&Save and Close Contact") ) + wxT('\t') + wxT("Ctrl+Shift+S"), wxEmptyString, wxITEM_NORMAL );\r
+       mnuContact->Append( mnuContactSaveClose );\r
+       \r
+       mnuContact->AppendSeparator();\r
+       \r
+       wxMenuItem* mnuContactClose;\r
+       mnuContactClose = new wxMenuItem( mnuContact, CONTACT_CLOSE, wxString( wxT("Close") ) , wxEmptyString, wxITEM_NORMAL );\r
+       mnuContact->Append( mnuContactClose );\r
+       \r
+       m_menubar3->Append( mnuContact, wxT("&Contact") ); \r
+       \r
+       mnuEdit = new wxMenu();\r
+       wxMenuItem* mnuEditCut;\r
+       mnuEditCut = new wxMenuItem( mnuEdit, wxID_CUT, wxString( wxT("Cu&t") ) + wxT('\t') + wxT("Ctrl+X"), wxEmptyString, wxITEM_NORMAL );\r
+       mnuEdit->Append( mnuEditCut );\r
+       \r
+       wxMenuItem* mnuEditCopy;\r
+       mnuEditCopy = new wxMenuItem( mnuEdit, wxID_COPY, wxString( wxT("&Copy") ) + wxT('\t') + wxT("Ctrl+C"), wxEmptyString, wxITEM_NORMAL );\r
+       mnuEdit->Append( mnuEditCopy );\r
+       \r
+       wxMenuItem* mnuEditPaste;\r
+       mnuEditPaste = new wxMenuItem( mnuEdit, wxID_PASTE, wxString( wxT("&Paste") ) + wxT('\t') + wxT("Ctrl+V"), wxEmptyString, wxITEM_NORMAL );\r
+       mnuEdit->Append( mnuEditPaste );\r
+       \r
+       m_menubar3->Append( mnuEdit, wxT("&Edit") ); \r
+       \r
+       this->SetMenuBar( m_menubar3 );\r
+       \r
+       \r
+       this->Centre( wxBOTH );\r
+       \r
+       // Connect Events\r
+       this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( frmContactEditorADT::CloseWindow ) );\r
+       txtTitle->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( frmContactEditorADT::UpdateDisplayAs ), NULL, this );\r
+       txtForename->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( frmContactEditorADT::UpdateDisplayAs ), NULL, this );\r
+       txtSurname->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( frmContactEditorADT::UpdateDisplayAs ), NULL, this );\r
+       txtOtherNames->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( frmContactEditorADT::UpdateDisplayAs ), NULL, this );\r
+       txtSuffix->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( frmContactEditorADT::UpdateDisplayAs ), NULL, this );\r
+       cmbDisplayAs->Connect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( frmContactEditorADT::UpdateName ), NULL, this );\r
+       cmbDisplayAs->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( frmContactEditorADT::UpdateName ), NULL, this );\r
+       cmbType->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( frmContactEditorADT::UpdateMembersTab ), NULL, this );\r
+       btnAddGeneralNickname->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralNickname ), NULL, this );\r
+       btnModifyGeneralNickname->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralNickname ), NULL, this );\r
+       btnDeleteGeneralNickname->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralNickname ), NULL, this );\r
+       btnAddGeneralAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralAddress ), NULL, this );\r
+       btnModifyGeneralAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralAddress ), NULL, this );\r
+       btnDeleteGeneralAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralAddress ), NULL, this );\r
+       btnAddEmailAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralEmail ), NULL, this );\r
+       btnModifyEmailAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralEmail ), NULL, this );\r
+       btnDeleteEmailAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralEmail ), NULL, this );\r
+       btnAddIMAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralIM ), NULL, this );\r
+       btnModifyIMAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralIM ), NULL, this );\r
+       btnDeleteIMAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralIM ), NULL, this );\r
+       btnAddTelephone->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralTelephone ), NULL, this );\r
+       btnModifyTelephone->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralTelephone ), NULL, this );\r
+       btnDeleteTelephone->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralTelephone ), NULL, this );\r
+       btnAddLanguage->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralLanguages ), NULL, this );\r
+       btnModifyLanguage->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralLanguages ), NULL, this );\r
+       btnDeleteLanguage->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralLanguage ), NULL, this );\r
+       btnAddTimezone->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralTimezone ), NULL, this );\r
+       btnModifyTimezone->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralTimezone ), NULL, this );\r
+       btnDeleteTimezone->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralTimezone ), NULL, this );\r
+       btnAddGeneralGeoposition->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralGeoposition ), NULL, this );\r
+       btnModifyGeneralGeoposition->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralGeoposition ), NULL, this );\r
+       btnDeleteGeneralGeoposition->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralGeoposition ), NULL, this );\r
+       btnAddRelated->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralRelated ), NULL, this );\r
+       btnModifyRelated->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralRelated ), NULL, this );\r
+       btnDeleteRelated->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralRelated ), NULL, this );\r
+       btnAddWebsite->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralWebsite ), NULL, this );\r
+       btnModifyWebsite->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralWebsite ), NULL, this );\r
+       btnDeleteWebsite->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralWebsite ), NULL, this );\r
+       btnAddTitle->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralTitle ), NULL, this );\r
+       btnModifyTitle->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralTitle ), NULL, this );\r
+       btnDeleteTitle->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralTitle ), NULL, this );\r
+       btnAddRole->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralRole ), NULL, this );\r
+       btnModifyRole->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralRole ), NULL, this );\r
+       btnDeleteRole->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralRole ), NULL, this );\r
+       btnAddOrganisations->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralOrganisation ), NULL, this );\r
+       btnModifyOrganisations->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralOrganisation ), NULL, this );\r
+       btnDeleteOrganisations->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralOrganisation ), NULL, this );\r
+       btnAddNote->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralNote ), NULL, this );\r
+       btnModifyNote->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralNote ), NULL, this );\r
+       btnDeleteNote->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralNote ), NULL, this );\r
+       btnAddHomeNickname->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeNickname ), NULL, this );\r
+       btnModifyHomeNickname->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeNickname ), NULL, this );\r
+       btnDeleteHomeNickname->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeNickname ), NULL, this );\r
+       btnAddHomeAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeAddress ), NULL, this );\r
+       btnModifyHomeAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeAddress ), NULL, this );\r
+       btnDeleteHomeAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeAddress ), NULL, this );\r
+       btnAddHomeEmailAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeEmail ), NULL, this );\r
+       btnModifyHomeEmailAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeEmail ), NULL, this );\r
+       btnDeleteHomeEmailAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeEmail ), NULL, this );\r
+       btnAddHomeIMAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeIM ), NULL, this );\r
+       btnModifyHomeIMAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeIM ), NULL, this );\r
+       btnDeleteHomeIMAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeIM ), NULL, this );\r
+       btnAddHomeTelephone->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeTelephone ), NULL, this );\r
+       btnModifyHomeTelephone->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeTelephone ), NULL, this );\r
+       btnDeleteHomeTelephone->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeTelephone ), NULL, this );\r
+       btnAddHomeLanguage->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeLanguage ), NULL, this );\r
+       btnModifyHomeLanguage->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeLanguage ), NULL, this );\r
+       btnDeleteHomeLanguage->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeLanguage ), NULL, this );\r
+       btnAddHomeTimezone->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeTimezone ), NULL, this );\r
+       btnModifyHomeTimezone->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeTimezone ), NULL, this );\r
+       btnDeleteHomeTimezone->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeTimezone ), NULL, this );\r
+       btnAddHomeGeoposition->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeGeoposition ), NULL, this );\r
+       btnModifyHomeGeoposition->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeGeoposition ), NULL, this );\r
+       btnDeleteHomePosition->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeGeoposition ), NULL, this );\r
+       btnAddHomeWebsite->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeWebsite ), NULL, this );\r
+       btnHomeModifyWebsite->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeWebsite ), NULL, this );\r
+       btnDeleteHomeWebsite->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeWebsite ), NULL, this );\r
+       btnAddHomeTitle->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeTitle ), NULL, this );\r
+       btnModifyHomeTitle->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeTitle ), NULL, this );\r
+       btnDeleteHomeTitle->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeTitle ), NULL, this );\r
+       btnAddHomeRole->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeRole ), NULL, this );\r
+       btnModifyHomeRole->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeRole ), NULL, this );\r
+       btnDeleteHomeRole->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeRole ), NULL, this );\r
+       btnAddHomeOrganisations->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeOrganisation ), NULL, this );\r
+       btnModifyHomeOrganisations->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeOrganisation ), NULL, this );\r
+       btnDeleteHomeOrganisations->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeOrganisation ), NULL, this );\r
+       btnAddHomeNote->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeNote ), NULL, this );\r
+       btnModifyHomeNote->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeNote ), NULL, this );\r
+       btnDeleteHomeNote->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeNote ), NULL, this );\r
+       btnAddBusinessNickname->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessNickname ), NULL, this );\r
+       btnModifyBusinessNickname->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessNickname ), NULL, this );\r
+       btnDeleteBusinessNickname->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessNickname ), NULL, this );\r
+       btnAddBusinessAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessAddress ), NULL, this );\r
+       btnModifyBusinessAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessAddress ), NULL, this );\r
+       btnDeleteBusinessAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessAddress ), NULL, this );\r
+       btnAddBusinessEmailAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessEmail ), NULL, this );\r
+       btnModifyBusinessEmailAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessEmail ), NULL, this );\r
+       btnDeleteBusinessEmailAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessEmail ), NULL, this );\r
+       btnAddBusinessIMAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessIM ), NULL, this );\r
+       btnModifyBusinessIMAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessIM ), NULL, this );\r
+       btnDeleteBusinessIMAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessIM ), NULL, this );\r
+       btnBusinessAddTelephone->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessTelephone ), NULL, this );\r
+       btnBusinessModifyTelephone->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessTelephone ), NULL, this );\r
+       btnBusinessDeleteTelephone->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessTelephone ), NULL, this );\r
+       btnBusinessAddLanguage->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessLanguage ), NULL, this );\r
+       btnBusinessModifyLanguage->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessLanguage ), NULL, this );\r
+       btnBusinessDeleteLanguage->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessLanguage ), NULL, this );\r
+       btnBusinessAddTimezone->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessTimezone ), NULL, this );\r
+       btnBusinessModifyTimezone->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessTimezone ), NULL, this );\r
+       btnDeleteBusinessTimezone->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessTimezone ), NULL, this );\r
+       btnAddBusinessGeoposition->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessGeoposition ), NULL, this );\r
+       btnModifyBusinessGeoposition->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessGeoposition ), NULL, this );\r
+       btnDeleteBusinessGeoposition->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessGeoposition ), NULL, this );\r
+       btnAddBusinessWebsite->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessWebsite ), NULL, this );\r
+       btnModifyBusinessWebsite->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessWebsite ), NULL, this );\r
+       btnDeleteBusinessWebsite->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessWebsite ), NULL, this );\r
+       btnAddBusinessTitle->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessTitle ), NULL, this );\r
+       btnModifyBusinessTitle->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessTitle ), NULL, this );\r
+       btnDeleteBusinessTitle->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessTitle ), NULL, this );\r
+       btnAddBusinessRole->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessRole ), NULL, this );\r
+       btnModifyBusinessRole->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessRole ), NULL, this );\r
+       btnDeleteBusinessRole->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessRole ), NULL, this );\r
+       btnAddBusinessOrganisations->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessOrganisation ), NULL, this );\r
+       btnModifyBusinessOrganisations->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessOrganisation ), NULL, this );\r
+       btnDeleteBusinessOrganisations->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessOrganisation ), NULL, this );\r
+       btnBusinessAddNote->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessNote ), NULL, this );\r
+       btnBusinessModifyNote->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessNote ), NULL, this );\r
+       btnBusinessDeleteNote->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessNote ), NULL, this );\r
+       btnAddCategory->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddCategory ), NULL, this );\r
+       btnModifyCategory->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyCategory ), NULL, this );\r
+       btnDeleteCategory->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteCategory ), NULL, this );\r
+       btnAddGroups->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGroup ), NULL, this );\r
+       btnModifyGroups->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGroup ), NULL, this );\r
+       btnDeleteGroups->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGroup ), NULL, this );\r
+       lboPictures->Connect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( frmContactEditorADT::LoadPicture ), NULL, this );\r
+       btnAddPicture->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddPicture ), NULL, this );\r
+       btnModifyPicture->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyPicture ), NULL, this );\r
+       btnDeletePicture->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeletePicture ), NULL, this );\r
+       lboLogos->Connect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( frmContactEditorADT::LoadLogo ), NULL, this );\r
+       btnAddLogo->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddLogo ), NULL, this );\r
+       btnModifyLogo->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyLogo ), NULL, this );\r
+       btnDeleteLogo->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteLogo ), NULL, this );\r
+       btnAddSound->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddSound ), NULL, this );\r
+       btnModifySound->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifySound ), NULL, this );\r
+       btnDeleteSound->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteSound ), NULL, this );\r
+       btnPlay->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::PlaySound ), NULL, this );\r
+       btnStop->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::StopSound ), NULL, this );\r
+       btnAddCalendarAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddCalendarAddress ), NULL, this );\r
+       btnModifyCalendarAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyCalendarAddress ), NULL, this );\r
+       btnDeleteCalendarAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteCalendarAddress ), NULL, this );\r
+       btnAddCalendarRequestAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddCalendarRequest ), NULL, this );\r
+       btnModifyCalendarRequestAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyCalendarRequest ), NULL, this );\r
+       btnDeleteCalendarRequestAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteCalendarAddress ), NULL, this );\r
+       btnAddFreeBusyAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddFreeBusy ), NULL, this );\r
+       btnModifyFreeBusyAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyFreeBusy ), NULL, this );\r
+       btnDeleteFreeBusyAddress->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteFreeBusy ), NULL, this );\r
+       btnAddKey->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddKey ), NULL, this );\r
+       btnModifyKey->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyKey ), NULL, this );\r
+       btnDeleteKey->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteKey ), NULL, this );\r
+       btnAddVendorNamespace->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddVendorNamespace ), NULL, this );\r
+       btnModifyVendorNamespace->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyVendorNamespace ), NULL, this );\r
+       btnDeleteVendorNamespace->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteVendorNamespace ), NULL, this );\r
+       btnAddXToken->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddXToken ), NULL, this );\r
+       btnModifyXToken->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyXToken ), NULL, this );\r
+       btnDeleteXToken->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteXToken ), NULL, this );\r
+       this->Connect( mnuContactSave->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmContactEditorADT::SaveContact ) );\r
+       this->Connect( mnuContactSaveClose->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmContactEditorADT::SaveCloseContact ) );\r
+       this->Connect( mnuContactClose->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmContactEditorADT::CloseContact ) );\r
+       this->Connect( mnuEditCut->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmContactEditorADT::CutText ) );\r
+       this->Connect( mnuEditCopy->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmContactEditorADT::CopyText ) );\r
+       this->Connect( mnuEditPaste->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmContactEditorADT::PasteText ) );\r
+}\r
+\r
+frmContactEditorADT::~frmContactEditorADT()\r
+{\r
+       // Disconnect Events\r
+       this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( frmContactEditorADT::CloseWindow ) );\r
+       txtTitle->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( frmContactEditorADT::UpdateDisplayAs ), NULL, this );\r
+       txtForename->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( frmContactEditorADT::UpdateDisplayAs ), NULL, this );\r
+       txtSurname->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( frmContactEditorADT::UpdateDisplayAs ), NULL, this );\r
+       txtOtherNames->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( frmContactEditorADT::UpdateDisplayAs ), NULL, this );\r
+       txtSuffix->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( frmContactEditorADT::UpdateDisplayAs ), NULL, this );\r
+       cmbDisplayAs->Disconnect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( frmContactEditorADT::UpdateName ), NULL, this );\r
+       cmbDisplayAs->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( frmContactEditorADT::UpdateName ), NULL, this );\r
+       cmbType->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( frmContactEditorADT::UpdateMembersTab ), NULL, this );\r
+       btnAddGeneralNickname->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralNickname ), NULL, this );\r
+       btnModifyGeneralNickname->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralNickname ), NULL, this );\r
+       btnDeleteGeneralNickname->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralNickname ), NULL, this );\r
+       btnAddGeneralAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralAddress ), NULL, this );\r
+       btnModifyGeneralAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralAddress ), NULL, this );\r
+       btnDeleteGeneralAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralAddress ), NULL, this );\r
+       btnAddEmailAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralEmail ), NULL, this );\r
+       btnModifyEmailAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralEmail ), NULL, this );\r
+       btnDeleteEmailAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralEmail ), NULL, this );\r
+       btnAddIMAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralIM ), NULL, this );\r
+       btnModifyIMAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralIM ), NULL, this );\r
+       btnDeleteIMAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralIM ), NULL, this );\r
+       btnAddTelephone->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralTelephone ), NULL, this );\r
+       btnModifyTelephone->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralTelephone ), NULL, this );\r
+       btnDeleteTelephone->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralTelephone ), NULL, this );\r
+       btnAddLanguage->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralLanguages ), NULL, this );\r
+       btnModifyLanguage->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralLanguages ), NULL, this );\r
+       btnDeleteLanguage->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralLanguage ), NULL, this );\r
+       btnAddTimezone->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralTimezone ), NULL, this );\r
+       btnModifyTimezone->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralTimezone ), NULL, this );\r
+       btnDeleteTimezone->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralTimezone ), NULL, this );\r
+       btnAddGeneralGeoposition->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralGeoposition ), NULL, this );\r
+       btnModifyGeneralGeoposition->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralGeoposition ), NULL, this );\r
+       btnDeleteGeneralGeoposition->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralGeoposition ), NULL, this );\r
+       btnAddRelated->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralRelated ), NULL, this );\r
+       btnModifyRelated->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralRelated ), NULL, this );\r
+       btnDeleteRelated->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralRelated ), NULL, this );\r
+       btnAddWebsite->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralWebsite ), NULL, this );\r
+       btnModifyWebsite->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralWebsite ), NULL, this );\r
+       btnDeleteWebsite->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralWebsite ), NULL, this );\r
+       btnAddTitle->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralTitle ), NULL, this );\r
+       btnModifyTitle->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralTitle ), NULL, this );\r
+       btnDeleteTitle->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralTitle ), NULL, this );\r
+       btnAddRole->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralRole ), NULL, this );\r
+       btnModifyRole->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralRole ), NULL, this );\r
+       btnDeleteRole->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralRole ), NULL, this );\r
+       btnAddOrganisations->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralOrganisation ), NULL, this );\r
+       btnModifyOrganisations->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralOrganisation ), NULL, this );\r
+       btnDeleteOrganisations->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralOrganisation ), NULL, this );\r
+       btnAddNote->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGeneralNote ), NULL, this );\r
+       btnModifyNote->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGeneralNote ), NULL, this );\r
+       btnDeleteNote->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGeneralNote ), NULL, this );\r
+       btnAddHomeNickname->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeNickname ), NULL, this );\r
+       btnModifyHomeNickname->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeNickname ), NULL, this );\r
+       btnDeleteHomeNickname->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeNickname ), NULL, this );\r
+       btnAddHomeAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeAddress ), NULL, this );\r
+       btnModifyHomeAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeAddress ), NULL, this );\r
+       btnDeleteHomeAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeAddress ), NULL, this );\r
+       btnAddHomeEmailAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeEmail ), NULL, this );\r
+       btnModifyHomeEmailAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeEmail ), NULL, this );\r
+       btnDeleteHomeEmailAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeEmail ), NULL, this );\r
+       btnAddHomeIMAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeIM ), NULL, this );\r
+       btnModifyHomeIMAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeIM ), NULL, this );\r
+       btnDeleteHomeIMAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeIM ), NULL, this );\r
+       btnAddHomeTelephone->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeTelephone ), NULL, this );\r
+       btnModifyHomeTelephone->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeTelephone ), NULL, this );\r
+       btnDeleteHomeTelephone->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeTelephone ), NULL, this );\r
+       btnAddHomeLanguage->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeLanguage ), NULL, this );\r
+       btnModifyHomeLanguage->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeLanguage ), NULL, this );\r
+       btnDeleteHomeLanguage->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeLanguage ), NULL, this );\r
+       btnAddHomeTimezone->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeTimezone ), NULL, this );\r
+       btnModifyHomeTimezone->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeTimezone ), NULL, this );\r
+       btnDeleteHomeTimezone->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeTimezone ), NULL, this );\r
+       btnAddHomeGeoposition->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeGeoposition ), NULL, this );\r
+       btnModifyHomeGeoposition->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeGeoposition ), NULL, this );\r
+       btnDeleteHomePosition->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeGeoposition ), NULL, this );\r
+       btnAddHomeWebsite->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeWebsite ), NULL, this );\r
+       btnHomeModifyWebsite->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeWebsite ), NULL, this );\r
+       btnDeleteHomeWebsite->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeWebsite ), NULL, this );\r
+       btnAddHomeTitle->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeTitle ), NULL, this );\r
+       btnModifyHomeTitle->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeTitle ), NULL, this );\r
+       btnDeleteHomeTitle->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeTitle ), NULL, this );\r
+       btnAddHomeRole->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeRole ), NULL, this );\r
+       btnModifyHomeRole->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeRole ), NULL, this );\r
+       btnDeleteHomeRole->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeRole ), NULL, this );\r
+       btnAddHomeOrganisations->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeOrganisation ), NULL, this );\r
+       btnModifyHomeOrganisations->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeOrganisation ), NULL, this );\r
+       btnDeleteHomeOrganisations->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeOrganisation ), NULL, this );\r
+       btnAddHomeNote->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddHomeNote ), NULL, this );\r
+       btnModifyHomeNote->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyHomeNote ), NULL, this );\r
+       btnDeleteHomeNote->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteHomeNote ), NULL, this );\r
+       btnAddBusinessNickname->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessNickname ), NULL, this );\r
+       btnModifyBusinessNickname->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessNickname ), NULL, this );\r
+       btnDeleteBusinessNickname->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessNickname ), NULL, this );\r
+       btnAddBusinessAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessAddress ), NULL, this );\r
+       btnModifyBusinessAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessAddress ), NULL, this );\r
+       btnDeleteBusinessAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessAddress ), NULL, this );\r
+       btnAddBusinessEmailAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessEmail ), NULL, this );\r
+       btnModifyBusinessEmailAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessEmail ), NULL, this );\r
+       btnDeleteBusinessEmailAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessEmail ), NULL, this );\r
+       btnAddBusinessIMAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessIM ), NULL, this );\r
+       btnModifyBusinessIMAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessIM ), NULL, this );\r
+       btnDeleteBusinessIMAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessIM ), NULL, this );\r
+       btnBusinessAddTelephone->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessTelephone ), NULL, this );\r
+       btnBusinessModifyTelephone->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessTelephone ), NULL, this );\r
+       btnBusinessDeleteTelephone->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessTelephone ), NULL, this );\r
+       btnBusinessAddLanguage->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessLanguage ), NULL, this );\r
+       btnBusinessModifyLanguage->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessLanguage ), NULL, this );\r
+       btnBusinessDeleteLanguage->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessLanguage ), NULL, this );\r
+       btnBusinessAddTimezone->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessTimezone ), NULL, this );\r
+       btnBusinessModifyTimezone->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessTimezone ), NULL, this );\r
+       btnDeleteBusinessTimezone->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessTimezone ), NULL, this );\r
+       btnAddBusinessGeoposition->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessGeoposition ), NULL, this );\r
+       btnModifyBusinessGeoposition->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessGeoposition ), NULL, this );\r
+       btnDeleteBusinessGeoposition->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessGeoposition ), NULL, this );\r
+       btnAddBusinessWebsite->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessWebsite ), NULL, this );\r
+       btnModifyBusinessWebsite->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessWebsite ), NULL, this );\r
+       btnDeleteBusinessWebsite->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessWebsite ), NULL, this );\r
+       btnAddBusinessTitle->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessTitle ), NULL, this );\r
+       btnModifyBusinessTitle->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessTitle ), NULL, this );\r
+       btnDeleteBusinessTitle->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessTitle ), NULL, this );\r
+       btnAddBusinessRole->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessRole ), NULL, this );\r
+       btnModifyBusinessRole->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessRole ), NULL, this );\r
+       btnDeleteBusinessRole->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessRole ), NULL, this );\r
+       btnAddBusinessOrganisations->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessOrganisation ), NULL, this );\r
+       btnModifyBusinessOrganisations->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessOrganisation ), NULL, this );\r
+       btnDeleteBusinessOrganisations->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessOrganisation ), NULL, this );\r
+       btnBusinessAddNote->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddBusinessNote ), NULL, this );\r
+       btnBusinessModifyNote->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyBusinessNote ), NULL, this );\r
+       btnBusinessDeleteNote->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteBusinessNote ), NULL, this );\r
+       btnAddCategory->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddCategory ), NULL, this );\r
+       btnModifyCategory->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyCategory ), NULL, this );\r
+       btnDeleteCategory->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteCategory ), NULL, this );\r
+       btnAddGroups->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddGroup ), NULL, this );\r
+       btnModifyGroups->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyGroup ), NULL, this );\r
+       btnDeleteGroups->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteGroup ), NULL, this );\r
+       lboPictures->Disconnect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( frmContactEditorADT::LoadPicture ), NULL, this );\r
+       btnAddPicture->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddPicture ), NULL, this );\r
+       btnModifyPicture->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyPicture ), NULL, this );\r
+       btnDeletePicture->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeletePicture ), NULL, this );\r
+       lboLogos->Disconnect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( frmContactEditorADT::LoadLogo ), NULL, this );\r
+       btnAddLogo->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddLogo ), NULL, this );\r
+       btnModifyLogo->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyLogo ), NULL, this );\r
+       btnDeleteLogo->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteLogo ), NULL, this );\r
+       btnAddSound->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddSound ), NULL, this );\r
+       btnModifySound->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifySound ), NULL, this );\r
+       btnDeleteSound->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteSound ), NULL, this );\r
+       btnPlay->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::PlaySound ), NULL, this );\r
+       btnStop->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::StopSound ), NULL, this );\r
+       btnAddCalendarAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddCalendarAddress ), NULL, this );\r
+       btnModifyCalendarAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyCalendarAddress ), NULL, this );\r
+       btnDeleteCalendarAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteCalendarAddress ), NULL, this );\r
+       btnAddCalendarRequestAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddCalendarRequest ), NULL, this );\r
+       btnModifyCalendarRequestAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyCalendarRequest ), NULL, this );\r
+       btnDeleteCalendarRequestAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteCalendarAddress ), NULL, this );\r
+       btnAddFreeBusyAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddFreeBusy ), NULL, this );\r
+       btnModifyFreeBusyAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyFreeBusy ), NULL, this );\r
+       btnDeleteFreeBusyAddress->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteFreeBusy ), NULL, this );\r
+       btnAddKey->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddKey ), NULL, this );\r
+       btnModifyKey->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyKey ), NULL, this );\r
+       btnDeleteKey->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteKey ), NULL, this );\r
+       btnAddVendorNamespace->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddVendorNamespace ), NULL, this );\r
+       btnModifyVendorNamespace->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyVendorNamespace ), NULL, this );\r
+       btnDeleteVendorNamespace->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteVendorNamespace ), NULL, this );\r
+       btnAddXToken->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::AddXToken ), NULL, this );\r
+       btnModifyXToken->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::ModifyXToken ), NULL, this );\r
+       btnDeleteXToken->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorADT::DeleteXToken ), NULL, this );\r
+       this->Disconnect( CONTACT_SAVE, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmContactEditorADT::SaveContact ) );\r
+       this->Disconnect( CONTACT_SAVECLOSE, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmContactEditorADT::SaveCloseContact ) );\r
+       this->Disconnect( CONTACT_CLOSE, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmContactEditorADT::CloseContact ) );\r
+       this->Disconnect( wxID_CUT, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmContactEditorADT::CutText ) );\r
+       this->Disconnect( wxID_COPY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmContactEditorADT::CopyText ) );\r
+       this->Disconnect( wxID_PASTE, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmContactEditorADT::PasteText ) );\r
+       \r
+}\r
+\r
+frmContactEditorAddressADT::frmContactEditorAddressADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )\r
+{\r
+       this->SetSizeHints( wxDefaultSize, wxDefaultSize );\r
+       \r
+       wxBoxSizer* bSizer251;\r
+       bSizer251 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       nbkAddress = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );\r
+       tabGeneral = new wxPanel( nbkAddress, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxFlexGridSizer* fgSizer6;\r
+       fgSizer6 = new wxFlexGridSizer( 2, 2, 0, 0 );\r
+       fgSizer6->AddGrowableCol( 1 );\r
+       fgSizer6->SetFlexibleDirection( wxVERTICAL );\r
+       fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );\r
+       \r
+       lblAddress = new wxStaticText( tabGeneral, wxID_ANY, wxT("Address:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblAddress->Wrap( -1 );\r
+       fgSizer6->Add( lblAddress, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       txtAddress = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );\r
+       txtAddress->SetMaxLength( 0 ); \r
+       fgSizer6->Add( txtAddress, 0, wxALL|wxEXPAND, 5 );\r
+       \r
+       m_staticText61 = new wxStaticText( tabGeneral, wxID_ANY, wxT("Town/City:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       m_staticText61->Wrap( -1 );\r
+       fgSizer6->Add( m_staticText61, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       txtTownCity = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );\r
+       txtTownCity->SetMaxLength( 0 ); \r
+       fgSizer6->Add( txtTownCity, 0, wxALL|wxEXPAND, 5 );\r
+       \r
+       lblCountyState = new wxStaticText( tabGeneral, wxID_ANY, wxT("County:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblCountyState->Wrap( -1 );\r
+       fgSizer6->Add( lblCountyState, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       txtCounty = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );\r
+       txtCounty->SetMaxLength( 0 ); \r
+       fgSizer6->Add( txtCounty, 0, wxALL|wxEXPAND, 5 );\r
+       \r
+       lblPostCode = new wxStaticText( tabGeneral, wxID_ANY, wxT("Post Code:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblPostCode->Wrap( -1 );\r
+       fgSizer6->Add( lblPostCode, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       txtPostCode = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );\r
+       txtPostCode->SetMaxLength( 0 ); \r
+       fgSizer6->Add( txtPostCode, 0, wxALL, 5 );\r
+       \r
+       lblCountry = new wxStaticText( tabGeneral, wxID_ANY, wxT("Country:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblCountry->Wrap( -1 );\r
+       fgSizer6->Add( lblCountry, 0, wxALL, 5 );\r
+       \r
+       txtCountry = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );\r
+       txtCountry->SetMaxLength( 0 ); \r
+       fgSizer6->Add( txtCountry, 0, wxALL|wxEXPAND, 5 );\r
+       \r
+       lblPriority = new wxStaticText( tabGeneral, wxID_ANY, wxT("Priority:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblPriority->Wrap( -1 );\r
+       fgSizer6->Add( lblPriority, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer260;\r
+       bSizer260 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       chkUsePref = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Use"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer260->Add( chkUsePref, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer254;\r
+       bSizer254 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer256;\r
+       bSizer256 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       sliPriority = new wxSlider( tabGeneral, wxID_ANY, 0, 1, 100, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL|wxSL_LABELS );\r
+       bSizer256->Add( sliPriority, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer254->Add( bSizer256, 1, wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer255;\r
+       bSizer255 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lblHigh = new wxStaticText( tabGeneral, wxID_ANY, wxT("High"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblHigh->Wrap( -1 );\r
+       bSizer255->Add( lblHigh, 0, wxALIGN_LEFT|wxALL, 5 );\r
+       \r
+       \r
+       bSizer255->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       lblLow = new wxStaticText( tabGeneral, wxID_ANY, wxT("Low"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblLow->Wrap( -1 );\r
+       bSizer255->Add( lblLow, 0, wxALIGN_RIGHT|wxALL, 5 );\r
+       \r
+       \r
+       bSizer254->Add( bSizer255, 1, wxEXPAND, 0 );\r
+       \r
+       \r
+       bSizer260->Add( bSizer254, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer6->Add( bSizer260, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer6->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       tabGeneral->SetSizer( fgSizer6 );\r
+       tabGeneral->Layout();\r
+       fgSizer6->Fit( tabGeneral );\r
+       nbkAddress->AddPage( tabGeneral, wxT("General"), true );\r
+       tabLabel = new wxPanel( nbkAddress, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxBoxSizer* bSizer253;\r
+       bSizer253 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnCopyMailing = new wxButton( tabLabel, wxID_ANY, wxT("Copy Address to Label"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer253->Add( btnCopyMailing, 0, wxALL, 5 );\r
+       \r
+       txtLabel = new wxTextCtrl( tabLabel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE );\r
+       txtLabel->SetMaxLength( 0 ); \r
+       bSizer253->Add( txtLabel, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       \r
+       tabLabel->SetSizer( bSizer253 );\r
+       tabLabel->Layout();\r
+       bSizer253->Fit( tabLabel );\r
+       nbkAddress->AddPage( tabLabel, wxT("Label"), false );\r
+       tabOther = new wxPanel( nbkAddress, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxFlexGridSizer* fgSizer61;\r
+       fgSizer61 = new wxFlexGridSizer( 2, 2, 0, 0 );\r
+       fgSizer61->AddGrowableCol( 1 );\r
+       fgSizer61->SetFlexibleDirection( wxVERTICAL );\r
+       fgSizer61->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );\r
+       \r
+       lblLanguage = new wxStaticText( tabOther, wxID_ANY, wxT("Language:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblLanguage->Wrap( -1 );\r
+       fgSizer61->Add( lblLanguage, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       cmbLanguage = new wxComboBox( tabOther, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 ); \r
+       fgSizer61->Add( cmbLanguage, 0, wxALL, 5 );\r
+       \r
+       lblGeography = new wxStaticText( tabOther, wxID_ANY, wxT("Geopositioning:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblGeography->Wrap( -1 );\r
+       fgSizer61->Add( lblGeography, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       txtGeo = new wxTextCtrl( tabOther, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );\r
+       txtGeo->SetMaxLength( 0 ); \r
+       fgSizer61->Add( txtGeo, 0, wxALL|wxEXPAND, 5 );\r
+       \r
+       lblTimezone = new wxStaticText( tabOther, wxID_ANY, wxT("Timezone:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblTimezone->Wrap( -1 );\r
+       fgSizer61->Add( lblTimezone, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       txtTimezone = new wxTextCtrl( tabOther, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );\r
+       txtTimezone->SetMaxLength( 0 ); \r
+       fgSizer61->Add( txtTimezone, 0, wxALL|wxEXPAND, 5 );\r
+       \r
+       \r
+       tabOther->SetSizer( fgSizer61 );\r
+       tabOther->Layout();\r
+       fgSizer61->Fit( tabOther );\r
+       nbkAddress->AddPage( tabOther, wxT("Other"), false );\r
+       \r
+       bSizer251->Add( nbkAddress, 1, wxEXPAND | wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer252;\r
+       bSizer252 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       btnAction = new wxButton( this, wxID_ANY, wxT("Action"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer252->Add( btnAction, 0, wxALL, 5 );\r
+       \r
+       btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer252->Add( btnClose, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer251->Add( bSizer252, 0, wxALIGN_RIGHT, 5 );\r
+       \r
+       \r
+       this->SetSizer( bSizer251 );\r
+       this->Layout();\r
+       \r
+       this->Centre( wxBOTH );\r
+       \r
+       // Connect Events\r
+       this->Connect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( frmContactEditorAddressADT::InitAddressEditor ) );\r
+       chkUsePref->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorAddressADT::EnablePriority ), NULL, this );\r
+       btnCopyMailing->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorAddressADT::CopyAddress ), NULL, this );\r
+       btnAction->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorAddressADT::ProcessData ), NULL, this );\r
+       btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorAddressADT::CloseWindow ), NULL, this );\r
+}\r
+\r
+frmContactEditorAddressADT::~frmContactEditorAddressADT()\r
+{\r
+       // Disconnect Events\r
+       this->Disconnect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( frmContactEditorAddressADT::InitAddressEditor ) );\r
+       chkUsePref->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorAddressADT::EnablePriority ), NULL, this );\r
+       btnCopyMailing->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorAddressADT::CopyAddress ), NULL, this );\r
+       btnAction->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorAddressADT::ProcessData ), NULL, this );\r
+       btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorAddressADT::CloseWindow ), NULL, this );\r
+       \r
+}\r
+\r
+frmConflictResolutionADT::frmConflictResolutionADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )\r
+{\r
+       this->SetSizeHints( wxDefaultSize, wxDefaultSize );\r
+       \r
+       wxFlexGridSizer* fgSizer39;\r
+       fgSizer39 = new wxFlexGridSizer( 0, 1, 0, 0 );\r
+       fgSizer39->AddGrowableCol( 0 );\r
+       fgSizer39->AddGrowableRow( 0 );\r
+       fgSizer39->SetFlexibleDirection( wxBOTH );\r
+       fgSizer39->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );\r
+       \r
+       wxBoxSizer* bSizer363;\r
+       bSizer363 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       wxBoxSizer* bSizer364;\r
+       bSizer364 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       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 );\r
+       lblText->Wrap( -1 );\r
+       bSizer364->Add( lblText, 0, wxALL|wxEXPAND, 5 );\r
+       \r
+       m_splitter3 = new wxSplitterWindow( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSP_3D );\r
+       m_splitter3->Connect( wxEVT_IDLE, wxIdleEventHandler( frmConflictResolutionADT::m_splitter3OnIdle ), NULL, this );\r
+       \r
+       m_panel44 = new wxPanel( m_splitter3, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxBoxSizer* bSizer365;\r
+       bSizer365 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       htmClient = new wxHtmlWindow( m_panel44, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHW_SCROLLBAR_AUTO|wxSUNKEN_BORDER );\r
+       bSizer365->Add( htmClient, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       \r
+       m_panel44->SetSizer( bSizer365 );\r
+       m_panel44->Layout();\r
+       bSizer365->Fit( m_panel44 );\r
+       m_panel45 = new wxPanel( m_splitter3, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxBoxSizer* bSizer366;\r
+       bSizer366 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       htmServer = new wxHtmlWindow( m_panel45, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHW_SCROLLBAR_AUTO|wxSUNKEN_BORDER );\r
+       bSizer366->Add( htmServer, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       \r
+       m_panel45->SetSizer( bSizer366 );\r
+       m_panel45->Layout();\r
+       bSizer366->Fit( m_panel45 );\r
+       m_splitter3->SplitVertically( m_panel44, m_panel45, 257 );\r
+       bSizer364->Add( m_splitter3, 1, wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer367;\r
+       bSizer367 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       \r
+       bSizer367->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       btnKeepLocal = new wxButton( this, wxID_ANY, wxT("Keep Local"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer367->Add( btnKeepLocal, 0, wxALL, 5 );\r
+       \r
+       btnKeepServer = new wxButton( this, wxID_ANY, wxT("Keep Server"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer367->Add( btnKeepServer, 0, wxALL, 5 );\r
+       \r
+       btnDecideLater = new wxButton( this, wxID_ANY, wxT("Decide Later"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer367->Add( btnDecideLater, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer367->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer364->Add( bSizer367, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer363->Add( bSizer364, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer39->Add( bSizer363, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       this->SetSizer( fgSizer39 );\r
+       this->Layout();\r
+       \r
+       this->Centre( wxBOTH );\r
+       \r
+       // Connect Events\r
+       btnKeepLocal->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmConflictResolutionADT::KeepLocalData ), NULL, this );\r
+       btnKeepServer->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmConflictResolutionADT::KeepServerData ), NULL, this );\r
+       btnDecideLater->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmConflictResolutionADT::DecideLater ), NULL, this );\r
+}\r
+\r
+frmConflictResolutionADT::~frmConflictResolutionADT()\r
+{\r
+       // Disconnect Events\r
+       btnKeepLocal->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmConflictResolutionADT::KeepLocalData ), NULL, this );\r
+       btnKeepServer->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmConflictResolutionADT::KeepServerData ), NULL, this );\r
+       btnDecideLater->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmConflictResolutionADT::DecideLater ), NULL, this );\r
+       \r
+}\r
+\r
+frmActivityMgrADT::frmActivityMgrADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxFrame( parent, id, title, pos, size, style )\r
+{\r
+       this->SetSizeHints( wxSize( 400,300 ), wxDefaultSize );\r
+       \r
+       mnuMenuBar = new wxMenuBar( 0 );\r
+       mnuWindow = new wxMenu();\r
+       wxMenuItem* mnuStopActivity;\r
+       mnuStopActivity = new wxMenuItem( mnuWindow, wxID_ANY, wxString( wxT("&Stop Activity") ) + wxT('\t') + wxT("CTRL+ALT+S"), wxEmptyString, wxITEM_NORMAL );\r
+       mnuWindow->Append( mnuStopActivity );\r
+       \r
+       wxMenuItem* mnuActivityStopAll;\r
+       mnuActivityStopAll = new wxMenuItem( mnuWindow, wxID_ANY, wxString( wxT("Stop All Activities") ) + wxT('\t') + wxT("CTRL+SHIFT+ALT+S"), wxEmptyString, wxITEM_NORMAL );\r
+       mnuWindow->Append( mnuActivityStopAll );\r
+       \r
+       wxMenuItem* mnuRetryActivity;\r
+       mnuRetryActivity = new wxMenuItem( mnuWindow, wxID_ANY, wxString( wxT("&Retry Activity") ) + wxT('\t') + wxT("CTRL+R"), wxEmptyString, wxITEM_NORMAL );\r
+       mnuWindow->Append( mnuRetryActivity );\r
+       \r
+       mnuWindow->AppendSeparator();\r
+       \r
+       wxMenuItem* mnuSleepMode;\r
+       mnuSleepMode = new wxMenuItem( mnuWindow, wxID_ANY, wxString( wxT("Sleep Mode") ) , wxEmptyString, wxITEM_CHECK );\r
+       #ifdef __WXMSW__\r
+       mnuSleepMode->SetBitmaps( wxNullBitmap );\r
+       #elif (defined( __WXGTK__ ) || defined( __WXOSX__ ))\r
+       mnuSleepMode->SetBitmap( wxNullBitmap );\r
+       #endif\r
+       mnuWindow->Append( mnuSleepMode );\r
+       \r
+       mnuWindow->AppendSeparator();\r
+       \r
+       wxMenuItem* mnuWindowClose;\r
+       mnuWindowClose = new wxMenuItem( mnuWindow, wxID_ANY, wxString( wxT("&Close Window") ) + wxT('\t') + wxT("ALT+F4"), wxEmptyString, wxITEM_NORMAL );\r
+       mnuWindow->Append( mnuWindowClose );\r
+       \r
+       mnuMenuBar->Append( mnuWindow, wxT("&Activity") ); \r
+       \r
+       this->SetMenuBar( mnuMenuBar );\r
+       \r
+       wxFlexGridSizer* fgSizer38;\r
+       fgSizer38 = new wxFlexGridSizer( 0, 1, 0, 0 );\r
+       fgSizer38->AddGrowableCol( 0 );\r
+       fgSizer38->AddGrowableRow( 1 );\r
+       fgSizer38->SetFlexibleDirection( wxBOTH );\r
+       fgSizer38->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );\r
+       \r
+       m_panel43 = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxBoxSizer* bSizer363;\r
+       bSizer363 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       bmpActivity = new wxStaticBitmap( m_panel43, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );\r
+       bmpActivity->SetMinSize( wxSize( 64,64 ) );\r
+       \r
+       bSizer363->Add( bmpActivity, 0, wxALL, 5 );\r
+       \r
+       m_panel46 = new wxPanel( m_panel43, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxBoxSizer* bSizer364;\r
+       bSizer364 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       \r
+       bSizer364->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       lblDetails = new wxStaticText( m_panel46, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE );\r
+       lblDetails->Wrap( -1 );\r
+       bSizer364->Add( lblDetails, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 0 );\r
+       \r
+       \r
+       bSizer364->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       GauProgress = new wxGauge( m_panel46, wxID_ANY, 100, wxDefaultPosition, wxDefaultSize, wxGA_HORIZONTAL );\r
+       GauProgress->SetValue( 0 ); \r
+       GauProgress->SetMinSize( wxSize( -1,20 ) );\r
+       \r
+       bSizer364->Add( GauProgress, 0, wxALL|wxEXPAND, 0 );\r
+       \r
+       \r
+       bSizer364->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       m_panel46->SetSizer( bSizer364 );\r
+       m_panel46->Layout();\r
+       bSizer364->Fit( m_panel46 );\r
+       bSizer363->Add( m_panel46, 1, wxEXPAND | wxALL, 5 );\r
+       \r
+       \r
+       m_panel43->SetSizer( bSizer363 );\r
+       m_panel43->Layout();\r
+       bSizer363->Fit( m_panel43 );\r
+       fgSizer38->Add( m_panel43, 1, wxALL|wxEXPAND, 0 );\r
+       \r
+       m_panel44 = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxBoxSizer* bSizer365;\r
+       bSizer365 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       lstActivity = new wxListCtrl( m_panel44, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );\r
+       bSizer365->Add( lstActivity, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       \r
+       m_panel44->SetSizer( bSizer365 );\r
+       m_panel44->Layout();\r
+       bSizer365->Fit( m_panel44 );\r
+       fgSizer38->Add( m_panel44, 5, wxALL|wxEXPAND, 0 );\r
+       \r
+       \r
+       this->SetSizer( fgSizer38 );\r
+       this->Layout();\r
+       \r
+       this->Centre( wxBOTH );\r
+       \r
+       // Connect Events\r
+       this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( frmActivityMgrADT::CloseWindow ) );\r
+       this->Connect( mnuStopActivity->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmActivityMgrADT::StopTask ) );\r
+       this->Connect( mnuActivityStopAll->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmActivityMgrADT::StopAllTasks ) );\r
+       this->Connect( mnuRetryActivity->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmActivityMgrADT::RetryTask ) );\r
+       this->Connect( mnuSleepMode->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmActivityMgrADT::SleepMode ) );\r
+       this->Connect( mnuWindowClose->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmActivityMgrADT::CloseWindow ) );\r
+}\r
+\r
+frmActivityMgrADT::~frmActivityMgrADT()\r
+{\r
+       // Disconnect Events\r
+       this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( frmActivityMgrADT::CloseWindow ) );\r
+       this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmActivityMgrADT::StopTask ) );\r
+       this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmActivityMgrADT::StopAllTasks ) );\r
+       this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmActivityMgrADT::RetryTask ) );\r
+       this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmActivityMgrADT::SleepMode ) );\r
+       this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmActivityMgrADT::CloseWindow ) );\r
+       \r
+}\r
+\r
+frmContactEditorNicknameADT::frmContactEditorNicknameADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )\r
+{\r
+       this->SetSizeHints( wxDefaultSize, wxDefaultSize );\r
+       \r
+       wxBoxSizer* bSizer251;\r
+       bSizer251 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       nbkAddress = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );\r
+       tabGeneral = new wxPanel( nbkAddress, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxFlexGridSizer* fgSizer6;\r
+       fgSizer6 = new wxFlexGridSizer( 0, 2, 0, 0 );\r
+       fgSizer6->AddGrowableCol( 1 );\r
+       fgSizer6->SetFlexibleDirection( wxVERTICAL );\r
+       fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );\r
+       \r
+       lblNickname = new wxStaticText( tabGeneral, wxID_ANY, wxT("Nickname:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblNickname->Wrap( -1 );\r
+       fgSizer6->Add( lblNickname, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       txtNickname = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );\r
+       txtNickname->SetMaxLength( 0 ); \r
+       fgSizer6->Add( txtNickname, 0, wxALL|wxEXPAND, 5 );\r
+       \r
+       lblPriority = new wxStaticText( tabGeneral, wxID_ANY, wxT("Priority:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblPriority->Wrap( -1 );\r
+       fgSizer6->Add( lblPriority, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer260;\r
+       bSizer260 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       chkUsePref = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Use"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer260->Add( chkUsePref, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer254;\r
+       bSizer254 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer256;\r
+       bSizer256 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       sliPriority = new wxSlider( tabGeneral, wxID_ANY, 0, 1, 100, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL|wxSL_LABELS );\r
+       bSizer256->Add( sliPriority, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer254->Add( bSizer256, 1, wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer255;\r
+       bSizer255 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lblHigh = new wxStaticText( tabGeneral, wxID_ANY, wxT("High"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblHigh->Wrap( -1 );\r
+       bSizer255->Add( lblHigh, 0, wxALIGN_LEFT|wxALL, 5 );\r
+       \r
+       \r
+       bSizer255->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       lblLow = new wxStaticText( tabGeneral, wxID_ANY, wxT("Low"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblLow->Wrap( -1 );\r
+       bSizer255->Add( lblLow, 0, wxALIGN_RIGHT|wxALL, 5 );\r
+       \r
+       \r
+       bSizer254->Add( bSizer255, 1, wxEXPAND, 0 );\r
+       \r
+       \r
+       bSizer260->Add( bSizer254, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer6->Add( bSizer260, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer6->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       tabGeneral->SetSizer( fgSizer6 );\r
+       tabGeneral->Layout();\r
+       fgSizer6->Fit( tabGeneral );\r
+       nbkAddress->AddPage( tabGeneral, wxT("General"), true );\r
+       tabOther = new wxPanel( nbkAddress, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxFlexGridSizer* fgSizer61;\r
+       fgSizer61 = new wxFlexGridSizer( 0, 2, 0, 0 );\r
+       fgSizer61->AddGrowableCol( 1 );\r
+       fgSizer61->SetFlexibleDirection( wxBOTH );\r
+       fgSizer61->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );\r
+       \r
+       lblLanguage = new wxStaticText( tabOther, wxID_ANY, wxT("Language:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblLanguage->Wrap( -1 );\r
+       fgSizer61->Add( lblLanguage, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       cmbLanguage = new wxComboBox( tabOther, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 ); \r
+       fgSizer61->Add( cmbLanguage, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       \r
+       tabOther->SetSizer( fgSizer61 );\r
+       tabOther->Layout();\r
+       fgSizer61->Fit( tabOther );\r
+       nbkAddress->AddPage( tabOther, wxT("Other"), false );\r
+       \r
+       bSizer251->Add( nbkAddress, 1, wxEXPAND | wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer252;\r
+       bSizer252 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       btnAction = new wxButton( this, wxID_ANY, wxT("Action"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer252->Add( btnAction, 0, wxALL, 5 );\r
+       \r
+       btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer252->Add( btnClose, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer251->Add( bSizer252, 0, wxALIGN_RIGHT, 5 );\r
+       \r
+       \r
+       this->SetSizer( bSizer251 );\r
+       this->Layout();\r
+       \r
+       this->Centre( wxBOTH );\r
+       \r
+       // Connect Events\r
+       this->Connect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( frmContactEditorNicknameADT::InitAddressEditor ) );\r
+       chkUsePref->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorNicknameADT::EnablePriority ), NULL, this );\r
+       btnAction->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorNicknameADT::ProcessData ), NULL, this );\r
+       btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorNicknameADT::CloseWindow ), NULL, this );\r
+}\r
+\r
+frmContactEditorNicknameADT::~frmContactEditorNicknameADT()\r
+{\r
+       // Disconnect Events\r
+       this->Disconnect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( frmContactEditorNicknameADT::InitAddressEditor ) );\r
+       chkUsePref->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorNicknameADT::EnablePriority ), NULL, this );\r
+       btnAction->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorNicknameADT::ProcessData ), NULL, this );\r
+       btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorNicknameADT::CloseWindow ), NULL, this );\r
+       \r
+}\r
+\r
+frmContactEditorGroupsADT::frmContactEditorGroupsADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )\r
+{\r
+       this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );\r
+       \r
+       wxBoxSizer* bSizer251;\r
+       bSizer251 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       nbkGroup = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );\r
+       tabGeneral = new wxPanel( nbkGroup, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxFlexGridSizer* fgSizer6;\r
+       fgSizer6 = new wxFlexGridSizer( 0, 2, 0, 0 );\r
+       fgSizer6->AddGrowableCol( 1 );\r
+       fgSizer6->AddGrowableRow( 0 );\r
+       fgSizer6->SetFlexibleDirection( wxVERTICAL );\r
+       fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );\r
+       \r
+       lblContacts = new wxStaticText( tabGeneral, wxID_ANY, wxT("Contacts:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblContacts->Wrap( -1 );\r
+       fgSizer6->Add( lblContacts, 0, wxALIGN_TOP|wxALL, 5 );\r
+       \r
+       wxArrayString chkContactsChoices;\r
+       chkContacts = new wxCheckListBox( tabGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, chkContactsChoices, wxLB_ALWAYS_SB|wxLB_MULTIPLE );\r
+       fgSizer6->Add( chkContacts, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer6->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       tabGeneral->SetSizer( fgSizer6 );\r
+       tabGeneral->Layout();\r
+       fgSizer6->Fit( tabGeneral );\r
+       nbkGroup->AddPage( tabGeneral, wxT("General"), false );\r
+       \r
+       bSizer251->Add( nbkGroup, 1, wxEXPAND | wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer252;\r
+       bSizer252 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       btnAction = new wxButton( this, wxID_ANY, wxT("Action"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer252->Add( btnAction, 0, wxALL, 5 );\r
+       \r
+       btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer252->Add( btnClose, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer251->Add( bSizer252, 0, wxALIGN_RIGHT, 5 );\r
+       \r
+       \r
+       this->SetSizer( bSizer251 );\r
+       this->Layout();\r
+       \r
+       this->Centre( wxBOTH );\r
+       \r
+       // Connect Events\r
+       this->Connect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( frmContactEditorGroupsADT::FetchContacts ) );\r
+       btnAction->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorGroupsADT::ProcessData ), NULL, this );\r
+       btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorGroupsADT::CloseWindow ), NULL, this );\r
+}\r
+\r
+frmContactEditorGroupsADT::~frmContactEditorGroupsADT()\r
+{\r
+       // Disconnect Events\r
+       this->Disconnect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( frmContactEditorGroupsADT::FetchContacts ) );\r
+       btnAction->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorGroupsADT::ProcessData ), NULL, this );\r
+       btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorGroupsADT::CloseWindow ), NULL, this );\r
+       \r
+}\r
+\r
+frmContactEditorRolesADT::frmContactEditorRolesADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )\r
+{\r
+       this->SetSizeHints( wxDefaultSize, wxDefaultSize );\r
+       \r
+       wxBoxSizer* bSizer251;\r
+       bSizer251 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       nbkRole = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );\r
+       tabGeneral = new wxPanel( nbkRole, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxFlexGridSizer* fgSizer6;\r
+       fgSizer6 = new wxFlexGridSizer( 0, 2, 0, 0 );\r
+       fgSizer6->AddGrowableCol( 1 );\r
+       fgSizer6->SetFlexibleDirection( wxVERTICAL );\r
+       fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );\r
+       \r
+       lblRole = new wxStaticText( tabGeneral, wxID_ANY, wxT("Role Name:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblRole->Wrap( -1 );\r
+       fgSizer6->Add( lblRole, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       txtRole = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );\r
+       txtRole->SetMaxLength( 0 ); \r
+       fgSizer6->Add( txtRole, 0, wxALL|wxEXPAND, 5 );\r
+       \r
+       lblPriority = new wxStaticText( tabGeneral, wxID_ANY, wxT("Priority:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblPriority->Wrap( -1 );\r
+       fgSizer6->Add( lblPriority, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer260;\r
+       bSizer260 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       chkUsePref = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Use"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer260->Add( chkUsePref, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer254;\r
+       bSizer254 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer256;\r
+       bSizer256 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       sliPriority = new wxSlider( tabGeneral, wxID_ANY, 0, 1, 100, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL|wxSL_LABELS );\r
+       bSizer256->Add( sliPriority, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer254->Add( bSizer256, 1, wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer255;\r
+       bSizer255 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lblHigh = new wxStaticText( tabGeneral, wxID_ANY, wxT("High"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblHigh->Wrap( -1 );\r
+       bSizer255->Add( lblHigh, 0, wxALIGN_LEFT|wxALL, 5 );\r
+       \r
+       \r
+       bSizer255->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       lblLow = new wxStaticText( tabGeneral, wxID_ANY, wxT("Low"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblLow->Wrap( -1 );\r
+       bSizer255->Add( lblLow, 0, wxALIGN_RIGHT|wxALL, 5 );\r
+       \r
+       \r
+       bSizer254->Add( bSizer255, 1, wxEXPAND, 0 );\r
+       \r
+       \r
+       bSizer260->Add( bSizer254, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer6->Add( bSizer260, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer6->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       tabGeneral->SetSizer( fgSizer6 );\r
+       tabGeneral->Layout();\r
+       fgSizer6->Fit( tabGeneral );\r
+       nbkRole->AddPage( tabGeneral, wxT("General"), false );\r
+       \r
+       bSizer251->Add( nbkRole, 1, wxEXPAND | wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer252;\r
+       bSizer252 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       btnAction = new wxButton( this, wxID_ANY, wxT("Action"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer252->Add( btnAction, 0, wxALL, 5 );\r
+       \r
+       btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer252->Add( btnClose, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer251->Add( bSizer252, 0, wxALIGN_RIGHT, 5 );\r
+       \r
+       \r
+       this->SetSizer( bSizer251 );\r
+       this->Layout();\r
+       \r
+       this->Centre( wxBOTH );\r
+       \r
+       // Connect Events\r
+       chkUsePref->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorRolesADT::EnablePriority ), NULL, this );\r
+       btnAction->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorRolesADT::ProcessAction ), NULL, this );\r
+       btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorRolesADT::CloseWindow ), NULL, this );\r
+}\r
+\r
+frmContactEditorRolesADT::~frmContactEditorRolesADT()\r
+{\r
+       // Disconnect Events\r
+       chkUsePref->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorRolesADT::EnablePriority ), NULL, this );\r
+       btnAction->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorRolesADT::ProcessAction ), NULL, this );\r
+       btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorRolesADT::CloseWindow ), NULL, this );\r
+       \r
+}\r
+\r
+frmContactEditorOrganisationsADT::frmContactEditorOrganisationsADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )\r
+{\r
+       this->SetSizeHints( wxDefaultSize, wxDefaultSize );\r
+       \r
+       wxBoxSizer* bSizer251;\r
+       bSizer251 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       nbkOrganisation = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );\r
+       tabGeneral = new wxPanel( nbkOrganisation, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxFlexGridSizer* fgSizer6;\r
+       fgSizer6 = new wxFlexGridSizer( 0, 2, 0, 0 );\r
+       fgSizer6->AddGrowableCol( 1 );\r
+       fgSizer6->SetFlexibleDirection( wxBOTH );\r
+       fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );\r
+       \r
+       lblOrganisation = new wxStaticText( tabGeneral, wxID_ANY, wxT("Organisation:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblOrganisation->Wrap( -1 );\r
+       fgSizer6->Add( lblOrganisation, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       txtOrganisation = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );\r
+       txtOrganisation->SetMaxLength( 0 ); \r
+       fgSizer6->Add( txtOrganisation, 0, wxALL|wxEXPAND, 5 );\r
+       \r
+       lblSortAs = new wxStaticText( tabGeneral, wxID_ANY, wxT("Sort As:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblSortAs->Wrap( -1 );\r
+       fgSizer6->Add( lblSortAs, 0, wxALL, 5 );\r
+       \r
+       cmbSortAs = new wxComboBox( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 ); \r
+       fgSizer6->Add( cmbSortAs, 1, wxALL, 5 );\r
+       \r
+       lblPriority = new wxStaticText( tabGeneral, wxID_ANY, wxT("Priority:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblPriority->Wrap( -1 );\r
+       fgSizer6->Add( lblPriority, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer260;\r
+       bSizer260 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       chkUsePref = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Use"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer260->Add( chkUsePref, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer254;\r
+       bSizer254 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer256;\r
+       bSizer256 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       sliPriority = new wxSlider( tabGeneral, wxID_ANY, 0, 1, 100, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL|wxSL_LABELS );\r
+       bSizer256->Add( sliPriority, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer254->Add( bSizer256, 1, wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer255;\r
+       bSizer255 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lblHigh = new wxStaticText( tabGeneral, wxID_ANY, wxT("High"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblHigh->Wrap( -1 );\r
+       bSizer255->Add( lblHigh, 0, wxALIGN_LEFT|wxALL, 5 );\r
+       \r
+       \r
+       bSizer255->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       lblLow = new wxStaticText( tabGeneral, wxID_ANY, wxT("Low"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblLow->Wrap( -1 );\r
+       bSizer255->Add( lblLow, 0, wxALIGN_RIGHT|wxALL, 5 );\r
+       \r
+       \r
+       bSizer254->Add( bSizer255, 1, wxEXPAND, 0 );\r
+       \r
+       \r
+       bSizer260->Add( bSizer254, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer6->Add( bSizer260, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer6->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       tabGeneral->SetSizer( fgSizer6 );\r
+       tabGeneral->Layout();\r
+       fgSizer6->Fit( tabGeneral );\r
+       nbkOrganisation->AddPage( tabGeneral, wxT("General"), false );\r
+       \r
+       bSizer251->Add( nbkOrganisation, 1, wxEXPAND | wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer252;\r
+       bSizer252 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       btnAction = new wxButton( this, wxID_ANY, wxT("Action"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer252->Add( btnAction, 0, wxALL, 5 );\r
+       \r
+       btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer252->Add( btnClose, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer251->Add( bSizer252, 0, wxALIGN_RIGHT, 5 );\r
+       \r
+       \r
+       this->SetSizer( bSizer251 );\r
+       this->Layout();\r
+       \r
+       this->Centre( wxBOTH );\r
+       \r
+       // Connect Events\r
+       txtOrganisation->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( frmContactEditorOrganisationsADT::UpdateSortAs ), NULL, this );\r
+       chkUsePref->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorOrganisationsADT::EnablePriority ), NULL, this );\r
+       btnAction->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorOrganisationsADT::ProcessAction ), NULL, this );\r
+       btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorOrganisationsADT::CloseWindow ), NULL, this );\r
+}\r
+\r
+frmContactEditorOrganisationsADT::~frmContactEditorOrganisationsADT()\r
+{\r
+       // Disconnect Events\r
+       txtOrganisation->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( frmContactEditorOrganisationsADT::UpdateSortAs ), NULL, this );\r
+       chkUsePref->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorOrganisationsADT::EnablePriority ), NULL, this );\r
+       btnAction->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorOrganisationsADT::ProcessAction ), NULL, this );\r
+       btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorOrganisationsADT::CloseWindow ), NULL, this );\r
+       \r
+}\r
+\r
+frmContactEditorNotesADT::frmContactEditorNotesADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )\r
+{\r
+       this->SetSizeHints( wxDefaultSize, wxDefaultSize );\r
+       \r
+       wxBoxSizer* bSizer251;\r
+       bSizer251 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       nbkNotes = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );\r
+       tabGeneral = new wxPanel( nbkNotes, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxBoxSizer* bSizer353;\r
+       bSizer353 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       txtNote = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE );\r
+       txtNote->SetMaxLength( 0 ); \r
+       bSizer353->Add( txtNote, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       \r
+       tabGeneral->SetSizer( bSizer353 );\r
+       tabGeneral->Layout();\r
+       bSizer353->Fit( tabGeneral );\r
+       nbkNotes->AddPage( tabGeneral, wxT("General"), true );\r
+       tabPriority = new wxPanel( nbkNotes, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxFlexGridSizer* fgSizer61;\r
+       fgSizer61 = new wxFlexGridSizer( 0, 2, 0, 0 );\r
+       fgSizer61->AddGrowableCol( 1 );\r
+       fgSizer61->SetFlexibleDirection( wxVERTICAL );\r
+       fgSizer61->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );\r
+       \r
+       lblPriority = new wxStaticText( tabPriority, wxID_ANY, wxT("Priority:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblPriority->Wrap( -1 );\r
+       fgSizer61->Add( lblPriority, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer2601;\r
+       bSizer2601 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       chkUsePref = new wxCheckBox( tabPriority, wxID_ANY, wxT("Use"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer2601->Add( chkUsePref, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer2541;\r
+       bSizer2541 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer2561;\r
+       bSizer2561 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       sliPriority = new wxSlider( tabPriority, wxID_ANY, 0, 1, 100, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL|wxSL_LABELS );\r
+       bSizer2561->Add( sliPriority, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer2541->Add( bSizer2561, 1, wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer2551;\r
+       bSizer2551 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lblHigh = new wxStaticText( tabPriority, wxID_ANY, wxT("High"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblHigh->Wrap( -1 );\r
+       bSizer2551->Add( lblHigh, 0, wxALIGN_LEFT|wxALL, 5 );\r
+       \r
+       \r
+       bSizer2551->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       lblLow = new wxStaticText( tabPriority, wxID_ANY, wxT("Low"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblLow->Wrap( -1 );\r
+       bSizer2551->Add( lblLow, 0, wxALIGN_RIGHT|wxALL, 5 );\r
+       \r
+       \r
+       bSizer2541->Add( bSizer2551, 1, wxEXPAND, 0 );\r
+       \r
+       \r
+       bSizer2601->Add( bSizer2541, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer61->Add( bSizer2601, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer61->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       tabPriority->SetSizer( fgSizer61 );\r
+       tabPriority->Layout();\r
+       fgSizer61->Fit( tabPriority );\r
+       nbkNotes->AddPage( tabPriority, wxT("Priority"), false );\r
+       tabLanguage = new wxPanel( nbkNotes, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxFlexGridSizer* fgSizer611;\r
+       fgSizer611 = new wxFlexGridSizer( 0, 2, 0, 0 );\r
+       fgSizer611->AddGrowableCol( 0 );\r
+       fgSizer611->SetFlexibleDirection( wxBOTH );\r
+       fgSizer611->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );\r
+       \r
+       lblLanguage = new wxStaticText( tabLanguage, wxID_ANY, wxT("Language:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblLanguage->Wrap( -1 );\r
+       fgSizer611->Add( lblLanguage, 1, wxALL, 5 );\r
+       \r
+       cmbLanguage = new wxComboBox( tabLanguage, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 ); \r
+       fgSizer611->Add( cmbLanguage, 1, wxALL, 5 );\r
+       \r
+       \r
+       tabLanguage->SetSizer( fgSizer611 );\r
+       tabLanguage->Layout();\r
+       fgSizer611->Fit( tabLanguage );\r
+       nbkNotes->AddPage( tabLanguage, wxT("Language"), false );\r
+       \r
+       bSizer251->Add( nbkNotes, 1, wxEXPAND | wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer252;\r
+       bSizer252 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       btnAction = new wxButton( this, wxID_ANY, wxT("Action"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer252->Add( btnAction, 0, wxALL, 5 );\r
+       \r
+       btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer252->Add( btnClose, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer251->Add( bSizer252, 0, wxALIGN_RIGHT, 5 );\r
+       \r
+       \r
+       this->SetSizer( bSizer251 );\r
+       this->Layout();\r
+       \r
+       this->Centre( wxBOTH );\r
+       \r
+       // Connect Events\r
+       chkUsePref->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorNotesADT::EnablePriority ), NULL, this );\r
+       btnAction->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorNotesADT::ProcessAction ), NULL, this );\r
+       btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorNotesADT::CloseWindow ), NULL, this );\r
+}\r
+\r
+frmContactEditorNotesADT::~frmContactEditorNotesADT()\r
+{\r
+       // Disconnect Events\r
+       chkUsePref->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorNotesADT::EnablePriority ), NULL, this );\r
+       btnAction->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorNotesADT::ProcessAction ), NULL, this );\r
+       btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorNotesADT::CloseWindow ), NULL, this );\r
+       \r
+}\r
+\r
+frmContactEditorTitlesADT::frmContactEditorTitlesADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )\r
+{\r
+       this->SetSizeHints( wxDefaultSize, wxDefaultSize );\r
+       \r
+       wxBoxSizer* bSizer251;\r
+       bSizer251 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       nbkTitles = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );\r
+       tabGeneral = new wxPanel( nbkTitles, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxFlexGridSizer* fgSizer6;\r
+       fgSizer6 = new wxFlexGridSizer( 0, 2, 0, 0 );\r
+       fgSizer6->AddGrowableCol( 1 );\r
+       fgSizer6->SetFlexibleDirection( wxVERTICAL );\r
+       fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );\r
+       \r
+       lblTitle = new wxStaticText( tabGeneral, wxID_ANY, wxT("Title:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblTitle->Wrap( -1 );\r
+       fgSizer6->Add( lblTitle, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       txtTitle = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );\r
+       txtTitle->SetMaxLength( 0 ); \r
+       fgSizer6->Add( txtTitle, 0, wxALL|wxEXPAND, 5 );\r
+       \r
+       lblPriority = new wxStaticText( tabGeneral, wxID_ANY, wxT("Priority:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblPriority->Wrap( -1 );\r
+       fgSizer6->Add( lblPriority, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer260;\r
+       bSizer260 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       chkUsePref = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Use"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer260->Add( chkUsePref, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer254;\r
+       bSizer254 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer256;\r
+       bSizer256 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       sliPriority = new wxSlider( tabGeneral, wxID_ANY, 0, 1, 100, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL|wxSL_LABELS );\r
+       bSizer256->Add( sliPriority, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer254->Add( bSizer256, 1, wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer255;\r
+       bSizer255 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lblHigh = new wxStaticText( tabGeneral, wxID_ANY, wxT("High"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblHigh->Wrap( -1 );\r
+       bSizer255->Add( lblHigh, 0, wxALIGN_LEFT|wxALL, 5 );\r
+       \r
+       \r
+       bSizer255->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       lblLow = new wxStaticText( tabGeneral, wxID_ANY, wxT("Low"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblLow->Wrap( -1 );\r
+       bSizer255->Add( lblLow, 0, wxALIGN_RIGHT|wxALL, 5 );\r
+       \r
+       \r
+       bSizer254->Add( bSizer255, 1, wxEXPAND, 0 );\r
+       \r
+       \r
+       bSizer260->Add( bSizer254, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer6->Add( bSizer260, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer6->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       tabGeneral->SetSizer( fgSizer6 );\r
+       tabGeneral->Layout();\r
+       fgSizer6->Fit( tabGeneral );\r
+       nbkTitles->AddPage( tabGeneral, wxT("General"), false );\r
+       \r
+       bSizer251->Add( nbkTitles, 1, wxEXPAND | wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer252;\r
+       bSizer252 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       btnAction = new wxButton( this, wxID_ANY, wxT("Action"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer252->Add( btnAction, 0, wxALL, 5 );\r
+       \r
+       btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer252->Add( btnClose, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer251->Add( bSizer252, 0, wxALIGN_RIGHT, 5 );\r
+       \r
+       \r
+       this->SetSizer( bSizer251 );\r
+       this->Layout();\r
+       \r
+       this->Centre( wxBOTH );\r
+       \r
+       // Connect Events\r
+       chkUsePref->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorTitlesADT::EnablePriority ), NULL, this );\r
+       btnAction->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorTitlesADT::ProcessAction ), NULL, this );\r
+       btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorTitlesADT::CloseWindow ), NULL, this );\r
+}\r
+\r
+frmContactEditorTitlesADT::~frmContactEditorTitlesADT()\r
+{\r
+       // Disconnect Events\r
+       chkUsePref->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorTitlesADT::EnablePriority ), NULL, this );\r
+       btnAction->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorTitlesADT::ProcessAction ), NULL, this );\r
+       btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorTitlesADT::CloseWindow ), NULL, this );\r
+       \r
+}\r
+\r
+frmContactEditorRelatedADT::frmContactEditorRelatedADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )\r
+{\r
+       this->SetSizeHints( wxDefaultSize, wxDefaultSize );\r
+       \r
+       wxBoxSizer* bSizer251;\r
+       bSizer251 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       nbkRelated = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );\r
+       tabGeneral = new wxPanel( nbkRelated, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxFlexGridSizer* fgSizer6;\r
+       fgSizer6 = new wxFlexGridSizer( 0, 2, 0, 0 );\r
+       fgSizer6->AddGrowableCol( 0 );\r
+       fgSizer6->SetFlexibleDirection( wxBOTH );\r
+       fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );\r
+       \r
+       lblRelation = new wxStaticText( tabGeneral, wxID_ANY, wxT("Relation Name:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblRelation->Wrap( -1 );\r
+       fgSizer6->Add( lblRelation, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       txtRelated = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );\r
+       txtRelated->SetMaxLength( 0 ); \r
+       fgSizer6->Add( txtRelated, 0, wxALL|wxEXPAND, 5 );\r
+       \r
+       lblType = new wxStaticText( tabGeneral, wxID_ANY, wxT("Type:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblType->Wrap( -1 );\r
+       fgSizer6->Add( lblType, 0, wxALL, 5 );\r
+       \r
+       cmbType = new wxComboBox( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 ); \r
+       fgSizer6->Add( cmbType, 0, wxALL, 5 );\r
+       \r
+       lblPriority = new wxStaticText( tabGeneral, wxID_ANY, wxT("Priority:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblPriority->Wrap( -1 );\r
+       fgSizer6->Add( lblPriority, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer260;\r
+       bSizer260 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       chkUsePref = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Use"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer260->Add( chkUsePref, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer254;\r
+       bSizer254 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer256;\r
+       bSizer256 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       sliPriority = new wxSlider( tabGeneral, wxID_ANY, 0, 1, 100, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL|wxSL_LABELS );\r
+       bSizer256->Add( sliPriority, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer254->Add( bSizer256, 1, wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer255;\r
+       bSizer255 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lblHigh = new wxStaticText( tabGeneral, wxID_ANY, wxT("High"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblHigh->Wrap( -1 );\r
+       bSizer255->Add( lblHigh, 0, wxALIGN_LEFT|wxALL, 5 );\r
+       \r
+       \r
+       bSizer255->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       lblLow = new wxStaticText( tabGeneral, wxID_ANY, wxT("Low"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblLow->Wrap( -1 );\r
+       bSizer255->Add( lblLow, 0, wxALIGN_RIGHT|wxALL, 5 );\r
+       \r
+       \r
+       bSizer254->Add( bSizer255, 1, wxEXPAND, 0 );\r
+       \r
+       \r
+       bSizer260->Add( bSizer254, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer6->Add( bSizer260, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer6->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       tabGeneral->SetSizer( fgSizer6 );\r
+       tabGeneral->Layout();\r
+       fgSizer6->Fit( tabGeneral );\r
+       nbkRelated->AddPage( tabGeneral, wxT("General"), false );\r
+       \r
+       bSizer251->Add( nbkRelated, 1, wxEXPAND | wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer252;\r
+       bSizer252 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       btnAction = new wxButton( this, wxID_ANY, wxT("Action"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer252->Add( btnAction, 0, wxALL, 5 );\r
+       \r
+       btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer252->Add( btnClose, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer251->Add( bSizer252, 0, wxALIGN_RIGHT, 5 );\r
+       \r
+       \r
+       this->SetSizer( bSizer251 );\r
+       this->Layout();\r
+       \r
+       this->Centre( wxBOTH );\r
+       \r
+       // Connect Events\r
+       chkUsePref->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorRelatedADT::EnablePriority ), NULL, this );\r
+       btnAction->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorRelatedADT::ProcessData ), NULL, this );\r
+       btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorRelatedADT::CloseWindow ), NULL, this );\r
+}\r
+\r
+frmContactEditorRelatedADT::~frmContactEditorRelatedADT()\r
+{\r
+       // Disconnect Events\r
+       chkUsePref->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorRelatedADT::EnablePriority ), NULL, this );\r
+       btnAction->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorRelatedADT::ProcessData ), NULL, this );\r
+       btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorRelatedADT::CloseWindow ), NULL, this );\r
+       \r
+}\r
+\r
+frmContactEditorSoundADT::frmContactEditorSoundADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )\r
+{\r
+       this->SetSizeHints( wxDefaultSize, wxDefaultSize );\r
+       \r
+       wxBoxSizer* bSizer251;\r
+       bSizer251 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       nbkRelated = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );\r
+       tabGeneral = new wxPanel( nbkRelated, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxFlexGridSizer* fgSizer6;\r
+       fgSizer6 = new wxFlexGridSizer( 0, 2, 0, 0 );\r
+       fgSizer6->AddGrowableCol( 1 );\r
+       fgSizer6->SetFlexibleDirection( wxBOTH );\r
+       fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );\r
+       \r
+       lblSoundFile = new wxStaticText( tabGeneral, wxID_ANY, wxT("Sound File:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblSoundFile->Wrap( -1 );\r
+       fgSizer6->Add( lblSoundFile, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       fipSound = new wxFilePickerCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxT("Select a sound file"), wxT("*.*"), wxDefaultPosition, wxDefaultSize, wxFLP_DEFAULT_STYLE );\r
+       fgSizer6->Add( fipSound, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       lblType = new wxStaticText( tabGeneral, wxID_ANY, wxT("Type:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblType->Wrap( -1 );\r
+       fgSizer6->Add( lblType, 0, wxALL, 5 );\r
+       \r
+       wxArrayString cmbTypeChoices;\r
+       cmbType = new wxChoice( tabGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, cmbTypeChoices, 0 );\r
+       cmbType->SetSelection( 0 );\r
+       fgSizer6->Add( cmbType, 0, wxALL, 5 );\r
+       \r
+       lblPriority = new wxStaticText( tabGeneral, wxID_ANY, wxT("Priority:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblPriority->Wrap( -1 );\r
+       fgSizer6->Add( lblPriority, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer260;\r
+       bSizer260 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       chkUsePref = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Use"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer260->Add( chkUsePref, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer254;\r
+       bSizer254 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer256;\r
+       bSizer256 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       sliPriority = new wxSlider( tabGeneral, wxID_ANY, 0, 1, 100, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL|wxSL_LABELS );\r
+       bSizer256->Add( sliPriority, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer254->Add( bSizer256, 1, wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer255;\r
+       bSizer255 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lblHigh = new wxStaticText( tabGeneral, wxID_ANY, wxT("High"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblHigh->Wrap( -1 );\r
+       bSizer255->Add( lblHigh, 0, wxALIGN_LEFT|wxALL, 5 );\r
+       \r
+       \r
+       bSizer255->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       lblLow = new wxStaticText( tabGeneral, wxID_ANY, wxT("Low"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblLow->Wrap( -1 );\r
+       bSizer255->Add( lblLow, 0, wxALIGN_RIGHT|wxALL, 5 );\r
+       \r
+       \r
+       bSizer254->Add( bSizer255, 1, wxEXPAND, 0 );\r
+       \r
+       \r
+       bSizer260->Add( bSizer254, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer6->Add( bSizer260, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer6->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       tabGeneral->SetSizer( fgSizer6 );\r
+       tabGeneral->Layout();\r
+       fgSizer6->Fit( tabGeneral );\r
+       nbkRelated->AddPage( tabGeneral, wxT("General"), false );\r
+       \r
+       bSizer251->Add( nbkRelated, 1, wxEXPAND | wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer252;\r
+       bSizer252 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       btnAction = new wxButton( this, wxID_ANY, wxT("Action"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer252->Add( btnAction, 0, wxALL, 5 );\r
+       \r
+       btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer252->Add( btnClose, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer251->Add( bSizer252, 0, wxALIGN_RIGHT, 5 );\r
+       \r
+       \r
+       this->SetSizer( bSizer251 );\r
+       this->Layout();\r
+       \r
+       this->Centre( wxBOTH );\r
+       \r
+       // Connect Events\r
+       chkUsePref->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorSoundADT::EnablePriority ), NULL, this );\r
+       btnAction->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorSoundADT::ProcessData ), NULL, this );\r
+       btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorSoundADT::CloseWindow ), NULL, this );\r
+}\r
+\r
+frmContactEditorSoundADT::~frmContactEditorSoundADT()\r
+{\r
+       // Disconnect Events\r
+       chkUsePref->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorSoundADT::EnablePriority ), NULL, this );\r
+       btnAction->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorSoundADT::ProcessData ), NULL, this );\r
+       btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorSoundADT::CloseWindow ), NULL, this );\r
+       \r
+}\r
+\r
+frmContactEditorPictureADT::frmContactEditorPictureADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )\r
+{\r
+       this->SetSizeHints( wxDefaultSize, wxDefaultSize );\r
+       \r
+       wxBoxSizer* bSizer251;\r
+       bSizer251 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       nbkRelated = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );\r
+       tabGeneral = new wxPanel( nbkRelated, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxFlexGridSizer* fgSizer6;\r
+       fgSizer6 = new wxFlexGridSizer( 0, 2, 0, 0 );\r
+       fgSizer6->AddGrowableCol( 1 );\r
+       fgSizer6->SetFlexibleDirection( wxBOTH );\r
+       fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );\r
+       \r
+       lblPictureFile = new wxStaticText( tabGeneral, wxID_ANY, wxT("Picture File:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblPictureFile->Wrap( -1 );\r
+       fgSizer6->Add( lblPictureFile, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       fipPicture = new wxFilePickerCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxT("Select a sound file"), wxT("*.*"), wxDefaultPosition, wxDefaultSize, wxFLP_DEFAULT_STYLE );\r
+       fgSizer6->Add( fipPicture, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       lblType = new wxStaticText( tabGeneral, wxID_ANY, wxT("Type:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblType->Wrap( -1 );\r
+       fgSizer6->Add( lblType, 0, wxALL, 5 );\r
+       \r
+       wxArrayString cmbTypeChoices;\r
+       cmbType = new wxChoice( tabGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, cmbTypeChoices, 0 );\r
+       cmbType->SetSelection( 0 );\r
+       fgSizer6->Add( cmbType, 0, wxALL, 5 );\r
+       \r
+       lblPriority = new wxStaticText( tabGeneral, wxID_ANY, wxT("Priority:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblPriority->Wrap( -1 );\r
+       fgSizer6->Add( lblPriority, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer260;\r
+       bSizer260 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       chkUsePref = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Use"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer260->Add( chkUsePref, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer254;\r
+       bSizer254 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer256;\r
+       bSizer256 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       sliPriority = new wxSlider( tabGeneral, wxID_ANY, 0, 1, 100, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL|wxSL_LABELS );\r
+       bSizer256->Add( sliPriority, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer254->Add( bSizer256, 1, wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer255;\r
+       bSizer255 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lblHigh = new wxStaticText( tabGeneral, wxID_ANY, wxT("High"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblHigh->Wrap( -1 );\r
+       bSizer255->Add( lblHigh, 0, wxALIGN_LEFT|wxALL, 5 );\r
+       \r
+       \r
+       bSizer255->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       lblLow = new wxStaticText( tabGeneral, wxID_ANY, wxT("Low"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblLow->Wrap( -1 );\r
+       bSizer255->Add( lblLow, 0, wxALIGN_RIGHT|wxALL, 5 );\r
+       \r
+       \r
+       bSizer254->Add( bSizer255, 1, wxEXPAND, 0 );\r
+       \r
+       \r
+       bSizer260->Add( bSizer254, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer6->Add( bSizer260, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer6->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       tabGeneral->SetSizer( fgSizer6 );\r
+       tabGeneral->Layout();\r
+       fgSizer6->Fit( tabGeneral );\r
+       nbkRelated->AddPage( tabGeneral, wxT("General"), false );\r
+       \r
+       bSizer251->Add( nbkRelated, 1, wxEXPAND | wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer252;\r
+       bSizer252 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       btnAction = new wxButton( this, wxID_ANY, wxT("Action"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer252->Add( btnAction, 0, wxALL, 5 );\r
+       \r
+       btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer252->Add( btnClose, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer251->Add( bSizer252, 0, wxALIGN_RIGHT, 5 );\r
+       \r
+       \r
+       this->SetSizer( bSizer251 );\r
+       this->Layout();\r
+       \r
+       this->Centre( wxBOTH );\r
+       \r
+       // Connect Events\r
+       chkUsePref->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorPictureADT::EnablePriority ), NULL, this );\r
+       btnAction->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorPictureADT::ProcessData ), NULL, this );\r
+       btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorPictureADT::CloseWindow ), NULL, this );\r
+}\r
+\r
+frmContactEditorPictureADT::~frmContactEditorPictureADT()\r
+{\r
+       // Disconnect Events\r
+       chkUsePref->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorPictureADT::EnablePriority ), NULL, this );\r
+       btnAction->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorPictureADT::ProcessData ), NULL, this );\r
+       btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorPictureADT::CloseWindow ), NULL, this );\r
+       \r
+}\r
+\r
+frmContactEditorWebsitesADT::frmContactEditorWebsitesADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )\r
+{\r
+       this->SetSizeHints( wxDefaultSize, wxDefaultSize );\r
+       \r
+       wxBoxSizer* bSizer251;\r
+       bSizer251 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       nbkWebsite = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );\r
+       tabGeneral = new wxPanel( nbkWebsite, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxFlexGridSizer* fgSizer6;\r
+       fgSizer6 = new wxFlexGridSizer( 0, 2, 0, 0 );\r
+       fgSizer6->AddGrowableCol( 1 );\r
+       fgSizer6->SetFlexibleDirection( wxVERTICAL );\r
+       fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );\r
+       \r
+       lblWebsite = new wxStaticText( tabGeneral, wxID_ANY, wxT("Website:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblWebsite->Wrap( -1 );\r
+       fgSizer6->Add( lblWebsite, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       txtWebsite = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );\r
+       txtWebsite->SetMaxLength( 0 ); \r
+       fgSizer6->Add( txtWebsite, 0, wxALL|wxEXPAND, 5 );\r
+       \r
+       lblPriority = new wxStaticText( tabGeneral, wxID_ANY, wxT("Priority:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblPriority->Wrap( -1 );\r
+       fgSizer6->Add( lblPriority, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer260;\r
+       bSizer260 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       chkUsePref = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Use"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer260->Add( chkUsePref, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer254;\r
+       bSizer254 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer256;\r
+       bSizer256 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       sliPriority = new wxSlider( tabGeneral, wxID_ANY, 0, 1, 100, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL|wxSL_LABELS );\r
+       bSizer256->Add( sliPriority, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer254->Add( bSizer256, 1, wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer255;\r
+       bSizer255 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lblHigh = new wxStaticText( tabGeneral, wxID_ANY, wxT("High"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblHigh->Wrap( -1 );\r
+       bSizer255->Add( lblHigh, 0, wxALIGN_LEFT|wxALL, 5 );\r
+       \r
+       \r
+       bSizer255->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       lblLow = new wxStaticText( tabGeneral, wxID_ANY, wxT("Low"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblLow->Wrap( -1 );\r
+       bSizer255->Add( lblLow, 0, wxALIGN_RIGHT|wxALL, 5 );\r
+       \r
+       \r
+       bSizer254->Add( bSizer255, 1, wxEXPAND, 0 );\r
+       \r
+       \r
+       bSizer260->Add( bSizer254, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer6->Add( bSizer260, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer6->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       tabGeneral->SetSizer( fgSizer6 );\r
+       tabGeneral->Layout();\r
+       fgSizer6->Fit( tabGeneral );\r
+       nbkWebsite->AddPage( tabGeneral, wxT("General"), false );\r
+       \r
+       bSizer251->Add( nbkWebsite, 1, wxEXPAND | wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer252;\r
+       bSizer252 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       btnAction = new wxButton( this, wxID_ANY, wxT("Action"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer252->Add( btnAction, 0, wxALL, 5 );\r
+       \r
+       btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer252->Add( btnClose, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer251->Add( bSizer252, 0, wxALIGN_RIGHT, 5 );\r
+       \r
+       \r
+       this->SetSizer( bSizer251 );\r
+       this->Layout();\r
+       \r
+       this->Centre( wxBOTH );\r
+       \r
+       // Connect Events\r
+       chkUsePref->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorWebsitesADT::EnablePriority ), NULL, this );\r
+       btnAction->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorWebsitesADT::ProcessAction ), NULL, this );\r
+       btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorWebsitesADT::CloseWindow ), NULL, this );\r
+}\r
+\r
+frmContactEditorWebsitesADT::~frmContactEditorWebsitesADT()\r
+{\r
+       // Disconnect Events\r
+       chkUsePref->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorWebsitesADT::EnablePriority ), NULL, this );\r
+       btnAction->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorWebsitesADT::ProcessAction ), NULL, this );\r
+       btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorWebsitesADT::CloseWindow ), NULL, this );\r
+       \r
+}\r
+\r
+frmContactEditorGeopositionADT::frmContactEditorGeopositionADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )\r
+{\r
+       this->SetSizeHints( wxDefaultSize, wxDefaultSize );\r
+       \r
+       wxBoxSizer* bSizer251;\r
+       bSizer251 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       nbkWebsite = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );\r
+       tabGeneral = new wxPanel( nbkWebsite, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxFlexGridSizer* fgSizer6;\r
+       fgSizer6 = new wxFlexGridSizer( 0, 2, 0, 0 );\r
+       fgSizer6->AddGrowableCol( 1 );\r
+       fgSizer6->SetFlexibleDirection( wxVERTICAL );\r
+       fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );\r
+       \r
+       lblGeoposition = new wxStaticText( tabGeneral, wxID_ANY, wxT("Geoposition:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblGeoposition->Wrap( -1 );\r
+       fgSizer6->Add( lblGeoposition, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       txtGeoposition = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );\r
+       txtGeoposition->SetMaxLength( 0 ); \r
+       fgSizer6->Add( txtGeoposition, 0, wxALL|wxEXPAND, 5 );\r
+       \r
+       lblPriority = new wxStaticText( tabGeneral, wxID_ANY, wxT("Priority:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblPriority->Wrap( -1 );\r
+       fgSizer6->Add( lblPriority, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer260;\r
+       bSizer260 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       chkUsePref = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Use"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer260->Add( chkUsePref, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer254;\r
+       bSizer254 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer256;\r
+       bSizer256 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       sliPriority = new wxSlider( tabGeneral, wxID_ANY, 0, 1, 100, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL|wxSL_LABELS );\r
+       bSizer256->Add( sliPriority, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer254->Add( bSizer256, 1, wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer255;\r
+       bSizer255 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lblHigh = new wxStaticText( tabGeneral, wxID_ANY, wxT("High"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblHigh->Wrap( -1 );\r
+       bSizer255->Add( lblHigh, 0, wxALIGN_LEFT|wxALL, 5 );\r
+       \r
+       \r
+       bSizer255->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       lblLow = new wxStaticText( tabGeneral, wxID_ANY, wxT("Low"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblLow->Wrap( -1 );\r
+       bSizer255->Add( lblLow, 0, wxALIGN_RIGHT|wxALL, 5 );\r
+       \r
+       \r
+       bSizer254->Add( bSizer255, 1, wxEXPAND, 0 );\r
+       \r
+       \r
+       bSizer260->Add( bSizer254, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer6->Add( bSizer260, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer6->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       tabGeneral->SetSizer( fgSizer6 );\r
+       tabGeneral->Layout();\r
+       fgSizer6->Fit( tabGeneral );\r
+       nbkWebsite->AddPage( tabGeneral, wxT("General"), false );\r
+       \r
+       bSizer251->Add( nbkWebsite, 1, wxEXPAND | wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer252;\r
+       bSizer252 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       btnAction = new wxButton( this, wxID_ANY, wxT("Action"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer252->Add( btnAction, 0, wxALL, 5 );\r
+       \r
+       btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer252->Add( btnClose, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer251->Add( bSizer252, 0, wxALIGN_RIGHT, 5 );\r
+       \r
+       \r
+       this->SetSizer( bSizer251 );\r
+       this->Layout();\r
+       \r
+       this->Centre( wxBOTH );\r
+       \r
+       // Connect Events\r
+       chkUsePref->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorGeopositionADT::EnablePriority ), NULL, this );\r
+       btnAction->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorGeopositionADT::ProcessAction ), NULL, this );\r
+       btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorGeopositionADT::CloseWindow ), NULL, this );\r
+}\r
+\r
+frmContactEditorGeopositionADT::~frmContactEditorGeopositionADT()\r
+{\r
+       // Disconnect Events\r
+       chkUsePref->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorGeopositionADT::EnablePriority ), NULL, this );\r
+       btnAction->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorGeopositionADT::ProcessAction ), NULL, this );\r
+       btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorGeopositionADT::CloseWindow ), NULL, this );\r
+       \r
+}\r
+\r
+frmContactEditorCalAdrADT::frmContactEditorCalAdrADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )\r
+{\r
+       this->SetSizeHints( wxDefaultSize, wxDefaultSize );\r
+       \r
+       wxBoxSizer* bSizer251;\r
+       bSizer251 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       nbkWebsite = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );\r
+       tabGeneral = new wxPanel( nbkWebsite, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxFlexGridSizer* fgSizer6;\r
+       fgSizer6 = new wxFlexGridSizer( 0, 2, 0, 0 );\r
+       fgSizer6->AddGrowableCol( 1 );\r
+       fgSizer6->SetFlexibleDirection( wxVERTICAL );\r
+       fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );\r
+       \r
+       lblAddress = new wxStaticText( tabGeneral, wxID_ANY, wxT("Address:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblAddress->Wrap( -1 );\r
+       fgSizer6->Add( lblAddress, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       txtAddress = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );\r
+       txtAddress->SetMaxLength( 0 ); \r
+       fgSizer6->Add( txtAddress, 0, wxALL|wxEXPAND, 5 );\r
+       \r
+       lblType = new wxStaticText( tabGeneral, wxID_ANY, wxT("Type:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblType->Wrap( -1 );\r
+       fgSizer6->Add( lblType, 0, wxALL, 5 );\r
+       \r
+       wxArrayString cmbTypeChoices;\r
+       cmbType = new wxChoice( tabGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, cmbTypeChoices, 0 );\r
+       cmbType->SetSelection( 0 );\r
+       fgSizer6->Add( cmbType, 0, wxALL, 5 );\r
+       \r
+       lblPriority = new wxStaticText( tabGeneral, wxID_ANY, wxT("Priority:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblPriority->Wrap( -1 );\r
+       fgSizer6->Add( lblPriority, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer260;\r
+       bSizer260 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       chkUsePref = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Use"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer260->Add( chkUsePref, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer254;\r
+       bSizer254 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer256;\r
+       bSizer256 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       sliPriority = new wxSlider( tabGeneral, wxID_ANY, 0, 1, 100, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL|wxSL_LABELS );\r
+       bSizer256->Add( sliPriority, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer254->Add( bSizer256, 1, wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer255;\r
+       bSizer255 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lblHigh = new wxStaticText( tabGeneral, wxID_ANY, wxT("High"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblHigh->Wrap( -1 );\r
+       bSizer255->Add( lblHigh, 0, wxALIGN_LEFT|wxALL, 5 );\r
+       \r
+       \r
+       bSizer255->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       lblLow = new wxStaticText( tabGeneral, wxID_ANY, wxT("Low"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblLow->Wrap( -1 );\r
+       bSizer255->Add( lblLow, 0, wxALIGN_RIGHT|wxALL, 5 );\r
+       \r
+       \r
+       bSizer254->Add( bSizer255, 1, wxEXPAND, 0 );\r
+       \r
+       \r
+       bSizer260->Add( bSizer254, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer6->Add( bSizer260, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer6->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       tabGeneral->SetSizer( fgSizer6 );\r
+       tabGeneral->Layout();\r
+       fgSizer6->Fit( tabGeneral );\r
+       nbkWebsite->AddPage( tabGeneral, wxT("General"), false );\r
+       \r
+       bSizer251->Add( nbkWebsite, 1, wxEXPAND | wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer252;\r
+       bSizer252 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       btnAction = new wxButton( this, wxID_ANY, wxT("Action"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer252->Add( btnAction, 0, wxALL, 5 );\r
+       \r
+       btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer252->Add( btnClose, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer251->Add( bSizer252, 0, wxALIGN_RIGHT, 5 );\r
+       \r
+       \r
+       this->SetSizer( bSizer251 );\r
+       this->Layout();\r
+       \r
+       this->Centre( wxBOTH );\r
+       \r
+       // Connect Events\r
+       chkUsePref->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorCalAdrADT::EnablePriority ), NULL, this );\r
+       btnAction->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorCalAdrADT::ProcessAction ), NULL, this );\r
+       btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorCalAdrADT::CloseWindow ), NULL, this );\r
+}\r
+\r
+frmContactEditorCalAdrADT::~frmContactEditorCalAdrADT()\r
+{\r
+       // Disconnect Events\r
+       chkUsePref->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorCalAdrADT::EnablePriority ), NULL, this );\r
+       btnAction->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorCalAdrADT::ProcessAction ), NULL, this );\r
+       btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorCalAdrADT::CloseWindow ), NULL, this );\r
+       \r
+}\r
+\r
+frmContactEditorVendorADT::frmContactEditorVendorADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )\r
+{\r
+       this->SetSizeHints( wxDefaultSize, wxDefaultSize );\r
+       \r
+       wxBoxSizer* bSizer251;\r
+       bSizer251 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       nbkWebsite = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );\r
+       tabGeneral = new wxPanel( nbkWebsite, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxFlexGridSizer* fgSizer6;\r
+       fgSizer6 = new wxFlexGridSizer( 0, 2, 0, 0 );\r
+       fgSizer6->AddGrowableCol( 1 );\r
+       fgSizer6->SetFlexibleDirection( wxVERTICAL );\r
+       fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );\r
+       \r
+       lblVendorPEN = new wxStaticText( tabGeneral, wxID_ANY, wxT("Vendor PEN:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblVendorPEN->Wrap( -1 );\r
+       fgSizer6->Add( lblVendorPEN, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       txtPEN = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );\r
+       txtPEN->SetMaxLength( 0 ); \r
+       fgSizer6->Add( txtPEN, 0, wxALL, 5 );\r
+       \r
+       lblElement = new wxStaticText( tabGeneral, wxID_ANY, wxT("Element:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblElement->Wrap( -1 );\r
+       fgSizer6->Add( lblElement, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       txtElement = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );\r
+       txtElement->SetMaxLength( 0 ); \r
+       fgSizer6->Add( txtElement, 0, wxALL|wxEXPAND, 5 );\r
+       \r
+       lblValue = new wxStaticText( tabGeneral, wxID_ANY, wxT("Value:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblValue->Wrap( -1 );\r
+       fgSizer6->Add( lblValue, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       txtValue = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );\r
+       txtValue->SetMaxLength( 0 ); \r
+       fgSizer6->Add( txtValue, 0, wxALL|wxEXPAND, 5 );\r
+       \r
+       \r
+       tabGeneral->SetSizer( fgSizer6 );\r
+       tabGeneral->Layout();\r
+       fgSizer6->Fit( tabGeneral );\r
+       nbkWebsite->AddPage( tabGeneral, wxT("General"), false );\r
+       \r
+       bSizer251->Add( nbkWebsite, 1, wxEXPAND | wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer252;\r
+       bSizer252 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       btnAction = new wxButton( this, wxID_ANY, wxT("Action"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer252->Add( btnAction, 0, wxALL, 5 );\r
+       \r
+       btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer252->Add( btnClose, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer251->Add( bSizer252, 0, wxALIGN_RIGHT, 5 );\r
+       \r
+       \r
+       this->SetSizer( bSizer251 );\r
+       this->Layout();\r
+       \r
+       this->Centre( wxBOTH );\r
+       \r
+       // Connect Events\r
+       btnAction->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorVendorADT::ProcessAction ), NULL, this );\r
+       btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorVendorADT::CloseWindow ), NULL, this );\r
+}\r
+\r
+frmContactEditorVendorADT::~frmContactEditorVendorADT()\r
+{\r
+       // Disconnect Events\r
+       btnAction->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorVendorADT::ProcessAction ), NULL, this );\r
+       btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorVendorADT::CloseWindow ), NULL, this );\r
+       \r
+}\r
+\r
+frmContactEditorXTokenADT::frmContactEditorXTokenADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )\r
+{\r
+       this->SetSizeHints( wxDefaultSize, wxDefaultSize );\r
+       \r
+       wxBoxSizer* bSizer251;\r
+       bSizer251 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       nbkWebsite = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );\r
+       tabGeneral = new wxPanel( nbkWebsite, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxFlexGridSizer* fgSizer6;\r
+       fgSizer6 = new wxFlexGridSizer( 0, 2, 0, 0 );\r
+       fgSizer6->AddGrowableCol( 1 );\r
+       fgSizer6->SetFlexibleDirection( wxVERTICAL );\r
+       fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );\r
+       \r
+       lblTokenName = new wxStaticText( tabGeneral, wxID_ANY, wxT("Token Name:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblTokenName->Wrap( -1 );\r
+       fgSizer6->Add( lblTokenName, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       txtTokenName = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );\r
+       txtTokenName->SetMaxLength( 0 ); \r
+       fgSizer6->Add( txtTokenName, 0, wxALL, 5 );\r
+       \r
+       lblXT = new wxStaticText( tabGeneral, wxID_ANY, wxT("Value:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblXT->Wrap( -1 );\r
+       fgSizer6->Add( lblXT, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       txtValue = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );\r
+       txtValue->SetMaxLength( 0 ); \r
+       fgSizer6->Add( txtValue, 0, wxALL|wxEXPAND, 5 );\r
+       \r
+       \r
+       tabGeneral->SetSizer( fgSizer6 );\r
+       tabGeneral->Layout();\r
+       fgSizer6->Fit( tabGeneral );\r
+       nbkWebsite->AddPage( tabGeneral, wxT("General"), false );\r
+       \r
+       bSizer251->Add( nbkWebsite, 1, wxEXPAND | wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer252;\r
+       bSizer252 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       btnAction = new wxButton( this, wxID_ANY, wxT("Action"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer252->Add( btnAction, 0, wxALL, 5 );\r
+       \r
+       btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer252->Add( btnClose, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer251->Add( bSizer252, 0, wxALIGN_RIGHT, 5 );\r
+       \r
+       \r
+       this->SetSizer( bSizer251 );\r
+       this->Layout();\r
+       \r
+       this->Centre( wxBOTH );\r
+       \r
+       // Connect Events\r
+       btnAction->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorXTokenADT::ProcessAction ), NULL, this );\r
+       btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorXTokenADT::CloseWindow ), NULL, this );\r
+}\r
+\r
+frmContactEditorXTokenADT::~frmContactEditorXTokenADT()\r
+{\r
+       // Disconnect Events\r
+       btnAction->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorXTokenADT::ProcessAction ), NULL, this );\r
+       btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorXTokenADT::CloseWindow ), NULL, this );\r
+       \r
+}\r
+\r
+frmContactEditorKeyADT::frmContactEditorKeyADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )\r
+{\r
+       this->SetSizeHints( wxDefaultSize, wxDefaultSize );\r
+       \r
+       wxBoxSizer* bSizer251;\r
+       bSizer251 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       nbkWebsite = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );\r
+       tabGeneral = new wxPanel( nbkWebsite, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxFlexGridSizer* fgSizer6;\r
+       fgSizer6 = new wxFlexGridSizer( 0, 2, 0, 0 );\r
+       fgSizer6->AddGrowableCol( 1 );\r
+       fgSizer6->SetFlexibleDirection( wxVERTICAL );\r
+       fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );\r
+       \r
+       lblKeyType = new wxStaticText( tabGeneral, wxID_ANY, wxT("Key Type:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblKeyType->Wrap( -1 );\r
+       fgSizer6->Add( lblKeyType, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       wxArrayString cmbKeyMainTypeChoices;\r
+       cmbKeyMainType = new wxChoice( tabGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, cmbKeyMainTypeChoices, 0 );\r
+       cmbKeyMainType->SetSelection( 0 );\r
+       fgSizer6->Add( cmbKeyMainType, 0, wxALL, 5 );\r
+       \r
+       lblType = new wxStaticText( tabGeneral, wxID_ANY, wxT("Type:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblType->Wrap( -1 );\r
+       fgSizer6->Add( lblType, 0, wxALL, 5 );\r
+       \r
+       wxArrayString cmbTypeChoices;\r
+       cmbType = new wxChoice( tabGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, cmbTypeChoices, 0 );\r
+       cmbType->SetSelection( 0 );\r
+       fgSizer6->Add( cmbType, 0, wxALL, 5 );\r
+       \r
+       lblPriority = new wxStaticText( tabGeneral, wxID_ANY, wxT("Priority:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblPriority->Wrap( -1 );\r
+       fgSizer6->Add( lblPriority, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer260;\r
+       bSizer260 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       chkUsePref = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Use"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer260->Add( chkUsePref, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer254;\r
+       bSizer254 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer256;\r
+       bSizer256 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       sliPriority = new wxSlider( tabGeneral, wxID_ANY, 0, 1, 100, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL|wxSL_LABELS );\r
+       bSizer256->Add( sliPriority, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer254->Add( bSizer256, 1, wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer255;\r
+       bSizer255 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lblHigh = new wxStaticText( tabGeneral, wxID_ANY, wxT("High"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblHigh->Wrap( -1 );\r
+       bSizer255->Add( lblHigh, 0, wxALIGN_LEFT|wxALL, 5 );\r
+       \r
+       \r
+       bSizer255->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       lblLow = new wxStaticText( tabGeneral, wxID_ANY, wxT("Low"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblLow->Wrap( -1 );\r
+       bSizer255->Add( lblLow, 0, wxALIGN_RIGHT|wxALL, 5 );\r
+       \r
+       \r
+       bSizer254->Add( bSizer255, 1, wxEXPAND, 0 );\r
+       \r
+       \r
+       bSizer260->Add( bSizer254, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer6->Add( bSizer260, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer6->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       tabGeneral->SetSizer( fgSizer6 );\r
+       tabGeneral->Layout();\r
+       fgSizer6->Fit( tabGeneral );\r
+       nbkWebsite->AddPage( tabGeneral, wxT("General"), true );\r
+       tabURL = new wxPanel( nbkWebsite, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxFlexGridSizer* fgSizer61;\r
+       fgSizer61 = new wxFlexGridSizer( 0, 2, 0, 0 );\r
+       fgSizer61->AddGrowableCol( 1 );\r
+       fgSizer61->SetFlexibleDirection( wxHORIZONTAL );\r
+       fgSizer61->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );\r
+       \r
+       lblKeyFormat = new wxStaticText( tabURL, wxID_ANY, wxT("Key Format:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblKeyFormat->Wrap( -1 );\r
+       fgSizer61->Add( lblKeyFormat, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       cmbURL = new wxComboBox( tabURL, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 ); \r
+       fgSizer61->Add( cmbURL, 0, wxALL, 5 );\r
+       \r
+       lblAddress = new wxStaticText( tabURL, wxID_ANY, wxT("Address:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblAddress->Wrap( -1 );\r
+       fgSizer61->Add( lblAddress, 0, wxALL, 5 );\r
+       \r
+       txtAddress = new wxTextCtrl( tabURL, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );\r
+       txtAddress->SetMaxLength( 0 ); \r
+       fgSizer61->Add( txtAddress, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer61->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       tabURL->SetSizer( fgSizer61 );\r
+       tabURL->Layout();\r
+       fgSizer61->Fit( tabURL );\r
+       nbkWebsite->AddPage( tabURL, wxT("URL"), false );\r
+       tabKey = new wxPanel( nbkWebsite, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxFlexGridSizer* fgSizer62;\r
+       fgSizer62 = new wxFlexGridSizer( 0, 2, 0, 0 );\r
+       fgSizer62->AddGrowableCol( 1 );\r
+       fgSizer62->AddGrowableRow( 1 );\r
+       fgSizer62->SetFlexibleDirection( wxBOTH );\r
+       fgSizer62->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );\r
+       \r
+       lblKeyFormatData = new wxStaticText( tabKey, wxID_ANY, wxT("Key Format:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblKeyFormatData->Wrap( -1 );\r
+       fgSizer62->Add( lblKeyFormatData, 0, wxALIGN_CENTER|wxALL, 5 );\r
+       \r
+       cmbKeyType = new wxComboBox( tabKey, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 ); \r
+       fgSizer62->Add( cmbKeyType, 0, wxALL, 5 );\r
+       \r
+       lblKeyData = new wxStaticText( tabKey, wxID_ANY, wxT("Key Data:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblKeyData->Wrap( -1 );\r
+       fgSizer62->Add( lblKeyData, 0, wxALL, 5 );\r
+       \r
+       txtKeyData = new wxTextCtrl( tabKey, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE );\r
+       txtKeyData->SetMaxLength( 0 ); \r
+       fgSizer62->Add( txtKeyData, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       \r
+       tabKey->SetSizer( fgSizer62 );\r
+       tabKey->Layout();\r
+       fgSizer62->Fit( tabKey );\r
+       nbkWebsite->AddPage( tabKey, wxT("Key"), false );\r
+       \r
+       bSizer251->Add( nbkWebsite, 1, wxEXPAND | wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer252;\r
+       bSizer252 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       btnAction = new wxButton( this, wxID_ANY, wxT("Action"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer252->Add( btnAction, 0, wxALL, 5 );\r
+       \r
+       btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer252->Add( btnClose, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer251->Add( bSizer252, 0, wxALIGN_RIGHT, 5 );\r
+       \r
+       \r
+       this->SetSizer( bSizer251 );\r
+       this->Layout();\r
+       \r
+       this->Centre( wxBOTH );\r
+       \r
+       // Connect Events\r
+       cmbKeyMainType->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( frmContactEditorKeyADT::ProcessKeyType ), NULL, this );\r
+       chkUsePref->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorKeyADT::EnablePriority ), NULL, this );\r
+       cmbURL->Connect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( frmContactEditorKeyADT::ConvertURLType ), NULL, this );\r
+       cmbKeyType->Connect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( frmContactEditorKeyADT::ConvertKeyType ), NULL, this );\r
+       btnAction->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorKeyADT::ProcessAction ), NULL, this );\r
+       btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorKeyADT::CloseWindow ), NULL, this );\r
+}\r
+\r
+frmContactEditorKeyADT::~frmContactEditorKeyADT()\r
+{\r
+       // Disconnect Events\r
+       cmbKeyMainType->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( frmContactEditorKeyADT::ProcessKeyType ), NULL, this );\r
+       chkUsePref->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorKeyADT::EnablePriority ), NULL, this );\r
+       cmbURL->Disconnect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( frmContactEditorKeyADT::ConvertURLType ), NULL, this );\r
+       cmbKeyType->Disconnect( wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEventHandler( frmContactEditorKeyADT::ConvertKeyType ), NULL, this );\r
+       btnAction->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorKeyADT::ProcessAction ), NULL, this );\r
+       btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorKeyADT::CloseWindow ), NULL, this );\r
+       \r
+}\r
+\r
+frmContactEditorEmailADT::frmContactEditorEmailADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )\r
+{\r
+       this->SetSizeHints( wxDefaultSize, wxDefaultSize );\r
+       \r
+       wxBoxSizer* bSizer251;\r
+       bSizer251 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       nbkEmail = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );\r
+       tabGeneral = new wxPanel( nbkEmail, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxFlexGridSizer* fgSizer6;\r
+       fgSizer6 = new wxFlexGridSizer( 0, 2, 0, 0 );\r
+       fgSizer6->AddGrowableCol( 1 );\r
+       fgSizer6->SetFlexibleDirection( wxVERTICAL );\r
+       fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );\r
+       \r
+       lblEmailAddress = new wxStaticText( tabGeneral, wxID_ANY, wxT("E-mail Address:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblEmailAddress->Wrap( -1 );\r
+       fgSizer6->Add( lblEmailAddress, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       txtEmail = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );\r
+       txtEmail->SetMaxLength( 0 ); \r
+       fgSizer6->Add( txtEmail, 0, wxALL|wxEXPAND, 5 );\r
+       \r
+       lblPriority = new wxStaticText( tabGeneral, wxID_ANY, wxT("Priority:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblPriority->Wrap( -1 );\r
+       fgSizer6->Add( lblPriority, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer260;\r
+       bSizer260 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       chkUsePref = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Use"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer260->Add( chkUsePref, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer254;\r
+       bSizer254 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer256;\r
+       bSizer256 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       sliPriority = new wxSlider( tabGeneral, wxID_ANY, 0, 1, 100, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL|wxSL_LABELS );\r
+       bSizer256->Add( sliPriority, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer254->Add( bSizer256, 1, wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer255;\r
+       bSizer255 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lblHigh = new wxStaticText( tabGeneral, wxID_ANY, wxT("High"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblHigh->Wrap( -1 );\r
+       bSizer255->Add( lblHigh, 0, wxALIGN_LEFT|wxALL, 5 );\r
+       \r
+       \r
+       bSizer255->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       lblLow = new wxStaticText( tabGeneral, wxID_ANY, wxT("Low"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblLow->Wrap( -1 );\r
+       bSizer255->Add( lblLow, 0, wxALIGN_RIGHT|wxALL, 5 );\r
+       \r
+       \r
+       bSizer254->Add( bSizer255, 1, wxEXPAND, 0 );\r
+       \r
+       \r
+       bSizer260->Add( bSizer254, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer6->Add( bSizer260, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer6->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       tabGeneral->SetSizer( fgSizer6 );\r
+       tabGeneral->Layout();\r
+       fgSizer6->Fit( tabGeneral );\r
+       nbkEmail->AddPage( tabGeneral, wxT("General"), false );\r
+       \r
+       bSizer251->Add( nbkEmail, 1, wxEXPAND | wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer252;\r
+       bSizer252 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       btnAction = new wxButton( this, wxID_ANY, wxT("Action"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer252->Add( btnAction, 0, wxALL, 5 );\r
+       \r
+       btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer252->Add( btnClose, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer251->Add( bSizer252, 0, wxALIGN_RIGHT, 5 );\r
+       \r
+       \r
+       this->SetSizer( bSizer251 );\r
+       this->Layout();\r
+       \r
+       this->Centre( wxBOTH );\r
+       \r
+       // Connect Events\r
+       chkUsePref->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorEmailADT::EnablePriority ), NULL, this );\r
+       btnAction->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorEmailADT::ProcessData ), NULL, this );\r
+       btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorEmailADT::CloseWindow ), NULL, this );\r
+}\r
+\r
+frmContactEditorEmailADT::~frmContactEditorEmailADT()\r
+{\r
+       // Disconnect Events\r
+       chkUsePref->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorEmailADT::EnablePriority ), NULL, this );\r
+       btnAction->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorEmailADT::ProcessData ), NULL, this );\r
+       btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorEmailADT::CloseWindow ), NULL, this );\r
+       \r
+}\r
+\r
+frmContactEditorIMADT::frmContactEditorIMADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )\r
+{\r
+       this->SetSizeHints( wxDefaultSize, wxDefaultSize );\r
+       \r
+       wxBoxSizer* bSizer251;\r
+       bSizer251 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       nbkIM = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );\r
+       tabGeneral = new wxPanel( nbkIM, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxFlexGridSizer* fgSizer6;\r
+       fgSizer6 = new wxFlexGridSizer( 0, 2, 0, 0 );\r
+       fgSizer6->AddGrowableCol( 1 );\r
+       fgSizer6->SetFlexibleDirection( wxVERTICAL );\r
+       fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );\r
+       \r
+       lblIMType = new wxStaticText( tabGeneral, wxID_ANY, wxT("IM Type:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblIMType->Wrap( -1 );\r
+       fgSizer6->Add( lblIMType, 0, wxALL, 5 );\r
+       \r
+       cmbIMType = new wxComboBox( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, wxCB_DROPDOWN ); \r
+       fgSizer6->Add( cmbIMType, 0, wxALL, 5 );\r
+       \r
+       lblUsername = new wxStaticText( tabGeneral, wxID_ANY, wxT("Username/E-mail address:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblUsername->Wrap( 0 );\r
+       fgSizer6->Add( lblUsername, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       txtUsername = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );\r
+       txtUsername->SetMaxLength( 0 ); \r
+       fgSizer6->Add( txtUsername, 0, wxALL|wxEXPAND, 5 );\r
+       \r
+       lblPriority = new wxStaticText( tabGeneral, wxID_ANY, wxT("Priority:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblPriority->Wrap( -1 );\r
+       fgSizer6->Add( lblPriority, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer260;\r
+       bSizer260 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       chkUsePref = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Use"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer260->Add( chkUsePref, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer254;\r
+       bSizer254 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer256;\r
+       bSizer256 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       sliPriority = new wxSlider( tabGeneral, wxID_ANY, 0, 1, 100, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL|wxSL_LABELS );\r
+       bSizer256->Add( sliPriority, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer254->Add( bSizer256, 1, wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer255;\r
+       bSizer255 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lblHigh = new wxStaticText( tabGeneral, wxID_ANY, wxT("High"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblHigh->Wrap( -1 );\r
+       bSizer255->Add( lblHigh, 0, wxALIGN_LEFT|wxALL, 5 );\r
+       \r
+       \r
+       bSizer255->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       lblLow = new wxStaticText( tabGeneral, wxID_ANY, wxT("Low"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblLow->Wrap( -1 );\r
+       bSizer255->Add( lblLow, 0, wxALIGN_RIGHT|wxALL, 5 );\r
+       \r
+       \r
+       bSizer254->Add( bSizer255, 1, wxEXPAND, 0 );\r
+       \r
+       \r
+       bSizer260->Add( bSizer254, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer6->Add( bSizer260, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer6->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       tabGeneral->SetSizer( fgSizer6 );\r
+       tabGeneral->Layout();\r
+       fgSizer6->Fit( tabGeneral );\r
+       nbkIM->AddPage( tabGeneral, wxT("General"), false );\r
+       \r
+       bSizer251->Add( nbkIM, 1, wxEXPAND | wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer252;\r
+       bSizer252 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       btnAction = new wxButton( this, wxID_ANY, wxT("Action"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer252->Add( btnAction, 0, wxALL, 5 );\r
+       \r
+       btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer252->Add( btnClose, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer251->Add( bSizer252, 0, wxALIGN_RIGHT, 5 );\r
+       \r
+       \r
+       this->SetSizer( bSizer251 );\r
+       this->Layout();\r
+       \r
+       this->Centre( wxBOTH );\r
+       \r
+       // Connect Events\r
+       chkUsePref->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorIMADT::EnablePriority ), NULL, this );\r
+       btnAction->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorIMADT::ProcessAction ), NULL, this );\r
+       btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorIMADT::CloseWindow ), NULL, this );\r
+}\r
+\r
+frmContactEditorIMADT::~frmContactEditorIMADT()\r
+{\r
+       // Disconnect Events\r
+       chkUsePref->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorIMADT::EnablePriority ), NULL, this );\r
+       btnAction->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorIMADT::ProcessAction ), NULL, this );\r
+       btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorIMADT::CloseWindow ), NULL, this );\r
+       \r
+}\r
+\r
+frmContactEditorCategoryADT::frmContactEditorCategoryADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )\r
+{\r
+       this->SetSizeHints( wxDefaultSize, wxDefaultSize );\r
+       \r
+       wxBoxSizer* bSizer251;\r
+       bSizer251 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       nbkIM = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );\r
+       tabGeneral = new wxPanel( nbkIM, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxFlexGridSizer* fgSizer6;\r
+       fgSizer6 = new wxFlexGridSizer( 0, 2, 0, 0 );\r
+       fgSizer6->AddGrowableCol( 1 );\r
+       fgSizer6->SetFlexibleDirection( wxVERTICAL );\r
+       fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );\r
+       \r
+       lblCategory = new wxStaticText( tabGeneral, wxID_ANY, wxT("Category Name:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblCategory->Wrap( 0 );\r
+       fgSizer6->Add( lblCategory, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       txtCategory = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );\r
+       txtCategory->SetMaxLength( 0 ); \r
+       fgSizer6->Add( txtCategory, 0, wxALL|wxEXPAND, 5 );\r
+       \r
+       lblType = new wxStaticText( tabGeneral, wxID_ANY, wxT("Type:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblType->Wrap( -1 );\r
+       fgSizer6->Add( lblType, 0, wxALL, 5 );\r
+       \r
+       wxArrayString cmbTypeChoices;\r
+       cmbType = new wxChoice( tabGeneral, wxID_ANY, wxDefaultPosition, wxDefaultSize, cmbTypeChoices, 0 );\r
+       cmbType->SetSelection( 0 );\r
+       fgSizer6->Add( cmbType, 0, wxALL, 5 );\r
+       \r
+       lblPriority = new wxStaticText( tabGeneral, wxID_ANY, wxT("Priority:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblPriority->Wrap( -1 );\r
+       fgSizer6->Add( lblPriority, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer260;\r
+       bSizer260 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       chkUsePref = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Use"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer260->Add( chkUsePref, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer254;\r
+       bSizer254 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer256;\r
+       bSizer256 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       sliPriority = new wxSlider( tabGeneral, wxID_ANY, 0, 1, 100, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL|wxSL_LABELS );\r
+       bSizer256->Add( sliPriority, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer254->Add( bSizer256, 1, wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer255;\r
+       bSizer255 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lblHigh = new wxStaticText( tabGeneral, wxID_ANY, wxT("High"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblHigh->Wrap( -1 );\r
+       bSizer255->Add( lblHigh, 0, wxALIGN_LEFT|wxALL, 5 );\r
+       \r
+       \r
+       bSizer255->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       lblLow = new wxStaticText( tabGeneral, wxID_ANY, wxT("Low"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblLow->Wrap( -1 );\r
+       bSizer255->Add( lblLow, 0, wxALIGN_RIGHT|wxALL, 5 );\r
+       \r
+       \r
+       bSizer254->Add( bSizer255, 1, wxEXPAND, 0 );\r
+       \r
+       \r
+       bSizer260->Add( bSizer254, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer6->Add( bSizer260, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer6->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       tabGeneral->SetSizer( fgSizer6 );\r
+       tabGeneral->Layout();\r
+       fgSizer6->Fit( tabGeneral );\r
+       nbkIM->AddPage( tabGeneral, wxT("General"), false );\r
+       \r
+       bSizer251->Add( nbkIM, 1, wxEXPAND | wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer252;\r
+       bSizer252 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       btnAction = new wxButton( this, wxID_ANY, wxT("Action"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer252->Add( btnAction, 0, wxALL, 5 );\r
+       \r
+       btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer252->Add( btnClose, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer251->Add( bSizer252, 0, wxALIGN_RIGHT, 5 );\r
+       \r
+       \r
+       this->SetSizer( bSizer251 );\r
+       this->Layout();\r
+       \r
+       this->Centre( wxBOTH );\r
+       \r
+       // Connect Events\r
+       chkUsePref->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorCategoryADT::EnablePriority ), NULL, this );\r
+       btnAction->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorCategoryADT::ProcessAction ), NULL, this );\r
+       btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorCategoryADT::CloseWindow ), NULL, this );\r
+}\r
+\r
+frmContactEditorCategoryADT::~frmContactEditorCategoryADT()\r
+{\r
+       // Disconnect Events\r
+       chkUsePref->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorCategoryADT::EnablePriority ), NULL, this );\r
+       btnAction->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorCategoryADT::ProcessAction ), NULL, this );\r
+       btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorCategoryADT::CloseWindow ), NULL, this );\r
+       \r
+}\r
+\r
+frmContactEditorTelephoneADT::frmContactEditorTelephoneADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )\r
+{\r
+       this->SetSizeHints( wxDefaultSize, wxDefaultSize );\r
+       \r
+       wxBoxSizer* bSizer251;\r
+       bSizer251 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       nbkAddress = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );\r
+       tabGeneral = new wxPanel( nbkAddress, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxFlexGridSizer* fgSizer6;\r
+       fgSizer6 = new wxFlexGridSizer( 0, 2, 0, 0 );\r
+       fgSizer6->AddGrowableCol( 1 );\r
+       fgSizer6->SetFlexibleDirection( wxVERTICAL );\r
+       fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );\r
+       \r
+       lblTelephone = new wxStaticText( tabGeneral, wxID_ANY, wxT("Telephone:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblTelephone->Wrap( -1 );\r
+       fgSizer6->Add( lblTelephone, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       txtTelephone = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );\r
+       txtTelephone->SetMaxLength( 0 ); \r
+       fgSizer6->Add( txtTelephone, 0, wxALL|wxEXPAND, 5 );\r
+       \r
+       lblPriority = new wxStaticText( tabGeneral, wxID_ANY, wxT("Priority:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblPriority->Wrap( -1 );\r
+       fgSizer6->Add( lblPriority, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer260;\r
+       bSizer260 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       chkUsePref = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Use"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer260->Add( chkUsePref, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer254;\r
+       bSizer254 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer256;\r
+       bSizer256 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       sliPriority = new wxSlider( tabGeneral, wxID_ANY, 0, 1, 100, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL|wxSL_LABELS );\r
+       bSizer256->Add( sliPriority, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer254->Add( bSizer256, 1, wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer255;\r
+       bSizer255 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lblHigh = new wxStaticText( tabGeneral, wxID_ANY, wxT("High"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblHigh->Wrap( -1 );\r
+       bSizer255->Add( lblHigh, 0, wxALIGN_LEFT|wxALL, 5 );\r
+       \r
+       \r
+       bSizer255->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       lblLow = new wxStaticText( tabGeneral, wxID_ANY, wxT("Low"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblLow->Wrap( -1 );\r
+       bSizer255->Add( lblLow, 0, wxALIGN_RIGHT|wxALL, 5 );\r
+       \r
+       \r
+       bSizer254->Add( bSizer255, 0, wxEXPAND, 0 );\r
+       \r
+       \r
+       bSizer260->Add( bSizer254, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer6->Add( bSizer260, 1, wxEXPAND, 5 );\r
+       \r
+       lblTelephoneType = new wxStaticText( tabGeneral, wxID_ANY, wxT("Type:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblTelephoneType->Wrap( 0 );\r
+       fgSizer6->Add( lblTelephoneType, 0, wxALIGN_TOP|wxALL, 5 );\r
+       \r
+       wxGridSizer* gSizer5;\r
+       gSizer5 = new wxGridSizer( 2, 2, 0, 0 );\r
+       \r
+       chkVoice = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Voice"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       gSizer5->Add( chkVoice, 0, wxALL, 2 );\r
+       \r
+       chkText = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Text"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       gSizer5->Add( chkText, 0, wxALL, 2 );\r
+       \r
+       chkFax = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Fax"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       gSizer5->Add( chkFax, 0, wxALL, 2 );\r
+       \r
+       chkMobile = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Mobile"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       gSizer5->Add( chkMobile, 0, wxALL, 2 );\r
+       \r
+       chkVideo = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Video"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       gSizer5->Add( chkVideo, 0, wxALL, 2 );\r
+       \r
+       chkTextphone = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Textphone"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       gSizer5->Add( chkTextphone, 0, wxALL, 2 );\r
+       \r
+       chkPager = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Pager"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       gSizer5->Add( chkPager, 0, wxALL, 2 );\r
+       \r
+       \r
+       fgSizer6->Add( gSizer5, 1, 0, 5 );\r
+       \r
+       \r
+       tabGeneral->SetSizer( fgSizer6 );\r
+       tabGeneral->Layout();\r
+       fgSizer6->Fit( tabGeneral );\r
+       nbkAddress->AddPage( tabGeneral, wxT("General"), false );\r
+       \r
+       bSizer251->Add( nbkAddress, 1, wxEXPAND | wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer252;\r
+       bSizer252 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       btnAction = new wxButton( this, wxID_ANY, wxT("Action"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer252->Add( btnAction, 0, wxALL, 5 );\r
+       \r
+       btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer252->Add( btnClose, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer251->Add( bSizer252, 0, wxALIGN_RIGHT, 5 );\r
+       \r
+       \r
+       this->SetSizer( bSizer251 );\r
+       this->Layout();\r
+       \r
+       this->Centre( wxBOTH );\r
+       \r
+       // Connect Events\r
+       chkUsePref->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorTelephoneADT::EnablePriority ), NULL, this );\r
+       btnAction->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorTelephoneADT::ProcessAction ), NULL, this );\r
+       btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorTelephoneADT::CloseWindow ), NULL, this );\r
+}\r
+\r
+frmContactEditorTelephoneADT::~frmContactEditorTelephoneADT()\r
+{\r
+       // Disconnect Events\r
+       chkUsePref->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorTelephoneADT::EnablePriority ), NULL, this );\r
+       btnAction->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorTelephoneADT::ProcessAction ), NULL, this );\r
+       btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorTelephoneADT::CloseWindow ), NULL, this );\r
+       \r
+}\r
+\r
+frmContactEditorLanguagesADT::frmContactEditorLanguagesADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )\r
+{\r
+       this->SetSizeHints( wxDefaultSize, wxDefaultSize );\r
+       \r
+       wxBoxSizer* bSizer251;\r
+       bSizer251 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       nbkLanguages = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );\r
+       tabGeneral = new wxPanel( nbkLanguages, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxFlexGridSizer* fgSizer6;\r
+       fgSizer6 = new wxFlexGridSizer( 0, 2, 0, 0 );\r
+       fgSizer6->AddGrowableCol( 1 );\r
+       fgSizer6->SetFlexibleDirection( wxVERTICAL );\r
+       fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );\r
+       \r
+       lblLanguage = new wxStaticText( tabGeneral, wxID_ANY, wxT("Language:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblLanguage->Wrap( -1 );\r
+       fgSizer6->Add( lblLanguage, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       txtLanguage = new wxTextCtrl( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );\r
+       txtLanguage->SetMaxLength( 0 ); \r
+       fgSizer6->Add( txtLanguage, 0, wxALL|wxEXPAND, 5 );\r
+       \r
+       lblPriority = new wxStaticText( tabGeneral, wxID_ANY, wxT("Priority:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblPriority->Wrap( -1 );\r
+       fgSizer6->Add( lblPriority, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer260;\r
+       bSizer260 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       chkUsePref = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Use"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer260->Add( chkUsePref, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer254;\r
+       bSizer254 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer256;\r
+       bSizer256 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       sliPriority = new wxSlider( tabGeneral, wxID_ANY, 0, 1, 100, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL|wxSL_LABELS );\r
+       bSizer256->Add( sliPriority, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer254->Add( bSizer256, 1, wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer255;\r
+       bSizer255 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lblHigh = new wxStaticText( tabGeneral, wxID_ANY, wxT("High"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblHigh->Wrap( -1 );\r
+       bSizer255->Add( lblHigh, 0, wxALIGN_LEFT|wxALL, 5 );\r
+       \r
+       \r
+       bSizer255->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       lblLow = new wxStaticText( tabGeneral, wxID_ANY, wxT("Low"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblLow->Wrap( -1 );\r
+       bSizer255->Add( lblLow, 0, wxALIGN_RIGHT|wxALL, 5 );\r
+       \r
+       \r
+       bSizer254->Add( bSizer255, 1, wxEXPAND, 0 );\r
+       \r
+       \r
+       bSizer260->Add( bSizer254, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer6->Add( bSizer260, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer6->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       tabGeneral->SetSizer( fgSizer6 );\r
+       tabGeneral->Layout();\r
+       fgSizer6->Fit( tabGeneral );\r
+       nbkLanguages->AddPage( tabGeneral, wxT("General"), false );\r
+       \r
+       bSizer251->Add( nbkLanguages, 1, wxEXPAND | wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer252;\r
+       bSizer252 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       btnAction = new wxButton( this, wxID_ANY, wxT("Action"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer252->Add( btnAction, 0, wxALL, 5 );\r
+       \r
+       btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer252->Add( btnClose, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer251->Add( bSizer252, 0, wxALIGN_RIGHT, 5 );\r
+       \r
+       \r
+       this->SetSizer( bSizer251 );\r
+       this->Layout();\r
+       \r
+       this->Centre( wxBOTH );\r
+       \r
+       // Connect Events\r
+       chkUsePref->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorLanguagesADT::EnablePriority ), NULL, this );\r
+       btnAction->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorLanguagesADT::ProcessAction ), NULL, this );\r
+       btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorLanguagesADT::CloseWindow ), NULL, this );\r
+}\r
+\r
+frmContactEditorLanguagesADT::~frmContactEditorLanguagesADT()\r
+{\r
+       // Disconnect Events\r
+       chkUsePref->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorLanguagesADT::EnablePriority ), NULL, this );\r
+       btnAction->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorLanguagesADT::ProcessAction ), NULL, this );\r
+       btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorLanguagesADT::CloseWindow ), NULL, this );\r
+       \r
+}\r
+\r
+frmContactEditorTimezonesADT::frmContactEditorTimezonesADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )\r
+{\r
+       this->SetSizeHints( wxDefaultSize, wxDefaultSize );\r
+       \r
+       wxBoxSizer* bSizer251;\r
+       bSizer251 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       nbkTimezone = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );\r
+       tabGeneral = new wxPanel( nbkTimezone, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxFlexGridSizer* fgSizer6;\r
+       fgSizer6 = new wxFlexGridSizer( 0, 2, 0, 0 );\r
+       fgSizer6->AddGrowableCol( 1 );\r
+       fgSizer6->SetFlexibleDirection( wxVERTICAL );\r
+       fgSizer6->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );\r
+       \r
+       lblTimezone = new wxStaticText( tabGeneral, wxID_ANY, wxT("Timezone:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblTimezone->Wrap( -1 );\r
+       fgSizer6->Add( lblTimezone, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       cmbTimezone = new wxComboBox( tabGeneral, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 ); \r
+       fgSizer6->Add( cmbTimezone, 0, wxALL, 5 );\r
+       \r
+       lblPriority = new wxStaticText( tabGeneral, wxID_ANY, wxT("Priority:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblPriority->Wrap( -1 );\r
+       fgSizer6->Add( lblPriority, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer260;\r
+       bSizer260 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       chkUsePref = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Use"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer260->Add( chkUsePref, 0, wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer254;\r
+       bSizer254 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* bSizer256;\r
+       bSizer256 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       sliPriority = new wxSlider( tabGeneral, wxID_ANY, 0, 1, 100, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL|wxSL_LABELS );\r
+       bSizer256->Add( sliPriority, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer254->Add( bSizer256, 1, wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer255;\r
+       bSizer255 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lblHigh = new wxStaticText( tabGeneral, wxID_ANY, wxT("High"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblHigh->Wrap( -1 );\r
+       bSizer255->Add( lblHigh, 0, wxALIGN_LEFT|wxALL, 5 );\r
+       \r
+       \r
+       bSizer255->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       lblLow = new wxStaticText( tabGeneral, wxID_ANY, wxT("Low"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblLow->Wrap( -1 );\r
+       bSizer255->Add( lblLow, 0, wxALIGN_RIGHT|wxALL, 5 );\r
+       \r
+       \r
+       bSizer254->Add( bSizer255, 1, wxEXPAND, 0 );\r
+       \r
+       \r
+       bSizer260->Add( bSizer254, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer6->Add( bSizer260, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       fgSizer6->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       tabGeneral->SetSizer( fgSizer6 );\r
+       tabGeneral->Layout();\r
+       fgSizer6->Fit( tabGeneral );\r
+       nbkTimezone->AddPage( tabGeneral, wxT("General"), false );\r
+       \r
+       bSizer251->Add( nbkTimezone, 1, wxEXPAND | wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer252;\r
+       bSizer252 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       btnAction = new wxButton( this, wxID_ANY, wxT("Action"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer252->Add( btnAction, 0, wxALL, 5 );\r
+       \r
+       btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer252->Add( btnClose, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer251->Add( bSizer252, 0, wxALIGN_RIGHT, 5 );\r
+       \r
+       \r
+       this->SetSizer( bSizer251 );\r
+       this->Layout();\r
+       \r
+       this->Centre( wxBOTH );\r
+       \r
+       // Connect Events\r
+       chkUsePref->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorTimezonesADT::EnablePriority ), NULL, this );\r
+       btnAction->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorTimezonesADT::ProcessAction ), NULL, this );\r
+       btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorTimezonesADT::CloseWindow ), NULL, this );\r
+}\r
+\r
+frmContactEditorTimezonesADT::~frmContactEditorTimezonesADT()\r
+{\r
+       // Disconnect Events\r
+       chkUsePref->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( frmContactEditorTimezonesADT::EnablePriority ), NULL, this );\r
+       btnAction->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorTimezonesADT::ProcessAction ), NULL, this );\r
+       btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmContactEditorTimezonesADT::CloseWindow ), NULL, this );\r
+       \r
+}\r
+\r
+XABSearchPanelADT::XABSearchPanelADT( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )\r
+{\r
+       this->SetMinSize( wxSize( -1,40 ) );\r
+       this->SetMaxSize( wxSize( -1,40 ) );\r
+       \r
+       wxFlexGridSizer* fgSizer40;\r
+       fgSizer40 = new wxFlexGridSizer( 0, 3, 0, 0 );\r
+       fgSizer40->AddGrowableCol( 1 );\r
+       fgSizer40->SetFlexibleDirection( wxBOTH );\r
+       fgSizer40->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );\r
+       \r
+       wxArrayString choOptionChoices;\r
+       choOption = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, choOptionChoices, 0 );\r
+       choOption->SetSelection( 0 );\r
+       fgSizer40->Add( choOption, 0, wxALIGN_TOP|wxALL, 5 );\r
+       \r
+       szrSSet = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       chkActive = new wxCheckBox( this, wxID_ANY, wxT("Enable"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       szrSSet->Add( chkActive, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       txtSearch = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );\r
+       txtSearch->SetMaxLength( 0 ); \r
+       szrSSet->Add( txtSearch, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       \r
+       fgSizer40->Add( szrSSet, 1, wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer376;\r
+       bSizer376 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       btnAdd = new wxBitmapButton( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 28,28 ), wxBU_AUTODRAW );\r
+       btnAdd->SetMinSize( wxSize( 28,28 ) );\r
+       btnAdd->SetMaxSize( wxSize( 28,28 ) );\r
+       \r
+       bSizer376->Add( btnAdd, 0, wxALL, 5 );\r
+       \r
+       btnDelete = new wxBitmapButton( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 28,28 ), wxBU_AUTODRAW );\r
+       btnDelete->SetMinSize( wxSize( 28,28 ) );\r
+       btnDelete->SetMaxSize( wxSize( 28,28 ) );\r
+       \r
+       bSizer376->Add( btnDelete, 0, wxALL, 5 );\r
+       \r
+       \r
+       fgSizer40->Add( bSizer376, 0, 0, 5 );\r
+       \r
+       \r
+       this->SetSizer( fgSizer40 );\r
+       this->Layout();\r
+       \r
+       // Connect Events\r
+       choOption->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( XABSearchPanelADT::UpdateOptions ), NULL, this );\r
+       btnAdd->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( XABSearchPanelADT::AddSearchWidget ), NULL, this );\r
+       btnDelete->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( XABSearchPanelADT::RemoveSearchWidget ), NULL, this );\r
+}\r
+\r
+XABSearchPanelADT::~XABSearchPanelADT()\r
+{\r
+       // Disconnect Events\r
+       choOption->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( XABSearchPanelADT::UpdateOptions ), NULL, this );\r
+       btnAdd->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( XABSearchPanelADT::AddSearchWidget ), NULL, this );\r
+       btnDelete->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( XABSearchPanelADT::RemoveSearchWidget ), NULL, this );\r
+       \r
+}\r
+\r
+frmSearchAccountsADT::frmSearchAccountsADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )\r
+{\r
+       this->SetSizeHints( wxDefaultSize, wxDefaultSize );\r
+       \r
+       wxBoxSizer* bSizer376;\r
+       bSizer376 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxArrayString chlAccountsChoices;\r
+       chlAccounts = new wxCheckListBox( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, chlAccountsChoices, wxLB_ALWAYS_SB|wxLB_SORT );\r
+       bSizer376->Add( chlAccounts, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer377;\r
+       bSizer377 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       \r
+       bSizer377->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       btnSelect = new wxButton( this, wxID_ANY, wxT("Select"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer377->Add( btnSelect, 0, wxALL, 5 );\r
+       \r
+       btnCancel = new wxButton( this, wxID_ANY, wxT("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer377->Add( btnCancel, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer377->Add( 0, 0, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       bSizer376->Add( bSizer377, 0, wxEXPAND, 5 );\r
+       \r
+       \r
+       this->SetSizer( bSizer376 );\r
+       this->Layout();\r
+       \r
+       this->Centre( wxBOTH );\r
+       \r
+       // Connect Events\r
+       btnSelect->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmSearchAccountsADT::UpdateSelectedAccounts ), NULL, this );\r
+       btnCancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmSearchAccountsADT::CloseWindow ), NULL, this );\r
+}\r
+\r
+frmSearchAccountsADT::~frmSearchAccountsADT()\r
+{\r
+       // Disconnect Events\r
+       btnSelect->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmSearchAccountsADT::UpdateSelectedAccounts ), NULL, this );\r
+       btnCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmSearchAccountsADT::CloseWindow ), NULL, this );\r
+       \r
+}\r
+\r
+frmEditAccountADT::frmEditAccountADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )\r
+{\r
+       this->SetSizeHints( wxDefaultSize, wxDefaultSize );\r
+       \r
+       wxBoxSizer* bSizer384;\r
+       bSizer384 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       wxBoxSizer* szrTabs;\r
+       szrTabs = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       tabAccount = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );\r
+       tabProperties = new wxPanel( tabAccount, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxFlexGridSizer* fgSizer43;\r
+       fgSizer43 = new wxFlexGridSizer( 0, 2, 0, 0 );\r
+       fgSizer43->AddGrowableCol( 1 );\r
+       fgSizer43->SetFlexibleDirection( wxBOTH );\r
+       fgSizer43->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_NONE );\r
+       \r
+       lblAccName = new wxStaticText( tabProperties, wxID_ANY, wxT("Account Name:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblAccName->Wrap( -1 );\r
+       fgSizer43->Add( lblAccName, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       txtAccountName = new wxTextCtrl( tabProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );\r
+       txtAccountName->SetMaxLength( 0 ); \r
+       fgSizer43->Add( txtAccountName, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       lblAccAdr = new wxStaticText( tabProperties, wxID_ANY, wxT("Address:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblAccAdr->Wrap( -1 );\r
+       fgSizer43->Add( lblAccAdr, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       txtAddress = new wxTextCtrl( tabProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );\r
+       txtAddress->SetMaxLength( 0 ); \r
+       fgSizer43->Add( txtAddress, 0, wxALL|wxEXPAND, 5 );\r
+       \r
+       m_staticText193 = new wxStaticText( tabProperties, wxID_ANY, wxT("Port:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       m_staticText193->Wrap( -1 );\r
+       fgSizer43->Add( m_staticText193, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       txtPort = new wxTextCtrl( tabProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );\r
+       txtPort->SetMaxLength( 5 ); \r
+       fgSizer43->Add( txtPort, 0, wxALL, 5 );\r
+       \r
+       lblPort = new wxStaticText( tabProperties, wxID_ANY, wxT("Username:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblPort->Wrap( -1 );\r
+       fgSizer43->Add( lblPort, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       txtUsername = new wxTextCtrl( tabProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );\r
+       txtUsername->SetMaxLength( 0 ); \r
+       fgSizer43->Add( txtUsername, 0, wxALL|wxEXPAND, 5 );\r
+       \r
+       lblPassword = new wxStaticText( tabProperties, wxID_ANY, wxT("Password:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblPassword->Wrap( -1 );\r
+       fgSizer43->Add( lblPassword, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       txtPassword = new wxTextCtrl( tabProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );\r
+       txtPassword->SetMaxLength( 0 ); \r
+       fgSizer43->Add( txtPassword, 0, wxALL|wxEXPAND, 5 );\r
+       \r
+       lblPrefix = new wxStaticText( tabProperties, wxID_ANY, wxT("Prefix:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblPrefix->Wrap( -1 );\r
+       fgSizer43->Add( lblPrefix, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer391;\r
+       bSizer391 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       txtPrefix = new wxTextCtrl( tabProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );\r
+       txtPrefix->SetMaxLength( 0 ); \r
+       bSizer391->Add( txtPrefix, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       btnDetect = new wxButton( tabProperties, wxID_ANY, wxT("Detect"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT );\r
+       bSizer391->Add( btnDetect, 0, wxALIGN_CENTER_VERTICAL, 0 );\r
+       \r
+       \r
+       fgSizer43->Add( bSizer391, 1, wxEXPAND|wxRIGHT, 5 );\r
+       \r
+       txtSSL = new wxStaticText( tabProperties, wxID_ANY, wxT("SSL:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       txtSSL->Wrap( -1 );\r
+       fgSizer43->Add( txtSSL, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       chkSSL = new wxCheckBox( tabProperties, wxID_ANY, wxT("Use SSL"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       fgSizer43->Add( chkSSL, 0, wxALL, 5 );\r
+       \r
+       \r
+       tabProperties->SetSizer( fgSizer43 );\r
+       tabProperties->Layout();\r
+       fgSizer43->Fit( tabProperties );\r
+       tabAccount->AddPage( tabProperties, wxT("General"), true );\r
+       tabRefresh = new wxPanel( tabAccount, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxFlexGridSizer* fgSizer431;\r
+       fgSizer431 = new wxFlexGridSizer( 0, 2, 0, 0 );\r
+       fgSizer431->AddGrowableCol( 1 );\r
+       fgSizer431->SetFlexibleDirection( wxBOTH );\r
+       fgSizer431->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_NONE );\r
+       \r
+       lblRefresh = new wxStaticText( tabRefresh, wxID_ANY, wxT("Refresh Time:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblRefresh->Wrap( -1 );\r
+       fgSizer431->Add( lblRefresh, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       txtRefresh = new wxTextCtrl( tabRefresh, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );\r
+       txtRefresh->SetMaxLength( 5 ); \r
+       fgSizer431->Add( txtRefresh, 1, wxALL, 5 );\r
+       \r
+       \r
+       tabRefresh->SetSizer( fgSizer431 );\r
+       tabRefresh->Layout();\r
+       fgSizer431->Fit( tabRefresh );\r
+       tabAccount->AddPage( tabRefresh, wxT("Refresh"), false );\r
+       \r
+       szrTabs->Add( tabAccount, 1, wxEXPAND | wxALL, 5 );\r
+       \r
+       \r
+       bSizer384->Add( szrTabs, 1, wxEXPAND, 0 );\r
+       \r
+       wxBoxSizer* szrButtons;\r
+       szrButtons = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       \r
+       szrButtons->Add( 1, 0, 1, wxEXPAND, 0 );\r
+       \r
+       btnSave = new wxButton( this, wxID_ANY, wxT("Save"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       btnSave->SetDefault(); \r
+       szrButtons->Add( btnSave, 0, wxALIGN_RIGHT, 0 );\r
+       \r
+       \r
+       szrButtons->Add( 5, 0, 0, 0, 0 );\r
+       \r
+       btnCancel = new wxButton( this, wxID_ANY, wxT("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       szrButtons->Add( btnCancel, 0, wxALIGN_RIGHT, 0 );\r
+       \r
+       \r
+       szrButtons->Add( 5, 0, 0, wxEXPAND, 0 );\r
+       \r
+       \r
+       bSizer384->Add( szrButtons, 0, wxBOTTOM|wxEXPAND, 5 );\r
+       \r
+       \r
+       this->SetSizer( bSizer384 );\r
+       this->Layout();\r
+       \r
+       this->Centre( wxBOTH );\r
+       \r
+       // Connect Events\r
+       btnDetect->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmEditAccountADT::DetectAddressBook ), NULL, this );\r
+       btnSave->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmEditAccountADT::UpdateSettings ), NULL, this );\r
+       btnCancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmEditAccountADT::CloseWindow ), NULL, this );\r
+}\r
+\r
+frmEditAccountADT::~frmEditAccountADT()\r
+{\r
+       // Disconnect Events\r
+       btnDetect->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmEditAccountADT::DetectAddressBook ), NULL, this );\r
+       btnSave->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmEditAccountADT::UpdateSettings ), NULL, this );\r
+       btnCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmEditAccountADT::CloseWindow ), NULL, this );\r
+       \r
+}\r
+\r
+frmSSLCertificateADT::frmSSLCertificateADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )\r
+{\r
+       this->SetSizeHints( wxDefaultSize, wxDefaultSize );\r
+       \r
+       wxBoxSizer* bSizer384;\r
+       bSizer384 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       m_notebook28 = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );\r
+       tabSummary = new wxPanel( m_notebook28, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxBoxSizer* bSizer386;\r
+       bSizer386 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       pnlTop = new wxPanel( tabSummary, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       pnlTop->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNHIGHLIGHT ) );\r
+       \r
+       wxBoxSizer* bSizer389;\r
+       bSizer389 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       lblCertName = new wxStaticText( pnlTop, wxID_ANY, wxT("Certificate Name"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblCertName->Wrap( -1 );\r
+       lblCertName->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 92, false, wxEmptyString ) );\r
+       \r
+       bSizer389->Add( lblCertName, 0, wxALL, 5 );\r
+       \r
+       lblValidityStatus = new wxStaticText( pnlTop, wxID_ANY, wxT("Validity Status"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblValidityStatus->Wrap( -1 );\r
+       bSizer389->Add( lblValidityStatus, 0, wxALL, 5 );\r
+       \r
+       \r
+       pnlTop->SetSizer( bSizer389 );\r
+       pnlTop->Layout();\r
+       bSizer389->Fit( pnlTop );\r
+       bSizer386->Add( pnlTop, 0, wxEXPAND | wxALL, 5 );\r
+       \r
+       wxBoxSizer* bSizer392;\r
+       bSizer392 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       m_panel54 = new wxPanel( tabSummary, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxFlexGridSizer* fgSizer44;\r
+       fgSizer44 = new wxFlexGridSizer( 0, 2, 0, 0 );\r
+       fgSizer44->AddGrowableCol( 1 );\r
+       fgSizer44->SetFlexibleDirection( wxHORIZONTAL );\r
+       fgSizer44->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );\r
+       \r
+       lblIssuedTo = new wxStaticText( m_panel54, wxID_ANY, wxT("Issued To:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblIssuedTo->Wrap( -1 );\r
+       fgSizer44->Add( lblIssuedTo, 0, wxALL, 5 );\r
+       \r
+       lblIssuedToData = new wxStaticText( m_panel54, wxID_ANY, wxT("IssuedTo"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblIssuedToData->Wrap( -1 );\r
+       fgSizer44->Add( lblIssuedToData, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       lblValidFrom = new wxStaticText( m_panel54, wxID_ANY, wxT("Valid From:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblValidFrom->Wrap( -1 );\r
+       fgSizer44->Add( lblValidFrom, 0, wxALL, 5 );\r
+       \r
+       lblValidFromData = new wxStaticText( m_panel54, wxID_ANY, wxT("ValidDate"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblValidFromData->Wrap( -1 );\r
+       fgSizer44->Add( lblValidFromData, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       lblValidUntil = new wxStaticText( m_panel54, wxID_ANY, wxT("Valid Until:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblValidUntil->Wrap( -1 );\r
+       fgSizer44->Add( lblValidUntil, 0, wxALL, 5 );\r
+       \r
+       lblValidUntilData = new wxStaticText( m_panel54, wxID_ANY, wxT("ValidUntil"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblValidUntilData->Wrap( -1 );\r
+       fgSizer44->Add( lblValidUntilData, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       \r
+       m_panel54->SetSizer( fgSizer44 );\r
+       m_panel54->Layout();\r
+       fgSizer44->Fit( m_panel54 );\r
+       bSizer392->Add( m_panel54, 1, wxEXPAND | wxALL, 5 );\r
+       \r
+       \r
+       bSizer386->Add( bSizer392, 1, wxEXPAND, 5 );\r
+       \r
+       \r
+       tabSummary->SetSizer( bSizer386 );\r
+       tabSummary->Layout();\r
+       bSizer386->Fit( tabSummary );\r
+       m_notebook28->AddPage( tabSummary, wxT("Summary"), false );\r
+       tabDetail = new wxPanel( m_notebook28, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxBoxSizer* bSizer3891;\r
+       bSizer3891 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       lstValues = new wxListCtrl( tabDetail, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxSUNKEN_BORDER );\r
+       bSizer3891->Add( lstValues, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       txtValueData = new wxTextCtrl( tabDetail, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_CHARWRAP|wxTE_MULTILINE|wxTE_READONLY );\r
+       txtValueData->SetMaxLength( 0 ); \r
+       txtValueData->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE ) );\r
+       \r
+       bSizer3891->Add( txtValueData, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       \r
+       tabDetail->SetSizer( bSizer3891 );\r
+       tabDetail->Layout();\r
+       bSizer3891->Fit( tabDetail );\r
+       m_notebook28->AddPage( tabDetail, wxT("Detail"), false );\r
+       tabHierarchy = new wxPanel( m_notebook28, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxBoxSizer* bSizer390;\r
+       bSizer390 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       treHierarchy = new wxTreeCtrl( tabHierarchy, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTR_DEFAULT_STYLE|wxSUNKEN_BORDER );\r
+       bSizer390->Add( treHierarchy, 1, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );\r
+       \r
+       m_panel57 = new wxPanel( tabHierarchy, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxBoxSizer* bSizer393;\r
+       bSizer393 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnViewCert = new wxButton( m_panel57, wxID_ANY, wxT("View Certificate"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer393->Add( btnViewCert, 0, wxALIGN_RIGHT|wxALL, 0 );\r
+       \r
+       \r
+       m_panel57->SetSizer( bSizer393 );\r
+       m_panel57->Layout();\r
+       bSizer393->Fit( m_panel57 );\r
+       bSizer390->Add( m_panel57, 0, wxEXPAND | wxALL, 5 );\r
+       \r
+       \r
+       tabHierarchy->SetSizer( bSizer390 );\r
+       tabHierarchy->Layout();\r
+       bSizer390->Fit( tabHierarchy );\r
+       m_notebook28->AddPage( tabHierarchy, wxT("Hierarchy"), true );\r
+       \r
+       bSizer384->Add( m_notebook28, 1, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );\r
+       \r
+       pnlButtons = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );\r
+       wxBoxSizer* bSizer385;\r
+       bSizer385 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       btnClose = new wxButton( pnlButtons, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       btnClose->SetDefault(); \r
+       bSizer385->Add( btnClose, 0, wxALIGN_RIGHT, 5 );\r
+       \r
+       \r
+       pnlButtons->SetSizer( bSizer385 );\r
+       pnlButtons->Layout();\r
+       bSizer385->Fit( pnlButtons );\r
+       bSizer384->Add( pnlButtons, 0, wxEXPAND | wxALL, 5 );\r
+       \r
+       \r
+       this->SetSizer( bSizer384 );\r
+       this->Layout();\r
+       \r
+       this->Centre( wxBOTH );\r
+       \r
+       // Connect Events\r
+       lstValues->Connect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( frmSSLCertificateADT::LoadValueData ), NULL, this );\r
+       treHierarchy->Connect( wxEVT_COMMAND_TREE_SEL_CHANGED, wxTreeEventHandler( frmSSLCertificateADT::CheckCertificate ), NULL, this );\r
+       btnViewCert->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmSSLCertificateADT::ViewCertificate ), NULL, this );\r
+       btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmSSLCertificateADT::CloseWindow ), NULL, this );\r
+}\r
+\r
+frmSSLCertificateADT::~frmSSLCertificateADT()\r
+{\r
+       // Disconnect Events\r
+       lstValues->Disconnect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( frmSSLCertificateADT::LoadValueData ), NULL, this );\r
+       treHierarchy->Disconnect( wxEVT_COMMAND_TREE_SEL_CHANGED, wxTreeEventHandler( frmSSLCertificateADT::CheckCertificate ), NULL, this );\r
+       btnViewCert->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmSSLCertificateADT::ViewCertificate ), NULL, this );\r
+       btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmSSLCertificateADT::CloseWindow ), NULL, this );\r
+       \r
+}\r
+\r
+frmInvalidSSLCertificateADT::frmInvalidSSLCertificateADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )\r
+{\r
+       this->SetSizeHints( wxDefaultSize, wxDefaultSize );\r
+       \r
+       wxBoxSizer* bSizer387;\r
+       bSizer387 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       lblSSLText = new wxStaticText( this, wxID_ANY, wxT("Text"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblSSLText->Wrap( -1 );\r
+       bSizer387->Add( lblSSLText, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer388;\r
+       bSizer388 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       btnAccept = new wxButton( this, wxID_ANY, wxT("Accept"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer388->Add( btnAccept, 0, wxALL, 5 );\r
+       \r
+       btnReject = new wxButton( this, wxID_ANY, wxT("Reject"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       btnReject->SetDefault(); \r
+       bSizer388->Add( btnReject, 0, wxALL, 5 );\r
+       \r
+       btnViewCert = new wxButton( this, wxID_ANY, wxT("View Certificates..."), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer388->Add( btnViewCert, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer387->Add( bSizer388, 0, wxALIGN_CENTER_HORIZONTAL, 0 );\r
+       \r
+       \r
+       this->SetSizer( bSizer387 );\r
+       this->Layout();\r
+       \r
+       this->Centre( wxBOTH );\r
+       \r
+       // Connect Events\r
+       btnAccept->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmInvalidSSLCertificateADT::Accept ), NULL, this );\r
+       btnReject->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmInvalidSSLCertificateADT::Reject ), NULL, this );\r
+       btnViewCert->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmInvalidSSLCertificateADT::ViewCertificates ), NULL, this );\r
+}\r
+\r
+frmInvalidSSLCertificateADT::~frmInvalidSSLCertificateADT()\r
+{\r
+       // Disconnect Events\r
+       btnAccept->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmInvalidSSLCertificateADT::Accept ), NULL, this );\r
+       btnReject->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmInvalidSSLCertificateADT::Reject ), NULL, this );\r
+       btnViewCert->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmInvalidSSLCertificateADT::ViewCertificates ), NULL, this );\r
+       \r
+}\r
+\r
+frmImportContactsADT::frmImportContactsADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )\r
+{\r
+       this->SetSizeHints( wxDefaultSize, wxDefaultSize );\r
+       \r
+       wxBoxSizer* bSizer393;\r
+       bSizer393 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       lblImportText = new wxStaticText( this, wxID_ANY, wxT("Select the contacts you want to import and the account to import into. Click on Import to finish."), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblImportText->Wrap( -1 );\r
+       bSizer393->Add( lblImportText, 0, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxArrayString lstContactsChoices;\r
+       lstContacts = new wxCheckListBox( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, lstContactsChoices, wxLB_ALWAYS_SB|wxLB_SORT );\r
+       bSizer393->Add( lstContacts, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       szrAccount = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       lblAccountText = new wxStaticText( this, wxID_ANY, wxT("Account:"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblAccountText->Wrap( -1 );\r
+       szrAccount->Add( lblAccountText, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );\r
+       \r
+       \r
+       bSizer393->Add( szrAccount, 0, wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer394;\r
+       bSizer394 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       btnImport = new wxButton( this, wxID_ANY, wxT("Import"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       btnImport->SetDefault(); \r
+       bSizer394->Add( btnImport, 0, wxALL, 5 );\r
+       \r
+       btnCancel = new wxButton( this, wxID_ANY, wxT("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer394->Add( btnCancel, 0, wxALL, 5 );\r
+       \r
+       \r
+       bSizer393->Add( bSizer394, 0, wxALIGN_RIGHT, 5 );\r
+       \r
+       \r
+       this->SetSizer( bSizer393 );\r
+       this->Layout();\r
+       \r
+       this->Centre( wxBOTH );\r
+       \r
+       // Connect Events\r
+       btnImport->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmImportContactsADT::ImportContacts ), NULL, this );\r
+       btnCancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmImportContactsADT::CloseWindow ), NULL, this );\r
+}\r
+\r
+frmImportContactsADT::~frmImportContactsADT()\r
+{\r
+       // Disconnect Events\r
+       btnImport->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmImportContactsADT::ImportContacts ), NULL, this );\r
+       btnCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmImportContactsADT::CloseWindow ), NULL, this );\r
+       \r
+}\r
+\r
+frmImportResultsADT::frmImportResultsADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )\r
+{\r
+       this->SetSizeHints( wxDefaultSize, wxDefaultSize );\r
+       \r
+       wxBoxSizer* bSizer396;\r
+       bSizer396 = new wxBoxSizer( wxVERTICAL );\r
+       \r
+       lblText = new wxStaticText( this, wxID_ANY, wxT("x contacts imported. x contacts had errors and could not be imported."), wxDefaultPosition, wxDefaultSize, 0 );\r
+       lblText->Wrap( -1 );\r
+       bSizer396->Add( lblText, 0, wxALL, 5 );\r
+       \r
+       txtResults = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY );\r
+       txtResults->SetMaxLength( 0 ); \r
+       bSizer396->Add( txtResults, 1, wxALL|wxEXPAND, 5 );\r
+       \r
+       wxBoxSizer* bSizer397;\r
+       bSizer397 = new wxBoxSizer( wxHORIZONTAL );\r
+       \r
+       btnCopyClipboard = new wxButton( this, wxID_ANY, wxT("Copy to Clipboard"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       btnCopyClipboard->Hide();\r
+       \r
+       bSizer397->Add( btnCopyClipboard, 0, 0, 5 );\r
+       \r
+       btnFinish = new wxButton( this, wxID_ANY, wxT("Finish"), wxDefaultPosition, wxDefaultSize, 0 );\r
+       bSizer397->Add( btnFinish, 0, wxALIGN_RIGHT|wxBOTTOM|wxLEFT, 5 );\r
+       \r
+       \r
+       bSizer396->Add( bSizer397, 0, wxALIGN_RIGHT|wxRIGHT, 5 );\r
+       \r
+       \r
+       this->SetSizer( bSizer396 );\r
+       this->Layout();\r
+       \r
+       this->Centre( wxBOTH );\r
+       \r
+       // Connect Events\r
+       btnCopyClipboard->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmImportResultsADT::CopyClipboard ), NULL, this );\r
+       btnFinish->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmImportResultsADT::CloseWindow ), NULL, this );\r
+}\r
+\r
+frmImportResultsADT::~frmImportResultsADT()\r
+{\r
+       // Disconnect Events\r
+       btnCopyClipboard->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmImportResultsADT::CopyClipboard ), NULL, this );\r
+       btnFinish->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmImportResultsADT::CloseWindow ), NULL, this );\r
+       \r
+}\r
index 7aa8b26..d205fba 100644 (file)
-///////////////////////////////////////////////////////////////////////////
-// C++ code generated with wxFormBuilder (version Feb 26 2014)
-// http://www.wxformbuilder.org/
-//
-// PLEASE DO "NOT" EDIT THIS FILE!
-///////////////////////////////////////////////////////////////////////////
-
-#ifndef __APPXESTIAADDRBK_H__
-#define __APPXESTIAADDRBK_H__
-
-#include <wx/artprov.h>
-#include <wx/xrc/xmlres.h>
-#include <wx/string.h>
-#include <wx/bitmap.h>
-#include <wx/image.h>
-#include <wx/icon.h>
-#include <wx/menu.h>
-#include <wx/gdicmn.h>
-#include <wx/font.h>
-#include <wx/colour.h>
-#include <wx/settings.h>
-#include <wx/statbmp.h>
-#include <wx/combo.h>
-#include <wx/sizer.h>
-#include <wx/listctrl.h>
-#include <wx/panel.h>
-#include <wx/html/htmlwin.h>
-#include <wx/splitter.h>
-#include <wx/statusbr.h>
-#include <wx/frame.h>
-#include <wx/stattext.h>
-#include <wx/statline.h>
-#include <wx/button.h>
-#include <wx/dialog.h>
-#include <wx/scrolwin.h>
-#include <wx/notebook.h>
-#include <wx/checkbox.h>
-#include <wx/choice.h>
-#include <wx/textctrl.h>
-#include <wx/combobox.h>
-#include <wx/datectrl.h>
-#include <wx/dateevt.h>
-#include <wx/bmpbuttn.h>
-#include <wx/slider.h>
-#include <wx/gauge.h>
-#include <wx/checklst.h>
-#include <wx/filepicker.h>
-#include <wx/treectrl.h>
-
-///////////////////////////////////////////////////////////////////////////
-
-#define ID_MANAGE_NEWAB 1000
-#define ID_MANAGE_IMPORT 1001
-#define ID_MANAGE_EXPORT 1002
-#define ID_CONTACT_EDIT 1003
-#define ID_CONTACT_DELETE 1004
-#define ID_VIEW_FNLN 1005
-#define ID_VIEW_LNFN 1006
-#define ID_VIEW_NICK 1007
-#define ID_VIEW_ASC 1008
-#define ID_VIEW_DESC 1009
-#define ID_VIEW_STATUSBAR 1010
-#define ID_MANAGE_CUT 1011
-#define ID_MANAGE_COPY 1012
-#define ID_MANAGE_PASTE 1013
-#define ID_HELP_SHOW 1014
-#define ID_MANAGE_UPDATE 1015
-#define ID_CONTACT_CLOSE 1016
-#define CONTACT_SAVE 1017
-#define CONTACT_SAVECLOSE 1018
-#define CONTACT_CLOSE 1019
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class frmMainADT
-///////////////////////////////////////////////////////////////////////////////
-class frmMainADT : public wxFrame
-{
-private:
-    
-protected:
-    wxMenuBar* mnuMain;
-    wxMenu* mnuManage;
-    wxMenuItem* mnuPrefSep;
-    wxMenuItem* mnuExitSep;
-    wxMenu* mnuContact;
-    wxMenu* mnuView;
-    wxMenu* mnuShowContactsAs;
-    wxMenu* mnuViewSortBy;
-    wxMenu* mnuViewShow;
-    wxMenu* mnuEdit;
-    wxMenu* mnuWindow;
-    wxMenu* mnuHelp;
-    wxMenuItem* mnuHelpAboutSep;
-    wxBoxSizer* szrMain;
-    wxStaticBitmap* bmpIcon;
-    wxComboCtrl* AccCtrl;
-    wxSplitterWindow* m_splitter13;
-    wxPanel* m_panel19;
-    wxFlexGridSizer* szrContactList;
-    wxFlexGridSizer* szrAccList;
-    wxListCtrl* lstContacts;
-    wxPanel* m_panel20;
-    wxHtmlWindow* htmContactData;
-    wxStatusBar* stbBottom;
-    
-    // Virtual event handlers, overide them in your derived class
-    virtual void OpenNewABDialog( wxCommandEvent& event ) { event.Skip(); }
-    virtual void RefreshAddressBook( wxCommandEvent& event ) { event.Skip(); }
-    virtual void OpenImportDialog( wxCommandEvent& event ) { event.Skip(); }
-    virtual void OpenExportDialog( wxCommandEvent& event ) { event.Skip(); }
-    virtual void OpenPreferences( wxCommandEvent& event ) { event.Skip(); }
-    virtual void QuitApp( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ShowContactEditorNew( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ShowContactEditorEdit( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteContact( wxCommandEvent& event ) { event.Skip(); }
-    virtual void OpenFindContactsWindow( wxCommandEvent& event ) { event.Skip(); }
-    virtual void SortFNLN( wxCommandEvent& event ) { event.Skip(); }
-    virtual void SortLNFN( wxCommandEvent& event ) { event.Skip(); }
-    virtual void SortNickname( wxCommandEvent& event ) { event.Skip(); }
-    virtual void SortDisplayAs( wxCommandEvent& event ) { event.Skip(); }
-    virtual void SortAscending( wxCommandEvent& event ) { event.Skip(); }
-    virtual void SortDescending( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ToggleStatusBar( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ShowActivityWindow( wxCommandEvent& event ) { event.Skip(); }
-    virtual void CutAction( wxCommandEvent& event ) { event.Skip(); }
-    virtual void CopyAction( wxCommandEvent& event ) { event.Skip(); }
-    virtual void PasteAction( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ShowHelp( wxCommandEvent& event ) { event.Skip(); }
-    virtual void CheckUpdates( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ShowAboutWindow( wxCommandEvent& event ) { event.Skip(); }
-    virtual void OpenContactInfo( wxListEvent& event ) { event.Skip(); }
-    virtual void ShowContactInfo( wxListEvent& event ) { event.Skip(); }
-    virtual void ShowContactSubmenu( wxMouseEvent& event ) { event.Skip(); }
-    virtual void UpdateSBIconPlacement( wxSizeEvent& event ) { event.Skip(); }
-    
-    
-public:
-    
-    frmMainADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Xestia Address Book"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 500,300 ), long style = wxDEFAULT_FRAME_STYLE );
-    
-    ~frmMainADT();
-    
-    void m_splitter13OnIdle( wxIdleEvent& )
-    {
-        m_splitter13->SetSashPosition( 184 );
-        m_splitter13->Disconnect( wxEVT_IDLE, wxIdleEventHandler( frmMainADT::m_splitter13OnIdle ), NULL, this );
-    }
-    
-};
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class frmUpdateADT
-///////////////////////////////////////////////////////////////////////////////
-class frmUpdateADT : public wxDialog
-{
-private:
-    
-protected:
-    wxPanel* pnlUpdateData;
-    wxStaticText* lblRunningText;
-    wxStaticText* lblRunningVer;
-    wxStaticText* lblAvailableText;
-    wxStaticText* lblAvailableVer;
-    wxStaticText* lblBuildTypeText;
-    wxStaticText* lblBuildType;
-    wxStaticText* lblUpdateMessage;
-    wxStaticLine* statLine;
-    wxButton* btnVisitGelforn;
-    wxButton* btnVisitPREMIUM;
-    wxButton* btnClose;
-    
-    // Virtual event handlers, overide them in your derived class
-    virtual void VisitGelforn( wxCommandEvent& event ) { event.Skip(); }
-    virtual void VisitPREMIUM( wxCommandEvent& event ) { event.Skip(); }
-    virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }
-    
-    
-public:
-    
-    frmUpdateADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Check For Updates"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 433,273 ), long style = wxDEFAULT_DIALOG_STYLE );
-    ~frmUpdateADT();
-    
-};
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class frmSearchADT
-///////////////////////////////////////////////////////////////////////////////
-class frmSearchADT : public wxFrame
-{
-private:
-    
-protected:
-    wxStatusBar* stbBottom;
-    wxSplitterWindow* m_splitter4;
-    wxPanel* m_panel60;
-    wxNotebook* nbkSearch;
-    wxScrolledWindow* tabSearch;
-    wxFlexGridSizer* szrSearch;
-    wxScrolledWindow* tabAdvanced;
-    wxButton* btnSelectAccounts;
-    wxButton* btnSearch;
-    wxButton* btnReset;
-    wxPanel* m_panel61;
-    wxListCtrl* lstResults;
-    wxMenuBar* m_menubar5;
-    wxMenu* mnuContact;
-    
-    // Virtual event handlers, overide them in your derived class
-    virtual void CloseWindow( wxCloseEvent& event ) { event.Skip(); }
-    virtual void SelectAccounts( wxCommandEvent& event ) { event.Skip(); }
-    virtual void SearchContacts( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ResetContacts( wxCommandEvent& event ) { event.Skip(); }
-    virtual void OpenContact( wxCommandEvent& event ) { event.Skip(); }
-    virtual void EditContact( wxCommandEvent& event ) { event.Skip(); }
-    virtual void RevealContact( wxCommandEvent& event ) { event.Skip(); }
-    virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }
-    
-    
-public:
-    
-    frmSearchADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Search Contacts"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 517,450 ), long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL );
-    
-    ~frmSearchADT();
-    
-    void m_splitter4OnIdle( wxIdleEvent& )
-    {
-        m_splitter4->SetSashPosition( 178 );
-        m_splitter4->Disconnect( wxEVT_IDLE, wxIdleEventHandler( frmSearchADT::m_splitter4OnIdle ), NULL, this );
-    }
-    
-};
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class frmPreferencesADT
-///////////////////////////////////////////////////////////////////////////////
-class frmPreferencesADT : public wxDialog
-{
-private:
-    
-protected:
-    wxNotebook* NbtPreferences;
-    wxPanel* tabGeneral;
-    wxCheckBox* chkSaveWindowPosition;
-    wxCheckBox* chkHideLocal;
-    wxPanel* tabTheme;
-    wxListCtrl* lstThemes;
-    wxButton* btnThemeAdd;
-    wxButton* btnThemeModify;
-    wxButton* btnThemeDelete;
-    wxPanel* tabAccounts;
-    wxListCtrl* lstAccounts;
-    wxButton* btnAccountAdd;
-    wxButton* btnAccountModify;
-    wxButton* btnAccountDelete;
-    wxButton* btnSave;
-    wxButton* btnCancel;
-    
-    // Virtual event handlers, overide them in your derived class
-    virtual void LoadPreferences( wxInitDialogEvent& event ) { event.Skip(); }
-    virtual void DisableABButtons( wxListEvent& event ) { event.Skip(); }
-    virtual void EnableABButtons( wxListEvent& event ) { event.Skip(); }
-    virtual void AddABAccount( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyABAccount( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteABAccount( wxCommandEvent& event ) { event.Skip(); }
-    virtual void SavePreferences( wxCommandEvent& event ) { event.Skip(); }
-    virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }
-    
-    
-public:
-    
-    frmPreferencesADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Preferences"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 450,400 ), long style = wxDEFAULT_DIALOG_STYLE );
-    ~frmPreferencesADT();
-    
-};
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class frmAboutADT
-///////////////////////////////////////////////////////////////////////////////
-class frmAboutADT : public wxDialog
-{
-private:
-    
-protected:
-    wxStaticBitmap* bmpLogo;
-    wxStaticText* lblVersion;
-    wxStaticText* lblCompileTime;
-    wxStaticText* lblCopyright;
-    wxButton* btnClose;
-    
-    // Virtual event handlers, overide them in your derived class
-    virtual void CloseAboutWindow( wxCommandEvent& event ) { event.Skip(); }
-    
-    
-public:
-    
-    frmAboutADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("About Xestia Address Book"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 350,400 ), long style = wxDEFAULT_DIALOG_STYLE );
-    ~frmAboutADT();
-    
-};
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class frmContactADT
-///////////////////////////////////////////////////////////////////////////////
-class frmContactADT : public wxFrame
-{
-private:
-    
-protected:
-    wxHtmlWindow* htmContactData;
-    wxMenuBar* m_menubar2;
-    wxMenu* contact;
-    
-    // Virtual event handlers, overide them in your derived class
-    virtual void CloseWindow( wxCloseEvent& event ) { event.Skip(); }
-    virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }
-    
-    
-public:
-    
-    frmContactADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 320,240 ), long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL );
-    
-    ~frmContactADT();
-    
-};
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class frmNewAccountADT
-///////////////////////////////////////////////////////////////////////////////
-class frmNewAccountADT : public wxDialog
-{
-private:
-    
-protected:
-    wxBoxSizer* szrNewAccount;
-    wxPanel* tabType;
-    wxStaticText* lblEnterText;
-    wxStaticText* lblType;
-    wxChoice* cmbServerType;
-    wxStaticText* lblServerAddress;
-    wxTextCtrl* txtServerAddress;
-    wxStaticText* lblServerPort;
-    wxTextCtrl* txtServerPort;
-    wxStaticText* lblUsername;
-    wxTextCtrl* txtUsername;
-    wxStaticText* lblPassword;
-    wxTextCtrl* txtPassword;
-    wxStaticText* lblSSL;
-    wxCheckBox* chkUseSSL;
-    wxPanel* tabConn;
-    wxStaticText* lblConnectionResult;
-    wxStaticText* lblServerConnected;
-    wxStaticText* lblServerConnResult;
-    wxStaticText* lblValidResponse;
-    wxStaticText* lblServerResponse;
-    wxStaticText* lblUseSSL;
-    wxStaticText* lblServerSSLResult;
-    wxStaticText* lblServerSSLCert;
-    wxStaticText* lblServerSSLValid;
-    wxStaticText* lblServerUsernamePassword;
-    wxStaticText* lblAbleToLoginResult;
-    wxStaticText* lblIsCalDAV;
-    wxStaticText* lblCardDAVSupportResult;
-    wxStaticLine* m_staticline3;
-    wxStaticText* lblConnectionResultText;
-    wxPanel* tabFinish;
-    wxStaticText* lblFinishText;
-    wxStaticText* lblAccountName;
-    wxTextCtrl* txtAccountName;
-    wxButton* btnPrevious;
-    wxButton* btnNext;
-    wxButton* btnClose;
-    
-    // Virtual event handlers, overide them in your derived class
-    virtual void UpdateRequirements( wxCommandEvent& event ) { event.Skip(); }
-    virtual void CheckAccountName( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ProcessPrevious( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ProcessNext( wxCommandEvent& event ) { event.Skip(); }
-    virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }
-    
-    
-public:
-    
-    frmNewAccountADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("New Account"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 425,330 ), long style = wxDEFAULT_DIALOG_STYLE );
-    ~frmNewAccountADT();
-    
-};
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class frmContactEditorADT
-///////////////////////////////////////////////////////////////////////////////
-class frmContactEditorADT : public wxFrame
-{
-private:
-    
-protected:
-    wxNotebook* nbkContact;
-    wxScrolledWindow* tabGeneral;
-    wxStaticText* lblTitle;
-    wxTextCtrl* txtTitle;
-    wxStaticText* lblForename;
-    wxTextCtrl* txtForename;
-    wxStaticText* lblSurname;
-    wxTextCtrl* txtSurname;
-    wxStaticText* lblOtherNames;
-    wxTextCtrl* txtOtherNames;
-    wxStaticText* lblSuffix;
-    wxTextCtrl* txtSuffix;
-    wxStaticText* lblDisplayAs;
-    wxComboBox* cmbDisplayAs;
-    wxStaticText* lblBirthday;
-    wxDatePickerCtrl* dapBirthday;
-    wxTextCtrl* txtBirthday;
-    wxStaticText* lblAnniversary;
-    wxDatePickerCtrl* dapAnniversary;
-    wxTextCtrl* txtAnniversary;
-    wxStaticText* lblGender;
-    wxChoice* cmbGender;
-    wxTextCtrl* txtGenderDescription;
-    wxStaticText* lblType;
-    wxChoice* cmbType;
-    wxStaticText* lblNicknames;
-    wxListCtrl* lboNicknames;
-    wxButton* btnAddGeneralNickname;
-    wxButton* btnModifyGeneralNickname;
-    wxButton* btnDeleteGeneralNickname;
-    wxStaticText* lblAddress;
-    wxListCtrl* lboAddresses;
-    wxButton* btnAddGeneralAddress;
-    wxButton* btnModifyGeneralAddress;
-    wxButton* btnDeleteGeneralAddress;
-    wxStaticText* lblEmail;
-    wxListCtrl* lboEmails;
-    wxButton* btnAddEmailAddress;
-    wxButton* btnModifyEmailAddress;
-    wxButton* btnDeleteEmailAddress;
-    wxStaticText* lblIM;
-    wxListCtrl* lboIM;
-    wxButton* btnAddIMAddress;
-    wxButton* btnModifyIMAddress;
-    wxButton* btnDeleteIMAddress;
-    wxStaticText* lblTelephone;
-    wxListCtrl* lboTelephone;
-    wxButton* btnAddTelephone;
-    wxButton* btnModifyTelephone;
-    wxButton* btnDeleteTelephone;
-    wxStaticText* lblLanguages;
-    wxListCtrl* lboLanguages;
-    wxButton* btnAddLanguage;
-    wxButton* btnModifyLanguage;
-    wxButton* btnDeleteLanguage;
-    wxStaticText* lblTimezone;
-    wxListCtrl* lboTimezones;
-    wxButton* btnAddTimezone;
-    wxButton* btnModifyTimezone;
-    wxButton* btnDeleteTimezone;
-    wxStaticText* lblGeopositioning;
-    wxListCtrl* lboGeoposition;
-    wxButton* btnAddGeneralGeoposition;
-    wxButton* btnModifyGeneralGeoposition;
-    wxButton* btnDeleteGeneralGeoposition;
-    wxStaticText* lblRelated;
-    wxListCtrl* lboRelated;
-    wxButton* btnAddRelated;
-    wxButton* btnModifyRelated;
-    wxButton* btnDeleteRelated;
-    wxStaticText* lblWebsites;
-    wxListCtrl* lboWebsites;
-    wxButton* btnAddWebsite;
-    wxButton* btnModifyWebsite;
-    wxButton* btnDeleteWebsite;
-    wxStaticText* lblTitles;
-    wxListCtrl* lboTitles;
-    wxButton* btnAddTitle;
-    wxButton* btnModifyTitle;
-    wxButton* btnDeleteTitle;
-    wxStaticText* lblRoles;
-    wxListCtrl* lboRoles;
-    wxButton* btnAddRole;
-    wxButton* btnModifyRole;
-    wxButton* btnDeleteRole;
-    wxStaticText* lblOrganisations;
-    wxListCtrl* lboOrganisations;
-    wxButton* btnAddOrganisations;
-    wxButton* btnModifyOrganisations;
-    wxButton* btnDeleteOrganisations;
-    wxStaticText* lblNotes;
-    wxListCtrl* lboNotes;
-    wxButton* btnAddNote;
-    wxButton* btnModifyNote;
-    wxButton* btnDeleteNote;
-    wxScrolledWindow* tabHome;
-    wxStaticText* lblHomeNickname;
-    wxListCtrl* lboHomeNicknames;
-    wxButton* btnAddHomeNickname;
-    wxButton* btnModifyHomeNickname;
-    wxButton* btnDeleteHomeNickname;
-    wxStaticText* lblHomeAddresses;
-    wxListCtrl* lboHomeAddresses;
-    wxButton* btnAddHomeAddress;
-    wxButton* btnModifyHomeAddress;
-    wxButton* btnDeleteHomeAddress;
-    wxStaticText* lblHomeEmail;
-    wxListCtrl* lboHomeEmails;
-    wxButton* btnAddHomeEmailAddress;
-    wxButton* btnModifyHomeEmailAddress;
-    wxButton* btnDeleteHomeEmailAddress;
-    wxStaticText* lblHomeIM;
-    wxListCtrl* lboHomeIM;
-    wxButton* btnAddHomeIMAddress;
-    wxButton* btnModifyHomeIMAddress;
-    wxButton* btnDeleteHomeIMAddress;
-    wxStaticText* lblHomeTelephone;
-    wxListCtrl* lboHomeTelephone;
-    wxButton* btnAddHomeTelephone;
-    wxButton* btnModifyHomeTelephone;
-    wxButton* btnDeleteHomeTelephone;
-    wxStaticText* lblHomeLanguages;
-    wxListCtrl* lboHomeLanguages;
-    wxButton* btnAddHomeLanguage;
-    wxButton* btnModifyHomeLanguage;
-    wxButton* btnDeleteHomeLanguage;
-    wxStaticText* lblHomeTimezone;
-    wxListCtrl* lboHomeTimezones;
-    wxButton* btnAddHomeTimezone;
-    wxButton* btnModifyHomeTimezone;
-    wxButton* btnDeleteHomeTimezone;
-    wxStaticText* lblHomeGeopositioning;
-    wxListCtrl* lboHomeGeoposition;
-    wxButton* btnAddHomeGeoposition;
-    wxButton* btnModifyHomeGeoposition;
-    wxButton* btnDeleteHomePosition;
-    wxStaticText* lblHomeWebsites;
-    wxListCtrl* lboHomeWebsites;
-    wxButton* btnAddHomeWebsite;
-    wxButton* btnHomeModifyWebsite;
-    wxButton* btnDeleteHomeWebsite;
-    wxStaticText* lblHomeTitles;
-    wxListCtrl* lboHomeTitles;
-    wxButton* btnAddHomeTitle;
-    wxButton* btnModifyHomeTitle;
-    wxButton* btnDeleteHomeTitle;
-    wxStaticText* lblHomeRoles;
-    wxListCtrl* lboHomeRoles;
-    wxButton* btnAddHomeRole;
-    wxButton* btnModifyHomeRole;
-    wxButton* btnDeleteHomeRole;
-    wxStaticText* lblHomeOrganisations;
-    wxListCtrl* lboHomeOrganisations;
-    wxButton* btnAddHomeOrganisations;
-    wxButton* btnModifyHomeOrganisations;
-    wxButton* btnDeleteHomeOrganisations;
-    wxStaticText* lblHomeNotes;
-    wxListCtrl* lboHomeNotes;
-    wxButton* btnAddHomeNote;
-    wxButton* btnModifyHomeNote;
-    wxButton* btnDeleteHomeNote;
-    wxScrolledWindow* tabBusiness;
-    wxStaticText* lblBusinessNickname;
-    wxListCtrl* lboBusinessNicknames;
-    wxButton* btnAddBusinessNickname;
-    wxButton* btnModifyBusinessNickname;
-    wxButton* btnDeleteBusinessNickname;
-    wxStaticText* lblBusinessAddress;
-    wxListCtrl* lboBusinessAddresses;
-    wxButton* btnAddBusinessAddress;
-    wxButton* btnModifyBusinessAddress;
-    wxButton* btnDeleteBusinessAddress;
-    wxStaticText* lblBusinessEmail;
-    wxListCtrl* lboBusinessEmail;
-    wxButton* btnAddBusinessEmailAddress;
-    wxButton* btnModifyBusinessEmailAddress;
-    wxButton* btnDeleteBusinessEmailAddress;
-    wxStaticText* lblBusinessIM;
-    wxListCtrl* lboBusinessIM;
-    wxButton* btnAddBusinessIMAddress;
-    wxButton* btnModifyBusinessIMAddress;
-    wxButton* btnDeleteBusinessIMAddress;
-    wxStaticText* lblBusinessTelephone;
-    wxListCtrl* lboBusinessTelephone;
-    wxButton* btnBusinessAddTelephone;
-    wxButton* btnBusinessModifyTelephone;
-    wxButton* btnBusinessDeleteTelephone;
-    wxStaticText* lblBusinessLanguage;
-    wxListCtrl* lboBusinessLanguages;
-    wxButton* btnBusinessAddLanguage;
-    wxButton* btnBusinessModifyLanguage;
-    wxButton* btnBusinessDeleteLanguage;
-    wxStaticText* lblBusinessTimezones;
-    wxListCtrl* lboBusinessTimezones;
-    wxButton* btnBusinessAddTimezone;
-    wxButton* btnBusinessModifyTimezone;
-    wxButton* btnDeleteBusinessTimezone;
-    wxStaticText* lblBusinessGeopositioning;
-    wxListCtrl* lboBusinessGeoposition;
-    wxButton* btnAddBusinessGeoposition;
-    wxButton* btnModifyBusinessGeoposition;
-    wxButton* btnDeleteBusinessGeoposition;
-    wxStaticText* lblBusinessWebsites;
-    wxListCtrl* lboBusinessWebsites;
-    wxButton* btnAddBusinessWebsite;
-    wxButton* btnModifyBusinessWebsite;
-    wxButton* btnDeleteBusinessWebsite;
-    wxStaticText* lblBusinessTitles;
-    wxListCtrl* lboBusinessTitles;
-    wxButton* btnAddBusinessTitle;
-    wxButton* btnModifyBusinessTitle;
-    wxButton* btnDeleteBusinessTitle;
-    wxStaticText* lblBusinessRoles;
-    wxListCtrl* lboBusinessRoles;
-    wxButton* btnAddBusinessRole;
-    wxButton* btnModifyBusinessRole;
-    wxButton* btnDeleteBusinessRole;
-    wxStaticText* lblBusinessOrganisations;
-    wxListCtrl* lboBusinessOrganisations;
-    wxButton* btnAddBusinessOrganisations;
-    wxButton* btnModifyBusinessOrganisations;
-    wxButton* btnDeleteBusinessOrganisations;
-    wxStaticText* lblBusinessNotes;
-    wxListCtrl* lboBusinessNotes;
-    wxButton* btnBusinessAddNote;
-    wxButton* btnBusinessModifyNote;
-    wxButton* btnBusinessDeleteNote;
-    wxScrolledWindow* tabCategories;
-    wxListCtrl* lboCategories;
-    wxButton* btnAddCategory;
-    wxButton* btnModifyCategory;
-    wxButton* btnDeleteCategory;
-    wxScrolledWindow* tabMembers;
-    wxListCtrl* lboGroups;
-    wxButton* btnAddGroups;
-    wxButton* btnModifyGroups;
-    wxButton* btnDeleteGroups;
-    wxScrolledWindow* tabPictures;
-    wxStaticBitmap* imgPicture;
-    wxListCtrl* lboPictures;
-    wxButton* btnAddPicture;
-    wxButton* btnModifyPicture;
-    wxButton* btnDeletePicture;
-    wxScrolledWindow* tabLogo;
-    wxStaticBitmap* imgLogo;
-    wxListCtrl* lboLogos;
-    wxButton* btnAddLogo;
-    wxButton* btnModifyLogo;
-    wxButton* btnDeleteLogo;
-    wxScrolledWindow* tabSounds;
-    wxListCtrl* lboSounds;
-    wxButton* btnAddSound;
-    wxButton* btnModifySound;
-    wxButton* btnDeleteSound;
-    wxStaticLine* m_staticline1;
-    wxBitmapButton* btnPlay;
-    wxBitmapButton* btnStop;
-    wxScrolledWindow* tabCalendaring;
-    wxStaticText* lblCalendarAddresses;
-    wxListCtrl* lboCalendarAddresses;
-    wxButton* btnAddCalendarAddress;
-    wxButton* btnModifyCalendarAddress;
-    wxButton* btnDeleteCalendarAddress;
-    wxStaticText* lblCalendarRequestAddresses;
-    wxListCtrl* lboCalendarRequestAddress;
-    wxButton* btnAddCalendarRequestAddress;
-    wxButton* btnModifyCalendarRequestAddress;
-    wxButton* btnDeleteCalendarRequestAddress;
-    wxStaticText* lblFreeBusyAddresses;
-    wxListCtrl* lboFreeBusyAddresses;
-    wxButton* btnAddFreeBusyAddress;
-    wxButton* btnModifyFreeBusyAddress;
-    wxButton* btnDeleteFreeBusyAddress;
-    wxScrolledWindow* tabSecurity;
-    wxListCtrl* lboKeys;
-    wxButton* btnAddKey;
-    wxButton* btnModifyKey;
-    wxButton* btnDeleteKey;
-    wxScrolledWindow* tabOther;
-    wxStaticText* lblVendorNamespace;
-    wxListCtrl* lboVendorNamespace;
-    wxButton* btnAddVendorNamespace;
-    wxButton* btnModifyVendorNamespace;
-    wxButton* btnDeleteVendorNamespace;
-    wxStaticText* lblXTokens;
-    wxListCtrl* lboXToken;
-    wxButton* btnAddXToken;
-    wxButton* btnModifyXToken;
-    wxButton* btnDeleteXToken;
-    wxMenuBar* m_menubar3;
-    wxMenu* mnuContact;
-    wxMenu* mnuEdit;
-    
-    // Virtual event handlers, overide them in your derived class
-    virtual void CloseWindow( wxCloseEvent& event ) { event.Skip(); }
-    virtual void UpdateDisplayAs( wxCommandEvent& event ) { event.Skip(); }
-    virtual void UpdateName( wxCommandEvent& event ) { event.Skip(); }
-    virtual void UpdateMembersTab( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddGeneralNickname( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyGeneralNickname( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteGeneralNickname( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddGeneralAddress( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyGeneralAddress( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteGeneralAddress( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddGeneralEmail( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyGeneralEmail( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteGeneralEmail( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddGeneralIM( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyGeneralIM( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteGeneralIM( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddGeneralTelephone( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyGeneralTelephone( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteGeneralTelephone( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddGeneralLanguages( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyGeneralLanguages( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteGeneralLanguage( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddGeneralTimezone( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyGeneralTimezone( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteGeneralTimezone( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddGeneralGeoposition( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyGeneralGeoposition( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteGeneralGeoposition( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddGeneralRelated( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyGeneralRelated( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteGeneralRelated( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddGeneralWebsite( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyGeneralWebsite( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteGeneralWebsite( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddGeneralTitle( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyGeneralTitle( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteGeneralTitle( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddGeneralRole( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyGeneralRole( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteGeneralRole( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddGeneralOrganisation( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyGeneralOrganisation( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteGeneralOrganisation( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddGeneralNote( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyGeneralNote( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteGeneralNote( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddHomeNickname( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyHomeNickname( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteHomeNickname( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddHomeAddress( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyHomeAddress( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteHomeAddress( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddHomeEmail( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyHomeEmail( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteHomeEmail( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddHomeIM( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyHomeIM( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteHomeIM( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddHomeTelephone( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyHomeTelephone( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteHomeTelephone( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddHomeLanguage( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyHomeLanguage( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteHomeLanguage( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddHomeTimezone( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyHomeTimezone( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteHomeTimezone( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddHomeGeoposition( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyHomeGeoposition( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteHomeGeoposition( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddHomeWebsite( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyHomeWebsite( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteHomeWebsite( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddHomeTitle( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyHomeTitle( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteHomeTitle( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddHomeRole( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyHomeRole( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteHomeRole( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddHomeOrganisation( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyHomeOrganisation( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteHomeOrganisation( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddHomeNote( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyHomeNote( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteHomeNote( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddBusinessNickname( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyBusinessNickname( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteBusinessNickname( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddBusinessAddress( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyBusinessAddress( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteBusinessAddress( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddBusinessEmail( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyBusinessEmail( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteBusinessEmail( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddBusinessIM( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyBusinessIM( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteBusinessIM( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddBusinessTelephone( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyBusinessTelephone( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteBusinessTelephone( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddBusinessLanguage( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyBusinessLanguage( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteBusinessLanguage( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddBusinessTimezone( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyBusinessTimezone( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteBusinessTimezone( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddBusinessGeoposition( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyBusinessGeoposition( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteBusinessGeoposition( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddBusinessWebsite( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyBusinessWebsite( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteBusinessWebsite( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddBusinessTitle( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyBusinessTitle( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteBusinessTitle( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddBusinessRole( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyBusinessRole( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteBusinessRole( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddBusinessOrganisation( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyBusinessOrganisation( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteBusinessOrganisation( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddBusinessNote( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyBusinessNote( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteBusinessNote( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddCategory( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyCategory( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteCategory( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddGroup( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyGroup( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteGroup( wxCommandEvent& event ) { event.Skip(); }
-    virtual void LoadPicture( wxListEvent& event ) { event.Skip(); }
-    virtual void AddPicture( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyPicture( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeletePicture( wxCommandEvent& event ) { event.Skip(); }
-    virtual void LoadLogo( wxListEvent& event ) { event.Skip(); }
-    virtual void AddLogo( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyLogo( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteLogo( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddSound( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifySound( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteSound( wxCommandEvent& event ) { event.Skip(); }
-    virtual void PlaySound( wxCommandEvent& event ) { event.Skip(); }
-    virtual void StopSound( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddCalendarAddress( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyCalendarAddress( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteCalendarAddress( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddCalendarRequest( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyCalendarRequest( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddFreeBusy( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyFreeBusy( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteFreeBusy( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddKey( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyKey( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteKey( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddVendorNamespace( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyVendorNamespace( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteVendorNamespace( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddXToken( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ModifyXToken( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DeleteXToken( wxCommandEvent& event ) { event.Skip(); }
-    virtual void SaveContact( wxCommandEvent& event ) { event.Skip(); }
-    virtual void SaveCloseContact( wxCommandEvent& event ) { event.Skip(); }
-    virtual void CloseContact( wxCommandEvent& event ) { event.Skip(); }
-    virtual void CutText( wxCommandEvent& event ) { event.Skip(); }
-    virtual void CopyText( wxCommandEvent& event ) { event.Skip(); }
-    virtual void PasteText( wxCommandEvent& event ) { event.Skip(); }
-    
-    
-public:
-    
-    frmContactEditorADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Contact Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 769,517 ), long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL );
-    
-    ~frmContactEditorADT();
-    
-};
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class frmContactEditorAddressADT
-///////////////////////////////////////////////////////////////////////////////
-class frmContactEditorAddressADT : public wxDialog
-{
-private:
-    
-protected:
-    wxNotebook* nbkAddress;
-    wxPanel* tabGeneral;
-    wxStaticText* lblAddress;
-    wxTextCtrl* txtAddress;
-    wxStaticText* m_staticText61;
-    wxTextCtrl* txtTownCity;
-    wxStaticText* lblCountyState;
-    wxTextCtrl* txtCounty;
-    wxStaticText* lblPostCode;
-    wxTextCtrl* txtPostCode;
-    wxStaticText* lblCountry;
-    wxTextCtrl* txtCountry;
-    wxStaticText* lblPriority;
-    wxCheckBox* chkUsePref;
-    wxSlider* sliPriority;
-    wxStaticText* lblHigh;
-    wxStaticText* lblLow;
-    wxPanel* tabLabel;
-    wxButton* btnCopyMailing;
-    wxTextCtrl* txtLabel;
-    wxPanel* tabOther;
-    wxStaticText* lblLanguage;
-    wxComboBox* cmbLanguage;
-    wxStaticText* lblGeography;
-    wxTextCtrl* txtGeo;
-    wxStaticText* lblTimezone;
-    wxTextCtrl* txtTimezone;
-    wxButton* btnAction;
-    wxButton* btnClose;
-    
-    // Virtual event handlers, overide them in your derived class
-    virtual void InitAddressEditor( wxInitDialogEvent& event ) { event.Skip(); }
-    virtual void EnablePriority( wxCommandEvent& event ) { event.Skip(); }
-    virtual void CopyAddress( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ProcessData( wxCommandEvent& event ) { event.Skip(); }
-    virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }
-    
-    
-public:
-    
-    frmContactEditorAddressADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Address Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 426,317 ), long style = wxDEFAULT_DIALOG_STYLE );
-    ~frmContactEditorAddressADT();
-    
-};
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class frmConflictResolutionADT
-///////////////////////////////////////////////////////////////////////////////
-class frmConflictResolutionADT : public wxDialog
-{
-private:
-    
-protected:
-    wxStaticText* lblText;
-    wxSplitterWindow* m_splitter3;
-    wxPanel* m_panel44;
-    wxHtmlWindow* htmClient;
-    wxPanel* m_panel45;
-    wxHtmlWindow* htmServer;
-    wxButton* btnKeepLocal;
-    wxButton* btnKeepServer;
-    wxButton* btnDecideLater;
-    
-    // Virtual event handlers, overide them in your derived class
-    virtual void KeepLocalData( wxCommandEvent& event ) { event.Skip(); }
-    virtual void KeepServerData( wxCommandEvent& event ) { event.Skip(); }
-    virtual void DecideLater( wxCommandEvent& event ) { event.Skip(); }
-    
-    
-public:
-    
-    frmConflictResolutionADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Conflict Resolution"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 536,417 ), long style = wxDEFAULT_DIALOG_STYLE );
-    ~frmConflictResolutionADT();
-    
-    void m_splitter3OnIdle( wxIdleEvent& )
-    {
-        m_splitter3->SetSashPosition( 257 );
-        m_splitter3->Disconnect( wxEVT_IDLE, wxIdleEventHandler( frmConflictResolutionADT::m_splitter3OnIdle ), NULL, this );
-    }
-    
-};
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class frmActivityMgrADT
-///////////////////////////////////////////////////////////////////////////////
-class frmActivityMgrADT : public wxFrame
-{
-private:
-    
-protected:
-    wxMenuBar* mnuMenuBar;
-    wxMenu* mnuWindow;
-    wxPanel* m_panel43;
-    wxStaticBitmap* bmpActivity;
-    wxPanel* m_panel46;
-    wxStaticText* lblDetails;
-    wxGauge* GauProgress;
-    wxPanel* m_panel44;
-    wxListCtrl* lstActivity;
-    
-    // Virtual event handlers, overide them in your derived class
-    virtual void CloseWindow( wxCloseEvent& event ) { event.Skip(); }
-    virtual void StopTask( wxCommandEvent& event ) { event.Skip(); }
-    virtual void StopAllTasks( wxCommandEvent& event ) { event.Skip(); }
-    virtual void RetryTask( wxCommandEvent& event ) { event.Skip(); }
-    virtual void SleepMode( wxCommandEvent& event ) { event.Skip(); }
-    virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }
-    
-    
-public:
-    
-    frmActivityMgrADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Activity Manager"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 400,300 ), long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL );
-    
-    ~frmActivityMgrADT();
-    
-};
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class frmContactEditorNicknameADT
-///////////////////////////////////////////////////////////////////////////////
-class frmContactEditorNicknameADT : public wxDialog
-{
-private:
-    
-protected:
-    wxNotebook* nbkAddress;
-    wxPanel* tabGeneral;
-    wxStaticText* lblNickname;
-    wxTextCtrl* txtNickname;
-    wxStaticText* lblPriority;
-    wxCheckBox* chkUsePref;
-    wxSlider* sliPriority;
-    wxStaticText* lblHigh;
-    wxStaticText* lblLow;
-    wxPanel* tabOther;
-    wxStaticText* lblLanguage;
-    wxComboBox* cmbLanguage;
-    wxButton* btnAction;
-    wxButton* btnClose;
-    
-    // Virtual event handlers, overide them in your derived class
-    virtual void InitAddressEditor( wxInitDialogEvent& event ) { event.Skip(); }
-    virtual void EnablePriority( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ProcessData( wxCommandEvent& event ) { event.Skip(); }
-    virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }
-    
-    
-public:
-    
-    frmContactEditorNicknameADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Nickname Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 386,231 ), long style = wxDEFAULT_DIALOG_STYLE );
-    ~frmContactEditorNicknameADT();
-    
-};
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class frmContactEditorGroupsADT
-///////////////////////////////////////////////////////////////////////////////
-class frmContactEditorGroupsADT : public wxDialog
-{
-private:
-    
-protected:
-    wxNotebook* nbkGroup;
-    wxPanel* tabGeneral;
-    wxStaticText* lblContacts;
-    wxCheckListBox* chkContacts;
-    wxButton* btnAction;
-    wxButton* btnClose;
-    
-    // Virtual event handlers, overide them in your derived class
-    virtual void FetchContacts( wxInitDialogEvent& event ) { event.Skip(); }
-    virtual void ProcessData( wxCommandEvent& event ) { event.Skip(); }
-    virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }
-    
-    
-public:
-    
-    frmContactEditorGroupsADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Group Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 398,392 ), long style = wxDEFAULT_DIALOG_STYLE );
-    ~frmContactEditorGroupsADT();
-    
-};
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class frmContactEditorRolesADT
-///////////////////////////////////////////////////////////////////////////////
-class frmContactEditorRolesADT : public wxDialog
-{
-private:
-    
-protected:
-    wxNotebook* nbkRole;
-    wxPanel* tabGeneral;
-    wxStaticText* lblRole;
-    wxTextCtrl* txtRole;
-    wxStaticText* lblPriority;
-    wxCheckBox* chkUsePref;
-    wxSlider* sliPriority;
-    wxStaticText* lblHigh;
-    wxStaticText* lblLow;
-    wxButton* btnAction;
-    wxButton* btnClose;
-    
-    // Virtual event handlers, overide them in your derived class
-    virtual void EnablePriority( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ProcessAction( wxCommandEvent& event ) { event.Skip(); }
-    virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }
-    
-    
-public:
-    
-    frmContactEditorRolesADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Role Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 350,184 ), long style = wxDEFAULT_DIALOG_STYLE );
-    ~frmContactEditorRolesADT();
-    
-};
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class frmContactEditorOrganisationsADT
-///////////////////////////////////////////////////////////////////////////////
-class frmContactEditorOrganisationsADT : public wxDialog
-{
-private:
-    
-protected:
-    wxNotebook* nbkOrganisation;
-    wxPanel* tabGeneral;
-    wxStaticText* lblOrganisation;
-    wxTextCtrl* txtOrganisation;
-    wxStaticText* lblSortAs;
-    wxComboBox* cmbSortAs;
-    wxStaticText* lblPriority;
-    wxCheckBox* chkUsePref;
-    wxSlider* sliPriority;
-    wxStaticText* lblHigh;
-    wxStaticText* lblLow;
-    wxButton* btnAction;
-    wxButton* btnClose;
-    
-    // Virtual event handlers, overide them in your derived class
-    virtual void UpdateSortAs( wxCommandEvent& event ) { event.Skip(); }
-    virtual void EnablePriority( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ProcessAction( wxCommandEvent& event ) { event.Skip(); }
-    virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }
-    
-    
-public:
-    
-    frmContactEditorOrganisationsADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Organisation Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 349,224 ), long style = wxDEFAULT_DIALOG_STYLE );
-    ~frmContactEditorOrganisationsADT();
-    
-};
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class frmContactEditorNotesADT
-///////////////////////////////////////////////////////////////////////////////
-class frmContactEditorNotesADT : public wxDialog
-{
-private:
-    
-protected:
-    wxNotebook* nbkNotes;
-    wxPanel* tabGeneral;
-    wxTextCtrl* txtNote;
-    wxPanel* tabPriority;
-    wxStaticText* lblPriority;
-    wxCheckBox* chkUsePref;
-    wxSlider* sliPriority;
-    wxStaticText* lblHigh;
-    wxStaticText* lblLow;
-    wxPanel* tabLanguage;
-    wxStaticText* lblLanguage;
-    wxComboBox* cmbLanguage;
-    wxButton* btnAction;
-    wxButton* btnClose;
-    
-    // Virtual event handlers, overide them in your derived class
-    virtual void EnablePriority( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ProcessAction( wxCommandEvent& event ) { event.Skip(); }
-    virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }
-    
-    
-public:
-    
-    frmContactEditorNotesADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Note Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 350,184 ), long style = wxDEFAULT_DIALOG_STYLE );
-    ~frmContactEditorNotesADT();
-    
-};
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class frmContactEditorTitlesADT
-///////////////////////////////////////////////////////////////////////////////
-class frmContactEditorTitlesADT : public wxDialog
-{
-private:
-    
-protected:
-    wxNotebook* nbkTitles;
-    wxPanel* tabGeneral;
-    wxStaticText* lblTitle;
-    wxTextCtrl* txtTitle;
-    wxStaticText* lblPriority;
-    wxCheckBox* chkUsePref;
-    wxSlider* sliPriority;
-    wxStaticText* lblHigh;
-    wxStaticText* lblLow;
-    wxButton* btnAction;
-    wxButton* btnClose;
-    
-    // Virtual event handlers, overide them in your derived class
-    virtual void EnablePriority( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ProcessAction( wxCommandEvent& event ) { event.Skip(); }
-    virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }
-    
-    
-public:
-    
-    frmContactEditorTitlesADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Title Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 350,184 ), long style = wxDEFAULT_DIALOG_STYLE );
-    ~frmContactEditorTitlesADT();
-    
-};
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class frmContactEditorRelatedADT
-///////////////////////////////////////////////////////////////////////////////
-class frmContactEditorRelatedADT : public wxDialog
-{
-private:
-    
-protected:
-    wxNotebook* nbkRelated;
-    wxPanel* tabGeneral;
-    wxStaticText* lblRelation;
-    wxTextCtrl* txtRelated;
-    wxStaticText* lblType;
-    wxComboBox* cmbType;
-    wxStaticText* lblPriority;
-    wxCheckBox* chkUsePref;
-    wxSlider* sliPriority;
-    wxStaticText* lblHigh;
-    wxStaticText* lblLow;
-    wxButton* btnAction;
-    wxButton* btnClose;
-    
-    // Virtual event handlers, overide them in your derived class
-    virtual void EnablePriority( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ProcessData( wxCommandEvent& event ) { event.Skip(); }
-    virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }
-    
-    
-public:
-    
-    frmContactEditorRelatedADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Related Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 350,226 ), long style = wxDEFAULT_DIALOG_STYLE );
-    ~frmContactEditorRelatedADT();
-    
-};
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class frmContactEditorSoundADT
-///////////////////////////////////////////////////////////////////////////////
-class frmContactEditorSoundADT : public wxDialog
-{
-private:
-    
-protected:
-    wxNotebook* nbkRelated;
-    wxPanel* tabGeneral;
-    wxStaticText* lblSoundFile;
-    wxFilePickerCtrl* fipSound;
-    wxStaticText* lblType;
-    wxChoice* cmbType;
-    wxStaticText* lblPriority;
-    wxCheckBox* chkUsePref;
-    wxSlider* sliPriority;
-    wxStaticText* lblHigh;
-    wxStaticText* lblLow;
-    wxButton* btnAction;
-    wxButton* btnClose;
-    
-    // Virtual event handlers, overide them in your derived class
-    virtual void EnablePriority( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ProcessData( wxCommandEvent& event ) { event.Skip(); }
-    virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }
-    
-    
-public:
-    
-    frmContactEditorSoundADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Sound Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 350,226 ), long style = wxDEFAULT_DIALOG_STYLE );
-    ~frmContactEditorSoundADT();
-    
-};
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class frmContactEditorPictureADT
-///////////////////////////////////////////////////////////////////////////////
-class frmContactEditorPictureADT : public wxDialog
-{
-private:
-    
-protected:
-    wxNotebook* nbkRelated;
-    wxPanel* tabGeneral;
-    wxStaticText* lblPictureFile;
-    wxFilePickerCtrl* fipPicture;
-    wxStaticText* lblType;
-    wxChoice* cmbType;
-    wxStaticText* lblPriority;
-    wxCheckBox* chkUsePref;
-    wxSlider* sliPriority;
-    wxStaticText* lblHigh;
-    wxStaticText* lblLow;
-    wxButton* btnAction;
-    wxButton* btnClose;
-    
-    // Virtual event handlers, overide them in your derived class
-    virtual void EnablePriority( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ProcessData( wxCommandEvent& event ) { event.Skip(); }
-    virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }
-    
-    
-public:
-    
-    frmContactEditorPictureADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Picture Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 350,226 ), long style = wxDEFAULT_DIALOG_STYLE );
-    ~frmContactEditorPictureADT();
-    
-};
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class frmContactEditorWebsitesADT
-///////////////////////////////////////////////////////////////////////////////
-class frmContactEditorWebsitesADT : public wxDialog
-{
-private:
-    
-protected:
-    wxNotebook* nbkWebsite;
-    wxPanel* tabGeneral;
-    wxStaticText* lblWebsite;
-    wxTextCtrl* txtWebsite;
-    wxStaticText* lblPriority;
-    wxCheckBox* chkUsePref;
-    wxSlider* sliPriority;
-    wxStaticText* lblHigh;
-    wxStaticText* lblLow;
-    wxButton* btnAction;
-    wxButton* btnClose;
-    
-    // Virtual event handlers, overide them in your derived class
-    virtual void EnablePriority( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ProcessAction( wxCommandEvent& event ) { event.Skip(); }
-    virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }
-    
-    
-public:
-    
-    frmContactEditorWebsitesADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Website Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 350,184 ), long style = wxDEFAULT_DIALOG_STYLE );
-    ~frmContactEditorWebsitesADT();
-    
-};
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class frmContactEditorGeopositionADT
-///////////////////////////////////////////////////////////////////////////////
-class frmContactEditorGeopositionADT : public wxDialog
-{
-private:
-    
-protected:
-    wxNotebook* nbkWebsite;
-    wxPanel* tabGeneral;
-    wxStaticText* lblGeoposition;
-    wxTextCtrl* txtGeoposition;
-    wxStaticText* lblPriority;
-    wxCheckBox* chkUsePref;
-    wxSlider* sliPriority;
-    wxStaticText* lblHigh;
-    wxStaticText* lblLow;
-    wxButton* btnAction;
-    wxButton* btnClose;
-    
-    // Virtual event handlers, overide them in your derived class
-    virtual void EnablePriority( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ProcessAction( wxCommandEvent& event ) { event.Skip(); }
-    virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }
-    
-    
-public:
-    
-    frmContactEditorGeopositionADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Geoposition Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 350,184 ), long style = wxDEFAULT_DIALOG_STYLE );
-    ~frmContactEditorGeopositionADT();
-    
-};
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class frmContactEditorCalAdrADT
-///////////////////////////////////////////////////////////////////////////////
-class frmContactEditorCalAdrADT : public wxDialog
-{
-private:
-    
-protected:
-    wxNotebook* nbkWebsite;
-    wxPanel* tabGeneral;
-    wxStaticText* lblAddress;
-    wxTextCtrl* txtAddress;
-    wxStaticText* lblType;
-    wxChoice* cmbType;
-    wxStaticText* lblPriority;
-    wxCheckBox* chkUsePref;
-    wxSlider* sliPriority;
-    wxStaticText* lblHigh;
-    wxStaticText* lblLow;
-    wxButton* btnAction;
-    wxButton* btnClose;
-    
-    // Virtual event handlers, overide them in your derived class
-    virtual void EnablePriority( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ProcessAction( wxCommandEvent& event ) { event.Skip(); }
-    virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }
-    
-    
-public:
-    
-    frmContactEditorCalAdrADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Calendar Address Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 448,270 ), long style = wxDEFAULT_DIALOG_STYLE );
-    ~frmContactEditorCalAdrADT();
-    
-};
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class frmContactEditorVendorADT
-///////////////////////////////////////////////////////////////////////////////
-class frmContactEditorVendorADT : public wxDialog
-{
-private:
-    
-protected:
-    wxNotebook* nbkWebsite;
-    wxPanel* tabGeneral;
-    wxStaticText* lblVendorPEN;
-    wxTextCtrl* txtPEN;
-    wxStaticText* lblElement;
-    wxTextCtrl* txtElement;
-    wxStaticText* lblValue;
-    wxTextCtrl* txtValue;
-    wxButton* btnAction;
-    wxButton* btnClose;
-    
-    // Virtual event handlers, overide them in your derived class
-    virtual void ProcessAction( wxCommandEvent& event ) { event.Skip(); }
-    virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }
-    
-    
-public:
-    
-    frmContactEditorVendorADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Vendor Namespace Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 448,270 ), long style = wxDEFAULT_DIALOG_STYLE );
-    ~frmContactEditorVendorADT();
-    
-};
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class frmContactEditorXTokenADT
-///////////////////////////////////////////////////////////////////////////////
-class frmContactEditorXTokenADT : public wxDialog
-{
-private:
-    
-protected:
-    wxNotebook* nbkWebsite;
-    wxPanel* tabGeneral;
-    wxStaticText* lblTokenName;
-    wxTextCtrl* txtTokenName;
-    wxStaticText* lblXT;
-    wxTextCtrl* txtValue;
-    wxButton* btnAction;
-    wxButton* btnClose;
-    
-    // Virtual event handlers, overide them in your derived class
-    virtual void ProcessAction( wxCommandEvent& event ) { event.Skip(); }
-    virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }
-    
-    
-public:
-    
-    frmContactEditorXTokenADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("X-Token Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 448,270 ), long style = wxDEFAULT_DIALOG_STYLE );
-    ~frmContactEditorXTokenADT();
-    
-};
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class frmContactEditorKeyADT
-///////////////////////////////////////////////////////////////////////////////
-class frmContactEditorKeyADT : public wxDialog
-{
-private:
-    
-protected:
-    wxNotebook* nbkWebsite;
-    wxPanel* tabGeneral;
-    wxStaticText* lblKeyType;
-    wxChoice* cmbKeyMainType;
-    wxStaticText* lblType;
-    wxChoice* cmbType;
-    wxStaticText* lblPriority;
-    wxCheckBox* chkUsePref;
-    wxSlider* sliPriority;
-    wxStaticText* lblHigh;
-    wxStaticText* lblLow;
-    wxPanel* tabURL;
-    wxStaticText* lblKeyFormat;
-    wxComboBox* cmbURL;
-    wxStaticText* lblAddress;
-    wxTextCtrl* txtAddress;
-    wxPanel* tabKey;
-    wxStaticText* lblKeyFormatData;
-    wxComboBox* cmbKeyType;
-    wxStaticText* lblKeyData;
-    wxTextCtrl* txtKeyData;
-    wxButton* btnAction;
-    wxButton* btnClose;
-    
-    // Virtual event handlers, overide them in your derived class
-    virtual void ProcessKeyType( wxCommandEvent& event ) { event.Skip(); }
-    virtual void EnablePriority( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ConvertURLType( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ConvertKeyType( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ProcessAction( wxCommandEvent& event ) { event.Skip(); }
-    virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }
-    
-    
-public:
-    
-    frmContactEditorKeyADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Key Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 448,270 ), long style = wxDEFAULT_DIALOG_STYLE );
-    ~frmContactEditorKeyADT();
-    
-};
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class frmContactEditorEmailADT
-///////////////////////////////////////////////////////////////////////////////
-class frmContactEditorEmailADT : public wxDialog
-{
-private:
-    
-protected:
-    wxNotebook* nbkEmail;
-    wxPanel* tabGeneral;
-    wxStaticText* lblEmailAddress;
-    wxTextCtrl* txtEmail;
-    wxStaticText* lblPriority;
-    wxCheckBox* chkUsePref;
-    wxSlider* sliPriority;
-    wxStaticText* lblHigh;
-    wxStaticText* lblLow;
-    wxButton* btnAction;
-    wxButton* btnClose;
-    
-    // Virtual event handlers, overide them in your derived class
-    virtual void EnablePriority( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ProcessData( wxCommandEvent& event ) { event.Skip(); }
-    virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }
-    
-    
-public:
-    
-    frmContactEditorEmailADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Email Address Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 411,251 ), long style = wxDEFAULT_DIALOG_STYLE );
-    ~frmContactEditorEmailADT();
-    
-};
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class frmContactEditorIMADT
-///////////////////////////////////////////////////////////////////////////////
-class frmContactEditorIMADT : public wxDialog
-{
-private:
-    
-protected:
-    wxNotebook* nbkIM;
-    wxPanel* tabGeneral;
-    wxStaticText* lblIMType;
-    wxComboBox* cmbIMType;
-    wxStaticText* lblUsername;
-    wxTextCtrl* txtUsername;
-    wxStaticText* lblPriority;
-    wxCheckBox* chkUsePref;
-    wxSlider* sliPriority;
-    wxStaticText* lblHigh;
-    wxStaticText* lblLow;
-    wxButton* btnAction;
-    wxButton* btnClose;
-    
-    // Virtual event handlers, overide them in your derived class
-    virtual void EnablePriority( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ProcessAction( wxCommandEvent& event ) { event.Skip(); }
-    virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }
-    
-    
-public:
-    
-    frmContactEditorIMADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Instant Messaging Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 424,224 ), long style = wxDEFAULT_DIALOG_STYLE );
-    ~frmContactEditorIMADT();
-    
-};
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class frmContactEditorCategoryADT
-///////////////////////////////////////////////////////////////////////////////
-class frmContactEditorCategoryADT : public wxDialog
-{
-private:
-    
-protected:
-    wxNotebook* nbkIM;
-    wxPanel* tabGeneral;
-    wxStaticText* lblCategory;
-    wxTextCtrl* txtCategory;
-    wxStaticText* lblType;
-    wxChoice* cmbType;
-    wxStaticText* lblPriority;
-    wxCheckBox* chkUsePref;
-    wxSlider* sliPriority;
-    wxStaticText* lblHigh;
-    wxStaticText* lblLow;
-    wxButton* btnAction;
-    wxButton* btnClose;
-    
-    // Virtual event handlers, overide them in your derived class
-    virtual void EnablePriority( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ProcessAction( wxCommandEvent& event ) { event.Skip(); }
-    virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }
-    
-    
-public:
-    
-    frmContactEditorCategoryADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Category Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 424,224 ), long style = wxDEFAULT_DIALOG_STYLE );
-    ~frmContactEditorCategoryADT();
-    
-};
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class frmContactEditorTelephoneADT
-///////////////////////////////////////////////////////////////////////////////
-class frmContactEditorTelephoneADT : public wxDialog
-{
-private:
-    
-protected:
-    wxNotebook* nbkAddress;
-    wxPanel* tabGeneral;
-    wxStaticText* lblTelephone;
-    wxTextCtrl* txtTelephone;
-    wxStaticText* lblPriority;
-    wxCheckBox* chkUsePref;
-    wxSlider* sliPriority;
-    wxStaticText* lblHigh;
-    wxStaticText* lblLow;
-    wxStaticText* lblTelephoneType;
-    wxCheckBox* chkVoice;
-    wxCheckBox* chkText;
-    wxCheckBox* chkFax;
-    wxCheckBox* chkMobile;
-    wxCheckBox* chkVideo;
-    wxCheckBox* chkTextphone;
-    wxCheckBox* chkPager;
-    wxButton* btnAction;
-    wxButton* btnClose;
-    
-    // Virtual event handlers, overide them in your derived class
-    virtual void EnablePriority( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ProcessAction( wxCommandEvent& event ) { event.Skip(); }
-    virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }
-    
-    
-public:
-    
-    frmContactEditorTelephoneADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Telephone Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 401,262 ), long style = wxDEFAULT_DIALOG_STYLE );
-    ~frmContactEditorTelephoneADT();
-    
-};
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class frmContactEditorLanguagesADT
-///////////////////////////////////////////////////////////////////////////////
-class frmContactEditorLanguagesADT : public wxDialog
-{
-private:
-    
-protected:
-    wxNotebook* nbkLanguages;
-    wxPanel* tabGeneral;
-    wxStaticText* lblLanguage;
-    wxTextCtrl* txtLanguage;
-    wxStaticText* lblPriority;
-    wxCheckBox* chkUsePref;
-    wxSlider* sliPriority;
-    wxStaticText* lblHigh;
-    wxStaticText* lblLow;
-    wxButton* btnAction;
-    wxButton* btnClose;
-    
-    // Virtual event handlers, overide them in your derived class
-    virtual void EnablePriority( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ProcessAction( wxCommandEvent& event ) { event.Skip(); }
-    virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }
-    
-    
-public:
-    
-    frmContactEditorLanguagesADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Language Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 350,184 ), long style = wxDEFAULT_DIALOG_STYLE );
-    ~frmContactEditorLanguagesADT();
-    
-};
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class frmContactEditorTimezonesADT
-///////////////////////////////////////////////////////////////////////////////
-class frmContactEditorTimezonesADT : public wxDialog
-{
-private:
-    
-protected:
-    wxNotebook* nbkTimezone;
-    wxPanel* tabGeneral;
-    wxStaticText* lblTimezone;
-    wxComboBox* cmbTimezone;
-    wxStaticText* lblPriority;
-    wxCheckBox* chkUsePref;
-    wxSlider* sliPriority;
-    wxStaticText* lblHigh;
-    wxStaticText* lblLow;
-    wxButton* btnAction;
-    wxButton* btnClose;
-    
-    // Virtual event handlers, overide them in your derived class
-    virtual void EnablePriority( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ProcessAction( wxCommandEvent& event ) { event.Skip(); }
-    virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }
-    
-    
-public:
-    
-    frmContactEditorTimezonesADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Timezone Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 350,184 ), long style = wxDEFAULT_DIALOG_STYLE );
-    ~frmContactEditorTimezonesADT();
-    
-};
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class XABSearchPanelADT
-///////////////////////////////////////////////////////////////////////////////
-class XABSearchPanelADT : public wxPanel
-{
-private:
-    
-protected:
-    wxChoice* choOption;
-    wxBoxSizer* szrSSet;
-    wxCheckBox* chkActive;
-    wxTextCtrl* txtSearch;
-    wxBitmapButton* btnAdd;
-    wxBitmapButton* btnDelete;
-    
-    // Virtual event handlers, overide them in your derived class
-    virtual void UpdateOptions( wxCommandEvent& event ) { event.Skip(); }
-    virtual void AddSearchWidget( wxCommandEvent& event ) { event.Skip(); }
-    virtual void RemoveSearchWidget( wxCommandEvent& event ) { event.Skip(); }
-    
-    
-public:
-    
-    XABSearchPanelADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 390,40 ), long style = wxTAB_TRAVERSAL );
-    ~XABSearchPanelADT();
-    
-};
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class frmSearchAccountsADT
-///////////////////////////////////////////////////////////////////////////////
-class frmSearchAccountsADT : public wxDialog
-{
-private:
-    
-protected:
-    wxCheckListBox* chlAccounts;
-    wxButton* btnSelect;
-    wxButton* btnCancel;
-    
-    // Virtual event handlers, overide them in your derived class
-    virtual void UpdateSelectedAccounts( wxCommandEvent& event ) { event.Skip(); }
-    virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }
-    
-    
-public:
-    
-    frmSearchAccountsADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Select Accounts"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 353,376 ), long style = wxDEFAULT_DIALOG_STYLE );
-    ~frmSearchAccountsADT();
-    
-};
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class frmEditAccountADT
-///////////////////////////////////////////////////////////////////////////////
-class frmEditAccountADT : public wxDialog
-{
-private:
-    
-protected:
-    wxNotebook* tabAccount;
-    wxPanel* tabProperties;
-    wxStaticText* lblAccName;
-    wxTextCtrl* txtAccountName;
-    wxStaticText* lblAccAdr;
-    wxTextCtrl* txtAddress;
-    wxStaticText* m_staticText193;
-    wxTextCtrl* txtPort;
-    wxStaticText* lblPort;
-    wxTextCtrl* txtUsername;
-    wxStaticText* lblPassword;
-    wxTextCtrl* txtPassword;
-    wxStaticText* lblPrefix;
-    wxTextCtrl* txtPrefix;
-    wxButton* btnDetect;
-    wxStaticText* txtSSL;
-    wxCheckBox* chkSSL;
-    wxPanel* tabRefresh;
-    wxStaticText* lblRefresh;
-    wxTextCtrl* txtRefresh;
-    wxButton* btnSave;
-    wxButton* btnCancel;
-    
-    // Virtual event handlers, overide them in your derived class
-    virtual void DetectAddressBook( wxCommandEvent& event ) { event.Skip(); }
-    virtual void UpdateSettings( wxCommandEvent& event ) { event.Skip(); }
-    virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }
-    
-    
-public:
-    
-    frmEditAccountADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Edit Account"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 306,319 ), long style = wxDEFAULT_DIALOG_STYLE );
-    ~frmEditAccountADT();
-    
-};
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class frmSSLCertificateADT
-///////////////////////////////////////////////////////////////////////////////
-class frmSSLCertificateADT : public wxDialog
-{
-private:
-    
-protected:
-    wxNotebook* m_notebook28;
-    wxPanel* tabSummary;
-    wxPanel* pnlTop;
-    wxStaticText* lblCertName;
-    wxStaticText* lblValidityStatus;
-    wxPanel* m_panel54;
-    wxStaticText* lblIssuedTo;
-    wxStaticText* lblIssuedToData;
-    wxStaticText* lblValidFrom;
-    wxStaticText* lblValidFromData;
-    wxStaticText* lblValidUntil;
-    wxStaticText* lblValidUntilData;
-    wxPanel* tabDetail;
-    wxListCtrl* lstValues;
-    wxTextCtrl* txtValueData;
-    wxPanel* tabHierarchy;
-    wxTreeCtrl* treHierarchy;
-    wxPanel* m_panel57;
-    wxButton* btnViewCert;
-    wxPanel* pnlButtons;
-    wxButton* btnClose;
-    
-    // Virtual event handlers, overide them in your derived class
-    virtual void LoadValueData( wxListEvent& event ) { event.Skip(); }
-    virtual void CheckCertificate( wxTreeEvent& event ) { event.Skip(); }
-    virtual void ViewCertificate( wxCommandEvent& event ) { event.Skip(); }
-    virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }
-    
-    
-public:
-    
-    frmSSLCertificateADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("SSL Certificate Window"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 347,402 ), long style = wxDEFAULT_DIALOG_STYLE );
-    ~frmSSLCertificateADT();
-    
-};
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class frmInvalidSSLCertificateADT
-///////////////////////////////////////////////////////////////////////////////
-class frmInvalidSSLCertificateADT : public wxDialog 
-{
-private:
-    
-protected:
-    wxStaticText* lblSSLText;
-    wxButton* btnAccept;
-    wxButton* btnReject;
-    wxButton* btnViewCert;
-    
-    // Virtual event handlers, overide them in your derived class
-    virtual void Accept( wxCommandEvent& event ) { event.Skip(); }
-    virtual void Reject( wxCommandEvent& event ) { event.Skip(); }
-    virtual void ViewCertificates( wxCommandEvent& event ) { event.Skip(); }
-    
-    
-public:
-    
-    frmInvalidSSLCertificateADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Invalid SSL Certificate"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 445,239 ), long style = wxCAPTION ); 
-    ~frmInvalidSSLCertificateADT();
-    
-};
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class frmImportContactsADT
-///////////////////////////////////////////////////////////////////////////////
-class frmImportContactsADT : public wxDialog 
-{
-private:
-    
-protected:
-    wxStaticText* lblImportText;
-    wxCheckListBox* lstContacts;
-    wxBoxSizer* szrAccount;
-    wxStaticText* lblAccountText;
-    wxButton* btnImport;
-    wxButton* btnCancel;
-    
-    // Virtual event handlers, overide them in your derived class
-    virtual void ImportContacts( wxCommandEvent& event ) { event.Skip(); }
-    virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }
-    
-    
-public:
-    
-    frmImportContactsADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 362,403 ), long style = wxDEFAULT_DIALOG_STYLE ); 
-    ~frmImportContactsADT();
-    
-};
-
-///////////////////////////////////////////////////////////////////////////////
-/// Class frmImportResultsADT
-///////////////////////////////////////////////////////////////////////////////
-class frmImportResultsADT : public wxDialog 
-{
-private:
-    
-protected:
-    wxStaticText* lblText;
-    wxTextCtrl* txtResults;
-    wxButton* btnCopyClipboard;
-    wxButton* btnFinish;
-    
-    // Virtual event handlers, overide them in your derived class
-    virtual void CopyClipboard( wxCommandEvent& event ) { event.Skip(); }
-    virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }
-    
-    
-public:
-    
-    frmImportResultsADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Import Results"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 489,299 ), long style = wxDEFAULT_DIALOG_STYLE ); 
-    ~frmImportResultsADT();
-    
-};
-
-#endif //__APPXESTIAADDRBK_H__
+///////////////////////////////////////////////////////////////////////////\r
+// C++ code generated with wxFormBuilder (version Jun 17 2015)\r
+// http://www.wxformbuilder.org/\r
+//\r
+// PLEASE DO "NOT" EDIT THIS FILE!\r
+///////////////////////////////////////////////////////////////////////////\r
+\r
+#ifndef __APPXESTIAADDRBK_H__\r
+#define __APPXESTIAADDRBK_H__\r
+\r
+#include <wx/artprov.h>\r
+#include <wx/xrc/xmlres.h>\r
+#include <wx/string.h>\r
+#include <wx/bitmap.h>\r
+#include <wx/image.h>\r
+#include <wx/icon.h>\r
+#include <wx/menu.h>\r
+#include <wx/gdicmn.h>\r
+#include <wx/font.h>\r
+#include <wx/colour.h>\r
+#include <wx/settings.h>\r
+#include <wx/statbmp.h>\r
+#include <wx/combo.h>\r
+#include <wx/sizer.h>\r
+#include <wx/listctrl.h>\r
+#include <wx/panel.h>\r
+#include <wx/html/htmlwin.h>\r
+#include <wx/splitter.h>\r
+#include <wx/statusbr.h>\r
+#include <wx/frame.h>\r
+#include <wx/stattext.h>\r
+#include <wx/statline.h>\r
+#include <wx/button.h>\r
+#include <wx/dialog.h>\r
+#include <wx/scrolwin.h>\r
+#include <wx/notebook.h>\r
+#include <wx/checkbox.h>\r
+#include <wx/choice.h>\r
+#include <wx/textctrl.h>\r
+#include <wx/combobox.h>\r
+#include <wx/datectrl.h>\r
+#include <wx/dateevt.h>\r
+#include <wx/bmpbuttn.h>\r
+#include <wx/slider.h>\r
+#include <wx/gauge.h>\r
+#include <wx/checklst.h>\r
+#include <wx/filepicker.h>\r
+#include <wx/treectrl.h>\r
+\r
+///////////////////////////////////////////////////////////////////////////\r
+\r
+#define ID_MANAGE_NEWAB 1000\r
+#define ID_MANAGE_IMPORT 1001\r
+#define ID_MANAGE_EXPORT 1002\r
+#define ID_CONTACT_EDIT 1003\r
+#define ID_CONTACT_DELETE 1004\r
+#define ID_VIEW_FNLN 1005\r
+#define ID_VIEW_LNFN 1006\r
+#define ID_VIEW_NICK 1007\r
+#define ID_VIEW_ASC 1008\r
+#define ID_VIEW_DESC 1009\r
+#define ID_VIEW_STATUSBAR 1010\r
+#define ID_MANAGE_CUT 1011\r
+#define ID_MANAGE_COPY 1012\r
+#define ID_MANAGE_PASTE 1013\r
+#define ID_HELP_SHOW 1014\r
+#define ID_MANAGE_UPDATE 1015\r
+#define ID_CONTACT_CLOSE 1016\r
+#define CONTACT_SAVE 1017\r
+#define CONTACT_SAVECLOSE 1018\r
+#define CONTACT_CLOSE 1019\r
+\r
+///////////////////////////////////////////////////////////////////////////////\r
+/// Class frmMainADT\r
+///////////////////////////////////////////////////////////////////////////////\r
+class frmMainADT : public wxFrame \r
+{\r
+       private:\r
+       \r
+       protected:\r
+               wxMenuBar* mnuMain;\r
+               wxMenu* mnuManage;\r
+               wxMenuItem* mnuPrefSep;\r
+               wxMenuItem* mnuExitSep;\r
+               wxMenu* mnuContact;\r
+               wxMenu* mnuView;\r
+               wxMenu* mnuShowContactsAs;\r
+               wxMenu* mnuViewSortBy;\r
+               wxMenu* mnuViewShow;\r
+               wxMenu* mnuEdit;\r
+               wxMenu* mnuWindow;\r
+               wxMenu* mnuHelp;\r
+               wxMenuItem* mnuHelpAboutSep;\r
+               wxBoxSizer* szrMain;\r
+               wxStaticBitmap* bmpIcon;\r
+               wxComboCtrl* AccCtrl;\r
+               wxSplitterWindow* m_splitter13;\r
+               wxPanel* m_panel19;\r
+               wxFlexGridSizer* szrContactList;\r
+               wxFlexGridSizer* szrAccList;\r
+               wxListCtrl* lstContacts;\r
+               wxPanel* m_panel20;\r
+               wxHtmlWindow* htmContactData;\r
+               wxStatusBar* stbBottom;\r
+               \r
+               // Virtual event handlers, overide them in your derived class\r
+               virtual void OpenNewABDialog( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void RefreshAddressBook( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void OpenImportDialog( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void OpenExportDialog( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void OpenPreferences( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void QuitApp( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ShowContactEditorNew( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ShowContactEditorEdit( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteContact( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void OpenFindContactsWindow( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void SortFNLN( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void SortLNFN( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void SortNickname( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void SortDisplayAs( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void SortAscending( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void SortDescending( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ToggleStatusBar( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ShowActivityWindow( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void CutAction( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void CopyAction( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void PasteAction( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ShowHelp( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void CheckUpdates( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ShowAboutWindow( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void OpenContactInfo( wxListEvent& event ) { event.Skip(); }\r
+               virtual void ShowContactInfo( wxListEvent& event ) { event.Skip(); }\r
+               virtual void ShowContactSubmenu( wxMouseEvent& event ) { event.Skip(); }\r
+               virtual void UpdateSBIconPlacement( wxSizeEvent& event ) { event.Skip(); }\r
+               \r
+       \r
+       public:\r
+               \r
+               frmMainADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Xestia Address Book"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 500,300 ), long style = wxDEFAULT_FRAME_STYLE );\r
+               \r
+               ~frmMainADT();\r
+               \r
+               void m_splitter13OnIdle( wxIdleEvent& )\r
+               {\r
+                       m_splitter13->SetSashPosition( 314 );\r
+                       m_splitter13->Disconnect( wxEVT_IDLE, wxIdleEventHandler( frmMainADT::m_splitter13OnIdle ), NULL, this );\r
+               }\r
+       \r
+};\r
+\r
+///////////////////////////////////////////////////////////////////////////////\r
+/// Class frmUpdateADT\r
+///////////////////////////////////////////////////////////////////////////////\r
+class frmUpdateADT : public wxDialog \r
+{\r
+       private:\r
+       \r
+       protected:\r
+               wxPanel* pnlUpdateData;\r
+               wxStaticText* lblRunningText;\r
+               wxStaticText* lblRunningVer;\r
+               wxStaticText* lblAvailableText;\r
+               wxStaticText* lblAvailableVer;\r
+               wxStaticText* lblBuildTypeText;\r
+               wxStaticText* lblBuildType;\r
+               wxStaticText* lblUpdateMessage;\r
+               wxStaticLine* statLine;\r
+               wxButton* btnVisitGelforn;\r
+               wxButton* btnVisitPREMIUM;\r
+               wxButton* btnClose;\r
+               \r
+               // Virtual event handlers, overide them in your derived class\r
+               virtual void VisitGelforn( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void VisitPREMIUM( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }\r
+               \r
+       \r
+       public:\r
+               \r
+               frmUpdateADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Check For Updates"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 433,273 ), long style = wxDEFAULT_DIALOG_STYLE ); \r
+               ~frmUpdateADT();\r
+       \r
+};\r
+\r
+///////////////////////////////////////////////////////////////////////////////\r
+/// Class frmSearchADT\r
+///////////////////////////////////////////////////////////////////////////////\r
+class frmSearchADT : public wxFrame \r
+{\r
+       private:\r
+       \r
+       protected:\r
+               wxStatusBar* stbBottom;\r
+               wxSplitterWindow* m_splitter4;\r
+               wxPanel* m_panel60;\r
+               wxNotebook* nbkSearch;\r
+               wxScrolledWindow* tabSearch;\r
+               wxFlexGridSizer* szrSearch;\r
+               wxScrolledWindow* tabAdvanced;\r
+               wxButton* btnSelectAccounts;\r
+               wxButton* btnSearch;\r
+               wxButton* btnReset;\r
+               wxPanel* m_panel61;\r
+               wxListCtrl* lstResults;\r
+               wxMenuBar* m_menubar5;\r
+               wxMenu* mnuContact;\r
+               \r
+               // Virtual event handlers, overide them in your derived class\r
+               virtual void CloseWindow( wxCloseEvent& event ) { event.Skip(); }\r
+               virtual void SelectAccounts( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void SearchContacts( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ResetContacts( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void OpenContact( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void EditContact( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void RevealContact( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }\r
+               \r
+       \r
+       public:\r
+               \r
+               frmSearchADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Search Contacts"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 517,450 ), long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL );\r
+               \r
+               ~frmSearchADT();\r
+               \r
+               void m_splitter4OnIdle( wxIdleEvent& )\r
+               {\r
+                       m_splitter4->SetSashPosition( 178 );\r
+                       m_splitter4->Disconnect( wxEVT_IDLE, wxIdleEventHandler( frmSearchADT::m_splitter4OnIdle ), NULL, this );\r
+               }\r
+       \r
+};\r
+\r
+///////////////////////////////////////////////////////////////////////////////\r
+/// Class frmPreferencesADT\r
+///////////////////////////////////////////////////////////////////////////////\r
+class frmPreferencesADT : public wxDialog \r
+{\r
+       private:\r
+       \r
+       protected:\r
+               wxNotebook* NbtPreferences;\r
+               wxPanel* tabGeneral;\r
+               wxCheckBox* chkSaveWindowPosition;\r
+               wxCheckBox* chkHideLocal;\r
+               wxPanel* tabTheme;\r
+               wxListCtrl* lstThemes;\r
+               wxButton* btnThemeAdd;\r
+               wxButton* btnThemeModify;\r
+               wxButton* btnThemeDelete;\r
+               wxPanel* tabAccounts;\r
+               wxListCtrl* lstAccounts;\r
+               wxButton* btnAccountAdd;\r
+               wxButton* btnAccountModify;\r
+               wxButton* btnAccountDelete;\r
+               wxButton* btnSave;\r
+               wxButton* btnCancel;\r
+               \r
+               // Virtual event handlers, overide them in your derived class\r
+               virtual void LoadPreferences( wxInitDialogEvent& event ) { event.Skip(); }\r
+               virtual void DisableABButtons( wxListEvent& event ) { event.Skip(); }\r
+               virtual void EnableABButtons( wxListEvent& event ) { event.Skip(); }\r
+               virtual void AddABAccount( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyABAccount( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteABAccount( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void SavePreferences( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }\r
+               \r
+       \r
+       public:\r
+               \r
+               frmPreferencesADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Preferences"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 450,400 ), long style = wxDEFAULT_DIALOG_STYLE ); \r
+               ~frmPreferencesADT();\r
+       \r
+};\r
+\r
+///////////////////////////////////////////////////////////////////////////////\r
+/// Class frmAboutADT\r
+///////////////////////////////////////////////////////////////////////////////\r
+class frmAboutADT : public wxDialog \r
+{\r
+       private:\r
+       \r
+       protected:\r
+               wxStaticBitmap* bmpLogo;\r
+               wxStaticText* lblVersion;\r
+               wxStaticText* lblCompileTime;\r
+               wxStaticText* lblCopyright;\r
+               wxButton* btnClose;\r
+               \r
+               // Virtual event handlers, overide them in your derived class\r
+               virtual void CloseAboutWindow( wxCommandEvent& event ) { event.Skip(); }\r
+               \r
+       \r
+       public:\r
+               \r
+               frmAboutADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("About Xestia Address Book"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 350,400 ), long style = wxDEFAULT_DIALOG_STYLE ); \r
+               ~frmAboutADT();\r
+       \r
+};\r
+\r
+///////////////////////////////////////////////////////////////////////////////\r
+/// Class frmContactADT\r
+///////////////////////////////////////////////////////////////////////////////\r
+class frmContactADT : public wxFrame \r
+{\r
+       private:\r
+       \r
+       protected:\r
+               wxHtmlWindow* htmContactData;\r
+               wxMenuBar* m_menubar2;\r
+               wxMenu* contact;\r
+               \r
+               // Virtual event handlers, overide them in your derived class\r
+               virtual void CloseWindow( wxCloseEvent& event ) { event.Skip(); }\r
+               virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }\r
+               \r
+       \r
+       public:\r
+               \r
+               frmContactADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 320,240 ), long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL );\r
+               \r
+               ~frmContactADT();\r
+       \r
+};\r
+\r
+///////////////////////////////////////////////////////////////////////////////\r
+/// Class frmNewAccountADT\r
+///////////////////////////////////////////////////////////////////////////////\r
+class frmNewAccountADT : public wxDialog \r
+{\r
+       private:\r
+       \r
+       protected:\r
+               wxBoxSizer* szrNewAccount;\r
+               wxPanel* tabType;\r
+               wxStaticText* lblEnterText;\r
+               wxStaticText* lblType;\r
+               wxChoice* cmbServerType;\r
+               wxStaticText* lblServerAddress;\r
+               wxTextCtrl* txtServerAddress;\r
+               wxStaticText* lblServerPort;\r
+               wxTextCtrl* txtServerPort;\r
+               wxStaticText* lblUsername;\r
+               wxTextCtrl* txtUsername;\r
+               wxStaticText* lblPassword;\r
+               wxTextCtrl* txtPassword;\r
+               wxStaticText* lblSSL;\r
+               wxCheckBox* chkUseSSL;\r
+               wxPanel* tabConn;\r
+               wxStaticText* lblConnectionResult;\r
+               wxStaticText* lblServerConnected;\r
+               wxStaticText* lblServerConnResult;\r
+               wxStaticText* lblValidResponse;\r
+               wxStaticText* lblServerResponse;\r
+               wxStaticText* lblUseSSL;\r
+               wxStaticText* lblServerSSLResult;\r
+               wxStaticText* lblServerSSLCert;\r
+               wxStaticText* lblServerSSLValid;\r
+               wxStaticText* lblServerUsernamePassword;\r
+               wxStaticText* lblAbleToLoginResult;\r
+               wxStaticText* lblIsCalDAV;\r
+               wxStaticText* lblCardDAVSupportResult;\r
+               wxStaticLine* m_staticline3;\r
+               wxStaticText* lblConnectionResultText;\r
+               wxPanel* tabFinish;\r
+               wxStaticText* lblFinishText;\r
+               wxStaticText* lblAccountName;\r
+               wxTextCtrl* txtAccountName;\r
+               wxButton* btnPrevious;\r
+               wxButton* btnNext;\r
+               wxButton* btnClose;\r
+               \r
+               // Virtual event handlers, overide them in your derived class\r
+               virtual void UpdateRequirements( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void CheckAccountName( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ProcessPrevious( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ProcessNext( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }\r
+               \r
+       \r
+       public:\r
+               \r
+               frmNewAccountADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("New Account"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 425,330 ), long style = wxDEFAULT_DIALOG_STYLE ); \r
+               ~frmNewAccountADT();\r
+       \r
+};\r
+\r
+///////////////////////////////////////////////////////////////////////////////\r
+/// Class frmContactEditorADT\r
+///////////////////////////////////////////////////////////////////////////////\r
+class frmContactEditorADT : public wxFrame \r
+{\r
+       private:\r
+       \r
+       protected:\r
+               wxNotebook* nbkContact;\r
+               wxScrolledWindow* tabGeneral;\r
+               wxStaticText* lblTitle;\r
+               wxTextCtrl* txtTitle;\r
+               wxStaticText* lblForename;\r
+               wxTextCtrl* txtForename;\r
+               wxStaticText* lblSurname;\r
+               wxTextCtrl* txtSurname;\r
+               wxStaticText* lblOtherNames;\r
+               wxTextCtrl* txtOtherNames;\r
+               wxStaticText* lblSuffix;\r
+               wxTextCtrl* txtSuffix;\r
+               wxStaticText* lblDisplayAs;\r
+               wxComboBox* cmbDisplayAs;\r
+               wxStaticText* lblBirthday;\r
+               wxDatePickerCtrl* dapBirthday;\r
+               wxTextCtrl* txtBirthday;\r
+               wxStaticText* lblAnniversary;\r
+               wxDatePickerCtrl* dapAnniversary;\r
+               wxTextCtrl* txtAnniversary;\r
+               wxStaticText* lblGender;\r
+               wxChoice* cmbGender;\r
+               wxTextCtrl* txtGenderDescription;\r
+               wxStaticText* lblType;\r
+               wxChoice* cmbType;\r
+               wxStaticText* lblNicknames;\r
+               wxListCtrl* lboNicknames;\r
+               wxButton* btnAddGeneralNickname;\r
+               wxButton* btnModifyGeneralNickname;\r
+               wxButton* btnDeleteGeneralNickname;\r
+               wxStaticText* lblAddress;\r
+               wxListCtrl* lboAddresses;\r
+               wxButton* btnAddGeneralAddress;\r
+               wxButton* btnModifyGeneralAddress;\r
+               wxButton* btnDeleteGeneralAddress;\r
+               wxStaticText* lblEmail;\r
+               wxListCtrl* lboEmails;\r
+               wxButton* btnAddEmailAddress;\r
+               wxButton* btnModifyEmailAddress;\r
+               wxButton* btnDeleteEmailAddress;\r
+               wxStaticText* lblIM;\r
+               wxListCtrl* lboIM;\r
+               wxButton* btnAddIMAddress;\r
+               wxButton* btnModifyIMAddress;\r
+               wxButton* btnDeleteIMAddress;\r
+               wxStaticText* lblTelephone;\r
+               wxListCtrl* lboTelephone;\r
+               wxButton* btnAddTelephone;\r
+               wxButton* btnModifyTelephone;\r
+               wxButton* btnDeleteTelephone;\r
+               wxStaticText* lblLanguages;\r
+               wxListCtrl* lboLanguages;\r
+               wxButton* btnAddLanguage;\r
+               wxButton* btnModifyLanguage;\r
+               wxButton* btnDeleteLanguage;\r
+               wxStaticText* lblTimezone;\r
+               wxListCtrl* lboTimezones;\r
+               wxButton* btnAddTimezone;\r
+               wxButton* btnModifyTimezone;\r
+               wxButton* btnDeleteTimezone;\r
+               wxStaticText* lblGeopositioning;\r
+               wxListCtrl* lboGeoposition;\r
+               wxButton* btnAddGeneralGeoposition;\r
+               wxButton* btnModifyGeneralGeoposition;\r
+               wxButton* btnDeleteGeneralGeoposition;\r
+               wxStaticText* lblRelated;\r
+               wxListCtrl* lboRelated;\r
+               wxButton* btnAddRelated;\r
+               wxButton* btnModifyRelated;\r
+               wxButton* btnDeleteRelated;\r
+               wxStaticText* lblWebsites;\r
+               wxListCtrl* lboWebsites;\r
+               wxButton* btnAddWebsite;\r
+               wxButton* btnModifyWebsite;\r
+               wxButton* btnDeleteWebsite;\r
+               wxStaticText* lblTitles;\r
+               wxListCtrl* lboTitles;\r
+               wxButton* btnAddTitle;\r
+               wxButton* btnModifyTitle;\r
+               wxButton* btnDeleteTitle;\r
+               wxStaticText* lblRoles;\r
+               wxListCtrl* lboRoles;\r
+               wxButton* btnAddRole;\r
+               wxButton* btnModifyRole;\r
+               wxButton* btnDeleteRole;\r
+               wxStaticText* lblOrganisations;\r
+               wxListCtrl* lboOrganisations;\r
+               wxButton* btnAddOrganisations;\r
+               wxButton* btnModifyOrganisations;\r
+               wxButton* btnDeleteOrganisations;\r
+               wxStaticText* lblNotes;\r
+               wxListCtrl* lboNotes;\r
+               wxButton* btnAddNote;\r
+               wxButton* btnModifyNote;\r
+               wxButton* btnDeleteNote;\r
+               wxScrolledWindow* tabHome;\r
+               wxStaticText* lblHomeNickname;\r
+               wxListCtrl* lboHomeNicknames;\r
+               wxButton* btnAddHomeNickname;\r
+               wxButton* btnModifyHomeNickname;\r
+               wxButton* btnDeleteHomeNickname;\r
+               wxStaticText* lblHomeAddresses;\r
+               wxListCtrl* lboHomeAddresses;\r
+               wxButton* btnAddHomeAddress;\r
+               wxButton* btnModifyHomeAddress;\r
+               wxButton* btnDeleteHomeAddress;\r
+               wxStaticText* lblHomeEmail;\r
+               wxListCtrl* lboHomeEmails;\r
+               wxButton* btnAddHomeEmailAddress;\r
+               wxButton* btnModifyHomeEmailAddress;\r
+               wxButton* btnDeleteHomeEmailAddress;\r
+               wxStaticText* lblHomeIM;\r
+               wxListCtrl* lboHomeIM;\r
+               wxButton* btnAddHomeIMAddress;\r
+               wxButton* btnModifyHomeIMAddress;\r
+               wxButton* btnDeleteHomeIMAddress;\r
+               wxStaticText* lblHomeTelephone;\r
+               wxListCtrl* lboHomeTelephone;\r
+               wxButton* btnAddHomeTelephone;\r
+               wxButton* btnModifyHomeTelephone;\r
+               wxButton* btnDeleteHomeTelephone;\r
+               wxStaticText* lblHomeLanguages;\r
+               wxListCtrl* lboHomeLanguages;\r
+               wxButton* btnAddHomeLanguage;\r
+               wxButton* btnModifyHomeLanguage;\r
+               wxButton* btnDeleteHomeLanguage;\r
+               wxStaticText* lblHomeTimezone;\r
+               wxListCtrl* lboHomeTimezones;\r
+               wxButton* btnAddHomeTimezone;\r
+               wxButton* btnModifyHomeTimezone;\r
+               wxButton* btnDeleteHomeTimezone;\r
+               wxStaticText* lblHomeGeopositioning;\r
+               wxListCtrl* lboHomeGeoposition;\r
+               wxButton* btnAddHomeGeoposition;\r
+               wxButton* btnModifyHomeGeoposition;\r
+               wxButton* btnDeleteHomePosition;\r
+               wxStaticText* lblHomeWebsites;\r
+               wxListCtrl* lboHomeWebsites;\r
+               wxButton* btnAddHomeWebsite;\r
+               wxButton* btnHomeModifyWebsite;\r
+               wxButton* btnDeleteHomeWebsite;\r
+               wxStaticText* lblHomeTitles;\r
+               wxListCtrl* lboHomeTitles;\r
+               wxButton* btnAddHomeTitle;\r
+               wxButton* btnModifyHomeTitle;\r
+               wxButton* btnDeleteHomeTitle;\r
+               wxStaticText* lblHomeRoles;\r
+               wxListCtrl* lboHomeRoles;\r
+               wxButton* btnAddHomeRole;\r
+               wxButton* btnModifyHomeRole;\r
+               wxButton* btnDeleteHomeRole;\r
+               wxStaticText* lblHomeOrganisations;\r
+               wxListCtrl* lboHomeOrganisations;\r
+               wxButton* btnAddHomeOrganisations;\r
+               wxButton* btnModifyHomeOrganisations;\r
+               wxButton* btnDeleteHomeOrganisations;\r
+               wxStaticText* lblHomeNotes;\r
+               wxListCtrl* lboHomeNotes;\r
+               wxButton* btnAddHomeNote;\r
+               wxButton* btnModifyHomeNote;\r
+               wxButton* btnDeleteHomeNote;\r
+               wxScrolledWindow* tabBusiness;\r
+               wxStaticText* lblBusinessNickname;\r
+               wxListCtrl* lboBusinessNicknames;\r
+               wxButton* btnAddBusinessNickname;\r
+               wxButton* btnModifyBusinessNickname;\r
+               wxButton* btnDeleteBusinessNickname;\r
+               wxStaticText* lblBusinessAddress;\r
+               wxListCtrl* lboBusinessAddresses;\r
+               wxButton* btnAddBusinessAddress;\r
+               wxButton* btnModifyBusinessAddress;\r
+               wxButton* btnDeleteBusinessAddress;\r
+               wxStaticText* lblBusinessEmail;\r
+               wxListCtrl* lboBusinessEmail;\r
+               wxButton* btnAddBusinessEmailAddress;\r
+               wxButton* btnModifyBusinessEmailAddress;\r
+               wxButton* btnDeleteBusinessEmailAddress;\r
+               wxStaticText* lblBusinessIM;\r
+               wxListCtrl* lboBusinessIM;\r
+               wxButton* btnAddBusinessIMAddress;\r
+               wxButton* btnModifyBusinessIMAddress;\r
+               wxButton* btnDeleteBusinessIMAddress;\r
+               wxStaticText* lblBusinessTelephone;\r
+               wxListCtrl* lboBusinessTelephone;\r
+               wxButton* btnBusinessAddTelephone;\r
+               wxButton* btnBusinessModifyTelephone;\r
+               wxButton* btnBusinessDeleteTelephone;\r
+               wxStaticText* lblBusinessLanguage;\r
+               wxListCtrl* lboBusinessLanguages;\r
+               wxButton* btnBusinessAddLanguage;\r
+               wxButton* btnBusinessModifyLanguage;\r
+               wxButton* btnBusinessDeleteLanguage;\r
+               wxStaticText* lblBusinessTimezones;\r
+               wxListCtrl* lboBusinessTimezones;\r
+               wxButton* btnBusinessAddTimezone;\r
+               wxButton* btnBusinessModifyTimezone;\r
+               wxButton* btnDeleteBusinessTimezone;\r
+               wxStaticText* lblBusinessGeopositioning;\r
+               wxListCtrl* lboBusinessGeoposition;\r
+               wxButton* btnAddBusinessGeoposition;\r
+               wxButton* btnModifyBusinessGeoposition;\r
+               wxButton* btnDeleteBusinessGeoposition;\r
+               wxStaticText* lblBusinessWebsites;\r
+               wxListCtrl* lboBusinessWebsites;\r
+               wxButton* btnAddBusinessWebsite;\r
+               wxButton* btnModifyBusinessWebsite;\r
+               wxButton* btnDeleteBusinessWebsite;\r
+               wxStaticText* lblBusinessTitles;\r
+               wxListCtrl* lboBusinessTitles;\r
+               wxButton* btnAddBusinessTitle;\r
+               wxButton* btnModifyBusinessTitle;\r
+               wxButton* btnDeleteBusinessTitle;\r
+               wxStaticText* lblBusinessRoles;\r
+               wxListCtrl* lboBusinessRoles;\r
+               wxButton* btnAddBusinessRole;\r
+               wxButton* btnModifyBusinessRole;\r
+               wxButton* btnDeleteBusinessRole;\r
+               wxStaticText* lblBusinessOrganisations;\r
+               wxListCtrl* lboBusinessOrganisations;\r
+               wxButton* btnAddBusinessOrganisations;\r
+               wxButton* btnModifyBusinessOrganisations;\r
+               wxButton* btnDeleteBusinessOrganisations;\r
+               wxStaticText* lblBusinessNotes;\r
+               wxListCtrl* lboBusinessNotes;\r
+               wxButton* btnBusinessAddNote;\r
+               wxButton* btnBusinessModifyNote;\r
+               wxButton* btnBusinessDeleteNote;\r
+               wxScrolledWindow* tabCategories;\r
+               wxListCtrl* lboCategories;\r
+               wxButton* btnAddCategory;\r
+               wxButton* btnModifyCategory;\r
+               wxButton* btnDeleteCategory;\r
+               wxScrolledWindow* tabMembers;\r
+               wxListCtrl* lboGroups;\r
+               wxButton* btnAddGroups;\r
+               wxButton* btnModifyGroups;\r
+               wxButton* btnDeleteGroups;\r
+               wxScrolledWindow* tabPictures;\r
+               wxStaticBitmap* imgPicture;\r
+               wxListCtrl* lboPictures;\r
+               wxButton* btnAddPicture;\r
+               wxButton* btnModifyPicture;\r
+               wxButton* btnDeletePicture;\r
+               wxScrolledWindow* tabLogo;\r
+               wxStaticBitmap* imgLogo;\r
+               wxListCtrl* lboLogos;\r
+               wxButton* btnAddLogo;\r
+               wxButton* btnModifyLogo;\r
+               wxButton* btnDeleteLogo;\r
+               wxScrolledWindow* tabSounds;\r
+               wxListCtrl* lboSounds;\r
+               wxButton* btnAddSound;\r
+               wxButton* btnModifySound;\r
+               wxButton* btnDeleteSound;\r
+               wxStaticLine* m_staticline1;\r
+               wxBitmapButton* btnPlay;\r
+               wxBitmapButton* btnStop;\r
+               wxScrolledWindow* tabCalendaring;\r
+               wxStaticText* lblCalendarAddresses;\r
+               wxListCtrl* lboCalendarAddresses;\r
+               wxButton* btnAddCalendarAddress;\r
+               wxButton* btnModifyCalendarAddress;\r
+               wxButton* btnDeleteCalendarAddress;\r
+               wxStaticText* lblCalendarRequestAddresses;\r
+               wxListCtrl* lboCalendarRequestAddress;\r
+               wxButton* btnAddCalendarRequestAddress;\r
+               wxButton* btnModifyCalendarRequestAddress;\r
+               wxButton* btnDeleteCalendarRequestAddress;\r
+               wxStaticText* lblFreeBusyAddresses;\r
+               wxListCtrl* lboFreeBusyAddresses;\r
+               wxButton* btnAddFreeBusyAddress;\r
+               wxButton* btnModifyFreeBusyAddress;\r
+               wxButton* btnDeleteFreeBusyAddress;\r
+               wxScrolledWindow* tabSecurity;\r
+               wxListCtrl* lboKeys;\r
+               wxButton* btnAddKey;\r
+               wxButton* btnModifyKey;\r
+               wxButton* btnDeleteKey;\r
+               wxScrolledWindow* tabOther;\r
+               wxStaticText* lblVendorNamespace;\r
+               wxListCtrl* lboVendorNamespace;\r
+               wxButton* btnAddVendorNamespace;\r
+               wxButton* btnModifyVendorNamespace;\r
+               wxButton* btnDeleteVendorNamespace;\r
+               wxStaticText* lblXTokens;\r
+               wxListCtrl* lboXToken;\r
+               wxButton* btnAddXToken;\r
+               wxButton* btnModifyXToken;\r
+               wxButton* btnDeleteXToken;\r
+               wxMenuBar* m_menubar3;\r
+               wxMenu* mnuContact;\r
+               wxMenu* mnuEdit;\r
+               \r
+               // Virtual event handlers, overide them in your derived class\r
+               virtual void CloseWindow( wxCloseEvent& event ) { event.Skip(); }\r
+               virtual void UpdateDisplayAs( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void UpdateName( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void UpdateMembersTab( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddGeneralNickname( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyGeneralNickname( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteGeneralNickname( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddGeneralAddress( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyGeneralAddress( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteGeneralAddress( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddGeneralEmail( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyGeneralEmail( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteGeneralEmail( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddGeneralIM( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyGeneralIM( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteGeneralIM( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddGeneralTelephone( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyGeneralTelephone( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteGeneralTelephone( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddGeneralLanguages( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyGeneralLanguages( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteGeneralLanguage( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddGeneralTimezone( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyGeneralTimezone( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteGeneralTimezone( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddGeneralGeoposition( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyGeneralGeoposition( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteGeneralGeoposition( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddGeneralRelated( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyGeneralRelated( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteGeneralRelated( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddGeneralWebsite( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyGeneralWebsite( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteGeneralWebsite( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddGeneralTitle( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyGeneralTitle( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteGeneralTitle( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddGeneralRole( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyGeneralRole( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteGeneralRole( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddGeneralOrganisation( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyGeneralOrganisation( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteGeneralOrganisation( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddGeneralNote( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyGeneralNote( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteGeneralNote( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddHomeNickname( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyHomeNickname( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteHomeNickname( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddHomeAddress( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyHomeAddress( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteHomeAddress( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddHomeEmail( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyHomeEmail( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteHomeEmail( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddHomeIM( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyHomeIM( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteHomeIM( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddHomeTelephone( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyHomeTelephone( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteHomeTelephone( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddHomeLanguage( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyHomeLanguage( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteHomeLanguage( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddHomeTimezone( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyHomeTimezone( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteHomeTimezone( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddHomeGeoposition( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyHomeGeoposition( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteHomeGeoposition( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddHomeWebsite( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyHomeWebsite( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteHomeWebsite( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddHomeTitle( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyHomeTitle( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteHomeTitle( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddHomeRole( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyHomeRole( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteHomeRole( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddHomeOrganisation( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyHomeOrganisation( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteHomeOrganisation( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddHomeNote( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyHomeNote( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteHomeNote( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddBusinessNickname( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyBusinessNickname( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteBusinessNickname( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddBusinessAddress( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyBusinessAddress( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteBusinessAddress( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddBusinessEmail( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyBusinessEmail( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteBusinessEmail( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddBusinessIM( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyBusinessIM( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteBusinessIM( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddBusinessTelephone( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyBusinessTelephone( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteBusinessTelephone( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddBusinessLanguage( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyBusinessLanguage( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteBusinessLanguage( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddBusinessTimezone( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyBusinessTimezone( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteBusinessTimezone( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddBusinessGeoposition( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyBusinessGeoposition( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteBusinessGeoposition( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddBusinessWebsite( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyBusinessWebsite( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteBusinessWebsite( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddBusinessTitle( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyBusinessTitle( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteBusinessTitle( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddBusinessRole( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyBusinessRole( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteBusinessRole( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddBusinessOrganisation( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyBusinessOrganisation( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteBusinessOrganisation( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddBusinessNote( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyBusinessNote( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteBusinessNote( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddCategory( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyCategory( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteCategory( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddGroup( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyGroup( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteGroup( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void LoadPicture( wxListEvent& event ) { event.Skip(); }\r
+               virtual void AddPicture( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyPicture( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeletePicture( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void LoadLogo( wxListEvent& event ) { event.Skip(); }\r
+               virtual void AddLogo( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyLogo( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteLogo( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddSound( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifySound( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteSound( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void PlaySound( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void StopSound( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddCalendarAddress( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyCalendarAddress( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteCalendarAddress( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddCalendarRequest( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyCalendarRequest( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddFreeBusy( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyFreeBusy( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteFreeBusy( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddKey( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyKey( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteKey( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddVendorNamespace( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyVendorNamespace( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteVendorNamespace( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddXToken( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ModifyXToken( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DeleteXToken( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void SaveContact( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void SaveCloseContact( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void CloseContact( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void CutText( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void CopyText( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void PasteText( wxCommandEvent& event ) { event.Skip(); }\r
+               \r
+       \r
+       public:\r
+               \r
+               frmContactEditorADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Contact Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 769,517 ), long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL );\r
+               \r
+               ~frmContactEditorADT();\r
+       \r
+};\r
+\r
+///////////////////////////////////////////////////////////////////////////////\r
+/// Class frmContactEditorAddressADT\r
+///////////////////////////////////////////////////////////////////////////////\r
+class frmContactEditorAddressADT : public wxDialog \r
+{\r
+       private:\r
+       \r
+       protected:\r
+               wxNotebook* nbkAddress;\r
+               wxPanel* tabGeneral;\r
+               wxStaticText* lblAddress;\r
+               wxTextCtrl* txtAddress;\r
+               wxStaticText* m_staticText61;\r
+               wxTextCtrl* txtTownCity;\r
+               wxStaticText* lblCountyState;\r
+               wxTextCtrl* txtCounty;\r
+               wxStaticText* lblPostCode;\r
+               wxTextCtrl* txtPostCode;\r
+               wxStaticText* lblCountry;\r
+               wxTextCtrl* txtCountry;\r
+               wxStaticText* lblPriority;\r
+               wxCheckBox* chkUsePref;\r
+               wxSlider* sliPriority;\r
+               wxStaticText* lblHigh;\r
+               wxStaticText* lblLow;\r
+               wxPanel* tabLabel;\r
+               wxButton* btnCopyMailing;\r
+               wxTextCtrl* txtLabel;\r
+               wxPanel* tabOther;\r
+               wxStaticText* lblLanguage;\r
+               wxComboBox* cmbLanguage;\r
+               wxStaticText* lblGeography;\r
+               wxTextCtrl* txtGeo;\r
+               wxStaticText* lblTimezone;\r
+               wxTextCtrl* txtTimezone;\r
+               wxButton* btnAction;\r
+               wxButton* btnClose;\r
+               \r
+               // Virtual event handlers, overide them in your derived class\r
+               virtual void InitAddressEditor( wxInitDialogEvent& event ) { event.Skip(); }\r
+               virtual void EnablePriority( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void CopyAddress( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ProcessData( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }\r
+               \r
+       \r
+       public:\r
+               \r
+               frmContactEditorAddressADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Address Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 426,317 ), long style = wxDEFAULT_DIALOG_STYLE ); \r
+               ~frmContactEditorAddressADT();\r
+       \r
+};\r
+\r
+///////////////////////////////////////////////////////////////////////////////\r
+/// Class frmConflictResolutionADT\r
+///////////////////////////////////////////////////////////////////////////////\r
+class frmConflictResolutionADT : public wxDialog \r
+{\r
+       private:\r
+       \r
+       protected:\r
+               wxStaticText* lblText;\r
+               wxSplitterWindow* m_splitter3;\r
+               wxPanel* m_panel44;\r
+               wxHtmlWindow* htmClient;\r
+               wxPanel* m_panel45;\r
+               wxHtmlWindow* htmServer;\r
+               wxButton* btnKeepLocal;\r
+               wxButton* btnKeepServer;\r
+               wxButton* btnDecideLater;\r
+               \r
+               // Virtual event handlers, overide them in your derived class\r
+               virtual void KeepLocalData( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void KeepServerData( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void DecideLater( wxCommandEvent& event ) { event.Skip(); }\r
+               \r
+       \r
+       public:\r
+               \r
+               frmConflictResolutionADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Conflict Resolution"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 536,417 ), long style = wxDEFAULT_DIALOG_STYLE ); \r
+               ~frmConflictResolutionADT();\r
+               \r
+               void m_splitter3OnIdle( wxIdleEvent& )\r
+               {\r
+                       m_splitter3->SetSashPosition( 257 );\r
+                       m_splitter3->Disconnect( wxEVT_IDLE, wxIdleEventHandler( frmConflictResolutionADT::m_splitter3OnIdle ), NULL, this );\r
+               }\r
+       \r
+};\r
+\r
+///////////////////////////////////////////////////////////////////////////////\r
+/// Class frmActivityMgrADT\r
+///////////////////////////////////////////////////////////////////////////////\r
+class frmActivityMgrADT : public wxFrame \r
+{\r
+       private:\r
+       \r
+       protected:\r
+               wxMenuBar* mnuMenuBar;\r
+               wxMenu* mnuWindow;\r
+               wxPanel* m_panel43;\r
+               wxStaticBitmap* bmpActivity;\r
+               wxPanel* m_panel46;\r
+               wxStaticText* lblDetails;\r
+               wxGauge* GauProgress;\r
+               wxPanel* m_panel44;\r
+               wxListCtrl* lstActivity;\r
+               \r
+               // Virtual event handlers, overide them in your derived class\r
+               virtual void CloseWindow( wxCloseEvent& event ) { event.Skip(); }\r
+               virtual void StopTask( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void StopAllTasks( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void RetryTask( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void SleepMode( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }\r
+               \r
+       \r
+       public:\r
+               \r
+               frmActivityMgrADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Activity Manager"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 400,300 ), long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL );\r
+               \r
+               ~frmActivityMgrADT();\r
+       \r
+};\r
+\r
+///////////////////////////////////////////////////////////////////////////////\r
+/// Class frmContactEditorNicknameADT\r
+///////////////////////////////////////////////////////////////////////////////\r
+class frmContactEditorNicknameADT : public wxDialog \r
+{\r
+       private:\r
+       \r
+       protected:\r
+               wxNotebook* nbkAddress;\r
+               wxPanel* tabGeneral;\r
+               wxStaticText* lblNickname;\r
+               wxTextCtrl* txtNickname;\r
+               wxStaticText* lblPriority;\r
+               wxCheckBox* chkUsePref;\r
+               wxSlider* sliPriority;\r
+               wxStaticText* lblHigh;\r
+               wxStaticText* lblLow;\r
+               wxPanel* tabOther;\r
+               wxStaticText* lblLanguage;\r
+               wxComboBox* cmbLanguage;\r
+               wxButton* btnAction;\r
+               wxButton* btnClose;\r
+               \r
+               // Virtual event handlers, overide them in your derived class\r
+               virtual void InitAddressEditor( wxInitDialogEvent& event ) { event.Skip(); }\r
+               virtual void EnablePriority( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ProcessData( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }\r
+               \r
+       \r
+       public:\r
+               \r
+               frmContactEditorNicknameADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Nickname Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 386,231 ), long style = wxDEFAULT_DIALOG_STYLE ); \r
+               ~frmContactEditorNicknameADT();\r
+       \r
+};\r
+\r
+///////////////////////////////////////////////////////////////////////////////\r
+/// Class frmContactEditorGroupsADT\r
+///////////////////////////////////////////////////////////////////////////////\r
+class frmContactEditorGroupsADT : public wxDialog \r
+{\r
+       private:\r
+       \r
+       protected:\r
+               wxNotebook* nbkGroup;\r
+               wxPanel* tabGeneral;\r
+               wxStaticText* lblContacts;\r
+               wxCheckListBox* chkContacts;\r
+               wxButton* btnAction;\r
+               wxButton* btnClose;\r
+               \r
+               // Virtual event handlers, overide them in your derived class\r
+               virtual void FetchContacts( wxInitDialogEvent& event ) { event.Skip(); }\r
+               virtual void ProcessData( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }\r
+               \r
+       \r
+       public:\r
+               \r
+               frmContactEditorGroupsADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Group Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 398,392 ), long style = wxDEFAULT_DIALOG_STYLE ); \r
+               ~frmContactEditorGroupsADT();\r
+       \r
+};\r
+\r
+///////////////////////////////////////////////////////////////////////////////\r
+/// Class frmContactEditorRolesADT\r
+///////////////////////////////////////////////////////////////////////////////\r
+class frmContactEditorRolesADT : public wxDialog \r
+{\r
+       private:\r
+       \r
+       protected:\r
+               wxNotebook* nbkRole;\r
+               wxPanel* tabGeneral;\r
+               wxStaticText* lblRole;\r
+               wxTextCtrl* txtRole;\r
+               wxStaticText* lblPriority;\r
+               wxCheckBox* chkUsePref;\r
+               wxSlider* sliPriority;\r
+               wxStaticText* lblHigh;\r
+               wxStaticText* lblLow;\r
+               wxButton* btnAction;\r
+               wxButton* btnClose;\r
+               \r
+               // Virtual event handlers, overide them in your derived class\r
+               virtual void EnablePriority( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ProcessAction( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }\r
+               \r
+       \r
+       public:\r
+               \r
+               frmContactEditorRolesADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Role Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 350,184 ), long style = wxDEFAULT_DIALOG_STYLE ); \r
+               ~frmContactEditorRolesADT();\r
+       \r
+};\r
+\r
+///////////////////////////////////////////////////////////////////////////////\r
+/// Class frmContactEditorOrganisationsADT\r
+///////////////////////////////////////////////////////////////////////////////\r
+class frmContactEditorOrganisationsADT : public wxDialog \r
+{\r
+       private:\r
+       \r
+       protected:\r
+               wxNotebook* nbkOrganisation;\r
+               wxPanel* tabGeneral;\r
+               wxStaticText* lblOrganisation;\r
+               wxTextCtrl* txtOrganisation;\r
+               wxStaticText* lblSortAs;\r
+               wxComboBox* cmbSortAs;\r
+               wxStaticText* lblPriority;\r
+               wxCheckBox* chkUsePref;\r
+               wxSlider* sliPriority;\r
+               wxStaticText* lblHigh;\r
+               wxStaticText* lblLow;\r
+               wxButton* btnAction;\r
+               wxButton* btnClose;\r
+               \r
+               // Virtual event handlers, overide them in your derived class\r
+               virtual void UpdateSortAs( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void EnablePriority( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ProcessAction( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }\r
+               \r
+       \r
+       public:\r
+               \r
+               frmContactEditorOrganisationsADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Organisation Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 349,224 ), long style = wxDEFAULT_DIALOG_STYLE ); \r
+               ~frmContactEditorOrganisationsADT();\r
+       \r
+};\r
+\r
+///////////////////////////////////////////////////////////////////////////////\r
+/// Class frmContactEditorNotesADT\r
+///////////////////////////////////////////////////////////////////////////////\r
+class frmContactEditorNotesADT : public wxDialog \r
+{\r
+       private:\r
+       \r
+       protected:\r
+               wxNotebook* nbkNotes;\r
+               wxPanel* tabGeneral;\r
+               wxTextCtrl* txtNote;\r
+               wxPanel* tabPriority;\r
+               wxStaticText* lblPriority;\r
+               wxCheckBox* chkUsePref;\r
+               wxSlider* sliPriority;\r
+               wxStaticText* lblHigh;\r
+               wxStaticText* lblLow;\r
+               wxPanel* tabLanguage;\r
+               wxStaticText* lblLanguage;\r
+               wxComboBox* cmbLanguage;\r
+               wxButton* btnAction;\r
+               wxButton* btnClose;\r
+               \r
+               // Virtual event handlers, overide them in your derived class\r
+               virtual void EnablePriority( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ProcessAction( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }\r
+               \r
+       \r
+       public:\r
+               \r
+               frmContactEditorNotesADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Note Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 350,184 ), long style = wxDEFAULT_DIALOG_STYLE ); \r
+               ~frmContactEditorNotesADT();\r
+       \r
+};\r
+\r
+///////////////////////////////////////////////////////////////////////////////\r
+/// Class frmContactEditorTitlesADT\r
+///////////////////////////////////////////////////////////////////////////////\r
+class frmContactEditorTitlesADT : public wxDialog \r
+{\r
+       private:\r
+       \r
+       protected:\r
+               wxNotebook* nbkTitles;\r
+               wxPanel* tabGeneral;\r
+               wxStaticText* lblTitle;\r
+               wxTextCtrl* txtTitle;\r
+               wxStaticText* lblPriority;\r
+               wxCheckBox* chkUsePref;\r
+               wxSlider* sliPriority;\r
+               wxStaticText* lblHigh;\r
+               wxStaticText* lblLow;\r
+               wxButton* btnAction;\r
+               wxButton* btnClose;\r
+               \r
+               // Virtual event handlers, overide them in your derived class\r
+               virtual void EnablePriority( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ProcessAction( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }\r
+               \r
+       \r
+       public:\r
+               \r
+               frmContactEditorTitlesADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Title Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 350,184 ), long style = wxDEFAULT_DIALOG_STYLE ); \r
+               ~frmContactEditorTitlesADT();\r
+       \r
+};\r
+\r
+///////////////////////////////////////////////////////////////////////////////\r
+/// Class frmContactEditorRelatedADT\r
+///////////////////////////////////////////////////////////////////////////////\r
+class frmContactEditorRelatedADT : public wxDialog \r
+{\r
+       private:\r
+       \r
+       protected:\r
+               wxNotebook* nbkRelated;\r
+               wxPanel* tabGeneral;\r
+               wxStaticText* lblRelation;\r
+               wxTextCtrl* txtRelated;\r
+               wxStaticText* lblType;\r
+               wxComboBox* cmbType;\r
+               wxStaticText* lblPriority;\r
+               wxCheckBox* chkUsePref;\r
+               wxSlider* sliPriority;\r
+               wxStaticText* lblHigh;\r
+               wxStaticText* lblLow;\r
+               wxButton* btnAction;\r
+               wxButton* btnClose;\r
+               \r
+               // Virtual event handlers, overide them in your derived class\r
+               virtual void EnablePriority( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ProcessData( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }\r
+               \r
+       \r
+       public:\r
+               \r
+               frmContactEditorRelatedADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Related Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 350,226 ), long style = wxDEFAULT_DIALOG_STYLE ); \r
+               ~frmContactEditorRelatedADT();\r
+       \r
+};\r
+\r
+///////////////////////////////////////////////////////////////////////////////\r
+/// Class frmContactEditorSoundADT\r
+///////////////////////////////////////////////////////////////////////////////\r
+class frmContactEditorSoundADT : public wxDialog \r
+{\r
+       private:\r
+       \r
+       protected:\r
+               wxNotebook* nbkRelated;\r
+               wxPanel* tabGeneral;\r
+               wxStaticText* lblSoundFile;\r
+               wxFilePickerCtrl* fipSound;\r
+               wxStaticText* lblType;\r
+               wxChoice* cmbType;\r
+               wxStaticText* lblPriority;\r
+               wxCheckBox* chkUsePref;\r
+               wxSlider* sliPriority;\r
+               wxStaticText* lblHigh;\r
+               wxStaticText* lblLow;\r
+               wxButton* btnAction;\r
+               wxButton* btnClose;\r
+               \r
+               // Virtual event handlers, overide them in your derived class\r
+               virtual void EnablePriority( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ProcessData( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }\r
+               \r
+       \r
+       public:\r
+               \r
+               frmContactEditorSoundADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Sound Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 350,226 ), long style = wxDEFAULT_DIALOG_STYLE ); \r
+               ~frmContactEditorSoundADT();\r
+       \r
+};\r
+\r
+///////////////////////////////////////////////////////////////////////////////\r
+/// Class frmContactEditorPictureADT\r
+///////////////////////////////////////////////////////////////////////////////\r
+class frmContactEditorPictureADT : public wxDialog \r
+{\r
+       private:\r
+       \r
+       protected:\r
+               wxNotebook* nbkRelated;\r
+               wxPanel* tabGeneral;\r
+               wxStaticText* lblPictureFile;\r
+               wxFilePickerCtrl* fipPicture;\r
+               wxStaticText* lblType;\r
+               wxChoice* cmbType;\r
+               wxStaticText* lblPriority;\r
+               wxCheckBox* chkUsePref;\r
+               wxSlider* sliPriority;\r
+               wxStaticText* lblHigh;\r
+               wxStaticText* lblLow;\r
+               wxButton* btnAction;\r
+               wxButton* btnClose;\r
+               \r
+               // Virtual event handlers, overide them in your derived class\r
+               virtual void EnablePriority( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ProcessData( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }\r
+               \r
+       \r
+       public:\r
+               \r
+               frmContactEditorPictureADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Picture Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 350,226 ), long style = wxDEFAULT_DIALOG_STYLE ); \r
+               ~frmContactEditorPictureADT();\r
+       \r
+};\r
+\r
+///////////////////////////////////////////////////////////////////////////////\r
+/// Class frmContactEditorWebsitesADT\r
+///////////////////////////////////////////////////////////////////////////////\r
+class frmContactEditorWebsitesADT : public wxDialog \r
+{\r
+       private:\r
+       \r
+       protected:\r
+               wxNotebook* nbkWebsite;\r
+               wxPanel* tabGeneral;\r
+               wxStaticText* lblWebsite;\r
+               wxTextCtrl* txtWebsite;\r
+               wxStaticText* lblPriority;\r
+               wxCheckBox* chkUsePref;\r
+               wxSlider* sliPriority;\r
+               wxStaticText* lblHigh;\r
+               wxStaticText* lblLow;\r
+               wxButton* btnAction;\r
+               wxButton* btnClose;\r
+               \r
+               // Virtual event handlers, overide them in your derived class\r
+               virtual void EnablePriority( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ProcessAction( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }\r
+               \r
+       \r
+       public:\r
+               \r
+               frmContactEditorWebsitesADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Website Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 350,184 ), long style = wxDEFAULT_DIALOG_STYLE ); \r
+               ~frmContactEditorWebsitesADT();\r
+       \r
+};\r
+\r
+///////////////////////////////////////////////////////////////////////////////\r
+/// Class frmContactEditorGeopositionADT\r
+///////////////////////////////////////////////////////////////////////////////\r
+class frmContactEditorGeopositionADT : public wxDialog \r
+{\r
+       private:\r
+       \r
+       protected:\r
+               wxNotebook* nbkWebsite;\r
+               wxPanel* tabGeneral;\r
+               wxStaticText* lblGeoposition;\r
+               wxTextCtrl* txtGeoposition;\r
+               wxStaticText* lblPriority;\r
+               wxCheckBox* chkUsePref;\r
+               wxSlider* sliPriority;\r
+               wxStaticText* lblHigh;\r
+               wxStaticText* lblLow;\r
+               wxButton* btnAction;\r
+               wxButton* btnClose;\r
+               \r
+               // Virtual event handlers, overide them in your derived class\r
+               virtual void EnablePriority( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ProcessAction( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }\r
+               \r
+       \r
+       public:\r
+               \r
+               frmContactEditorGeopositionADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Geoposition Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 350,184 ), long style = wxDEFAULT_DIALOG_STYLE ); \r
+               ~frmContactEditorGeopositionADT();\r
+       \r
+};\r
+\r
+///////////////////////////////////////////////////////////////////////////////\r
+/// Class frmContactEditorCalAdrADT\r
+///////////////////////////////////////////////////////////////////////////////\r
+class frmContactEditorCalAdrADT : public wxDialog \r
+{\r
+       private:\r
+       \r
+       protected:\r
+               wxNotebook* nbkWebsite;\r
+               wxPanel* tabGeneral;\r
+               wxStaticText* lblAddress;\r
+               wxTextCtrl* txtAddress;\r
+               wxStaticText* lblType;\r
+               wxChoice* cmbType;\r
+               wxStaticText* lblPriority;\r
+               wxCheckBox* chkUsePref;\r
+               wxSlider* sliPriority;\r
+               wxStaticText* lblHigh;\r
+               wxStaticText* lblLow;\r
+               wxButton* btnAction;\r
+               wxButton* btnClose;\r
+               \r
+               // Virtual event handlers, overide them in your derived class\r
+               virtual void EnablePriority( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ProcessAction( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }\r
+               \r
+       \r
+       public:\r
+               \r
+               frmContactEditorCalAdrADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Calendar Address Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 448,270 ), long style = wxDEFAULT_DIALOG_STYLE ); \r
+               ~frmContactEditorCalAdrADT();\r
+       \r
+};\r
+\r
+///////////////////////////////////////////////////////////////////////////////\r
+/// Class frmContactEditorVendorADT\r
+///////////////////////////////////////////////////////////////////////////////\r
+class frmContactEditorVendorADT : public wxDialog \r
+{\r
+       private:\r
+       \r
+       protected:\r
+               wxNotebook* nbkWebsite;\r
+               wxPanel* tabGeneral;\r
+               wxStaticText* lblVendorPEN;\r
+               wxTextCtrl* txtPEN;\r
+               wxStaticText* lblElement;\r
+               wxTextCtrl* txtElement;\r
+               wxStaticText* lblValue;\r
+               wxTextCtrl* txtValue;\r
+               wxButton* btnAction;\r
+               wxButton* btnClose;\r
+               \r
+               // Virtual event handlers, overide them in your derived class\r
+               virtual void ProcessAction( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }\r
+               \r
+       \r
+       public:\r
+               \r
+               frmContactEditorVendorADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Vendor Namespace Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 448,270 ), long style = wxDEFAULT_DIALOG_STYLE ); \r
+               ~frmContactEditorVendorADT();\r
+       \r
+};\r
+\r
+///////////////////////////////////////////////////////////////////////////////\r
+/// Class frmContactEditorXTokenADT\r
+///////////////////////////////////////////////////////////////////////////////\r
+class frmContactEditorXTokenADT : public wxDialog \r
+{\r
+       private:\r
+       \r
+       protected:\r
+               wxNotebook* nbkWebsite;\r
+               wxPanel* tabGeneral;\r
+               wxStaticText* lblTokenName;\r
+               wxTextCtrl* txtTokenName;\r
+               wxStaticText* lblXT;\r
+               wxTextCtrl* txtValue;\r
+               wxButton* btnAction;\r
+               wxButton* btnClose;\r
+               \r
+               // Virtual event handlers, overide them in your derived class\r
+               virtual void ProcessAction( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }\r
+               \r
+       \r
+       public:\r
+               \r
+               frmContactEditorXTokenADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("X-Token Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 448,270 ), long style = wxDEFAULT_DIALOG_STYLE ); \r
+               ~frmContactEditorXTokenADT();\r
+       \r
+};\r
+\r
+///////////////////////////////////////////////////////////////////////////////\r
+/// Class frmContactEditorKeyADT\r
+///////////////////////////////////////////////////////////////////////////////\r
+class frmContactEditorKeyADT : public wxDialog \r
+{\r
+       private:\r
+       \r
+       protected:\r
+               wxNotebook* nbkWebsite;\r
+               wxPanel* tabGeneral;\r
+               wxStaticText* lblKeyType;\r
+               wxChoice* cmbKeyMainType;\r
+               wxStaticText* lblType;\r
+               wxChoice* cmbType;\r
+               wxStaticText* lblPriority;\r
+               wxCheckBox* chkUsePref;\r
+               wxSlider* sliPriority;\r
+               wxStaticText* lblHigh;\r
+               wxStaticText* lblLow;\r
+               wxPanel* tabURL;\r
+               wxStaticText* lblKeyFormat;\r
+               wxComboBox* cmbURL;\r
+               wxStaticText* lblAddress;\r
+               wxTextCtrl* txtAddress;\r
+               wxPanel* tabKey;\r
+               wxStaticText* lblKeyFormatData;\r
+               wxComboBox* cmbKeyType;\r
+               wxStaticText* lblKeyData;\r
+               wxTextCtrl* txtKeyData;\r
+               wxButton* btnAction;\r
+               wxButton* btnClose;\r
+               \r
+               // Virtual event handlers, overide them in your derived class\r
+               virtual void ProcessKeyType( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void EnablePriority( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ConvertURLType( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ConvertKeyType( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ProcessAction( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }\r
+               \r
+       \r
+       public:\r
+               \r
+               frmContactEditorKeyADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Key Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 448,270 ), long style = wxDEFAULT_DIALOG_STYLE ); \r
+               ~frmContactEditorKeyADT();\r
+       \r
+};\r
+\r
+///////////////////////////////////////////////////////////////////////////////\r
+/// Class frmContactEditorEmailADT\r
+///////////////////////////////////////////////////////////////////////////////\r
+class frmContactEditorEmailADT : public wxDialog \r
+{\r
+       private:\r
+       \r
+       protected:\r
+               wxNotebook* nbkEmail;\r
+               wxPanel* tabGeneral;\r
+               wxStaticText* lblEmailAddress;\r
+               wxTextCtrl* txtEmail;\r
+               wxStaticText* lblPriority;\r
+               wxCheckBox* chkUsePref;\r
+               wxSlider* sliPriority;\r
+               wxStaticText* lblHigh;\r
+               wxStaticText* lblLow;\r
+               wxButton* btnAction;\r
+               wxButton* btnClose;\r
+               \r
+               // Virtual event handlers, overide them in your derived class\r
+               virtual void EnablePriority( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ProcessData( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }\r
+               \r
+       \r
+       public:\r
+               \r
+               frmContactEditorEmailADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Email Address Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 411,251 ), long style = wxDEFAULT_DIALOG_STYLE ); \r
+               ~frmContactEditorEmailADT();\r
+       \r
+};\r
+\r
+///////////////////////////////////////////////////////////////////////////////\r
+/// Class frmContactEditorIMADT\r
+///////////////////////////////////////////////////////////////////////////////\r
+class frmContactEditorIMADT : public wxDialog \r
+{\r
+       private:\r
+       \r
+       protected:\r
+               wxNotebook* nbkIM;\r
+               wxPanel* tabGeneral;\r
+               wxStaticText* lblIMType;\r
+               wxComboBox* cmbIMType;\r
+               wxStaticText* lblUsername;\r
+               wxTextCtrl* txtUsername;\r
+               wxStaticText* lblPriority;\r
+               wxCheckBox* chkUsePref;\r
+               wxSlider* sliPriority;\r
+               wxStaticText* lblHigh;\r
+               wxStaticText* lblLow;\r
+               wxButton* btnAction;\r
+               wxButton* btnClose;\r
+               \r
+               // Virtual event handlers, overide them in your derived class\r
+               virtual void EnablePriority( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ProcessAction( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }\r
+               \r
+       \r
+       public:\r
+               \r
+               frmContactEditorIMADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Instant Messaging Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 424,224 ), long style = wxDEFAULT_DIALOG_STYLE ); \r
+               ~frmContactEditorIMADT();\r
+       \r
+};\r
+\r
+///////////////////////////////////////////////////////////////////////////////\r
+/// Class frmContactEditorCategoryADT\r
+///////////////////////////////////////////////////////////////////////////////\r
+class frmContactEditorCategoryADT : public wxDialog \r
+{\r
+       private:\r
+       \r
+       protected:\r
+               wxNotebook* nbkIM;\r
+               wxPanel* tabGeneral;\r
+               wxStaticText* lblCategory;\r
+               wxTextCtrl* txtCategory;\r
+               wxStaticText* lblType;\r
+               wxChoice* cmbType;\r
+               wxStaticText* lblPriority;\r
+               wxCheckBox* chkUsePref;\r
+               wxSlider* sliPriority;\r
+               wxStaticText* lblHigh;\r
+               wxStaticText* lblLow;\r
+               wxButton* btnAction;\r
+               wxButton* btnClose;\r
+               \r
+               // Virtual event handlers, overide them in your derived class\r
+               virtual void EnablePriority( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ProcessAction( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }\r
+               \r
+       \r
+       public:\r
+               \r
+               frmContactEditorCategoryADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Category Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 424,224 ), long style = wxDEFAULT_DIALOG_STYLE ); \r
+               ~frmContactEditorCategoryADT();\r
+       \r
+};\r
+\r
+///////////////////////////////////////////////////////////////////////////////\r
+/// Class frmContactEditorTelephoneADT\r
+///////////////////////////////////////////////////////////////////////////////\r
+class frmContactEditorTelephoneADT : public wxDialog \r
+{\r
+       private:\r
+       \r
+       protected:\r
+               wxNotebook* nbkAddress;\r
+               wxPanel* tabGeneral;\r
+               wxStaticText* lblTelephone;\r
+               wxTextCtrl* txtTelephone;\r
+               wxStaticText* lblPriority;\r
+               wxCheckBox* chkUsePref;\r
+               wxSlider* sliPriority;\r
+               wxStaticText* lblHigh;\r
+               wxStaticText* lblLow;\r
+               wxStaticText* lblTelephoneType;\r
+               wxCheckBox* chkVoice;\r
+               wxCheckBox* chkText;\r
+               wxCheckBox* chkFax;\r
+               wxCheckBox* chkMobile;\r
+               wxCheckBox* chkVideo;\r
+               wxCheckBox* chkTextphone;\r
+               wxCheckBox* chkPager;\r
+               wxButton* btnAction;\r
+               wxButton* btnClose;\r
+               \r
+               // Virtual event handlers, overide them in your derived class\r
+               virtual void EnablePriority( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ProcessAction( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }\r
+               \r
+       \r
+       public:\r
+               \r
+               frmContactEditorTelephoneADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Telephone Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 401,262 ), long style = wxDEFAULT_DIALOG_STYLE ); \r
+               ~frmContactEditorTelephoneADT();\r
+       \r
+};\r
+\r
+///////////////////////////////////////////////////////////////////////////////\r
+/// Class frmContactEditorLanguagesADT\r
+///////////////////////////////////////////////////////////////////////////////\r
+class frmContactEditorLanguagesADT : public wxDialog \r
+{\r
+       private:\r
+       \r
+       protected:\r
+               wxNotebook* nbkLanguages;\r
+               wxPanel* tabGeneral;\r
+               wxStaticText* lblLanguage;\r
+               wxTextCtrl* txtLanguage;\r
+               wxStaticText* lblPriority;\r
+               wxCheckBox* chkUsePref;\r
+               wxSlider* sliPriority;\r
+               wxStaticText* lblHigh;\r
+               wxStaticText* lblLow;\r
+               wxButton* btnAction;\r
+               wxButton* btnClose;\r
+               \r
+               // Virtual event handlers, overide them in your derived class\r
+               virtual void EnablePriority( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ProcessAction( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }\r
+               \r
+       \r
+       public:\r
+               \r
+               frmContactEditorLanguagesADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Language Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 350,184 ), long style = wxDEFAULT_DIALOG_STYLE ); \r
+               ~frmContactEditorLanguagesADT();\r
+       \r
+};\r
+\r
+///////////////////////////////////////////////////////////////////////////////\r
+/// Class frmContactEditorTimezonesADT\r
+///////////////////////////////////////////////////////////////////////////////\r
+class frmContactEditorTimezonesADT : public wxDialog \r
+{\r
+       private:\r
+       \r
+       protected:\r
+               wxNotebook* nbkTimezone;\r
+               wxPanel* tabGeneral;\r
+               wxStaticText* lblTimezone;\r
+               wxComboBox* cmbTimezone;\r
+               wxStaticText* lblPriority;\r
+               wxCheckBox* chkUsePref;\r
+               wxSlider* sliPriority;\r
+               wxStaticText* lblHigh;\r
+               wxStaticText* lblLow;\r
+               wxButton* btnAction;\r
+               wxButton* btnClose;\r
+               \r
+               // Virtual event handlers, overide them in your derived class\r
+               virtual void EnablePriority( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ProcessAction( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }\r
+               \r
+       \r
+       public:\r
+               \r
+               frmContactEditorTimezonesADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Timezone Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 350,184 ), long style = wxDEFAULT_DIALOG_STYLE ); \r
+               ~frmContactEditorTimezonesADT();\r
+       \r
+};\r
+\r
+///////////////////////////////////////////////////////////////////////////////\r
+/// Class XABSearchPanelADT\r
+///////////////////////////////////////////////////////////////////////////////\r
+class XABSearchPanelADT : public wxPanel \r
+{\r
+       private:\r
+       \r
+       protected:\r
+               wxChoice* choOption;\r
+               wxBoxSizer* szrSSet;\r
+               wxCheckBox* chkActive;\r
+               wxTextCtrl* txtSearch;\r
+               wxBitmapButton* btnAdd;\r
+               wxBitmapButton* btnDelete;\r
+               \r
+               // Virtual event handlers, overide them in your derived class\r
+               virtual void UpdateOptions( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void AddSearchWidget( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void RemoveSearchWidget( wxCommandEvent& event ) { event.Skip(); }\r
+               \r
+       \r
+       public:\r
+               \r
+               XABSearchPanelADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 390,40 ), long style = wxTAB_TRAVERSAL ); \r
+               ~XABSearchPanelADT();\r
+       \r
+};\r
+\r
+///////////////////////////////////////////////////////////////////////////////\r
+/// Class frmSearchAccountsADT\r
+///////////////////////////////////////////////////////////////////////////////\r
+class frmSearchAccountsADT : public wxDialog \r
+{\r
+       private:\r
+       \r
+       protected:\r
+               wxCheckListBox* chlAccounts;\r
+               wxButton* btnSelect;\r
+               wxButton* btnCancel;\r
+               \r
+               // Virtual event handlers, overide them in your derived class\r
+               virtual void UpdateSelectedAccounts( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }\r
+               \r
+       \r
+       public:\r
+               \r
+               frmSearchAccountsADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Select Accounts"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 353,376 ), long style = wxDEFAULT_DIALOG_STYLE ); \r
+               ~frmSearchAccountsADT();\r
+       \r
+};\r
+\r
+///////////////////////////////////////////////////////////////////////////////\r
+/// Class frmEditAccountADT\r
+///////////////////////////////////////////////////////////////////////////////\r
+class frmEditAccountADT : public wxDialog \r
+{\r
+       private:\r
+       \r
+       protected:\r
+               wxNotebook* tabAccount;\r
+               wxPanel* tabProperties;\r
+               wxStaticText* lblAccName;\r
+               wxTextCtrl* txtAccountName;\r
+               wxStaticText* lblAccAdr;\r
+               wxTextCtrl* txtAddress;\r
+               wxStaticText* m_staticText193;\r
+               wxTextCtrl* txtPort;\r
+               wxStaticText* lblPort;\r
+               wxTextCtrl* txtUsername;\r
+               wxStaticText* lblPassword;\r
+               wxTextCtrl* txtPassword;\r
+               wxStaticText* lblPrefix;\r
+               wxTextCtrl* txtPrefix;\r
+               wxButton* btnDetect;\r
+               wxStaticText* txtSSL;\r
+               wxCheckBox* chkSSL;\r
+               wxPanel* tabRefresh;\r
+               wxStaticText* lblRefresh;\r
+               wxTextCtrl* txtRefresh;\r
+               wxButton* btnSave;\r
+               wxButton* btnCancel;\r
+               \r
+               // Virtual event handlers, overide them in your derived class\r
+               virtual void DetectAddressBook( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void UpdateSettings( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }\r
+               \r
+       \r
+       public:\r
+               \r
+               frmEditAccountADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Edit Account"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 306,319 ), long style = wxDEFAULT_DIALOG_STYLE ); \r
+               ~frmEditAccountADT();\r
+       \r
+};\r
+\r
+///////////////////////////////////////////////////////////////////////////////\r
+/// Class frmSSLCertificateADT\r
+///////////////////////////////////////////////////////////////////////////////\r
+class frmSSLCertificateADT : public wxDialog \r
+{\r
+       private:\r
+       \r
+       protected:\r
+               wxNotebook* m_notebook28;\r
+               wxPanel* tabSummary;\r
+               wxPanel* pnlTop;\r
+               wxStaticText* lblCertName;\r
+               wxStaticText* lblValidityStatus;\r
+               wxPanel* m_panel54;\r
+               wxStaticText* lblIssuedTo;\r
+               wxStaticText* lblIssuedToData;\r
+               wxStaticText* lblValidFrom;\r
+               wxStaticText* lblValidFromData;\r
+               wxStaticText* lblValidUntil;\r
+               wxStaticText* lblValidUntilData;\r
+               wxPanel* tabDetail;\r
+               wxListCtrl* lstValues;\r
+               wxTextCtrl* txtValueData;\r
+               wxPanel* tabHierarchy;\r
+               wxTreeCtrl* treHierarchy;\r
+               wxPanel* m_panel57;\r
+               wxButton* btnViewCert;\r
+               wxPanel* pnlButtons;\r
+               wxButton* btnClose;\r
+               \r
+               // Virtual event handlers, overide them in your derived class\r
+               virtual void LoadValueData( wxListEvent& event ) { event.Skip(); }\r
+               virtual void CheckCertificate( wxTreeEvent& event ) { event.Skip(); }\r
+               virtual void ViewCertificate( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }\r
+               \r
+       \r
+       public:\r
+               \r
+               frmSSLCertificateADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("SSL Certificate Window"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 347,402 ), long style = wxDEFAULT_DIALOG_STYLE ); \r
+               ~frmSSLCertificateADT();\r
+       \r
+};\r
+\r
+///////////////////////////////////////////////////////////////////////////////\r
+/// Class frmInvalidSSLCertificateADT\r
+///////////////////////////////////////////////////////////////////////////////\r
+class frmInvalidSSLCertificateADT : public wxDialog \r
+{\r
+       private:\r
+       \r
+       protected:\r
+               wxStaticText* lblSSLText;\r
+               wxButton* btnAccept;\r
+               wxButton* btnReject;\r
+               wxButton* btnViewCert;\r
+               \r
+               // Virtual event handlers, overide them in your derived class\r
+               virtual void Accept( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void Reject( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void ViewCertificates( wxCommandEvent& event ) { event.Skip(); }\r
+               \r
+       \r
+       public:\r
+               \r
+               frmInvalidSSLCertificateADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Invalid SSL Certificate"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 445,239 ), long style = wxCAPTION ); \r
+               ~frmInvalidSSLCertificateADT();\r
+       \r
+};\r
+\r
+///////////////////////////////////////////////////////////////////////////////\r
+/// Class frmImportContactsADT\r
+///////////////////////////////////////////////////////////////////////////////\r
+class frmImportContactsADT : public wxDialog \r
+{\r
+       private:\r
+       \r
+       protected:\r
+               wxStaticText* lblImportText;\r
+               wxCheckListBox* lstContacts;\r
+               wxBoxSizer* szrAccount;\r
+               wxStaticText* lblAccountText;\r
+               wxButton* btnImport;\r
+               wxButton* btnCancel;\r
+               \r
+               // Virtual event handlers, overide them in your derived class\r
+               virtual void ImportContacts( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }\r
+               \r
+       \r
+       public:\r
+               \r
+               frmImportContactsADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 360,400 ), long style = wxDEFAULT_DIALOG_STYLE ); \r
+               ~frmImportContactsADT();\r
+       \r
+};\r
+\r
+///////////////////////////////////////////////////////////////////////////////\r
+/// Class frmImportResultsADT\r
+///////////////////////////////////////////////////////////////////////////////\r
+class frmImportResultsADT : public wxDialog \r
+{\r
+       private:\r
+       \r
+       protected:\r
+               wxStaticText* lblText;\r
+               wxTextCtrl* txtResults;\r
+               wxButton* btnCopyClipboard;\r
+               wxButton* btnFinish;\r
+               \r
+               // Virtual event handlers, overide them in your derived class\r
+               virtual void CopyClipboard( wxCommandEvent& event ) { event.Skip(); }\r
+               virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }\r
+               \r
+       \r
+       public:\r
+               \r
+               frmImportResultsADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Import Results"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 489,299 ), long style = wxDEFAULT_DIALOG_STYLE ); \r
+               ~frmImportResultsADT();\r
+       \r
+};\r
+\r
+#endif //__APPXESTIAADDRBK_H__\r
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy