xref: /haiku/src/preferences/time/TimeWindow.h (revision fccd8899fcb583bfb73c5c26c9fcd714b963959b)
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 #ifndef _TIME_WINDOW_H
10 #define _TIME_WINDOW_H
11 
12 
13 #include <Window.h>
14 
15 
16 class BMessage;
17 class DateTimeView;
18 class TTimeBaseView;
19 class TimeZoneView;
20 class NetworkTimeView;
21 
22 
23 class TTimeWindow : public BWindow {
24 public:
25 								TTimeWindow();
26 	virtual						~TTimeWindow();
27 
28 	virtual	bool				QuitRequested();
29 	virtual	void				MessageReceived(BMessage* message);
30 
31 private:
32 			void				_InitWindow();
33 			void				_AlignWindow();
34 			void				_SendTimeChangeFinished();
35 			void				_SetRevertStatus();
36 
37 			TTimeBaseView*		fBaseView;
38 			DateTimeView*		fDateTimeView;
39 			TimeZoneView*		fTimeZoneView;
40 			NetworkTimeView*	fNetworkTimeView;
41 			BButton*			fRevertButton;
42 };
43 
44 
45 #endif	// _TIME_WINDOW_H
46 
47