MuseScore
3.4
Music composition and notation
libmscore
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
{
27
Note
*
_startNote
;
28
Note
*
_endNote
;
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
Ms::NoteLine::endNote
Note * endNote() const
Definition:
noteline.h:41
OVE::BdatType::Note
Ms::NoteLine::NoteLine
NoteLine(Score *s)
Definition:
noteline.cpp:18
Ms::LineSegment
Virtual base class for segmented lines segments (OttavaSegment, HairpinSegment, TrillSegment...)
Definition:
line.h:34
Ms::Score
Definition:
score.h:391
Ms::NoteLine
Definition:
noteline.h:26
Ms::NoteLine::_endNote
Note * _endNote
Definition:
noteline.h:28
Ms::NoteLine::createLineSegment
virtual LineSegment * createLineSegment() override
Definition:
noteline.cpp:33
Ms::NoteLine::setStartNote
void setStartNote(Note *n)
Definition:
noteline.h:38
Ms::NoteLine::_startNote
Note * _startNote
Definition:
noteline.h:27
Ms::ElementType::NOTELINE
Ms
Definition:
aeolus.cpp:26
Ms::NoteLine::startNote
Note * startNote() const
Definition:
noteline.h:39
Ms::NoteLine::~NoteLine
~NoteLine()
Definition:
noteline.h:33
Ms::NoteLine::clone
virtual NoteLine * clone() const
Definition:
noteline.h:35
Ms::NoteLine::setEndNote
void setEndNote(Note *n)
Definition:
noteline.h:40
Ms::TextLineBase
Definition:
textlinebase.h:70
Ms::Note
Graphic representation of a note.
Definition:
note.h:212
Ms::ElementType
ElementType
Definition:
types.h:34
Ms::NoteLine::type
virtual ElementType type() const
Definition:
noteline.h:36
textlinebase.h
Generated by
1.8.13