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 mnuHelp = new wxMenu();
70 wxMenuItem* mnuHelpShow;
71 mnuHelpShow = new wxMenuItem( mnuHelp, wxID_HELP, wxString( wxT("Show Help...") ) + wxT('\t') + wxT("F1"), wxEmptyString, wxITEM_NORMAL );
72 mnuHelp->Append( mnuHelpShow );
74 mnuHelp->AppendSeparator();
76 wxMenuItem* mnuHelpUpdate;
77 mnuHelpUpdate = new wxMenuItem( mnuHelp, wxID_ANY, wxString( wxT("Check for updates...") ) , wxEmptyString, wxITEM_NORMAL );
78 mnuHelp->Append( mnuHelpUpdate );
80 mnuHelp->AppendSeparator();
82 wxMenuItem* mnuHelpAbout;
83 mnuHelpAbout = new wxMenuItem( mnuHelp, wxID_ABOUT, wxString( wxT("About Xestia Calendar...") ) + wxT('\t') + wxT("Shift+Ctrl+A"), wxEmptyString, wxITEM_NORMAL );
84 mnuHelp->Append( mnuHelpAbout );
86 menuBar->Append( mnuHelp, wxT("Help") );
88 this->SetMenuBar( menuBar );
90 szrMain = new wxBoxSizer( wxVERTICAL );
93 this->SetSizer( szrMain );
96 this->Centre( wxBOTH );
99 this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( frmMainADT::QuitApp ) );
100 this->Connect( mnuManageNew->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::OpenNewAccountDialog ) );
101 this->Connect( mnuManagePreferences->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::ShowPreferencesWindow ) );
102 this->Connect( mnuManageExit->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::QuitApp ) );
103 this->Connect( mnuCreateCalendar->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::CreateNewCalendar ) );
104 this->Connect( mnuCreateEvent->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::CreateNewEvent ) );
105 this->Connect( mnuHelpShow->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::ShowHelp ) );
106 this->Connect( mnuHelpUpdate->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::ShowUpdateWindow ) );
107 this->Connect( mnuHelpAbout->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::ShowAboutWindow ) );
110 frmMainADT::~frmMainADT()
113 this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( frmMainADT::QuitApp ) );
114 this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::OpenNewAccountDialog ) );
115 this->Disconnect( wxID_PREFERENCES, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::ShowPreferencesWindow ) );
116 this->Disconnect( wxID_EXIT, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::QuitApp ) );
117 this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::CreateNewCalendar ) );
118 this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::CreateNewEvent ) );
119 this->Disconnect( wxID_HELP, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::ShowHelp ) );
120 this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::ShowUpdateWindow ) );
121 this->Disconnect( wxID_ABOUT, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmMainADT::ShowAboutWindow ) );
125 frmUpdateADT::frmUpdateADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
127 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
129 wxBoxSizer* bSizer390;
130 bSizer390 = new wxBoxSizer( wxVERTICAL );
132 pnlUpdateData = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
133 wxBoxSizer* bSizer391;
134 bSizer391 = new wxBoxSizer( wxVERTICAL );
136 wxFlexGridSizer* fgSizer45;
137 fgSizer45 = new wxFlexGridSizer( 3, 2, 0, 0 );
138 fgSizer45->SetFlexibleDirection( wxBOTH );
139 fgSizer45->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
141 lblRunningText = new wxStaticText( pnlUpdateData, wxID_ANY, wxT("Running version is:"), wxDefaultPosition, wxDefaultSize, 0 );
142 lblRunningText->Wrap( -1 );
143 fgSizer45->Add( lblRunningText, 0, wxALL, 5 );
145 lblRunningVer = new wxStaticText( pnlUpdateData, wxID_ANY, wxT("UPDATEVER"), wxDefaultPosition, wxDefaultSize, 0 );
146 lblRunningVer->Wrap( -1 );
147 lblRunningVer->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) );
149 fgSizer45->Add( lblRunningVer, 0, wxALL, 5 );
151 lblAvailableText = new wxStaticText( pnlUpdateData, wxID_ANY, wxT("Available version is:"), wxDefaultPosition, wxDefaultSize, 0 );
152 lblAvailableText->Wrap( -1 );
153 fgSizer45->Add( lblAvailableText, 0, wxALL, 5 );
155 lblAvailableVer = new wxStaticText( pnlUpdateData, wxID_ANY, wxT("AVAILVER"), wxDefaultPosition, wxDefaultSize, 0 );
156 lblAvailableVer->Wrap( -1 );
157 fgSizer45->Add( lblAvailableVer, 0, wxALL, 5 );
159 lblBuildTypeText = new wxStaticText( pnlUpdateData, wxID_ANY, wxT("Build type is:"), wxDefaultPosition, wxDefaultSize, 0 );
160 lblBuildTypeText->Wrap( -1 );
161 fgSizer45->Add( lblBuildTypeText, 0, wxALL, 5 );
163 lblBuildType = new wxStaticText( pnlUpdateData, wxID_ANY, wxT("BUILDTYPE"), wxDefaultPosition, wxDefaultSize, 0 );
164 lblBuildType->Wrap( -1 );
165 fgSizer45->Add( lblBuildType, 0, wxALL, 5 );
168 bSizer391->Add( fgSizer45, 0, wxEXPAND, 5 );
170 lblUpdateMessage = new wxStaticText( pnlUpdateData, wxID_ANY, wxT("MESSAGE"), wxDefaultPosition, wxDefaultSize, 0 );
171 lblUpdateMessage->Wrap( -1 );
172 bSizer391->Add( lblUpdateMessage, 1, wxALL|wxEXPAND, 5 );
175 pnlUpdateData->SetSizer( bSizer391 );
176 pnlUpdateData->Layout();
177 bSizer391->Fit( pnlUpdateData );
178 bSizer390->Add( pnlUpdateData, 1, wxEXPAND | wxALL, 5 );
180 statLine = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
181 bSizer390->Add( statLine, 0, wxALL|wxEXPAND, 5 );
183 wxBoxSizer* bSizer392;
184 bSizer392 = new wxBoxSizer( wxHORIZONTAL );
186 btnVisitGelforn = new wxButton( this, wxID_ANY, wxT("Visit Gelforn"), wxDefaultPosition, wxDefaultSize, 0 );
187 bSizer392->Add( btnVisitGelforn, 0, wxALIGN_RIGHT|wxBOTTOM|wxLEFT, 5 );
189 btnVisitPREMIUM = new wxButton( this, wxID_ANY, wxT("Visit PREMIUM"), wxDefaultPosition, wxDefaultSize, 0 );
190 bSizer392->Add( btnVisitPREMIUM, 0, wxBOTTOM|wxLEFT, 5 );
192 btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );
193 bSizer392->Add( btnClose, 0, wxALIGN_RIGHT|wxBOTTOM|wxLEFT|wxRIGHT, 5 );
196 bSizer390->Add( bSizer392, 0, wxALIGN_RIGHT, 0 );
199 this->SetSizer( bSizer390 );
202 this->Centre( wxBOTH );
205 btnVisitGelforn->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmUpdateADT::VisitGelforn ), NULL, this );
206 btnVisitPREMIUM->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmUpdateADT::VisitPREMIUM ), NULL, this );
207 btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmUpdateADT::CloseWindow ), NULL, this );
210 frmUpdateADT::~frmUpdateADT()
213 btnVisitGelforn->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmUpdateADT::VisitGelforn ), NULL, this );
214 btnVisitPREMIUM->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmUpdateADT::VisitPREMIUM ), NULL, this );
215 btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmUpdateADT::CloseWindow ), NULL, this );
219 frmPreferencesADT::frmPreferencesADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
221 this->SetSizeHints( wxSize( 450,400 ), wxSize( 450,400 ) );
224 szrMain = new wxBoxSizer( wxVERTICAL );
227 szrTabs = new wxBoxSizer( wxVERTICAL );
229 NbtPreferences = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
230 tabGeneral = new wxPanel( NbtPreferences, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
231 wxBoxSizer* szrChecks;
232 szrChecks = new wxBoxSizer( wxVERTICAL );
234 chkSaveWindowPosition = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Save window position on exit"), wxDefaultPosition, wxDefaultSize, 0 );
235 szrChecks->Add( chkSaveWindowPosition, 0, wxALL, 5 );
237 chkHideLocal = new wxCheckBox( tabGeneral, wxID_ANY, wxT("Hide local calendars"), wxDefaultPosition, wxDefaultSize, 0 );
238 szrChecks->Add( chkHideLocal, 0, wxALL, 5 );
241 tabGeneral->SetSizer( szrChecks );
242 tabGeneral->Layout();
243 szrChecks->Fit( tabGeneral );
244 NbtPreferences->AddPage( tabGeneral, wxT("General"), false );
245 tabTheme = new wxPanel( NbtPreferences, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
248 wxGridSizer* szrTheme;
249 szrTheme = new wxGridSizer( 1, 1, 0, 0 );
251 wxBoxSizer* bSizer161;
252 bSizer161 = new wxBoxSizer( wxVERTICAL );
254 lstThemes = new wxListCtrl( tabTheme, wxID_ANY, wxDefaultPosition, wxSize( -1,-1 ), wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
255 bSizer161->Add( lstThemes, 1, wxALL|wxEXPAND, 5 );
257 wxBoxSizer* bSizer151;
258 bSizer151 = new wxBoxSizer( wxHORIZONTAL );
260 btnThemeAdd = new wxButton( tabTheme, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
261 bSizer151->Add( btnThemeAdd, 0, wxALL, 5 );
263 btnThemeModify = new wxButton( tabTheme, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
264 btnThemeModify->Enable( false );
266 bSizer151->Add( btnThemeModify, 0, wxALL, 5 );
268 btnThemeDelete = new wxButton( tabTheme, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
269 btnThemeDelete->Enable( false );
271 bSizer151->Add( btnThemeDelete, 0, wxALL, 5 );
274 bSizer161->Add( bSizer151, 0, wxALIGN_BOTTOM|wxALIGN_CENTER_HORIZONTAL, 0 );
277 szrTheme->Add( bSizer161, 1, wxEXPAND, 5 );
280 tabTheme->SetSizer( szrTheme );
282 szrTheme->Fit( tabTheme );
283 NbtPreferences->AddPage( tabTheme, wxT("Themes"), false );
284 tabAccounts = new wxPanel( NbtPreferences, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
285 wxGridSizer* szrAccounts;
286 szrAccounts = new wxGridSizer( 1, 1, 0, 0 );
288 wxBoxSizer* bSizer16;
289 bSizer16 = new wxBoxSizer( wxVERTICAL );
291 lstAccounts = new wxListCtrl( tabAccounts, wxID_ANY, wxDefaultPosition, wxSize( -1,-1 ), wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
292 bSizer16->Add( lstAccounts, 1, wxALL|wxEXPAND, 5 );
294 wxBoxSizer* bSizer15;
295 bSizer15 = new wxBoxSizer( wxHORIZONTAL );
297 btnAccountAdd = new wxButton( tabAccounts, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
298 bSizer15->Add( btnAccountAdd, 0, wxALL, 5 );
300 btnAccountModify = new wxButton( tabAccounts, wxID_ANY, wxT("Modify"), wxDefaultPosition, wxDefaultSize, 0 );
301 btnAccountModify->Enable( false );
303 bSizer15->Add( btnAccountModify, 0, wxALL, 5 );
305 btnAccountDelete = new wxButton( tabAccounts, wxID_ANY, wxT("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
306 btnAccountDelete->Enable( false );
308 bSizer15->Add( btnAccountDelete, 0, wxALL, 5 );
311 bSizer16->Add( bSizer15, 0, wxALIGN_BOTTOM|wxALIGN_CENTER_HORIZONTAL, 0 );
314 szrAccounts->Add( bSizer16, 1, wxEXPAND, 5 );
317 tabAccounts->SetSizer( szrAccounts );
318 tabAccounts->Layout();
319 szrAccounts->Fit( tabAccounts );
320 NbtPreferences->AddPage( tabAccounts, wxT("Accounts"), true );
322 szrTabs->Add( NbtPreferences, 1, wxALL|wxEXPAND, 5 );
325 szrMain->Add( szrTabs, 1, wxEXPAND, 0 );
327 wxBoxSizer* szrButtons;
328 szrButtons = new wxBoxSizer( wxHORIZONTAL );
331 szrButtons->Add( 1, 0, 1, wxEXPAND, 0 );
333 btnSave = new wxButton( this, wxID_ANY, wxT("Save"), wxDefaultPosition, wxDefaultSize, 0 );
334 btnSave->SetDefault();
335 szrButtons->Add( btnSave, 0, wxALIGN_RIGHT, 0 );
338 szrButtons->Add( 5, 0, 0, 0, 0 );
340 btnCancel = new wxButton( this, wxID_ANY, wxT("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
341 szrButtons->Add( btnCancel, 0, wxALIGN_RIGHT, 0 );
344 szrButtons->Add( 5, 0, 0, wxEXPAND, 0 );
347 szrMain->Add( szrButtons, 0, wxBOTTOM|wxEXPAND, 5 );
350 this->SetSizer( szrMain );
353 this->Centre( wxBOTH );
356 this->Connect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( frmPreferencesADT::LoadPreferences ) );
357 lstThemes->Connect( wxEVT_COMMAND_LIST_ITEM_DESELECTED, wxListEventHandler( frmPreferencesADT::DisableABButtons ), NULL, this );
358 lstThemes->Connect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( frmPreferencesADT::EnableABButtons ), NULL, this );
359 btnThemeAdd->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::AddABAccount ), NULL, this );
360 btnThemeModify->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::ModifyABAccount ), NULL, this );
361 btnThemeDelete->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::DeleteABAccount ), NULL, this );
362 lstAccounts->Connect( wxEVT_COMMAND_LIST_ITEM_DESELECTED, wxListEventHandler( frmPreferencesADT::DisableButtons ), NULL, this );
363 lstAccounts->Connect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( frmPreferencesADT::EnableButtons ), NULL, this );
364 btnAccountAdd->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::AddAccount ), NULL, this );
365 btnAccountModify->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::ModifyAccount ), NULL, this );
366 btnAccountDelete->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::DeleteAccount ), NULL, this );
367 btnSave->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::SavePreferences ), NULL, this );
368 btnCancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::CloseWindow ), NULL, this );
371 frmPreferencesADT::~frmPreferencesADT()
374 this->Disconnect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( frmPreferencesADT::LoadPreferences ) );
375 lstThemes->Disconnect( wxEVT_COMMAND_LIST_ITEM_DESELECTED, wxListEventHandler( frmPreferencesADT::DisableABButtons ), NULL, this );
376 lstThemes->Disconnect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( frmPreferencesADT::EnableABButtons ), NULL, this );
377 btnThemeAdd->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::AddABAccount ), NULL, this );
378 btnThemeModify->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::ModifyABAccount ), NULL, this );
379 btnThemeDelete->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::DeleteABAccount ), NULL, this );
380 lstAccounts->Disconnect( wxEVT_COMMAND_LIST_ITEM_DESELECTED, wxListEventHandler( frmPreferencesADT::DisableButtons ), NULL, this );
381 lstAccounts->Disconnect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( frmPreferencesADT::EnableButtons ), NULL, this );
382 btnAccountAdd->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::AddAccount ), NULL, this );
383 btnAccountModify->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::ModifyAccount ), NULL, this );
384 btnAccountDelete->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::DeleteAccount ), NULL, this );
385 btnSave->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::SavePreferences ), NULL, this );
386 btnCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmPreferencesADT::CloseWindow ), NULL, this );
390 frmAboutADT::frmAboutADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
392 this->SetSizeHints( wxSize( 350,400 ), wxDefaultSize );
395 szrMain = new wxBoxSizer( wxVERTICAL );
398 szrLogo = new wxBoxSizer( wxVERTICAL );
400 szrLogo->SetMinSize( wxSize( 350,100 ) );
401 bmpLogo = new wxStaticBitmap( this, wxID_ANY, wxNullBitmap, wxPoint( 0,0 ), wxSize( 350,100 ), 0 );
402 szrLogo->Add( bmpLogo, 0, wxALL, 0 );
405 szrMain->Add( szrLogo, 0, wxFIXED_MINSIZE, 0 );
407 wxBoxSizer* szrDetails;
408 szrDetails = new wxBoxSizer( wxVERTICAL );
410 lblVersion = new wxStaticText( this, wxID_ANY, wxT("Version 0.00"), wxDefaultPosition, wxDefaultSize, 0 );
411 lblVersion->Wrap( -1 );
412 lblVersion->SetFont( wxFont( 14, wxFONTFAMILY_SWISS, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) );
414 szrDetails->Add( lblVersion, 0, wxALL, 5 );
416 lblCompileTime = new wxStaticText( this, wxID_ANY, wxT("Built on (date) at (time)"), wxDefaultPosition, wxDefaultSize, 0 );
417 lblCompileTime->Wrap( -1 );
418 szrDetails->Add( lblCompileTime, 0, wxALL, 5 );
420 lblCopyright = new wxStaticText( this, wxID_ANY, wxT("(c) 2012-2015 Xestia Software Development"), wxDefaultPosition, wxDefaultSize, 0 );
421 lblCopyright->Wrap( -1 );
422 szrDetails->Add( lblCopyright, 0, wxALL, 5 );
425 szrMain->Add( szrDetails, 5, wxEXPAND, 1 );
427 wxBoxSizer* szrButtons;
428 szrButtons = new wxBoxSizer( wxVERTICAL );
430 szrButtons->SetMinSize( wxSize( -1,35 ) );
431 btnClose = new wxButton( this, wxID_ANY, wxT("&Close"), wxDefaultPosition, wxDefaultSize, 0 );
432 szrButtons->Add( btnClose, 0, wxALIGN_RIGHT|wxRIGHT, 5 );
435 szrMain->Add( szrButtons, 0, wxEXPAND, 0 );
438 this->SetSizer( szrMain );
441 this->Centre( wxBOTH );
444 btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmAboutADT::CloseAboutWindow ), NULL, this );
447 frmAboutADT::~frmAboutADT()
450 btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmAboutADT::CloseAboutWindow ), NULL, this );
454 frmNewAccountADT::frmNewAccountADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
456 this->SetSizeHints( wxSize( 425,330 ), wxSize( 425,330 ) );
458 wxFlexGridSizer* fgSizer30;
459 fgSizer30 = new wxFlexGridSizer( 0, 1, 0, 0 );
460 fgSizer30->AddGrowableCol( 0 );
461 fgSizer30->AddGrowableRow( 0 );
462 fgSizer30->SetFlexibleDirection( wxBOTH );
463 fgSizer30->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
465 szrNewAccount = new wxBoxSizer( wxVERTICAL );
467 tabType = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
468 wxFlexGridSizer* fgSizer32;
469 fgSizer32 = new wxFlexGridSizer( 0, 1, 0, 0 );
470 fgSizer32->AddGrowableCol( 0 );
471 fgSizer32->SetFlexibleDirection( wxBOTH );
472 fgSizer32->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_ALL );
474 lblEnterText = new wxStaticText( tabType, wxID_ANY, wxT("Enter the details below and click on Next."), wxDefaultPosition, wxDefaultSize, 0 );
475 lblEnterText->Wrap( -1 );
476 fgSizer32->Add( lblEnterText, 0, wxALL, 5 );
478 wxFlexGridSizer* fgSizer33;
479 fgSizer33 = new wxFlexGridSizer( 0, 2, 0, 0 );
480 fgSizer33->AddGrowableCol( 1 );
481 fgSizer33->AddGrowableRow( 0 );
482 fgSizer33->SetFlexibleDirection( wxBOTH );
483 fgSizer33->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_ALL );
485 lblType = new wxStaticText( tabType, wxID_ANY, wxT("Server Type:"), wxDefaultPosition, wxDefaultSize, 0 );
487 fgSizer33->Add( lblType, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
489 wxString cmbServerTypeChoices[] = { wxT("Local") };
490 int cmbServerTypeNChoices = sizeof( cmbServerTypeChoices ) / sizeof( wxString );
491 cmbServerType = new wxChoice( tabType, wxID_ANY, wxDefaultPosition, wxDefaultSize, cmbServerTypeNChoices, cmbServerTypeChoices, 0 );
492 cmbServerType->SetSelection( 0 );
493 fgSizer33->Add( cmbServerType, 0, wxALL, 5 );
495 lblServerAddress = new wxStaticText( tabType, wxID_ANY, wxT("Server Address:"), wxDefaultPosition, wxDefaultSize, 0 );
496 lblServerAddress->Wrap( -1 );
497 fgSizer33->Add( lblServerAddress, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
499 txtServerAddress = new wxTextCtrl( tabType, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
500 fgSizer33->Add( txtServerAddress, 1, wxALL|wxEXPAND, 5 );
502 lblServerPort = new wxStaticText( tabType, wxID_ANY, wxT("Server Port:"), wxDefaultPosition, wxDefaultSize, 0 );
503 lblServerPort->Wrap( -1 );
504 fgSizer33->Add( lblServerPort, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
506 txtServerPort = new wxTextCtrl( tabType, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
507 fgSizer33->Add( txtServerPort, 0, wxALL, 5 );
509 lblUsername = new wxStaticText( tabType, wxID_ANY, wxT("Username:"), wxDefaultPosition, wxDefaultSize, 0 );
510 lblUsername->Wrap( -1 );
511 fgSizer33->Add( lblUsername, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
513 txtUsername = new wxTextCtrl( tabType, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
514 fgSizer33->Add( txtUsername, 1, wxALL|wxEXPAND, 5 );
516 lblPassword = new wxStaticText( tabType, wxID_ANY, wxT("Password:"), wxDefaultPosition, wxDefaultSize, 0 );
517 lblPassword->Wrap( -1 );
518 fgSizer33->Add( lblPassword, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
520 txtPassword = new wxTextCtrl( tabType, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PASSWORD );
521 fgSizer33->Add( txtPassword, 0, wxALL|wxEXPAND, 5 );
523 lblSSL = new wxStaticText( tabType, wxID_ANY, wxT("SSL:"), wxDefaultPosition, wxDefaultSize, 0 );
525 fgSizer33->Add( lblSSL, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
527 wxBoxSizer* bSizer3221;
528 bSizer3221 = new wxBoxSizer( wxHORIZONTAL );
530 chkUseSSL = new wxCheckBox( tabType, wxID_ANY, wxT("Use SSL"), wxDefaultPosition, wxDefaultSize, 0 );
531 chkUseSSL->SetValue(true);
532 bSizer3221->Add( chkUseSSL, 0, wxALL, 5 );
535 fgSizer33->Add( bSizer3221, 1, wxEXPAND, 5 );
538 fgSizer32->Add( fgSizer33, 1, wxEXPAND, 5 );
541 tabType->SetSizer( fgSizer32 );
543 fgSizer32->Fit( tabType );
544 szrNewAccount->Add( tabType, 1, wxEXPAND | wxALL, 5 );
546 tabConn = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
549 wxBoxSizer* bSizer323;
550 bSizer323 = new wxBoxSizer( wxVERTICAL );
552 lblConnectionResult = new wxStaticText( tabConn, wxID_ANY, wxT("Connection Results:"), wxDefaultPosition, wxDefaultSize, 0 );
553 lblConnectionResult->Wrap( -1 );
554 lblConnectionResult->SetFont( wxFont( 9, wxFONTFAMILY_SWISS, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxT("Sans") ) );
556 bSizer323->Add( lblConnectionResult, 0, wxALL, 5 );
558 wxFlexGridSizer* fgSizer34;
559 fgSizer34 = new wxFlexGridSizer( 0, 2, 0, 0 );
560 fgSizer34->SetFlexibleDirection( wxBOTH );
561 fgSizer34->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
563 lblServerConnected = new wxStaticText( tabConn, wxID_ANY, wxT("Server connected:"), wxDefaultPosition, wxDefaultSize, 0 );
564 lblServerConnected->Wrap( -1 );
565 fgSizer34->Add( lblServerConnected, 0, wxALL, 5 );
567 lblServerConnResult = new wxStaticText( tabConn, wxID_ANY, wxT("..."), wxDefaultPosition, wxDefaultSize, 0 );
568 lblServerConnResult->Wrap( -1 );
569 fgSizer34->Add( lblServerConnResult, 0, wxALL, 5 );
571 lblValidResponse = new wxStaticText( tabConn, wxID_ANY, wxT("Server gave valid response:"), wxDefaultPosition, wxDefaultSize, 0 );
572 lblValidResponse->Wrap( -1 );
573 fgSizer34->Add( lblValidResponse, 0, wxALL, 5 );
575 lblServerResponse = new wxStaticText( tabConn, wxID_ANY, wxT("..."), wxDefaultPosition, wxDefaultSize, 0 );
576 lblServerResponse->Wrap( -1 );
577 fgSizer34->Add( lblServerResponse, 0, wxALL, 5 );
579 lblUseSSL = new wxStaticText( tabConn, wxID_ANY, wxT("Server uses SSL:"), wxDefaultPosition, wxDefaultSize, 0 );
580 lblUseSSL->Wrap( -1 );
581 fgSizer34->Add( lblUseSSL, 0, wxALL, 5 );
583 lblServerSSLResult = new wxStaticText( tabConn, wxID_ANY, wxT("..."), wxDefaultPosition, wxDefaultSize, 0 );
584 lblServerSSLResult->Wrap( -1 );
585 fgSizer34->Add( lblServerSSLResult, 0, wxALL, 5 );
587 lblServerSSLCert = new wxStaticText( tabConn, wxID_ANY, wxT("Server has valid SSL certificate:"), wxDefaultPosition, wxDefaultSize, 0 );
588 lblServerSSLCert->Wrap( -1 );
589 fgSizer34->Add( lblServerSSLCert, 0, wxALL, 5 );
591 lblServerSSLValid = new wxStaticText( tabConn, wxID_ANY, wxT("..."), wxDefaultPosition, wxDefaultSize, 0 );
592 lblServerSSLValid->Wrap( -1 );
593 fgSizer34->Add( lblServerSSLValid, 0, wxALL, 5 );
595 lblServerUsernamePassword = new wxStaticText( tabConn, wxID_ANY, wxT("Able to Login:"), wxDefaultPosition, wxDefaultSize, 0 );
596 lblServerUsernamePassword->Wrap( -1 );
597 fgSizer34->Add( lblServerUsernamePassword, 0, wxALL, 5 );
599 lblAbleToLoginResult = new wxStaticText( tabConn, wxID_ANY, wxT("..."), wxDefaultPosition, wxDefaultSize, 0 );
600 lblAbleToLoginResult->Wrap( -1 );
601 fgSizer34->Add( lblAbleToLoginResult, 0, wxALL, 5 );
603 lblIsCalDAV = new wxStaticText( tabConn, wxID_ANY, wxT("Server has CardDAV Support:"), wxDefaultPosition, wxDefaultSize, 0 );
604 lblIsCalDAV->Wrap( -1 );
605 fgSizer34->Add( lblIsCalDAV, 0, wxALL, 5 );
607 lblCardDAVSupportResult = new wxStaticText( tabConn, wxID_ANY, wxT("..."), wxDefaultPosition, wxDefaultSize, 0 );
608 lblCardDAVSupportResult->Wrap( -1 );
609 fgSizer34->Add( lblCardDAVSupportResult, 0, wxALL, 5 );
612 bSizer323->Add( fgSizer34, 1, wxEXPAND, 5 );
614 m_staticline3 = new wxStaticLine( tabConn, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
615 bSizer323->Add( m_staticline3, 0, wxEXPAND | wxALL, 5 );
617 lblConnectionResultText = new wxStaticText( tabConn, wxID_ANY, wxT("..."), wxDefaultPosition, wxDefaultSize, 0 );
618 lblConnectionResultText->Wrap( 360 );
619 lblConnectionResultText->SetMinSize( wxSize( -1,40 ) );
621 bSizer323->Add( lblConnectionResultText, 0, wxALL|wxEXPAND, 5 );
624 tabConn->SetSizer( bSizer323 );
626 bSizer323->Fit( tabConn );
627 szrNewAccount->Add( tabConn, 1, wxEXPAND | wxALL, 5 );
629 tabFinish = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
632 wxBoxSizer* bSizer3231;
633 bSizer3231 = new wxBoxSizer( wxVERTICAL );
635 lblFinishText = new wxStaticText( tabFinish, wxID_ANY, wxT("Enter the account name and click on Finish."), wxDefaultPosition, wxDefaultSize, 0 );
636 lblFinishText->Wrap( -1 );
637 bSizer3231->Add( lblFinishText, 0, wxALL, 5 );
639 wxFlexGridSizer* fgSizer341;
640 fgSizer341 = new wxFlexGridSizer( 0, 2, 0, 0 );
641 fgSizer341->AddGrowableCol( 1 );
642 fgSizer341->SetFlexibleDirection( wxBOTH );
643 fgSizer341->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
645 lblAccountName = new wxStaticText( tabFinish, wxID_ANY, wxT("Account Name:"), wxDefaultPosition, wxDefaultSize, 0 );
646 lblAccountName->Wrap( -1 );
647 fgSizer341->Add( lblAccountName, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
649 txtAccountName = new wxTextCtrl( tabFinish, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
650 fgSizer341->Add( txtAccountName, 1, wxALL|wxEXPAND, 5 );
653 bSizer3231->Add( fgSizer341, 1, wxEXPAND, 5 );
656 tabFinish->SetSizer( bSizer3231 );
658 bSizer3231->Fit( tabFinish );
659 szrNewAccount->Add( tabFinish, 1, wxEXPAND | wxALL, 5 );
662 fgSizer30->Add( szrNewAccount, 1, wxEXPAND, 5 );
664 wxBoxSizer* bSizer322;
665 bSizer322 = new wxBoxSizer( wxHORIZONTAL );
667 btnPrevious = new wxButton( this, wxID_ANY, wxT("< Previous"), wxDefaultPosition, wxDefaultSize, 0 );
668 bSizer322->Add( btnPrevious, 0, wxALL, 5 );
670 btnNext = new wxButton( this, wxID_ANY, wxT("Next >"), wxDefaultPosition, wxDefaultSize, 0 );
671 btnNext->SetDefault();
672 bSizer322->Add( btnNext, 0, wxALL, 5 );
674 btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );
675 bSizer322->Add( btnClose, 0, wxALL, 5 );
678 fgSizer30->Add( bSizer322, 0, wxALIGN_RIGHT, 5 );
681 this->SetSizer( fgSizer30 );
684 this->Centre( wxBOTH );
687 cmbServerType->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( frmNewAccountADT::UpdateRequirements ), NULL, this );
688 txtAccountName->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( frmNewAccountADT::CheckAccountName ), NULL, this );
689 btnPrevious->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmNewAccountADT::ProcessPrevious ), NULL, this );
690 btnNext->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmNewAccountADT::ProcessNext ), NULL, this );
691 btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmNewAccountADT::CloseWindow ), NULL, this );
694 frmNewAccountADT::~frmNewAccountADT()
697 cmbServerType->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( frmNewAccountADT::UpdateRequirements ), NULL, this );
698 txtAccountName->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( frmNewAccountADT::CheckAccountName ), NULL, this );
699 btnPrevious->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmNewAccountADT::ProcessPrevious ), NULL, this );
700 btnNext->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmNewAccountADT::ProcessNext ), NULL, this );
701 btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmNewAccountADT::CloseWindow ), NULL, this );
705 frmConflictResolutionADT::frmConflictResolutionADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
707 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
709 wxFlexGridSizer* fgSizer39;
710 fgSizer39 = new wxFlexGridSizer( 0, 1, 0, 0 );
711 fgSizer39->AddGrowableCol( 0 );
712 fgSizer39->AddGrowableRow( 0 );
713 fgSizer39->SetFlexibleDirection( wxBOTH );
714 fgSizer39->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
716 wxBoxSizer* bSizer363;
717 bSizer363 = new wxBoxSizer( wxHORIZONTAL );
719 wxBoxSizer* bSizer364;
720 bSizer364 = new wxBoxSizer( wxVERTICAL );
722 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 );
724 bSizer364->Add( lblText, 0, wxALL|wxEXPAND, 5 );
726 m_splitter3 = new wxSplitterWindow( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSP_3D );
727 m_splitter3->Connect( wxEVT_IDLE, wxIdleEventHandler( frmConflictResolutionADT::m_splitter3OnIdle ), NULL, this );
729 m_panel44 = new wxPanel( m_splitter3, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
730 wxBoxSizer* bSizer365;
731 bSizer365 = new wxBoxSizer( wxVERTICAL );
733 htmClient = new wxHtmlWindow( m_panel44, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHW_SCROLLBAR_AUTO|wxSUNKEN_BORDER );
734 bSizer365->Add( htmClient, 1, wxALL|wxEXPAND, 5 );
737 m_panel44->SetSizer( bSizer365 );
739 bSizer365->Fit( m_panel44 );
740 m_panel45 = new wxPanel( m_splitter3, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
741 wxBoxSizer* bSizer366;
742 bSizer366 = new wxBoxSizer( wxVERTICAL );
744 htmServer = new wxHtmlWindow( m_panel45, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHW_SCROLLBAR_AUTO|wxSUNKEN_BORDER );
745 bSizer366->Add( htmServer, 1, wxALL|wxEXPAND, 5 );
748 m_panel45->SetSizer( bSizer366 );
750 bSizer366->Fit( m_panel45 );
751 m_splitter3->SplitVertically( m_panel44, m_panel45, 257 );
752 bSizer364->Add( m_splitter3, 1, wxEXPAND, 5 );
754 wxBoxSizer* bSizer367;
755 bSizer367 = new wxBoxSizer( wxHORIZONTAL );
758 bSizer367->Add( 0, 0, 1, wxEXPAND, 5 );
760 btnKeepLocal = new wxButton( this, wxID_ANY, wxT("Keep Local"), wxDefaultPosition, wxDefaultSize, 0 );
761 bSizer367->Add( btnKeepLocal, 0, wxALL, 5 );
763 btnKeepServer = new wxButton( this, wxID_ANY, wxT("Keep Server"), wxDefaultPosition, wxDefaultSize, 0 );
764 bSizer367->Add( btnKeepServer, 0, wxALL, 5 );
766 btnDecideLater = new wxButton( this, wxID_ANY, wxT("Decide Later"), wxDefaultPosition, wxDefaultSize, 0 );
767 bSizer367->Add( btnDecideLater, 0, wxALL, 5 );
770 bSizer367->Add( 0, 0, 1, wxEXPAND, 5 );
773 bSizer364->Add( bSizer367, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
776 bSizer363->Add( bSizer364, 1, wxEXPAND, 5 );
779 fgSizer39->Add( bSizer363, 1, wxEXPAND, 5 );
782 this->SetSizer( fgSizer39 );
785 this->Centre( wxBOTH );
788 btnKeepLocal->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmConflictResolutionADT::KeepLocalData ), NULL, this );
789 btnKeepServer->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmConflictResolutionADT::KeepServerData ), NULL, this );
790 btnDecideLater->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmConflictResolutionADT::DecideLater ), NULL, this );
793 frmConflictResolutionADT::~frmConflictResolutionADT()
796 btnKeepLocal->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmConflictResolutionADT::KeepLocalData ), NULL, this );
797 btnKeepServer->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmConflictResolutionADT::KeepServerData ), NULL, this );
798 btnDecideLater->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmConflictResolutionADT::DecideLater ), NULL, this );
802 frmActivityMgrADT::frmActivityMgrADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxFrame( parent, id, title, pos, size, style )
804 this->SetSizeHints( wxSize( 400,425 ), wxDefaultSize );
806 mnuMenuBar = new wxMenuBar( 0 );
807 mnuWindow = new wxMenu();
808 wxMenuItem* mnuStopActivity;
809 mnuStopActivity = new wxMenuItem( mnuWindow, wxID_ANY, wxString( wxT("&Stop Activity") ) + wxT('\t') + wxT("CTRL+ALT+S"), wxEmptyString, wxITEM_NORMAL );
810 mnuWindow->Append( mnuStopActivity );
812 wxMenuItem* mnuActivityStopAll;
813 mnuActivityStopAll = new wxMenuItem( mnuWindow, wxID_ANY, wxString( wxT("Stop All Activities") ) + wxT('\t') + wxT("CTRL+SHIFT+ALT+S"), wxEmptyString, wxITEM_NORMAL );
814 mnuWindow->Append( mnuActivityStopAll );
816 wxMenuItem* mnuRetryActivity;
817 mnuRetryActivity = new wxMenuItem( mnuWindow, wxID_ANY, wxString( wxT("&Retry Activity") ) + wxT('\t') + wxT("CTRL+R"), wxEmptyString, wxITEM_NORMAL );
818 mnuWindow->Append( mnuRetryActivity );
820 mnuWindow->AppendSeparator();
822 mnuSleepMode = new wxMenuItem( mnuWindow, wxID_ANY, wxString( wxT("Sleep Mode") ) , wxEmptyString, wxITEM_CHECK );
823 mnuWindow->Append( mnuSleepMode );
825 mnuWindow->AppendSeparator();
827 wxMenuItem* mnuWindowClose;
828 mnuWindowClose = new wxMenuItem( mnuWindow, wxID_ANY, wxString( wxT("&Close Window") ) + wxT('\t') + wxT("ALT+F4"), wxEmptyString, wxITEM_NORMAL );
829 mnuWindow->Append( mnuWindowClose );
831 mnuMenuBar->Append( mnuWindow, wxT("&Activity") );
833 this->SetMenuBar( mnuMenuBar );
835 wxFlexGridSizer* fgSizer38;
836 fgSizer38 = new wxFlexGridSizer( 0, 1, 0, 0 );
837 fgSizer38->AddGrowableCol( 0 );
838 fgSizer38->AddGrowableRow( 1 );
839 fgSizer38->SetFlexibleDirection( wxBOTH );
840 fgSizer38->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
842 m_panel43 = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
843 wxBoxSizer* bSizer363;
844 bSizer363 = new wxBoxSizer( wxHORIZONTAL );
846 bmpActivity = new wxStaticBitmap( m_panel43, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
847 bmpActivity->SetMinSize( wxSize( 64,64 ) );
849 bSizer363->Add( bmpActivity, 0, wxALL, 5 );
851 m_panel46 = new wxPanel( m_panel43, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
852 wxBoxSizer* bSizer364;
853 bSizer364 = new wxBoxSizer( wxVERTICAL );
856 bSizer364->Add( 0, 0, 1, wxEXPAND, 5 );
858 lblDetails = new wxStaticText( m_panel46, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE );
859 lblDetails->Wrap( -1 );
860 bSizer364->Add( lblDetails, 0, wxALL|wxEXPAND, 0 );
863 bSizer364->Add( 0, 0, 1, wxEXPAND, 5 );
865 GauProgress = new wxGauge( m_panel46, wxID_ANY, 100, wxDefaultPosition, wxDefaultSize, wxGA_HORIZONTAL );
866 GauProgress->SetValue( 0 );
867 GauProgress->SetMinSize( wxSize( -1,20 ) );
869 bSizer364->Add( GauProgress, 0, wxALL|wxEXPAND, 0 );
872 bSizer364->Add( 0, 0, 1, wxEXPAND, 5 );
875 m_panel46->SetSizer( bSizer364 );
877 bSizer364->Fit( m_panel46 );
878 bSizer363->Add( m_panel46, 1, wxEXPAND | wxALL, 5 );
881 m_panel43->SetSizer( bSizer363 );
883 bSizer363->Fit( m_panel43 );
884 fgSizer38->Add( m_panel43, 1, wxALL|wxEXPAND, 0 );
886 m_panel44 = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
887 wxBoxSizer* bSizer365;
888 bSizer365 = new wxBoxSizer( wxVERTICAL );
890 lstActivity = new wxListCtrl( m_panel44, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
891 bSizer365->Add( lstActivity, 1, wxALL|wxEXPAND, 5 );
894 m_panel44->SetSizer( bSizer365 );
896 bSizer365->Fit( m_panel44 );
897 fgSizer38->Add( m_panel44, 5, wxALL|wxEXPAND, 0 );
900 this->SetSizer( fgSizer38 );
903 this->Centre( wxBOTH );
906 this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( frmActivityMgrADT::CloseWindow ) );
907 this->Connect( mnuStopActivity->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmActivityMgrADT::StopTask ) );
908 this->Connect( mnuActivityStopAll->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmActivityMgrADT::StopAllTasks ) );
909 this->Connect( mnuRetryActivity->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmActivityMgrADT::RetryTask ) );
910 this->Connect( mnuSleepMode->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmActivityMgrADT::SleepMode ) );
911 this->Connect( mnuWindowClose->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmActivityMgrADT::CloseWindow ) );
914 frmActivityMgrADT::~frmActivityMgrADT()
917 this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( frmActivityMgrADT::CloseWindow ) );
918 this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmActivityMgrADT::StopTask ) );
919 this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmActivityMgrADT::StopAllTasks ) );
920 this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmActivityMgrADT::RetryTask ) );
921 this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmActivityMgrADT::SleepMode ) );
922 this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmActivityMgrADT::CloseWindow ) );
926 frmEditAccountADT::frmEditAccountADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
928 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
930 wxBoxSizer* bSizer384;
931 bSizer384 = new wxBoxSizer( wxVERTICAL );
934 szrTabs = new wxBoxSizer( wxVERTICAL );
936 tabAccount = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
937 tabProperties = new wxPanel( tabAccount, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
938 wxFlexGridSizer* fgSizer43;
939 fgSizer43 = new wxFlexGridSizer( 0, 2, 0, 0 );
940 fgSizer43->AddGrowableCol( 1 );
941 fgSizer43->SetFlexibleDirection( wxBOTH );
942 fgSizer43->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_NONE );
944 lblAccName = new wxStaticText( tabProperties, wxID_ANY, wxT("Account Name:"), wxDefaultPosition, wxDefaultSize, 0 );
945 lblAccName->Wrap( -1 );
946 fgSizer43->Add( lblAccName, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
948 txtAccountName = new wxTextCtrl( tabProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
949 fgSizer43->Add( txtAccountName, 1, wxALL|wxEXPAND, 5 );
951 lblAccAdr = new wxStaticText( tabProperties, wxID_ANY, wxT("Address:"), wxDefaultPosition, wxDefaultSize, 0 );
952 lblAccAdr->Wrap( -1 );
953 fgSizer43->Add( lblAccAdr, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
955 txtAddress = new wxTextCtrl( tabProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
956 fgSizer43->Add( txtAddress, 0, wxALL|wxEXPAND, 5 );
958 m_staticText193 = new wxStaticText( tabProperties, wxID_ANY, wxT("Port:"), wxDefaultPosition, wxDefaultSize, 0 );
959 m_staticText193->Wrap( -1 );
960 fgSizer43->Add( m_staticText193, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
962 txtPort = new wxTextCtrl( tabProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
964 if ( !txtPort->HasFlag( wxTE_MULTILINE ) )
966 txtPort->SetMaxLength( 5 );
969 txtPort->SetMaxLength( 5 );
971 fgSizer43->Add( txtPort, 0, wxALL, 5 );
973 lblPort = new wxStaticText( tabProperties, wxID_ANY, wxT("Username:"), wxDefaultPosition, wxDefaultSize, 0 );
975 fgSizer43->Add( lblPort, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
977 txtUsername = new wxTextCtrl( tabProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
978 fgSizer43->Add( txtUsername, 0, wxALL|wxEXPAND, 5 );
980 lblPassword = new wxStaticText( tabProperties, wxID_ANY, wxT("Password:"), wxDefaultPosition, wxDefaultSize, 0 );
981 lblPassword->Wrap( -1 );
982 fgSizer43->Add( lblPassword, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
984 txtPassword = new wxTextCtrl( tabProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PASSWORD );
985 fgSizer43->Add( txtPassword, 0, wxALL|wxEXPAND, 5 );
987 lblPrefix = new wxStaticText( tabProperties, wxID_ANY, wxT("Prefix:"), wxDefaultPosition, wxDefaultSize, 0 );
988 lblPrefix->Wrap( -1 );
989 fgSizer43->Add( lblPrefix, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
991 wxBoxSizer* bSizer391;
992 bSizer391 = new wxBoxSizer( wxHORIZONTAL );
994 txtPrefix = new wxTextCtrl( tabProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
995 bSizer391->Add( txtPrefix, 1, wxALL|wxEXPAND, 5 );
997 btnDetect = new wxButton( tabProperties, wxID_ANY, wxT("Detect"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT );
998 bSizer391->Add( btnDetect, 0, wxALIGN_CENTER_VERTICAL, 0 );
1001 fgSizer43->Add( bSizer391, 1, wxEXPAND|wxRIGHT, 5 );
1003 txtSSL = new wxStaticText( tabProperties, wxID_ANY, wxT("SSL:"), wxDefaultPosition, wxDefaultSize, 0 );
1005 fgSizer43->Add( txtSSL, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
1007 chkSSL = new wxCheckBox( tabProperties, wxID_ANY, wxT("Use SSL"), wxDefaultPosition, wxDefaultSize, 0 );
1008 fgSizer43->Add( chkSSL, 0, wxALL, 5 );
1011 tabProperties->SetSizer( fgSizer43 );
1012 tabProperties->Layout();
1013 fgSizer43->Fit( tabProperties );
1014 tabAccount->AddPage( tabProperties, wxT("General"), true );
1015 tabRefresh = new wxPanel( tabAccount, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
1016 wxFlexGridSizer* fgSizer431;
1017 fgSizer431 = new wxFlexGridSizer( 0, 2, 0, 0 );
1018 fgSizer431->AddGrowableCol( 1 );
1019 fgSizer431->SetFlexibleDirection( wxBOTH );
1020 fgSizer431->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_NONE );
1022 lblRefresh = new wxStaticText( tabRefresh, wxID_ANY, wxT("Refresh Time:"), wxDefaultPosition, wxDefaultSize, 0 );
1023 lblRefresh->Wrap( -1 );
1024 fgSizer431->Add( lblRefresh, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
1026 txtRefresh = new wxTextCtrl( tabRefresh, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
1028 if ( !txtRefresh->HasFlag( wxTE_MULTILINE ) )
1030 txtRefresh->SetMaxLength( 5 );
1033 txtRefresh->SetMaxLength( 5 );
1035 fgSizer431->Add( txtRefresh, 1, wxALL, 5 );
1038 tabRefresh->SetSizer( fgSizer431 );
1039 tabRefresh->Layout();
1040 fgSizer431->Fit( tabRefresh );
1041 tabAccount->AddPage( tabRefresh, wxT("Refresh"), false );
1043 szrTabs->Add( tabAccount, 1, wxEXPAND | wxALL, 5 );
1046 bSizer384->Add( szrTabs, 1, wxEXPAND, 0 );
1048 wxBoxSizer* szrButtons;
1049 szrButtons = new wxBoxSizer( wxHORIZONTAL );
1052 szrButtons->Add( 1, 0, 1, wxEXPAND, 0 );
1054 btnSave = new wxButton( this, wxID_ANY, wxT("Save"), wxDefaultPosition, wxDefaultSize, 0 );
1055 btnSave->SetDefault();
1056 szrButtons->Add( btnSave, 0, wxALIGN_RIGHT, 0 );
1059 szrButtons->Add( 5, 0, 0, 0, 0 );
1061 btnCancel = new wxButton( this, wxID_ANY, wxT("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
1062 szrButtons->Add( btnCancel, 0, wxALIGN_RIGHT, 0 );
1065 szrButtons->Add( 5, 0, 0, wxEXPAND, 0 );
1068 bSizer384->Add( szrButtons, 0, wxBOTTOM|wxEXPAND, 5 );
1071 this->SetSizer( bSizer384 );
1074 this->Centre( wxBOTH );
1077 btnDetect->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmEditAccountADT::DetectAddressBook ), NULL, this );
1078 btnSave->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmEditAccountADT::UpdateSettings ), NULL, this );
1079 btnCancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmEditAccountADT::CloseWindow ), NULL, this );
1082 frmEditAccountADT::~frmEditAccountADT()
1084 // Disconnect Events
1085 btnDetect->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmEditAccountADT::DetectAddressBook ), NULL, this );
1086 btnSave->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmEditAccountADT::UpdateSettings ), NULL, this );
1087 btnCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmEditAccountADT::CloseWindow ), NULL, this );
1091 frmSSLCertificateADT::frmSSLCertificateADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
1093 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
1095 wxBoxSizer* bSizer384;
1096 bSizer384 = new wxBoxSizer( wxVERTICAL );
1098 m_notebook28 = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
1099 tabSummary = new wxPanel( m_notebook28, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
1100 wxBoxSizer* bSizer386;
1101 bSizer386 = new wxBoxSizer( wxVERTICAL );
1103 pnlTop = new wxPanel( tabSummary, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
1104 pnlTop->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNHIGHLIGHT ) );
1106 wxBoxSizer* bSizer389;
1107 bSizer389 = new wxBoxSizer( wxVERTICAL );
1109 lblCertName = new wxStaticText( pnlTop, wxID_ANY, wxT("Certificate Name"), wxDefaultPosition, wxDefaultSize, 0 );
1110 lblCertName->Wrap( -1 );
1111 lblCertName->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) );
1113 bSizer389->Add( lblCertName, 0, wxALL, 5 );
1115 lblValidityStatus = new wxStaticText( pnlTop, wxID_ANY, wxT("Validity Status"), wxDefaultPosition, wxDefaultSize, 0 );
1116 lblValidityStatus->Wrap( -1 );
1117 bSizer389->Add( lblValidityStatus, 0, wxALL, 5 );
1120 pnlTop->SetSizer( bSizer389 );
1122 bSizer389->Fit( pnlTop );
1123 bSizer386->Add( pnlTop, 0, wxEXPAND | wxALL, 5 );
1125 wxBoxSizer* bSizer392;
1126 bSizer392 = new wxBoxSizer( wxVERTICAL );
1128 m_panel54 = new wxPanel( tabSummary, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
1129 wxFlexGridSizer* fgSizer44;
1130 fgSizer44 = new wxFlexGridSizer( 0, 2, 0, 0 );
1131 fgSizer44->AddGrowableCol( 1 );
1132 fgSizer44->SetFlexibleDirection( wxHORIZONTAL );
1133 fgSizer44->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
1135 lblIssuedTo = new wxStaticText( m_panel54, wxID_ANY, wxT("Issued To:"), wxDefaultPosition, wxDefaultSize, 0 );
1136 lblIssuedTo->Wrap( -1 );
1137 fgSizer44->Add( lblIssuedTo, 0, wxALL, 5 );
1139 lblIssuedToData = new wxStaticText( m_panel54, wxID_ANY, wxT("IssuedTo"), wxDefaultPosition, wxDefaultSize, 0 );
1140 lblIssuedToData->Wrap( -1 );
1141 fgSizer44->Add( lblIssuedToData, 1, wxALL|wxEXPAND, 5 );
1143 lblValidFrom = new wxStaticText( m_panel54, wxID_ANY, wxT("Valid From:"), wxDefaultPosition, wxDefaultSize, 0 );
1144 lblValidFrom->Wrap( -1 );
1145 fgSizer44->Add( lblValidFrom, 0, wxALL, 5 );
1147 lblValidFromData = new wxStaticText( m_panel54, wxID_ANY, wxT("ValidDate"), wxDefaultPosition, wxDefaultSize, 0 );
1148 lblValidFromData->Wrap( -1 );
1149 fgSizer44->Add( lblValidFromData, 1, wxALL|wxEXPAND, 5 );
1151 lblValidUntil = new wxStaticText( m_panel54, wxID_ANY, wxT("Valid Until:"), wxDefaultPosition, wxDefaultSize, 0 );
1152 lblValidUntil->Wrap( -1 );
1153 fgSizer44->Add( lblValidUntil, 0, wxALL, 5 );
1155 lblValidUntilData = new wxStaticText( m_panel54, wxID_ANY, wxT("ValidUntil"), wxDefaultPosition, wxDefaultSize, 0 );
1156 lblValidUntilData->Wrap( -1 );
1157 fgSizer44->Add( lblValidUntilData, 1, wxALL|wxEXPAND, 5 );
1160 m_panel54->SetSizer( fgSizer44 );
1161 m_panel54->Layout();
1162 fgSizer44->Fit( m_panel54 );
1163 bSizer392->Add( m_panel54, 1, wxEXPAND | wxALL, 5 );
1166 bSizer386->Add( bSizer392, 1, wxEXPAND, 5 );
1169 tabSummary->SetSizer( bSizer386 );
1170 tabSummary->Layout();
1171 bSizer386->Fit( tabSummary );
1172 m_notebook28->AddPage( tabSummary, wxT("Summary"), true );
1173 tabDetail = new wxPanel( m_notebook28, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
1174 wxBoxSizer* bSizer3891;
1175 bSizer3891 = new wxBoxSizer( wxVERTICAL );
1177 lstValues = new wxListCtrl( tabDetail, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxSUNKEN_BORDER );
1178 bSizer3891->Add( lstValues, 1, wxALL|wxEXPAND, 5 );
1180 txtValueData = new wxTextCtrl( tabDetail, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_CHARWRAP|wxTE_MULTILINE|wxTE_READONLY );
1181 txtValueData->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE ) );
1183 bSizer3891->Add( txtValueData, 1, wxALL|wxEXPAND, 5 );
1186 tabDetail->SetSizer( bSizer3891 );
1187 tabDetail->Layout();
1188 bSizer3891->Fit( tabDetail );
1189 m_notebook28->AddPage( tabDetail, wxT("Detail"), false );
1190 tabHierarchy = new wxPanel( m_notebook28, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
1191 wxBoxSizer* bSizer390;
1192 bSizer390 = new wxBoxSizer( wxVERTICAL );
1194 treHierarchy = new wxTreeCtrl( tabHierarchy, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTR_DEFAULT_STYLE|wxSUNKEN_BORDER );
1195 bSizer390->Add( treHierarchy, 1, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
1197 m_panel57 = new wxPanel( tabHierarchy, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
1198 wxBoxSizer* bSizer393;
1199 bSizer393 = new wxBoxSizer( wxVERTICAL );
1201 btnViewCert = new wxButton( m_panel57, wxID_ANY, wxT("View Certificate"), wxDefaultPosition, wxDefaultSize, 0 );
1202 bSizer393->Add( btnViewCert, 0, wxALIGN_RIGHT|wxALL, 0 );
1205 m_panel57->SetSizer( bSizer393 );
1206 m_panel57->Layout();
1207 bSizer393->Fit( m_panel57 );
1208 bSizer390->Add( m_panel57, 0, wxEXPAND | wxALL, 5 );
1211 tabHierarchy->SetSizer( bSizer390 );
1212 tabHierarchy->Layout();
1213 bSizer390->Fit( tabHierarchy );
1214 m_notebook28->AddPage( tabHierarchy, wxT("Hierarchy"), false );
1216 bSizer384->Add( m_notebook28, 1, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
1218 pnlButtons = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
1219 wxBoxSizer* bSizer385;
1220 bSizer385 = new wxBoxSizer( wxVERTICAL );
1222 btnClose = new wxButton( pnlButtons, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );
1223 btnClose->SetDefault();
1224 bSizer385->Add( btnClose, 0, wxALIGN_RIGHT, 5 );
1227 pnlButtons->SetSizer( bSizer385 );
1228 pnlButtons->Layout();
1229 bSizer385->Fit( pnlButtons );
1230 bSizer384->Add( pnlButtons, 0, wxEXPAND | wxALL, 5 );
1233 this->SetSizer( bSizer384 );
1236 this->Centre( wxBOTH );
1239 lstValues->Connect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( frmSSLCertificateADT::LoadValueData ), NULL, this );
1240 treHierarchy->Connect( wxEVT_COMMAND_TREE_SEL_CHANGED, wxTreeEventHandler( frmSSLCertificateADT::CheckCertificate ), NULL, this );
1241 btnViewCert->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmSSLCertificateADT::ViewCertificate ), NULL, this );
1242 btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmSSLCertificateADT::CloseWindow ), NULL, this );
1245 frmSSLCertificateADT::~frmSSLCertificateADT()
1247 // Disconnect Events
1248 lstValues->Disconnect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( frmSSLCertificateADT::LoadValueData ), NULL, this );
1249 treHierarchy->Disconnect( wxEVT_COMMAND_TREE_SEL_CHANGED, wxTreeEventHandler( frmSSLCertificateADT::CheckCertificate ), NULL, this );
1250 btnViewCert->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmSSLCertificateADT::ViewCertificate ), NULL, this );
1251 btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmSSLCertificateADT::CloseWindow ), NULL, this );
1255 frmInvalidSSLCertificateADT::frmInvalidSSLCertificateADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
1257 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
1259 wxBoxSizer* bSizer387;
1260 bSizer387 = new wxBoxSizer( wxVERTICAL );
1262 lblSSLText = new wxStaticText( this, wxID_ANY, wxT("Text"), wxDefaultPosition, wxDefaultSize, 0 );
1263 lblSSLText->Wrap( -1 );
1264 bSizer387->Add( lblSSLText, 1, wxALL|wxEXPAND, 5 );
1266 wxBoxSizer* bSizer388;
1267 bSizer388 = new wxBoxSizer( wxHORIZONTAL );
1269 btnAccept = new wxButton( this, wxID_ANY, wxT("Accept"), wxDefaultPosition, wxDefaultSize, 0 );
1270 bSizer388->Add( btnAccept, 0, wxALL, 5 );
1272 btnReject = new wxButton( this, wxID_ANY, wxT("Reject"), wxDefaultPosition, wxDefaultSize, 0 );
1273 btnReject->SetDefault();
1274 bSizer388->Add( btnReject, 0, wxALL, 5 );
1276 btnViewCert = new wxButton( this, wxID_ANY, wxT("View Certificates..."), wxDefaultPosition, wxDefaultSize, 0 );
1277 bSizer388->Add( btnViewCert, 0, wxALL, 5 );
1280 bSizer387->Add( bSizer388, 0, wxALIGN_CENTER_HORIZONTAL, 0 );
1283 this->SetSizer( bSizer387 );
1286 this->Centre( wxBOTH );
1289 btnAccept->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmInvalidSSLCertificateADT::Accept ), NULL, this );
1290 btnReject->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmInvalidSSLCertificateADT::Reject ), NULL, this );
1291 btnViewCert->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmInvalidSSLCertificateADT::ViewCertificates ), NULL, this );
1294 frmInvalidSSLCertificateADT::~frmInvalidSSLCertificateADT()
1296 // Disconnect Events
1297 btnAccept->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmInvalidSSLCertificateADT::Accept ), NULL, this );
1298 btnReject->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmInvalidSSLCertificateADT::Reject ), NULL, this );
1299 btnViewCert->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmInvalidSSLCertificateADT::ViewCertificates ), NULL, this );
1303 frmCalendarEditorADT::frmCalendarEditorADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
1305 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
1307 wxBoxSizer* bSizer44;
1308 bSizer44 = new wxBoxSizer( wxVERTICAL );
1310 wxFlexGridSizer* fgSizer12;
1311 fgSizer12 = new wxFlexGridSizer( 4, 2, 0, 0 );
1312 fgSizer12->AddGrowableCol( 1 );
1313 fgSizer12->AddGrowableRow( 3 );
1314 fgSizer12->SetFlexibleDirection( wxBOTH );
1315 fgSizer12->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
1317 lblAccount = new wxStaticText( this, wxID_ANY, wxT("Account:"), wxDefaultPosition, wxDefaultSize, 0 );
1318 lblAccount->Wrap( -1 );
1319 fgSizer12->Add( lblAccount, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
1321 wxArrayString cmbAccountChoices;
1322 cmbAccount = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, cmbAccountChoices, 0 );
1323 cmbAccount->SetSelection( 0 );
1324 fgSizer12->Add( cmbAccount, 0, wxALL|wxEXPAND, 5 );
1326 lblName = new wxStaticText( this, wxID_ANY, wxT("Name:"), wxDefaultPosition, wxDefaultSize, 0 );
1327 lblName->Wrap( -1 );
1328 fgSizer12->Add( lblName, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
1330 txtName = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
1331 fgSizer12->Add( txtName, 1, wxALL|wxEXPAND, 5 );
1333 lblColour = new wxStaticText( this, wxID_ANY, wxT("Colour:"), wxDefaultPosition, wxDefaultSize, 0 );
1334 lblColour->Wrap( -1 );
1335 fgSizer12->Add( lblColour, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
1337 clpColour = new wxColourPickerCtrl( this, wxID_ANY, wxColour( 0, 0, 0 ), wxDefaultPosition, wxSize( 50,24 ), wxCLRP_DEFAULT_STYLE );
1338 fgSizer12->Add( clpColour, 0, wxALL, 5 );
1340 lblDescription = new wxStaticText( this, wxID_ANY, wxT("Description:"), wxDefaultPosition, wxDefaultSize, 0 );
1341 lblDescription->Wrap( -1 );
1342 fgSizer12->Add( lblDescription, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
1344 txtDescription = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE );
1345 fgSizer12->Add( txtDescription, 1, wxALL|wxEXPAND, 5 );
1348 bSizer44->Add( fgSizer12, 1, wxEXPAND, 5 );
1350 wxBoxSizer* bSizer46;
1351 bSizer46 = new wxBoxSizer( wxHORIZONTAL );
1354 bSizer46->Add( 0, 0, 1, wxEXPAND, 5 );
1356 btnCreate = new wxButton( this, wxID_ANY, wxT("Create"), wxDefaultPosition, wxDefaultSize, 0 );
1357 btnCreate->SetDefault();
1358 bSizer46->Add( btnCreate, 0, wxALL, 5 );
1360 btnClose = new wxButton( this, wxID_ANY, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );
1361 bSizer46->Add( btnClose, 0, wxALL, 5 );
1364 bSizer44->Add( bSizer46, 0, wxEXPAND, 5 );
1367 this->SetSizer( bSizer44 );
1370 this->Centre( wxBOTH );
1373 btnCreate->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmCalendarEditorADT::ProcessCalendar ), NULL, this );
1374 btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmCalendarEditorADT::CloseWindow ), NULL, this );
1377 frmCalendarEditorADT::~frmCalendarEditorADT()
1379 // Disconnect Events
1380 btnCreate->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmCalendarEditorADT::ProcessCalendar ), NULL, this );
1381 btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( frmCalendarEditorADT::CloseWindow ), NULL, this );
1385 frmEventEditorADT::frmEventEditorADT( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxFrame( parent, id, title, pos, size, style )
1387 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
1388 this->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE ) );
1390 menuBar = new wxMenuBar( 0 );
1391 mnuEvent = new wxMenu();
1392 wxMenuItem* mnuEventSave;
1393 mnuEventSave = new wxMenuItem( mnuEvent, wxID_ANY, wxString( wxT("Save") ) , wxEmptyString, wxITEM_NORMAL );
1394 mnuEvent->Append( mnuEventSave );
1396 wxMenuItem* mnuEventSaveNew;
1397 mnuEventSaveNew = new wxMenuItem( mnuEvent, wxID_ANY, wxString( wxT("Save and New") ) , wxEmptyString, wxITEM_NORMAL );
1398 mnuEvent->Append( mnuEventSaveNew );
1400 mnuEvent->AppendSeparator();
1402 wxMenuItem* mnuEventClose;
1403 mnuEventClose = new wxMenuItem( mnuEvent, wxID_ANY, wxString( wxT("Close") ) , wxEmptyString, wxITEM_NORMAL );
1404 mnuEvent->Append( mnuEventClose );
1406 menuBar->Append( mnuEvent, wxT("Event") );
1408 mnuEdit = new wxMenu();
1409 wxMenuItem* mnuEditCut;
1410 mnuEditCut = new wxMenuItem( mnuEdit, wxID_CUT, wxString( wxT("Cut") ) , wxEmptyString, wxITEM_NORMAL );
1411 mnuEdit->Append( mnuEditCut );
1413 wxMenuItem* mnuEditCopy;
1414 mnuEditCopy = new wxMenuItem( mnuEdit, wxID_COPY, wxString( wxT("Copy") ) , wxEmptyString, wxITEM_NORMAL );
1415 mnuEdit->Append( mnuEditCopy );
1417 wxMenuItem* mnuEditPaste;
1418 mnuEditPaste = new wxMenuItem( mnuEdit, wxID_PASTE, wxString( wxT("Paste") ) , wxEmptyString, wxITEM_NORMAL );
1419 mnuEdit->Append( mnuEditPaste );
1421 menuBar->Append( mnuEdit, wxT("Edit") );
1423 this->SetMenuBar( menuBar );
1425 wxBoxSizer* bSizer46;
1426 bSizer46 = new wxBoxSizer( wxVERTICAL );
1428 nbkNotebook = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
1429 tabProperties = new wxScrolledWindow( nbkNotebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHSCROLL|wxVSCROLL );
1430 tabProperties->SetScrollRate( 5, 5 );
1431 szrList = new wxBoxSizer( wxVERTICAL );
1433 szrDetails = new wxFlexGridSizer( 3, 2, 0, 0 );
1434 szrDetails->AddGrowableCol( 1 );
1435 szrDetails->SetFlexibleDirection( wxBOTH );
1436 szrDetails->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
1438 lblCalendar = new wxStaticText( tabProperties, wxID_ANY, wxT("Calendar:"), wxDefaultPosition, wxDefaultSize, 0 );
1439 lblCalendar->Wrap( -1 );
1440 szrDetails->Add( lblCalendar, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
1442 wxArrayString cmbCalendarChoices;
1443 cmbCalendar = new wxChoice( tabProperties, wxID_ANY, wxDefaultPosition, wxDefaultSize, cmbCalendarChoices, 0 );
1444 cmbCalendar->SetSelection( 0 );
1445 szrDetails->Add( cmbCalendar, 1, wxALL|wxEXPAND, 5 );
1447 lblEventName = new wxStaticText( tabProperties, wxID_ANY, wxT("Name:"), wxDefaultPosition, wxDefaultSize, 0 );
1448 lblEventName->Wrap( -1 );
1449 szrDetails->Add( lblEventName, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
1451 txtEventName = new wxTextCtrl( tabProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
1452 szrDetails->Add( txtEventName, 1, wxALL|wxEXPAND, 5 );
1454 lblDescription = new wxStaticText( tabProperties, wxID_ANY, wxT("Description:"), wxDefaultPosition, wxDefaultSize, 0 );
1455 lblDescription->Wrap( -1 );
1456 szrDetails->Add( lblDescription, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
1458 txtEventDescription = new wxTextCtrl( tabProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE );
1459 txtEventDescription->SetMinSize( wxSize( -1,50 ) );
1461 szrDetails->Add( txtEventDescription, 0, wxALL|wxEXPAND, 5 );
1464 szrList->Add( szrDetails, 0, wxEXPAND, 5 );
1466 szrTime = new wxFlexGridSizer( 3, 3, 0, 0 );
1467 szrTime->SetFlexibleDirection( wxBOTH );
1468 szrTime->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
1470 lblStartTime = new wxStaticText( tabProperties, wxID_ANY, wxT("Start Time:"), wxDefaultPosition, wxDefaultSize, 0 );
1471 lblStartTime->Wrap( -1 );
1472 szrTime->Add( lblStartTime, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
1474 dapStartDate = new wxDatePickerCtrl( tabProperties, wxID_ANY, wxDefaultDateTime, wxDefaultPosition, wxDefaultSize, wxDP_DEFAULT|wxDP_DROPDOWN|wxDP_SHOWCENTURY );
1475 szrTime->Add( dapStartDate, 0, wxALL, 5 );
1477 txtStartTime = new wxTextCtrl( tabProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
1478 szrTime->Add( txtStartTime, 0, wxALL, 5 );
1480 lblEndTime = new wxStaticText( tabProperties, wxID_ANY, wxT("End Time:"), wxDefaultPosition, wxDefaultSize, 0 );
1481 lblEndTime->Wrap( -1 );
1482 szrTime->Add( lblEndTime, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
1484 dapEndDate = new wxDatePickerCtrl( tabProperties, wxID_ANY, wxDefaultDateTime, wxDefaultPosition, wxDefaultSize, wxDP_DEFAULT|wxDP_SHOWCENTURY );
1485 szrTime->Add( dapEndDate, 0, wxALL, 5 );
1487 txtEndTime = new wxTextCtrl( tabProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
1488 szrTime->Add( txtEndTime, 0, wxALL, 5 );
1490 lblDuration = new wxStaticText( tabProperties, wxID_ANY, wxT("Duration:"), wxDefaultPosition, wxDefaultSize, 0 );
1491 lblDuration->Wrap( -1 );
1492 szrTime->Add( lblDuration, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
1494 m_textCtrl20 = new wxTextCtrl( tabProperties, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
1495 szrTime->Add( m_textCtrl20, 0, wxALL, 5 );
1498 szrList->Add( szrTime, 1, wxEXPAND, 5 );
1501 tabProperties->SetSizer( szrList );
1502 tabProperties->Layout();
1503 szrList->Fit( tabProperties );
1504 nbkNotebook->AddPage( tabProperties, wxT("Properties"), false );
1506 bSizer46->Add( nbkNotebook, 1, wxEXPAND | wxALL, 5 );
1509 this->SetSizer( bSizer46 );
1512 this->Centre( wxBOTH );
1515 this->Connect( mnuEventSave->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmEventEditorADT::SaveContact ) );
1516 this->Connect( mnuEventSaveNew->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmEventEditorADT::SaveNewContact ) );
1517 this->Connect( mnuEventClose->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmEventEditorADT::CloseWindow ) );
1518 this->Connect( mnuEditCut->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmEventEditorADT::CutText ) );
1519 this->Connect( mnuEditCopy->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmEventEditorADT::CopyText ) );
1520 this->Connect( mnuEditPaste->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmEventEditorADT::PasteText ) );
1523 frmEventEditorADT::~frmEventEditorADT()
1525 // Disconnect Events
1526 this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmEventEditorADT::SaveContact ) );
1527 this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmEventEditorADT::SaveNewContact ) );
1528 this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmEventEditorADT::CloseWindow ) );
1529 this->Disconnect( wxID_CUT, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmEventEditorADT::CutText ) );
1530 this->Disconnect( wxID_COPY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmEventEditorADT::CopyText ) );
1531 this->Disconnect( wxID_PASTE, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( frmEventEditorADT::PasteText ) );