]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/measure-grouping-spanner.cc
Run grand replace for 2015.
[lilypond.git] / lily / measure-grouping-spanner.cc
index 5bb983d37f8e0dd6e1ea003622d2d32a01c68390..ab1618a37d2f467436ddba60f474329a6d890d74 100644 (file)
@@ -1,9 +1,20 @@
 /*
-  measure-grouping-spanner.cc -- implement Measure_grouping
+  This file is part of LilyPond, the GNU music typesetter.
 
-  source file of the GNU LilyPond music typesetter
+  Copyright (C) 2002--2015 Han-Wen Nienhuys <hanwen@xs4all.nl>
 
-  (c) 2002--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  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 <http://www.gnu.org/licenses/>.
 */
 
 #include "measure-grouping-spanner.hh"
@@ -18,17 +29,17 @@ MAKE_SCHEME_CALLBACK (Measure_grouping, print, 1);
 SCM
 Measure_grouping::print (SCM grob)
 {
-  Spanner *me = dynamic_cast<Spanner *> (unsmob_grob (grob));
+  Spanner *me = dynamic_cast<Spanner *> (Grob::unsmob (grob));
 
   SCM which = me->get_property ("style");
   Real height = robust_scm2double (me->get_property ("height"), 1);
 
   Real t = Staff_symbol_referencer::line_thickness (me) * robust_scm2double (me->get_property ("thickness"), 1);
   Grob *common = me->get_bound (LEFT)->common_refpoint (me->get_bound (RIGHT),
-                                                       X_AXIS);
+                                                        X_AXIS);
 
   Real right_point = robust_relative_extent (me->get_bound (RIGHT),
-                                            common, X_AXIS).linear_combination (CENTER);
+                                             common, X_AXIS).linear_combination (CENTER);
   Real left_point = me->get_bound (LEFT)->relative_coordinate (common, X_AXIS);
 
   Interval iv (left_point, right_point);
@@ -47,8 +58,13 @@ Measure_grouping::print (SCM grob)
   return m.smobbed_copy ();
 }
 
-ADD_INTERFACE (Measure_grouping, "measure-grouping-interface",
-              "This object indicates groups of beats. "
-              "Valid choices for @code{style} are @code{bracket} and @code{triangle}.",
-              "thickness style height");
+ADD_INTERFACE (Measure_grouping,
+               "This object indicates groups of beats.  Valid choices for"
+               " @code{style} are @code{bracket} and @code{triangle}.",
+
+               /* properties */
+               "thickness "
+               "style "
+               "height "
+              );