xref: /haiku/src/preferences/time/TimeWindow.h (revision 25a7b01d15612846f332751841da3579db313082)
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 BTabView;
18 class ClockView;
19 class DateTimeView;
20 class NetworkTimeView;
21 class TimeZoneView;
22 class TTimeBaseView;
23 
24 
25 class TTimeWindow : public BWindow {
26 public:
27 								TTimeWindow();
28 	virtual						~TTimeWindow();
29 
30 	virtual	bool				QuitRequested();
31 	virtual	void				MessageReceived(BMessage* message);
32 
33 private:
34 			void				_InitWindow();
35 			void				_AlignWindow();
36 			void				_SendTimeChangeFinished();
37 			void				_SetRevertStatus();
38 
39 			TTimeBaseView*		fBaseView;
40 
41 			BTabView*			fTabView;
42 			DateTimeView*		fDateTimeView;
43 			TimeZoneView*		fTimeZoneView;
44 			NetworkTimeView*	fNetworkTimeView;
45 			ClockView*			fClockView;
46 
47 			BButton*			fRevertButton;
48 };
49 
50 
51 #endif	// _TIME_WINDOW_H
52 
53