]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/glissando-engraver.cc
Fix some bugs in the dynamic engraver and PostScript backend
[lilypond.git] / lily / glissando-engraver.cc
index 7f4f1823bd869145d186addffdfc0a5a2a2a3b6c..f5b0527bd170350bc634cb14a51d5bd64828636c 100644 (file)
@@ -3,13 +3,14 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 2000--2005 Jan Nieuwenhuizen <janneke@gnu.org>
+  (c) 2000--2006 Jan Nieuwenhuizen <janneke@gnu.org>
 */
 
-#include "warn.hh"
-#include "spanner.hh"
-#include "rhythmic-head.hh"
 #include "engraver.hh"
+#include "international.hh"
+#include "rhythmic-head.hh"
+#include "spanner.hh"
+#include "warn.hh"
 
 /**
    Create line-spanner grobs for glissandi lines that connect note
@@ -21,11 +22,12 @@ public:
   TRANSLATOR_DECLARATIONS (Glissando_engraver);
 
 protected:
-  DECLARE_ACKNOWLEDGER(rhythmic_head);
+  DECLARE_ACKNOWLEDGER (rhythmic_head);
   virtual void finalize ();
-  PRECOMPUTED_VIRTUAL void stop_translation_timestep ();
   virtual bool try_music (Music *);
-  PRECOMPUTED_VIRTUAL void process_music ();
+
+  void stop_translation_timestep ();
+  void process_music ();
 private:
   Spanner *line_;
   Spanner *last_line_;
@@ -53,9 +55,7 @@ void
 Glissando_engraver::process_music ()
 {
   if (event_)
-    {
-      line_ = make_spanner ("Glissando", event_->self_scm ());
-    }
+    line_ = make_spanner ("Glissando", event_->self_scm ());
 }
 
 void
@@ -73,9 +73,7 @@ void
 Glissando_engraver::stop_translation_timestep ()
 {
   if (last_line_ && last_line_->get_bound (RIGHT))
-    {
-      last_line_ = 0;
-    }
+    last_line_ = 0;
   if (line_)
     {
       if (last_line_)
@@ -91,7 +89,7 @@ Glissando_engraver::finalize ()
 {
   if (line_)
     {
-      String msg = _ ("unterminated glissando");
+      string msg = _ ("unterminated glissando");
 
       if (event_)
        event_->origin ()->warning (msg);
@@ -105,10 +103,10 @@ Glissando_engraver::finalize ()
 
 #include "translator.icc"
 
-ADD_ACKNOWLEDGER(Glissando_engraver,rhythmic_head);
+ADD_ACKNOWLEDGER (Glissando_engraver, rhythmic_head);
 ADD_TRANSLATOR (Glissando_engraver,
-               /* descr */ "Engrave a glissandi",
-               /* creats*/ "Glissando",
-               /* accepts */ "glissando-event",
-               /* reads */ "followVoice",
+               /* doc */ "Engrave a glissandi",
+               /* creat*/ "Glissando",
+               /* accept */ "glissando-event",
+               /* read */ "followVoice",
                /* write */ "");