Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Updated/Added copyright header and licensing to all source files
[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         
64         protected:
65                 void QuitApp( wxCloseEvent& event );
66                 void QuitApp( wxCommandEvent& event );
67                 void QuitApp();
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 );
84         
85         public:
86                 /** Constructor */
87                 frmMain( wxWindow* parent );
88         //// end generated class members
89         
90 };
92 #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