xref: /haiku/src/preferences/time/TZDisplay.h (revision 93aeb8c3bc3f13cb1f282e3e749258a23790d947)
1 #ifndef TTZDISPLAY_H
2 #define TTZDISPLAY_H
3 
4 #include <View.h>
5 
6 class TTZDisplay: public BView
7 {
8 	public:
9 		TTZDisplay(BRect frame, const char *name, uint32 resizing, uint32 flags,
10 				const char *label = B_EMPTY_STRING,
11 				const char *name = B_EMPTY_STRING,
12 				int32 hour = 0, int32 minute = 0);
13 		~TTZDisplay();
14 		virtual void AttachedToWindow();
15 		virtual void MessageReceived(BMessage *message);
16 		virtual void ResizeToPreferred();
17 
18 		virtual void Draw(BRect);
19 
20 		virtual void SetLabel(const char *label);
21 		virtual void SetText(const char *text);
22 		virtual void SetTo(int32 hour, int32 minute);
23 
24 		virtual const char *Label() const;
25 		virtual const char *Text() const;
26 		virtual const char *Time() const;
27 	private:
28 		BString *f_label;
29 		BString *f_text;
30 		BString *f_time;
31 
32 };
33 
34 #endif //TTZDISPLAY_H
35