]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/request.hh
release: 1.5.29
[lilypond.git] / lily / include / request.hh
index bd90bde2aac510602aca46f143f17f5f9b45de59..b612cb76fbc75f544ed86a0793e56a4962b5f924 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c)  1997--1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c)  1997--2002 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 
 #ifndef REQUEST_HH
 
  */
 class Request : public Music {
-
 public:
-    
-  virtual ~Request(){}
-
-  
-  VIRTUAL_COPY_CONS(Music);
-    
-  bool equal_b (Request*) const;
+  Request ();
+  VIRTUAL_COPY_CONS (Music);
+  bool equal_b (Request const*) const;
 protected:
-  virtual bool do_equal_b (Request*) const;
-  virtual void do_print() const;
-};
-
-
-#define REQUESTMETHODS(T)      \
-\
-VIRTUAL_COPY_CONS(Request);\
-virtual void do_print() const
+  virtual bool do_equal_b (Request const*) const;
 
+};
 
 
-/** Put a script above or below this ``note'' or bar. eg upbow, downbow. Why
-  a request? These symbols may conflict with slurs and brackets, so
-  this also a request */
 
-class Script_req  : public virtual Request { 
+class Script_req : public virtual Request
+{
 public:
-  Direction dir_;
-  General_script_def *scriptdef_p_;
-  
-  bool do_equal_b (Request*) const;
-
-  Script_req();
-  REQUESTMETHODS(Script_req);
-  ~Script_req();
-  Script_req (Script_req const&);
+  void set_direction (Direction d);
+  Direction get_direction () const;
+  VIRTUAL_COPY_CONS (Music);
+  Script_req ();
 };
 
 
@@ -71,15 +52,25 @@ public:
 */
 class Span_req  : public virtual Request  {
 public:
-  /// should the spanner start or stop, or is it unwanted?
-  enum Spantype {
-    NOSPAN, START, STOP
-  } spantype;
-  bool do_equal_b (Request*) const;
-  REQUESTMETHODS(Span_req);
-
-  Span_req();
+  String get_span_type_str () const;
+  void set_span_type_str (String);
+  void set_span_dir (Direction d);
+  Direction get_span_dir () const;  
+  
+  Span_req ();
+protected:
+  
+  virtual bool do_equal_b (Request const*) const;
+
+  VIRTUAL_COPY_CONS (Music);
 };
 
+/**
+  Start a tie at this note, end it at the next
+ */
+class Tie_req : public Request {
+public:
+  VIRTUAL_COPY_CONS (Music);
+};
 
 #endif