X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fmulti-measure-rest.hh;h=d248bb1034c951b6e65a649ded3fcdd8d77ac36f;hb=e7aa6c445f463844dbaa52d38ea4aac2882b5601;hp=45fc8dddce74e2697269a2ccca41f5de520a38bd;hpb=74e65211d6cda3818a6d4891f1f1c31f457e94cd;p=lilypond.git diff --git a/lily/include/multi-measure-rest.hh b/lily/include/multi-measure-rest.hh index 45fc8dddce..d248bb1034 100644 --- a/lily/include/multi-measure-rest.hh +++ b/lily/include/multi-measure-rest.hh @@ -1,36 +1,45 @@ -/* - multi-measure-rest.hh -- declare Multi_measure_rest - - source file of the GNU LilyPond music typesetter - - (c) 1998--1999 Jan Nieuwenhuizen - - */ +/* + This file is part of LilyPond, the GNU music typesetter. + + Copyright (C) 1998--2014 Jan Nieuwenhuizen + + 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 . +*/ #ifndef MULTI_MEASURE_REST_HH #define MULTI_MEASURE_REST_HH -#include "spanner.hh" -#include "staff-symbol-referencer.hh" +#include "grob-interface.hh" +#include "rod.hh" -class Multi_measure_rest : public Spanner, public Staff_symbol_referencer +class Multi_measure_rest { public: - Multi_measure_rest (); - int measures_i_; - void add_column (Item*); - - Link_array column_arr_; - -protected: - virtual Molecule *do_brew_molecule_p () const; - VIRTUAL_COPY_CONS (Score_element); - - virtual void do_add_processing (); - virtual void do_post_processing (); - virtual void do_print () const; - virtual Array get_rods () const; - virtual void do_substitute_element_pointer (Score_element*,Score_element*); + DECLARE_GROB_INTERFACE (); + DECLARE_SCHEME_CALLBACK (print, (SCM)); + DECLARE_SCHEME_CALLBACK (height, (SCM)); + DECLARE_SCHEME_CALLBACK (percent, (SCM)); + static void add_column (Grob *, Item *); + DECLARE_SCHEME_CALLBACK (set_spacing_rods, (SCM)); + DECLARE_SCHEME_CALLBACK (set_text_rods, (SCM)); + DECLARE_SCHEME_CALLBACK (centered_stencil, (SCM)); + + static void calculate_spacing_rods (Grob *me, Real length); + static Stencil big_rest (Grob *, Real); + static Stencil symbol_stencil (Grob *, Real); + static Stencil church_rest (Grob *, Font_metric *, int, Real); + static Interval bar_width (Spanner *me); }; #endif /* MULTI_MEASURE_REST_HH */