]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/slash-repeat-engraver.cc
Web-ja: update introduction
[lilypond.git] / lily / slash-repeat-engraver.cc
index a6b3faa56c42c76e3a9ad0d24b5fe66ddaa95f81..aa80c2e2e544afc7e69330a5e10a09ace6ea37d1 100644 (file)
@@ -1,7 +1,7 @@
 /*
   This file is part of LilyPond, the GNU music typesetter.
 
-  Copyright (C) 2000--2014 Han-Wen Nienhuys <hanwen@xs4all.nl>, Erik Sandberg
+  Copyright (C) 2000--2015 Han-Wen Nienhuys <hanwen@xs4all.nl>, Erik Sandberg
   <mandolaerik@gmail.com>
 
   LilyPond is free software: you can redistribute it and/or modify
@@ -35,16 +35,16 @@ public:
 protected:
   Stream_event *slash_;
 protected:
-  DECLARE_TRANSLATOR_LISTENER (repeat_slash);
+  void listen_repeat_slash (Stream_event *);
   void process_music ();
 };
 
-Slash_repeat_engraver::Slash_repeat_engraver ()
+Slash_repeat_engraver::Slash_repeat_engraver (Context *c)
+  : Engraver (c)
 {
   slash_ = 0;
 }
 
-IMPLEMENT_TRANSLATOR_LISTENER (Slash_repeat_engraver, repeat_slash);
 void
 Slash_repeat_engraver::listen_repeat_slash (Stream_event *ev)
 {
@@ -65,6 +65,12 @@ Slash_repeat_engraver::process_music ()
     }
 }
 
+void
+Slash_repeat_engraver::boot ()
+{
+  ADD_LISTENER (Slash_repeat_engraver, repeat_slash);
+}
+
 ADD_TRANSLATOR (Slash_repeat_engraver,
                 /* doc */
                 "Make beat repeats.",