]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/command-request.hh
release: 1.2.4
[lilypond.git] / lily / include / command-request.hh
index 63f8c11135f940ef63dbbc3d761e367c92ce847f..b7a29e0f116275d534bbc278d6b578d39cb59a65 100644 (file)
@@ -14,6 +14,7 @@
 #include "array.hh"
 #include "duration.hh"
 #include "musical-pitch.hh"
+#include "key-def.hh"
 
 class Break_req : public Request {
 public:
@@ -52,7 +53,7 @@ public:
 protected:
     virtual void do_print () const;
   VIRTUAL_COPY_CONS(Music);
-  bool do_equal_b (Request *) const;
+  bool do_equal_b (Request const *) const;
 };
 
 class Partial_measure_req  : public Timing_req  {
@@ -63,7 +64,7 @@ public:
 protected:
   VIRTUAL_COPY_CONS(Music);
   virtual void do_print () const;
-  bool do_equal_b (Request*) const;
+  bool do_equal_b (Request const *) const;
 };
 
 /**
@@ -77,7 +78,7 @@ public:
   Time_signature_change_req();
 protected:
   virtual void do_print () const;
-  bool do_equal_b (Request*) const;
+  bool do_equal_b (Request const *) const;
   VIRTUAL_COPY_CONS(Music);
 };
 
@@ -90,26 +91,17 @@ public:
 protected:
   virtual void do_print () const;
   
-  bool do_equal_b (Request*) const;
+  bool do_equal_b (Request const *) const;
   VIRTUAL_COPY_CONS(Music);
 };
 
 /// check if we're at start of a  measure.
 class Barcheck_req  : public Timing_req  {
 public:
-  bool do_equal_b (Request *) const;
+  bool do_equal_b (Request const *) const;
   VIRTUAL_COPY_CONS(Music);
 };
 
-class Measure_grouping_req : public Timing_req  {
-public:
-  Array<int> beat_i_arr_;
-  Array<Moment> elt_length_arr_;
-protected:
-  virtual void do_print () const;
-  bool do_equal_b (Request *) 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.  */
@@ -119,33 +111,25 @@ public:
   Bar_req (String);
 protected:
   virtual void do_print () const;
-  bool do_equal_b (Request*) const;
+  bool do_equal_b (Request const *) const;
 
   VIRTUAL_COPY_CONS(Music);
 };
 
+class Breathing_sign_req : public Request {
+  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  {
+class Key_change_req  : public Request
+{
 public:
-  Array<Musical_pitch> pitch_arr_;
-  int modality_i_;
-  bool ordinary_key_b_;
-
-  Key_change_req();
-
-  /// squash the octaves to 1
-  void squash_octaves();
-  /// return number of flats in key
-  int flats_i();
-
-  /// return number of sharps in key
-  int sharps_i();
-  bool minor_b() const;
+  Key_change_req ();
+  Key_def key_;
 
 protected:
   VIRTUAL_COPY_CONS(Music);
@@ -162,11 +146,5 @@ protected:
   VIRTUAL_COPY_CONS(Music);
 };
 
-class Bracket_req :  public Span_req {
-
-public:
-  VIRTUAL_COPY_CONS(Music);
-};
-
 
 #endif // COMMANDREQUEST_HH