1 /* StatusSlider.h 2 * 3 * Philip Harrison 4 * Started: 5/14/2004 5 * Version: 0.1 6 */ 7 8 #ifndef STATUS_SLIDER 9 #define STATUS_SLIDER 10 11 //#define BEOS_R5_COMPATIBLE 12 13 #include <Slider.h> 14 #include <String.h> 15 #include <StringFormat.h> 16 17 18 class StatusSlider: public BSlider { 19 public: 20 StatusSlider(const char* name, 21 const char* label, 22 const char* statusPrefix, 23 BMessage* message, 24 int32 minValue, 25 int32 maxValue); 26 27 virtual const char* UpdateText() const; 28 29 private: 30 mutable char fPattern[256]; 31 BStringFormat fFormat; 32 mutable BString fStr; 33 }; 34 35 #endif 36