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>
31 #include "../../AppXestiaCalendar.h"
33 #include "../about/frmAbout.h"
34 #include "../update/frmUpdate.h"
35 #include "../preferences/frmPreferences.h"
36 #include "../newaccount/frmNewAccount.h"
37 #include "../calendareditor/frmCalendarEditor.h"
38 #include "../eventeditor/frmEventEditor.h"
40 #include "../../widgets/XCCalendarCtrl.h"
41 #include "../../libraries/CalendarDataStorage/CalendarDataStorage.h"
42 #include "../../objects/calendarlist/CalendarList.h"
44 #include "preferences.h"
49 //// end generated include
51 /** Implementing frmMainADT */
52 class frmMain : public frmMainADT
56 XCCalendarCtrl *mainCalendarCtrl = nullptr;
57 XCCalendarMonthView *monthViewCtrl = nullptr;
58 XCALPreferences *preferences = nullptr;
59 CalendarDataStorage calendarData;
60 ColourUpdateProperties updateColourData;
61 bool reloadAccounts = false;
62 std::map<int,wxMenuItem*> WindowListPointersMenu;
63 std::map<int,void*> WindowListPointers;
64 std::map<int,int> WindowListType;
65 int WindowMenuItemID = 0;
68 void QuitApp( wxCloseEvent& event );
69 void QuitApp( wxCommandEvent& event );
71 void ShowPreferencesWindow( wxCommandEvent& event );
72 void CreateNewCalendar( wxCommandEvent& event );
73 void EditCalendar( wxCommandEvent& event );
74 void DeleteCalendar( wxCommandEvent& event );
75 void CreateNewEvent( wxCommandEvent& event );
76 void EditEvent( wxCommandEvent& event );
77 void DeleteEvent( wxCommandEvent& event );
78 void AddEvent( wxCommandEvent& event );
79 void UpdateEvent( wxCommandEvent& event );
80 void ShowUpdateWindow( wxCommandEvent& event );
81 void ShowAboutWindow( wxCommandEvent& event );
82 void OpenNewAccountDialog( wxCommandEvent& event );
83 void ProcessCalendar( wxCommandEvent& event );
84 void LoadAccountData();
85 void CloseWindow( wxCommandEvent& event );
86 void ShowHelp( wxCommandEvent& event );
88 void WindowAdd( wxCommandEvent& event );
89 void WindowUpdate( wxCommandEvent& event );
90 void WindowDelete( wxCommandEvent& event );
91 void ShowEventWindow( wxCommandEvent &event );
92 bool CloseAllWindows();
96 frmMain( wxWindow* parent );
97 //// end generated class members
101 #endif // __frmMain__