]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/volta-spanner.cc
release: 1.1.28
[lilypond.git] / lily / volta-spanner.cc
index 5197b235847b2c19a7080fd682b2fedde1fb7b95..970e2839d75f42a2f9708d112c968761e4d038d9 100644 (file)
@@ -6,7 +6,7 @@
   (c)  1997--1998 Jan Nieuwenhuizen <janneke@gnu.org>
 */
 
-#include "atom.hh"
+
 #include "box.hh"
 #include "debug.hh"
 #include "lookup.hh"
@@ -22,7 +22,6 @@
 
 template class P<Text_def>;            // 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