]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/rest-column.cc
patch::: 0.0.68pre.jcn1: Re: patsen?
[lilypond.git] / lily / rest-column.cc
index 39cd296b85143ae15655a03b8aa9841bcf13ce87..df4bd988463399016876042003a0eb2b9f8cdbd8 100644 (file)
@@ -6,10 +6,20 @@
   (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
 */
 
+#include "debug.hh"
 #include "rest-column.hh"
 #include "note-head.hh"
 #include "rest-column.hh"
+#include "stem.hh"
 
+IMPLEMENT_STATIC_NAME(Rest_column);
+IMPLEMENT_IS_TYPE_B1(Rest_column,Item);
+
+Rest_column::Rest_column()
+{
+    dir_i_ = 0;
+}
+    
 void
 Rest_column::add(Note_head *n_l)
 {
@@ -18,20 +28,19 @@ Rest_column::add(Note_head *n_l)
 }
 
 void
-Rest_column::translate_y(Real dy_f)
+Rest_column::add(Stem*stem_l)
 {
-    for (int i=0; i < head_l_arr_.size(); i++)
-       head_l_arr_[i]->translate_y(dy_f);
+    stem_l_ = stem_l;
+//    add_support(stem_l);
 }
 
-IMPLEMENT_STATIC_NAME(Rest_column);
-IMPLEMENT_IS_TYPE_B1(Rest_column,Item);
-
-Rest_column::Rest_column()
+void
+Rest_column::do_print() const
 {
-    dir_i_ = 0;
+#ifndef NPRINT
+    mtor << "heads: " << head_l_arr_.size();
+#endif
 }
-    
 
 void
 Rest_column::do_substitute_dependency(Score_elem*o,Score_elem*n)
@@ -42,3 +51,10 @@ Rest_column::do_substitute_dependency(Score_elem*o,Score_elem*n)
                                (n)? (Note_head*)n->item() : 0);
     }
 }
+
+void
+Rest_column::translate_y(Real dy_f)
+{
+    for (int i=0; i < head_l_arr_.size(); i++)
+       head_l_arr_[i]->translate_y(dy_f);
+}