1 // structs.h - Structs and Enumerators header.
3 // (c) 2012-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 __COMMON_STRUCTS_H__
20 #define __COMMON_STRUCTS_H__
26 struct CalendarProperties {
27 bool editMode = false;
28 int accountPreferencesID = -1;
31 std::string accountName = "";
32 std::string calendarName = "";
33 std::string calendarDescription = "";
34 Colour calendarColour;
37 struct EventProperties {
38 bool editMode = false;
39 int accountPreferencesID = -1;
43 std::string eventName = "";
44 std::string eventDescipriton = "";
51 std::vector<int> hideAccountsList;
52 std::vector<int> hideCalendarsList;
55 struct ColourUpdateProperties{
60 enum XCCalendarMenuID {
61 ID_CALENDARMENU_EDIT = 1,
62 ID_CALENDARMENU_DELETE,
66 ID_EVENTMENU_EDIT = 1,