1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
2 
3 /*
4     Rosegarden
5     A MIDI and audio sequencer and musical notation editor.
6     Copyright 2000-2021 the Rosegarden development team.
7 
8     Other copyrights also apply to some parts of this work.  Please
9     see the AUTHORS file and individual file headers for details.
10 
11     This program is free software; you can redistribute it and/or
12     modify it under the terms of the GNU General Public License as
13     published by the Free Software Foundation; either version 2 of the
14     License, or (at your option) any later version.  See the file
15     COPYING included with this distribution for more information.
16 */
17 
18 
19 #include "NotationProperties.h"
20 
21 #include "base/PropertyName.h"
22 
23 
24 namespace Rosegarden
25 {
26 
27 const PropertyName NotationProperties::NOTE_STYLE         = "NoteStyle";
28 const PropertyName NotationProperties::HEIGHT_ON_STAFF = "HeightOnStaff";
29 const PropertyName NotationProperties::BEAMED         = "Beamed";
30 const PropertyName NotationProperties::BEAM_ABOVE         = "BeamAbove";
31 const PropertyName NotationProperties::SLASHES        = "Slashes";
32 const PropertyName NotationProperties::STEM_UP        = "NoteStemUp";
33 const PropertyName NotationProperties::USE_CAUTIONARY_ACCIDENTAL = "UseCautionaryAccidental";
34 const PropertyName NotationProperties::OTTAVA_SHIFT       = "OttavaShift";
35 const PropertyName NotationProperties::SLUR_ABOVE         = "SlurAbove";
36 
NotationProperties(const std::string & prefix)37 NotationProperties::NotationProperties(const std::string &prefix) :
38 
39         VIEW_LOCAL_STEM_UP (prefix + "StemUp"),
40 
41         MIN_WIDTH	(prefix + "MinWidth"),
42 
43         CALCULATED_ACCIDENTAL	(prefix + "NoteCalculatedAccidental"),
44         DISPLAY_ACCIDENTAL	(prefix + "NoteDisplayAccidental"),
45         DISPLAY_ACCIDENTAL_IS_CAUTIONARY(prefix + "NoteDisplayAccidentalIsCautionary"),
46         ACCIDENTAL_SHIFT (prefix + "NoteAccidentalShift"),
47         ACCIDENTAL_EXTRA_SHIFT (prefix + "NoteAccidentalExtraShift"),
48         UNBEAMED_STEM_LENGTH	(prefix + "UnbeamedStemLength"),
49         DRAW_FLAG	(prefix + "NoteDrawFlag"),
50         NOTE_HEAD_SHIFTED	(prefix + "NoteHeadShifted"),
51         NEEDS_EXTRA_SHIFT_SPACE	(prefix + "NeedsExtraShiftSpace"),
52         NOTE_DOT_SHIFTED	(prefix + "NoteDotShifted"),
53         CHORD_PRIMARY_NOTE	(prefix + "ChordPrimaryNote"),
54         CHORD_MARK_COUNT	(prefix + "ChordMarkCount"),
55         TIE_LENGTH	(prefix + "TieLength"),
56         SLUR_Y_DELTA	(prefix + "SlurYDelta"),
57         SLUR_LENGTH	(prefix + "SlurLength"),
58         LYRIC_EXTRA_WIDTH	(prefix + "LyricExtraWidth"),
59         REST_TOO_SHORT (prefix + "RestTooShort"),
60         REST_OUTSIDE_STAVE (prefix + "RestOutsideStave"),
61 
62         BEAM_GRADIENT	(prefix + "BeamGradient"),
63         BEAM_SECTION_WIDTH	(prefix + "BeamSectionWidth"),
64         BEAM_NEXT_BEAM_COUNT	(prefix + "BeamNextBeamCount"),
65         BEAM_NEXT_PART_BEAMS	(prefix + "BeamNextPartBeams"),
66         BEAM_THIS_PART_BEAMS	(prefix + "BeamThisPartBeams"),
67         BEAM_MY_Y	(prefix + "BeamMyY"),
68 
69         TUPLING_LINE_MY_Y	(prefix + "TuplingLineMyY"),
70         TUPLING_LINE_WIDTH	(prefix + "TuplingLineWidth"),
71         TUPLING_LINE_GRADIENT	(prefix + "TuplingLineGradient"),
72         TUPLING_LINE_FOLLOWS_BEAM	(prefix + "TuplingLineFollowsBeam")
73 
74 {
75     // nothing else
76 }
77 
78 }
79