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 17 namespace BPrivate { 18 class BCalendarView; 19 } 20 21 using BPrivate::BCalendarView; 22 23 24 class CalendarMenuWindow : public BWindow { 25 public: 26 CalendarMenuWindow(BPoint where); 27 virtual ~CalendarMenuWindow(); 28 29 virtual void Show(); 30 virtual void WindowActivated(bool active); 31 virtual void MessageReceived(BMessage* message); 32 33 private: 34 void _UpdateDate(const BDate& date); 35 BButton* _SetupButton(const char* label, uint32 what, 36 float height); 37 38 private: 39 BStringView* fYearLabel; 40 BStringView* fMonthLabel; 41 BCalendarView* fCalendarView; 42 bool fSuppressFirstClose; 43 }; 44 45 46 #endif // _CALENDAR_MENU_WINDOW_H_ 47