]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/piano-pedal-bracket.cc
Run `make grand-replace'.
[lilypond.git] / lily / piano-pedal-bracket.cc
index d11e670e78fbdd8e19ba743fc6fa89b9fa7a5b83..75771247ff9742bb2faebbdeeb41a00e80a68ac2 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 2003--2005 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  (c) 2003--2008 Han-Wen Nienhuys <hanwen@xs4all.nl>
 */
 
 #include "stencil.hh"
@@ -14,7 +14,7 @@
 struct Piano_pedal_bracket
 {
   DECLARE_SCHEME_CALLBACK (print, (SCM));
-  static bool has_interface (Grob *);
+  DECLARE_GROB_INTERFACE ();
 };
 
 MAKE_SCHEME_CALLBACK (Piano_pedal_bracket, print, 1);
@@ -22,7 +22,7 @@ SCM
 Piano_pedal_bracket::print (SCM smob)
 {
   Spanner *me = dynamic_cast<Spanner *> (unsmob_grob (smob));
-  Spanner *orig = dynamic_cast<Spanner *> (me->original_);
+  Spanner *orig = dynamic_cast<Spanner *> (me->original ());
 
   Drul_array<bool> broken (false, false);
   Drul_array<Real> height = robust_scm2drul
@@ -48,7 +48,8 @@ Piano_pedal_bracket::print (SCM smob)
       if (broken[d])
        {
          if (orig
-             && ((d == RIGHT && me->get_break_index () != orig->broken_intos_.size () - 1)
+             && ((d == RIGHT
+                  && me->get_break_index () != orig->broken_intos_.size () - 1)
                  || (d == LEFT && me->get_break_index ())))
            height[d] = 0.0;
          else
@@ -88,7 +89,14 @@ Piano_pedal_bracket::print (SCM smob)
   return m.smobbed_copy ();
 }
 
-ADD_INTERFACE (Piano_pedal_bracket, "piano-pedal-bracket-interface",
-              "The bracket of the piano pedal.  It can be tuned through the regular "
-              "bracket properties.",
-              "bound-padding edge-height shorten-pair bracket-flare pedal-text");
+ADD_INTERFACE (Piano_pedal_bracket,
+              "The bracket of the piano pedal.  It can be tuned through"
+              " the regular bracket properties.",
+
+              /* properties */
+              "bound-padding "
+              "edge-height "
+              "shorten-pair "
+              "bracket-flare "
+              "pedal-text "
+              );