From 1b37d3dd4086062ab5c7a5c3f1818e50940ebebd Mon Sep 17 00:00:00 2001 From: fred Date: Sat, 2 Nov 1996 08:57:23 +0000 Subject: [PATCH] lilypond-0.0.6 --- simplestaff.hh | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 simplestaff.hh diff --git a/simplestaff.hh b/simplestaff.hh new file mode 100644 index 0000000000..e2efafe398 --- /dev/null +++ b/simplestaff.hh @@ -0,0 +1,59 @@ +/* + simplestaff.hh -- part of LilyPond + + (c) 1996 Han-Wen Nienhuys +*/ + +#ifndef SIMPLESTAFF_HH +#define SIMPLESTAFF_HH + +#include "stcol.hh" +#include "staff.hh" +/* + mega-stupido staffs and cols: they do notes one at each moment. + */ + +struct Simple_staff; + +/// column of Simple_staff: store one request +struct Simple_column : Staff_column { + + Request *the_note; + Simple_staff* staff_; + + /****************/ + + virtual void typeset_req(Request *rq)=0; + virtual void typeset_command(Command *, int brs)=0; + virtual void typeset_item(Item *, int=1); + + Item *create_command_item(Command *com); + Item *create_req_item(Request *rq); + void take_request(Request *rq); + + virtual void process_commands( ); + virtual void process_requests(); + + Simple_column(Score_column*s,Simple_staff*rs); +}; + + +/// Simple staff: one note at a time +struct Simple_staff : Staff { + /// indirection to the PStaff. + PStaff *theline; + + /****************/ + virtual void set_output(PScore *); + + void process_commands( PCursor &where); + void grant_requests(); +// virtual Staff*clone()const; + + Simple_staff(); +}; + +#endif // SIMPLESTAFF_HH + + + -- 2.39.5