/* * Copyright 2004-2011, Haiku, Inc. All Rights Reserved. * Distributed under the terms of the MIT License. * * Authors: * Andrew McCall * Mike Berg * Julun * Philippe Saint-Pierre * Hamish Morrison */ #ifndef _DATE_TIME_VIEW_H #define _DATE_TIME_VIEW_H #include class TDateEdit; class TTimeEdit; class TAnalogClock; namespace BPrivate { class BCalendarView; } using BPrivate::BCalendarView; class DateTimeView : public BGroupView { public: DateTimeView(const char* name); virtual ~DateTimeView(); virtual void AttachedToWindow(); virtual void MessageReceived(BMessage* message); bool CheckCanRevert(); private: void _InitView(); void _UpdateDateTime(BMessage* message); void _Revert(); time_t _PrefletUptime() const; TDateEdit* fDateEdit; TTimeEdit* fTimeEdit; BCalendarView* fCalendarView; TAnalogClock* fClock; bool fInitialized; time_t fTimeAtStart; bigtime_t fSystemTimeAtStart; }; #endif // _DATE_TIME_VIEW_H