]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/local-key-item.hh
d08ca2b4905faed98be685b7addff73b924e9d00
[lilypond.git] / lily / include / local-key-item.hh
1 /*
2   local-key-item.hh -- part of GNU LilyPond
3
4   (c) 1996--1998 Han-Wen Nienhuys
5 */
6
7 #ifndef LOCALKEYITEM_HH
8 #define LOCALKEYITEM_HH
9 #include "item.hh"
10 #include "array.hh"
11 #include "musical-pitch.hh"
12
13 /**
14   Accidentals which can be different for each octave.
15
16   TODO:
17   update item if Items are removed
18
19   TODO
20   
21   figure out private/public
22   
23  */
24 class Local_key_item : public Item {
25 public:
26     DECLARE_MY_RUNTIME_TYPEINFO;
27     Array<Musical_pitch> accs;
28     Link_array<Item> support_items_;
29     int c0_position_i_;
30     
31     Local_key_item ();
32     void add_support (Item*);
33     void add (Musical_pitch);
34 protected:
35     virtual void do_pre_processing();    
36     virtual void do_substitute_dependency (Score_element*,Score_element*);
37     virtual Molecule* brew_molecule_p() const;
38 };
39 #endif // LOCALKEYITEM_HH
40