X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fcommon%2Fmonthviewgen.h;h=47b80d1df9c3cdbb50cd847ca2c2bfd66ad95068;hb=cba151c4b833a26c63984769f921bab5e755decd;hp=e71116756de6f15919af86050398e852703d13f5;hpb=d4957eff5d161e41f0e33d0e93fbed5eb4deb674;p=xestiacalendar%2F.git diff --git a/source/common/monthviewgen.h b/source/common/monthviewgen.h index e711167..47b80d1 100644 --- a/source/common/monthviewgen.h +++ b/source/common/monthviewgen.h @@ -1,14 +1,14 @@ // monthviewgen.h - Xestia Calendar month view generation functions header. // -// (c) 2016 Xestia Software Development. +// (c) 2016-2017 Xestia Software Development. // // This file is part of Xestia Calendar. // -// Xestia Address Book is free software: you can redistribute it and/or modify +// Xestia Calendar is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by the // Free Software Foundation, version 3 of the license. // -// Xestia Address Book is distributed in the hope that it will be useful, +// Xestia Calendar is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. @@ -21,8 +21,31 @@ #include #include -#include +using namespace std; + +struct XCCalendarMonthViewGridDayData{ + + int Day = 1; + int Month = 1; + int Year = 1; + bool IsInMonth = false; + +}; + +struct XCCalendarMonthViewGridDayWeek{ + + vector DayList; + +}; + +struct XCCalendarMonthViewGrid{ + + vector WeekList; + +}; + +XCCalendarMonthViewGrid GenerateMonthGrid(int Month, int Year); int PreviousMonthNumberofDays(int Month, int Year); #endif \ No newline at end of file