]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/command-request.hh
release: 1.3.23
[lilypond.git] / lily / include / command-request.hh
index 63f8c11135f940ef63dbbc3d761e367c92ce847f..c1efa26c43639d8576cd615740c549e05723000e 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c)  1997--1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c)  1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 
 
 #include "array.hh"
 #include "duration.hh"
 #include "musical-pitch.hh"
+#include "key-def.hh"
 
 class Break_req : public Request {
 public:
-  enum { DISALLOW = -10000, FORCE = 10000 };
-  int penalty_i_;
+  Real penalty_f_;
   Break_req ();
 protected:
   VIRTUAL_COPY_CONS(Music);
@@ -26,9 +26,9 @@ protected:
 
 class Mark_req : public Request {
 public:
-  Mark_req (String);
   String str_;
 protected:
+  virtual bool do_equal_b (Request const*) const;
   virtual void do_print () const;  
   VIRTUAL_COPY_CONS(Music);
 };
@@ -52,19 +52,9 @@ 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  {
-public:
-  Moment length_mom_;
-
-  Partial_measure_req (Moment);
-protected:
-  VIRTUAL_COPY_CONS(Music);
-  virtual void do_print () const;
-  bool do_equal_b (Request*) const;
-};
 
 /**
   todo: allow C time_signature
@@ -77,39 +67,18 @@ 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);
 };
 
-/// toggle Cadenza mode
-class Cadenza_req  : public Timing_req  {
-public:
-  /// turn on?
-  bool on_b_;
-  Cadenza_req (bool);
-protected:
-  virtual void do_print () const;
-  
-  bool do_equal_b (Request*) 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 +88,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 +123,5 @@ protected:
   VIRTUAL_COPY_CONS(Music);
 };
 
-class Bracket_req :  public Span_req {
-
-public:
-  VIRTUAL_COPY_CONS(Music);
-};
-
 
 #endif // COMMANDREQUEST_HH