]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/command-request.hh
release: 1.3.145
[lilypond.git] / lily / include / command-request.hh
index 5f138b28b0123e725cae52805fb67d597f66160d..8c4cbeeb51fb9e5928af904a09b836c6a6cb1a6d 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c)  1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c)  1997--2001 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 
 
 #include "request.hh"
 #include "array.hh"
 #include "duration.hh"
-#include "musical-pitch.hh"
-#include "key-def.hh"
+#include "pitch.hh"
 #include "protected-scm.hh"
 
 class Break_req : public Request {
 public:
-  Real penalty_f_;
-  Break_req ();
 protected:
-  VIRTUAL_COPY_CONS(Music);
+  VIRTUAL_COPY_CONS (Music);
 };
 
 class Mark_req : public Request {
 public:
-  Protected_scm mark_label_;
-protected:
   virtual bool do_equal_b (Request const*) const;
-  VIRTUAL_COPY_CONS(Music);
-};
-
-
-/** Baseclass for time_signature/partial req. It has to be handled by
-  Staff_{walker,column} baseclass.  */
-class Timing_req  : public Request  {
-public:
-  VIRTUAL_COPY_CONS(Music);
+  SCM mark_label ();
+  VIRTUAL_COPY_CONS (Music);
 };
 
-
-class Tempo_req : public Timing_req
-{
-public:
-  Duration dur_;
-  int metronome_i_;
-
-  Tempo_req();
-protected:
-    virtual void do_print () const;
-  VIRTUAL_COPY_CONS(Music);
-  bool do_equal_b (Request const *) const;
-};
-
-
-/**
-  todo: allow C time_signature
+/*
+    int metronome_i_;
  */
-class Time_signature_change_req  : public Timing_req  {
+class Tempo_req : public Request
+{
 public:
-  int beats_i_;
-  int one_beat_i_;
-
-  Time_signature_change_req();
+  Tempo_req ();
 protected:
-  virtual void do_print () const;
-  bool do_equal_b (Request const *) const;
-  VIRTUAL_COPY_CONS(Music);
+  VIRTUAL_COPY_CONS (Music);
 };
 
-
 /// check if we're at start of a  measure.
-class Barcheck_req  : public Timing_req  {
+class Barcheck_req  : public Request  {
 public:
   bool do_equal_b (Request const *) const;
-  VIRTUAL_COPY_CONS(Music);
-};
-
-
-/** draw a (repeat)-bar. This something different than #Barcheck_req#,
-  the latter should only happen at the start of a measure.  */
-class Bar_req  : public Request  {
-public:
-  String type_str_;
-  Bar_req (String);
-protected:
-  virtual void do_print () const;
-  bool do_equal_b (Request const *) const;
-
-  VIRTUAL_COPY_CONS(Music);
+  VIRTUAL_COPY_CONS (Music);
 };
 
 class Breathing_sign_req : public Request {
-  VIRTUAL_COPY_CONS(Music);
+  VIRTUAL_COPY_CONS (Music);
 };
 
 /**
     Handle key changes.
-    Routines for sharps and flats are separated, 
-    so that caller may identify non-conventional keys.
 */
 class Key_change_req  : public Request
 {
 public:
-  Key_change_req ();
-  ~Key_change_req();
-  Key_change_req(Key_change_req const &);
-  Key_def *key_;
-
-protected:
-  VIRTUAL_COPY_CONS(Music);
-  void transpose (Musical_pitch  d);
-  virtual void do_print () const;
-};
-
-class Clef_change_req  : public Request  {
-public:
-  String clef_str_;
-  Clef_change_req (String);
+  SCM pitch_alist ();
+  
 protected:
-  virtual void do_print () const;
-  VIRTUAL_COPY_CONS(Music);
+  VIRTUAL_COPY_CONS (Music);
+  bool do_equal_b (Request const * ) const;
+  void transpose (Pitch  d);
 };
 
-
 #endif // COMMANDREQUEST_HH
+