]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/percent-repeat-item.cc
Again update of texinfo files from CVS.
[lilypond.git] / lily / percent-repeat-item.cc
index f3d81ba5434ce9cde5939a32bbe2b29b0bf9beef..b0c86c45b46060154ffd6f8af538cb82d69940fb 100644 (file)
@@ -3,14 +3,11 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 2001--2005  Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 2001--2007  Han-Wen Nienhuys <hanwen@xs4all.nl>
 */
 
 #include "percent-repeat-item.hh"
-
-#include <cmath>
-using namespace std;
-
+#include "item.hh"
 #include "lookup.hh"
 #include "font-interface.hh"
 
@@ -41,14 +38,14 @@ Percent_repeat_item_interface::x_percent (Grob *me, int count,
   Stencil s = brew_slash (me);
 
   for (int i = count; i--;)
-    m.add_at_edge (X_AXIS, RIGHT, s, -slash_neg_kern, 0);
+    m.add_at_edge (X_AXIS, RIGHT, s, -slash_neg_kern);
   Stencil d1 = Font_interface::get_default_font (me)->find_by_name ("dots.dot");
   Stencil d2 = d1;
   d1.translate_axis (0.5, Y_AXIS);
   d2.translate_axis (-0.5, Y_AXIS);
 
-  m.add_at_edge (X_AXIS, LEFT, d1, -dot_neg_kern, 0);
-  m.add_at_edge (X_AXIS, RIGHT, d2, -dot_neg_kern, 0);
+  m.add_at_edge (X_AXIS, LEFT, d1, -dot_neg_kern);
+  m.add_at_edge (X_AXIS, RIGHT, d2, -dot_neg_kern);
 
   return m;
 }
@@ -73,7 +70,11 @@ Percent_repeat_item_interface::beat_slash (SCM grob)
   return m.smobbed_copy ();
 }
 
-ADD_INTERFACE (Percent_repeat_item_interface, "percent-repeat-interface",
-              "Repeats that look like percent signs",
-              "slope thickness");
+ADD_INTERFACE (Percent_repeat_item_interface,
+              "Repeats that look like percent signs.",
+              
+              /* properties */
+              "slope "
+              "thickness "
+              );