Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
37930ae55aef85d15ea96d5db58900aa1be166b0
[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 <dirent.h>
30 #include <wx/dir.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"
44 #include "events.h"
45 #include "preferences.h"
46 #include "dirs.h"
47 #include "structs.h"
48 #include "uuid.h"
50 //// end generated include
52 /** Implementing frmMainADT */
53 class frmMain : public frmMainADT
54 {
55         
56         private:
57                 XCCalendarCtrl *mainCalendarCtrl = nullptr;
58                 XCCalendarMonthView *monthViewCtrl = nullptr;
59                 XCALPreferences *preferences = nullptr;
60                 CalendarDataStorage calendarData;
61                 ColourUpdateProperties updateColourData;
62                 bool reloadAccounts = false;
63                 std::map<int,wxMenuItem*> WindowListPointersMenu;
64                 std::map<int,void*> WindowListPointers;
65                 std::map<int,int> WindowListType;
66                 int WindowMenuItemID = 0;
67         
68         protected:
69                 void QuitApp( wxCloseEvent& event );
70                 void QuitApp( wxCommandEvent& event );
71                 void QuitApp();
72                 void ShowPreferencesWindow( wxCommandEvent& event );
73                 void CreateNewCalendar( wxCommandEvent& event );
74                 void EditCalendar( wxCommandEvent& event );
75                 void DeleteCalendar( wxCommandEvent& event );
76                 void CreateNewEvent( wxCommandEvent& event );
77                 void EditEvent( wxCommandEvent& event );
78                 void DeleteEvent( wxCommandEvent& event );
79                 void AddEvent( wxCommandEvent& event );
80                 void UpdateEvent( wxCommandEvent& event );
81                 void ShowUpdateWindow( wxCommandEvent& event );
82                 void ShowAboutWindow( wxCommandEvent& event );
83                 void OpenNewAccountDialog( wxCommandEvent& event );
84                 void ProcessCalendar( wxCommandEvent& event );
85                 void LoadAccountData();
86                 void CloseWindow( wxCommandEvent& event );
87                 void ShowHelp( wxCommandEvent& event );
88         
89                 void WindowAdd( wxCommandEvent& event );
90                 void WindowUpdate( wxCommandEvent& event );
91                 void WindowDelete( wxCommandEvent& event );
92                 void ShowEventWindow( wxCommandEvent &event );
93                 bool CloseAllWindows();
94         
95         public:
96                 /** Constructor */
97                 frmMain( wxWindow* parent );
98         //// end generated class members
99         
100 };
102 #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