X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Ftab-tie-follow-engraver.cc;h=75a7b5b2ea710bd42ec5283eb7b8de6549045e30;hb=5d84bfad4626892bcffd05adcced53c8a2329047;hp=bbe5fca91e59950c7976b5dbf66b5a1c0252a7ea;hpb=f4abbfff5f0d985a457e15586dbcc3ae473b0dee;p=lilypond.git diff --git a/lily/tab-tie-follow-engraver.cc b/lily/tab-tie-follow-engraver.cc index bbe5fca91e..75a7b5b2ea 100644 --- a/lily/tab-tie-follow-engraver.cc +++ b/lily/tab-tie-follow-engraver.cc @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 2010--2014 Carl D. Sorensen + Copyright (C) 2010--2015 Carl D. Sorensen LilyPond is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -44,14 +44,15 @@ public: TRANSLATOR_DECLARATIONS (Tab_tie_follow_engraver); protected: - DECLARE_ACKNOWLEDGER (glissando); - DECLARE_ACKNOWLEDGER (slur); - DECLARE_ACKNOWLEDGER (tab_note_head); + void acknowledge_glissando (Grob_info); + void acknowledge_slur (Grob_info); + void acknowledge_tab_note_head (Grob_info); void stop_translation_timestep (); }; -Tab_tie_follow_engraver::Tab_tie_follow_engraver () +Tab_tie_follow_engraver::Tab_tie_follow_engraver (Context *c) + : Engraver (c) { } @@ -85,7 +86,7 @@ Tab_tie_follow_engraver::stop_translation_timestep () if (left_item) { SCM left_cause = left_item->get_property ("cause"); - Item *slur_cause = Item::unsmob (left_cause); + Item *slur_cause = unsmob (left_cause); if (slur_cause == note_heads_[k]) { note_heads_[k]->set_property ("span-start", SCM_BOOL_T); @@ -110,9 +111,14 @@ Tab_tie_follow_engraver::stop_translation_timestep () note_heads_.clear (); } -ADD_ACKNOWLEDGER (Tab_tie_follow_engraver, slur); -ADD_ACKNOWLEDGER (Tab_tie_follow_engraver, glissando); -ADD_ACKNOWLEDGER (Tab_tie_follow_engraver, tab_note_head); + +void +Tab_tie_follow_engraver::boot () +{ + ADD_ACKNOWLEDGER (Tab_tie_follow_engraver, slur); + ADD_ACKNOWLEDGER (Tab_tie_follow_engraver, glissando); + ADD_ACKNOWLEDGER (Tab_tie_follow_engraver, tab_note_head); +} ADD_TRANSLATOR (Tab_tie_follow_engraver, /* doc */