MuseScore/libmscore/fingering.h

49 lines
1.4 KiB
C
Raw Normal View History

2012-05-26 14:26:10 +02:00
//=============================================================================
// MuseScore
// Music Composition & Notation
//
2018-03-21 15:34:32 +01:00
// Copyright (C) 2010-2018 Werner Schweer
2012-05-26 14:26:10 +02:00
//
// 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 __FINGERING_H__
#define __FINGERING_H__
#include "text.h"
2013-05-13 18:49:17 +02:00
namespace Ms {
2012-05-26 14:26:10 +02:00
//---------------------------------------------------------
2012-07-25 11:49:34 +02:00
// @@ Fingering
2012-05-26 14:26:10 +02:00
//---------------------------------------------------------
2017-12-27 11:51:00 +01:00
class Fingering final : public TextBase {
2018-03-21 14:05:33 +01:00
2012-05-26 14:26:10 +02:00
public:
2018-08-01 11:46:07 +02:00
Fingering(Score*, Tid tid, ElementFlags ef = ElementFlag::HAS_TAG);
Fingering(Score* s, ElementFlags ef = ElementFlag::HAS_TAG);
2018-03-21 15:34:32 +01:00
virtual Fingering* clone() const override { return new Fingering(*this); }
2017-01-18 14:16:33 +01:00
virtual ElementType type() const override { return ElementType::FINGERING; }
2012-05-26 14:26:10 +02:00
Note* note() const { return toNote(parent()); }
ElementType layoutType();
void calculatePlacement();
2012-05-26 14:26:10 +02:00
virtual void draw(QPainter*) const override;
virtual void layout() override;
2018-03-27 15:36:00 +02:00
virtual QVariant propertyDefault(Pid id) const override;
2018-03-21 14:05:33 +01:00
2018-03-21 15:34:32 +01:00
virtual QString accessibleInfo() const override;
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
#endif