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
+5 -1
View File
@@ -79,8 +79,12 @@ public:
virtual BSize PreferredSize();
int32 Day() const;
int32 Year() const;
int32 Month() const;
int32 Year() const;
bool SetDay(int32 day);
bool SetMonth(int32 month);
bool SetYear(int32 year);
BDate Date() const;
bool SetDate(const BDate& date);