diff options
Diffstat (limited to 'src/ui/logscale.h')
| -rw-r--r-- | src/ui/logscale.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/ui/logscale.h b/src/ui/logscale.h new file mode 100644 index 000000000..d74d25207 --- /dev/null +++ b/src/ui/logscale.h @@ -0,0 +1,31 @@ +// Copyright (c) 2000-2001 Brad Hughes <bhughes@trolltech.com> +// +// Use, modification and distribution is allowed without limitation, +// warranty, or liability of any kind. +// + +#ifndef __logscale_h +#define __logscale_h + + +class LogScale +{ +public: + LogScale(int = 0, int = 0); + ~LogScale(); + + int scale() const { return s; } + int range() const { return r; } + + void setMax(int, int); + + int operator[](int); + + +private: + int *indices; + int s, r; +}; + + +#endif // __logscale_h |
