]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/key-engraver.hh
release: 1.0.1
[lilypond.git] / lily / include / key-engraver.hh
1 /*
2   key-engraver.hh -- declare Key_engraver
3
4   source file of the GNU LilyPond music typesetter
5
6   (c)  1997--1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9
10 #ifndef KEYGRAV_HH
11 #define KEYGRAV_HH
12
13 #include "engraver.hh"
14 #include "key.hh"
15 #include "musical-pitch.hh"
16
17 /**
18   Make the key signature.
19  */
20 class Key_engraver : public Engraver {
21   void create_key();
22   void read_req (Key_change_req const * r);
23
24 public:
25   Key_engraver();
26   DECLARE_MY_RUNTIME_TYPEINFO;
27   TRANSLATOR_CLONE(Key_engraver);
28   Key key_;
29   Key_change_req * keyreq_l_;
30   Key_item * kit_p_;
31   Array<Musical_pitch> accidental_idx_arr_;
32   Array<Musical_pitch> old_accidental_idx_arr_;
33   bool default_key_b_;
34   bool change_key_b_;
35     
36 protected:
37   virtual bool do_try_request (Request *req_l);
38   virtual void do_process_requests();
39   virtual void do_pre_move_processing();
40   virtual void do_post_move_processing();
41   virtual void acknowledge_element (Score_element_info);
42 };
43
44 #endif // KEYGRAV_HH