]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/breathing-sign-engraver.cc
Imported Upstream version 2.19.45
[lilypond.git] / lily / breathing-sign-engraver.cc
index ff646845462f6543954d89958d9b4c8425ff0eb7..ade1b15f297ea1dd4f32a1bfc1437c51fce8935e 100644 (file)
@@ -1,7 +1,7 @@
 /*
   This file is part of LilyPond, the GNU music typesetter.
 
-  Copyright (C) 1999--2012 Michael Krause
+  Copyright (C) 1999--2015 Michael Krause
 
   written for the GNU LilyPond music typesetter
 
@@ -39,7 +39,7 @@ protected:
   void process_music ();
   void stop_translation_timestep ();
 
-  DECLARE_TRANSLATOR_LISTENER (breathing);
+  void listen_breathing (Stream_event *);
 private:
   Stream_event *breathing_sign_event_;
   Grob *breathing_sign_;
@@ -51,7 +51,6 @@ Breathing_sign_engraver::Breathing_sign_engraver ()
   breathing_sign_event_ = 0;
 }
 
-IMPLEMENT_TRANSLATOR_LISTENER (Breathing_sign_engraver, breathing);
 void
 Breathing_sign_engraver::listen_breathing (Stream_event *ev)
 {
@@ -74,6 +73,12 @@ Breathing_sign_engraver::stop_translation_timestep ()
   breathing_sign_event_ = 0;
 }
 
+void
+Breathing_sign_engraver::boot ()
+{
+  ADD_LISTENER (Breathing_sign_engraver, breathing);
+}
+
 ADD_TRANSLATOR (Breathing_sign_engraver,
                 /* doc */
                 "Create a breathing sign.",