1/*
2 * Copyright 2008 Karsten Heimrich, host.haiku@gmx.de. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
5#ifndef _CALENDAR_MENU_WINDOW_H_
6#define _CALENDAR_MENU_WINDOW_H_
7
8
9#include <DateTime.h>
10#include <Window.h>
11
12
13class BMessage;
14class BStringView;
15
16namespace BPrivate {
17	class BCalendarView;
18}
19
20using BPrivate::BCalendarView;
21
22class CalendarMenuWindow : public BWindow {
23public:
24								CalendarMenuWindow(BPoint where);
25	virtual						~CalendarMenuWindow();
26
27	virtual void				Show();
28	virtual void				WindowActivated(bool active);
29	virtual void				MessageReceived(BMessage* message);
30
31private:
32			void				_UpdateDate(const BDate& date);
33			BButton*			_SetupButton(const char* label, uint32 what,
34									float height);
35
36private:
37			BStringView*		fYearLabel;
38			BStringView*		fMonthLabel;
39			BCalendarView*		fCalendarView;
40			bool				fSuppressFirstClose;
41};
42
43
44#endif	/* _CALENDAR_MENU_WINDOW_H_ */
45