aboutsummaryrefslogtreecommitdiff
path: root/src/ui/logscale.h
diff options
context:
space:
mode:
authorvovanec <vovanec@90c681e8-e032-0410-971d-27865f9a5e38>2008-02-07 13:36:34 +0000
committervovanec <vovanec@90c681e8-e032-0410-971d-27865f9a5e38>2008-02-07 13:36:34 +0000
commit06d1877811fa6aa97dddc0e03bcde4e766928c87 (patch)
treec25462d0e58c3d58c728664440412bf4f16a49ec /src/ui/logscale.h
parent3f6b60f23c44a8ba8dd97ca6f41a16e2af7ef2f7 (diff)
downloadqmmp-06d1877811fa6aa97dddc0e03bcde4e766928c87.tar.gz
qmmp-06d1877811fa6aa97dddc0e03bcde4e766928c87.tar.bz2
qmmp-06d1877811fa6aa97dddc0e03bcde4e766928c87.zip
new directory structure
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@232 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/ui/logscale.h')
-rw-r--r--src/ui/logscale.h31
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