]> git.donarmstrong.com Git - lilypond.git/blob - hdr/simplewalker.hh
a8db0337aa627497d3a43fd1e240159a2421035b
[lilypond.git] / hdr / simplewalker.hh
1 /*
2   simplewalker.hh -- part of LilyPond
3
4   (c) 1996 Han-Wen Nienhuys
5 */
6
7 #ifndef SIMPLEWALKER_HH
8 #define SIMPLEWALKER_HH
9
10 #include "proto.hh"
11
12 struct Simple_walker: Staff_walker {
13     Stem *stem_;
14     svec<Notehead *>noteheads;
15     Local_key local_key_;
16     Key key_;
17     svec<int> *oldkey_undo;
18     svec<int> typesetkey;
19     Beam *beam_;
20     Local_key_item *local_key_item_;
21     bool wantkey;               // urgh
22     bool processed_key;
23     bool processed_clef;
24     Clef clef_;
25     svec<Slur_req*> pending_slur_reqs;
26     svec<Slur*>  pending_slurs;
27     /****************/
28
29     virtual void do_TYPESET_command(Command*);
30     virtual void do_INTERPRET_command(Command*);
31     virtual void process_requests();
32     virtual void reset();
33     
34     void do_note(Rhythmic_req*);
35     Simple_walker(Simple_staff*);
36     Simple_column *col();
37     Simple_staff *staff();
38
39     void do_local_key(Note_req*n);
40     int find_slur(const Voice*v);
41 };
42
43
44 #endif // SIMPLEWALKER_HH
45
46