[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdegraphics/kviewshell
From: Dirk Mueller <mueller () kde ! org>
Date: 2005-04-03 23:17:50
Message-ID: 20050403231750.49378636 () office ! kde ! org
[Download RAW message or body]
CVS commit by mueller:
unbreak compilation. optimizing code while touching it.
M +17 -17 length.h 1.2
--- kdegraphics/kviewshell/length.h #1.1:1.2
@@ -10,4 +10,13 @@
#define _length_h_
+#define mm_per_cm 10.0
+#define mm_per_m 1000.0
+#define mm_per_inch 25.4
+#define mm_per_TeXPoint (2540.0/7227.0)
+#define mm_per_bigPoint (25.4/72.0)
+#define mm_per_pica (25.4/6.0)
+#define mm_per_didot (25.4*0.0148)
+#define mm_per_cicero (25.4*0.178)
+
/** Represents a phyical length
@@ -94,23 +103,14 @@ class Length
/** Length in millimeters */
double length_in_mm;
-
-
- // Conversion factors
-
- // Metric units
- static const double mm_per_cm=10.0;
- static const double mm_per_m=1000.0;
-
- // Imperial units
- static const double mm_per_inch=25.4;
-
- // Typographical units
- static const double mm_per_TeXPoint=2540.0/7227.0; // TeX points. 7227points = 254cm
- static const double mm_per_bigPoint=25.4/72.0; // big points, 1/72 inch as used in Postscript
- static const double mm_per_pica=25.4/6.0; // pica = 1/6 inch
- static const double mm_per_didot=25.4*0.0148; // didot points = 0.0148 inches
- static const double mm_per_cicero=25.4*0.178; // cicero points = 0.178 inches
};
+#undef mm_per_cm
+#undef mm_per_m
+#undef mm_per_inch
+#undef mm_per_TeXPoint
+#undef mm_per_bigPoint
+#undef mm_per_pica
+#undef mm_per_didot
+#undef mm_per_cicero
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic