Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
frmCalendarEditor: Added form to edit calendars
[xestiacalendar/.git] / source / forms / calendareditor / frmCalendarEditor.h
1 #ifndef __frmCalendarEditor__
2 #define __frmCalendarEditor__
4 /**
5 @file
6 Subclass of frmCalendarEditorADT, which is generated by wxFormBuilder.
7 */
9 #include <string>
10 #include <vector>
12 #include "../../AppXestiaCalendar.h"
14 #include "preferences.h"
15 #include "events.h"
16 #include "structs.h"
17 #include "colour.h"
19 //// end generated include
21 /** Implementing frmCalendarEditorADT */
22 class frmCalendarEditor : public frmCalendarEditorADT
23 {
24         private:
25                 bool editMode = false;
26                 XCALPreferences *preferencesData = nullptr;
27                 vector<int> accountPrefencesIDList;
28                 int calendarID = 0;
29                 std::string accountName = "";
30         
31         protected:
32                 void CloseWindow( wxCommandEvent &event );
33                 void ProcessCalendar( wxCommandEvent &event );
34         public:
35                 /** Constructor */
36                 frmCalendarEditor( wxWindow* parent );
37         //// end generated class members
38                 void SetMode(bool setMode);
39                 void SetupAccounts(XCALPreferences *preferencesData);
40                 void SetData(int calendarID, std::string accountName, std::string calendarName, std::string calendarDescription, Colour calendarColour);
41         
42 };
44 #endif // __frmCalendarEditor__
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