X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Ftime-signature.cc;h=ced6468e8dbba8dcc2d0c042cedc4c924b1ff264;hb=bfeffe647f9dbb6fc9e32769223fe2b02a072d74;hp=a0f26e6c859201fe8431434b7776808f24161b73;hpb=75eebcb49e52d296b1da3e1074e0825d2c780db4;p=lilypond.git diff --git a/lily/time-signature.cc b/lily/time-signature.cc index a0f26e6c85..ced6468e8d 100644 --- a/lily/time-signature.cc +++ b/lily/time-signature.cc @@ -8,11 +8,13 @@ #include "time-signature.hh" -#include "text-interface.hh" -#include "output-def.hh" +#include "grob.hh" #include "font-interface.hh" -#include "warn.hh" +#include "international.hh" +#include "output-def.hh" #include "staff-symbol-referencer.hh" +#include "text-interface.hh" +#include "warn.hh" /* TODO: @@ -53,7 +55,7 @@ Time_signature::print (SCM smob) Stencil Time_signature::special_time_signature (Grob *me, SCM scm_style, int n, int d) { - String style = ly_scm2string (scm_symbol_to_string (scm_style)); + string style = ly_scm2string (scm_symbol_to_string (scm_style)); if (style == "numbered") return numbered_time_signature (me, n, d); @@ -69,7 +71,7 @@ Time_signature::special_time_signature (Grob *me, SCM scm_style, int n, int d) return numbered_time_signature (me, n, d); } - String char_name = style + to_string (n) + to_string (d); + string char_name = style + to_string (n) + to_string (d); me->set_property ("font-encoding", ly_symbol2scm ("fetaMusic")); Stencil out = Font_interface::get_default_font (me) ->find_by_name ("timesig." + char_name); @@ -92,9 +94,9 @@ Time_signature::numbered_time_signature (Grob *me, int num, int den) chain); SCM sn = Text_interface::interpret_markup (me->layout ()->self_scm (), chain, - scm_makfrom0str (to_string (num).to_str0 ())); + scm_makfrom0str (to_string (num).c_str ())); SCM sd = Text_interface::interpret_markup (me->layout ()->self_scm (), chain, - scm_makfrom0str (to_string (den).to_str0 ())); + scm_makfrom0str (to_string (den).c_str ())); Stencil n = *unsmob_stencil (sn); Stencil d = *unsmob_stencil (sd); @@ -118,7 +120,7 @@ Time_signature::numbered_time_signature (Grob *me, int num, int den) return m; } -ADD_INTERFACE (Time_signature, "time-signature-interface", +ADD_INTERFACE (Time_signature, "A time signature, in different styles.\n" " The following values for 'style are are recognized:\n" "\n"