From e77d2b3d73d960f98e8a933aca28f2837b44175a Mon Sep 17 00:00:00 2001 From: fred Date: Mon, 18 Nov 1996 12:11:26 +0000 Subject: [PATCH] lilypond-0.0.10 --- hdr/lookup.hh | 3 ++- hdr/simplewalker.hh | 44 ++++++++++++++++++++++++++++++++++++++++++++ src/simplestaff.cc | 5 ++++- 3 files changed, 50 insertions(+), 2 deletions(-) create mode 100644 hdr/simplewalker.hh diff --git a/hdr/lookup.hh b/hdr/lookup.hh index 6bf89c0093..5be2b25464 100644 --- a/hdr/lookup.hh +++ b/hdr/lookup.hh @@ -27,10 +27,11 @@ struct Lookup { */ Symbol rule_symbol(Real height, Real width); - + Symbol accidental(int); Symbol ball(int); Symbol flag(int); Symbol rest(int); + Symbol clef(String); Symbol bar(String); Symbol dots(int); Lookup(); diff --git a/hdr/simplewalker.hh b/hdr/simplewalker.hh new file mode 100644 index 0000000000..5f27957aca --- /dev/null +++ b/hdr/simplewalker.hh @@ -0,0 +1,44 @@ +/* + simplewalker.hh -- part of LilyPond + + (c) 1996 Han-Wen Nienhuys +*/ + +#ifndef SIMPLEWALKER_HH +#define SIMPLEWALKER_HH + +#include "proto.hh" + +struct Simple_walker: Staff_walker { + Stem *stem_; + svecnoteheads; + Local_key local_key_; + Key key_; + svec *oldkey_undo; + svec typesetkey; + Beam *beam_; + Local_key_item *local_key_item_; + bool wantkey; // urgh + bool processed_key; + bool processed_clef; + Clef clef_; + + /****************/ + + virtual void do_TYPESET_command(Command*); + virtual void do_INTERPRET_command(Command*); + virtual void process_requests(); + virtual void reset(); + + void do_notes(); + Simple_walker(Simple_staff*); + Simple_column *col(); + Simple_staff *staff(); + + void do_local_key(Note_req*n); +}; + + +#endif // SIMPLEWALKER_HH + + diff --git a/src/simplestaff.cc b/src/simplestaff.cc index 5150d5478a..21cccabcb1 100644 --- a/src/simplestaff.cc +++ b/src/simplestaff.cc @@ -1,11 +1,12 @@ #include "request.hh" #include "swalker.hh" #include "debug.hh" +#include "clef.hh" #include "staff.hh" #include "command.hh" #include "simplestaff.hh" #include "sccol.hh" - +#include "simplewalker.hh" @@ -50,11 +51,13 @@ Simple_column::process_requests() } } } + Staff_column* Simple_staff::create_col(Score_column*s) { return new Simple_column(s,this); } + void Simple_staff::walk() { -- 2.39.5