MuseScore  3.4
Music composition and notation
fingering.h
Go to the documentation of this file.
1 //=============================================================================
2 // MuseScore
3 // Music Composition & Notation
4 //
5 // Copyright (C) 2010-2018 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 __FINGERING_H__
14 #define __FINGERING_H__
15 
16 #include "text.h"
17 
18 namespace Ms {
19 
20 //---------------------------------------------------------
21 // @@ Fingering
22 //---------------------------------------------------------
23 
24 class Fingering final : public TextBase {
25 
26  public:
29 
30  virtual Fingering* clone() const override { return new Fingering(*this); }
31  virtual ElementType type() const override { return ElementType::FINGERING; }
32 
33  Note* note() const { return toNote(parent()); }
36 
37  virtual void draw(QPainter*) const override;
38  virtual void layout() override;
39 
40  virtual QVariant propertyDefault(Pid id) const override;
41 
42  virtual QString accessibleInfo() const override;
43  };
44 
45 
46 } // namespace Ms
47 #endif
48 
Placement calculatePlacement() const
Definition: fingering.cpp:73
Pid
Definition: property.h:62
Note * note() const
Definition: fingering.h:33
virtual QVariant propertyDefault(Pid id) const override
Definition: fingering.cpp:252
QFlags< ElementFlag > ElementFlags
Definition: element.h:101
Element * parent() const
Definition: element.h:192
virtual Fingering * clone() const override
Definition: fingering.h:30
Definition: score.h:391
Fingering(Score *, Tid tid, ElementFlags ef=ElementFlag::HAS_TAG)
Definition: fingering.cpp:41
Placement
Definition: types.h:312
virtual void draw(QPainter *) const override
Definition: fingering.cpp:231
Tid
Enumerates the list of built-in text substyles.
Definition: types.h:371
Definition: textbase.h:217
Definition: aeolus.cpp:26
virtual void layout() override
Definition: fingering.cpp:91
virtual ElementType type() const override
Definition: fingering.h:31
ElementType layoutType()
Definition: fingering.cpp:57
Definition: fingering.h:24
Graphic representation of a note.
Definition: note.h:212
Tid tid() const
Definition: textbase.h:372
ElementType
Definition: types.h:34
virtual QString accessibleInfo() const override
Definition: fingering.cpp:240