xref: /haiku/src/apps/deskbar/CalendarMenuWindow.h (revision 579f1dbca962a2a03df54f69fdc6e9423f91f20e)
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 
13 class BMessage;
14 class BStringView;
15 
16 namespace BPrivate {
17 	class BCalendarView;
18 }
19 
20 using BPrivate::BCalendarView;
21 
22 class CalendarMenuWindow : public BWindow {
23 public:
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 
31 private:
32 			void				_UpdateDate(const BDate& date);
33 			BButton*			_SetupButton(const char* label, uint32 what,
34 									float height);
35 
36 private:
37 			BStringView*		fYearLabel;
38 			BStringView*		fMonthLabel;
39 			BCalendarView*		fCalendarView;
40 			bool				fSuppressFirstClose;
41 };
42 
43 
44 #endif	/* _CALENDAR_MENU_WINDOW_H_ */
45