2012-05-26 14:26:10 +02:00
|
|
|
//=============================================================================
|
|
|
|
// MuseScore
|
|
|
|
// Music Composition & Notation
|
|
|
|
//
|
|
|
|
// Copyright (C) 2002-2011 Werner Schweer
|
|
|
|
//
|
|
|
|
// This program is free software; you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License version 2
|
|
|
|
// as published by the Free Software Foundation and appearing in
|
|
|
|
// the file LICENCE.GPL
|
|
|
|
//=============================================================================
|
|
|
|
|
|
|
|
#ifndef __STAFFTEXT_H__
|
|
|
|
#define __STAFFTEXT_H__
|
|
|
|
|
|
|
|
#include "text.h"
|
|
|
|
#include "part.h"
|
2014-07-24 20:09:49 +02:00
|
|
|
#include "staff.h"
|
2018-07-26 13:14:06 +02:00
|
|
|
#include "stafftextbase.h"
|
2012-05-26 14:26:10 +02:00
|
|
|
|
2013-05-13 18:49:17 +02:00
|
|
|
namespace Ms {
|
|
|
|
|
2012-05-26 14:26:10 +02:00
|
|
|
//---------------------------------------------------------
|
2018-07-26 13:14:06 +02:00
|
|
|
// StaffText
|
2018-05-28 14:20:42 +02:00
|
|
|
//---------------------------------------------------------
|
|
|
|
|
|
|
|
class StaffText final : public StaffTextBase {
|
2018-10-18 11:53:01 +02:00
|
|
|
virtual Sid getPropertyStyle(Pid) const override;
|
|
|
|
virtual QVariant propertyDefault(Pid id) const override;
|
|
|
|
|
2018-05-28 14:20:42 +02:00
|
|
|
public:
|
2018-08-01 11:46:07 +02:00
|
|
|
StaffText(Score* s = 0, Tid = Tid::STAFF);
|
2018-05-28 14:20:42 +02:00
|
|
|
virtual StaffText* clone() const override { return new StaffText(*this); }
|
|
|
|
virtual ElementType type() const override { return ElementType::STAFF_TEXT; }
|
2018-07-26 13:14:06 +02:00
|
|
|
virtual void layout() override;
|
2018-05-28 14:20:42 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2013-05-13 18:49:17 +02:00
|
|
|
} // namespace Ms
|
2012-05-26 14:26:10 +02:00
|
|
|
#endif
|