MuseScore  3.4
Music composition and notation
rehearsalmark.h
Go to the documentation of this file.
1 //=============================================================================
2 // MuseScore
3 // Music Composition & Notation
4 //
5 // Copyright (C) 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 __REHEARSALMARK_H__
14 #define __REHEARSALMARK_H__
15 
16 #include "systemtext.h"
17 
18 namespace Ms {
19 
20 //---------------------------------------------------------
21 // @@ RehearsalMark
22 //---------------------------------------------------------
23 
24 class RehearsalMark final : public TextBase {
25  virtual Sid getPropertyStyle(Pid) const override;
26 
27  public:
29  virtual RehearsalMark* clone() const override { return new RehearsalMark(*this); }
30  virtual ElementType type() const override { return ElementType::REHEARSAL_MARK; }
31  Segment* segment() const { return (Segment*)parent(); }
32  virtual void layout() override;
33  virtual QVariant propertyDefault(Pid id) const override;
34  };
35 
36 
37 } // namespace Ms
38 #endif
39 
virtual QVariant propertyDefault(Pid id) const override
Definition: rehearsalmark.cpp:87
Pid
Definition: property.h:62
RehearsalMark(Score *score)
Definition: rehearsalmark.cpp:33
Element * parent() const
Definition: element.h:192
virtual Sid getPropertyStyle(Pid) const override
Definition: rehearsalmark.cpp:103
Definition: score.h:391
Score * score() const
Definition: scoreElement.h:189
Segment * segment() const
Definition: rehearsalmark.h:31
Definition: textbase.h:217
Definition: segment.h:50
Definition: aeolus.cpp:26
Sid
Definition: style.h:33
virtual RehearsalMark * clone() const override
Definition: rehearsalmark.h:29
virtual ElementType type() const override
Definition: rehearsalmark.h:30
ElementType
Definition: types.h:34
virtual void layout() override
Definition: rehearsalmark.cpp:44
Definition: rehearsalmark.h:24