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;
53 bool enableUpdates = false;
60 XCALPreferences *preferences;
61 void SetDefaultDateTime();
62 void UpdateWindowName();
64 void SaveContact(wxCommandEvent &event);
65 void SaveNewContact(wxCommandEvent &event);
66 void CloseWindow(wxCommandEvent &event);
67 void CloseWindow(wxCloseEvent &event);
68 void CutText(wxCommandEvent &event);
69 void CopyText(wxCommandEvent &event);
70 void PasteText(wxCommandEvent &event);
71 bool ProcessEvent(wxEvent& event);
72 void ProcessCalendarControl(wxCommandEvent &event);
73 void ProcessEventName(wxCommandEvent &event);
76 frmEventEditor( wxWindow* parent );
77 void SetupForm(CalendarDataStorage *dataStorage, XCALPreferences *preferences);
78 void SetEditMode(bool editMode);
79 void SetEventID(int eventID);
80 void SetWindowMenuItemID(int windowID);
81 //// end generated class members
85 #endif // __frmEventEditor__