1 // AppXesitaCalendar.cpp - Xestia Calendar application form code
3 // (c) 2016-2017 Xestia Software Development.
5 // This file is part of Xestia Calendar.
7 // Xestia Calendar is free software: you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License as published by the
9 // Free Software Foundation, version 3 of the license.
11 // Xestia Calendar is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License along
17 // with Xestia Calendar. If not, see <http://www.gnu.org/licenses/>
19 ///////////////////////////////////////////////////////////////////////////
20 // C++ code generated with wxFormBuilder (version Nov 13 2016)
21 // http://www.wxformbuilder.org/
23 // PLEASE DO "NOT" EDIT THIS FILE!
24 ///////////////////////////////////////////////////////////////////////////
26 #include "AppXestiaCalendar.h"
28 ///////////////////////////////////////////////////////////////////////////
30 frmMainADT::frmMainADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxFrame( parent, id, title, pos, size, style )
32 this->SetSizeHints( wxSize( 800,600 ), wxDefaultSize );
33 this->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE ) );
35 stbBottom = this->CreateStatusBar( 1, wxST_SIZEGRIP, wxID_ANY );
36 menuBar = new wxMenuBar( 0 );
37 mnuManage = new wxMenu();
38 wxMenuItem* mnuManageNew;
39 mnuManageNew = new wxMenuItem( mnuManage, wxID_ANY, wxString( wxT("New Account...") ) + wxT('\t') + wxT("Ctrl+Shift+N"), wxEmptyString, wxITEM_NORMAL );
40 mnuManage->Append( mnuManageNew );
42 mnuManage->AppendSeparator();
44 wxMenuItem* mnuManagePreferences;
45 mnuManagePreferences = new wxMenuItem( mnuManage, wxID_PREFERENCES, wxString( wxT("Preferences...") ) , wxEmptyString, wxITEM_NORMAL );
46 mnuManage->Append( mnuManagePreferences );
48 mnuManage->AppendSeparator();
50 wxMenuItem* mnuManageExit;
51 mnuManageExit = new wxMenuItem( mnuManage, wxID_EXIT, wxString( wxT("Quit") ) + wxT('\t') + wxT("Ctrl+Q"), wxEmptyString, wxITEM_NORMAL );
52 mnuManage->Append( mnuManageExit );
54 menuBar->Append( mnuManage, wxT("Manage") );
56 mnuCreate = new wxMenu();
57 wxMenuItem* mnuCreateCalendar;
58 mnuCreateCalendar = new wxMenuItem( mnuCreate, wxID_ANY, wxString( wxT("Calendar...") ) , wxEmptyString, wxITEM_NORMAL );
59 mnuCreate->Append( mnuCreateCalendar );
61 mnuCreate->AppendSeparator();
63 wxMenuItem* mnuCreateEvent;
64 mnuCreateEvent = new wxMenuItem( mnuCreate, wxID_ANY, wxString( wxT("Event...") ) , wxEmptyString, wxITEM_NORMAL );
65 mnuCreate->Append( mnuCreateEvent );
67 menuBar->Append( mnuCreate, wxT("Create") );
69 mnuWindow = new wxMenu();
70 menuBar->Append( mnuWindow, wxT("Window") );
72 mnuHelp = new wxMenu();
73 wxMenuItem* mnuHelpShow;
74 mnuHelpShow = new wxMenuItem( mnuHelp, wxID_HELP, wxString( wxT("Show Help...") ) + wxT('\t') + wxT("F1"), wxEmptyString, wxITEM_NORMAL );
75 mnuHelp->Append( mnuHelpShow );
77 mnuHelp->AppendSeparator();
79 wxMenuItem* mnuHelpUpdate;
80 mnuHelpUpdate = new wxMenuItem( mnuHelp, wxID_ANY, wxString( wxT("Check for updates...") ) , wxEmptyString, wxITEM_NORMAL );
81 mnuHelp->Append( mnuHelpUpdate );
83 mnuHelp->AppendSeparator();
85 wxMenuItem* mnuHelpAbout;
86 mnuHelpAbout = new wxMenuItem( mnuHelp, wxID_ABOUT, wxString( wxT("About Xestia Calendar...") ) + wxT('\t') + wxT("Shift+Ctrl+A"), wxEmptyString, wxITEM_NORMAL );
87 mnuHelp->Append( mnuHelpAbout );
89 menuBar->Append( mnuHelp, wxT("Help") );
91 this->SetMenuBar( menuBar );
93 szrMain = new wxBoxSizer( wxVERTICAL );
96 this->SetSizer( szrMain );
99 this->Centre( wxBOTH );
102 this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( frmMainADT::QuitApp ) );
103 this->Connect( mnuManageNew->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::OpenNewAccountDialog ) );
104 this->Connect( mnuManagePreferences->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::ShowPreferencesWindow ) );
105 this->Connect( mnuManageExit->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::QuitApp ) );
106 this->Connect( mnuCreateCalendar->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::CreateNewCalendar ) );
107 this->Connect( mnuCreateEvent->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::CreateNewEvent ) );
108 this->Connect( mnuHelpShow->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::ShowHelp ) );
109 this->Connect( mnuHelpUpdate->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::ShowUpdateWindow ) );
110 this->Connect( mnuHelpAbout->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::ShowAboutWindow ) );
113 frmMainADT::~frmMainADT()
116 this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( frmMainADT::QuitApp ) );
117 this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::OpenNewAccountDialog ) );
118 this->Disconnect( wxID_PREFERENCES, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::ShowPreferencesWindow ) );
119 this->Disconnect( wxID_EXIT, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::QuitApp ) );
120 this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::CreateNewCalendar ) );
121 this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::CreateNewEvent ) );
122 this->Disconnect( wxID_HELP, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::ShowHelp ) );
123 this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::ShowUpdateWindow ) );
124 this->Disconnect( wxID_ABOUT, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::ShowAboutWindow ) );
128 frmUpdateADT::frmUpdateADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
130 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
132 wxBoxSizer* bSizer390;
133 bSizer390 = new wxBoxSizer( wxVERTICAL );
135 pnlUpdateData = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
136 wxBoxSizer* bSizer391;
137 bSizer391 = new wxBoxSizer( wxVERTICAL );
139 wxFlexGridSizer* fgSizer45;
140 fgSizer45 = new wxFlexGridSizer( 3, 2, 0, 0 );
141 fgSizer45->SetFlexibleDirection( wxBOTH );
142 fgSizer45->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
144 lblRunningText = new wxStaticText( pnlUpdateData, wxID_ANY, wxT("Running version is:"), wxDefaultPosition, wxDefaultSize, 0 );
145 lblRunningText->Wrap( -1 );
146 fgSizer45->Add( lblRunningText, 0, wxALL, 5 );
148 lblRunningVer = new wxStaticText( pnlUpdateData, wxID_ANY, wxT("UPDATEVER"), wxDefaultPosition, wxDefaultSize, 0 );
149 lblRunningVer->Wrap( -1 );
150 lblRunningVer->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) );
152 fgSizer45->Add( lblRunningVer, 0, wxALL, 5 );
154 lblAvailableText = new wxStaticText( pnlUpdateData, wxID_ANY, wxT("Available version is:"), wxDefaultPosition, wxDefaultSize, 0 );
155 lblAvailableText->Wrap( -1 );
156 fgSizer45->Add( lblAvailableText, 0, wxALL, 5 );
158 lblAvailableVer = new wxStaticText( pnlUpdateData, wxID_ANY, wxT("AVAILVER"), wxDefaultPosition, wxDefaultSize, 0 );
159 lblAvailableVer->Wrap( -1 );
160 fgSizer45->Add( lblAvailableVer, 0, wxALL, 5 );
162 lblBuildTypeText = new wxStaticText( pnlUpdateData, wxID_ANY, wxT("Build type is:"), wxDefaultPosition, wxDefaultSize, 0 );
163 lblBuildTypeText->Wrap( -1 );
164 fgSizer45->Add( lblBuildTypeText, 0, wxALL, 5 );
166 lblBuildType = new wxStaticText( pnlUpdateData, wxID_ANY, wxT("BUILDTYPE"), wxDefaultPosition, wxDefaultSize, 0 );
167 lblBuildType->Wrap( -1 );
168 fgSizer45->Add( lblBuildType, 0, wxALL, 5 );
171 bSizer391->Add( fgSizer45, 0, wxEXPAND, 5 );
173 lblUpdateMessage = new wxStaticText( pnlUpdateData, wxID_ANY, wxT("MESSAGE"), wxDefaultPosition, wxDefaultSize, 0 );
174 lblUpdateMessage->Wrap( -1 );
175 bSizer391->Add( lblUpdateMessage, 1, wxALL|wxEXPAND, 5 );
178 pnlUpdateData->SetSizer( bSizer391 );
179 pnlUpdateData->Layout();
180 bSizer391->Fit( pnlUpdateData );
181 bSizer390->Add( pnlUpdateData, 1, wxEXPAND | wxALL, 5 );
183 statLine = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
184 bSizer390->Add( statLine, 0, wxALL|wxEXPAND, 5 );
186 wxBoxSizer* bSizer392;
187 bSizer392 = new wxBoxSizer( wxHORIZONTAL );
189 btnVisitGelforn = new wxButton( this, wxID_ANY, wxT("Visit Gelforn"), wxDefaultPosition, wxDefaultSize, 0 );
190 bSizer392->Add( btnVisitGelforn, 0, wxALIGN_RIGHT|wxBOTTOM|wxLEFT, 5 );
192 btnVisitPREMIUM = new wxButton( this, wxID_ANY, wxT("Visit PREMIUM"), wxDefaultPosition, wxDefaultSize, 0 );
193 bSizer392->Add( btnVisitPREMIUM, 0, wxBOTTOM|wxLEFT, 5 );
195 btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );
196 bSizer392->Add( btnClose, 0, wxALIGN_RIGHT|wxBOTTOM|wxLEFT|wxRIGHT, 5 );
199 bSizer390->Add( bSizer392, 0, wxALIGN_RIGHT, 0 );
202 this->SetSizer( bSizer390 );
205 this->Centre( wxBOTH );
208 btnVisitGelforn->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmUpdateADT::VisitGelforn ), NULL, this );
209 btnVisitPREMIUM->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmUpdateADT::VisitPREMIUM ), NULL, this );
210 btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmUpdateADT::CloseWindow ), NULL, this );
213 frmUpdateADT::~frmUpdateADT()
216 btnVisitGelforn->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmUpdateADT::VisitGelforn ), NULL, this );
217 btnVisitPREMIUM->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmUpdateADT::VisitPREMIUM ), NULL, this );
218 btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmUpdateADT::CloseWindow ), NULL, this );
222 frmPreferencesADT::frmPreferencesADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
224 this->SetSizeHints( wxSize( 450,400 ), wxSize( 450,400 ) );
227 szrMain = new wxBoxSizer( wxVERTICAL );
230 szrTabs = new wxBoxSizer( wxVERTICAL );
232 NbtPreferences = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
233 tabGeneral = new wxPanel( NbtPreferences, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
234 wxBoxSizer* szrChecks;
235 szrChecks = new wxBoxSizer( wxVERTICAL );
237 chkSaveWindowPosition = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Save window position on exit"), wxDefaultPosition, wxDefaultSize, 0 );
238 szrChecks->Add( chkSaveWindowPosition, 0, wxALL, 5 );
240 chkHideLocal = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Hide local calendars"), wxDefaultPosition, wxDefaultSize, 0 );
241 szrChecks->Add( chkHideLocal, 0, wxALL, 5 );
244 tabGeneral->SetSizer( szrChecks );
245 tabGeneral->Layout();
246 szrChecks->Fit( tabGeneral );
247 NbtPreferences->AddPage( tabGeneral, wxT("General"), false );
248 tabTheme = new wxPanel( NbtPreferences, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
251 wxGridSizer* szrTheme;
252 szrTheme = new wxGridSizer( 1, 1, 0, 0 );
254 wxBoxSizer* bSizer161;
255 bSizer161 = new wxBoxSizer( wxVERTICAL );
257 lstThemes = new wxListCtrl( tabTheme, wxID_ANY, wxDefaultPosition, wxSize( -1,-1 ), wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
258 bSizer161->Add( lstThemes, 1, wxALL|wxEXPAND, 5 );
260 wxBoxSizer* bSizer151;
261 bSizer151 = new wxBoxSizer( wxHORIZONTAL );
263 btnThemeAdd = new wxButton( tabTheme, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
264 bSizer151->Add( btnThemeAdd, 0, wxALL, 5 );
266 btnThemeModify = new wxButton( tabTheme, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
267 btnThemeModify->Enable( false );
269 bSizer151->Add( btnThemeModify, 0, wxALL, 5 );
271 btnThemeDelete = new wxButton( tabTheme, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
272 btnThemeDelete->Enable( false );
274 bSizer151->Add( btnThemeDelete, 0, wxALL, 5 );
277 bSizer161->Add( bSizer151, 0, wxALIGN_BOTTOM|wxALIGN_CENTER_HORIZONTAL, 0 );
280 szrTheme->Add( bSizer161, 1, wxEXPAND, 5 );
283 tabTheme->SetSizer( szrTheme );
285 szrTheme->Fit( tabTheme );
286 NbtPreferences->AddPage( tabTheme, wxT("Themes"), false );
287 tabAccounts = new wxPanel( NbtPreferences, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
288 wxGridSizer* szrAccounts;
289 szrAccounts = new wxGridSizer( 1, 1, 0, 0 );
291 wxBoxSizer* bSizer16;
292 bSizer16 = new wxBoxSizer( wxVERTICAL );
294 lstAccounts = new wxListCtrl( tabAccounts, wxID_ANY, wxDefaultPosition, wxSize( -1,-1 ), wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
295 bSizer16->Add( lstAccounts, 1, wxALL|wxEXPAND, 5 );
297 wxBoxSizer* bSizer15;
298 bSizer15 = new wxBoxSizer( wxHORIZONTAL );
300 btnAccountAdd = new wxButton( tabAccounts, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
301 bSizer15->Add( btnAccountAdd, 0, wxALL, 5 );
303 btnAccountModify = new wxButton( tabAccounts, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
304 btnAccountModify->Enable( false );
306 bSizer15->Add( btnAccountModify, 0, wxALL, 5 );
308 btnAccountDelete = new wxButton( tabAccounts, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
309 btnAccountDelete->Enable( false );
311 bSizer15->Add( btnAccountDelete, 0, wxALL, 5 );
314 bSizer16->Add( bSizer15, 0, wxALIGN_BOTTOM|wxALIGN_CENTER_HORIZONTAL, 0 );
317 szrAccounts->Add( bSizer16, 1, wxEXPAND, 5 );
320 tabAccounts->SetSizer( szrAccounts );
321 tabAccounts->Layout();
322 szrAccounts->Fit( tabAccounts );
323 NbtPreferences->AddPage( tabAccounts, wxT("Accounts"), true );
325 szrTabs->Add( NbtPreferences, 1, wxALL|wxEXPAND, 5 );
328 szrMain->Add( szrTabs, 1, wxEXPAND, 0 );
330 wxBoxSizer* szrButtons;
331 szrButtons = new wxBoxSizer( wxHORIZONTAL );
334 szrButtons->Add( 1, 0, 1, wxEXPAND, 0 );
336 btnSave = new wxButton( this, wxID_ANY, wxT("Save"), wxDefaultPosition, wxDefaultSize, 0 );
337 btnSave->SetDefault();
338 szrButtons->Add( btnSave, 0, wxALIGN_RIGHT, 0 );
341 szrButtons->Add( 5, 0, 0, 0, 0 );
343 btnCancel = new wxButton( this, wxID_ANY, wxT("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
344 szrButtons->Add( btnCancel, 0, wxALIGN_RIGHT, 0 );
347 szrButtons->Add( 5, 0, 0, wxEXPAND, 0 );
350 szrMain->Add( szrButtons, 0, wxBOTTOM|wxEXPAND, 5 );
353 this->SetSizer( szrMain );
356 this->Centre( wxBOTH );
359 this->Connect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( frmPreferencesADT::LoadPreferences ) );
360 lstThemes->Connect( wxEVT_COMMAND_LIST_ITEM_DESELECTED, wxListEventHandler( frmPreferencesADT::DisableABButtons ), NULL, this );
361 lstThemes->Connect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( frmPreferencesADT::EnableABButtons ), NULL, this );
362 btnThemeAdd->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::AddABAccount ), NULL, this );
363 btnThemeModify->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::ModifyABAccount ), NULL, this );
364 btnThemeDelete->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::DeleteABAccount ), NULL, this );
365 lstAccounts->Connect( wxEVT_COMMAND_LIST_ITEM_DESELECTED, wxListEventHandler( frmPreferencesADT::DisableButtons ), NULL, this );
366 lstAccounts->Connect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( frmPreferencesADT::EnableButtons ), NULL, this );
367 btnAccountAdd->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::AddAccount ), NULL, this );
368 btnAccountModify->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::ModifyAccount ), NULL, this );
369 btnAccountDelete->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::DeleteAccount ), NULL, this );
370 btnSave->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::SavePreferences ), NULL, this );
371 btnCancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::CloseWindow ), NULL, this );
374 frmPreferencesADT::~frmPreferencesADT()
377 this->Disconnect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( frmPreferencesADT::LoadPreferences ) );
378 lstThemes->Disconnect( wxEVT_COMMAND_LIST_ITEM_DESELECTED, wxListEventHandler( frmPreferencesADT::DisableABButtons ), NULL, this );
379 lstThemes->Disconnect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( frmPreferencesADT::EnableABButtons ), NULL, this );
380 btnThemeAdd->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::AddABAccount ), NULL, this );
381 btnThemeModify->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::ModifyABAccount ), NULL, this );
382 btnThemeDelete->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::DeleteABAccount ), NULL, this );
383 lstAccounts->Disconnect( wxEVT_COMMAND_LIST_ITEM_DESELECTED, wxListEventHandler( frmPreferencesADT::DisableButtons ), NULL, this );
384 lstAccounts->Disconnect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( frmPreferencesADT::EnableButtons ), NULL, this );
385 btnAccountAdd->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::AddAccount ), NULL, this );
386 btnAccountModify->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::ModifyAccount ), NULL, this );
387 btnAccountDelete->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::DeleteAccount ), NULL, this );
388 btnSave->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::SavePreferences ), NULL, this );
389 btnCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::CloseWindow ), NULL, this );
393 frmAboutADT::frmAboutADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
395 this->SetSizeHints( wxSize( 350,400 ), wxDefaultSize );
398 szrMain = new wxBoxSizer( wxVERTICAL );
401 szrLogo = new wxBoxSizer( wxVERTICAL );
403 szrLogo->SetMinSize( wxSize( 350,100 ) );
404 bmpLogo = new wxStaticBitmap( this, wxID_ANY, wxNullBitmap, wxPoint( 0,0 ), wxSize( 350,100 ), 0 );
405 szrLogo->Add( bmpLogo, 0, wxALL, 0 );
408 szrMain->Add( szrLogo, 0, wxFIXED_MINSIZE, 0 );
410 wxBoxSizer* szrDetails;
411 szrDetails = new wxBoxSizer( wxVERTICAL );
413 lblVersion = new wxStaticText( this, wxID_ANY, wxT("Version 0.00"), wxDefaultPosition, wxDefaultSize, 0 );
414 lblVersion->Wrap( -1 );
415 lblVersion->SetFont( wxFont( 14, wxFONTFAMILY_SWISS, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) );
417 szrDetails->Add( lblVersion, 0, wxALL, 5 );
419 lblCompileTime = new wxStaticText( this, wxID_ANY, wxT("Built on (date) at (time)"), wxDefaultPosition, wxDefaultSize, 0 );
420 lblCompileTime->Wrap( -1 );
421 szrDetails->Add( lblCompileTime, 0, wxALL, 5 );
423 lblCopyright = new wxStaticText( this, wxID_ANY, wxT("(c) 2012-2015 Xestia Software Development"), wxDefaultPosition, wxDefaultSize, 0 );
424 lblCopyright->Wrap( -1 );
425 szrDetails->Add( lblCopyright, 0, wxALL, 5 );
428 szrMain->Add( szrDetails, 5, wxEXPAND, 1 );
430 wxBoxSizer* szrButtons;
431 szrButtons = new wxBoxSizer( wxVERTICAL );
433 szrButtons->SetMinSize( wxSize( -1,35 ) );
434 btnClose = new wxButton( this, wxID_ANY, wxT("&Close"), wxDefaultPosition, wxDefaultSize, 0 );
435 szrButtons->Add( btnClose, 0, wxALIGN_RIGHT|wxRIGHT, 5 );
438 szrMain->Add( szrButtons, 0, wxEXPAND, 0 );
441 this->SetSizer( szrMain );
444 this->Centre( wxBOTH );
447 btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmAboutADT::CloseAboutWindow ), NULL, this );
450 frmAboutADT::~frmAboutADT()
453 btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmAboutADT::CloseAboutWindow ), NULL, this );
457 frmNewAccountADT::frmNewAccountADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
459 this->SetSizeHints( wxSize( 425,330 ), wxSize( 425,330 ) );
461 wxFlexGridSizer* fgSizer30;
462 fgSizer30 = new wxFlexGridSizer( 0, 1, 0, 0 );
463 fgSizer30->AddGrowableCol( 0 );
464 fgSizer30->AddGrowableRow( 0 );
465 fgSizer30->SetFlexibleDirection( wxBOTH );
466 fgSizer30->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
468 szrNewAccount = new wxBoxSizer( wxVERTICAL );
470 tabType = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
471 wxFlexGridSizer* fgSizer32;
472 fgSizer32 = new wxFlexGridSizer( 0, 1, 0, 0 );
473 fgSizer32->AddGrowableCol( 0 );
474 fgSizer32->SetFlexibleDirection( wxBOTH );
475 fgSizer32->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_ALL );
477 lblEnterText = new wxStaticText( tabType, wxID_ANY, wxT("Enter the details below and click on Next."), wxDefaultPosition, wxDefaultSize, 0 );
478 lblEnterText->Wrap( -1 );
479 fgSizer32->Add( lblEnterText, 0, wxALL, 5 );
481 wxFlexGridSizer* fgSizer33;
482 fgSizer33 = new wxFlexGridSizer( 0, 2, 0, 0 );
483 fgSizer33->AddGrowableCol( 1 );
484 fgSizer33->AddGrowableRow( 0 );
485 fgSizer33->SetFlexibleDirection( wxBOTH );
486 fgSizer33->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_ALL );
488 lblType = new wxStaticText( tabType, wxID_ANY, wxT("Server Type:"), wxDefaultPosition, wxDefaultSize, 0 );
490 fgSizer33->Add( lblType, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
492 wxString cmbServerTypeChoices[] = { wxT("Local") };
493 int cmbServerTypeNChoices = sizeof( cmbServerTypeChoices ) / sizeof( wxString );
494 cmbServerType = new wxChoice( tabType, wxID_ANY, wxDefaultPosition, wxDefaultSize, cmbServerTypeNChoices, cmbServerTypeChoices, 0 );
495 cmbServerType->SetSelection( 0 );
496 fgSizer33->Add( cmbServerType, 0, wxALL, 5 );
498 lblServerAddress = new wxStaticText( tabType, wxID_ANY, wxT("Server Address:"), wxDefaultPosition, wxDefaultSize, 0 );
499 lblServerAddress->Wrap( -1 );
500 fgSizer33->Add( lblServerAddress, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
502 txtServerAddress = new wxTextCtrl( tabType, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
503 fgSizer33->Add( txtServerAddress, 1, wxALL|wxEXPAND, 5 );
505 lblServerPort = new wxStaticText( tabType, wxID_ANY, wxT("Server Port:"), wxDefaultPosition, wxDefaultSize, 0 );
506 lblServerPort->Wrap( -1 );
507 fgSizer33->Add( lblServerPort, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
509 txtServerPort = new wxTextCtrl( tabType, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
510 fgSizer33->Add( txtServerPort, 0, wxALL, 5 );
512 lblUsername = new wxStaticText( tabType, wxID_ANY, wxT("Username:"), wxDefaultPosition, wxDefaultSize, 0 );
513 lblUsername->Wrap( -1 );
514 fgSizer33->Add( lblUsername, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
516 txtUsername = new wxTextCtrl( tabType, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
517 fgSizer33->Add( txtUsername, 1, wxALL|wxEXPAND, 5 );
519 lblPassword = new wxStaticText( tabType, wxID_ANY, wxT("Password:"), wxDefaultPosition, wxDefaultSize, 0 );
520 lblPassword->Wrap( -1 );
521 fgSizer33->Add( lblPassword, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
523 txtPassword = new wxTextCtrl( tabType, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PASSWORD );
524 fgSizer33->Add( txtPassword, 0, wxALL|wxEXPAND, 5 );
526 lblSSL = new wxStaticText( tabType, wxID_ANY, wxT("SSL:"), wxDefaultPosition, wxDefaultSize, 0 );
528 fgSizer33->Add( lblSSL, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
530 wxBoxSizer* bSizer3221;
531 bSizer3221 = new wxBoxSizer( wxHORIZONTAL );
533 chkUseSSL = new wxCheckBox( tabType, wxID_ANY, wxT("Use SSL"), wxDefaultPosition, wxDefaultSize, 0 );
534 chkUseSSL->SetValue(true);
535 bSizer3221->Add( chkUseSSL, 0, wxALL, 5 );
538 fgSizer33->Add( bSizer3221, 1, wxEXPAND, 5 );
541 fgSizer32->Add( fgSizer33, 1, wxEXPAND, 5 );
544 tabType->SetSizer( fgSizer32 );
546 fgSizer32->Fit( tabType );
547 szrNewAccount->Add( tabType, 1, wxEXPAND | wxALL, 5 );
549 tabConn = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
552 wxBoxSizer* bSizer323;
553 bSizer323 = new wxBoxSizer( wxVERTICAL );
555 lblConnectionResult = new wxStaticText( tabConn, wxID_ANY, wxT("Connection Results:"), wxDefaultPosition, wxDefaultSize, 0 );
556 lblConnectionResult->Wrap( -1 );
557 lblConnectionResult->SetFont( wxFont( 9, wxFONTFAMILY_SWISS, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxT("Sans") ) );
559 bSizer323->Add( lblConnectionResult, 0, wxALL, 5 );
561 wxFlexGridSizer* fgSizer34;
562 fgSizer34 = new wxFlexGridSizer( 0, 2, 0, 0 );
563 fgSizer34->SetFlexibleDirection( wxBOTH );
564 fgSizer34->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
566 lblServerConnected = new wxStaticText( tabConn, wxID_ANY, wxT("Server connected:"), wxDefaultPosition, wxDefaultSize, 0 );
567 lblServerConnected->Wrap( -1 );
568 fgSizer34->Add( lblServerConnected, 0, wxALL, 5 );
570 lblServerConnResult = new wxStaticText( tabConn, wxID_ANY, wxT("..."), wxDefaultPosition, wxDefaultSize, 0 );
571 lblServerConnResult->Wrap( -1 );
572 fgSizer34->Add( lblServerConnResult, 0, wxALL, 5 );
574 lblValidResponse = new wxStaticText( tabConn, wxID_ANY, wxT("Server gave valid response:"), wxDefaultPosition, wxDefaultSize, 0 );
575 lblValidResponse->Wrap( -1 );
576 fgSizer34->Add( lblValidResponse, 0, wxALL, 5 );
578 lblServerResponse = new wxStaticText( tabConn, wxID_ANY, wxT("..."), wxDefaultPosition, wxDefaultSize, 0 );
579 lblServerResponse->Wrap( -1 );
580 fgSizer34->Add( lblServerResponse, 0, wxALL, 5 );
582 lblUseSSL = new wxStaticText( tabConn, wxID_ANY, wxT("Server uses SSL:"), wxDefaultPosition, wxDefaultSize, 0 );
583 lblUseSSL->Wrap( -1 );
584 fgSizer34->Add( lblUseSSL, 0, wxALL, 5 );
586 lblServerSSLResult = new wxStaticText( tabConn, wxID_ANY, wxT("..."), wxDefaultPosition, wxDefaultSize, 0 );
587 lblServerSSLResult->Wrap( -1 );
588 fgSizer34->Add( lblServerSSLResult, 0, wxALL, 5 );
590 lblServerSSLCert = new wxStaticText( tabConn, wxID_ANY, wxT("Server has valid SSL certificate:"), wxDefaultPosition, wxDefaultSize, 0 );
591 lblServerSSLCert->Wrap( -1 );
592 fgSizer34->Add( lblServerSSLCert, 0, wxALL, 5 );
594 lblServerSSLValid = new wxStaticText( tabConn, wxID_ANY, wxT("..."), wxDefaultPosition, wxDefaultSize, 0 );
595 lblServerSSLValid->Wrap( -1 );
596 fgSizer34->Add( lblServerSSLValid, 0, wxALL, 5 );
598 lblServerUsernamePassword = new wxStaticText( tabConn, wxID_ANY, wxT("Able to Login:"), wxDefaultPosition, wxDefaultSize, 0 );
599 lblServerUsernamePassword->Wrap( -1 );
600 fgSizer34->Add( lblServerUsernamePassword, 0, wxALL, 5 );
602 lblAbleToLoginResult = new wxStaticText( tabConn, wxID_ANY, wxT("..."), wxDefaultPosition, wxDefaultSize, 0 );
603 lblAbleToLoginResult->Wrap( -1 );
604 fgSizer34->Add( lblAbleToLoginResult, 0, wxALL, 5 );
606 lblIsCalDAV = new wxStaticText( tabConn, wxID_ANY, wxT("Server has CardDAV Support:"), wxDefaultPosition, wxDefaultSize, 0 );
607 lblIsCalDAV->Wrap( -1 );
608 fgSizer34->Add( lblIsCalDAV, 0, wxALL, 5 );
610 lblCardDAVSupportResult = new wxStaticText( tabConn, wxID_ANY, wxT("..."), wxDefaultPosition, wxDefaultSize, 0 );
611 lblCardDAVSupportResult->Wrap( -1 );
612 fgSizer34->Add( lblCardDAVSupportResult, 0, wxALL, 5 );
615 bSizer323->Add( fgSizer34, 1, wxEXPAND, 5 );
617 m_staticline3 = new wxStaticLine( tabConn, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
618 bSizer323->Add( m_staticline3, 0, wxEXPAND | wxALL, 5 );
620 lblConnectionResultText = new wxStaticText( tabConn, wxID_ANY, wxT("..."), wxDefaultPosition, wxDefaultSize, 0 );
621 lblConnectionResultText->Wrap( 360 );
622 lblConnectionResultText->SetMinSize( wxSize( -1,40 ) );
624 bSizer323->Add( lblConnectionResultText, 0, wxALL|wxEXPAND, 5 );
627 tabConn->SetSizer( bSizer323 );
629 bSizer323->Fit( tabConn );
630 szrNewAccount->Add( tabConn, 1, wxEXPAND | wxALL, 5 );
632 tabFinish = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
635 wxBoxSizer* bSizer3231;
636 bSizer3231 = new wxBoxSizer( wxVERTICAL );
638 lblFinishText = new wxStaticText( tabFinish, wxID_ANY, wxT("Enter the account name and click on Finish."), wxDefaultPosition, wxDefaultSize, 0 );
639 lblFinishText->Wrap( -1 );
640 bSizer3231->Add( lblFinishText, 0, wxALL, 5 );
642 wxFlexGridSizer* fgSizer341;
643 fgSizer341 = new wxFlexGridSizer( 0, 2, 0, 0 );
644 fgSizer341->AddGrowableCol( 1 );
645 fgSizer341->SetFlexibleDirection( wxBOTH );
646 fgSizer341->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
648 lblAccountName = new wxStaticText( tabFinish, wxID_ANY, wxT("Account Name:"), wxDefaultPosition, wxDefaultSize, 0 );
649 lblAccountName->Wrap( -1 );
650 fgSizer341->Add( lblAccountName, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
652 txtAccountName = new wxTextCtrl( tabFinish, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
653 fgSizer341->Add( txtAccountName, 1, wxALL|wxEXPAND, 5 );
656 bSizer3231->Add( fgSizer341, 1, wxEXPAND, 5 );
659 tabFinish->SetSizer( bSizer3231 );
661 bSizer3231->Fit( tabFinish );
662 szrNewAccount->Add( tabFinish, 1, wxEXPAND | wxALL, 5 );
665 fgSizer30->Add( szrNewAccount, 1, wxEXPAND, 5 );
667 wxBoxSizer* bSizer322;
668 bSizer322 = new wxBoxSizer( wxHORIZONTAL );
670 btnPrevious = new wxButton( this, wxID_ANY, wxT("< Previous"), wxDefaultPosition, wxDefaultSize, 0 );
671 bSizer322->Add( btnPrevious, 0, wxALL, 5 );
673 btnNext = new wxButton( this, wxID_ANY, wxT("Next >"), wxDefaultPosition, wxDefaultSize, 0 );
674 btnNext->SetDefault();
675 bSizer322->Add( btnNext, 0, wxALL, 5 );
677 btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );
678 bSizer322->Add( btnClose, 0, wxALL, 5 );
681 fgSizer30->Add( bSizer322, 0, wxALIGN_RIGHT, 5 );
684 this->SetSizer( fgSizer30 );
687 this->Centre( wxBOTH );
690 cmbServerType->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( frmNewAccountADT::UpdateRequirements ), NULL, this );
691 txtAccountName->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( frmNewAccountADT::CheckAccountName ), NULL, this );
692 btnPrevious->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmNewAccountADT::ProcessPrevious ), NULL, this );
693 btnNext->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmNewAccountADT::ProcessNext ), NULL, this );
694 btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmNewAccountADT::CloseWindow ), NULL, this );
697 frmNewAccountADT::~frmNewAccountADT()
700 cmbServerType->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( frmNewAccountADT::UpdateRequirements ), NULL, this );
701 txtAccountName->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( frmNewAccountADT::CheckAccountName ), NULL, this );
702 btnPrevious->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmNewAccountADT::ProcessPrevious ), NULL, this );
703 btnNext->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmNewAccountADT::ProcessNext ), NULL, this );
704 btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmNewAccountADT::CloseWindow ), NULL, this );
708 frmConflictResolutionADT::frmConflictResolutionADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
710 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
712 wxFlexGridSizer* fgSizer39;
713 fgSizer39 = new wxFlexGridSizer( 0, 1, 0, 0 );
714 fgSizer39->AddGrowableCol( 0 );
715 fgSizer39->AddGrowableRow( 0 );
716 fgSizer39->SetFlexibleDirection( wxBOTH );
717 fgSizer39->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
719 wxBoxSizer* bSizer363;
720 bSizer363 = new wxBoxSizer( wxHORIZONTAL );
722 wxBoxSizer* bSizer364;
723 bSizer364 = new wxBoxSizer( wxVERTICAL );
725 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 );
727 bSizer364->Add( lblText, 0, wxALL|wxEXPAND, 5 );
729 m_splitter3 = new wxSplitterWindow( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSP_3D );
730 m_splitter3->Connect( wxEVT_IDLE, wxIdleEventHandler( frmConflictResolutionADT::m_splitter3OnIdle ), NULL, this );
732 m_panel44 = new wxPanel( m_splitter3, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
733 wxBoxSizer* bSizer365;
734 bSizer365 = new wxBoxSizer( wxVERTICAL );
736 htmClient = new wxHtmlWindow( m_panel44, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHW_SCROLLBAR_AUTO|wxSUNKEN_BORDER );
737 bSizer365->Add( htmClient, 1, wxALL|wxEXPAND, 5 );
740 m_panel44->SetSizer( bSizer365 );
742 bSizer365->Fit( m_panel44 );
743 m_panel45 = new wxPanel( m_splitter3, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
744 wxBoxSizer* bSizer366;
745 bSizer366 = new wxBoxSizer( wxVERTICAL );
747 htmServer = new wxHtmlWindow( m_panel45, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHW_SCROLLBAR_AUTO|wxSUNKEN_BORDER );
748 bSizer366->Add( htmServer, 1, wxALL|wxEXPAND, 5 );
751 m_panel45->SetSizer( bSizer366 );
753 bSizer366->Fit( m_panel45 );
754 m_splitter3->SplitVertically( m_panel44, m_panel45, 257 );
755 bSizer364->Add( m_splitter3, 1, wxEXPAND, 5 );
757 wxBoxSizer* bSizer367;
758 bSizer367 = new wxBoxSizer( wxHORIZONTAL );
761 bSizer367->Add( 0, 0, 1, wxEXPAND, 5 );
763 btnKeepLocal = new wxButton( this, wxID_ANY, wxT("Keep Local"), wxDefaultPosition, wxDefaultSize, 0 );
764 bSizer367->Add( btnKeepLocal, 0, wxALL, 5 );
766 btnKeepServer = new wxButton( this, wxID_ANY, wxT("Keep Server"), wxDefaultPosition, wxDefaultSize, 0 );
767 bSizer367->Add( btnKeepServer, 0, wxALL, 5 );
769 btnDecideLater = new wxButton( this, wxID_ANY, wxT("Decide Later"), wxDefaultPosition, wxDefaultSize, 0 );
770 bSizer367->Add( btnDecideLater, 0, wxALL, 5 );
773 bSizer367->Add( 0, 0, 1, wxEXPAND, 5 );
776 bSizer364->Add( bSizer367, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
779 bSizer363->Add( bSizer364, 1, wxEXPAND, 5 );
782 fgSizer39->Add( bSizer363, 1, wxEXPAND, 5 );
785 this->SetSizer( fgSizer39 );
788 this->Centre( wxBOTH );
791 btnKeepLocal->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmConflictResolutionADT::KeepLocalData ), NULL, this );
792 btnKeepServer->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmConflictResolutionADT::KeepServerData ), NULL, this );
793 btnDecideLater->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmConflictResolutionADT::DecideLater ), NULL, this );
796 frmConflictResolutionADT::~frmConflictResolutionADT()
799 btnKeepLocal->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmConflictResolutionADT::KeepLocalData ), NULL, this );
800 btnKeepServer->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmConflictResolutionADT::KeepServerData ), NULL, this );
801 btnDecideLater->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmConflictResolutionADT::DecideLater ), NULL, this );
805 frmActivityMgrADT::frmActivityMgrADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxFrame( parent, id, title, pos, size, style )
807 this->SetSizeHints( wxSize( 400,425 ), wxDefaultSize );
809 mnuMenuBar = new wxMenuBar( 0 );
810 mnuWindow = new wxMenu();
811 wxMenuItem* mnuStopActivity;
812 mnuStopActivity = new wxMenuItem( mnuWindow, wxID_ANY, wxString( wxT("&Stop Activity") ) + wxT('\t') + wxT("CTRL+ALT+S"), wxEmptyString, wxITEM_NORMAL );
813 mnuWindow->Append( mnuStopActivity );
815 wxMenuItem* mnuActivityStopAll;
816 mnuActivityStopAll = new wxMenuItem( mnuWindow, wxID_ANY, wxString( wxT("Stop All Activities") ) + wxT('\t') + wxT("CTRL+SHIFT+ALT+S"), wxEmptyString, wxITEM_NORMAL );
817 mnuWindow->Append( mnuActivityStopAll );
819 wxMenuItem* mnuRetryActivity;
820 mnuRetryActivity = new wxMenuItem( mnuWindow, wxID_ANY, wxString( wxT("&Retry Activity") ) + wxT('\t') + wxT("CTRL+R"), wxEmptyString, wxITEM_NORMAL );
821 mnuWindow->Append( mnuRetryActivity );
823 mnuWindow->AppendSeparator();
825 mnuSleepMode = new wxMenuItem( mnuWindow, wxID_ANY, wxString( wxT("Sleep Mode") ) , wxEmptyString, wxITEM_CHECK );
826 mnuWindow->Append( mnuSleepMode );
828 mnuWindow->AppendSeparator();
830 wxMenuItem* mnuWindowClose;
831 mnuWindowClose = new wxMenuItem( mnuWindow, wxID_ANY, wxString( wxT("&Close Window") ) + wxT('\t') + wxT("ALT+F4"), wxEmptyString, wxITEM_NORMAL );
832 mnuWindow->Append( mnuWindowClose );
834 mnuMenuBar->Append( mnuWindow, wxT("&Activity") );
836 this->SetMenuBar( mnuMenuBar );
838 wxFlexGridSizer* fgSizer38;
839 fgSizer38 = new wxFlexGridSizer( 0, 1, 0, 0 );
840 fgSizer38->AddGrowableCol( 0 );
841 fgSizer38->AddGrowableRow( 1 );
842 fgSizer38->SetFlexibleDirection( wxBOTH );
843 fgSizer38->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
845 m_panel43 = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
846 wxBoxSizer* bSizer363;
847 bSizer363 = new wxBoxSizer( wxHORIZONTAL );
849 bmpActivity = new wxStaticBitmap( m_panel43, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
850 bmpActivity->SetMinSize( wxSize( 64,64 ) );
852 bSizer363->Add( bmpActivity, 0, wxALL, 5 );
854 m_panel46 = new wxPanel( m_panel43, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
855 wxBoxSizer* bSizer364;
856 bSizer364 = new wxBoxSizer( wxVERTICAL );
859 bSizer364->Add( 0, 0, 1, wxEXPAND, 5 );
861 lblDetails = new wxStaticText( m_panel46, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE );
862 lblDetails->Wrap( -1 );
863 bSizer364->Add( lblDetails, 0, wxALL|wxEXPAND, 0 );
866 bSizer364->Add( 0, 0, 1, wxEXPAND, 5 );
868 GauProgress = new wxGauge( m_panel46, wxID_ANY, 100, wxDefaultPosition, wxDefaultSize, wxGA_HORIZONTAL );
869 GauProgress->SetValue( 0 );
870 GauProgress->SetMinSize( wxSize( -1,20 ) );
872 bSizer364->Add( GauProgress, 0, wxALL|wxEXPAND, 0 );
875 bSizer364->Add( 0, 0, 1, wxEXPAND, 5 );
878 m_panel46->SetSizer( bSizer364 );
880 bSizer364->Fit( m_panel46 );
881 bSizer363->Add( m_panel46, 1, wxEXPAND | wxALL, 5 );
884 m_panel43->SetSizer( bSizer363 );
886 bSizer363->Fit( m_panel43 );
887 fgSizer38->Add( m_panel43, 1, wxALL|wxEXPAND, 0 );
889 m_panel44 = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
890 wxBoxSizer* bSizer365;
891 bSizer365 = new wxBoxSizer( wxVERTICAL );
893 lstActivity = new wxListCtrl( m_panel44, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
894 bSizer365->Add( lstActivity, 1, wxALL|wxEXPAND, 5 );
897 m_panel44->SetSizer( bSizer365 );
899 bSizer365->Fit( m_panel44 );
900 fgSizer38->Add( m_panel44, 5, wxALL|wxEXPAND, 0 );
903 this->SetSizer( fgSizer38 );
906 this->Centre( wxBOTH );
909 this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( frmActivityMgrADT::CloseWindow ) );
910 this->Connect( mnuStopActivity->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmActivityMgrADT::StopTask ) );
911 this->Connect( mnuActivityStopAll->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmActivityMgrADT::StopAllTasks ) );
912 this->Connect( mnuRetryActivity->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmActivityMgrADT::RetryTask ) );
913 this->Connect( mnuSleepMode->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmActivityMgrADT::SleepMode ) );
914 this->Connect( mnuWindowClose->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmActivityMgrADT::CloseWindow ) );
917 frmActivityMgrADT::~frmActivityMgrADT()
920 this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( frmActivityMgrADT::CloseWindow ) );
921 this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmActivityMgrADT::StopTask ) );
922 this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmActivityMgrADT::StopAllTasks ) );
923 this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmActivityMgrADT::RetryTask ) );
924 this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmActivityMgrADT::SleepMode ) );
925 this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmActivityMgrADT::CloseWindow ) );
929 frmEditAccountADT::frmEditAccountADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
931 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
933 wxBoxSizer* bSizer384;
934 bSizer384 = new wxBoxSizer( wxVERTICAL );
937 szrTabs = new wxBoxSizer( wxVERTICAL );
939 tabAccount = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
940 tabProperties = new wxPanel( tabAccount, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
941 wxFlexGridSizer* fgSizer43;
942 fgSizer43 = new wxFlexGridSizer( 0, 2, 0, 0 );
943 fgSizer43->AddGrowableCol( 1 );
944 fgSizer43->SetFlexibleDirection( wxBOTH );
945 fgSizer43->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_NONE );
947 lblAccName = new wxStaticText( tabProperties, wxID_ANY, wxT("Account Name:"), wxDefaultPosition, wxDefaultSize, 0 );
948 lblAccName->Wrap( -1 );
949 fgSizer43->Add( lblAccName, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
951 txtAccountName = new wxTextCtrl( tabProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
952 fgSizer43->Add( txtAccountName, 1, wxALL|wxEXPAND, 5 );
954 lblAccAdr = new wxStaticText( tabProperties, wxID_ANY, wxT("Address:"), wxDefaultPosition, wxDefaultSize, 0 );
955 lblAccAdr->Wrap( -1 );
956 fgSizer43->Add( lblAccAdr, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
958 txtAddress = new wxTextCtrl( tabProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
959 fgSizer43->Add( txtAddress, 0, wxALL|wxEXPAND, 5 );
961 m_staticText193 = new wxStaticText( tabProperties, wxID_ANY, wxT("Port:"), wxDefaultPosition, wxDefaultSize, 0 );
962 m_staticText193->Wrap( -1 );
963 fgSizer43->Add( m_staticText193, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
965 txtPort = new wxTextCtrl( tabProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
967 if ( !txtPort->HasFlag( wxTE_MULTILINE ) )
969 txtPort->SetMaxLength( 5 );
972 txtPort->SetMaxLength( 5 );
974 fgSizer43->Add( txtPort, 0, wxALL, 5 );
976 lblPort = new wxStaticText( tabProperties, wxID_ANY, wxT("Username:"), wxDefaultPosition, wxDefaultSize, 0 );
978 fgSizer43->Add( lblPort, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
980 txtUsername = new wxTextCtrl( tabProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
981 fgSizer43->Add( txtUsername, 0, wxALL|wxEXPAND, 5 );
983 lblPassword = new wxStaticText( tabProperties, wxID_ANY, wxT("Password:"), wxDefaultPosition, wxDefaultSize, 0 );
984 lblPassword->Wrap( -1 );
985 fgSizer43->Add( lblPassword, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
987 txtPassword = new wxTextCtrl( tabProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PASSWORD );
988 fgSizer43->Add( txtPassword, 0, wxALL|wxEXPAND, 5 );
990 lblPrefix = new wxStaticText( tabProperties, wxID_ANY, wxT("Prefix:"), wxDefaultPosition, wxDefaultSize, 0 );
991 lblPrefix->Wrap( -1 );
992 fgSizer43->Add( lblPrefix, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
994 wxBoxSizer* bSizer391;
995 bSizer391 = new wxBoxSizer( wxHORIZONTAL );
997 txtPrefix = new wxTextCtrl( tabProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
998 bSizer391->Add( txtPrefix, 1, wxALL|wxEXPAND, 5 );
1000 btnDetect = new wxButton( tabProperties, wxID_ANY, wxT("Detect"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT );
1001 bSizer391->Add( btnDetect, 0, wxALIGN_CENTER_VERTICAL, 0 );
1004 fgSizer43->Add( bSizer391, 1, wxEXPAND|wxRIGHT, 5 );
1006 txtSSL = new wxStaticText( tabProperties, wxID_ANY, wxT("SSL:"), wxDefaultPosition, wxDefaultSize, 0 );
1008 fgSizer43->Add( txtSSL, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
1010 chkSSL = new wxCheckBox( tabProperties, wxID_ANY, wxT("Use SSL"), wxDefaultPosition, wxDefaultSize, 0 );
1011 fgSizer43->Add( chkSSL, 0, wxALL, 5 );
1014 tabProperties->SetSizer( fgSizer43 );
1015 tabProperties->Layout();
1016 fgSizer43->Fit( tabProperties );
1017 tabAccount->AddPage( tabProperties, wxT("General"), true );
1018 tabRefresh = new wxPanel( tabAccount, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
1019 wxFlexGridSizer* fgSizer431;
1020 fgSizer431 = new wxFlexGridSizer( 0, 2, 0, 0 );
1021 fgSizer431->AddGrowableCol( 1 );
1022 fgSizer431->SetFlexibleDirection( wxBOTH );
1023 fgSizer431->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_NONE );
1025 lblRefresh = new wxStaticText( tabRefresh, wxID_ANY, wxT("Refresh Time:"), wxDefaultPosition, wxDefaultSize, 0 );
1026 lblRefresh->Wrap( -1 );
1027 fgSizer431->Add( lblRefresh, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
1029 txtRefresh = new wxTextCtrl( tabRefresh, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
1031 if ( !txtRefresh->HasFlag( wxTE_MULTILINE ) )
1033 txtRefresh->SetMaxLength( 5 );
1036 txtRefresh->SetMaxLength( 5 );
1038 fgSizer431->Add( txtRefresh, 1, wxALL, 5 );
1041 tabRefresh->SetSizer( fgSizer431 );
1042 tabRefresh->Layout();
1043 fgSizer431->Fit( tabRefresh );
1044 tabAccount->AddPage( tabRefresh, wxT("Refresh"), false );
1046 szrTabs->Add( tabAccount, 1, wxEXPAND | wxALL, 5 );
1049 bSizer384->Add( szrTabs, 1, wxEXPAND, 0 );
1051 wxBoxSizer* szrButtons;
1052 szrButtons = new wxBoxSizer( wxHORIZONTAL );
1055 szrButtons->Add( 1, 0, 1, wxEXPAND, 0 );
1057 btnSave = new wxButton( this, wxID_ANY, wxT("Save"), wxDefaultPosition, wxDefaultSize, 0 );
1058 btnSave->SetDefault();
1059 szrButtons->Add( btnSave, 0, wxALIGN_RIGHT, 0 );
1062 szrButtons->Add( 5, 0, 0, 0, 0 );
1064 btnCancel = new wxButton( this, wxID_ANY, wxT("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
1065 szrButtons->Add( btnCancel, 0, wxALIGN_RIGHT, 0 );
1068 szrButtons->Add( 5, 0, 0, wxEXPAND, 0 );
1071 bSizer384->Add( szrButtons, 0, wxBOTTOM|wxEXPAND, 5 );
1074 this->SetSizer( bSizer384 );
1077 this->Centre( wxBOTH );
1080 btnDetect->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmEditAccountADT::DetectAddressBook ), NULL, this );
1081 btnSave->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmEditAccountADT::UpdateSettings ), NULL, this );
1082 btnCancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmEditAccountADT::CloseWindow ), NULL, this );
1085 frmEditAccountADT::~frmEditAccountADT()
1087 // Disconnect Events
1088 btnDetect->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmEditAccountADT::DetectAddressBook ), NULL, this );
1089 btnSave->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmEditAccountADT::UpdateSettings ), NULL, this );
1090 btnCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmEditAccountADT::CloseWindow ), NULL, this );
1094 frmSSLCertificateADT::frmSSLCertificateADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
1096 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
1098 wxBoxSizer* bSizer384;
1099 bSizer384 = new wxBoxSizer( wxVERTICAL );
1101 m_notebook28 = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
1102 tabSummary = new wxPanel( m_notebook28, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
1103 wxBoxSizer* bSizer386;
1104 bSizer386 = new wxBoxSizer( wxVERTICAL );
1106 pnlTop = new wxPanel( tabSummary, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
1107 pnlTop->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNHIGHLIGHT ) );
1109 wxBoxSizer* bSizer389;
1110 bSizer389 = new wxBoxSizer( wxVERTICAL );
1112 lblCertName = new wxStaticText( pnlTop, wxID_ANY, wxT("Certificate Name"), wxDefaultPosition, wxDefaultSize, 0 );
1113 lblCertName->Wrap( -1 );
1114 lblCertName->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) );
1116 bSizer389->Add( lblCertName, 0, wxALL, 5 );
1118 lblValidityStatus = new wxStaticText( pnlTop, wxID_ANY, wxT("Validity Status"), wxDefaultPosition, wxDefaultSize, 0 );
1119 lblValidityStatus->Wrap( -1 );
1120 bSizer389->Add( lblValidityStatus, 0, wxALL, 5 );
1123 pnlTop->SetSizer( bSizer389 );
1125 bSizer389->Fit( pnlTop );
1126 bSizer386->Add( pnlTop, 0, wxEXPAND | wxALL, 5 );
1128 wxBoxSizer* bSizer392;
1129 bSizer392 = new wxBoxSizer( wxVERTICAL );
1131 m_panel54 = new wxPanel( tabSummary, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
1132 wxFlexGridSizer* fgSizer44;
1133 fgSizer44 = new wxFlexGridSizer( 0, 2, 0, 0 );
1134 fgSizer44->AddGrowableCol( 1 );
1135 fgSizer44->SetFlexibleDirection( wxHORIZONTAL );
1136 fgSizer44->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
1138 lblIssuedTo = new wxStaticText( m_panel54, wxID_ANY, wxT("Issued To:"), wxDefaultPosition, wxDefaultSize, 0 );
1139 lblIssuedTo->Wrap( -1 );
1140 fgSizer44->Add( lblIssuedTo, 0, wxALL, 5 );
1142 lblIssuedToData = new wxStaticText( m_panel54, wxID_ANY, wxT("IssuedTo"), wxDefaultPosition, wxDefaultSize, 0 );
1143 lblIssuedToData->Wrap( -1 );
1144 fgSizer44->Add( lblIssuedToData, 1, wxALL|wxEXPAND, 5 );
1146 lblValidFrom = new wxStaticText( m_panel54, wxID_ANY, wxT("Valid From:"), wxDefaultPosition, wxDefaultSize, 0 );
1147 lblValidFrom->Wrap( -1 );
1148 fgSizer44->Add( lblValidFrom, 0, wxALL, 5 );
1150 lblValidFromData = new wxStaticText( m_panel54, wxID_ANY, wxT("ValidDate"), wxDefaultPosition, wxDefaultSize, 0 );
1151 lblValidFromData->Wrap( -1 );
1152 fgSizer44->Add( lblValidFromData, 1, wxALL|wxEXPAND, 5 );
1154 lblValidUntil = new wxStaticText( m_panel54, wxID_ANY, wxT("Valid Until:"), wxDefaultPosition, wxDefaultSize, 0 );
1155 lblValidUntil->Wrap( -1 );
1156 fgSizer44->Add( lblValidUntil, 0, wxALL, 5 );
1158 lblValidUntilData = new wxStaticText( m_panel54, wxID_ANY, wxT("ValidUntil"), wxDefaultPosition, wxDefaultSize, 0 );
1159 lblValidUntilData->Wrap( -1 );
1160 fgSizer44->Add( lblValidUntilData, 1, wxALL|wxEXPAND, 5 );
1163 m_panel54->SetSizer( fgSizer44 );
1164 m_panel54->Layout();
1165 fgSizer44->Fit( m_panel54 );
1166 bSizer392->Add( m_panel54, 1, wxEXPAND | wxALL, 5 );
1169 bSizer386->Add( bSizer392, 1, wxEXPAND, 5 );
1172 tabSummary->SetSizer( bSizer386 );
1173 tabSummary->Layout();
1174 bSizer386->Fit( tabSummary );
1175 m_notebook28->AddPage( tabSummary, wxT("Summary"), true );
1176 tabDetail = new wxPanel( m_notebook28, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
1177 wxBoxSizer* bSizer3891;
1178 bSizer3891 = new wxBoxSizer( wxVERTICAL );
1180 lstValues = new wxListCtrl( tabDetail, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxSUNKEN_BORDER );
1181 bSizer3891->Add( lstValues, 1, wxALL|wxEXPAND, 5 );
1183 txtValueData = new wxTextCtrl( tabDetail, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_CHARWRAP|wxTE_MULTILINE|wxTE_READONLY );
1184 txtValueData->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE ) );
1186 bSizer3891->Add( txtValueData, 1, wxALL|wxEXPAND, 5 );
1189 tabDetail->SetSizer( bSizer3891 );
1190 tabDetail->Layout();
1191 bSizer3891->Fit( tabDetail );
1192 m_notebook28->AddPage( tabDetail, wxT("Detail"), false );
1193 tabHierarchy = new wxPanel( m_notebook28, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
1194 wxBoxSizer* bSizer390;
1195 bSizer390 = new wxBoxSizer( wxVERTICAL );
1197 treHierarchy = new wxTreeCtrl( tabHierarchy, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTR_DEFAULT_STYLE|wxSUNKEN_BORDER );
1198 bSizer390->Add( treHierarchy, 1, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
1200 m_panel57 = new wxPanel( tabHierarchy, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
1201 wxBoxSizer* bSizer393;
1202 bSizer393 = new wxBoxSizer( wxVERTICAL );
1204 btnViewCert = new wxButton( m_panel57, wxID_ANY, wxT("View Certificate"), wxDefaultPosition, wxDefaultSize, 0 );
1205 bSizer393->Add( btnViewCert, 0, wxALIGN_RIGHT|wxALL, 0 );
1208 m_panel57->SetSizer( bSizer393 );
1209 m_panel57->Layout();
1210 bSizer393->Fit( m_panel57 );
1211 bSizer390->Add( m_panel57, 0, wxEXPAND | wxALL, 5 );
1214 tabHierarchy->SetSizer( bSizer390 );
1215 tabHierarchy->Layout();
1216 bSizer390->Fit( tabHierarchy );
1217 m_notebook28->AddPage( tabHierarchy, wxT("Hierarchy"), false );
1219 bSizer384->Add( m_notebook28, 1, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
1221 pnlButtons = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
1222 wxBoxSizer* bSizer385;
1223 bSizer385 = new wxBoxSizer( wxVERTICAL );
1225 btnClose = new wxButton( pnlButtons, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );
1226 btnClose->SetDefault();
1227 bSizer385->Add( btnClose, 0, wxALIGN_RIGHT, 5 );
1230 pnlButtons->SetSizer( bSizer385 );
1231 pnlButtons->Layout();
1232 bSizer385->Fit( pnlButtons );
1233 bSizer384->Add( pnlButtons, 0, wxEXPAND | wxALL, 5 );
1236 this->SetSizer( bSizer384 );
1239 this->Centre( wxBOTH );
1242 lstValues->Connect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( frmSSLCertificateADT::LoadValueData ), NULL, this );
1243 treHierarchy->Connect( wxEVT_COMMAND_TREE_SEL_CHANGED, wxTreeEventHandler( frmSSLCertificateADT::CheckCertificate ), NULL, this );
1244 btnViewCert->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmSSLCertificateADT::ViewCertificate ), NULL, this );
1245 btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmSSLCertificateADT::CloseWindow ), NULL, this );
1248 frmSSLCertificateADT::~frmSSLCertificateADT()
1250 // Disconnect Events
1251 lstValues->Disconnect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( frmSSLCertificateADT::LoadValueData ), NULL, this );
1252 treHierarchy->Disconnect( wxEVT_COMMAND_TREE_SEL_CHANGED, wxTreeEventHandler( frmSSLCertificateADT::CheckCertificate ), NULL, this );
1253 btnViewCert->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmSSLCertificateADT::ViewCertificate ), NULL, this );
1254 btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmSSLCertificateADT::CloseWindow ), NULL, this );
1258 frmInvalidSSLCertificateADT::frmInvalidSSLCertificateADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
1260 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
1262 wxBoxSizer* bSizer387;
1263 bSizer387 = new wxBoxSizer( wxVERTICAL );
1265 lblSSLText = new wxStaticText( this, wxID_ANY, wxT("Text"), wxDefaultPosition, wxDefaultSize, 0 );
1266 lblSSLText->Wrap( -1 );
1267 bSizer387->Add( lblSSLText, 1, wxALL|wxEXPAND, 5 );
1269 wxBoxSizer* bSizer388;
1270 bSizer388 = new wxBoxSizer( wxHORIZONTAL );
1272 btnAccept = new wxButton( this, wxID_ANY, wxT("Accept"), wxDefaultPosition, wxDefaultSize, 0 );
1273 bSizer388->Add( btnAccept, 0, wxALL, 5 );
1275 btnReject = new wxButton( this, wxID_ANY, wxT("Reject"), wxDefaultPosition, wxDefaultSize, 0 );
1276 btnReject->SetDefault();
1277 bSizer388->Add( btnReject, 0, wxALL, 5 );
1279 btnViewCert = new wxButton( this, wxID_ANY, wxT("View Certificates..."), wxDefaultPosition, wxDefaultSize, 0 );
1280 bSizer388->Add( btnViewCert, 0, wxALL, 5 );
1283 bSizer387->Add( bSizer388, 0, wxALIGN_CENTER_HORIZONTAL, 0 );
1286 this->SetSizer( bSizer387 );
1289 this->Centre( wxBOTH );
1292 btnAccept->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmInvalidSSLCertificateADT::Accept ), NULL, this );
1293 btnReject->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmInvalidSSLCertificateADT::Reject ), NULL, this );
1294 btnViewCert->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmInvalidSSLCertificateADT::ViewCertificates ), NULL, this );
1297 frmInvalidSSLCertificateADT::~frmInvalidSSLCertificateADT()
1299 // Disconnect Events
1300 btnAccept->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmInvalidSSLCertificateADT::Accept ), NULL, this );
1301 btnReject->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmInvalidSSLCertificateADT::Reject ), NULL, this );
1302 btnViewCert->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmInvalidSSLCertificateADT::ViewCertificates ), NULL, this );
1306 frmCalendarEditorADT::frmCalendarEditorADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
1308 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
1310 wxBoxSizer* bSizer44;
1311 bSizer44 = new wxBoxSizer( wxVERTICAL );
1313 wxFlexGridSizer* fgSizer12;
1314 fgSizer12 = new wxFlexGridSizer( 4, 2, 0, 0 );
1315 fgSizer12->AddGrowableCol( 1 );
1316 fgSizer12->AddGrowableRow( 3 );
1317 fgSizer12->SetFlexibleDirection( wxBOTH );
1318 fgSizer12->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
1320 lblAccount = new wxStaticText( this, wxID_ANY, wxT("Account:"), wxDefaultPosition, wxDefaultSize, 0 );
1321 lblAccount->Wrap( -1 );
1322 fgSizer12->Add( lblAccount, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
1324 wxArrayString cmbAccountChoices;
1325 cmbAccount = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, cmbAccountChoices, 0 );
1326 cmbAccount->SetSelection( 0 );
1327 fgSizer12->Add( cmbAccount, 0, wxALL|wxEXPAND, 5 );
1329 lblName = new wxStaticText( this, wxID_ANY, wxT("Name:"), wxDefaultPosition, wxDefaultSize, 0 );
1330 lblName->Wrap( -1 );
1331 fgSizer12->Add( lblName, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
1333 txtName = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
1334 fgSizer12->Add( txtName, 1, wxALL|wxEXPAND, 5 );
1336 lblColour = new wxStaticText( this, wxID_ANY, wxT("Colour:"), wxDefaultPosition, wxDefaultSize, 0 );
1337 lblColour->Wrap( -1 );
1338 fgSizer12->Add( lblColour, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
1340 clpColour = new wxColourPickerCtrl( this, wxID_ANY, wxColour( 0, 0, 0 ), wxDefaultPosition, wxSize( 50,24 ), wxCLRP_DEFAULT_STYLE );
1341 fgSizer12->Add( clpColour, 0, wxALL, 5 );
1343 lblDescription = new wxStaticText( this, wxID_ANY, wxT("Description:"), wxDefaultPosition, wxDefaultSize, 0 );
1344 lblDescription->Wrap( -1 );
1345 fgSizer12->Add( lblDescription, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
1347 txtDescription = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE );
1348 fgSizer12->Add( txtDescription, 1, wxALL|wxEXPAND, 5 );
1351 bSizer44->Add( fgSizer12, 1, wxEXPAND, 5 );
1353 wxBoxSizer* bSizer46;
1354 bSizer46 = new wxBoxSizer( wxHORIZONTAL );
1357 bSizer46->Add( 0, 0, 1, wxEXPAND, 5 );
1359 btnCreate = new wxButton( this, wxID_ANY, wxT("Create"), wxDefaultPosition, wxDefaultSize, 0 );
1360 btnCreate->SetDefault();
1361 bSizer46->Add( btnCreate, 0, wxALL, 5 );
1363 btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );
1364 bSizer46->Add( btnClose, 0, wxALL, 5 );
1367 bSizer44->Add( bSizer46, 0, wxEXPAND, 5 );
1370 this->SetSizer( bSizer44 );
1373 this->Centre( wxBOTH );
1376 btnCreate->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmCalendarEditorADT::ProcessCalendar ), NULL, this );
1377 btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmCalendarEditorADT::CloseWindow ), NULL, this );
1380 frmCalendarEditorADT::~frmCalendarEditorADT()
1382 // Disconnect Events
1383 btnCreate->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmCalendarEditorADT::ProcessCalendar ), NULL, this );
1384 btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmCalendarEditorADT::CloseWindow ), NULL, this );
1388 frmEventEditorADT::frmEventEditorADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxFrame( parent, id, title, pos, size, style )
1390 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
1391 this->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE ) );
1393 menuBar = new wxMenuBar( 0 );
1394 mnuEvent = new wxMenu();
1395 wxMenuItem* mnuEventSave;
1396 mnuEventSave = new wxMenuItem( mnuEvent, wxID_ANY, wxString( wxT("Save") ) , wxEmptyString, wxITEM_NORMAL );
1397 mnuEvent->Append( mnuEventSave );
1399 wxMenuItem* mnuEventSaveNew;
1400 mnuEventSaveNew = new wxMenuItem( mnuEvent, wxID_ANY, wxString( wxT("Save and New") ) , wxEmptyString, wxITEM_NORMAL );
1401 mnuEvent->Append( mnuEventSaveNew );
1403 mnuEvent->AppendSeparator();
1405 wxMenuItem* mnuEventClose;
1406 mnuEventClose = new wxMenuItem( mnuEvent, wxID_ANY, wxString( wxT("Close") ) , wxEmptyString, wxITEM_NORMAL );
1407 mnuEvent->Append( mnuEventClose );
1409 menuBar->Append( mnuEvent, wxT("Event") );
1411 mnuEdit = new wxMenu();
1412 wxMenuItem* mnuEditCut;
1413 mnuEditCut = new wxMenuItem( mnuEdit, wxID_CUT, wxString( wxT("Cut") ) , wxEmptyString, wxITEM_NORMAL );
1414 mnuEdit->Append( mnuEditCut );
1416 wxMenuItem* mnuEditCopy;
1417 mnuEditCopy = new wxMenuItem( mnuEdit, wxID_COPY, wxString( wxT("Copy") ) , wxEmptyString, wxITEM_NORMAL );
1418 mnuEdit->Append( mnuEditCopy );
1420 wxMenuItem* mnuEditPaste;
1421 mnuEditPaste = new wxMenuItem( mnuEdit, wxID_PASTE, wxString( wxT("Paste") ) , wxEmptyString, wxITEM_NORMAL );
1422 mnuEdit->Append( mnuEditPaste );
1424 menuBar->Append( mnuEdit, wxT("Edit") );
1426 this->SetMenuBar( menuBar );
1428 wxBoxSizer* bSizer46;
1429 bSizer46 = new wxBoxSizer( wxVERTICAL );
1431 nbkNotebook = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
1432 tabProperties = new wxScrolledWindow( nbkNotebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHSCROLL|wxVSCROLL );
1433 tabProperties->SetScrollRate( 5, 5 );
1434 szrList = new wxBoxSizer( wxVERTICAL );
1436 szrDetails = new wxFlexGridSizer( 3, 2, 0, 0 );
1437 szrDetails->AddGrowableCol( 1 );
1438 szrDetails->SetFlexibleDirection( wxBOTH );
1439 szrDetails->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
1441 lblCalendar = new wxStaticText( tabProperties, wxID_ANY, wxT("Calendar:"), wxDefaultPosition, wxDefaultSize, 0 );
1442 lblCalendar->Wrap( -1 );
1443 szrDetails->Add( lblCalendar, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
1445 wxArrayString cmbCalendarChoices;
1446 cmbCalendar = new wxChoice( tabProperties, wxID_ANY, wxDefaultPosition, wxDefaultSize, cmbCalendarChoices, 0 );
1447 cmbCalendar->SetSelection( 0 );
1448 szrDetails->Add( cmbCalendar, 1, wxALL|wxEXPAND, 5 );
1450 lblEventName = new wxStaticText( tabProperties, wxID_ANY, wxT("Name:"), wxDefaultPosition, wxDefaultSize, 0 );
1451 lblEventName->Wrap( -1 );
1452 szrDetails->Add( lblEventName, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
1454 txtEventName = new wxTextCtrl( tabProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
1455 szrDetails->Add( txtEventName, 1, wxALL|wxEXPAND, 5 );
1457 lblDescription = new wxStaticText( tabProperties, wxID_ANY, wxT("Description:"), wxDefaultPosition, wxDefaultSize, 0 );
1458 lblDescription->Wrap( -1 );
1459 szrDetails->Add( lblDescription, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
1461 txtEventDescription = new wxTextCtrl( tabProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE );
1462 txtEventDescription->SetMinSize( wxSize( -1,50 ) );
1464 szrDetails->Add( txtEventDescription, 0, wxALL|wxEXPAND, 5 );
1467 szrList->Add( szrDetails, 0, wxEXPAND, 5 );
1469 szrTime = new wxFlexGridSizer( 3, 3, 0, 0 );
1470 szrTime->SetFlexibleDirection( wxBOTH );
1471 szrTime->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
1473 lblStartTime = new wxStaticText( tabProperties, wxID_ANY, wxT("Start Time:"), wxDefaultPosition, wxDefaultSize, 0 );
1474 lblStartTime->Wrap( -1 );
1475 szrTime->Add( lblStartTime, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
1477 dapStartDate = new wxDatePickerCtrl( tabProperties, wxID_ANY, wxDefaultDateTime, wxDefaultPosition, wxDefaultSize, wxDP_DEFAULT|wxDP_DROPDOWN|wxDP_SHOWCENTURY );
1478 szrTime->Add( dapStartDate, 0, wxALL, 5 );
1480 txtStartTime = new wxTextCtrl( tabProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
1481 szrTime->Add( txtStartTime, 0, wxALL, 5 );
1483 lblEndTime = new wxStaticText( tabProperties, wxID_ANY, wxT("End Time:"), wxDefaultPosition, wxDefaultSize, 0 );
1484 lblEndTime->Wrap( -1 );
1485 szrTime->Add( lblEndTime, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
1487 dapEndDate = new wxDatePickerCtrl( tabProperties, wxID_ANY, wxDefaultDateTime, wxDefaultPosition, wxDefaultSize, wxDP_DEFAULT|wxDP_SHOWCENTURY );
1488 szrTime->Add( dapEndDate, 0, wxALL, 5 );
1490 txtEndTime = new wxTextCtrl( tabProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
1491 szrTime->Add( txtEndTime, 0, wxALL, 5 );
1493 lblDuration = new wxStaticText( tabProperties, wxID_ANY, wxT("Duration:"), wxDefaultPosition, wxDefaultSize, 0 );
1494 lblDuration->Wrap( -1 );
1495 szrTime->Add( lblDuration, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
1497 m_textCtrl20 = new wxTextCtrl( tabProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
1498 szrTime->Add( m_textCtrl20, 0, wxALL, 5 );
1501 szrList->Add( szrTime, 1, wxEXPAND, 5 );
1504 tabProperties->SetSizer( szrList );
1505 tabProperties->Layout();
1506 szrList->Fit( tabProperties );
1507 nbkNotebook->AddPage( tabProperties, wxT("Properties"), false );
1509 bSizer46->Add( nbkNotebook, 1, wxEXPAND | wxALL, 5 );
1512 this->SetSizer( bSizer46 );
1515 this->Centre( wxBOTH );
1518 this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( frmEventEditorADT::CloseWindow ) );
1519 this->Connect( mnuEventSave->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmEventEditorADT::SaveContact ) );
1520 this->Connect( mnuEventSaveNew->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmEventEditorADT::SaveNewContact ) );
1521 this->Connect( mnuEventClose->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmEventEditorADT::CloseWindow ) );
1522 this->Connect( mnuEditCut->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmEventEditorADT::CutText ) );
1523 this->Connect( mnuEditCopy->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmEventEditorADT::CopyText ) );
1524 this->Connect( mnuEditPaste->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmEventEditorADT::PasteText ) );
1525 cmbCalendar->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( frmEventEditorADT::ProcessCalendarControl ), NULL, this );
1526 txtEventName->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( frmEventEditorADT::ProcessEventName ), NULL, this );
1529 frmEventEditorADT::~frmEventEditorADT()
1531 // Disconnect Events
1532 this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( frmEventEditorADT::CloseWindow ) );
1533 this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmEventEditorADT::SaveContact ) );
1534 this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmEventEditorADT::SaveNewContact ) );
1535 this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmEventEditorADT::CloseWindow ) );
1536 this->Disconnect( wxID_CUT, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmEventEditorADT::CutText ) );
1537 this->Disconnect( wxID_COPY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmEventEditorADT::CopyText ) );
1538 this->Disconnect( wxID_PASTE, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmEventEditorADT::PasteText ) );
1539 cmbCalendar->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( frmEventEditorADT::ProcessCalendarControl ), NULL, this );
1540 txtEventName->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( frmEventEditorADT::ProcessEventName ), NULL, this );