root/src/apps/poorman/StatusSlider.h
/* StatusSlider.h
 *
 *      Philip Harrison
 *      Started: 5/14/2004
 *      Version: 0.1
 */

#ifndef STATUS_SLIDER
#define STATUS_SLIDER

//#define BEOS_R5_COMPATIBLE

#include <Slider.h>
#include <String.h>
#include <StringFormat.h>


class StatusSlider: public BSlider {
public:
                                                        StatusSlider(const char* name,
                                                                const char* label,
                                                                const char* statusPrefix,
                                                                BMessage* message,
                                                                int32 minValue,
                                                                int32 maxValue);

        virtual const char*     UpdateText() const;

private:
        mutable char                    fPattern[256];
        BStringFormat                   fFormat;
        mutable BString                 fStr;
};

#endif