]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/spring.hh
include accidentals and arpeggios in note spacing
[lilypond.git] / lily / include / spring.hh
index a42ecd58246bf9ac4baf6eb748df099198eb9d7a..b49d3de1f47843918b0244eb37505e1de1ddc2f3 100644 (file)
@@ -1,11 +1,10 @@
-/*   
+/*
   spring.hh -- declare Spring, Column_spring
-  
+
   source file of the GNU LilyPond music typesetter
-  
-  (c) 1999--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
-  
- */
+
+  (c) 1999--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
+*/
 
 #ifndef SPRING_HH
 #define SPRING_HH
 #include "lily-proto.hh"
 #include "smobs.hh"
 
-struct Spring_smob
+struct Spring
 {
   Grob *other_;
   Real distance_;
-  bool expand_only_b_;
-  Real strength_;
-  
-  DECLARE_SIMPLE_SMOBS(Spring_smob,dummy);
-public:
-  Spring_smob();
-};
-DECLARE_UNSMOB(Spring_smob, spring);
+  Real min_distance_;
 
-struct Spring
-{
-  Drul_array<Item*> item_l_drul_;
-  Real distance_;
-  bool expand_only_b_;
-
-  /*
-    TODO: make 2 strengths: one for stretching, and one for shrinking.
-  */
-  Real strength_;
-  void add_to_cols ();
-  void set_to_cols ();
+  Real inverse_stretch_strength_;
+  Real inverse_compress_strength_;
+
+  DECLARE_SIMPLE_SMOBS (Spring);
+public:
   Spring ();
 };
-
+DECLARE_UNSMOB (Spring, spring);
 
 #endif /* SPRING_HH */