Add setters to BDate and BCalendarView

* BDate setters don't perform any validation, use with caution.
* BCalendarView setters do perform validation checks, and will adjust
the day so it fits the requested month or year.
* Add tests for the BCalendarView setters.
This commit is contained in:
Adrien Destugues
2014-09-30 15:38:24 +02:00
parent 526d483999
commit afd5ec11d2
7 changed files with 184 additions and 1 deletions
+4
View File
@@ -119,6 +119,10 @@ public:
int32 Month() const;
int32 Difference(const BDate& date) const;
void SetDay(int32 day);
void SetMonth(int32 month);
void SetYear(int32 year);
int32 DayOfWeek() const;
int32 DayOfYear() const;