BTRFS: Implement BTree::Path and change _Find.
[haiku.git] / src / apps / poorman / StatusSlider.cpp
blobd8129ea87438d00e6a6961f5c613519b097beaf2
1 /* PoorManView.cpp
3 * Philip Harrison
4 * Started: 5/14/2004
5 * Version: 0.1
6 */
9 #include "StatusSlider.h"
11 #include <MessageFormat.h>
14 StatusSlider::StatusSlider(const char* name, const char* label,
15 const char* statusPrefix, BMessage* message, int32 minValue, int32 maxValue)
17 BSlider(name, label, message, minValue, maxValue, B_HORIZONTAL),
18 fFormat(statusPrefix)
23 const char*
24 StatusSlider::UpdateText() const
26 fStr.Truncate(0);
27 fFormat.Format(fStr, Value());
28 strlcpy(fPattern, fStr.String(), sizeof(fPattern));
29 return fPattern;