From 54e7ed546f632b7ce5a3ebb52ed0dade20fb9081 Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 24 Mar 2002 19:27:16 +0000 Subject: [PATCH] lilypond-0.0.21 --- hdr/linespace.hh | 20 ++++++++++++++------ hdr/pcol.hh | 17 ----------------- 2 files changed, 14 insertions(+), 23 deletions(-) diff --git a/hdr/linespace.hh b/hdr/linespace.hh index 8a8742142c..75f4b9fb74 100644 --- a/hdr/linespace.hh +++ b/hdr/linespace.hh @@ -4,18 +4,26 @@ #include "glob.hh" #include "plist.hh" #include "vray.hh" -#include "pcol.hh" -#include "matrix.hh" +#include "vector.hh" +#include "interval.hh" /// helper struct for #Spacing_problem# struct Colinfo { const PCol *pcol_; - bool fixed; - Real fixpos; + const Real* fixpos; + Interval width; + + /****************/ Colinfo(); + void operator=(Colinfo const&); + Colinfo(Colinfo const&); + ~Colinfo(); + Colinfo(const PCol*,const Real*); void print() const; - Real minright() const { return pcol_->width().right; } - Real minleft() const { return -pcol_->width().left; } + bool fixed() const { return fixpos;} + Real fixed_position()const { return *fixpos; } + Real minright() const { return width.right; } + Real minleft() const { return -width.left; } }; diff --git a/hdr/pcol.hh b/hdr/pcol.hh index 1f3e15df3f..7da7c02cb2 100644 --- a/hdr/pcol.hh +++ b/hdr/pcol.hh @@ -79,21 +79,4 @@ struct PCol { instantiate_compare(const PCol &, PCol::compare); -/// ideal spacing between two columns -struct Idealspacing { - - /// the ideal distance - Real space; - - /// Hooke's constant: how strong are the "springs" attached to columns - Real hooke; - - /// the two columns - const PCol *left, *right; - - void print()const; - void OK() const ; - Idealspacing(const PCol *left,const PCol *right); -}; - #endif -- 2.39.5