MuseScore/libmscore/repeat.h
Andrei Tuicu 6460485d3f Score accessibility system.
Provides screen-reader feedback for the selected element.
2014-08-19 00:09:13 +03:00

48 lines
1.3 KiB
C++

//=============================================================================
// 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 __REPEAT_H__
#define __REPEAT_H__
#include "text.h"
#include "rest.h"
namespace Ms {
class Score;
class Segment;
//---------------------------------------------------------
// @@ RepeatMeasure
//---------------------------------------------------------
class RepeatMeasure : public Rest {
Q_OBJECT
QPainterPath path;
public:
RepeatMeasure(Score*);
RepeatMeasure &operator=(const RepeatMeasure&) = delete;
virtual RepeatMeasure* clone() const { return new RepeatMeasure(*this); }
virtual Element::Type type() const { return Element::Type::REPEAT_MEASURE; }
virtual void draw(QPainter*) const;
virtual void layout();
virtual Fraction duration() const;
virtual QString accessibleInfo();
};
} // namespace Ms
#endif