1 // frmCalendarEditor.h - frmCalendarEditor form functions.
3 // (c) 2016-2017 Xestia Software Development.
5 // This file is part of Xestia Calendar.
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.
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.
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/>
20 #ifndef __frmCalendarEditor__
21 #define __frmCalendarEditor__
25 Subclass of frmCalendarEditorADT, which is generated by wxFormBuilder.
31 #include "../../AppXestiaCalendar.h"
33 #include "preferences.h"
38 //// end generated include
40 /** Implementing frmCalendarEditorADT */
41 class frmCalendarEditor : public frmCalendarEditorADT
44 bool editMode = false;
45 XCALPreferences *preferencesData = nullptr;
46 vector<int> accountPrefencesIDList;
48 std::string accountName = "";
51 void CloseWindow( wxCommandEvent &event );
52 void ProcessCalendar( wxCommandEvent &event );
55 frmCalendarEditor( wxWindow* parent );
56 //// end generated class members
57 void SetMode(bool setMode);
58 void SetupAccounts(XCALPreferences *preferencesData);
59 void SetData(int calendarID, std::string accountName, std::string calendarName, std::string calendarDescription, Colour calendarColour);
63 #endif // __frmCalendarEditor__