]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/local-key-item.hh
release: 0.1.65
[lilypond.git] / lily / include / local-key-item.hh
1 /*
2   local-key-item.hh -- part of GNU LilyPond
3
4   (c) 1996,97 Han-Wen Nienhuys
5 */
6
7 #ifndef LOCALKEYITEM_HH
8 #define LOCALKEYITEM_HH
9 #include "item.hh"
10 #include "varray.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;
30
31
32     
33     Local_key_item (int c0position);
34     void add_support (Item*);
35     void add (Musical_pitch);
36 protected:
37     virtual void do_pre_processing();    
38     virtual void do_substitute_dependency (Score_elem*,Score_elem*);
39     virtual Molecule* brew_molecule_p() const;
40 };
41 #endif // LOCALKEYITEM_HH
42