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 using BPrivate::BDate; 22 23 24 class CalendarMenuWindow : public BWindow { 25 public: 26 CalendarMenuWindow(BPoint where, bool euroDate); 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 _UpdateUI(const BDate& date); 35 BButton* _SetupButton(const char* label, uint32 what, float height); 36 37 private: 38 BStringView* fYearLabel; 39 BStringView* fMonthLabel; 40 BCalendarView* fCalendarView; 41 bool fSuppressFirstClose; 42 }; 43 44 45 #endif // _CALENDAR_MENU_WINDOW_H_ 46 47