xref: /haiku/src/apps/poorman/StatusSlider.h (revision 4bd0c1066b227cec4b79883bdef697c7a27f2e90)
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 <MessageFormat.h>
14 #include <Slider.h>
15 #include <String.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 	BMessageFormat			fFormat;
32 	mutable	BString			fStr;
33 };
34 
35 #endif
36