MuseScore  3.4
Music composition and notation
stafftext.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 __STAFFTEXT_H__
14 #define __STAFFTEXT_H__
15 
16 #include "text.h"
17 #include "part.h"
18 #include "staff.h"
19 #include "stafftextbase.h"
20 
21 namespace Ms {
22 
23 //---------------------------------------------------------
24 // StaffText
25 //---------------------------------------------------------
26 
27 class StaffText final : public StaffTextBase {
28  virtual Sid getPropertyStyle(Pid) const override;
29  virtual QVariant propertyDefault(Pid id) const override;
30 
31  public:
32  StaffText(Score* s = 0, Tid = Tid::STAFF);
33  virtual StaffText* clone() const override { return new StaffText(*this); }
34  virtual ElementType type() const override { return ElementType::STAFF_TEXT; }
35  virtual void layout() override;
36  };
37 
38 
39 } // namespace Ms
40 #endif
virtual Sid getPropertyStyle(Pid) const override
Definition: stafftext.cpp:69
virtual StaffText * clone() const override
Definition: stafftext.h:33
Pid
Definition: property.h:62
Definition: stafftextbase.h:35
Definition: score.h:391
virtual void layout() override
Definition: stafftext.cpp:45
Tid
Enumerates the list of built-in text substyles.
Definition: types.h:371
Definition: stafftext.h:27
Definition: aeolus.cpp:26
Sid
Definition: style.h:33
StaffText(Score *s=0, Tid=Tid::STAFF)
Definition: stafftext.cpp:35
virtual ElementType type() const override
Definition: stafftext.h:34
virtual QVariant propertyDefault(Pid id) const override
Definition: stafftext.cpp:55
ElementType
Definition: types.h:34
Definition of class Staff.