1 // AppXesitaCalendar.cpp - Xestia Calendar application form code header
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 #ifndef __APPXESTIACALENDAR_H__
27 #define __APPXESTIACALENDAR_H__
29 #include <wx/artprov.h>
30 #include <wx/xrc/xmlres.h>
31 #include <wx/statusbr.h>
32 #include <wx/gdicmn.h>
34 #include <wx/colour.h>
35 #include <wx/settings.h>
36 #include <wx/string.h>
37 #include <wx/bitmap.h>
43 #include <wx/stattext.h>
45 #include <wx/statline.h>
46 #include <wx/button.h>
47 #include <wx/dialog.h>
48 #include <wx/checkbox.h>
49 #include <wx/listctrl.h>
50 #include <wx/notebook.h>
51 #include <wx/statbmp.h>
52 #include <wx/choice.h>
53 #include <wx/textctrl.h>
54 #include <wx/html/htmlwin.h>
55 #include <wx/splitter.h>
57 #include <wx/treectrl.h>
58 #include <wx/clrpicker.h>
59 #include <wx/datectrl.h>
60 #include <wx/dateevt.h>
61 #include <wx/scrolwin.h>
63 ///////////////////////////////////////////////////////////////////////////
66 ///////////////////////////////////////////////////////////////////////////////
68 ///////////////////////////////////////////////////////////////////////////////
69 class frmMainADT : public wxFrame
74 wxStatusBar* stbBottom;
81 // Virtual event handlers, overide them in your derived class
82 virtual void QuitApp( wxCloseEvent& event ) { event.Skip(); }
83 virtual void OpenNewAccountDialog( wxCommandEvent& event ) { event.Skip(); }
84 virtual void ShowPreferencesWindow( wxCommandEvent& event ) { event.Skip(); }
85 virtual void QuitApp( wxCommandEvent& event ) { event.Skip(); }
86 virtual void CreateNewCalendar( wxCommandEvent& event ) { event.Skip(); }
87 virtual void CreateNewEvent( wxCommandEvent& event ) { event.Skip(); }
88 virtual void ShowHelp( wxCommandEvent& event ) { event.Skip(); }
89 virtual void ShowUpdateWindow( wxCommandEvent& event ) { event.Skip(); }
90 virtual void ShowAboutWindow( wxCommandEvent& event ) { event.Skip(); }
95 frmMainADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Xestia Calendar"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 800,600 ), long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL );
101 ///////////////////////////////////////////////////////////////////////////////
102 /// Class frmUpdateADT
103 ///////////////////////////////////////////////////////////////////////////////
104 class frmUpdateADT : public wxDialog
109 wxPanel* pnlUpdateData;
110 wxStaticText* lblRunningText;
111 wxStaticText* lblRunningVer;
112 wxStaticText* lblAvailableText;
113 wxStaticText* lblAvailableVer;
114 wxStaticText* lblBuildTypeText;
115 wxStaticText* lblBuildType;
116 wxStaticText* lblUpdateMessage;
117 wxStaticLine* statLine;
118 wxButton* btnVisitGelforn;
119 wxButton* btnVisitPREMIUM;
122 // Virtual event handlers, overide them in your derived class
123 virtual void VisitGelforn( wxCommandEvent& event ) { event.Skip(); }
124 virtual void VisitPREMIUM( wxCommandEvent& event ) { event.Skip(); }
125 virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }
130 frmUpdateADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Check For Updates"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 433,273 ), long style = wxDEFAULT_DIALOG_STYLE );
135 ///////////////////////////////////////////////////////////////////////////////
136 /// Class frmPreferencesADT
137 ///////////////////////////////////////////////////////////////////////////////
138 class frmPreferencesADT : public wxDialog
143 wxNotebook* NbtPreferences;
145 wxCheckBox* chkSaveWindowPosition;
146 wxCheckBox* chkHideLocal;
148 wxListCtrl* lstThemes;
149 wxButton* btnThemeAdd;
150 wxButton* btnThemeModify;
151 wxButton* btnThemeDelete;
152 wxPanel* tabAccounts;
153 wxListCtrl* lstAccounts;
154 wxButton* btnAccountAdd;
155 wxButton* btnAccountModify;
156 wxButton* btnAccountDelete;
160 // Virtual event handlers, overide them in your derived class
161 virtual void LoadPreferences( wxInitDialogEvent& event ) { event.Skip(); }
162 virtual void DisableABButtons( wxListEvent& event ) { event.Skip(); }
163 virtual void EnableABButtons( wxListEvent& event ) { event.Skip(); }
164 virtual void AddABAccount( wxCommandEvent& event ) { event.Skip(); }
165 virtual void ModifyABAccount( wxCommandEvent& event ) { event.Skip(); }
166 virtual void DeleteABAccount( wxCommandEvent& event ) { event.Skip(); }
167 virtual void DisableButtons( wxListEvent& event ) { event.Skip(); }
168 virtual void EnableButtons( wxListEvent& event ) { event.Skip(); }
169 virtual void AddAccount( wxCommandEvent& event ) { event.Skip(); }
170 virtual void ModifyAccount( wxCommandEvent& event ) { event.Skip(); }
171 virtual void DeleteAccount( wxCommandEvent& event ) { event.Skip(); }
172 virtual void SavePreferences( wxCommandEvent& event ) { event.Skip(); }
173 virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }
178 frmPreferencesADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Preferences"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 450,400 ), long style = wxDEFAULT_DIALOG_STYLE );
179 ~frmPreferencesADT();
183 ///////////////////////////////////////////////////////////////////////////////
184 /// Class frmAboutADT
185 ///////////////////////////////////////////////////////////////////////////////
186 class frmAboutADT : public wxDialog
191 wxStaticBitmap* bmpLogo;
192 wxStaticText* lblVersion;
193 wxStaticText* lblCompileTime;
194 wxStaticText* lblCopyright;
197 // Virtual event handlers, overide them in your derived class
198 virtual void CloseAboutWindow( wxCommandEvent& event ) { event.Skip(); }
203 frmAboutADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("About Xestia Calendar"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 350,400 ), long style = wxDEFAULT_DIALOG_STYLE );
208 ///////////////////////////////////////////////////////////////////////////////
209 /// Class frmNewAccountADT
210 ///////////////////////////////////////////////////////////////////////////////
211 class frmNewAccountADT : public wxDialog
216 wxBoxSizer* szrNewAccount;
218 wxStaticText* lblEnterText;
219 wxStaticText* lblType;
220 wxChoice* cmbServerType;
221 wxStaticText* lblServerAddress;
222 wxTextCtrl* txtServerAddress;
223 wxStaticText* lblServerPort;
224 wxTextCtrl* txtServerPort;
225 wxStaticText* lblUsername;
226 wxTextCtrl* txtUsername;
227 wxStaticText* lblPassword;
228 wxTextCtrl* txtPassword;
229 wxStaticText* lblSSL;
230 wxCheckBox* chkUseSSL;
232 wxStaticText* lblConnectionResult;
233 wxStaticText* lblServerConnected;
234 wxStaticText* lblServerConnResult;
235 wxStaticText* lblValidResponse;
236 wxStaticText* lblServerResponse;
237 wxStaticText* lblUseSSL;
238 wxStaticText* lblServerSSLResult;
239 wxStaticText* lblServerSSLCert;
240 wxStaticText* lblServerSSLValid;
241 wxStaticText* lblServerUsernamePassword;
242 wxStaticText* lblAbleToLoginResult;
243 wxStaticText* lblIsCalDAV;
244 wxStaticText* lblCardDAVSupportResult;
245 wxStaticLine* m_staticline3;
246 wxStaticText* lblConnectionResultText;
248 wxStaticText* lblFinishText;
249 wxStaticText* lblAccountName;
250 wxTextCtrl* txtAccountName;
251 wxButton* btnPrevious;
255 // Virtual event handlers, overide them in your derived class
256 virtual void UpdateRequirements( wxCommandEvent& event ) { event.Skip(); }
257 virtual void CheckAccountName( wxCommandEvent& event ) { event.Skip(); }
258 virtual void ProcessPrevious( wxCommandEvent& event ) { event.Skip(); }
259 virtual void ProcessNext( wxCommandEvent& event ) { event.Skip(); }
260 virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }
265 frmNewAccountADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("New Account"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 425,330 ), long style = wxDEFAULT_DIALOG_STYLE );
270 ///////////////////////////////////////////////////////////////////////////////
271 /// Class frmConflictResolutionADT
272 ///////////////////////////////////////////////////////////////////////////////
273 class frmConflictResolutionADT : public wxDialog
278 wxStaticText* lblText;
279 wxSplitterWindow* m_splitter3;
281 wxHtmlWindow* htmClient;
283 wxHtmlWindow* htmServer;
284 wxButton* btnKeepLocal;
285 wxButton* btnKeepServer;
286 wxButton* btnDecideLater;
288 // Virtual event handlers, overide them in your derived class
289 virtual void KeepLocalData( wxCommandEvent& event ) { event.Skip(); }
290 virtual void KeepServerData( wxCommandEvent& event ) { event.Skip(); }
291 virtual void DecideLater( wxCommandEvent& event ) { event.Skip(); }
296 frmConflictResolutionADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Conflict Resolution"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 536,417 ), long style = wxDEFAULT_DIALOG_STYLE );
297 ~frmConflictResolutionADT();
299 void m_splitter3OnIdle( wxIdleEvent& )
301 m_splitter3->SetSashPosition( 257 );
302 m_splitter3->Disconnect( wxEVT_IDLE, wxIdleEventHandler( frmConflictResolutionADT::m_splitter3OnIdle ), NULL, this );
307 ///////////////////////////////////////////////////////////////////////////////
308 /// Class frmActivityMgrADT
309 ///////////////////////////////////////////////////////////////////////////////
310 class frmActivityMgrADT : public wxFrame
315 wxMenuBar* mnuMenuBar;
317 wxMenuItem* mnuSleepMode;
319 wxStaticBitmap* bmpActivity;
321 wxStaticText* lblDetails;
322 wxGauge* GauProgress;
324 wxListCtrl* lstActivity;
326 // Virtual event handlers, overide them in your derived class
327 virtual void CloseWindow( wxCloseEvent& event ) { event.Skip(); }
328 virtual void StopTask( wxCommandEvent& event ) { event.Skip(); }
329 virtual void StopAllTasks( wxCommandEvent& event ) { event.Skip(); }
330 virtual void RetryTask( wxCommandEvent& event ) { event.Skip(); }
331 virtual void SleepMode( wxCommandEvent& event ) { event.Skip(); }
332 virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }
337 frmActivityMgrADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Activity Manager"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 400,425 ), long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL );
339 ~frmActivityMgrADT();
343 ///////////////////////////////////////////////////////////////////////////////
344 /// Class frmEditAccountADT
345 ///////////////////////////////////////////////////////////////////////////////
346 class frmEditAccountADT : public wxDialog
351 wxNotebook* tabAccount;
352 wxPanel* tabProperties;
353 wxStaticText* lblAccName;
354 wxTextCtrl* txtAccountName;
355 wxStaticText* lblAccAdr;
356 wxTextCtrl* txtAddress;
357 wxStaticText* m_staticText193;
359 wxStaticText* lblPort;
360 wxTextCtrl* txtUsername;
361 wxStaticText* lblPassword;
362 wxTextCtrl* txtPassword;
363 wxStaticText* lblPrefix;
364 wxTextCtrl* txtPrefix;
366 wxStaticText* txtSSL;
369 wxStaticText* lblRefresh;
370 wxTextCtrl* txtRefresh;
374 // Virtual event handlers, overide them in your derived class
375 virtual void DetectAddressBook( wxCommandEvent& event ) { event.Skip(); }
376 virtual void UpdateSettings( wxCommandEvent& event ) { event.Skip(); }
377 virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }
382 frmEditAccountADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Edit Account"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 306,341 ), long style = wxDEFAULT_DIALOG_STYLE );
383 ~frmEditAccountADT();
387 ///////////////////////////////////////////////////////////////////////////////
388 /// Class frmSSLCertificateADT
389 ///////////////////////////////////////////////////////////////////////////////
390 class frmSSLCertificateADT : public wxDialog
395 wxNotebook* m_notebook28;
398 wxStaticText* lblCertName;
399 wxStaticText* lblValidityStatus;
401 wxStaticText* lblIssuedTo;
402 wxStaticText* lblIssuedToData;
403 wxStaticText* lblValidFrom;
404 wxStaticText* lblValidFromData;
405 wxStaticText* lblValidUntil;
406 wxStaticText* lblValidUntilData;
408 wxListCtrl* lstValues;
409 wxTextCtrl* txtValueData;
410 wxPanel* tabHierarchy;
411 wxTreeCtrl* treHierarchy;
413 wxButton* btnViewCert;
417 // Virtual event handlers, overide them in your derived class
418 virtual void LoadValueData( wxListEvent& event ) { event.Skip(); }
419 virtual void CheckCertificate( wxTreeEvent& event ) { event.Skip(); }
420 virtual void ViewCertificate( wxCommandEvent& event ) { event.Skip(); }
421 virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }
426 frmSSLCertificateADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("SSL Certificate Window"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 347,402 ), long style = wxDEFAULT_DIALOG_STYLE );
427 ~frmSSLCertificateADT();
431 ///////////////////////////////////////////////////////////////////////////////
432 /// Class frmInvalidSSLCertificateADT
433 ///////////////////////////////////////////////////////////////////////////////
434 class frmInvalidSSLCertificateADT : public wxDialog
439 wxStaticText* lblSSLText;
442 wxButton* btnViewCert;
444 // Virtual event handlers, overide them in your derived class
445 virtual void Accept( wxCommandEvent& event ) { event.Skip(); }
446 virtual void Reject( wxCommandEvent& event ) { event.Skip(); }
447 virtual void ViewCertificates( wxCommandEvent& event ) { event.Skip(); }
452 frmInvalidSSLCertificateADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Invalid SSL Certificate"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 445,239 ), long style = wxCAPTION );
453 ~frmInvalidSSLCertificateADT();
457 ///////////////////////////////////////////////////////////////////////////////
458 /// Class frmCalendarEditorADT
459 ///////////////////////////////////////////////////////////////////////////////
460 class frmCalendarEditorADT : public wxDialog
465 wxStaticText* lblAccount;
466 wxChoice* cmbAccount;
467 wxStaticText* lblName;
469 wxStaticText* lblColour;
470 wxColourPickerCtrl* clpColour;
471 wxStaticText* lblDescription;
472 wxTextCtrl* txtDescription;
476 // Virtual event handlers, overide them in your derived class
477 virtual void ProcessCalendar( wxCommandEvent& event ) { event.Skip(); }
478 virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }
483 frmCalendarEditorADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Calendar Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 550,305 ), long style = wxDEFAULT_DIALOG_STYLE );
484 ~frmCalendarEditorADT();
488 ///////////////////////////////////////////////////////////////////////////////
489 /// Class frmEventEditorADT
490 ///////////////////////////////////////////////////////////////////////////////
491 class frmEventEditorADT : public wxFrame
499 wxNotebook* nbkNotebook;
500 wxScrolledWindow* tabProperties;
502 wxFlexGridSizer* szrDetails;
503 wxStaticText* lblCalendar;
504 wxChoice* cmbCalendar;
505 wxStaticText* lblEventName;
506 wxTextCtrl* txtEventName;
507 wxStaticText* lblDescription;
508 wxTextCtrl* txtEventDescription;
509 wxFlexGridSizer* szrTime;
510 wxStaticText* lblStartTime;
511 wxDatePickerCtrl* dapStartDate;
512 wxTextCtrl* txtStartTime;
513 wxStaticText* lblEndTime;
514 wxDatePickerCtrl* dapEndDate;
515 wxTextCtrl* txtEndTime;
516 wxStaticText* lblDuration;
517 wxTextCtrl* m_textCtrl20;
519 // Virtual event handlers, overide them in your derived class
520 virtual void SaveContact( wxCommandEvent& event ) { event.Skip(); }
521 virtual void SaveNewContact( wxCommandEvent& event ) { event.Skip(); }
522 virtual void CloseWindow( wxCommandEvent& event ) { event.Skip(); }
523 virtual void CutText( wxCommandEvent& event ) { event.Skip(); }
524 virtual void CopyText( wxCommandEvent& event ) { event.Skip(); }
525 virtual void PasteText( wxCommandEvent& event ) { event.Skip(); }
530 frmEventEditorADT( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Event Editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 546,401 ), long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL );
532 ~frmEventEditorADT();
536 #endif //__APPXESTIACALENDAR_H__