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 
29       QVariant propertyDefault(Pid id) const override;
30 
31    public:
32       StaffText(Score* s = 0, Tid = Tid::STAFF);
33 
clone()34       StaffText* clone() const override       { return new StaffText(*this); }
type()35       ElementType type() const override       { return ElementType::STAFF_TEXT; }
36       void layout() override;
37       };
38 
39 
40 }     // namespace Ms
41 #endif
42