X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fdots-engraver.cc;h=eb0f48722637577644b3274ce7c03e0747233fc8;hb=4d405ef96a8a62771d7d9a283ff5369a772e89d8;hp=2efd2215b861ea4213f2d708869f35e6cb1b2c14;hpb=f5e923a6ce8cebb7ef893c03ce56aa5e598002c9;p=lilypond.git diff --git a/lily/dots-engraver.cc b/lily/dots-engraver.cc index 2efd2215b8..eb0f487226 100644 --- a/lily/dots-engraver.cc +++ b/lily/dots-engraver.cc @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 2006--2014 Han-Wen Nienhuys + Copyright (C) 2006--2015 Han-Wen Nienhuys LilyPond is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -27,11 +27,12 @@ class Dots_engraver : public Engraver { - DECLARE_ACKNOWLEDGER (rhythmic_head); + void acknowledge_rhythmic_head (Grob_info); TRANSLATOR_DECLARATIONS (Dots_engraver); }; -Dots_engraver::Dots_engraver () +Dots_engraver::Dots_engraver (Context *c) + : Engraver (c) { } @@ -43,10 +44,10 @@ Dots_engraver::acknowledge_rhythmic_head (Grob_info gi) return; Grob *note = gi.grob (); - if (Grob::is_smob (note->get_object ("dot"))) + if (unsmob (note->get_object ("dot"))) return; - Duration *dur = Duration::unsmob (cause->get_property ("duration")); + Duration *dur = unsmob (cause->get_property ("duration")); if (dur && dur->dot_count ()) { Item *d = make_item ("Dots", note->self_scm ()); @@ -56,7 +57,12 @@ Dots_engraver::acknowledge_rhythmic_head (Grob_info gi) } } -ADD_ACKNOWLEDGER (Dots_engraver, rhythmic_head); + +void +Dots_engraver::boot () +{ + ADD_ACKNOWLEDGER (Dots_engraver, rhythmic_head); +} ADD_TRANSLATOR (Dots_engraver, "Create @ref{Dots} objects for"