MuseScore  3.4
Music composition and notation
noteline.h
Go to the documentation of this file.
1 //=============================================================================
2 // MuseScore
3 // Music Composition & Notation
4 //
5 // Copyright (C) 2002-2011 Werner Schweer
6 //
7 // This program is free software; you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License version 2
9 // as published by the Free Software Foundation and appearing in
10 // the file LICENCE.GPL
11 //=============================================================================
12 
13 #ifndef __NOTELINE_H__
14 #define __NOTELINE_H__
15 
16 #include "textlinebase.h"
17 
18 namespace Ms {
19 
20 class Note;
21 
22 //---------------------------------------------------------
23 // @@ NoteLine
24 //---------------------------------------------------------
25 
26 class NoteLine final : public TextLineBase {
29 
30  public:
31  NoteLine(Score* s);
32  NoteLine(const NoteLine&);
33  ~NoteLine() {}
34 
35  virtual NoteLine* clone() const { return new NoteLine(*this); }
36  virtual ElementType type() const { return ElementType::NOTELINE; }
37 
38  void setStartNote(Note* n) { _startNote = n; }
39  Note* startNote() const { return _startNote; }
40  void setEndNote(Note* n) { _endNote = n; }
41  Note* endNote() const { return _endNote; }
42  virtual LineSegment* createLineSegment() override;
43  };
44 
45 
46 } // namespace Ms
47 #endif
48 
Note * endNote() const
Definition: noteline.h:41
NoteLine(Score *s)
Definition: noteline.cpp:18
Virtual base class for segmented lines segments (OttavaSegment, HairpinSegment, TrillSegment...)
Definition: line.h:34
Definition: score.h:391
Definition: noteline.h:26
Note * _endNote
Definition: noteline.h:28
virtual LineSegment * createLineSegment() override
Definition: noteline.cpp:33
void setStartNote(Note *n)
Definition: noteline.h:38
Note * _startNote
Definition: noteline.h:27
Definition: aeolus.cpp:26
Note * startNote() const
Definition: noteline.h:39
~NoteLine()
Definition: noteline.h:33
virtual NoteLine * clone() const
Definition: noteline.h:35
void setEndNote(Note *n)
Definition: noteline.h:40
Definition: textlinebase.h:70
Graphic representation of a note.
Definition: note.h:212
ElementType
Definition: types.h:34
virtual ElementType type() const
Definition: noteline.h:36