00001 #ifndef __FLTSTPR_H_INCLUDED__
00002 #define __FLTSTPR_H_INCLUDED__
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040 class TEvent;
00041 class TRect;
00042 class WatcherList;
00043
00044 #define Uses_TInputLine
00045
00046 #include <watchble.h>
00047
00048 #include <tvision\tv.h>
00049
00050
00051 namespace Monitor {
00052 namespace Utility {
00053
00054
00055
00059 class FloatStepper : public Watchable, public TInputLine
00060 {
00061 public:
00065 FloatStepper(const TRect& newBounds,
00066 int newMaxLen,
00067 const char *newFormat,
00068 const float newDisplayScaler = 1.0);
00069
00073 virtual ~FloatStepper();
00074
00075
00079 void
00080 setState(ushort aState, Boolean enable);
00081
00085 virtual void
00086 handleEvent(TEvent& event);
00087
00093 void
00094 setScaler(const float newDisplayScaler);
00095
00100 void
00101 displayValue();
00102
00108 virtual void
00109 getData(void *rec);
00110
00116 virtual void
00117 setData(void *rec);
00118
00119
00120 private:
00124 float value;
00128 const char *format;
00132 float displayScaler;
00133
00137 float
00138 getValue() {return value;}
00139
00147 int
00148 setValue(float newValue);
00149
00157 void
00158 changeValue(float newValue);
00159
00165 void
00166 readValue();
00167 };
00168
00169 };
00170 };
00171
00172 #endif // __FLTSTPR_H_INCLUDED__