]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.26
authorfred <fred>
Sun, 24 Mar 2002 19:30:00 +0000 (19:30 +0000)
committerfred <fred>
Sun, 24 Mar 2002 19:30:00 +0000 (19:30 +0000)
hdr/beam.hh
hdr/rest.hh
src/bar.cc
src/clefitem.cc

index 548641aecb5b82e0744a69c1dfbf8a3b3b604850..68a9f49cff95f8badba13ea4c52a772615613657 100644 (file)
@@ -18,6 +18,7 @@ struct Beam:  public Directional_spanner {
     /// dir: -1 below heads, +1 above heads.
 
     /****************/
+    const char * name() const;
     
     virtual Interval width()const;    
     Offset center() const;
@@ -30,7 +31,7 @@ struct Beam:  public Directional_spanner {
     void do_pre_processing();
     void do_post_processing();
 
-    void print() const;
+    void do_print() const;
     void set_grouping(Rhythmic_grouping def, Rhythmic_grouping current);
     void set_stemlens();
     ~Beam();
index d3f944f57ec86c99463068788527d4577b4ecf4c..02c6e0bff63f450899bfe898a70caf4291c104f3 100644 (file)
@@ -9,8 +9,8 @@
 #include "item.hh"
 
 /// ball at the end of the stem
-struct Rest : public Item
-{
+struct Rest : Item {
+
     int dots;
     int balltype;
 
@@ -18,8 +18,8 @@ struct Rest : public Item
 
 
     Rest(int dur,int dots);
-    void print()const;
-
+    void do_print()const;
+    const char * name() const;
     Molecule* brew_molecule_p()const;
 };
 /**
index b18c500e62d8504a2b0d8a2cc872dd5e4d6d23f7..4b3a0716eb37f8b9689223212def5791c22ed2b6 100644 (file)
@@ -4,17 +4,18 @@
 #include "paper.hh"
 #include "lookup.hh"
 
+NAME_METHOD(Bar);
 
 Bar::Bar( String t)
 {
     type = t;
 }
+
 Molecule*
 Bar::brew_molecule_p()const
 {    
     Symbol s = paper()->lookup_p_->bar(type);
-Molecule*    output = new Molecule(Atom(s));
-return output;
-    
+    Molecule*    output = new Molecule(Atom(s));
+    return output;
 }
     
index 8b10b60107b1d50a6ecb71901c64aa8b0e6e780e..2b451a804d9f16b484b97200aee8675fdb36b3bb 100644 (file)
@@ -5,11 +5,14 @@
 #include "lookup.hh"
 #include "clef.hh"
 
+NAME_METHOD(Clef_item);
+
 Clef_item::Clef_item()
 {
     change = true;
     read("violin");
 }
+
 void
 Clef_item::read(String t)
 {