Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
frmMain: Removed dirent.h from header (not in use)
[xestiacalendar/.git] / source / forms / main / frmMain.h
1 // frmMain.h - frmEventEditor form functions.
2 //
3 // (c) 2016-2017 Xestia Software Development.
4 //
5 // This file is part of Xestia Calendar.
6 //
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.
10 //
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.
15 //
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 #ifndef __frmMain__
20 #define __frmMain__
22 /**
23 @file
24 Subclass of frmMainADT, which is generated by wxFormBuilder.
25 */
27 #include <map>
28 #include <sys/types.h>
29 #include <wx/dir.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"
43 #include "events.h"
44 #include "preferences.h"
45 #include "dirs.h"
46 #include "structs.h"
47 #include "uuid.h"
49 //// end generated include
51 /** Implementing frmMainADT */
52 class frmMain : public frmMainADT
53 {
54         
55         private:
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;
66         
67         protected:
68                 void QuitApp( wxCloseEvent& event );
69                 void QuitApp( wxCommandEvent& event );
70                 void QuitApp();
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 );
87         
88                 void WindowAdd( wxCommandEvent& event );
89                 void WindowUpdate( wxCommandEvent& event );
90                 void WindowDelete( wxCommandEvent& event );
91                 void ShowEventWindow( wxCommandEvent &event );
92                 bool CloseAllWindows();
93         
94         public:
95                 /** Constructor */
96                 frmMain( wxWindow* parent );
97         //// end generated class members
98         
99 };
101 #endif // __frmMain__
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy