2012-05-26 14:26:10 +02:00
|
|
|
//=============================================================================
|
|
|
|
// MuseScore
|
|
|
|
// Music Composition & Notation
|
|
|
|
//
|
|
|
|
// Copyright (C) 2010-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 __FINGERING_H__
|
|
|
|
#define __FINGERING_H__
|
|
|
|
|
|
|
|
#include "text.h"
|
2017-01-16 20:51:12 +01:00
|
|
|
#include "property.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
|
|
|
class Note;
|
|
|
|
|
|
|
|
//---------------------------------------------------------
|
2012-07-25 11:49:34 +02:00
|
|
|
// @@ Fingering
|
2012-05-26 14:26:10 +02:00
|
|
|
//---------------------------------------------------------
|
|
|
|
|
|
|
|
class Fingering : public Text {
|
|
|
|
public:
|
|
|
|
Fingering(Score* s);
|
2014-07-11 11:36:41 +02: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
|
|
|
|
2017-01-19 16:06:40 +01:00
|
|
|
Note* note() const { return toNote(parent()); }
|
2012-05-26 14:26:10 +02:00
|
|
|
|
2015-02-18 19:06:29 +01:00
|
|
|
virtual void draw(QPainter*) const override;
|
|
|
|
virtual void layout() override;
|
2016-11-19 11:51:21 +01:00
|
|
|
virtual void write(XmlWriter&) const override;
|
2014-07-11 11:36:41 +02:00
|
|
|
virtual void read(XmlReader&) override;
|
2017-01-16 20:51:12 +01:00
|
|
|
virtual int subtype() const override { return (int) subStyle(); }
|
|
|
|
virtual QString subtypeName() const override;
|
2014-07-10 14:13:37 +02:00
|
|
|
|
2016-02-04 17:06:32 +01:00
|
|
|
virtual QString accessibleInfo() const override;
|
2017-01-05 14:53:21 +01:00
|
|
|
|
|
|
|
virtual QVariant getProperty(P_ID propertyId) const override;
|
|
|
|
virtual bool setProperty(P_ID propertyId, const QVariant& v) override;
|
|
|
|
virtual QVariant propertyDefault(P_ID id) const override;
|
2017-12-13 15:49:55 +01:00
|
|
|
virtual PropertyFlags& propertyFlags(P_ID) override;
|
2017-01-16 20:51:12 +01:00
|
|
|
virtual void resetProperty(P_ID id) override;
|
|
|
|
virtual StyleIdx getPropertyStyle(P_ID) const override;
|
|
|
|
virtual void styleChanged() override;
|
|
|
|
virtual void reset() 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
|
|
|
|
|