xref: /haiku/src/preferences/time/ClockView.h (revision 25a7b01d15612846f332751841da3579db313082)
1 /*
2  * Copyright 2004-2011, Haiku, Inc. All Rights Reserved.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		John Scipione <jscipione@gmail.com>
7  */
8 #ifndef _CLOCK_VIEW_H
9 #define _CLOCK_VIEW_H
10 
11 
12 #include <View.h>
13 
14 
15 class BCheckBox;
16 class BRadioButton;
17 
18 
19 class ClockView : public BView {
20 public:
21 								ClockView(const char* name);
22 	virtual 					~ClockView();
23 
24 	virtual	void			 	AttachedToWindow();
25 	virtual	void 				MessageReceived(BMessage* message);
26 
27 			bool				CheckCanRevert();
28 
29 private:
30 			void				_Revert();
31 
32 			BCheckBox*			fShowClock;
33 			BCheckBox*			fShowSeconds;
34 			BCheckBox*			fShowDayOfWeek;
35 			BCheckBox*			fShowTimeZone;
36 
37 			int32				fCachedShowClock;
38 			int32				fCachedShowSeconds;
39 			int32				fCachedShowDayOfWeek;
40 			int32				fCachedShowTimeZone;
41 };
42 
43 
44 #endif	// _CLOCK_VIEW_H
45