Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
52202e700e65622fd3594ffa0910ffb8a612b495
[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>
30 #include <wx/tooltip.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"
40 #include "../actmgr/frmActivityMgr.h"
42 #include "../../widgets/XCCalendarCtrl.h"
43 #include "../../libraries/CalendarDataStorage/CalendarDataStorage.h"
44 #include "../../objects/calendarlist/CalendarList.h"
45 #include "events.h"
46 #include "preferences.h"
47 #include "dirs.h"
48 #include "structs.h"
49 #include "uuid.h"
51 //// end generated include
53 /** Implementing frmMainADT */
54 class frmMain : public frmMainADT
55 {
56         
57         private:
58                 XCCalendarCtrl *mainCalendarCtrl = nullptr;
59                 XCCalendarMonthView *monthViewCtrl = nullptr;
60                 XCALPreferences *preferences = nullptr;
61                 CalendarDataStorage calendarData;
62                 ColourUpdateProperties updateColourData;
63                 bool reloadAccounts = false;
64                 std::map<int,wxMenuItem*> windowListPointersMenu;
65                 std::map<int,void*> windowListPointers;
66                 std::map<int,int> windowListType;
67                 int WindowMenuItemID = 0;
68                 wxBitmap *imgActIcon1 = nullptr;
69                 wxBitmap *imgActIcon2 = nullptr;
70                 wxBitmap *imgActIcon3 = nullptr;
71                 wxBitmap *imgActIcon4 = nullptr;
72                 wxBitmap *imgActIconSleep = nullptr;
73                 wxBitmap *imgSSL = nullptr;
74                 wxBitmap *imgNoSSL = nullptr;
75                 wxBitmap *imgSSLWarning = nullptr;
76                 wxBitmap *imgOnline = nullptr;
77                 wxBitmap *imgOffline = nullptr;
78                 wxStaticBitmap *imgConnStatus = nullptr;
79                 wxStaticBitmap *imgActivityStatus = nullptr;
80                 wxToolTip *sslToolTip = nullptr;
81                 frmActivityMgr *activityManager = nullptr;
82                 
83                 void SetupFormIcons();
84                 void SetupStatusBar();
85         protected:
86                 void QuitApp( wxCloseEvent& event );
87                 void QuitApp( wxCommandEvent& event );
88                 void QuitApp();
89                 void ShowPreferencesWindow( wxCommandEvent& event );
90                 void CreateNewCalendar( wxCommandEvent& event );
91                 void EditCalendar( wxCommandEvent& event );
92                 void DeleteCalendar( wxCommandEvent& event );
93                 void CreateNewEvent( wxCommandEvent& event );
94                 void EditEvent( wxCommandEvent& event );
95                 void DeleteEvent( wxCommandEvent& event );
96                 void AddEvent( wxCommandEvent& event );
97                 void UpdateEvent( wxCommandEvent& event );
98                 void ShowUpdateWindow( wxCommandEvent& event );
99                 void ShowAboutWindow( wxCommandEvent& event );
100                 void OpenNewAccountDialog( wxCommandEvent& event );
101                 void ShowActivityManager( wxCommandEvent& event );
102                 void ProcessCalendar( wxCommandEvent& event );
103                 void LoadAccountData();
104                 void CloseWindow( wxCommandEvent& event );
105                 void ShowHelp( wxCommandEvent& event );
106         
107                 void WindowAdd( wxCommandEvent& event );
108                 void WindowUpdate( wxCommandEvent& event );
109                 void WindowDelete( wxCommandEvent& event );
110                 void ShowEventWindow( wxCommandEvent &event );
111                 bool CloseAllWindows();
112         
113         public:
114                 /** Constructor */
115                 frmMain( wxWindow* parent );
116                 void SetupPointers(frmActivityMgr *activityManager);
117         //// end generated class members
118         
119 };
121 #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