1 // frmEventEditor.h - frmEventEditor form functions header.
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/>
19 #ifndef __frmEventEditor__
20 #define __frmEventEditor__
24 Subclass of frmEventEditorADT, which is generated by wxFormBuilder.
31 #include "../../AppXestiaCalendar.h"
38 #include "preferences.h"
40 #include "../../libraries/CalendarDataStorage/CalendarDataStorage.h"
41 #include "../../objects/calendarevent/CalendarEvent.h"
43 //// end generated include
45 /** Implementing frmEventEditorADT */
46 class frmEventEditor : public frmEventEditorADT
49 CalendarDataStorage *dataStorage = nullptr;
50 CalendarEventObject eventData;
51 vector<int> calendarIDList;
52 bool editMode = false;
56 XCALPreferences *preferences;
57 void SetDefaultDateTime();
59 void SaveContact(wxCommandEvent &event);
60 void SaveNewContact(wxCommandEvent &event);
61 void CloseWindow(wxCommandEvent &event);
62 void CutText(wxCommandEvent &event);
63 void CopyText(wxCommandEvent &event);
64 void PasteText(wxCommandEvent &event);
65 bool ProcessEvent(wxEvent& event);
68 frmEventEditor( wxWindow* parent );
69 void SetupForm(CalendarDataStorage *dataStorage, XCALPreferences *preferences);
70 void SetEditMode(bool editMode);
71 void SetEventID(int eventID);
72 //// end generated class members
76 #endif // __frmEventEditor__