1 /* 2 * Copyright 2004-2010, Haiku, Inc. All Rights Reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Andrew McCall <mccall@@digitalparadise.co.uk> 7 * Julun <host.haiku@gmx.de> 8 * 9 */ 10 #ifndef _TIME_WINDOW_H 11 #define _TIME_WINDOW_H 12 13 14 #include <Window.h> 15 16 17 class BMessage; 18 class DateTimeView; 19 class TTimeBaseView; 20 class TimeZoneView; 21 22 23 class TTimeWindow : public BWindow { 24 public: 25 TTimeWindow(BRect rect); 26 virtual ~TTimeWindow(); 27 28 virtual bool QuitRequested(); 29 virtual void MessageReceived(BMessage* message); 30 void SetRevertStatus(); 31 32 private: 33 void _InitWindow(); 34 void _AlignWindow(); 35 36 void _SendTimeChangeFinished(); 37 38 private: 39 TTimeBaseView* fBaseView; 40 DateTimeView* fDateTimeView; 41 TimeZoneView* fTimeZoneView; 42 BButton* fRevertButton; 43 }; 44 45 46 #endif // _TIME_WINDOW_H 47 48