X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fchord-name.hh;h=bf4c6b62bf690dfebec5ccdff9d37746f68a2112;hb=4b33e5b532de8c54c6461b9b6b4b509f8e3561f5;hp=fa9cba3a871cbb67d5b683ff3ad6e581e98b0c0e;hpb=ad7defd5f5a3d0151a711555c2d680c56ef559c7;p=lilypond.git diff --git a/lily/include/chord-name.hh b/lily/include/chord-name.hh index fa9cba3a87..bf4c6b62bf 100644 --- a/lily/include/chord-name.hh +++ b/lily/include/chord-name.hh @@ -3,44 +3,20 @@ source file of the GNU LilyPond music typesetter - (c) 1999--2000 Jan Nieuwenhuizen + (c) 1999--2009 Jan Nieuwenhuizen */ #ifndef CHORD_NAME_HH #define CHORD_NAME_HH -#include "chord.hh" -#include "item.hh" -#include "molecule.hh" +#include "stencil.hh" +#include "grob-interface.hh" -class Chord_mol +class Chord_name { public: - Molecule tonic_mol; - Molecule modifier_mol; - Molecule addition_mol; - Molecule inversion_mol; - Molecule bass_mol; -}; - -/** - elt_properties: - pitches: list of musical-pitch - inversion(optional): musical-pitch - bass(optional): musical-pitch - */ -class Chord_name : public Item -{ -public: - VIRTUAL_COPY_CONS (Score_element); - Molecule ly_word2molecule (SCM scm) const; - Molecule ly_text2molecule (SCM scm) const; - Molecule pitch2molecule (Musical_pitch p) const; - bool user_chord_name (Array pitch_arr, Chord_mol* name_p) const; - void banter (Array pitch_arr, Chord_mol* name_p) const; - -protected: - virtual Molecule do_brew_molecule () const; + DECLARE_SCHEME_CALLBACK (after_line_breaking, (SCM)); + DECLARE_GROB_INTERFACE(); }; #endif // CHORD_NAME_HH