From f8d93b072b889e3a9abc31616b229c13e7b8b8b5 Mon Sep 17 00:00:00 2001 From: fred Date: Sat, 15 Feb 1997 11:43:31 +0000 Subject: [PATCH] lilypond-0.0.32 --- hdr/lyriccolumn.hh | 17 +++--------- hdr/meterreg.hh | 28 +++++++++++++++++++ src/lyriccolumn.cc | 80 ++++++++++++++++++++---------------------------------- 3 files changed, 61 insertions(+), 64 deletions(-) create mode 100644 hdr/meterreg.hh rewrite src/lyriccolumn.cc (68%) diff --git a/hdr/lyriccolumn.hh b/hdr/lyriccolumn.hh index 118b9f34bd..a7202e593d 100644 --- a/hdr/lyriccolumn.hh +++ b/hdr/lyriccolumn.hh @@ -1,5 +1,5 @@ // -// lyriccolumn.hh -- part of LilyPond +// lyriccolumn.hh -- declare Lyric_column // // copyright 1997 Jan Nieuwenhuizen @@ -11,25 +11,16 @@ #include "stcol.hh" #include "staff.hh" -struct Lyric_staff; - -/// (winfo) -struct Word_info { - Lyric_req* lreq_l_; - Word_info(); - Word_info(Lyric_req* lreq_l); -}; - /// (lcol) struct Lyric_column : Staff_column { - Array winfo_array_; + Array lreq_l_array_; Lyric_staff* lstaff_l_; void typeset_item(Item *); - virtual void setup_requests(); + virtual void setup_one_request(Request*); - Lyric_column(Score_column* s,Lyric_staff*rs); + Lyric_column(Lyric_staff*rs); }; #endif // LYRICSTAFF_HH diff --git a/hdr/meterreg.hh b/hdr/meterreg.hh new file mode 100644 index 0000000000..f14e2ecb9e --- /dev/null +++ b/hdr/meterreg.hh @@ -0,0 +1,28 @@ +/* + meterreg.hh -- declare Meter_register + + source file of the LilyPond music typesetter + + (c) 1997 Han-Wen Nienhuys +*/ + + +#ifndef METERREG_HH +#define METERREG_HH +#include "register.hh" + +/** + generate meters. + */ +class Meter_register : public Request_register { +public: + Meter_change_req * meter_req_l_; + Meter * meter_p_; + + virtual bool try_request(Request *req_l); + virtual void process_request(); + virtual void do_pre_move_process(); + virtual void do_post_move_process(); + Meter_register(Complex_walker*); +}; +#endif // METERREG_HH diff --git a/src/lyriccolumn.cc b/src/lyriccolumn.cc dissimilarity index 68% index c54ebc2b39..9d5cbe3297 100644 --- a/src/lyriccolumn.cc +++ b/src/lyriccolumn.cc @@ -1,51 +1,29 @@ -#include "request.hh" -#include "voice.hh" -#include "staffwalker.hh" -#include "debug.hh" -#include "staff.hh" -#include "lyricstaff.hh" -#include "lyriccolumn.hh" -#include "sccol.hh" -#include "pscore.hh" -#include "main.hh" - -Lyric_column::Lyric_column(Score_column* s, Lyric_staff* lstaff_l) - : Staff_column(s) -{ - lstaff_l_ = lstaff_l; -} - -void -Lyric_column::setup_requests() -{ - for (int i = 0 ; i < v_elts.size(); i ++) { - for (iter_top(v_elts[i]->reqs,j); j.ok(); j++) { - Request* req_l = j; - if (req_l->barcheck()) { - if (tdescription_->whole_in_measure) { - warning( "Barcheck failed ", req_l->defined_ch_c_l_m ); - } - } - if (req_l->lreq_l()) { - winfo_array_.push(req_l->lreq_l()); - } - } - } -} - -void -Lyric_column::typeset_item(Item *i) -{ - lstaff_l_->pscore_l_->typeset_item(i, score_column_l_->pcol_l_, - lstaff_l_->pstaff_l_); -} - -Word_info::Word_info() -{ - lreq_l_ = 0; -} - -Word_info::Word_info(Lyric_req* lreq_l) -{ - lreq_l_ = lreq_l; -} +#include "musicalrequest.hh" +#include "voice.hh" +#include "staffwalker.hh" +#include "debug.hh" +#include "staff.hh" +#include "lyricstaff.hh" +#include "lyriccolumn.hh" +#include "sccol.hh" +#include "pscore.hh" +#include "main.hh" + +Lyric_column::Lyric_column(Lyric_staff* lstaff_l) +{ + lstaff_l_ = lstaff_l; +} + +void +Lyric_column::setup_one_request(Request*req_l) +{ + if (req_l->lreq_l()) + lreq_l_array_.push(req_l->lreq_l()); +} + +void +Lyric_column::typeset_item(Item *i) +{ + lstaff_l_->pscore_l_->typeset_item(i, musical_column_l_->pcol_l_, + lstaff_l_->pstaff_l_); +} -- 2.11.4.GIT