]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/key-reg.hh
release: 0.0.39-1
[lilypond.git] / lily / include / key-reg.hh
1 /*
2   key-reg.hh -- declare Key_register
3
4   source file of the LilyPond music typesetter
5
6   (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
7 */
8
9
10 #ifndef KEYREG_HH
11 #define KEYREG_HH
12
13 #include "register.hh"
14 #include "key.hh"
15
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     
23     virtual bool try_request(Request *req_l);
24     virtual void process_requests();
25     virtual void pre_move_processing();
26     virtual void post_move_processing();
27     virtual void acknowledge_element(Staff_elem_info);
28     Key_register();
29     NAME_MEMBERS(Key_register);
30 private:
31     
32     void read_req(Key_change_req * r);
33 };
34
35 #endif // KEYREG_HH