summaryrefslogtreecommitdiffstats
path: root/kviewshell/zoomlimits.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit47d455dd55be855e4cc691c32f687f723d9247ee (patch)
tree52e236aaa2576bdb3840ebede26619692fed6d7d /kviewshell/zoomlimits.h
downloadtdegraphics-47d455dd55be855e4cc691c32f687f723d9247ee.tar.gz
tdegraphics-47d455dd55be855e4cc691c32f687f723d9247ee.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kviewshell/zoomlimits.h')
-rw-r--r--kviewshell/zoomlimits.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/kviewshell/zoomlimits.h b/kviewshell/zoomlimits.h
new file mode 100644
index 00000000..2458c488
--- /dev/null
+++ b/kviewshell/zoomlimits.h
@@ -0,0 +1,19 @@
+// -*- C++ -*-
+#ifndef ZOOMLIMITS_H
+#define ZOOMLIMITS_H
+
+// Define the maximal and minimal zoom factor which is accepted by
+// the kviewshell. If the user or a configuration file asks for
+// smaller or bigger values, the kviewshell uses either MinZoom or
+// MaxZoom. Implementations of the parts should also use these
+// limits if they whish to implement limits on the allowed zoom
+// factors.
+
+// We use integers which need to be divided by 1000 before use.
+// In this case, this means MinZoom = 0.05 and MaxZoom = 3.
+
+namespace ZoomLimits {
+ enum { MinZoom = 50, MaxZoom = 3000 };
+}
+
+#endif