1 /* 2 * Copyright 2004-2007, 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 * Mike Berg <mike@berg-net.us> 8 * Julun <host.haiku@gmx.de> 9 * 10 */ 11 #ifndef TTZDISPLAY_H 12 #define TTZDISPLAY_H 13 14 15 #include <View.h> 16 #include <String.h> 17 18 19 class TTZDisplay : public BView { 20 public: 21 TTZDisplay(BRect frame, const char *name, const char *label); 22 virtual ~TTZDisplay(); 23 24 virtual void AttachedToWindow(); 25 virtual void ResizeToPreferred(); 26 virtual void Draw(BRect updateRect); 27 28 const char* Label() const; 29 void SetLabel(const char *label); 30 31 const char* Text() const; 32 void SetText(const char *text); 33 34 const char* Time() const; 35 void SetTime(int32 hour, int32 minute); 36 37 private: 38 BString fLabel; 39 BString fText; 40 BString fTime; 41 42 }; 43 44 #endif // TTZDISPLAY_H 45 46