]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/global-translator.hh
release: 0.0.76
[lilypond.git] / lily / include / global-translator.hh
index ce34cfb52751b7d655fd4366b06c254fe8816624..3faa9e4eeaf83f5eeb221c0fc64409b8adfd6683 100644 (file)
@@ -1,5 +1,5 @@
 /*
-  global-acceptor.hh -- declare Global_acceptor
+  global-translator.hh -- declare Global_translator
 
   source file of the GNU LilyPond music typesetter
 
@@ -7,10 +7,10 @@
 */
 
 
-#ifndef GLOBAL_ACCEPTOR_HH
-#define GLOBAL_ACCEPTOR_HH
+#ifndef GLOBAL_TRANSLATOR_HH
+#define GLOBAL_TRANSLATOR_HH
 
-#include "acceptor.hh"
+#include "translator.hh"
 #include "pqueue.hh"
 
 class Global_translator : public virtual Translator {
@@ -18,6 +18,7 @@ class Global_translator : public virtual Translator {
     Moment last_mom_;
 public:
     Score *score_l_;
+    
     Global_translator();
     int moments_left_i()const;
     void modify_next(Moment&);
@@ -27,12 +28,16 @@ public:
     virtual void prepare(Moment);
     virtual void process() {}
     virtual void finish() {}
+    virtual void start() {}
     
+    NAME_MEMBERS();
 protected:
+    
+    virtual Global_translator *global_l() { return this; }
     virtual int depth_i() const;
     virtual Translator *ancestor_l(int);
 };
 
 
 
-#endif // Global_translator_HH
+#endif // GLOBAL_TRANSLATOR_HH