1 /* 2 * Copyright 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 using BPrivate::BCalendarView; 21 22 23 class CalendarMenuWindow : public BWindow { 24 public: 25 CalendarMenuWindow(BPoint where); 26 virtual ~CalendarMenuWindow(); 27 28 virtual void Show(); 29 virtual void WindowActivated(bool active); 30 virtual void MessageReceived(BMessage* message); 31 32 private: 33 void _UpdateUI(const BDate& date); 34 BButton* _SetupButton(const char* label, uint32 what, 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 46