Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Updated/Added copyright header and licensing to all source files
[xestiacalendar/.git] / source / forms / calendareditor / frmCalendarEditor.h
1 // frmCalendarEditor.h - frmCalendarEditor 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/>
20 #ifndef __frmCalendarEditor__
21 #define __frmCalendarEditor__
23 /**
24 @file
25 Subclass of frmCalendarEditorADT, which is generated by wxFormBuilder.
26 */
28 #include <string>
29 #include <vector>
31 #include "../../AppXestiaCalendar.h"
33 #include "preferences.h"
34 #include "events.h"
35 #include "structs.h"
36 #include "colour.h"
38 //// end generated include
40 /** Implementing frmCalendarEditorADT */
41 class frmCalendarEditor : public frmCalendarEditorADT
42 {
43         private:
44                 bool editMode = false;
45                 XCALPreferences *preferencesData = nullptr;
46                 vector<int> accountPrefencesIDList;
47                 int calendarID = 0;
48                 std::string accountName = "";
49         
50         protected:
51                 void CloseWindow( wxCommandEvent &event );
52                 void ProcessCalendar( wxCommandEvent &event );
53         public:
54                 /** Constructor */
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);
60         
61 };
63 #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