lilypond-1.3.16
[lilypond.git] / lily / include / key-reg.hh
blobec9b5a2ab9894db08cd80e0bc506acbdbfbbf551
1 /*
2 key-reg.hh -- declare Key_register
4 source file of the GNU LilyPond music typesetter
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
7 */
10 #ifndef KEYREG_HH
11 #define KEYREG_HH
13 #include "register.hh"
14 #include "key.hh"
16 struct Key_register : Request_register {
17 Key key_;
18 Key_change_req * keyreq_l_;
19 Key_item * kit_p_;
20 Array<int> accidental_idx_arr_;
21 bool default_key_b_;
22 bool change_key_b_;
24 virtual bool do_try_request(Request *req_l);
25 virtual void do_process_requests();
26 virtual void do_pre_move_processing();
27 virtual void do_post_move_processing();
28 virtual void acknowledge_element(Score_elem_info);
29 Key_register();
30 NAME_MEMBERS();
31 private:
32 void create_key();
34 void read_req(Key_change_req * r);
37 #endif // KEYREG_HH