X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fchord-name.hh;h=0f5e4cf197f652d5a25f584bc20881b9454ef7bc;hb=9e781b7dc83b60a543ce218aa1a5f139f74c760f;hp=008944569478c8a904bc3fd9e8ec82ab951c9de5;hpb=8a28f0429e9ce4ce7258156d62261b939edd72d1;p=lilypond.git diff --git a/lily/include/chord-name.hh b/lily/include/chord-name.hh index 0089445694..0f5e4cf197 100644 --- a/lily/include/chord-name.hh +++ b/lily/include/chord-name.hh @@ -1,48 +1,33 @@ /* - chord-name.hh -- declare Chord_name + This file is part of LilyPond, the GNU music typesetter. - source file of the GNU LilyPond music typesetter + Copyright (C) 1999--2014 Jan Nieuwenhuizen - (c) 1999 Jan Nieuwenhuizen + LilyPond is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + LilyPond is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with LilyPond. If not, see . */ #ifndef CHORD_NAME_HH #define CHORD_NAME_HH -#include "chord.hh" -#include "item.hh" -#include "molecule.hh" - -class Chord_mol -{ -public: - Molecule tonic_mol; - Molecule modifier_mol; - Molecule addition_mol; - Molecule inversion_mol; - Molecule bass_mol; -}; +#include "stencil.hh" +#include "grob-interface.hh" -class Chord_name : public Item +class Chord_name { 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; - - Chord_name (Chord const& c); - - /* - ugh. Junkme, I must be elt property. - */ - - Chord chord_; - -protected: - virtual Molecule* do_brew_molecule_p () const; + DECLARE_SCHEME_CALLBACK (after_line_breaking, (SCM)); + DECLARE_GROB_INTERFACE (); }; #endif // CHORD_NAME_HH