]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.32
authorfred <fred>
Sun, 24 Mar 2002 19:31:43 +0000 (19:31 +0000)
committerfred <fred>
Sun, 24 Mar 2002 19:31:43 +0000 (19:31 +0000)
src/localkeyitem.cc

index fb288b76a7d2cb0bba3c054a531de4425980f40e..77bad62b2ebc409cc3c63f18d066c155dceb14fb 100644 (file)
@@ -3,24 +3,28 @@
 #include "scalar.hh"
 #include "lookup.hh"
 #include "paperdef.hh"
-#include "request.hh"
+#include "musicalrequest.hh"
 #include "notehead.hh"
+#include "misc.hh"
 
 NAME_METHOD(Local_key_item);
+
 Local_key_item::Local_key_item(int i)
 {
     c0_position  = i;
 }
+
 void
 Local_key_item::add(Item*head_l)
 {
-    group.push(head_l);
+    support_items_.push(head_l);
     add_depedency(head_l);
 }
+
 void
 Local_key_item::add(Melodic_req*m_l)
 {
-    add(m_l->octave, m_l->notename, m_l->accidental);
+    add(m_l->octave_i_, m_l->notename_i_, m_l->accidental_i_);
 }
 void
 Local_key_item::add (int o, int p , int a)
@@ -71,10 +75,7 @@ Local_key_item::brew_molecule_p()const
        delete octmol;
     }
 
-    Interval head_width;
-    for (int i = 0; i  < group.size(); i++) {
-       head_width.unite(group[i]->width());
-    }
+    Interval head_width=itemlist_width(support_items_);
     output->translate(Offset(-output->extent().x.right + head_width.left ,0));
     
     return output;