MuseScore  3.4
Music composition and notation
text.h
Go to the documentation of this file.
1 //=============================================================================
2 // MuseScore
3 // Music Composition & Notation
4 //
5 // Copyright (C) 2014 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 __TEXT_H__
14 #define __TEXT_H__
15 
16 #include "textbase.h"
17 
18 namespace Ms {
19 
20 //---------------------------------------------------------
21 // Text
22 //---------------------------------------------------------
23 
24 class Text final : public TextBase {
25 
26  public:
27  Text(Score* s = 0, Tid tid = Tid::DEFAULT);
28 
29  virtual ElementType type() const override { return ElementType::TEXT; }
30  virtual Text* clone() const override { return new Text(*this); }
31  virtual void read(XmlReader&) override;
32  virtual QVariant propertyDefault(Pid id) const override;
33  };
34 
35 } // namespace Ms
36 
37 #endif
38 
Pid
Definition: property.h:62
Definition: xml.h:67
virtual void read(XmlReader &) override
Definition: text.cpp:40
virtual Text * clone() const override
Definition: text.h:30
virtual ElementType type() const override
Definition: text.h:29
Definition: score.h:391
Text(Score *s=0, Tid tid=Tid::DEFAULT)
Definition: text.cpp:31
Tid
Enumerates the list of built-in text substyles.
Definition: types.h:371
Definition: textbase.h:217
Definition: aeolus.cpp:26
virtual QVariant propertyDefault(Pid id) const override
Definition: text.cpp:60
Tid tid() const
Definition: textbase.h:372
ElementType
Definition: types.h:34
Definition: text.h:24