MuseScore/libmscore/fingering.h

58 lines
1.9 KiB
C
Raw Normal View History

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
Note* note() const { return toNote(parent()); }
2012-05-26 14:26:10 +02: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;
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;
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