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);
|
2018-07-04 12:41:03 +02:00
|
|
|
Fingering(Score* s, ElementFlags ef = ElementFlag::HAS_TAG);
|
2018-03-21 15:34:32 +01:00
|
|
|
|
2020-03-25 15:06:32 +01:00
|
|
|
Fingering* clone() const override { return new Fingering(*this); }
|
|
|
|
ElementType type() const override { return ElementType::FINGERING; }
|
2012-05-26 14:26:10 +02:00
|
|
|
|
2017-01-19 16:06:40 +01:00
|
|
|
Note* note() const { return toNote(parent()); }
|
2018-12-29 16:13:18 +01:00
|
|
|
ElementType layoutType();
|
2019-02-18 19:52:26 +01:00
|
|
|
Placement calculatePlacement() const;
|
2012-05-26 14:26:10 +02:00
|
|
|
|
2020-03-25 15:06:32 +01:00
|
|
|
void draw(QPainter*) const override;
|
|
|
|
void layout() override;
|
2014-07-10 14:13:37 +02:00
|
|
|
|
2020-03-25 15:06:32 +01:00
|
|
|
QVariant propertyDefault(Pid id) const override;
|
2018-03-21 14:05:33 +01:00
|
|
|
|
2020-03-25 15:06:32 +01:00
|
|
|
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
|
|
|
|
|