xref: /haiku/src/apps/poorman/StatusSlider.cpp (revision e53f0019b57484c9fe0b24371d9c8520b52af57d)
1 /* PoorManView.cpp
2  *
3  *	Philip Harrison
4  *	Started: 5/14/2004
5  *	Version: 0.1
6  */
7 
8 
9 #include "StatusSlider.h"
10 
11 #include <stdio.h>
12 
13 
14 StatusSlider::StatusSlider(const char* name, const char* label,
15 	char* statusPrefix, BMessage* message, int32 minValue, int32 maxValue)
16 	:
17 	BSlider(name, label, message, minValue, maxValue, B_HORIZONTAL),
18 	fStatusPrefix(statusPrefix)
19 {
20 	fTemp = fStr;
21 }
22 
23 const char*
24 StatusSlider::UpdateText() const
25 {
26 	sprintf(fTemp, "%ld %s", Value(), fStatusPrefix);
27 
28 	return fTemp;
29 }
30