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