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 * Mike Berg <mike@berg-net.us> 8 * Julun <host.haiku@gmx.de> 9 * 10 */ 11 #ifndef _TZ_DISPLAY_H 12 #define _TZ_DISPLAY_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, 22 const char* label); 23 virtual ~TTZDisplay(); 24 25 virtual void AttachedToWindow(); 26 virtual void ResizeToPreferred(); 27 virtual void Draw(BRect updateRect); 28 29 const char* Label() const; 30 void SetLabel(const char* label); 31 32 const char* Text() const; 33 void SetText(const char* text); 34 35 const char* Time() const; 36 void SetTime(const char* time); 37 38 private: 39 BString fLabel; 40 BString fText; 41 BString fTime; 42 }; 43 44 45 #endif // _TZ_DISPLAY_H 46 47