1 // frmMain.h - frmEventEditor form functions.
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/>
24 Subclass of frmMainADT, which is generated by wxFormBuilder.
28 #include <sys/types.h>
32 #include "../../AppXestiaCalendar.h"
34 #include "../about/frmAbout.h"
35 #include "../update/frmUpdate.h"
36 #include "../preferences/frmPreferences.h"
37 #include "../newaccount/frmNewAccount.h"
38 #include "../calendareditor/frmCalendarEditor.h"
39 #include "../eventeditor/frmEventEditor.h"
41 #include "../../widgets/XCCalendarCtrl.h"
42 #include "../../libraries/CalendarDataStorage/CalendarDataStorage.h"
43 #include "../../objects/calendarlist/CalendarList.h"
45 #include "preferences.h"
50 //// end generated include
52 /** Implementing frmMainADT */
53 class frmMain : public frmMainADT
57 XCCalendarCtrl *mainCalendarCtrl = nullptr;
58 XCCalendarMonthView *monthViewCtrl = nullptr;
59 XCALPreferences *preferences = nullptr;
60 CalendarDataStorage calendarData;
61 ColourUpdateProperties updateColourData;
62 bool reloadAccounts = false;
65 void QuitApp( wxCloseEvent& event );
66 void QuitApp( wxCommandEvent& event );
68 void ShowPreferencesWindow( wxCommandEvent& event );
69 void CreateNewCalendar( wxCommandEvent& event );
70 void EditCalendar( wxCommandEvent& event );
71 void DeleteCalendar( wxCommandEvent& event );
72 void CreateNewEvent( wxCommandEvent& event );
73 void EditEvent( wxCommandEvent& event );
74 void DeleteEvent( wxCommandEvent& event );
75 void AddEvent( wxCommandEvent& event );
76 void UpdateEvent( wxCommandEvent& event );
77 void ShowUpdateWindow( wxCommandEvent& event );
78 void ShowAboutWindow( wxCommandEvent& event );
79 void OpenNewAccountDialog( wxCommandEvent& event );
80 void ProcessCalendar( wxCommandEvent& event );
81 void LoadAccountData();
82 void CloseWindow( wxCommandEvent& event );
83 void ShowHelp( wxCommandEvent& event );
87 frmMain( wxWindow* parent );
88 //// end generated class members