X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fvolta-spanner.cc;h=970e2839d75f42a2f9708d112c968761e4d038d9;hb=622b379cd71af8dde94f68135a489b2536309e6f;hp=5197b235847b2c19a7080fd682b2fedde1fb7b95;hpb=44d3318feb59f81439c0edc5116ae61fe407c226;p=lilypond.git diff --git a/lily/volta-spanner.cc b/lily/volta-spanner.cc index 5197b23584..970e2839d7 100644 --- a/lily/volta-spanner.cc +++ b/lily/volta-spanner.cc @@ -6,7 +6,7 @@ (c) 1997--1998 Jan Nieuwenhuizen */ -#include "atom.hh" + #include "box.hh" #include "debug.hh" #include "lookup.hh" @@ -22,7 +22,6 @@ template class P; // UGH - Volta_spanner::Volta_spanner () { last_b_ = false; @@ -45,9 +44,9 @@ Volta_spanner::do_brew_molecule_p () const Real internote_f = paper ()->internote_f (); Real dx = internote_f; Real w = extent (X_AXIS).length () - dx; - Atom volta (lookup_l ()->volta (w, last_b_)); + Molecule volta (lookup_l ()->volta (w, last_b_)); Real h = volta.dim_.y ().length (); - Atom num (number_p_->get_atom (paper (), LEFT)); + Molecule num (number_p_->get_molecule (paper (), LEFT)); Real dy = column_arr_.top ()->extent (Y_AXIS) [UP] > column_arr_[0]->extent (Y_AXIS) [UP]; dy += 2 * h; @@ -62,13 +61,13 @@ Volta_spanner::do_brew_molecule_p () const Text_def two_text; two_text.text_str_ = "2"; two_text.style_str_ = number_p_->style_str_; - Atom two (two_text.get_atom(paper (), LEFT)); + Molecule two (two_text.get_molecule (paper (), LEFT)); Real gap = two.dim_.x ().length () / 2; Offset off (num.dim_.x ().length () + gap, h / internote_f - gap); num.translate (off); - mol_p->add_atom (volta); - mol_p->add_atom (num); + mol_p->add_molecule (volta); + mol_p->add_molecule (num); mol_p->translate (Offset (0, dy)); return mol_p; } @@ -82,7 +81,7 @@ Volta_spanner::do_add_processing () set_bounds (RIGHT, column_arr_.top ()); } - number_p_->style_str_ = "number-1"; + number_p_->style_str_ = "number"; // number-1 } Interval