xref: /haiku/src/preferences/time/BaseView.h (revision 1b8f7f13a3dc70e0e903cb94248220b40b732204)
1 /*
2  * Copyright 2004-2007, Haiku, Inc. All Rights Reserved.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Mike Berg (inseculous)
7  *		Julun <host.haiku@gmx.de>
8  */
9 #ifndef TIMEBASE_H
10 #define TIMEBASE_H
11 
12 
13 #include <View.h>
14 #include <Message.h>
15 
16 
17 class TTimeBaseView: public BView {
18 	public:
19 						TTimeBaseView(BRect frame, const char *name);
20 		virtual 		~TTimeBaseView();
21 
22 		virtual void 	Pulse();
23 		virtual void 	AttachedToWindow();
24 
25 		void 			SetGMTime(bool gmtTime);
26 		void 			ChangeTime(BMessage *message);
27 
28 	protected:
29 		virtual void 	DispatchMessage();
30 
31 	private:
32 		bool 			fIsGMT;
33 		BMessage 		fMessage;
34 };
35 
36 #endif	// TIMEBASE_H
37 
38