X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fdefault-bar-line-engraver.cc;h=c5680c3089e8853d8b2764b0440f6c902f22a9e5;hb=2568fc8cab1ae56548490cc8b08934b8d5ac912d;hp=2203faa6d542dfcfc6a67ac00cb7181bb8f53f97;hpb=f2c2c5c43858f323e4708f83fd97e0f38017c275;p=lilypond.git diff --git a/lily/default-bar-line-engraver.cc b/lily/default-bar-line-engraver.cc index 2203faa6d5..c5680c3089 100644 --- a/lily/default-bar-line-engraver.cc +++ b/lily/default-bar-line-engraver.cc @@ -1,9 +1,20 @@ /* - timing-engraver.cc -- implement Default_bar_line_engraver + This file is part of LilyPond, the GNU music typesetter. - source file of the GNU LilyPond music typesetter + Copyright (C) 1997--2010 Han-Wen Nienhuys - (c) 1997--2005 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 + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + LilyPond is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with LilyPond. If not, see . */ #include "engraver.hh" @@ -12,15 +23,14 @@ #include "grob.hh" #include "warn.hh" - class Default_bar_line_engraver : public Engraver { protected: /* Need to know whether we're advancing in grace notes, or not. */ Moment last_moment_; - PRECOMPUTED_VIRTUAL void start_translation_timestep (); - PRECOMPUTED_VIRTUAL void stop_translation_timestep (); + void start_translation_timestep (); + void stop_translation_timestep (); public: TRANSLATOR_DECLARATIONS (Default_bar_line_engraver); @@ -29,16 +39,25 @@ public: #include "translator.icc" ADD_TRANSLATOR (Default_bar_line_engraver, - "This engraver determines what kind of automatic bar lines should be produced, " - "and sets @code{whichBar} accordingly. It should be at the same " - "level as @ref{Timing_translator}. ", - /* creats*/ "", - /* accepts */ "", - /* reads */ - "measurePosition automaticBars whichBar barAlways defaultBarType " - "measureLength", - /* write */ "automaticBars"); - + /* doc */ + "This engraver determines what kind of automatic bar lines" + " should be produced, and sets @code{whichBar} accordingly." + " It should be at the same level as @ref{Timing_translator}.", + + /* create */ + "", + + /* read */ + "automaticBars " + "barAlways " + "defaultBarType " + "measureLength " + "whichBar " + "measurePosition ", + + /* write */ + "automaticBars " + ); Default_bar_line_engraver::Default_bar_line_engraver () {